diff --git a/assets/ng-doc/indexes.json b/assets/ng-doc/indexes.json new file mode 100644 index 0000000..7f4f83c --- /dev/null +++ b/assets/ng-doc/indexes.json @@ -0,0 +1 @@ +[{"breadcrumbs":["Components","Button"],"pageType":"guide","title":"Button","section":"","route":"components/button","content":"A button is an interface element that allows the user to perform a specific action when clicked."},{"breadcrumbs":["Changelog"],"pageType":"guide","title":"Changelog","section":"Architecture","route":"changelog","fragment":"architecture","content":" Generate angular app & link to github repository Set eslint/prettier configuration & workspace plugins Add deployment CI on github pages (available here) Configure tailwind (w/ custom colors & typography)"},{"breadcrumbs":["Changelog"],"pageType":"guide","title":"Changelog","section":"UI","route":"changelog","fragment":"ui","content":" Adding Application layout (header, router, footer) Adding initial HomePage"},{"breadcrumbs":["Changelog"],"pageType":"guide","title":"Changelog","section":"Components","route":"changelog","fragment":"components","content":" Icon component to render custom icon Icon Material component to display google icons Message component to display information with severity (info, warn, error ..) Notification center (display notification in the root component)"},{"breadcrumbs":["Changelog"],"pageType":"guide","title":"Changelog","section":"Core","route":"changelog","fragment":"core","content":" LocalStorageService NotificationService"},{"breadcrumbs":["Changelog"],"pageType":"guide","title":"Changelog","section":"Core","route":"changelog","fragment":"core","content":"Still in progress !"},{"breadcrumbs":["Components","Icon Material"],"pageType":"guide","title":"Icon Material","section":"","route":"components/icon-material","content":"Simple component to display an icon from material-symbols-outlined font."},{"breadcrumbs":["Components","Icon Material"],"pageType":"guide","title":"Icon Material","section":"","route":"components/icon-material","content":"Refer to the material-symbols-outlined font for the list of available icons.https://fonts.google.com/icons"},{"breadcrumbs":["Components","Icon Material"],"pageType":"guide","title":"Icon Material","section":"Pre requirements","route":"components/icon-material","fragment":"pre-requirements","content":"In order to use this component in your application, you must follow these steps:"},{"breadcrumbs":["Components","Icon Material"],"pageType":"guide","title":"Icon Material","section":"Adding Google font","route":"components/icon-material","fragment":"adding-google-font","content":"Insert the following script in your index.html or angular.json file."},{"breadcrumbs":["Components","Icon Material"],"pageType":"guide","title":"Icon Material","section":"Adding Font variation","route":"components/icon-material","fragment":"adding-font-variation","content":"Simply add this selector to your style.scss file. Adapt this settings to match desired styling. Check https://fonts.google.com/icons options for more information."},{"breadcrumbs":["Components","Icon Material"],"pageType":"guide","title":"Icon Material","section":"That's it 🎉","route":"components/icon-material","fragment":"thats-it-","content":"You can now start importing this component in your application !"},{"breadcrumbs":["Components","Icon"],"pageType":"guide","title":"Icon","section":"","route":"components/icon","content":"Simple component to display an icon as SVG tag from an svg file located in your assets/icons folder."},{"breadcrumbs":["Components","Icon"],"pageType":"guide","title":"Icon","section":"Pre requirements","route":"components/icon","fragment":"pre-requirements","content":"In order to use this component in your application, you must follow these steps:"},{"breadcrumbs":["Components","Icon"],"pageType":"guide","title":"Icon","section":"Create assets/icons folder","route":"components/icon","fragment":"create-assetsicons-folder","content":"In this folder, you can add all SVG required for your UI. You can also creates sub-folders but be aware, you'll need to format name as folderName/fileName."},{"breadcrumbs":["Components","Icon"],"pageType":"guide","title":"Icon","section":"Create assets/icons folder","route":"components/icon","fragment":"create-assetsicons-folder","content":"Note: With this component, you can control the fill of the SVG by adding some color of the component (works by inheritance)."},{"breadcrumbs":["Components","Icon"],"pageType":"guide","title":"Icon","section":"Import FileService","route":"components/icon","fragment":"import-fileservice","content":"This service helps working with files in general but this component requires getSVG() method. Simply copy paste this service or get isolated method."},{"breadcrumbs":["Components","Icon"],"pageType":"guide","title":"Icon","section":"That's it 🎉","route":"components/icon","fragment":"thats-it-","content":"You can now start importing this component in your application !"},{"breadcrumbs":["Components","Icon"],"pageType":"guide","title":"Icon","section":"That's it 🎉","route":"components/icon","fragment":"thats-it-","content":"Ensure that the SVG files in the assets/icons folder are properly named and formatted.The name input should match the file name of the SVG without the .svg extension."},{"breadcrumbs":["Components","Icon"],"pageType":"guide","title":"Icon","section":"That's it 🎉","route":"components/icon","fragment":"thats-it-","content":"By following these guidelines, you can effectively use the lib-icon component in your Angular application."},{"breadcrumbs":["Todo"],"pageType":"guide","title":"Todo","section":"Current development ⏰","route":"todo","fragment":"current-development-","content":"Tasks on development scope (more tasks can be found in this repository using TODO Tree -vscode extensions)"},{"breadcrumbs":["Todo"],"pageType":"guide","title":"Todo","section":"modules","route":"todo","fragment":"modules","content":" Platform Dialog Http request"},{"breadcrumbs":["Todo"],"pageType":"guide","title":"Todo","section":"directives","route":"todo","fragment":"directives","content":" Match Media File value accessor"},{"breadcrumbs":["Todo"],"pageType":"guide","title":"Todo","section":"guards","route":"todo","fragment":"guards","content":" Can deactivate"},{"breadcrumbs":["Todo"],"pageType":"guide","title":"Todo","section":"functions","route":"todo","fragment":"functions","content":" Capitalize Clean dash-to-camel-case"},{"breadcrumbs":["Todo"],"pageType":"guide","title":"Todo","section":"Pipes","route":"todo","fragment":"pipes","content":" Trust Html Trust URL Since"},{"breadcrumbs":["Todo"],"pageType":"guide","title":"Todo","section":"UI","route":"todo","fragment":"ui","content":" NotFoundPage ComponentsPage ServicesPage ModulesPage"},{"breadcrumbs":["Welcome"],"pageType":"guide","title":"Welcome","section":"Angular Web User Interface 🎨","route":"get-started","fragment":"angular-web-user-interface-","content":"Angular library of components, services & patterns easing development of user interfaces. This is not a framework, nor a cdk, nut simply a collection of components following best practices in angular web development."},{"breadcrumbs":["Welcome"],"pageType":"guide","title":"Welcome","section":"Angular Web User Interface 🎨","route":"get-started","fragment":"angular-web-user-interface-","content":"This repository was created as a model for creating actual application. Feel free to use take any components you want 🙌"},{"breadcrumbs":["Welcome"],"pageType":"guide","title":"Welcome","section":"Built with 🏗ī¸","route":"get-started","fragment":"built-with-ī¸","content":"Dependency"},{"breadcrumbs":["Welcome"],"pageType":"guide","title":"Welcome","section":"Built with 🏗ī¸","route":"get-started","fragment":"built-with-ī¸","content":"version"},{"breadcrumbs":["Welcome"],"pageType":"guide","title":"Welcome","section":"Built with 🏗ī¸","route":"get-started","fragment":"built-with-ī¸","content":"@angular/core"},{"breadcrumbs":["Welcome"],"pageType":"guide","title":"Welcome","section":"Built with 🏗ī¸","route":"get-started","fragment":"built-with-ī¸","content":"^18.2.0"},{"breadcrumbs":["Welcome"],"pageType":"guide","title":"Welcome","section":"Built with 🏗ī¸","route":"get-started","fragment":"built-with-ī¸","content":"eslint"},{"breadcrumbs":["Welcome"],"pageType":"guide","title":"Welcome","section":"Built with 🏗ī¸","route":"get-started","fragment":"built-with-ī¸","content":"8.57.0"},{"breadcrumbs":["Welcome"],"pageType":"guide","title":"Welcome","section":"Built with 🏗ī¸","route":"get-started","fragment":"built-with-ī¸","content":"jest"},{"breadcrumbs":["Welcome"],"pageType":"guide","title":"Welcome","section":"Built with 🏗ī¸","route":"get-started","fragment":"built-with-ī¸","content":"^29.7.0"},{"breadcrumbs":["Welcome"],"pageType":"guide","title":"Welcome","section":"Built with 🏗ī¸","route":"get-started","fragment":"built-with-ī¸","content":"rxjs"},{"breadcrumbs":["Welcome"],"pageType":"guide","title":"Welcome","section":"Built with 🏗ī¸","route":"get-started","fragment":"built-with-ī¸","content":"~7.8.0"},{"breadcrumbs":["Welcome"],"pageType":"guide","title":"Welcome","section":"Built with 🏗ī¸","route":"get-started","fragment":"built-with-ī¸","content":"tailwind"},{"breadcrumbs":["Welcome"],"pageType":"guide","title":"Welcome","section":"Built with 🏗ī¸","route":"get-started","fragment":"built-with-ī¸","content":"^3.4.13"},{"breadcrumbs":["Welcome"],"pageType":"guide","title":"Welcome","section":"Built with 🏗ī¸","route":"get-started","fragment":"built-with-ī¸","content":"typescript"},{"breadcrumbs":["Welcome"],"pageType":"guide","title":"Welcome","section":"Built with 🏗ī¸","route":"get-started","fragment":"built-with-ī¸","content":"~5.5.2"},{"breadcrumbs":["Welcome"],"pageType":"guide","title":"Welcome","section":"Built with 🏗ī¸","route":"get-started","fragment":"built-with-ī¸","content":"More dependencies can be found inside package.json."},{"breadcrumbs":["Welcome"],"pageType":"guide","title":"Welcome","section":"Get Started 🚀","route":"get-started","fragment":"get-started-","content":"This project contains multiple scripts. Remember to first run npm i in order to load required dependencies. Then you can run any of the scripts below:"},{"breadcrumbs":["Welcome"],"pageType":"guide","title":"Welcome","section":"Get Started 🚀","route":"get-started","fragment":"get-started-","content":"Script"},{"breadcrumbs":["Welcome"],"pageType":"guide","title":"Welcome","section":"Get Started 🚀","route":"get-started","fragment":"get-started-","content":"Description"},{"breadcrumbs":["Welcome"],"pageType":"guide","title":"Welcome","section":"Get Started 🚀","route":"get-started","fragment":"get-started-","content":"npm run start"},{"breadcrumbs":["Welcome"],"pageType":"guide","title":"Welcome","section":"Get Started 🚀","route":"get-started","fragment":"get-started-","content":"Serves application locally to "},{"breadcrumbs":["Welcome"],"pageType":"guide","title":"Welcome","section":"Get Started 🚀","route":"get-started","fragment":"get-started-","content":"https://localhost:4200"},{"breadcrumbs":["Welcome"],"pageType":"guide","title":"Welcome","section":"Get Started 🚀","route":"get-started","fragment":"get-started-","content":"npm run build"},{"breadcrumbs":["Welcome"],"pageType":"guide","title":"Welcome","section":"Get Started 🚀","route":"get-started","fragment":"get-started-","content":"Builds application in production mode to "},{"breadcrumbs":["Welcome"],"pageType":"guide","title":"Welcome","section":"Get Started 🚀","route":"get-started","fragment":"get-started-","content":"dist/ngx-lib/browser"},{"breadcrumbs":["Welcome"],"pageType":"guide","title":"Welcome","section":"Get Started 🚀","route":"get-started","fragment":"get-started-","content":"npm run watch"},{"breadcrumbs":["Welcome"],"pageType":"guide","title":"Welcome","section":"Get Started 🚀","route":"get-started","fragment":"get-started-","content":"Builds application in development mode and watch for file change"},{"breadcrumbs":["Welcome"],"pageType":"guide","title":"Welcome","section":"Get Started 🚀","route":"get-started","fragment":"get-started-","content":"npm run test"},{"breadcrumbs":["Welcome"],"pageType":"guide","title":"Welcome","section":"Get Started 🚀","route":"get-started","fragment":"get-started-","content":"Launch unit tests with Jest runner"},{"breadcrumbs":["Welcome"],"pageType":"guide","title":"Welcome","section":"Get Started 🚀","route":"get-started","fragment":"get-started-","content":"npm run test:watch"},{"breadcrumbs":["Welcome"],"pageType":"guide","title":"Welcome","section":"Get Started 🚀","route":"get-started","fragment":"get-started-","content":"Launch unit tests and watch for files change"},{"breadcrumbs":["Welcome"],"pageType":"guide","title":"Welcome","section":"Get Started 🚀","route":"get-started","fragment":"get-started-","content":"npm run lint"},{"breadcrumbs":["Welcome"],"pageType":"guide","title":"Welcome","section":"Get Started 🚀","route":"get-started","fragment":"get-started-","content":"Lint repository with eslint & prettier."},{"breadcrumbs":["Welcome"],"pageType":"guide","title":"Welcome","section":"Versions 🔖","route":"get-started","fragment":"versions-","content":"A complete changelog can be found in dedicated markdown. Which resume current progress. You can also found what is in the current development inside TODO markdown."}] \ No newline at end of file diff --git a/assets/ng-doc/keywords.json b/assets/ng-doc/keywords.json new file mode 100644 index 0000000..0825242 --- /dev/null +++ b/assets/ng-doc/keywords.json @@ -0,0 +1 @@ +{"*IconPage":{"title":"Icon","path":"components/icon","type":"link"},"*IconPage#pre-requirements":{"title":"Icon [Pre requirements]","path":"components/icon#pre-requirements","type":"link"},"*IconPage#create-assetsicons-folder":{"title":"Icon [Create assets/icons folder]","path":"components/icon#create-assetsicons-folder","type":"link"},"*IconPage#import-fileservice":{"title":"Icon [Import FileService]","path":"components/icon#import-fileservice","type":"link"},"*IconPage#thats-it-":{"title":"Icon [That's it 🎉]","path":"components/icon#thats-it-","type":"link"},"*IconPage#playground-ī¸":{"title":"Icon [Playground 🕹ī¸]","path":"components/icon#playground-ī¸","type":"link"}} \ No newline at end of file diff --git a/assets/ng-doc/ui-kit/icons/16/arrow-left.svg b/assets/ng-doc/ui-kit/icons/16/arrow-left.svg new file mode 100644 index 0000000..b8adf94 --- /dev/null +++ b/assets/ng-doc/ui-kit/icons/16/arrow-left.svg @@ -0,0 +1,7 @@ + + + + diff --git a/assets/ng-doc/ui-kit/icons/16/arrow-right.svg b/assets/ng-doc/ui-kit/icons/16/arrow-right.svg new file mode 100644 index 0000000..d3c51f8 --- /dev/null +++ b/assets/ng-doc/ui-kit/icons/16/arrow-right.svg @@ -0,0 +1,7 @@ + + + + diff --git a/assets/ng-doc/ui-kit/icons/16/at-sign.svg b/assets/ng-doc/ui-kit/icons/16/at-sign.svg new file mode 100644 index 0000000..c2b49d7 --- /dev/null +++ b/assets/ng-doc/ui-kit/icons/16/at-sign.svg @@ -0,0 +1,7 @@ + + + + diff --git a/assets/ng-doc/ui-kit/icons/16/check.svg b/assets/ng-doc/ui-kit/icons/16/check.svg new file mode 100644 index 0000000..bbd2edb --- /dev/null +++ b/assets/ng-doc/ui-kit/icons/16/check.svg @@ -0,0 +1,5 @@ + + + diff --git a/assets/ng-doc/ui-kit/icons/16/chevron-right.svg b/assets/ng-doc/ui-kit/icons/16/chevron-right.svg new file mode 100644 index 0000000..69bba34 --- /dev/null +++ b/assets/ng-doc/ui-kit/icons/16/chevron-right.svg @@ -0,0 +1,6 @@ + + + diff --git a/assets/ng-doc/ui-kit/icons/16/chevrons-right.svg b/assets/ng-doc/ui-kit/icons/16/chevrons-right.svg new file mode 100644 index 0000000..c5ae56e --- /dev/null +++ b/assets/ng-doc/ui-kit/icons/16/chevrons-right.svg @@ -0,0 +1,7 @@ + + + + diff --git a/assets/ng-doc/ui-kit/icons/16/code.svg b/assets/ng-doc/ui-kit/icons/16/code.svg new file mode 100644 index 0000000..d985acc --- /dev/null +++ b/assets/ng-doc/ui-kit/icons/16/code.svg @@ -0,0 +1,6 @@ + + + + diff --git a/assets/ng-doc/ui-kit/icons/16/copy.svg b/assets/ng-doc/ui-kit/icons/16/copy.svg new file mode 100644 index 0000000..6344440 --- /dev/null +++ b/assets/ng-doc/ui-kit/icons/16/copy.svg @@ -0,0 +1,6 @@ + + + + diff --git a/assets/ng-doc/ui-kit/icons/16/edit-2.svg b/assets/ng-doc/ui-kit/icons/16/edit-2.svg new file mode 100644 index 0000000..99b6361 --- /dev/null +++ b/assets/ng-doc/ui-kit/icons/16/edit-2.svg @@ -0,0 +1,5 @@ + + + diff --git a/assets/ng-doc/ui-kit/icons/16/external-link.svg b/assets/ng-doc/ui-kit/icons/16/external-link.svg new file mode 100644 index 0000000..c18f559 --- /dev/null +++ b/assets/ng-doc/ui-kit/icons/16/external-link.svg @@ -0,0 +1,8 @@ + + + + + diff --git a/assets/ng-doc/ui-kit/icons/16/home.svg b/assets/ng-doc/ui-kit/icons/16/home.svg new file mode 100644 index 0000000..843e4ba --- /dev/null +++ b/assets/ng-doc/ui-kit/icons/16/home.svg @@ -0,0 +1,6 @@ + + + + diff --git a/assets/ng-doc/ui-kit/icons/16/info.svg b/assets/ng-doc/ui-kit/icons/16/info.svg new file mode 100644 index 0000000..f87919f --- /dev/null +++ b/assets/ng-doc/ui-kit/icons/16/info.svg @@ -0,0 +1,7 @@ + + + + + diff --git a/assets/ng-doc/ui-kit/icons/16/link-2.svg b/assets/ng-doc/ui-kit/icons/16/link-2.svg new file mode 100644 index 0000000..8472ac6 --- /dev/null +++ b/assets/ng-doc/ui-kit/icons/16/link-2.svg @@ -0,0 +1,6 @@ + + + + diff --git a/assets/ng-doc/ui-kit/icons/16/maximize.svg b/assets/ng-doc/ui-kit/icons/16/maximize.svg new file mode 100644 index 0000000..fc30518 --- /dev/null +++ b/assets/ng-doc/ui-kit/icons/16/maximize.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/ng-doc/ui-kit/icons/16/menu.svg b/assets/ng-doc/ui-kit/icons/16/menu.svg new file mode 100644 index 0000000..28eec19 --- /dev/null +++ b/assets/ng-doc/ui-kit/icons/16/menu.svg @@ -0,0 +1,7 @@ + + + + + diff --git a/assets/ng-doc/ui-kit/icons/16/minus.svg b/assets/ng-doc/ui-kit/icons/16/minus.svg new file mode 100644 index 0000000..4da2501 --- /dev/null +++ b/assets/ng-doc/ui-kit/icons/16/minus.svg @@ -0,0 +1,5 @@ + + + diff --git a/assets/ng-doc/ui-kit/icons/16/search.svg b/assets/ng-doc/ui-kit/icons/16/search.svg new file mode 100644 index 0000000..eceaa1e --- /dev/null +++ b/assets/ng-doc/ui-kit/icons/16/search.svg @@ -0,0 +1,6 @@ + + + + diff --git a/assets/ng-doc/ui-kit/icons/16/x.svg b/assets/ng-doc/ui-kit/icons/16/x.svg new file mode 100644 index 0000000..614b7af --- /dev/null +++ b/assets/ng-doc/ui-kit/icons/16/x.svg @@ -0,0 +1,6 @@ + + + + diff --git a/assets/ng-doc/ui-kit/icons/16/zoom-in.svg b/assets/ng-doc/ui-kit/icons/16/zoom-in.svg new file mode 100644 index 0000000..da4572d --- /dev/null +++ b/assets/ng-doc/ui-kit/icons/16/zoom-in.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/ng-doc/ui-kit/icons/16/zoom-out.svg b/assets/ng-doc/ui-kit/icons/16/zoom-out.svg new file mode 100644 index 0000000..fd678d7 --- /dev/null +++ b/assets/ng-doc/ui-kit/icons/16/zoom-out.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/ng-doc/ui-kit/icons/24/activity.svg b/assets/ng-doc/ui-kit/icons/24/activity.svg new file mode 100644 index 0000000..669a57a --- /dev/null +++ b/assets/ng-doc/ui-kit/icons/24/activity.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/ng-doc/ui-kit/icons/24/alert-circle.svg b/assets/ng-doc/ui-kit/icons/24/alert-circle.svg new file mode 100644 index 0000000..4ac7b62 --- /dev/null +++ b/assets/ng-doc/ui-kit/icons/24/alert-circle.svg @@ -0,0 +1,6 @@ + + + + + diff --git a/assets/ng-doc/ui-kit/icons/24/alert-triangle.svg b/assets/ng-doc/ui-kit/icons/24/alert-triangle.svg new file mode 100644 index 0000000..d729e63 --- /dev/null +++ b/assets/ng-doc/ui-kit/icons/24/alert-triangle.svg @@ -0,0 +1,9 @@ + + + + + diff --git a/assets/ng-doc/ui-kit/icons/24/check.svg b/assets/ng-doc/ui-kit/icons/24/check.svg new file mode 100644 index 0000000..1c20989 --- /dev/null +++ b/assets/ng-doc/ui-kit/icons/24/check.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/ng-doc/ui-kit/icons/24/circle.svg b/assets/ng-doc/ui-kit/icons/24/circle.svg new file mode 100644 index 0000000..a372084 --- /dev/null +++ b/assets/ng-doc/ui-kit/icons/24/circle.svg @@ -0,0 +1,5 @@ + + + diff --git a/assets/ng-doc/ui-kit/icons/24/info.svg b/assets/ng-doc/ui-kit/icons/24/info.svg new file mode 100644 index 0000000..8d5d12c --- /dev/null +++ b/assets/ng-doc/ui-kit/icons/24/info.svg @@ -0,0 +1,7 @@ + + + + + diff --git a/assets/ng-doc/ui-kit/icons/24/menu.svg b/assets/ng-doc/ui-kit/icons/24/menu.svg new file mode 100644 index 0000000..e93ba79 --- /dev/null +++ b/assets/ng-doc/ui-kit/icons/24/menu.svg @@ -0,0 +1,7 @@ + + + + + diff --git a/assets/ng-doc/ui-kit/icons/24/moon.svg b/assets/ng-doc/ui-kit/icons/24/moon.svg new file mode 100644 index 0000000..8c906ce --- /dev/null +++ b/assets/ng-doc/ui-kit/icons/24/moon.svg @@ -0,0 +1,5 @@ + + + diff --git a/assets/ng-doc/ui-kit/icons/24/search.svg b/assets/ng-doc/ui-kit/icons/24/search.svg new file mode 100644 index 0000000..44fbd40 --- /dev/null +++ b/assets/ng-doc/ui-kit/icons/24/search.svg @@ -0,0 +1,6 @@ + + + + diff --git a/assets/ng-doc/ui-kit/icons/24/sun.svg b/assets/ng-doc/ui-kit/icons/24/sun.svg new file mode 100644 index 0000000..03034db --- /dev/null +++ b/assets/ng-doc/ui-kit/icons/24/sun.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + diff --git a/chunk-2DLUYWF7.js b/chunk-2DLUYWF7.js new file mode 100644 index 0000000..6cf3efb --- /dev/null +++ b/chunk-2DLUYWF7.js @@ -0,0 +1,2 @@ +import{a as G,b as N,c as I}from"./chunk-PK2S5CKJ.js";import{a as W}from"./chunk-UGXKMGFK.js";import{A}from"./chunk-KLEKA63L.js";import{$a as T,Fa as y,G as _,I as C,Ja as O,b as J,c as Z,cb as P,h as E,mb as S}from"./chunk-2YKPSI5H.js";import{h as H}from"./chunk-TWZW5B45.js";var rt=H(J(),1),at=H(Z(),1);var X=0,R=function(i,r,t,o,p){let g=function(e){switch(e){case p.db.relationType.AGGREGATION:return"aggregation";case p.db.relationType.EXTENSION:return"extension";case p.db.relationType.COMPOSITION:return"composition";case p.db.relationType.DEPENDENCY:return"dependency";case p.db.relationType.LOLLIPOP:return"lollipop"}};r.points=r.points.filter(e=>!Number.isNaN(e.y));let s=r.points,c=_().x(function(e){return e.x}).y(function(e){return e.y}).curve(C),n=i.append("path").attr("d",c(s)).attr("id","edge"+X).attr("class","relation"),a="";o.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),t.relation.lineType==1&&n.attr("class","relation dashed-line"),t.relation.lineType==10&&n.attr("class","relation dotted-line"),t.relation.type1!=="none"&&n.attr("marker-start","url("+a+"#"+g(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&n.attr("marker-end","url("+a+"#"+g(t.relation.type2)+"End)");let f,h,x=r.points.length,b=T.calcLabelPosition(r.points);f=b.x,h=b.y;let u,m,w,k;if(x%2!==0&&x>1){let e=T.calcCardinalityPosition(t.relation.type1!=="none",r.points,r.points[0]),d=T.calcCardinalityPosition(t.relation.type2!=="none",r.points,r.points[x-1]);y.debug("cardinality_1_point "+JSON.stringify(e)),y.debug("cardinality_2_point "+JSON.stringify(d)),u=e.x,m=e.y,w=d.x,k=d.y}if(t.title!==void 0){let e=i.append("g").attr("class","classLabel"),d=e.append("text").attr("class","label").attr("x",f).attr("y",h).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=d;let l=d.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",l.x-o.padding/2).attr("y",l.y-o.padding/2).attr("width",l.width+o.padding).attr("height",l.height+o.padding)}y.info("Rendering relation "+JSON.stringify(t)),t.relationTitle1!==void 0&&t.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",u).attr("y",m).attr("fill","black").attr("font-size","6").text(t.relationTitle1),t.relationTitle2!==void 0&&t.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",w).attr("y",k).attr("fill","black").attr("font-size","6").text(t.relationTitle2),X++},F=function(i,r,t,o){y.debug("Rendering class ",r,t);let p=r.id,g={id:p,label:r.id,width:0,height:0},s=i.append("g").attr("id",o.db.lookUpDomId(p)).attr("class","classGroup"),c;r.link?c=s.append("svg:a").attr("xlink:href",r.link).attr("target",r.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let n=!0;r.annotations.forEach(function(d){let l=c.append("tspan").text("\xAB"+d+"\xBB");n||l.attr("dy",t.textHeight),n=!1});let a=$(r),f=c.append("tspan").text(a).attr("class","title");n||f.attr("dy",t.textHeight);let h=c.node().getBBox().height,x,b,u;if(r.members.length>0){x=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin/2).attr("y2",t.padding+h+t.dividerMargin/2);let d=s.append("text").attr("x",t.padding).attr("y",h+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");n=!0,r.members.forEach(function(l){Y(d,l,n,t),n=!1}),b=d.node().getBBox()}if(r.methods.length>0){u=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin+b.height).attr("y2",t.padding+h+t.dividerMargin+b.height);let d=s.append("text").attr("x",t.padding).attr("y",h+2*t.dividerMargin+b.height+t.textHeight).attr("fill","white").attr("class","classText");n=!0,r.methods.forEach(function(l){Y(d,l,n,t),n=!1})}let m=s.node().getBBox();var w=" ";r.cssClasses.length>0&&(w=w+r.cssClasses.join(" "));let e=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",m.width+2*t.padding).attr("height",m.height+t.padding+.5*t.dividerMargin).attr("class",w).node().getBBox().width;return c.node().childNodes.forEach(function(d){d.setAttribute("x",(e-d.getBBox().width)/2)}),r.tooltip&&c.insert("title").text(r.tooltip),x&&x.attr("x2",e),u&&u.attr("x2",e),g.width=e,g.height=m.height+t.padding+.5*t.dividerMargin,g},$=function(i){let r=i.id;return i.type&&(r+="<"+O(i.type)+">"),r},U=function(i,r,t,o){y.debug("Rendering note ",r,t);let p=r.id,g={id:p,text:r.text,width:0,height:0},s=i.append("g").attr("id",p).attr("class","classGroup"),c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0),n=JSON.parse(`"${r.text}"`).split(` +`);n.forEach(function(x){y.debug(`Adding line: ${x}`),c.append("tspan").text(x).attr("class","title").attr("dy",t.textHeight)});let a=s.node().getBBox(),h=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",a.width+2*t.padding).attr("height",a.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin).node().getBBox().width;return c.node().childNodes.forEach(function(x){x.setAttribute("x",(h-x.getBBox().width)/2)}),g.width=h,g.height=a.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin,g},Y=function(i,r,t,o){let{displayText:p,cssStyle:g}=r.getDisplayDetails(),s=i.append("tspan").attr("x",o.padding).text(p);g!==""&&s.attr("style",r.cssStyle),t||s.attr("dy",o.textHeight)},v={getClassTitleString:$,drawClass:F,drawEdge:R,drawNote:U},M={},B=20,L=function(i){let r=Object.entries(M).find(t=>t[1].label===i);if(r)return r[0]},z=function(i){i.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"),i.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"),i.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"),i.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"),i.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"),i.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"),i.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"),i.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")},V=function(i,r,t,o){let p=S().class;M={},y.info("Rendering diagram "+i);let g=S().securityLevel,s;g==="sandbox"&&(s=E("#i"+r));let c=g==="sandbox"?E(s.nodes()[0].contentDocument.body):E("body"),n=c.select(`[id='${r}']`);z(n);let a=new A({multigraph:!0});a.setGraph({isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}});let f=o.db.getClasses(),h=Object.keys(f);for(let e of h){let d=f[e],l=v.drawClass(n,d,p,o);M[l.id]=l,a.setNode(l.id,l),y.info("Org height: "+l.height)}o.db.getRelations().forEach(function(e){y.info("tjoho"+L(e.id1)+L(e.id2)+JSON.stringify(e)),a.setEdge(L(e.id1),L(e.id2),{relation:e},e.title||"DEFAULT")}),o.db.getNotes().forEach(function(e){y.debug(`Adding note: ${JSON.stringify(e)}`);let d=v.drawNote(n,e,p,o);M[d.id]=d,a.setNode(d.id,d),e.class&&e.class in f&&a.setEdge(e.id,L(e.class),{relation:{id1:e.id,id2:e.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),W(a),a.nodes().forEach(function(e){e!==void 0&&a.node(e)!==void 0&&(y.debug("Node "+e+": "+JSON.stringify(a.node(e))),c.select("#"+(o.db.lookUpDomId(e)||e)).attr("transform","translate("+(a.node(e).x-a.node(e).width/2)+","+(a.node(e).y-a.node(e).height/2)+" )"))}),a.edges().forEach(function(e){e!==void 0&&a.edge(e)!==void 0&&(y.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(a.edge(e))),v.drawEdge(n,a.edge(e),a.edge(e).relation,p,o))});let u=n.node().getBBox(),m=u.width+B*2,w=u.height+B*2;P(n,w,m,p.useMaxWidth);let k=`${u.x-B} ${u.y-B} ${m} ${w}`;y.debug(`viewBox ${k}`),n.attr("viewBox",k)},q={draw:V},nt={parser:G,db:N,renderer:q,styles:I,init:i=>{i.class||(i.class={}),i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,N.clear()}};export{nt as diagram}; diff --git a/chunk-2IUJ2XCY.js b/chunk-2IUJ2XCY.js new file mode 100644 index 0000000..a061eb4 --- /dev/null +++ b/chunk-2IUJ2XCY.js @@ -0,0 +1 @@ +import{a as d}from"./chunk-WEP4G4BU.js";import{Ha as r,Ra as p,U as a,ob as c}from"./chunk-FUUZABHH.js";import"./chunk-TWZW5B45.js";var g='

Welcome

',o=class n{routes=s[0].children;headerContent=g;pageType="guide";hasBreadcrumb=!0;static \u0275fac=function(e){return new(e||n)};static \u0275cmp=a({type:n,selectors:[["ng-doc-page-wrapper-cgld7ihx"]],standalone:!0,features:[c],decls:1,vars:4,consts:[[3,"routes","headerContent","hasBreadcrumb","pageType"]],template:function(e,t){e&1&&p(0,"ng-doc-page-wrapper",0),e&2&&r("routes",t.routes)("headerContent",t.headerContent)("hasBreadcrumb",t.hasBreadcrumb)("pageType",t.pageType)},dependencies:[d],encapsulation:2,changeDetection:0})},s=[{path:"",component:o,title:"Welcome",children:[{path:"",loadChildren:()=>import("./chunk-6IVRQXMA.js"),title:"Welcome",data:{icon:""}}]}],u=s;export{o as PageWrapperComponent,u as default}; diff --git a/chunk-2YKPSI5H.js b/chunk-2YKPSI5H.js new file mode 100644 index 0000000..e1a8a88 --- /dev/null +++ b/chunk-2YKPSI5H.js @@ -0,0 +1,88 @@ +import{a as re,b as ie,f as uc,h as hc,j as J}from"./chunk-TWZW5B45.js";var pc=uc((Fa,La)=>{"use strict";(function(t,e){typeof Fa=="object"&&typeof La<"u"?La.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(Fa,function(){"use strict";var t=1e3,e=6e4,r=36e5,i="millisecond",o="second",n="minute",a="hour",s="day",l="week",c="month",h="quarter",f="year",u="date",p="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|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,T={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(B){var x=["th","st","nd","rd"],y=B%100;return"["+B+(x[(y-20)%10]||x[y]||x[0])+"]"}},w=function(B,x,y){var O=String(B);return!O||O.length>=x?B:""+Array(x+1-O.length).join(y)+B},C={s:w,z:function(B){var x=-B.utcOffset(),y=Math.abs(x),O=Math.floor(y/60),k=y%60;return(x<=0?"+":"-")+w(O,2,"0")+":"+w(k,2,"0")},m:function B(x,y){if(x.date()1)return B(N[0])}else{var U=x.name;v[U]=x,k=U}return!O&&k&&(E=k),k||!O&&E},V=function(B,x){if(A(B))return B.clone();var y=typeof x=="object"?x:{};return y.date=B,y.args=arguments,new ot(y)},j=C;j.l=M,j.i=A,j.w=function(B,x){return V(B,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var ot=function(){function B(y){this.$L=M(y.locale,null,!0),this.parse(y),this.$x=this.$x||y.x||{},this[D]=!0}var x=B.prototype;return x.parse=function(y){this.$d=function(O){var k=O.date,P=O.utc;if(k===null)return new Date(NaN);if(j.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var N=k.match(g);if(N){var U=N[2]-1||0,it=(N[7]||"0").substring(0,3);return P?new Date(Date.UTC(N[1],U,N[3]||1,N[4]||0,N[5]||0,N[6]||0,it)):new Date(N[1],U,N[3]||1,N[4]||0,N[5]||0,N[6]||0,it)}}return new Date(k)}(y),this.init()},x.init=function(){var y=this.$d;this.$y=y.getFullYear(),this.$M=y.getMonth(),this.$D=y.getDate(),this.$W=y.getDay(),this.$H=y.getHours(),this.$m=y.getMinutes(),this.$s=y.getSeconds(),this.$ms=y.getMilliseconds()},x.$utils=function(){return j},x.isValid=function(){return this.$d.toString()!==p},x.isSame=function(y,O){var k=V(y);return this.startOf(O)<=k&&k<=this.endOf(O)},x.isAfter=function(y,O){return V(y){"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.sanitizeUrl=ve.BLANK_URL=void 0;var zg=/^([^\w]*)(javascript|data|vbscript)/im,qg=/&#(\w+)(^\w|;)?/g,Wg=/&(newline|tab);/gi,dc=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,Ug=/^.+(:|:)/gim,Hg=[".","/"];ve.BLANK_URL="about:blank";function Yg(t){return Hg.indexOf(t[0])>-1}function jg(t){var e=t.replace(dc,"");return e.replace(qg,function(r,i){return String.fromCharCode(i)})}function Gg(t){if(!t)return ve.BLANK_URL;var e=jg(t).replace(Wg,"").replace(dc,"").trim();if(!e)return ve.BLANK_URL;if(Yg(e))return e;var r=e.match(Ug);if(!r)return e;var i=r[0];return zg.test(i)?ve.BLANK_URL:e}ve.sanitizeUrl=Gg});function fc(t){for(var e=[],r=1;r=i)&&(r=i);else{let i=-1;for(let o of t)(o=e(o,++i,t))!=null&&(r=o)&&(r=o)}return r}function xc(t,e){let r;if(e===void 0)for(let i of t)i!=null&&(r>i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let o of t)(o=e(o,++i,t))!=null&&(r>o||r===void 0&&o>=o)&&(r=o)}return r}function sr(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}function Ma(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}function lr(t){let e,r,i;t.length!==2?(e=sr,r=(s,l)=>sr(t(s),l),i=(s,l)=>t(s)-l):(e=t===sr||t===Ma?t:Vg,r=t,i=t);function o(s,l,c=0,h=s.length){if(c>>1;r(s[f],l)<0?c=f+1:h=f}while(c>>1;r(s[f],l)<=0?c=f+1:h=f}while(cc&&i(s[f-1],l)>-i(s[f],l)?f-1:f}return{left:o,center:a,right:n}}function Vg(){return 0}function Ea(t){return t===null?NaN:+t}var yc=lr(sr),_c=yc.right,Xg=yc.left,Kg=lr(Ea).center,Oa=_c;var qr=class extends Map{constructor(e,r=Jg){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(let[i,o]of e)this.set(i,o)}get(e){return super.get(Cc(this,e))}has(e){return super.has(Cc(this,e))}set(e,r){return super.set(Zg(this,e),r)}delete(e){return super.delete(Qg(this,e))}};function Cc({_intern:t,_key:e},r){let i=e(r);return t.has(i)?t.get(i):r}function Zg({_intern:t,_key:e},r){let i=e(r);return t.has(i)?t.get(i):(t.set(i,r),r)}function Qg({_intern:t,_key:e},r){let i=e(r);return t.has(i)&&(r=t.get(i),t.delete(i)),r}function Jg(t){return t!==null&&typeof t=="object"?t.valueOf():t}var t0=Math.sqrt(50),e0=Math.sqrt(10),r0=Math.sqrt(2);function Mo(t,e,r){let i=(e-t)/Math.max(0,r),o=Math.floor(Math.log10(i)),n=i/Math.pow(10,o),a=n>=t0?10:n>=e0?5:n>=r0?2:1,s,l,c;return o<0?(c=Math.pow(10,-o)/a,s=Math.round(t*c),l=Math.round(e*c),s/ce&&--l,c=-c):(c=Math.pow(10,o)*a,s=Math.round(t/c),l=Math.round(e/c),s*ce&&--l),l0))return[];if(t===e)return[t];let i=e=o))return[];let s=n-o+1,l=new Array(s);if(i)if(a<0)for(let c=0;c+t(e)}function a0(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function s0(){return!this.__axis}function vc(t,e){var r=[],i=null,o=null,n=6,a=6,s=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,c=t===Do||t===Io?-1:1,h=t===Io||t===Ia?"x":"y",f=t===Do||t===Da?i0:o0;function u(p){var g=i??(e.ticks?e.ticks.apply(e,r):e.domain()),_=o??(e.tickFormat?e.tickFormat.apply(e,r):bc),T=Math.max(n,0)+s,w=e.range(),C=+w[0]+l,E=+w[w.length-1]+l,v=(e.bandwidth?a0:n0)(e.copy(),l),D=p.selection?p.selection():p,A=D.selectAll(".domain").data([null]),M=D.selectAll(".tick").data(g,e).order(),V=M.exit(),j=M.enter().append("g").attr("class","tick"),ot=M.select("line"),I=M.select("text");A=A.merge(A.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),M=M.merge(j),ot=ot.merge(j.append("line").attr("stroke","currentColor").attr(h+"2",c*n)),I=I.merge(j.append("text").attr("fill","currentColor").attr(h,c*T).attr("dy",t===Do?"0em":t===Da?"0.71em":"0.32em")),p!==D&&(A=A.transition(p),M=M.transition(p),ot=ot.transition(p),I=I.transition(p),V=V.transition(p).attr("opacity",Tc).attr("transform",function(B){return isFinite(B=v(B))?f(B+l):this.getAttribute("transform")}),j.attr("opacity",Tc).attr("transform",function(B){var x=this.parentNode.__axis;return f((x&&isFinite(x=x(B))?x:v(B))+l)})),V.remove(),A.attr("d",t===Io||t===Ia?a?"M"+c*a+","+C+"H"+l+"V"+E+"H"+c*a:"M"+l+","+C+"V"+E:a?"M"+C+","+c*a+"V"+l+"H"+E+"V"+c*a:"M"+C+","+l+"H"+E),M.attr("opacity",1).attr("transform",function(B){return f(v(B)+l)}),ot.attr(h+"2",c*n),I.attr(h,c*T).text(_),D.filter(s0).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Ia?"start":t===Io?"end":"middle"),D.each(function(){this.__axis=v})}return u.scale=function(p){return arguments.length?(e=p,u):e},u.ticks=function(){return r=Array.from(arguments),u},u.tickArguments=function(p){return arguments.length?(r=p==null?[]:Array.from(p),u):r.slice()},u.tickValues=function(p){return arguments.length?(i=p==null?null:Array.from(p),u):i&&i.slice()},u.tickFormat=function(p){return arguments.length?(o=p,u):o},u.tickSize=function(p){return arguments.length?(n=a=+p,u):n},u.tickSizeInner=function(p){return arguments.length?(n=+p,u):n},u.tickSizeOuter=function(p){return arguments.length?(a=+p,u):a},u.tickPadding=function(p){return arguments.length?(s=+p,u):s},u.offset=function(p){return arguments.length?(l=+p,u):l},u}function l0(t){return vc(Do,t)}function c0(t){return vc(Da,t)}function u0(){}function cr(t){return t==null?u0:function(){return this.querySelector(t)}}function kc(t){typeof t!="function"&&(t=cr(t));for(var e=this._groups,r=e.length,i=new Array(r),o=0;o=E&&(E=C+1);!(D=T[E])&&++E=0;)(a=i[o])&&(n&&a.compareDocumentPosition(n)^4&&n.parentNode.insertBefore(a,n),n=a);return this}function Nc(t){t||(t=v0);function e(f,u){return f&&u?t(f.__data__,u.__data__):!f-!u}for(var r=this._groups,i=r.length,o=new Array(i),n=0;ne?1:t>=e?0:NaN}function Rc(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Pc(){return Array.from(this)}function $c(){for(var t=this._groups,e=0,r=t.length;e=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),Na.hasOwnProperty(e)?{space:Na[e],local:t}:t}function k0(t){return function(){this.removeAttribute(t)}}function S0(t){return function(){this.removeAttributeNS(t.space,t.local)}}function w0(t,e){return function(){this.setAttribute(t,e)}}function A0(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function B0(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function F0(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function Uc(t,e){var r=ke(t);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((e==null?r.local?S0:k0:typeof e=="function"?r.local?F0:B0:r.local?A0:w0)(r,e))}function $o(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function L0(t){return function(){this.style.removeProperty(t)}}function M0(t,e,r){return function(){this.style.setProperty(t,e,r)}}function E0(t,e,r){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,r)}}function Hc(t,e,r){return arguments.length>1?this.each((e==null?L0:typeof e=="function"?E0:M0)(t,e,r??"")):$e(this.node(),t)}function $e(t,e){return t.style.getPropertyValue(e)||$o(t).getComputedStyle(t,null).getPropertyValue(e)}function O0(t){return function(){delete this[t]}}function I0(t,e){return function(){this[t]=e}}function D0(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function Yc(t,e){return arguments.length>1?this.each((e==null?O0:typeof e=="function"?D0:I0)(t,e)):this.node()[t]}function jc(t){return t.trim().split(/^|\s+/)}function Ra(t){return t.classList||new Gc(t)}function Gc(t){this._node=t,this._names=jc(t.getAttribute("class")||"")}Gc.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Vc(t,e){for(var r=Ra(t),i=-1,o=e.length;++i=0&&(r=e.slice(i+1),e=e.slice(0,i)),{type:e,name:r}})}function ex(t){return function(){var e=this.__on;if(e){for(var r=0,i=-1,o=e.length,n;r>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?qo(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?qo(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=lx.exec(t))?new At(e[1],e[2],e[3],1):(e=cx.exec(t))?new At(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=ux.exec(t))?qo(e[1],e[2],e[3],e[4]):(e=hx.exec(t))?qo(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=fx.exec(t))?xu(e[1],e[2]/100,e[3]/100,1):(e=px.exec(t))?xu(e[1],e[2]/100,e[3]/100,e[4]):hu.hasOwnProperty(t)?du(hu[t]):t==="transparent"?new At(NaN,NaN,NaN,0):null}function du(t){return new At(t>>16&255,t>>8&255,t&255,1)}function qo(t,e,r,i){return i<=0&&(t=e=r=NaN),new At(t,e,r,i)}function $a(t){return t instanceof ze||(t=ne(t)),t?(t=t.rgb(),new At(t.r,t.g,t.b,t.opacity)):new At}function Yr(t,e,r,i){return arguments.length===1?$a(t):new At(t,e,r,i??1)}function At(t,e,r,i){this.r=+t,this.g=+e,this.b=+r,this.opacity=+i}ur(At,Yr,Ur(ze,{brighter(t){return t=t==null?Uo:Math.pow(Uo,t),new At(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Ni:Math.pow(Ni,t),new At(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new At(fr(this.r),fr(this.g),fr(this.b),Ho(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:mu,formatHex:mu,formatHex8:gx,formatRgb:gu,toString:gu}));function mu(){return`#${hr(this.r)}${hr(this.g)}${hr(this.b)}`}function gx(){return`#${hr(this.r)}${hr(this.g)}${hr(this.b)}${hr((isNaN(this.opacity)?1:this.opacity)*255)}`}function gu(){let t=Ho(this.opacity);return`${t===1?"rgb(":"rgba("}${fr(this.r)}, ${fr(this.g)}, ${fr(this.b)}${t===1?")":`, ${t})`}`}function Ho(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function fr(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function hr(t){return t=fr(t),(t<16?"0":"")+t.toString(16)}function xu(t,e,r,i){return i<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new oe(t,e,r,i)}function _u(t){if(t instanceof oe)return new oe(t.h,t.s,t.l,t.opacity);if(t instanceof ze||(t=ne(t)),!t)return new oe;if(t instanceof oe)return t;t=t.rgb();var e=t.r/255,r=t.g/255,i=t.b/255,o=Math.min(e,r,i),n=Math.max(e,r,i),a=NaN,s=n-o,l=(n+o)/2;return s?(e===n?a=(r-i)/s+(r0&&l<1?0:a,new oe(a,s,l,t.opacity)}function Cu(t,e,r,i){return arguments.length===1?_u(t):new oe(t,e,r,i??1)}function oe(t,e,r,i){this.h=+t,this.s=+e,this.l=+r,this.opacity=+i}ur(oe,Cu,Ur(ze,{brighter(t){return t=t==null?Uo:Math.pow(Uo,t),new oe(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Ni:Math.pow(Ni,t),new oe(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*e,o=2*r-i;return new At(Pa(t>=240?t-240:t+120,o,i),Pa(t,o,i),Pa(t<120?t+240:t-120,o,i),this.opacity)},clamp(){return new oe(yu(this.h),Wo(this.s),Wo(this.l),Ho(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(){let t=Ho(this.opacity);return`${t===1?"hsl(":"hsla("}${yu(this.h)}, ${Wo(this.s)*100}%, ${Wo(this.l)*100}%${t===1?")":`, ${t})`}`}}));function yu(t){return t=(t||0)%360,t<0?t+360:t}function Wo(t){return Math.max(0,Math.min(1,t||0))}function Pa(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}var bu=Math.PI/180,Tu=180/Math.PI;var Yo=18,vu=.96422,ku=1,Su=.82521,wu=4/29,jr=6/29,Au=3*jr*jr,xx=jr*jr*jr;function Bu(t){if(t instanceof pe)return new pe(t.l,t.a,t.b,t.opacity);if(t instanceof we)return Fu(t);t instanceof At||(t=$a(t));var e=Ua(t.r),r=Ua(t.g),i=Ua(t.b),o=za((.2225045*e+.7168786*r+.0606169*i)/ku),n,a;return e===r&&r===i?n=a=o:(n=za((.4360747*e+.3850649*r+.1430804*i)/vu),a=za((.0139322*e+.0971045*r+.7141733*i)/Su)),new pe(116*o-16,500*(n-o),200*(o-a),t.opacity)}function Ha(t,e,r,i){return arguments.length===1?Bu(t):new pe(t,e,r,i??1)}function pe(t,e,r,i){this.l=+t,this.a=+e,this.b=+r,this.opacity=+i}ur(pe,Ha,Ur(ze,{brighter(t){return new pe(this.l+Yo*(t??1),this.a,this.b,this.opacity)},darker(t){return new pe(this.l-Yo*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return e=vu*qa(e),t=ku*qa(t),r=Su*qa(r),new At(Wa(3.1338561*e-1.6168667*t-.4906146*r),Wa(-.9787684*e+1.9161415*t+.033454*r),Wa(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}}));function za(t){return t>xx?Math.pow(t,1/3):t/Au+wu}function qa(t){return t>jr?t*t*t:Au*(t-wu)}function Wa(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Ua(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function yx(t){if(t instanceof we)return new we(t.h,t.c,t.l,t.opacity);if(t instanceof pe||(t=Bu(t)),t.a===0&&t.b===0)return new we(NaN,0()=>t;function Lu(t,e){return function(r){return t+r*e}}function _x(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(i){return Math.pow(t+i*e,r)}}function Mu(t,e){var r=e-t;return r?Lu(t,r>180||r<-180?r-360*Math.round(r/360):r):Gr(isNaN(t)?e:t)}function Eu(t){return(t=+t)==1?Ae:function(e,r){return r-e?_x(e,r,t):Gr(isNaN(e)?r:e)}}function Ae(t,e){var r=e-t;return r?Lu(t,r):Gr(isNaN(t)?e:t)}function Ou(t){return function(e,r){var i=t((e=Pi(e)).h,(r=Pi(r)).h),o=Ae(e.c,r.c),n=Ae(e.l,r.l),a=Ae(e.opacity,r.opacity);return function(s){return e.h=i(s),e.c=o(s),e.l=n(s),e.opacity=a(s),e+""}}}var Cx=Ou(Mu),bx=Ou(Ae);function Ya(t,e,r,i,o){var n=t*t,a=n*t;return((1-3*t+3*n-a)*e+(4-6*n+3*a)*r+(1+3*t+3*n-3*a)*i+a*o)/6}function Iu(t){var e=t.length-1;return function(r){var i=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),o=t[i],n=t[i+1],a=i>0?t[i-1]:2*o-n,s=ir&&(n=e.slice(r,n),s[a]?s[a]+=n:s[++a]=n),(i=i[0])===(o=o[0])?s[a]?s[a]+=o:s[++a]=o:(s[++a]=null,l.push({i:a,x:Bt(i,o)})),r=ja.lastIndex;return r180?h+=360:h-c>180&&(c+=360),u.push({i:f.push(o(f)+"rotate(",null,i)-2,x:Bt(c,h)})):h&&f.push(o(f)+"rotate("+h+i)}function s(c,h,f,u){c!==h?u.push({i:f.push(o(f)+"skewX(",null,i)-2,x:Bt(c,h)}):h&&f.push(o(f)+"skewX("+h+i)}function l(c,h,f,u,p,g){if(c!==f||h!==u){var _=p.push(o(p)+"scale(",null,",",null,")");g.push({i:_-4,x:Bt(c,f)},{i:_-2,x:Bt(h,u)})}else(f!==1||u!==1)&&p.push(o(p)+"scale("+f+","+u+")")}return function(c,h){var f=[],u=[];return c=t(c),h=t(h),n(c.translateX,c.translateY,h.translateX,h.translateY,f,u),a(c.rotate,h.rotate,f,u),s(c.skewX,h.skewX,f,u),l(c.scaleX,c.scaleY,h.scaleX,h.scaleY,f,u),c=h=null,function(p){for(var g=-1,_=u.length,T;++g<_;)f[(T=u[g]).i]=T.x(p);return f.join("")}}}var Ka=Yu(Uu,"px, ","px)","deg)"),Za=Yu(Hu,", ",")",")");function qe(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}var Qa=Symbol("implicit");function zi(){var t=new qr,e=[],r=[],i=Qa;function o(n){let a=t.get(n);if(a===void 0){if(i!==Qa)return i;t.set(n,a=e.push(n)-1)}return r[a%r.length]}return o.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new qr;for(let a of n)t.has(a)||t.set(a,e.push(a)-1);return o},o.range=function(n){return arguments.length?(r=Array.from(n),o):r.slice()},o.unknown=function(n){return arguments.length?(i=n,o):i},o.copy=function(){return zi(e,r).unknown(i)},qe.apply(o,arguments),o}function Ja(){var t=zi().unknown(void 0),e=t.domain,r=t.range,i=0,o=1,n,a,s=!1,l=0,c=0,h=.5;delete t.unknown;function f(){var u=e().length,p=oe&&(r=t,t=e,e=r),function(i){return Math.max(t,Math.min(e,i))}}function Ax(t,e,r){var i=t[0],o=t[1],n=e[0],a=e[1];return o2?Bx:Ax,l=c=null,f}function f(u){return u==null||isNaN(u=+u)?n:(l||(l=s(t.map(i),e,r)))(i(a(u)))}return f.invert=function(u){return a(o((c||(c=s(e,t.map(i),Bt)))(u)))},f.domain=function(u){return arguments.length?(t=Array.from(u,es),h()):t.slice()},f.range=function(u){return arguments.length?(e=Array.from(u),h()):e.slice()},f.rangeRound=function(u){return e=Array.from(u),r=Va,h()},f.clamp=function(u){return arguments.length?(a=u?!0:Vr,h()):a!==Vr},f.interpolate=function(u){return arguments.length?(r=u,h()):r},f.unknown=function(u){return arguments.length?(n=u,f):n},function(u,p){return i=u,o=p,h()}}function qi(){return Fx()(Vr,Vr)}function Gu(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function mr(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,i=t.slice(0,r);return[i.length>1?i[0]+i.slice(2):i,+t.slice(r+1)]}function de(t){return t=mr(Math.abs(t)),t?t[1]:NaN}function Vu(t,e){return function(r,i){for(var o=r.length,n=[],a=0,s=t[0],l=0;o>0&&s>0&&(l+s+1>i&&(s=Math.max(1,i-l)),n.push(r.substring(o-=s,o+s)),!((l+=s+1)>i));)s=t[a=(a+1)%t.length];return n.reverse().join(e)}}function Xu(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var Lx=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function We(t){if(!(e=Lx.exec(t)))throw new Error("invalid format: "+t);var e;return new Xo({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}We.prototype=Xo.prototype;function Xo(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}Xo.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 Ku(t){t:for(var e=t.length,r=1,i=-1,o;r0&&(i=0);break}return i>0?t.slice(0,i)+t.slice(o+1):t}var is;function Zu(t,e){var r=mr(t,e);if(!r)return t+"";var i=r[0],o=r[1],n=o-(is=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,a=i.length;return n===a?i:n>a?i+new Array(n-a+1).join("0"):n>0?i.slice(0,n)+"."+i.slice(n):"0."+new Array(1-n).join("0")+mr(t,Math.max(0,e+n-1))[0]}function os(t,e){var r=mr(t,e);if(!r)return t+"";var i=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}var ns={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Gu,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>os(t*100,e),r:os,s:Zu,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function as(t){return t}var Qu=Array.prototype.map,Ju=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function th(t){var e=t.grouping===void 0||t.thousands===void 0?as:Vu(Qu.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",i=t.currency===void 0?"":t.currency[1]+"",o=t.decimal===void 0?".":t.decimal+"",n=t.numerals===void 0?as:Xu(Qu.call(t.numerals,String)),a=t.percent===void 0?"%":t.percent+"",s=t.minus===void 0?"\u2212":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function c(f){f=We(f);var u=f.fill,p=f.align,g=f.sign,_=f.symbol,T=f.zero,w=f.width,C=f.comma,E=f.precision,v=f.trim,D=f.type;D==="n"?(C=!0,D="g"):ns[D]||(E===void 0&&(E=12),v=!0,D="g"),(T||u==="0"&&p==="=")&&(T=!0,u="0",p="=");var A=_==="$"?r:_==="#"&&/[boxX]/.test(D)?"0"+D.toLowerCase():"",M=_==="$"?i:/[%p]/.test(D)?a:"",V=ns[D],j=/[defgprs%]/.test(D);E=E===void 0?6:/[gprs]/.test(D)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function ot(I){var B=A,x=M,y,O,k;if(D==="c")x=V(I)+x,I="";else{I=+I;var P=I<0||1/I<0;if(I=isNaN(I)?l:V(Math.abs(I),E),v&&(I=Ku(I)),P&&+I==0&&g!=="+"&&(P=!1),B=(P?g==="("?g:s:g==="-"||g==="("?"":g)+B,x=(D==="s"?Ju[8+is/3]:"")+x+(P&&g==="("?")":""),j){for(y=-1,O=I.length;++yk||k>57){x=(k===46?o+I.slice(y+1):I.slice(y))+x,I=I.slice(0,y);break}}}C&&!T&&(I=e(I,1/0));var N=B.length+I.length+x.length,U=N>1)+B+I+x+U.slice(N);break;default:I=U+B+I+x;break}return n(I)}return ot.toString=function(){return f+""},ot}function h(f,u){var p=c((f=We(f),f.type="f",f)),g=Math.max(-8,Math.min(8,Math.floor(de(u)/3)))*3,_=Math.pow(10,-g),T=Ju[8+g/3];return function(w){return p(_*w)+T}}return{format:c,formatPrefix:h}}var Ko,Zo,Qo;ss({thousands:",",grouping:[3],currency:["$",""]});function ss(t){return Ko=th(t),Zo=Ko.format,Qo=Ko.formatPrefix,Ko}function ls(t){return Math.max(0,-de(Math.abs(t)))}function cs(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(de(e)/3)))*3-de(Math.abs(t)))}function us(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,de(e)-de(t))+1}function hs(t,e,r,i){var o=Wr(t,e,r),n;switch(i=We(i??",f"),i.type){case"s":{var a=Math.max(Math.abs(t),Math.abs(e));return i.precision==null&&!isNaN(n=cs(o,a))&&(i.precision=n),Qo(i,a)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(n=us(o,Math.max(Math.abs(t),Math.abs(e))))&&(i.precision=n-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(n=ls(o))&&(i.precision=n-(i.type==="%")*2);break}}return Zo(i)}function Mx(t){var e=t.domain;return t.ticks=function(r){var i=e();return Eo(i[0],i[i.length-1],r??10)},t.tickFormat=function(r,i){var o=e();return hs(o[0],o[o.length-1],r??10,i)},t.nice=function(r){r==null&&(r=10);var i=e(),o=0,n=i.length-1,a=i[o],s=i[n],l,c,h=10;for(s0;){if(c=Li(a,s,r),c===l)return i[o]=a,i[n]=s,e(i);if(c>0)a=Math.floor(a/c)*c,s=Math.ceil(s/c)*c;else if(c<0)a=Math.ceil(a*c)/c,s=Math.floor(s*c)/c;else break;l=c}return t},t}function fs(){var t=qi();return t.copy=function(){return Vo(t,fs())},qe.apply(t,arguments),Mx(t)}var ps=new Date,ds=new Date;function nt(t,e,r,i){function o(n){return t(n=arguments.length===0?new Date:new Date(+n)),n}return o.floor=n=>(t(n=new Date(+n)),n),o.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),o.round=n=>{let a=o(n),s=o.ceil(n);return n-a(e(n=new Date(+n),a==null?1:Math.floor(a)),n),o.range=(n,a,s)=>{let l=[];if(n=o.ceil(n),s=s==null?1:Math.floor(s),!(n0))return l;let c;do l.push(c=new Date(+n)),e(n,s),t(n);while(cnt(a=>{if(a>=a)for(;t(a),!n(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;e(a,-1),!n(a););else for(;--s>=0;)for(;e(a,1),!n(a););}),r&&(o.count=(n,a)=>(ps.setTime(+n),ds.setTime(+a),t(ps),t(ds),Math.floor(r(ps,ds))),o.every=n=>(n=Math.floor(n),!isFinite(n)||!(n>0)?null:n>1?o.filter(i?a=>i(a)%n===0:a=>o.count(0,a)%n===0):o)),o}var gr=nt(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);gr.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?nt(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):gr);var eh=gr.range;var me=nt(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*1e3)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds()),rh=me.range;var Xr=nt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getMinutes()),Ex=Xr.range,Jo=nt(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes()),Ox=Jo.range;var Kr=nt(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3-t.getMinutes()*6e4)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getHours()),Ix=Kr.range,tn=nt(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours()),Dx=tn.range;var Be=nt(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1),Nx=Be.range,Ui=nt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1),Rx=Ui.range,en=nt(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5)),Px=en.range;function _r(t){return nt(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,r)=>{e.setDate(e.getDate()+r*7)},(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}var Fe=_r(0),Zr=_r(1),oh=_r(2),nh=_r(3),Ue=_r(4),ah=_r(5),sh=_r(6),lh=Fe.range,$x=Zr.range,zx=oh.range,qx=nh.range,Wx=Ue.range,Ux=ah.range,Hx=sh.range;function Cr(t){return nt(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r*7)},(e,r)=>(r-e)/6048e5)}var br=Cr(0),Qr=Cr(1),ch=Cr(2),uh=Cr(3),He=Cr(4),hh=Cr(5),fh=Cr(6),ph=br.range,Yx=Qr.range,jx=ch.range,Gx=uh.range,Vx=He.range,Xx=hh.range,Kx=fh.range;var Jr=nt(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth()),Zx=Jr.range,rn=nt(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth()),Qx=rn.range;var Vt=nt(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());Vt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:nt(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)});var Jx=Vt.range,ae=nt(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());ae.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:nt(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)});var ty=ae.range;function mh(t,e,r,i,o,n){let a=[[me,1,1e3],[me,5,5*1e3],[me,15,15*1e3],[me,30,30*1e3],[n,1,6e4],[n,5,5*6e4],[n,15,15*6e4],[n,30,30*6e4],[o,1,36e5],[o,3,3*36e5],[o,6,6*36e5],[o,12,12*36e5],[i,1,864e5],[i,2,2*864e5],[r,1,6048e5],[e,1,2592e6],[e,3,3*2592e6],[t,1,31536e6]];function s(c,h,f){let u=hT).right(a,u);if(p===a.length)return t.every(Wr(c/31536e6,h/31536e6,f));if(p===0)return gr.every(Math.max(Wr(c,h,f),1));let[g,_]=a[u/a[p-1][2]53)return null;"w"in b||(b.w=1),"Z"in b?(et=ys(Hi(b.y,0,1)),kt=et.getUTCDay(),et=kt>4||kt===0?Qr.ceil(et):Qr(et),et=Ui.offset(et,(b.V-1)*7),b.y=et.getUTCFullYear(),b.m=et.getUTCMonth(),b.d=et.getUTCDate()+(b.w+6)%7):(et=xs(Hi(b.y,0,1)),kt=et.getDay(),et=kt>4||kt===0?Zr.ceil(et):Zr(et),et=Be.offset(et,(b.V-1)*7),b.y=et.getFullYear(),b.m=et.getMonth(),b.d=et.getDate()+(b.w+6)%7)}else("W"in b||"U"in b)&&("w"in b||(b.w="u"in b?b.u%7:"W"in b?1:0),kt="Z"in b?ys(Hi(b.y,0,1)).getUTCDay():xs(Hi(b.y,0,1)).getDay(),b.m=0,b.d="W"in b?(b.w+6)%7+b.W*7-(kt+5)%7:b.w+b.U*7-(kt+6)%7);return"Z"in b?(b.H+=b.Z/100|0,b.M+=b.Z%100,ys(b)):xs(b)}}function V(L,G,K,b){for(var yt=0,et=G.length,kt=K.length,St,qt;yt=kt)return-1;if(St=G.charCodeAt(yt++),St===37){if(St=G.charAt(yt++),qt=D[St in gh?G.charAt(yt++):St],!qt||(b=qt(L,K,b))<0)return-1}else if(St!=K.charCodeAt(b++))return-1}return b}function j(L,G,K){var b=c.exec(G.slice(K));return b?(L.p=h.get(b[0].toLowerCase()),K+b[0].length):-1}function ot(L,G,K){var b=p.exec(G.slice(K));return b?(L.w=g.get(b[0].toLowerCase()),K+b[0].length):-1}function I(L,G,K){var b=f.exec(G.slice(K));return b?(L.w=u.get(b[0].toLowerCase()),K+b[0].length):-1}function B(L,G,K){var b=w.exec(G.slice(K));return b?(L.m=C.get(b[0].toLowerCase()),K+b[0].length):-1}function x(L,G,K){var b=_.exec(G.slice(K));return b?(L.m=T.get(b[0].toLowerCase()),K+b[0].length):-1}function y(L,G,K){return V(L,e,G,K)}function O(L,G,K){return V(L,r,G,K)}function k(L,G,K){return V(L,i,G,K)}function P(L){return a[L.getDay()]}function N(L){return n[L.getDay()]}function U(L){return l[L.getMonth()]}function it(L){return s[L.getMonth()]}function X(L){return o[+(L.getHours()>=12)]}function at(L){return 1+~~(L.getMonth()/3)}function Q(L){return a[L.getUTCDay()]}function It(L){return n[L.getUTCDay()]}function Z(L){return l[L.getUTCMonth()]}function Tt(L){return s[L.getUTCMonth()]}function vt(L){return o[+(L.getUTCHours()>=12)]}function ht(L){return 1+~~(L.getUTCMonth()/3)}return{format:function(L){var G=A(L+="",E);return G.toString=function(){return L},G},parse:function(L){var G=M(L+="",!1);return G.toString=function(){return L},G},utcFormat:function(L){var G=A(L+="",v);return G.toString=function(){return L},G},utcParse:function(L){var G=M(L+="",!0);return G.toString=function(){return L},G}}}var gh={"-":"",_:" ",0:"0"},Ct=/^\s*\d+/,oy=/^%/,ny=/[\\^$*+?|[\]().{}]/g;function rt(t,e,r){var i=t<0?"-":"",o=(i?-t:t)+"",n=o.length;return i+(n[e.toLowerCase(),r]))}function sy(t,e,r){var i=Ct.exec(e.slice(r,r+1));return i?(t.w=+i[0],r+i[0].length):-1}function ly(t,e,r){var i=Ct.exec(e.slice(r,r+1));return i?(t.u=+i[0],r+i[0].length):-1}function cy(t,e,r){var i=Ct.exec(e.slice(r,r+2));return i?(t.U=+i[0],r+i[0].length):-1}function uy(t,e,r){var i=Ct.exec(e.slice(r,r+2));return i?(t.V=+i[0],r+i[0].length):-1}function hy(t,e,r){var i=Ct.exec(e.slice(r,r+2));return i?(t.W=+i[0],r+i[0].length):-1}function xh(t,e,r){var i=Ct.exec(e.slice(r,r+4));return i?(t.y=+i[0],r+i[0].length):-1}function yh(t,e,r){var i=Ct.exec(e.slice(r,r+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),r+i[0].length):-1}function fy(t,e,r){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),r+i[0].length):-1}function py(t,e,r){var i=Ct.exec(e.slice(r,r+1));return i?(t.q=i[0]*3-3,r+i[0].length):-1}function dy(t,e,r){var i=Ct.exec(e.slice(r,r+2));return i?(t.m=i[0]-1,r+i[0].length):-1}function _h(t,e,r){var i=Ct.exec(e.slice(r,r+2));return i?(t.d=+i[0],r+i[0].length):-1}function my(t,e,r){var i=Ct.exec(e.slice(r,r+3));return i?(t.m=0,t.d=+i[0],r+i[0].length):-1}function Ch(t,e,r){var i=Ct.exec(e.slice(r,r+2));return i?(t.H=+i[0],r+i[0].length):-1}function gy(t,e,r){var i=Ct.exec(e.slice(r,r+2));return i?(t.M=+i[0],r+i[0].length):-1}function xy(t,e,r){var i=Ct.exec(e.slice(r,r+2));return i?(t.S=+i[0],r+i[0].length):-1}function yy(t,e,r){var i=Ct.exec(e.slice(r,r+3));return i?(t.L=+i[0],r+i[0].length):-1}function _y(t,e,r){var i=Ct.exec(e.slice(r,r+6));return i?(t.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function Cy(t,e,r){var i=oy.exec(e.slice(r,r+1));return i?r+i[0].length:-1}function by(t,e,r){var i=Ct.exec(e.slice(r));return i?(t.Q=+i[0],r+i[0].length):-1}function Ty(t,e,r){var i=Ct.exec(e.slice(r));return i?(t.s=+i[0],r+i[0].length):-1}function bh(t,e){return rt(t.getDate(),e,2)}function vy(t,e){return rt(t.getHours(),e,2)}function ky(t,e){return rt(t.getHours()%12||12,e,2)}function Sy(t,e){return rt(1+Be.count(Vt(t),t),e,3)}function wh(t,e){return rt(t.getMilliseconds(),e,3)}function wy(t,e){return wh(t,e)+"000"}function Ay(t,e){return rt(t.getMonth()+1,e,2)}function By(t,e){return rt(t.getMinutes(),e,2)}function Fy(t,e){return rt(t.getSeconds(),e,2)}function Ly(t){var e=t.getDay();return e===0?7:e}function My(t,e){return rt(Fe.count(Vt(t)-1,t),e,2)}function Ah(t){var e=t.getDay();return e>=4||e===0?Ue(t):Ue.ceil(t)}function Ey(t,e){return t=Ah(t),rt(Ue.count(Vt(t),t)+(Vt(t).getDay()===4),e,2)}function Oy(t){return t.getDay()}function Iy(t,e){return rt(Zr.count(Vt(t)-1,t),e,2)}function Dy(t,e){return rt(t.getFullYear()%100,e,2)}function Ny(t,e){return t=Ah(t),rt(t.getFullYear()%100,e,2)}function Ry(t,e){return rt(t.getFullYear()%1e4,e,4)}function Py(t,e){var r=t.getDay();return t=r>=4||r===0?Ue(t):Ue.ceil(t),rt(t.getFullYear()%1e4,e,4)}function $y(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+rt(e/60|0,"0",2)+rt(e%60,"0",2)}function Th(t,e){return rt(t.getUTCDate(),e,2)}function zy(t,e){return rt(t.getUTCHours(),e,2)}function qy(t,e){return rt(t.getUTCHours()%12||12,e,2)}function Wy(t,e){return rt(1+Ui.count(ae(t),t),e,3)}function Bh(t,e){return rt(t.getUTCMilliseconds(),e,3)}function Uy(t,e){return Bh(t,e)+"000"}function Hy(t,e){return rt(t.getUTCMonth()+1,e,2)}function Yy(t,e){return rt(t.getUTCMinutes(),e,2)}function jy(t,e){return rt(t.getUTCSeconds(),e,2)}function Gy(t){var e=t.getUTCDay();return e===0?7:e}function Vy(t,e){return rt(br.count(ae(t)-1,t),e,2)}function Fh(t){var e=t.getUTCDay();return e>=4||e===0?He(t):He.ceil(t)}function Xy(t,e){return t=Fh(t),rt(He.count(ae(t),t)+(ae(t).getUTCDay()===4),e,2)}function Ky(t){return t.getUTCDay()}function Zy(t,e){return rt(Qr.count(ae(t)-1,t),e,2)}function Qy(t,e){return rt(t.getUTCFullYear()%100,e,2)}function Jy(t,e){return t=Fh(t),rt(t.getUTCFullYear()%100,e,2)}function t_(t,e){return rt(t.getUTCFullYear()%1e4,e,4)}function e_(t,e){var r=t.getUTCDay();return t=r>=4||r===0?He(t):He.ceil(t),rt(t.getUTCFullYear()%1e4,e,4)}function r_(){return"+0000"}function vh(){return"%"}function kh(t){return+t}function Sh(t){return Math.floor(+t/1e3)}var ti,on,Lh,Mh,Eh;Cs({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 Cs(t){return ti=_s(t),on=ti.format,Lh=ti.parse,Mh=ti.utcFormat,Eh=ti.utcParse,ti}function bs(t,e){t=t.slice();var r=0,i=t.length-1,o=t[r],n=t[i],a;return n1?0:t<-1?ei:Math.acos(t)}function vs(t){return t>=1?Gi:t<=-1?-Gi:Math.asin(t)}var ks=Math.PI,Ss=2*ks,vr=1e-6,a_=Ss-vr;function Ph(t){this._+=t[0];for(let e=1,r=t.length;e=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Ph;let r=10**e;return function(i){this._+=i[0];for(let o=1,n=i.length;ovr)if(!(Math.abs(f*l-c*h)>vr)||!n)this._append`L${this._x1=e},${this._y1=r}`;else{let p=i-a,g=o-s,_=l*l+c*c,T=p*p+g*g,w=Math.sqrt(_),C=Math.sqrt(u),E=n*Math.tan((ks-Math.acos((_+u-T)/(2*w*C)))/2),v=E/C,D=E/w;Math.abs(v-1)>vr&&this._append`L${e+v*h},${r+v*f}`,this._append`A${n},${n},0,0,${+(f*p>h*g)},${this._x1=e+D*l},${this._y1=r+D*c}`}}arc(e,r,i,o,n,a){if(e=+e,r=+r,i=+i,a=!!a,i<0)throw new Error(`negative radius: ${i}`);let s=i*Math.cos(o),l=i*Math.sin(o),c=e+s,h=r+l,f=1^a,u=a?o-n:n-o;this._x1===null?this._append`M${c},${h}`:(Math.abs(this._x1-c)>vr||Math.abs(this._y1-h)>vr)&&this._append`L${c},${h}`,i&&(u<0&&(u=u%Ss+Ss),u>a_?this._append`A${i},${i},0,1,${f},${e-s},${r-l}A${i},${i},0,1,${f},${this._x1=c},${this._y1=h}`:u>vr&&this._append`A${i},${i},0,${+(u>=ks)},${f},${this._x1=e+i*Math.cos(n)},${this._y1=r+i*Math.sin(n)}`)}rect(e,r,i,o){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${i=+i}v${+o}h${-i}Z`}toString(){return this._}};function $h(){return new kr}$h.prototype=kr.prototype;function an(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(r==null)e=null;else{let i=Math.floor(r);if(!(i>=0))throw new RangeError(`invalid digits: ${r}`);e=i}return t},()=>new kr(e)}function l_(t){return t.innerRadius}function c_(t){return t.outerRadius}function u_(t){return t.startAngle}function h_(t){return t.endAngle}function f_(t){return t&&t.padAngle}function p_(t,e,r,i,o,n,a,s){var l=r-t,c=i-e,h=a-o,f=s-n,u=f*l-h*c;if(!(u*uy*y+O*O&&(V=ot,j=I),{cx:V,cy:j,x01:-h,y01:-f,x11:V*(o/D-1),y11:j*(o/D-1)}}function d_(){var t=l_,e=c_,r=ut(0),i=null,o=u_,n=h_,a=f_,s=null,l=an(c);function c(){var h,f,u=+t.apply(this,arguments),p=+e.apply(this,arguments),g=o.apply(this,arguments)-Gi,_=n.apply(this,arguments)-Gi,T=Ts(_-g),w=_>g;if(s||(s=h=l()),pbt))s.moveTo(0,0);else if(T>ri-bt)s.moveTo(p*Ye(g),p*se(g)),s.arc(0,0,p,g,_,!w),u>bt&&(s.moveTo(u*Ye(_),u*se(_)),s.arc(0,0,u,_,g,w));else{var C=g,E=_,v=g,D=_,A=T,M=T,V=a.apply(this,arguments)/2,j=V>bt&&(i?+i.apply(this,arguments):Tr(u*u+p*p)),ot=nn(Ts(p-u)/2,+r.apply(this,arguments)),I=ot,B=ot,x,y;if(j>bt){var O=vs(j/u*se(V)),k=vs(j/p*se(V));(A-=O*2)>bt?(O*=w?1:-1,v+=O,D-=O):(A=0,v=D=(g+_)/2),(M-=k*2)>bt?(k*=w?1:-1,C+=k,E-=k):(M=0,C=E=(g+_)/2)}var P=p*Ye(C),N=p*se(C),U=u*Ye(D),it=u*se(D);if(ot>bt){var X=p*Ye(E),at=p*se(E),Q=u*Ye(v),It=u*se(v),Z;if(Tbt?B>bt?(x=sn(Q,It,P,N,p,B,w),y=sn(X,at,U,it,p,B,w),s.moveTo(x.cx+x.x01,x.cy+x.y01),Bbt)||!(A>bt)?s.lineTo(U,it):I>bt?(x=sn(U,it,X,at,u,-I,w),y=sn(P,N,Q,It,u,-I,w),s.lineTo(x.cx+x.x01,x.cy+x.y01),It?1:e>=t?0:NaN}function Hh(t){return t}function g_(){var t=Hh,e=Uh,r=null,i=ut(0),o=ut(ri),n=ut(0);function a(s){var l,c=(s=ln(s)).length,h,f,u=0,p=new Array(c),g=new Array(c),_=+i.apply(this,arguments),T=Math.min(ri,Math.max(-ri,o.apply(this,arguments)-_)),w,C=Math.min(Math.abs(T)/c,n.apply(this,arguments)),E=C*(T<0?-1:1),v;for(l=0;l0&&(u+=v);for(e!=null?p.sort(function(D,A){return e(g[D],g[A])}):r!=null&&p.sort(function(D,A){return r(s[D],s[A])}),l=0,f=u?(T-c*E)/u:0;l0?v*f:0)+E,g[h]={data:s[h],index:l,value:v,startAngle:_,endAngle:w,padAngle:C};return g}return a.value=function(s){return arguments.length?(t=typeof s=="function"?s:ut(+s),a):t},a.sortValues=function(s){return arguments.length?(e=s,r=null,a):e},a.sort=function(s){return arguments.length?(r=s,e=null,a):r},a.startAngle=function(s){return arguments.length?(i=typeof s=="function"?s:ut(+s),a):i},a.endAngle=function(s){return arguments.length?(o=typeof s=="function"?s:ut(+s),a):o},a.padAngle=function(s){return arguments.length?(n=typeof s=="function"?s:ut(+s),a):n},a}function ii(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function Xi(t){this._context=t}Xi.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:ii(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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ii(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function ws(t){return new Xi(t)}var cn=class{constructor(e,r){this._context=e,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(e,r){switch(e=+e,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,r,e,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,e,this._y0,e,r);break}}this._x0=e,this._y0=r}};function As(t){return new cn(t,!0)}function Bs(t){return new cn(t,!1)}function Zt(){}function Yh(t){this._context=t}Yh.prototype={areaStart:Zt,areaEnd:Zt,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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:ii(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Fs(t){return new Yh(t)}function jh(t){this._context=t}jh.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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:ii(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Ls(t){return new jh(t)}function Gh(t,e){this._basis=new Xi(t),this._beta=e}Gh.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var i=t[0],o=e[0],n=t[r]-i,a=e[r]-o,s=-1,l;++s<=r;)l=s/r,this._basis.point(this._beta*t[s]+(1-this._beta)*(i+l*n),this._beta*e[s]+(1-this._beta)*(o+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Ms=function t(e){function r(i){return e===1?new Xi(i):new Gh(i,e)}return r.beta=function(i){return t(+i)},r}(.85);function oi(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function un(t,e){this._context=t,this._k=(1-e)/6}un.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:oi(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:oi(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Es=function t(e){function r(i){return new un(i,e)}return r.tension=function(i){return t(+i)},r}(0);function hn(t,e){this._context=t,this._k=(1-e)/6}hn.prototype={areaStart:Zt,areaEnd:Zt,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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:oi(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Os=function t(e){function r(i){return new hn(i,e)}return r.tension=function(i){return t(+i)},r}(0);function fn(t,e){this._context=t,this._k=(1-e)/6}fn.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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:oi(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Is=function t(e){function r(i){return new fn(i,e)}return r.tension=function(i){return t(+i)},r}(0);function Ki(t,e,r){var i=t._x1,o=t._y1,n=t._x2,a=t._y2;if(t._l01_a>bt){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,o=(o*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>bt){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);n=(n*c+t._x1*t._l23_2a-e*t._l12_2a)/h,a=(a*c+t._y1*t._l23_2a-r*t._l12_2a)/h}t._context.bezierCurveTo(i,o,n,a,t._x2,t._y2)}function Vh(t,e){this._context=t,this._alpha=e}Vh.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(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Ki(this,t,e);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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Ds=function t(e){function r(i){return e?new Vh(i,e):new un(i,0)}return r.alpha=function(i){return t(+i)},r}(.5);function Xh(t,e){this._context=t,this._alpha=e}Xh.prototype={areaStart:Zt,areaEnd:Zt,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(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Ki(this,t,e);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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Ns=function t(e){function r(i){return e?new Xh(i,e):new hn(i,0)}return r.alpha=function(i){return t(+i)},r}(.5);function Kh(t,e){this._context=t,this._alpha=e}Kh.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(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ki(this,t,e);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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Rs=function t(e){function r(i){return e?new Kh(i,e):new fn(i,0)}return r.alpha=function(i){return t(+i)},r}(.5);function Zh(t){this._context=t}Zh.prototype={areaStart:Zt,areaEnd:Zt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function Ps(t){return new Zh(t)}function Qh(t){return t<0?-1:1}function Jh(t,e,r){var i=t._x1-t._x0,o=e-t._x1,n=(t._y1-t._y0)/(i||o<0&&-0),a=(r-t._y1)/(o||i<0&&-0),s=(n*o+a*i)/(i+o);return(Qh(n)+Qh(a))*Math.min(Math.abs(n),Math.abs(a),.5*Math.abs(s))||0}function tf(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function $s(t,e,r){var i=t._x0,o=t._y0,n=t._x1,a=t._y1,s=(n-i)/3;t._context.bezierCurveTo(i+s,o+s*e,n-s,a-s*r,n,a)}function pn(t){this._context=t}pn.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:$s(this,this._t0,tf(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,$s(this,tf(this,r=Jh(this,t,e)),r);break;default:$s(this,this._t0,r=Jh(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}};function ef(t){this._context=new rf(t)}(ef.prototype=Object.create(pn.prototype)).point=function(t,e){pn.prototype.point.call(this,e,t)};function rf(t){this._context=t}rf.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,i,o,n){this._context.bezierCurveTo(e,t,i,r,n,o)}};function zs(t){return new pn(t)}function qs(t){return new ef(t)}function nf(t){this._context=t}nf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),r===2)this._context.lineTo(t[1],e[1]);else for(var i=of(t),o=of(e),n=0,a=1;a=0;--e)o[e]=(a[e]-o[e+1])/n[e];for(n[r-1]=(t[r]+o[r-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}break}}this._x=t,this._y=e}};function Us(t){return new dn(t,.5)}function Hs(t){return new dn(t,0)}function Ys(t){return new dn(t,1)}var x_={value:()=>{}};function sf(){for(var t=0,e=arguments.length,r={},i;t=0&&(i=r.slice(o+1),r=r.slice(0,o)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}mn.prototype=sf.prototype={constructor:mn,on:function(t,e){var r=this._,i=y_(t+"",r),o,n=-1,a=i.length;if(arguments.length<2){for(;++n0)for(var r=new Array(o),i=0,o,n;i=0&&t._call.call(void 0,e),t=t._next;--ni}function lf(){Sr=(xn=to.now())+yn,ni=Qi=0;try{hf()}finally{ni=0,T_(),Sr=0}}function b_(){var t=to.now(),e=t-xn;e>cf&&(yn-=e,xn=t)}function T_(){for(var t,e=gn,r,i=1/0;e;)e._call?(i>e._time&&(i=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:gn=r);Ji=t,Gs(i)}function Gs(t){if(!ni){Qi&&(Qi=clearTimeout(Qi));var e=t-Sr;e>24?(t<1/0&&(Qi=setTimeout(lf,t-to.now()-yn)),Zi&&(Zi=clearInterval(Zi))):(Zi||(xn=to.now(),Zi=setInterval(b_,cf)),ni=1,uf(lf))}}function Cn(t,e,r){var i=new eo;return e=e==null?0:+e,i.restart(o=>{i.stop(),t(o+e)},e,r),i}var v_=js("start","end","cancel","interrupt"),k_=[],df=0,ff=1,Tn=2,bn=3,pf=4,vn=5,io=6;function je(t,e,r,i,o,n){var a=t.__transition;if(!a)t.__transition={};else if(r in a)return;S_(t,r,{name:e,index:i,group:o,on:v_,tween:k_,time:n.time,delay:n.delay,duration:n.duration,ease:n.ease,timer:null,state:df})}function oo(t,e){var r=mt(t,e);if(r.state>df)throw new Error("too late; already scheduled");return r}function Lt(t,e){var r=mt(t,e);if(r.state>bn)throw new Error("too late; already running");return r}function mt(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function S_(t,e,r){var i=t.__transition,o;i[e]=r,r.timer=_n(n,0,r.time);function n(c){r.state=ff,r.timer.restart(a,r.delay,r.time),r.delay<=c&&a(c-r.delay)}function a(c){var h,f,u,p;if(r.state!==ff)return l();for(h in i)if(p=i[h],p.name===r.name){if(p.state===bn)return Cn(a);p.state===pf?(p.state=io,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete i[h]):+hTn&&i.state=0&&(e=e.slice(0,r)),!e||e==="start"})}function Y_(t,e,r){var i,o,n=H_(e)?oo:Lt;return function(){var a=n(this,t),s=a.on;s!==i&&(o=(i=s).copy()).on(e,r),a.on=o}}function Sf(t,e){var r=this._id;return arguments.length<2?mt(this.node(),r).on.on(t):this.each(Y_(r,t,e))}function j_(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function wf(){return this.on("end.remove",j_(this._id))}function Af(t){var e=this._name,r=this._id;typeof t!="function"&&(t=cr(t));for(var i=this._groups,o=i.length,n=new Array(o),a=0;azf(e,r).then(i=>new DOMParser().parseFromString(i,t))}var cC=Xs("application/xml"),uC=Xs("text/html"),hC=Xs("image/svg+xml");function Ge(t,e,r){this.k=t,this.x=e,this.y=r}Ge.prototype={constructor:Ge,scale:function(t){return t===1?this:new Ge(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Ge(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Ks=new Ge(1,0,0);Zs.prototype=Ge.prototype;function Zs(t){for(;!t.__zoom;)if(!(t=t.parentNode))return Ks;return t.__zoom}var{entries:Xf,setPrototypeOf:qf,isFrozen:fC,getPrototypeOf:pC,getOwnPropertyDescriptor:dC}=Object,{freeze:Pt,seal:Qt,create:Kf}=Object,{apply:il,construct:ol}=typeof Reflect<"u"&&Reflect;Pt||(Pt=function(e){return e});Qt||(Qt=function(e){return e});il||(il=function(e,r,i){return e.apply(r,i)});ol||(ol=function(e,r){return new e(...r)});var Bn=Xt(Array.prototype.forEach),Wf=Xt(Array.prototype.pop),no=Xt(Array.prototype.push),Ln=Xt(String.prototype.toLowerCase),Qs=Xt(String.prototype.toString),Uf=Xt(String.prototype.match),ao=Xt(String.prototype.replace),mC=Xt(String.prototype.indexOf),gC=Xt(String.prototype.trim),le=Xt(Object.prototype.hasOwnProperty),Rt=Xt(RegExp.prototype.test),so=xC(TypeError);function Xt(t){return function(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o2&&arguments[2]!==void 0?arguments[2]:Ln;qf&&qf(t,null);let i=e.length;for(;i--;){let o=e[i];if(typeof o=="string"){let n=r(o);n!==o&&(fC(e)||(e[i]=n),o=n)}t[o]=!0}return t}function yC(t){for(let e=0;e/gm),vC=Qt(/\${[\w\W]*}/gm),kC=Qt(/^data-[\-\w.\u00B7-\uFFFF]/),SC=Qt(/^aria-[\-\w]+$/),Zf=Qt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),wC=Qt(/^(?:\w+script|data):/i),AC=Qt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Qf=Qt(/^html$/i),BC=Qt(/^[a-z][.\w]*(-[.\w]+)+$/i),Vf=Object.freeze({__proto__:null,MUSTACHE_EXPR:bC,ERB_EXPR:TC,TMPLIT_EXPR:vC,DATA_ATTR:kC,ARIA_ATTR:SC,IS_ALLOWED_URI:Zf,IS_SCRIPT_OR_DATA:wC,ATTR_WHITESPACE:AC,DOCTYPE_NAME:Qf,CUSTOM_ELEMENT:BC}),co={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},FC=function(){return typeof window>"u"?null:window},LC=function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let i=null,o="data-tt-policy-suffix";r&&r.hasAttribute(o)&&(i=r.getAttribute(o));let n="dompurify"+(i?"#"+i:"");try{return e.createPolicy(n,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+n+" could not be created."),null}};function Jf(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:FC(),e=q=>Jf(q);if(e.version="3.1.7",e.removed=[],!t||!t.document||t.document.nodeType!==co.document)return e.isSupported=!1,e;let{document:r}=t,i=r,o=i.currentScript,{DocumentFragment:n,HTMLTemplateElement:a,Node:s,Element:l,NodeFilter:c,NamedNodeMap:h=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:u,trustedTypes:p}=t,g=l.prototype,_=lo(g,"cloneNode"),T=lo(g,"remove"),w=lo(g,"nextSibling"),C=lo(g,"childNodes"),E=lo(g,"parentNode");if(typeof a=="function"){let q=r.createElement("template");q.content&&q.content.ownerDocument&&(r=q.content.ownerDocument)}let v,D="",{implementation:A,createNodeIterator:M,createDocumentFragment:V,getElementsByTagName:j}=r,{importNode:ot}=i,I={};e.isSupported=typeof Xf=="function"&&typeof E=="function"&&A&&A.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:B,ERB_EXPR:x,TMPLIT_EXPR:y,DATA_ATTR:O,ARIA_ATTR:k,IS_SCRIPT_OR_DATA:P,ATTR_WHITESPACE:N,CUSTOM_ELEMENT:U}=Vf,{IS_ALLOWED_URI:it}=Vf,X=null,at=tt({},[...Hf,...Js,...tl,...el,...Yf]),Q=null,It=tt({},[...jf,...rl,...Gf,...Fn]),Z=Object.seal(Kf(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}})),Tt=null,vt=null,ht=!0,L=!0,G=!1,K=!0,b=!1,yt=!0,et=!1,kt=!1,St=!1,qt=!1,ar=!1,Ao=!1,Ul=!0,Hl=!1,Eg="user-content-",ka=!0,Ai=!1,Rr={},Pr=null,Yl=tt({},["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"]),jl=null,Gl=tt({},["audio","video","img","source","image","track"]),Sa=null,Vl=tt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Bo="http://www.w3.org/1998/Math/MathML",Fo="http://www.w3.org/2000/svg",be="http://www.w3.org/1999/xhtml",$r=be,wa=!1,Aa=null,Og=tt({},[Bo,Fo,be],Qs),Bi=null,Ig=["application/xhtml+xml","text/html"],Dg="text/html",_t=null,zr=null,Ng=r.createElement("form"),Xl=function(d){return d instanceof RegExp||d instanceof Function},Ba=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(zr&&zr===d)){if((!d||typeof d!="object")&&(d={}),d=wr(d),Bi=Ig.indexOf(d.PARSER_MEDIA_TYPE)===-1?Dg:d.PARSER_MEDIA_TYPE,_t=Bi==="application/xhtml+xml"?Qs:Ln,X=le(d,"ALLOWED_TAGS")?tt({},d.ALLOWED_TAGS,_t):at,Q=le(d,"ALLOWED_ATTR")?tt({},d.ALLOWED_ATTR,_t):It,Aa=le(d,"ALLOWED_NAMESPACES")?tt({},d.ALLOWED_NAMESPACES,Qs):Og,Sa=le(d,"ADD_URI_SAFE_ATTR")?tt(wr(Vl),d.ADD_URI_SAFE_ATTR,_t):Vl,jl=le(d,"ADD_DATA_URI_TAGS")?tt(wr(Gl),d.ADD_DATA_URI_TAGS,_t):Gl,Pr=le(d,"FORBID_CONTENTS")?tt({},d.FORBID_CONTENTS,_t):Yl,Tt=le(d,"FORBID_TAGS")?tt({},d.FORBID_TAGS,_t):{},vt=le(d,"FORBID_ATTR")?tt({},d.FORBID_ATTR,_t):{},Rr=le(d,"USE_PROFILES")?d.USE_PROFILES:!1,ht=d.ALLOW_ARIA_ATTR!==!1,L=d.ALLOW_DATA_ATTR!==!1,G=d.ALLOW_UNKNOWN_PROTOCOLS||!1,K=d.ALLOW_SELF_CLOSE_IN_ATTR!==!1,b=d.SAFE_FOR_TEMPLATES||!1,yt=d.SAFE_FOR_XML!==!1,et=d.WHOLE_DOCUMENT||!1,qt=d.RETURN_DOM||!1,ar=d.RETURN_DOM_FRAGMENT||!1,Ao=d.RETURN_TRUSTED_TYPE||!1,St=d.FORCE_BODY||!1,Ul=d.SANITIZE_DOM!==!1,Hl=d.SANITIZE_NAMED_PROPS||!1,ka=d.KEEP_CONTENT!==!1,Ai=d.IN_PLACE||!1,it=d.ALLOWED_URI_REGEXP||Zf,$r=d.NAMESPACE||be,Z=d.CUSTOM_ELEMENT_HANDLING||{},d.CUSTOM_ELEMENT_HANDLING&&Xl(d.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Z.tagNameCheck=d.CUSTOM_ELEMENT_HANDLING.tagNameCheck),d.CUSTOM_ELEMENT_HANDLING&&Xl(d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Z.attributeNameCheck=d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),d.CUSTOM_ELEMENT_HANDLING&&typeof d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Z.allowCustomizedBuiltInElements=d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),b&&(L=!1),ar&&(qt=!0),Rr&&(X=tt({},Yf),Q=[],Rr.html===!0&&(tt(X,Hf),tt(Q,jf)),Rr.svg===!0&&(tt(X,Js),tt(Q,rl),tt(Q,Fn)),Rr.svgFilters===!0&&(tt(X,tl),tt(Q,rl),tt(Q,Fn)),Rr.mathMl===!0&&(tt(X,el),tt(Q,Gf),tt(Q,Fn))),d.ADD_TAGS&&(X===at&&(X=wr(X)),tt(X,d.ADD_TAGS,_t)),d.ADD_ATTR&&(Q===It&&(Q=wr(Q)),tt(Q,d.ADD_ATTR,_t)),d.ADD_URI_SAFE_ATTR&&tt(Sa,d.ADD_URI_SAFE_ATTR,_t),d.FORBID_CONTENTS&&(Pr===Yl&&(Pr=wr(Pr)),tt(Pr,d.FORBID_CONTENTS,_t)),ka&&(X["#text"]=!0),et&&tt(X,["html","head","body"]),X.table&&(tt(X,["tbody"]),delete Tt.tbody),d.TRUSTED_TYPES_POLICY){if(typeof d.TRUSTED_TYPES_POLICY.createHTML!="function")throw so('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof d.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw so('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=d.TRUSTED_TYPES_POLICY,D=v.createHTML("")}else v===void 0&&(v=LC(p,o)),v!==null&&typeof D=="string"&&(D=v.createHTML(""));Pt&&Pt(d),zr=d}},Kl=tt({},["mi","mo","mn","ms","mtext"]),Zl=tt({},["annotation-xml"]),Rg=tt({},["title","style","font","a","script"]),Ql=tt({},[...Js,...tl,..._C]),Jl=tt({},[...el,...CC]),Pg=function(d){let S=E(d);(!S||!S.tagName)&&(S={namespaceURI:$r,tagName:"template"});let R=Ln(d.tagName),st=Ln(S.tagName);return Aa[d.namespaceURI]?d.namespaceURI===Fo?S.namespaceURI===be?R==="svg":S.namespaceURI===Bo?R==="svg"&&(st==="annotation-xml"||Kl[st]):!!Ql[R]:d.namespaceURI===Bo?S.namespaceURI===be?R==="math":S.namespaceURI===Fo?R==="math"&&Zl[st]:!!Jl[R]:d.namespaceURI===be?S.namespaceURI===Fo&&!Zl[st]||S.namespaceURI===Bo&&!Kl[st]?!1:!Jl[R]&&(Rg[R]||!Ql[R]):!!(Bi==="application/xhtml+xml"&&Aa[d.namespaceURI]):!1},ue=function(d){no(e.removed,{element:d});try{E(d).removeChild(d)}catch{T(d)}},Lo=function(d,S){try{no(e.removed,{attribute:S.getAttributeNode(d),from:S})}catch{no(e.removed,{attribute:null,from:S})}if(S.removeAttribute(d),d==="is"&&!Q[d])if(qt||ar)try{ue(S)}catch{}else try{S.setAttribute(d,"")}catch{}},tc=function(d){let S=null,R=null;if(St)d=""+d;else{let wt=Uf(d,/^[\r\n\t ]+/);R=wt&&wt[0]}Bi==="application/xhtml+xml"&&$r===be&&(d=''+d+"");let st=v?v.createHTML(d):d;if($r===be)try{S=new u().parseFromString(st,Bi)}catch{}if(!S||!S.documentElement){S=A.createDocument($r,"template",null);try{S.documentElement.innerHTML=wa?D:st}catch{}}let Mt=S.body||S.documentElement;return d&&R&&Mt.insertBefore(r.createTextNode(R),Mt.childNodes[0]||null),$r===be?j.call(S,et?"html":"body")[0]:et?S.documentElement:Mt},ec=function(d){return M.call(d.ownerDocument||d,d,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},rc=function(d){return d instanceof f&&(typeof d.nodeName!="string"||typeof d.textContent!="string"||typeof d.removeChild!="function"||!(d.attributes instanceof h)||typeof d.removeAttribute!="function"||typeof d.setAttribute!="function"||typeof d.namespaceURI!="string"||typeof d.insertBefore!="function"||typeof d.hasChildNodes!="function")},ic=function(d){return typeof s=="function"&&d instanceof s},Te=function(d,S,R){I[d]&&Bn(I[d],st=>{st.call(e,S,R,zr)})},oc=function(d){let S=null;if(Te("beforeSanitizeElements",d,null),rc(d))return ue(d),!0;let R=_t(d.nodeName);if(Te("uponSanitizeElement",d,{tagName:R,allowedTags:X}),d.hasChildNodes()&&!ic(d.firstElementChild)&&Rt(/<[/\w]/g,d.innerHTML)&&Rt(/<[/\w]/g,d.textContent)||d.nodeType===co.progressingInstruction||yt&&d.nodeType===co.comment&&Rt(/<[/\w]/g,d.data))return ue(d),!0;if(!X[R]||Tt[R]){if(!Tt[R]&&ac(R)&&(Z.tagNameCheck instanceof RegExp&&Rt(Z.tagNameCheck,R)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(R)))return!1;if(ka&&!Pr[R]){let st=E(d)||d.parentNode,Mt=C(d)||d.childNodes;if(Mt&&st){let wt=Mt.length;for(let Wt=wt-1;Wt>=0;--Wt){let he=_(Mt[Wt],!0);he.__removalCount=(d.__removalCount||0)+1,st.insertBefore(he,w(d))}}}return ue(d),!0}return d instanceof l&&!Pg(d)||(R==="noscript"||R==="noembed"||R==="noframes")&&Rt(/<\/no(script|embed|frames)/i,d.innerHTML)?(ue(d),!0):(b&&d.nodeType===co.text&&(S=d.textContent,Bn([B,x,y],st=>{S=ao(S,st," ")}),d.textContent!==S&&(no(e.removed,{element:d.cloneNode()}),d.textContent=S)),Te("afterSanitizeElements",d,null),!1)},nc=function(d,S,R){if(Ul&&(S==="id"||S==="name")&&(R in r||R in Ng))return!1;if(!(L&&!vt[S]&&Rt(O,S))){if(!(ht&&Rt(k,S))){if(!Q[S]||vt[S]){if(!(ac(d)&&(Z.tagNameCheck instanceof RegExp&&Rt(Z.tagNameCheck,d)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(d))&&(Z.attributeNameCheck instanceof RegExp&&Rt(Z.attributeNameCheck,S)||Z.attributeNameCheck instanceof Function&&Z.attributeNameCheck(S))||S==="is"&&Z.allowCustomizedBuiltInElements&&(Z.tagNameCheck instanceof RegExp&&Rt(Z.tagNameCheck,R)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(R))))return!1}else if(!Sa[S]){if(!Rt(it,ao(R,N,""))){if(!((S==="src"||S==="xlink:href"||S==="href")&&d!=="script"&&mC(R,"data:")===0&&jl[d])){if(!(G&&!Rt(P,ao(R,N,"")))){if(R)return!1}}}}}}return!0},ac=function(d){return d!=="annotation-xml"&&Uf(d,U)},sc=function(d){Te("beforeSanitizeAttributes",d,null);let{attributes:S}=d;if(!S)return;let R={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Q},st=S.length;for(;st--;){let Mt=S[st],{name:wt,namespaceURI:Wt,value:he}=Mt,Fi=_t(wt),Dt=wt==="value"?he:gC(he);if(R.attrName=Fi,R.attrValue=Dt,R.keepAttr=!0,R.forceKeepAttr=void 0,Te("uponSanitizeAttribute",d,R),Dt=R.attrValue,R.forceKeepAttr||(Lo(wt,d),!R.keepAttr))continue;if(!K&&Rt(/\/>/i,Dt)){Lo(wt,d);continue}b&&Bn([B,x,y],cc=>{Dt=ao(Dt,cc," ")});let lc=_t(d.nodeName);if(nc(lc,Fi,Dt)){if(Hl&&(Fi==="id"||Fi==="name")&&(Lo(wt,d),Dt=Eg+Dt),yt&&Rt(/((--!?|])>)|<\/(style|title)/i,Dt)){Lo(wt,d);continue}if(v&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Wt)switch(p.getAttributeType(lc,Fi)){case"TrustedHTML":{Dt=v.createHTML(Dt);break}case"TrustedScriptURL":{Dt=v.createScriptURL(Dt);break}}try{Wt?d.setAttributeNS(Wt,wt,Dt):d.setAttribute(wt,Dt),rc(d)?ue(d):Wf(e.removed)}catch{}}}Te("afterSanitizeAttributes",d,null)},$g=function q(d){let S=null,R=ec(d);for(Te("beforeSanitizeShadowDOM",d,null);S=R.nextNode();)Te("uponSanitizeShadowNode",S,null),!oc(S)&&(S.content instanceof n&&q(S.content),sc(S));Te("afterSanitizeShadowDOM",d,null)};return e.sanitize=function(q){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=null,R=null,st=null,Mt=null;if(wa=!q,wa&&(q=""),typeof q!="string"&&!ic(q))if(typeof q.toString=="function"){if(q=q.toString(),typeof q!="string")throw so("dirty is not a string, aborting")}else throw so("toString is not a function");if(!e.isSupported)return q;if(kt||Ba(d),e.removed=[],typeof q=="string"&&(Ai=!1),Ai){if(q.nodeName){let he=_t(q.nodeName);if(!X[he]||Tt[he])throw so("root node is forbidden and cannot be sanitized in-place")}}else if(q instanceof s)S=tc(""),R=S.ownerDocument.importNode(q,!0),R.nodeType===co.element&&R.nodeName==="BODY"||R.nodeName==="HTML"?S=R:S.appendChild(R);else{if(!qt&&!b&&!et&&q.indexOf("<")===-1)return v&&Ao?v.createHTML(q):q;if(S=tc(q),!S)return qt?null:Ao?D:""}S&&St&&ue(S.firstChild);let wt=ec(Ai?q:S);for(;st=wt.nextNode();)oc(st)||(st.content instanceof n&&$g(st.content),sc(st));if(Ai)return q;if(qt){if(ar)for(Mt=V.call(S.ownerDocument);S.firstChild;)Mt.appendChild(S.firstChild);else Mt=S;return(Q.shadowroot||Q.shadowrootmode)&&(Mt=ot.call(i,Mt,!0)),Mt}let Wt=et?S.outerHTML:S.innerHTML;return et&&X["!doctype"]&&S.ownerDocument&&S.ownerDocument.doctype&&S.ownerDocument.doctype.name&&Rt(Qf,S.ownerDocument.doctype.name)&&(Wt=" +`+Wt),b&&Bn([B,x,y],he=>{Wt=ao(Wt,he," ")}),v&&Ao?v.createHTML(Wt):Wt},e.setConfig=function(){let q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ba(q),kt=!0},e.clearConfig=function(){zr=null,kt=!1},e.isValidAttribute=function(q,d,S){zr||Ba({});let R=_t(q),st=_t(d);return nc(R,st,S)},e.addHook=function(q,d){typeof d=="function"&&(I[q]=I[q]||[],no(I[q],d))},e.removeHook=function(q){if(I[q])return Wf(I[q])},e.removeHooks=function(q){I[q]&&(I[q]=[])},e.removeAllHooks=function(){I={}},e}var Ar=Jf();var Mn={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{let e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<.16666666666666666?t+(e-t)*6*r:r<.5?e:r<.6666666666666666?t+(e-t)*(.6666666666666666-r)*6:t),hsl2rgb:({h:t,s:e,l:r},i)=>{if(!e)return r*2.55;t/=360,e/=100,r/=100;let o=r<.5?r*(1+e):r+e-r*e,n=2*r-o;switch(i){case"r":return Mn.hue2rgb(n,o,t+.3333333333333333)*255;case"g":return Mn.hue2rgb(n,o,t)*255;case"b":return Mn.hue2rgb(n,o,t-.3333333333333333)*255}},rgb2hsl:({r:t,g:e,b:r},i)=>{t/=255,e/=255,r/=255;let o=Math.max(t,e,r),n=Math.min(t,e,r),a=(o+n)/2;if(i==="l")return a*100;if(o===n)return 0;let s=o-n,l=a>.5?s/(2-o-n):s/(o+n);if(i==="s")return l*100;switch(o){case t:return((e-r)/s+(ee>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},ep=MC;var EC={dec2hex:t=>{let e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},rp=EC;var OC={channel:tp,lang:ep,unit:rp},z=OC;var Me={};for(let t=0;t<=255;t++)Me[t]=z.unit.dec2hex(t);var gt={ALL:0,RGB:1,HSL:2};var nl=class{constructor(){this.type=gt.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=gt.ALL}is(e){return this.type===e}},ip=nl;var al=class{constructor(e,r){this.color=r,this.changed=!1,this.data=e,this.type=new ip}set(e,r){return this.color=r,this.changed=!1,this.data=e,this.type.type=gt.ALL,this}_ensureHSL(){let e=this.data,{h:r,s:i,l:o}=e;r===void 0&&(e.h=z.channel.rgb2hsl(e,"h")),i===void 0&&(e.s=z.channel.rgb2hsl(e,"s")),o===void 0&&(e.l=z.channel.rgb2hsl(e,"l"))}_ensureRGB(){let e=this.data,{r,g:i,b:o}=e;r===void 0&&(e.r=z.channel.hsl2rgb(e,"r")),i===void 0&&(e.g=z.channel.hsl2rgb(e,"g")),o===void 0&&(e.b=z.channel.hsl2rgb(e,"b"))}get r(){let e=this.data,r=e.r;return!this.type.is(gt.HSL)&&r!==void 0?r:(this._ensureHSL(),z.channel.hsl2rgb(e,"r"))}get g(){let e=this.data,r=e.g;return!this.type.is(gt.HSL)&&r!==void 0?r:(this._ensureHSL(),z.channel.hsl2rgb(e,"g"))}get b(){let e=this.data,r=e.b;return!this.type.is(gt.HSL)&&r!==void 0?r:(this._ensureHSL(),z.channel.hsl2rgb(e,"b"))}get h(){let e=this.data,r=e.h;return!this.type.is(gt.RGB)&&r!==void 0?r:(this._ensureRGB(),z.channel.rgb2hsl(e,"h"))}get s(){let e=this.data,r=e.s;return!this.type.is(gt.RGB)&&r!==void 0?r:(this._ensureRGB(),z.channel.rgb2hsl(e,"s"))}get l(){let e=this.data,r=e.l;return!this.type.is(gt.RGB)&&r!==void 0?r:(this._ensureRGB(),z.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(gt.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(gt.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(gt.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(gt.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(gt.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(gt.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}},op=al;var IC=new op({r:0,g:0,b:0,a:0},"transparent"),Ve=IC;var np={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;let e=t.match(np.re);if(!e)return;let r=e[1],i=parseInt(r,16),o=r.length,n=o%4===0,a=o>4,s=a?1:17,l=a?8:4,c=n?0:-1,h=a?255:15;return Ve.set({r:(i>>l*(c+3)&h)*s,g:(i>>l*(c+2)&h)*s,b:(i>>l*(c+1)&h)*s,a:n?(i&h)*s/255:1},t)},stringify:t=>{let{r:e,g:r,b:i,a:o}=t;return o<1?`#${Me[Math.round(e)]}${Me[Math.round(r)]}${Me[Math.round(i)]}${Me[Math.round(o*255)]}`:`#${Me[Math.round(e)]}${Me[Math.round(r)]}${Me[Math.round(i)]}`}},Br=np;var En={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{let e=t.match(En.hueRe);if(e){let[,r,i]=e;switch(i){case"grad":return z.channel.clamp.h(parseFloat(r)*.9);case"rad":return z.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return z.channel.clamp.h(parseFloat(r)*360)}}return z.channel.clamp.h(parseFloat(t))},parse:t=>{let e=t.charCodeAt(0);if(e!==104&&e!==72)return;let r=t.match(En.re);if(!r)return;let[,i,o,n,a,s]=r;return Ve.set({h:En._hue2deg(i),s:z.channel.clamp.s(parseFloat(o)),l:z.channel.clamp.l(parseFloat(n)),a:a?z.channel.clamp.a(s?parseFloat(a)/100:parseFloat(a)):1},t)},stringify:t=>{let{h:e,s:r,l:i,a:o}=t;return o<1?`hsla(${z.lang.round(e)}, ${z.lang.round(r)}%, ${z.lang.round(i)}%, ${o})`:`hsl(${z.lang.round(e)}, ${z.lang.round(r)}%, ${z.lang.round(i)}%)`}},uo=En;var On={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();let e=On.colors[t];if(e)return Br.parse(e)},stringify:t=>{let e=Br.stringify(t);for(let r in On.colors)if(On.colors[r]===e)return r}},sl=On;var ap={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{let e=t.charCodeAt(0);if(e!==114&&e!==82)return;let r=t.match(ap.re);if(!r)return;let[,i,o,n,a,s,l,c,h]=r;return Ve.set({r:z.channel.clamp.r(o?parseFloat(i)*2.55:parseFloat(i)),g:z.channel.clamp.g(a?parseFloat(n)*2.55:parseFloat(n)),b:z.channel.clamp.b(l?parseFloat(s)*2.55:parseFloat(s)),a:c?z.channel.clamp.a(h?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{let{r:e,g:r,b:i,a:o}=t;return o<1?`rgba(${z.lang.round(e)}, ${z.lang.round(r)}, ${z.lang.round(i)}, ${z.lang.round(o)})`:`rgb(${z.lang.round(e)}, ${z.lang.round(r)}, ${z.lang.round(i)})`}},ho=ap;var DC={format:{keyword:sl,hex:Br,rgb:ho,rgba:ho,hsl:uo,hsla:uo},parse:t=>{if(typeof t!="string")return t;let e=Br.parse(t)||ho.parse(t)||uo.parse(t)||sl.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(gt.HSL)||t.data.r===void 0?uo.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?ho.stringify(t):Br.stringify(t)},xt=DC;var NC=(t,e)=>{let r=xt.parse(t);for(let i in e)r[i]=z.channel.clamp[i](e[i]);return xt.stringify(r)},In=NC;var RC=(t,e,r=0,i=1)=>{if(typeof t!="number")return In(t,{a:e});let o=Ve.set({r:z.channel.clamp.r(t),g:z.channel.clamp.g(e),b:z.channel.clamp.b(r),a:z.channel.clamp.a(i)});return xt.stringify(o)},Xe=RC;var PC=(t,e)=>z.lang.round(xt.parse(t)[e]),$C=PC;var zC=t=>{let{r:e,g:r,b:i}=xt.parse(t),o=.2126*z.channel.toLinear(e)+.7152*z.channel.toLinear(r)+.0722*z.channel.toLinear(i);return z.lang.round(o)},sp=zC;var qC=t=>sp(t)>=.5,lp=qC;var WC=t=>!lp(t),Fr=WC;var UC=(t,e,r)=>{let i=xt.parse(t),o=i[e],n=z.channel.clamp[e](o+r);return o!==n&&(i[e]=n),xt.stringify(i)},Dn=UC;var HC=(t,e)=>Dn(t,"l",e),$=HC;var YC=(t,e)=>Dn(t,"l",-e),H=YC;var jC=(t,e)=>{let r=xt.parse(t),i={};for(let o in e)e[o]&&(i[o]=r[o]+e[o]);return In(t,i)},m=jC;var GC=(t,e,r=50)=>{let{r:i,g:o,b:n,a}=xt.parse(t),{r:s,g:l,b:c,a:h}=xt.parse(e),f=r/100,u=f*2-1,p=a-h,_=((u*p===-1?u:(u+p)/(1+u*p))+1)/2,T=1-_,w=i*_+s*T,C=o*_+l*T,E=n*_+c*T,v=a*f+h*(1-f);return Xe(w,C,E,v)},cp=GC;var VC=(t,e=100)=>{let r=xt.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,cp(r,t,e)},F=VC;var XC=typeof global=="object"&&global&&global.Object===Object&&global,Nn=XC;var KC=typeof self=="object"&&self&&self.Object===Object&&self,ZC=Nn||KC||Function("return this")(),ft=ZC;var QC=ft.Symbol,si=QC;var up=Object.prototype,JC=up.hasOwnProperty,t1=up.toString,fo=si?si.toStringTag:void 0;function e1(t){var e=JC.call(t,fo),r=t[fo];try{t[fo]=void 0;var i=!0}catch{}var o=t1.call(t);return i&&(e?t[fo]=r:delete t[fo]),o}var hp=e1;var r1=Object.prototype,i1=r1.toString;function o1(t){return i1.call(t)}var fp=o1;var n1="[object Null]",a1="[object Undefined]",pp=si?si.toStringTag:void 0;function s1(t){return t==null?t===void 0?a1:n1:pp&&pp in Object(t)?hp(t):fp(t)}var ce=s1;function l1(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Ht=l1;var c1="[object AsyncFunction]",u1="[object Function]",h1="[object GeneratorFunction]",f1="[object Proxy]";function p1(t){if(!Ht(t))return!1;var e=ce(t);return e==u1||e==h1||e==c1||e==f1}var li=p1;var d1=ft["__core-js_shared__"],Rn=d1;var dp=function(){var t=/[^.]+$/.exec(Rn&&Rn.keys&&Rn.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function m1(t){return!!dp&&dp in t}var mp=m1;var g1=Function.prototype,x1=g1.toString;function y1(t){if(t!=null){try{return x1.call(t)}catch{}try{return t+""}catch{}}return""}var Ee=y1;var _1=/[\\^$.*+?()[\]{}|]/g,C1=/^\[object .+?Constructor\]$/,b1=Function.prototype,T1=Object.prototype,v1=b1.toString,k1=T1.hasOwnProperty,S1=RegExp("^"+v1.call(k1).replace(_1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function w1(t){if(!Ht(t)||mp(t))return!1;var e=li(t)?S1:C1;return e.test(Ee(t))}var gp=w1;function A1(t,e){return t?.[e]}var xp=A1;function B1(t,e){var r=xp(t,e);return gp(r)?r:void 0}var Yt=B1;var F1=Yt(Object,"create"),Oe=F1;function L1(){this.__data__=Oe?Oe(null):{},this.size=0}var yp=L1;function M1(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var _p=M1;var E1="__lodash_hash_undefined__",O1=Object.prototype,I1=O1.hasOwnProperty;function D1(t){var e=this.__data__;if(Oe){var r=e[t];return r===E1?void 0:r}return I1.call(e,t)?e[t]:void 0}var Cp=D1;var N1=Object.prototype,R1=N1.hasOwnProperty;function P1(t){var e=this.__data__;return Oe?e[t]!==void 0:R1.call(e,t)}var bp=P1;var $1="__lodash_hash_undefined__";function z1(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Oe&&e===void 0?$1:e,this}var Tp=z1;function ci(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e-1}var wp=V1;function X1(t,e){var r=this.__data__,i=Ze(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}var Ap=X1;function ui(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=Db}var qn=Nb;function Rb(t){return t!=null&&qn(t.length)&&!li(t)}var rr=Rb;function Pb(t){return xe(t)&&rr(t)}var td=Pb;function $b(){return!1}var ed=$b;var od=typeof exports=="object"&&exports&&!exports.nodeType&&exports,rd=od&&typeof module=="object"&&module&&!module.nodeType&&module,zb=rd&&rd.exports===od,id=zb?ft.Buffer:void 0,qb=id?id.isBuffer:void 0,Wb=qb||ed,mi=Wb;var Ub="[object Object]",Hb=Function.prototype,Yb=Object.prototype,nd=Hb.toString,jb=Yb.hasOwnProperty,Gb=nd.call(Object);function Vb(t){if(!xe(t)||ce(t)!=Ub)return!1;var e=zn(t);if(e===null)return!0;var r=jb.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&nd.call(r)==Gb}var ad=Vb;var Xb="[object Arguments]",Kb="[object Array]",Zb="[object Boolean]",Qb="[object Date]",Jb="[object Error]",tT="[object Function]",eT="[object Map]",rT="[object Number]",iT="[object Object]",oT="[object RegExp]",nT="[object Set]",aT="[object String]",sT="[object WeakMap]",lT="[object ArrayBuffer]",cT="[object DataView]",uT="[object Float32Array]",hT="[object Float64Array]",fT="[object Int8Array]",pT="[object Int16Array]",dT="[object Int32Array]",mT="[object Uint8Array]",gT="[object Uint8ClampedArray]",xT="[object Uint16Array]",yT="[object Uint32Array]",ct={};ct[uT]=ct[hT]=ct[fT]=ct[pT]=ct[dT]=ct[mT]=ct[gT]=ct[xT]=ct[yT]=!0;ct[Xb]=ct[Kb]=ct[lT]=ct[Zb]=ct[cT]=ct[Qb]=ct[Jb]=ct[tT]=ct[eT]=ct[rT]=ct[iT]=ct[oT]=ct[nT]=ct[aT]=ct[sT]=!1;function _T(t){return xe(t)&&qn(t.length)&&!!ct[ce(t)]}var sd=_T;function CT(t){return function(e){return t(e)}}var ld=CT;var cd=typeof exports=="object"&&exports&&!exports.nodeType&&exports,go=cd&&typeof module=="object"&&module&&!module.nodeType&&module,bT=go&&go.exports===cd,fl=bT&&Nn.process,TT=function(){try{var t=go&&go.require&&go.require("util").types;return t||fl&&fl.binding&&fl.binding("util")}catch{}}(),pl=TT;var ud=pl&&pl.isTypedArray,vT=ud?ld(ud):sd,gi=vT;function kT(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var xo=kT;var ST=Object.prototype,wT=ST.hasOwnProperty;function AT(t,e,r){var i=t[e];(!(wT.call(t,e)&&Ke(i,r))||r===void 0&&!(e in t))&&di(t,e,r)}var hd=AT;function BT(t,e,r,i){var o=!r;r||(r={});for(var n=-1,a=e.length;++n-1&&t%1==0&&t0){if(++e>=VT)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var wd=ZT;var QT=wd(Sd),Ad=QT;function JT(t,e){return Ad(vd(t,e,Hn),t+"")}var Bd=JT;function tv(t,e,r){if(!Ht(r))return!1;var i=typeof e;return(i=="number"?rr(r)&&Wn(e,r.length):i=="string"&&e in r)?Ke(r[e],t):!1}var Fd=tv;function ev(t){return Bd(function(e,r){var i=-1,o=r.length,n=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(n=t.length>3&&typeof n=="function"?(o--,n):void 0,a&&Fd(r[0],r[1],a)&&(n=o<3?void 0:n,o=1),e=Object(e);++i0?Or(Ci,--Jt):0,yi--,pt===10&&(yi=1,ta--),pt}function te(){return pt=Jt2||_i(pt)>3?"":" "}function Zd(t,e){for(;--e&&te()&&!(pt<48||pt>102||pt>57&&pt<65||pt>70&&pt<97););return ra(t,Co()+(e<6&&Ie()==32&&te()==32))}function ml(t){for(;te();)switch(pt){case t:return Jt;case 34:case 39:t!==34&&t!==39&&ml(pt);break;case 40:t===41&&ml(t);break;case 92:te();break}return Jt}function Qd(t,e){for(;te()&&t+pt!==57;)if(t+pt===84&&Ie()===47)break;return"/*"+ra(e,Jt-1)+"*"+yo(t===47?t:te())}function Jd(t){for(;!_i(Ie());)te();return ra(t,Jt)}function rm(t){return Xd(oa("",null,null,null,[""],t=Vd(t),0,[0],t))}function oa(t,e,r,i,o,n,a,s,l){for(var c=0,h=0,f=a,u=0,p=0,g=0,_=1,T=1,w=1,C=0,E="",v=o,D=n,A=i,M=E;T;)switch(g=C,C=te()){case 40:if(g!=108&&Or(M,f-1)==58){Ud(M+=_o(ia(C),"&","&\f"),"&\f",dl(c?s[c-1]:0))!=-1&&(w=-1);break}case 34:case 39:case 91:M+=ia(C);break;case 9:case 10:case 13:case 32:M+=Kd(g);break;case 92:M+=Zd(Co()-1,7);continue;case 47:switch(Ie()){case 42:case 47:xi(Tv(Qd(te(),Co()),e,r,l),l),(_i(g||1)==5||_i(Ie()||1)==5)&&Kt(M)&&ir(M,-1,void 0)!==" "&&(M+=" ");break;default:M+="/"}break;case 123*_:s[c++]=Kt(M)*w;case 125*_:case 59:case 0:switch(C){case 0:case 125:T=0;case 59+h:w==-1&&(M=_o(M,/\f/g,"")),p>0&&(Kt(M)-f||_===0&&g===47)&&xi(p>32?em(M+";",i,r,f-1,l):em(_o(M," ","")+";",i,r,f-2,l),l);break;case 59:M+=";";default:if(xi(A=tm(M,e,r,c,h,o,s,E,v=[],D=[],f,n),n),C===123)if(h===0)oa(M,e,A,A,v,n,f,s,D);else switch(u===99&&Or(M,3)===110?100:u){case 100:case 108:case 109:case 115:oa(t,A,A,i&&xi(tm(t,A,A,0,0,o,s,E,o,v=[],f,D),D),o,D,f,s,i?v:D);break;default:oa(M,A,A,A,[""],D,0,s,D)}}c=h=p=0,_=w=1,E=M="",f=a;break;case 58:f=1+Kt(M),p=g;default:if(_<1){if(C==123)--_;else if(C==125&&_++==0&&Gd()==125)continue}switch(M+=yo(C),C*_){case 38:w=h>0?1:(M+="\f",-1);break;case 44:s[c++]=(Kt(M)-1)*w,w=1;break;case 64:Ie()===45&&(M+=ia(te())),u=Ie(),h=f=Kt(E=M+=Jd(Co())),C++;break;case 45:g===45&&Kt(M)==2&&(_=0)}}return n}function tm(t,e,r,i,o,n,a,s,l,c,h,f){for(var u=o-1,p=o===0?n:[""],g=Hd(p),_=0,T=0,w=0;_0?p[C]+" "+E:_o(E,/&\f/g,p[C])))&&(l[w++]=v);return ea(t,e,r,o===0?Zn:s,l,c,h,f)}function Tv(t,e,r,i){return ea(t,e,r,Kn,yo(jd()),ir(t,2,-2),0,i)}function em(t,e,r,i,o){return ea(t,e,r,Qn,ir(t,0,i),ir(t,i+1,-1),i,o)}function na(t,e){for(var r="",i=0;i{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},Al=function(t="fatal"){let e=De.fatal;typeof t=="string"?(t=t.toLowerCase(),t in De&&(e=De[t])):typeof t=="number"&&(e=t),Y.trace=()=>{},Y.debug=()=>{},Y.info=()=>{},Y.warn=()=>{},Y.error=()=>{},Y.fatal=()=>{},e<=De.fatal&&(Y.fatal=console.error?console.error.bind(console,ee("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",ee("FATAL"))),e<=De.error&&(Y.error=console.error?console.error.bind(console,ee("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",ee("ERROR"))),e<=De.warn&&(Y.warn=console.warn?console.warn.bind(console,ee("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",ee("WARN"))),e<=De.info&&(Y.info=console.info?console.info.bind(console,ee("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",ee("INFO"))),e<=De.debug&&(Y.debug=console.debug?console.debug.bind(console,ee("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ee("DEBUG"))),e<=De.trace&&(Y.trace=console.debug?console.debug.bind(console,ee("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ee("TRACE")))},ee=t=>`%c${(0,vm.default)().format("ss.SSS")} : ${t} : `,wo=//gi,vv=t=>t?wm(t).replace(/\\n/g,"#br#").split("#br#"):[""],kv=(()=>{let t=!1;return()=>{t||(Sv(),t=!0)}})();function Sv(){let t="data-temp-href-target";Ar.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")||"")}),Ar.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)||""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}var Sm=t=>(kv(),Ar.sanitize(t)),om=(t,e)=>{var r;if(((r=e.flowchart)==null?void 0:r.htmlLabels)!==!1){let i=e.securityLevel;i==="antiscript"||i==="strict"?t=Sm(t):i!=="loose"&&(t=wm(t),t=t.replace(//g,">"),t=t.replace(/=/g,"="),t=Fv(t))}return t},ko=(t,e)=>t&&(e.dompurifyConfig?t=Ar.sanitize(om(t,e),e.dompurifyConfig).toString():t=Ar.sanitize(om(t,e),{FORBID_TAGS:["style"]}).toString(),t),wv=(t,e)=>typeof t=="string"?ko(t,e):t.flat().map(r=>ko(r,e)),Av=t=>wo.test(t),Bv=t=>t.split(wo),Fv=t=>t.replace(/#br#/g,"
"),wm=t=>t.replace(wo,"#br#"),Lv=t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},Am=t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),Mv=function(...t){let e=t.filter(r=>!isNaN(r));return Math.max(...e)},Ev=function(...t){let e=t.filter(r=>!isNaN(r));return Math.min(...e)},xq=function(t){let e=t.split(/(,)/),r=[];for(let i=0;i0&&i+1Math.max(0,t.split(e).length-1),Ov=(t,e)=>{let r=Cl(t,"~"),i=Cl(e,"~");return r===1&&i===1},Iv=t=>{let e=Cl(t,"~"),r=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),r=!0);let i=[...t],o=i.indexOf("~"),n=i.lastIndexOf("~");for(;o!==-1&&n!==-1&&o!==n;)i[o]="<",i[n]=">",o=i.indexOf("~"),n=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},nm=()=>window.MathMLElement!==void 0,bl=/\$\$(.*)\$\$/g,am=t=>{var e;return(((e=t.match(bl))==null?void 0:e.length)??0)>0},yq=(t,e)=>J(void 0,null,function*(){t=yield Dv(t,e);let r=document.createElement("div");r.innerHTML=t,r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";let i=document.querySelector("body");i?.insertAdjacentElement("beforeend",r);let o={width:r.clientWidth,height:r.clientHeight};return r.remove(),o}),Dv=(t,e)=>J(void 0,null,function*(){if(!am(t))return t;if(!nm()&&!e.legacyMathML)return t.replace(bl,"MathML is unsupported in this environment.");let{default:r}=yield import("./chunk-7S3PH27A.js");return t.split(wo).map(i=>am(i)?` +
+ ${i} +
+ `:`
${i}
`).join("").replace(bl,(i,o)=>r.renderToString(o,{throwOnError:!0,displayMode:!0,output:nm()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(//g,""))}),Bl={getRows:vv,sanitizeText:ko,sanitizeTextOrArray:wv,hasBreaks:Av,splitBreaks:Bv,lineBreakRegex:wo,removeScript:Sm,getUrl:Lv,evaluate:Am,getMax:Mv,getMin:Ev},zt=(t,e)=>e?m(t,{s:-40,l:10}):m(t,{s:-40,l:-10}),_a="#ffffff",Ca="#f2f2f2",Nv=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 e,r,i,o,n,a,s,l,c,h,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||m(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||m(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||zt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||zt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||zt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||zt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||F(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||F(this.tertiaryColor),this.lineColor=this.lineColor||F(this.background),this.arrowheadColor=this.arrowheadColor||F(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?H(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||H(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||F(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||$(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||m(this.primaryColor,{h:30}),this.cScale4=this.cScale4||m(this.primaryColor,{h:60}),this.cScale5=this.cScale5||m(this.primaryColor,{h:90}),this.cScale6=this.cScale6||m(this.primaryColor,{h:120}),this.cScale7=this.cScale7||m(this.primaryColor,{h:150}),this.cScale8=this.cScale8||m(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||m(this.primaryColor,{h:270}),this.cScale10=this.cScale10||m(this.primaryColor,{h:300}),this.cScale11=this.cScale11||m(this.primaryColor,{h:330}),this.darkMode)for(let p=0;p{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},Rv=t=>{let e=new Nv;return e.calculate(t),e},Pv=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=$(this.primaryColor,16),this.tertiaryColor=m(this.primaryColor,{h:-160}),this.primaryBorderColor=F(this.background),this.secondaryBorderColor=zt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=zt(this.tertiaryColor,this.darkMode),this.primaryTextColor=F(this.primaryColor),this.secondaryTextColor=F(this.secondaryColor),this.tertiaryTextColor=F(this.tertiaryColor),this.lineColor=F(this.background),this.textColor=F(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=$(F("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=Xe(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=H("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=H(this.sectionBkgColor,10),this.taskBorderColor=Xe(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Xe(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 e,r,i,o,n,a,s,l,c,h,f;this.secondBkg=$(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=$(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=$(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=m(this.primaryColor,{h:64}),this.fillType3=m(this.secondaryColor,{h:64}),this.fillType4=m(this.primaryColor,{h:-64}),this.fillType5=m(this.secondaryColor,{h:-64}),this.fillType6=m(this.primaryColor,{h:128}),this.fillType7=m(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||m(this.primaryColor,{h:30}),this.cScale4=this.cScale4||m(this.primaryColor,{h:60}),this.cScale5=this.cScale5||m(this.primaryColor,{h:90}),this.cScale6=this.cScale6||m(this.primaryColor,{h:120}),this.cScale7=this.cScale7||m(this.primaryColor,{h:150}),this.cScale8=this.cScale8||m(this.primaryColor,{h:210}),this.cScale9=this.cScale9||m(this.primaryColor,{h:270}),this.cScale10=this.cScale10||m(this.primaryColor,{h:300}),this.cScale11=this.cScale11||m(this.primaryColor,{h:330});for(let u=0;u{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},$v=t=>{let e=new Pv;return e.calculate(t),e},zv=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=m(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=m(this.primaryColor,{h:-160}),this.primaryBorderColor=zt(this.primaryColor,this.darkMode),this.secondaryBorderColor=zt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=zt(this.tertiaryColor,this.darkMode),this.primaryTextColor=F(this.primaryColor),this.secondaryTextColor=F(this.secondaryColor),this.tertiaryTextColor=F(this.tertiaryColor),this.lineColor=F(this.background),this.textColor=F(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=Xe(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 e,r,i,o,n,a,s,l,c,h,f;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||m(this.primaryColor,{h:30}),this.cScale4=this.cScale4||m(this.primaryColor,{h:60}),this.cScale5=this.cScale5||m(this.primaryColor,{h:90}),this.cScale6=this.cScale6||m(this.primaryColor,{h:120}),this.cScale7=this.cScale7||m(this.primaryColor,{h:150}),this.cScale8=this.cScale8||m(this.primaryColor,{h:210}),this.cScale9=this.cScale9||m(this.primaryColor,{h:270}),this.cScale10=this.cScale10||m(this.primaryColor,{h:300}),this.cScale11=this.cScale11||m(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||H(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||H(this.tertiaryColor,40);for(let u=0;u{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},qv=t=>{let e=new zv;return e.calculate(t),e},Wv=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=$("#cde498",10),this.primaryBorderColor=zt(this.primaryColor,this.darkMode),this.secondaryBorderColor=zt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=zt(this.tertiaryColor,this.darkMode),this.primaryTextColor=F(this.primaryColor),this.secondaryTextColor=F(this.secondaryColor),this.tertiaryTextColor=F(this.primaryColor),this.lineColor=F(this.background),this.textColor=F(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 e,r,i,o,n,a,s,l,c,h,f;this.actorBorder=H(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||m(this.primaryColor,{h:30}),this.cScale4=this.cScale4||m(this.primaryColor,{h:60}),this.cScale5=this.cScale5||m(this.primaryColor,{h:90}),this.cScale6=this.cScale6||m(this.primaryColor,{h:120}),this.cScale7=this.cScale7||m(this.primaryColor,{h:150}),this.cScale8=this.cScale8||m(this.primaryColor,{h:210}),this.cScale9=this.cScale9||m(this.primaryColor,{h:270}),this.cScale10=this.cScale10||m(this.primaryColor,{h:300}),this.cScale11=this.cScale11||m(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||H(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||H(this.tertiaryColor,40);for(let u=0;u{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},Uv=t=>{let e=new Wv;return e.calculate(t),e},Tl=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=$(this.contrast,55),this.background="#ffffff",this.tertiaryColor=m(this.primaryColor,{h:-160}),this.primaryBorderColor=zt(this.primaryColor,this.darkMode),this.secondaryBorderColor=zt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=zt(this.tertiaryColor,this.darkMode),this.primaryTextColor=F(this.primaryColor),this.secondaryTextColor=F(this.secondaryColor),this.tertiaryTextColor=F(this.tertiaryColor),this.lineColor=F(this.background),this.textColor=F(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 e,r,i,o,n,a,s,l,c,h,f;this.secondBkg=$(this.contrast,55),this.border2=this.contrast,this.actorBorder=$(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 u=0;u{this[i]=e[i]}),this.updateColors(),r.forEach(i=>{this[i]=e[i]})}},Hv=t=>{let e=new Tl;return e.calculate(t),e},Pe={base:{getThemeVariables:Rv},dark:{getThemeVariables:$v},default:{getThemeVariables:qv},forest:{getThemeVariables:Uv},neutral:{getThemeVariables:Hv}},Ne={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},Bm=ie(re({},Ne),{deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:Pe.default.getThemeVariables(),sequence:ie(re({},Ne.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:ie(re({},Ne.gantt),{tickInterval:void 0,useWidth:void 0}),c4:ie(re({},Ne.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:ie(re({},Ne.pie),{useWidth:984}),xyChart:ie(re({},Ne.xyChart),{useWidth:void 0}),requirement:ie(re({},Ne.requirement),{useWidth:void 0}),gitGraph:ie(re({},Ne.gitGraph),{useMaxWidth:!1}),sankey:ie(re({},Ne.sankey),{useMaxWidth:!1})}),Fm=(t,e="")=>Object.keys(t).reduce((r,i)=>Array.isArray(t[i])?r:typeof t[i]=="object"&&t[i]!==null?[...r,e+i,...Fm(t[i],"")]:[...r,e+i],[]),Yv=new Set(Fm(Bm,"")),jv=Bm,la=t=>{if(Y.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>la(e));return}for(let e of Object.keys(t)){if(Y.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!Yv.has(e)||t[e]==null){Y.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){Y.debug("sanitizing object",e),la(t[e]);continue}let r=["themeCSS","fontFamily","altFontFamily"];for(let i of r)e.includes(i)&&(Y.debug("sanitizing css option",e),t[e]=Gv(t[e]))}if(t.themeVariables)for(let e of Object.keys(t.themeVariables)){let r=t.themeVariables[e];r?.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}Y.debug("After sanitization",t)}},Gv=t=>{let e=0,r=0;for(let i of t){if(e{for(let{id:e,detector:r,loader:i}of t)Em(e,r,i)},Em=(t,e,r)=>{vi[t]?Y.error(`Detector with key ${t} already exists`):vi[t]={detector:e,loader:r},Y.debug(`Detector with key ${t} added${r?" with loader":""}`)},Xv=t=>vi[t].loader,vl=(t,e,{depth:r=2,clobber:i=!1}={})=>{let o={depth:r,clobber:i};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(n=>vl(t,n,o)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(n=>{t.includes(n)||t.push(n)}),t):t===void 0||r<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(n=>{typeof e[n]=="object"&&(t[n]===void 0||typeof t[n]=="object")?(t[n]===void 0&&(t[n]=Array.isArray(e[n])?[]:{}),t[n]=vl(t[n],e[n],{depth:r-1,clobber:i})):(i||typeof t[n]!="object"&&typeof e[n]!="object")&&(t[n]=e[n])}),t)},Et=vl,Kv="\u200B",Zv={curveBasis:ws,curveBasisClosed:Fs,curveBasisOpen:Ls,curveBumpX:As,curveBumpY:Bs,curveBundle:Ms,curveCardinalClosed:Os,curveCardinalOpen:Is,curveCardinal:Es,curveCatmullRomClosed:Ns,curveCatmullRomOpen:Rs,curveCatmullRom:Ds,curveLinear:Vi,curveLinearClosed:Ps,curveMonotoneX:zs,curveMonotoneY:qs,curveNatural:Ws,curveStep:Us,curveStepAfter:Ys,curveStepBefore:Hs},Qv=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Jv=function(t,e){let r=Om(t,/(?:init\b)|(?:initialize\b)/),i={};if(Array.isArray(r)){let a=r.map(s=>s.args);la(a),i=Et(i,[...a])}else i=r.args;if(!i)return;let o=ba(t,e),n="config";return i[n]!==void 0&&(o==="flowchart-v2"&&(o="flowchart"),i[o]=i[n],delete i[n]),i},Om=function(t,e=null){try{let r=new RegExp(`[%]{2}(?![{]${Qv.source})(?=[}][%]{2}).* +`,"ig");t=t.trim().replace(r,"").replace(/'/gm,'"'),Y.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let i,o=[];for(;(i=bo.exec(t))!==null;)if(i.index===bo.lastIndex&&bo.lastIndex++,i&&!e||e&&i[1]&&i[1].match(e)||e&&i[2]&&i[2].match(e)){let n=i[1]?i[1]:i[2],a=i[3]?i[3].trim():i[4]?JSON.parse(i[4].trim()):null;o.push({type:n,args:a})}return o.length===0?{type:t,args:null}:o.length===1?o[0]:o}catch(r){return Y.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},tk=function(t){return t.replace(bo,"")},ek=function(t,e){for(let[r,i]of e.entries())if(i.match(t))return r;return-1};function rk(t,e){if(!t)return e;let r=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return Zv[r]??e}function ik(t,e){let r=t.trim();if(r)return e.securityLevel!=="loose"?(0,km.sanitizeUrl)(r):r}var ok=(t,...e)=>{let r=t.split("."),i=r.length-1,o=r[i],n=window;for(let a=0;a{r+=Im(o,e),e=o});let i=r/2;return Fl(t,i)}function ak(t){return t.length===1?t[0]:nk(t)}var sm=(t,e=2)=>{let r=Math.pow(10,e);return Math.round(t*r)/r},Fl=(t,e)=>{let r,i=e;for(let o of t){if(r){let n=Im(o,r);if(n=1)return{x:o.x,y:o.y};if(a>0&&a<1)return{x:sm((1-a)*r.x+a*o.x,5),y:sm((1-a)*r.y+a*o.y,5)}}}r=o}throw new Error("Could not find a suitable point for the given distance")},sk=(t,e,r)=>{Y.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());let o=Fl(e,25),n=t?10:5,a=Math.atan2(e[0].y-o.y,e[0].x-o.x),s={x:0,y:0};return s.x=Math.sin(a)*n+(e[0].x+o.x)/2,s.y=-Math.cos(a)*n+(e[0].y+o.y)/2,s};function lk(t,e,r){let i=structuredClone(r);Y.info("our points",i),e!=="start_left"&&e!=="start_right"&&i.reverse();let o=25+t,n=Fl(i,o),a=10+t*.5,s=Math.atan2(i[0].y-n.y,i[0].x-n.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(s+Math.PI)*a+(i[0].x+n.x)/2,l.y=-Math.cos(s+Math.PI)*a+(i[0].y+n.y)/2):e==="end_right"?(l.x=Math.sin(s-Math.PI)*a+(i[0].x+n.x)/2-5,l.y=-Math.cos(s-Math.PI)*a+(i[0].y+n.y)/2-5):e==="end_left"?(l.x=Math.sin(s)*a+(i[0].x+n.x)/2-5,l.y=-Math.cos(s)*a+(i[0].y+n.y)/2-5):(l.x=Math.sin(s)*a+(i[0].x+n.x)/2,l.y=-Math.cos(s)*a+(i[0].y+n.y)/2),l}function ck(t){let e="",r="";for(let i of t)i!==void 0&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":e=e+i+";");return{style:e,labelStyle:r}}var lm=0,uk=()=>(lm++,"id-"+Math.random().toString(36).substr(2,12)+"-"+lm);function hk(t){let e="",r="0123456789abcdef",i=r.length;for(let o=0;ohk(t.length),pk=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:""}},dk=function(t,e){let r=e.text.replace(Bl.lineBreakRegex," "),[,i]=Ml(e.fontSize),o=t.append("text");o.attr("x",e.x),o.attr("y",e.y),o.style("text-anchor",e.anchor),o.style("font-family",e.fontFamily),o.style("font-size",i),o.style("font-weight",e.fontWeight),o.attr("fill",e.fill),e.class!==void 0&&o.attr("class",e.class);let n=o.append("tspan");return n.attr("x",e.x+e.textMargin*2),n.attr("fill",e.fill),n.text(r),o},mk=Pn((t,e,r)=>{if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},r),Bl.lineBreakRegex.test(t)))return t;let i=t.split(" "),o=[],n="";return i.forEach((a,s)=>{let l=ua(`${a} `,r),c=ua(n,r);if(l>e){let{hyphenatedStrings:u,remainingWord:p}=gk(a,e,"-",r);o.push(n,...u),n=p}else c+l>=e?(o.push(n),n=a):n=[n,a].filter(Boolean).join(" ");s+1===i.length&&o.push(n)}),o.filter(a=>a!=="").join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),gk=Pn((t,e,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);let o=[...t],n=[],a="";return o.forEach((s,l)=>{let c=`${a}${s}`;if(ua(c,i)>=e){let f=l+1,u=o.length===f,p=`${c}${r}`;n.push(u?c:p),a=""}else a=c}),{hyphenatedStrings:n,remainingWord:a}},(t,e,r="-",i)=>`${t}${e}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function xk(t,e){return Ll(t,e).height}function ua(t,e){return Ll(t,e).width}var Ll=Pn((t,e)=>{let{fontSize:r=12,fontFamily:i="Arial",fontWeight:o=400}=e;if(!t)return{width:0,height:0};let[,n]=Ml(r),a=["sans-serif",i],s=t.split(Bl.lineBreakRegex),l=[],c=Ut("body");if(!c.remove)return{width:0,height:0,lineHeight:0};let h=c.append("svg");for(let u of a){let p=0,g={width:0,height:0,lineHeight:0};for(let _ of s){let T=pk();T.text=_||Kv;let w=dk(h,T).style("font-size",n).style("font-weight",o).style("font-family",u),C=(w._groups||w)[0][0].getBBox();if(C.width===0&&C.height===0)throw new Error("svg element not in render tree");g.width=Math.round(Math.max(g.width,C.width)),p=Math.round(C.height),g.height+=p,g.lineHeight=Math.round(Math.max(g.lineHeight,p))}l.push(g)}h.remove();let f=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[f]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),kl=class{constructor(e=!1,r){this.count=0,this.count=r?r.length:0,this.next=e?()=>this.count++:()=>Date.now()}},aa,yk=function(t){return aa=aa||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),aa.innerHTML=t,unescape(aa.textContent)};function Dm(t){return"str"in t}var _k=(t,e,r,i)=>{var o;if(!i)return;let n=(o=t.node())==null?void 0:o.getBBox();n&&t.append("text").text(i).attr("x",n.x+n.width/2).attr("y",-r).attr("class",e)},Ml=t=>{if(typeof t=="number")return[t,t+"px"];let e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function Nm(t,e){return Md({},t,e)}var To={assignWithDepth:Et,wrapLabel:mk,calculateTextHeight:xk,calculateTextWidth:ua,calculateTextDimensions:Ll,cleanAndMerge:Nm,detectInit:Jv,detectDirective:Om,isSubstringInArray:ek,interpolateToCurve:rk,calcLabelPosition:ak,calcCardinalityPosition:sk,calcTerminalLabelPosition:lk,formatUrl:ik,getStylesFromArray:ck,generateId:uk,random:fk,runFunc:ok,entityDecode:yk,insertTitle:_k,parseFontSize:Ml,InitIDGenerator:kl},Ck=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/#\w+;/g,function(r){let i=r.substring(1,r.length-1);return/^\+?\d+$/.test(i)?"\uFB02\xB0\xB0"+i+"\xB6\xDF":"\uFB02\xB0"+i+"\xB6\xDF"}),e},bk=function(t){return t.replace(/īŦ‚°°/g,"&#").replace(/īŦ‚°/g,"&").replace(/Âļß/g,";")},cm="10.9.1",ki=Object.freeze(jv),jt=Et({},ki),Rm,Si=[],vo=Et({},ki),Ta=(t,e)=>{let r=Et({},t),i={};for(let o of e)zm(o),i=Et(i,o);if(r=Et(r,i),i.theme&&i.theme in Pe){let o=Et({},Rm),n=Et(o.themeVariables||{},i.themeVariables);r.theme&&r.theme in Pe&&(r.themeVariables=Pe[r.theme].getThemeVariables(n))}return vo=r,qm(vo),vo},Tk=t=>(jt=Et({},ki),jt=Et(jt,t),t.theme&&Pe[t.theme]&&(jt.themeVariables=Pe[t.theme].getThemeVariables(t.themeVariables)),Ta(jt,Si),jt),vk=t=>{Rm=Et({},t)},kk=t=>(jt=Et(jt,t),Ta(jt,Si),jt),Pm=()=>Et({},jt),$m=t=>(qm(t),Et(vo,t),_e()),_e=()=>Et({},vo),zm=t=>{t&&(["secure",...jt.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(Y.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&zm(t[e])}))},Sk=t=>{la(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),Si.push(t),Ta(jt,Si)},ha=(t=jt)=>{Si=[],Ta(t,Si)},wk={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},um={},Ak=t=>{um[t]||(Y.warn(wk[t]),um[t]=!0)},qm=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&Ak("LAZY_LOAD_DEPRECATED")},Wm="c4",Bk=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),Fk=()=>J(void 0,null,function*(){let{diagram:t}=yield import("./chunk-GZ2YEU3T.js");return{id:Wm,diagram:t}}),Lk={id:Wm,detector:Bk,loader:Fk},Mk=Lk,Um="flowchart",Ek=(t,e)=>{var r,i;return((r=e?.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((i=e?.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},Ok=()=>J(void 0,null,function*(){let{diagram:t}=yield import("./chunk-YQFDMRPG.js");return{id:Um,diagram:t}}),Ik={id:Um,detector:Ek,loader:Ok},Dk=Ik,Hm="flowchart-v2",Nk=(t,e)=>{var r,i,o;return((r=e?.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"||((i=e?.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((o=e?.flowchart)==null?void 0:o.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},Rk=()=>J(void 0,null,function*(){let{diagram:t}=yield import("./chunk-X6MB5PMS.js");return{id:Hm,diagram:t}}),Pk={id:Hm,detector:Nk,loader:Rk},$k=Pk,Ym="er",zk=t=>/^\s*erDiagram/.test(t),qk=()=>J(void 0,null,function*(){let{diagram:t}=yield import("./chunk-T5COPTNW.js");return{id:Ym,diagram:t}}),Wk={id:Ym,detector:zk,loader:qk},Uk=Wk,jm="gitGraph",Hk=t=>/^\s*gitGraph/.test(t),Yk=()=>J(void 0,null,function*(){let{diagram:t}=yield import("./chunk-YGPACPBP.js");return{id:jm,diagram:t}}),jk={id:jm,detector:Hk,loader:Yk},Gk=jk,Gm="gantt",Vk=t=>/^\s*gantt/.test(t),Xk=()=>J(void 0,null,function*(){let{diagram:t}=yield import("./chunk-FYJN25HH.js");return{id:Gm,diagram:t}}),Kk={id:Gm,detector:Vk,loader:Xk},Zk=Kk,Vm="info",Qk=t=>/^\s*info/.test(t),Jk=()=>J(void 0,null,function*(){let{diagram:t}=yield import("./chunk-A7NFUSCI.js");return{id:Vm,diagram:t}}),tS={id:Vm,detector:Qk,loader:Jk},Xm="pie",eS=t=>/^\s*pie/.test(t),rS=()=>J(void 0,null,function*(){let{diagram:t}=yield import("./chunk-3HQOU2ZR.js");return{id:Xm,diagram:t}}),iS={id:Xm,detector:eS,loader:rS},Km="quadrantChart",oS=t=>/^\s*quadrantChart/.test(t),nS=()=>J(void 0,null,function*(){let{diagram:t}=yield import("./chunk-UHXHQREW.js");return{id:Km,diagram:t}}),aS={id:Km,detector:oS,loader:nS},sS=aS,Zm="xychart",lS=t=>/^\s*xychart-beta/.test(t),cS=()=>J(void 0,null,function*(){let{diagram:t}=yield import("./chunk-YQMUVKG2.js");return{id:Zm,diagram:t}}),uS={id:Zm,detector:lS,loader:cS},hS=uS,Qm="requirement",fS=t=>/^\s*requirement(Diagram)?/.test(t),pS=()=>J(void 0,null,function*(){let{diagram:t}=yield import("./chunk-5WSNGUVD.js");return{id:Qm,diagram:t}}),dS={id:Qm,detector:fS,loader:pS},mS=dS,Jm="sequence",gS=t=>/^\s*sequenceDiagram/.test(t),xS=()=>J(void 0,null,function*(){let{diagram:t}=yield import("./chunk-QOJX5WCH.js");return{id:Jm,diagram:t}}),yS={id:Jm,detector:gS,loader:xS},_S=yS,tg="class",CS=(t,e)=>{var r;return((r=e?.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},bS=()=>J(void 0,null,function*(){let{diagram:t}=yield import("./chunk-2DLUYWF7.js");return{id:tg,diagram:t}}),TS={id:tg,detector:CS,loader:bS},vS=TS,eg="classDiagram",kS=(t,e)=>{var r;return/^\s*classDiagram/.test(t)&&((r=e?.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},SS=()=>J(void 0,null,function*(){let{diagram:t}=yield import("./chunk-P5GLSD7Q.js");return{id:eg,diagram:t}}),wS={id:eg,detector:kS,loader:SS},AS=wS,rg="state",BS=(t,e)=>{var r;return((r=e?.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},FS=()=>J(void 0,null,function*(){let{diagram:t}=yield import("./chunk-YRAOD6UU.js");return{id:rg,diagram:t}}),LS={id:rg,detector:BS,loader:FS},MS=LS,ig="stateDiagram",ES=(t,e)=>{var r;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((r=e?.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},OS=()=>J(void 0,null,function*(){let{diagram:t}=yield import("./chunk-4GQOA6BJ.js");return{id:ig,diagram:t}}),IS={id:ig,detector:ES,loader:OS},DS=IS,og="journey",NS=t=>/^\s*journey/.test(t),RS=()=>J(void 0,null,function*(){let{diagram:t}=yield import("./chunk-4DTOKC54.js");return{id:og,diagram:t}}),PS={id:og,detector:NS,loader:RS},$S=PS,zS=function(t,e){for(let r of e)t.attr(r[0],r[1])},qS=function(t,e,r){let i=new Map;return r?(i.set("width","100%"),i.set("style",`max-width: ${e}px;`)):(i.set("height",t),i.set("width",e)),i},ng=function(t,e,r,i){let o=qS(e,r,i);zS(t,o)},WS=function(t,e,r,i){let o=e.node().getBBox(),n=o.width,a=o.height;Y.info(`SVG bounds: ${n}x${a}`,o);let s=0,l=0;Y.info(`Graph bounds: ${s}x${l}`,t),s=n+r*2,l=a+r*2,Y.info(`Calculated bounds: ${s}x${l}`),ng(e,l,s,i);let c=`${o.x-r} ${o.y-r} ${o.width+2*r} ${o.height+2*r}`;e.attr("viewBox",c)},sa={},US=(t,e,r)=>{let i="";return t in sa&&sa[t]?i=sa[t](r):Y.warn(`No theme found for ${t}`),` & { + 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}; + } + + ${i} + + ${e} +`},HS=(t,e)=>{e!==void 0&&(sa[t]=e)},YS=US,El="",Ol="",Il="",Dl=t=>ko(t,_e()),jS=()=>{El="",Il="",Ol=""},GS=t=>{El=Dl(t).replace(/^\s+/g,"")},VS=()=>El,XS=t=>{Il=Dl(t).replace(/\n\s+/g,` +`)},KS=()=>Il,ZS=t=>{Ol=Dl(t)},QS=()=>Ol,JS=Object.freeze(Object.defineProperty({__proto__:null,clear:jS,getAccDescription:KS,getAccTitle:VS,getDiagramTitle:QS,setAccDescription:XS,setAccTitle:GS,setDiagramTitle:ZS},Symbol.toStringTag,{value:"Module"})),tw=Y,ew=Al,Nl=_e,vq=$m,kq=ki,rw=t=>ko(t,Nl()),iw=WS,ow=()=>JS,fa={},pa=(t,e,r)=>{var i;if(fa[t])throw new Error(`Diagram ${t} already registered.`);fa[t]=e,r&&Em(t,r),HS(t,e.styles),(i=e.injectUtils)==null||i.call(e,tw,ew,Nl,rw,iw,ow(),()=>{})},Rl=t=>{if(t in fa)return fa[t];throw new Sl(t)},Sl=class extends Error{constructor(e){super(`Diagram ${e} not found.`)}},nw=t=>{var e;let{securityLevel:r}=Nl(),i=Ut("body");if(r==="sandbox"){let a=((e=Ut(`#i${t}`).node())==null?void 0:e.contentDocument)??document;i=Ut(a.body)}return i.select(`#${t}`)},aw=(t,e,r)=>{Y.debug(`rendering svg for syntax error +`);let i=nw(e),o=i.append("g");i.attr("viewBox","0 0 2412 512"),ng(i,100,512,!0),o.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"),o.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"),o.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"),o.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"),o.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"),o.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"),o.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"),o.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},ag={draw:aw},sw=ag,lw={db:{},renderer:ag,parser:{parser:{yy:{}},parse:()=>{}}},cw=lw,sg="flowchart-elk",uw=(t,e)=>{var r;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((r=e?.flowchart)==null?void 0:r.defaultRenderer)==="elk")},hw=()=>J(void 0,null,function*(){let{diagram:t}=yield import("./chunk-MASQBS2D.js");return{id:sg,diagram:t}}),fw={id:sg,detector:uw,loader:hw},pw=fw,lg="timeline",dw=t=>/^\s*timeline/.test(t),mw=()=>J(void 0,null,function*(){let{diagram:t}=yield import("./chunk-VFQ5LVVU.js");return{id:lg,diagram:t}}),gw={id:lg,detector:dw,loader:mw},xw=gw,cg="mindmap",yw=t=>/^\s*mindmap/.test(t),_w=()=>J(void 0,null,function*(){let{diagram:t}=yield import("./chunk-6YPOPMS4.js");return{id:cg,diagram:t}}),Cw={id:cg,detector:yw,loader:_w},bw=Cw,ug="sankey",Tw=t=>/^\s*sankey-beta/.test(t),vw=()=>J(void 0,null,function*(){let{diagram:t}=yield import("./chunk-6KII2NPD.js");return{id:ug,diagram:t}}),kw={id:ug,detector:Tw,loader:vw},Sw=kw,hg="block",ww=t=>/^\s*block-beta/.test(t),Aw=()=>J(void 0,null,function*(){let{diagram:t}=yield import("./chunk-5CMFXMAV.js");return{id:hg,diagram:t}}),Bw={id:hg,detector:ww,loader:Aw},Fw=Bw,hm=!1,Pl=()=>{hm||(hm=!0,pa("error",cw,t=>t.toLowerCase().trim()==="error"),pa("---",{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},t=>t.toLowerCase().trimStart().startsWith("---")),Mm(Mk,AS,vS,Uk,Zk,tS,iS,mS,_S,pw,$k,Dk,bw,xw,Gk,DS,MS,$S,sS,Sw,hS,Fw))},da=class{constructor(e,r={}){this.text=e,this.metadata=r,this.type="graph",this.text=Ck(e),this.text+=` +`;let i=_e();try{this.type=ba(e,i)}catch(n){this.type="error",this.detectError=n}let o=Rl(this.type);Y.debug("Type "+this.type),this.db=o.db,this.renderer=o.renderer,this.parser=o.parser,this.parser.parser.yy=this.db,this.init=o.init,this.parse()}parse(){var e,r,i,o,n;if(this.detectError)throw this.detectError;(r=(e=this.db).clear)==null||r.call(e);let a=_e();(i=this.init)==null||i.call(this,a),this.metadata.title&&((n=(o=this.db).setDiagramTitle)==null||n.call(o,this.metadata.title)),this.parser.parse(this.text)}render(e,r){return J(this,null,function*(){yield this.renderer.draw(this.text,e,r,this)})}getParser(){return this.parser}getType(){return this.type}},Lw=(r,...i)=>J(void 0,[r,...i],function*(t,e={}){let o=ba(t,_e());try{Rl(o)}catch{let a=Xv(o);if(!a)throw new ca(`Diagram ${o} not found.`);let{id:s,diagram:l}=yield a();pa(s,l)}return new da(t,e)}),fm=[],Mw=()=>{fm.forEach(t=>{t()}),fm=[]},Ew="graphics-document document";function Ow(t,e){t.attr("role",Ew),e!==""&&t.attr("aria-roledescription",e)}function Iw(t,e,r,i){if(t.insert!==void 0){if(r){let o=`chart-desc-${i}`;t.attr("aria-describedby",o),t.insert("desc",":first-child").attr("id",o).text(r)}if(e){let o=`chart-title-${i}`;t.attr("aria-labelledby",o),t.insert("title",":first-child").attr("id",o).text(e)}}}var Dw=t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();function fg(t){return typeof t>"u"||t===null}function Nw(t){return typeof t=="object"&&t!==null}function Rw(t){return Array.isArray(t)?t:fg(t)?[]:[t]}function Pw(t,e){var r,i,o,n;if(e)for(n=Object.keys(e),r=0,i=n.length;rs&&(n=" ... ",e=i-s+n.length),r-i>s&&(a=" ...",r=i+s-a.length),{str:n+t.slice(e,r).replace(/\t/g,"\u2192")+a,pos:i-e+n.length}}function xl(t,e){return $t.repeat(" ",e-t.length)+t}function Gw(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],o=[],n,a=-1;n=r.exec(t.buffer);)o.push(n.index),i.push(n.index+n[0].length),t.position<=n.index&&a<0&&(a=i.length-2);a<0&&(a=i.length-1);var s="",l,c,h=Math.min(t.line+e.linesAfter,o.length).toString().length,f=e.maxLength-(e.indent+h+3);for(l=1;l<=e.linesBefore&&!(a-l<0);l++)c=gl(t.buffer,i[a-l],o[a-l],t.position-(i[a]-i[a-l]),f),s=$t.repeat(" ",e.indent)+xl((t.line-l+1).toString(),h)+" | "+c.str+` +`+s;for(c=gl(t.buffer,i[a],o[a],t.position,f),s+=$t.repeat(" ",e.indent)+xl((t.line+1).toString(),h)+" | "+c.str+` +`,s+=$t.repeat("-",e.indent+h+3+c.pos)+`^ +`,l=1;l<=e.linesAfter&&!(a+l>=o.length);l++)c=gl(t.buffer,i[a+l],o[a+l],t.position-(i[a]-i[a+l]),f),s+=$t.repeat(" ",e.indent)+xl((t.line+l+1).toString(),h)+" | "+c.str+` +`;return s.replace(/\n$/,"")}var Vw=Gw,Xw=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Kw=["scalar","sequence","mapping"];function Zw(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function Qw(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(Xw.indexOf(r)===-1)throw new Re('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=Zw(e.styleAliases||null),Kw.indexOf(this.kind)===-1)throw new Re('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var Ot=Qw;function pm(t,e){var r=[];return t[e].forEach(function(i){var o=r.length;r.forEach(function(n,a){n.tag===i.tag&&n.kind===i.kind&&n.multi===i.multi&&(o=a)}),r[o]=i}),r}function Jw(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function i(o){o.multi?(t.multi[o.kind].push(o),t.multi.fallback.push(o)):t[o.kind][o.tag]=t.fallback[o.tag]=o}for(e=0,r=arguments.length;e=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),CA=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function bA(t){return!(t===null||!CA.test(t)||t[t.length-1]==="_")}function TA(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}var vA=/^[-+]?[0-9]+e/;function kA(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if($t.isNegativeZero(t))return"-0.0";return r=t.toString(10),vA.test(r)?r.replace("e",".e"):r}function SA(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||$t.isNegativeZero(t))}var wA=new Ot("tag:yaml.org,2002:float",{kind:"scalar",resolve:bA,construct:TA,predicate:SA,represent:kA,defaultStyle:"lowercase"}),dg=oA.extend({implicit:[lA,fA,_A,wA]}),AA=dg,mg=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),gg=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 BA(t){return t===null?!1:mg.exec(t)!==null||gg.exec(t)!==null}function FA(t){var e,r,i,o,n,a,s,l=0,c=null,h,f,u;if(e=mg.exec(t),e===null&&(e=gg.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],i=+e[2]-1,o=+e[3],!e[4])return new Date(Date.UTC(r,i,o));if(n=+e[4],a=+e[5],s=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(h=+e[10],f=+(e[11]||0),c=(h*60+f)*6e4,e[9]==="-"&&(c=-c)),u=new Date(Date.UTC(r,i,o,n,a,s,l)),c&&u.setTime(u.getTime()-c),u}function LA(t){return t.toISOString()}var MA=new Ot("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:BA,construct:FA,instanceOf:Date,represent:LA});function EA(t){return t==="<<"||t===null}var OA=new Ot("tag:yaml.org,2002:merge",{kind:"scalar",resolve:EA}),$l=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;function IA(t){if(t===null)return!1;var e,r,i=0,o=t.length,n=$l;for(r=0;r64)){if(e<0)return!1;i+=6}return i%8===0}function DA(t){var e,r,i=t.replace(/[\r\n=]/g,""),o=i.length,n=$l,a=0,s=[];for(e=0;e>16&255),s.push(a>>8&255),s.push(a&255)),a=a<<6|n.indexOf(i.charAt(e));return r=o%4*6,r===0?(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)):r===18?(s.push(a>>10&255),s.push(a>>2&255)):r===12&&s.push(a>>4&255),new Uint8Array(s)}function NA(t){var e="",r=0,i,o,n=t.length,a=$l;for(i=0;i>18&63],e+=a[r>>12&63],e+=a[r>>6&63],e+=a[r&63]),r=(r<<8)+t[i];return o=n%3,o===0?(e+=a[r>>18&63],e+=a[r>>12&63],e+=a[r>>6&63],e+=a[r&63]):o===2?(e+=a[r>>10&63],e+=a[r>>4&63],e+=a[r<<2&63],e+=a[64]):o===1&&(e+=a[r>>2&63],e+=a[r<<4&63],e+=a[64],e+=a[64]),e}function RA(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var PA=new Ot("tag:yaml.org,2002:binary",{kind:"scalar",resolve:IA,construct:DA,predicate:RA,represent:NA}),$A=Object.prototype.hasOwnProperty,zA=Object.prototype.toString;function qA(t){if(t===null)return!0;var e=[],r,i,o,n,a,s=t;for(r=0,i=s.length;r>10)+55296,(t-65536&1023)+56320)}var bg=new Array(256),Tg=new Array(256);for(Ir=0;Ir<256;Ir++)bg[Ir]=gm(Ir)?1:0,Tg[Ir]=gm(Ir);var Ir;function sB(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||QA,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function vg(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=Vw(r),new Re(e,r)}function W(t,e){throw vg(t,e)}function xa(t,e){t.onWarning&&t.onWarning.call(null,vg(t,e))}var xm={YAML:function(e,r,i){var o,n,a;e.version!==null&&W(e,"duplication of %YAML directive"),i.length!==1&&W(e,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),o===null&&W(e,"ill-formed argument of the YAML directive"),n=parseInt(o[1],10),a=parseInt(o[2],10),n!==1&&W(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&xa(e,"unsupported YAML version of the document")},TAG:function(e,r,i){var o,n;i.length!==2&&W(e,"TAG directive accepts exactly two arguments"),o=i[0],n=i[1],_g.test(o)||W(e,"ill-formed tag handle (first argument) of the TAG directive"),nr.call(e.tagMap,o)&&W(e,'there is a previously declared suffix for "'+o+'" tag handle'),Cg.test(n)||W(e,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch{W(e,"tag prefix is malformed: "+n)}e.tagMap[o]=n}};function or(t,e,r,i){var o,n,a,s;if(e1&&(t.result+=$t.repeat(` +`,e-1))}function lB(t,e,r){var i,o,n,a,s,l,c,h,f=t.kind,u=t.result,p;if(p=t.input.charCodeAt(t.position),Gt(p)||bi(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(o=t.input.charCodeAt(t.position+1),Gt(o)||r&&bi(o)))return!1;for(t.kind="scalar",t.result="",n=a=t.position,s=!1;p!==0;){if(p===58){if(o=t.input.charCodeAt(t.position+1),Gt(o)||r&&bi(o))break}else if(p===35){if(i=t.input.charCodeAt(t.position-1),Gt(i))break}else{if(t.position===t.lineStart&&va(t)||r&&bi(p))break;if(ye(p))if(l=t.line,c=t.lineStart,h=t.lineIndent,dt(t,!1,-1),t.lineIndent>=e){s=!0,p=t.input.charCodeAt(t.position);continue}else{t.position=a,t.line=l,t.lineStart=c,t.lineIndent=h;break}}s&&(or(t,n,a,!1),ql(t,t.line-l),n=a=t.position,s=!1),Dr(p)||(a=t.position+1),p=t.input.charCodeAt(++t.position)}return or(t,n,a,!1),t.result?!0:(t.kind=f,t.result=u,!1)}function cB(t,e){var r,i,o;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=o=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(or(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,o=t.position;else return!0;else ye(r)?(or(t,i,o,!0),ql(t,dt(t,!1,e)),i=o=t.position):t.position===t.lineStart&&va(t)?W(t,"unexpected end of the document within a single quoted scalar"):(t.position++,o=t.position);W(t,"unexpected end of the stream within a single quoted scalar")}function uB(t,e){var r,i,o,n,a,s;if(s=t.input.charCodeAt(t.position),s!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(s=t.input.charCodeAt(t.position))!==0;){if(s===34)return or(t,r,t.position,!0),t.position++,!0;if(s===92){if(or(t,r,t.position,!0),s=t.input.charCodeAt(++t.position),ye(s))dt(t,!1,e);else if(s<256&&bg[s])t.result+=Tg[s],t.position++;else if((a=oB(s))>0){for(o=a,n=0;o>0;o--)s=t.input.charCodeAt(++t.position),(a=iB(s))>=0?n=(n<<4)+a:W(t,"expected hexadecimal character");t.result+=aB(n),t.position++}else W(t,"unknown escape sequence");r=i=t.position}else ye(s)?(or(t,r,i,!0),ql(t,dt(t,!1,e)),r=i=t.position):t.position===t.lineStart&&va(t)?W(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}W(t,"unexpected end of the stream within a double quoted scalar")}function hB(t,e){var r=!0,i,o,n,a=t.tag,s,l=t.anchor,c,h,f,u,p,g=Object.create(null),_,T,w,C;if(C=t.input.charCodeAt(t.position),C===91)h=93,p=!1,s=[];else if(C===123)h=125,p=!0,s={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),C=t.input.charCodeAt(++t.position);C!==0;){if(dt(t,!0,e),C=t.input.charCodeAt(t.position),C===h)return t.position++,t.tag=a,t.anchor=l,t.kind=p?"mapping":"sequence",t.result=s,!0;r?C===44&&W(t,"expected the node content, but found ','"):W(t,"missed comma between flow collection entries"),T=_=w=null,f=u=!1,C===63&&(c=t.input.charCodeAt(t.position+1),Gt(c)&&(f=u=!0,t.position++,dt(t,!0,e))),i=t.line,o=t.lineStart,n=t.position,wi(t,e,ma,!1,!0),T=t.tag,_=t.result,dt(t,!0,e),C=t.input.charCodeAt(t.position),(u||t.line===i)&&C===58&&(f=!0,C=t.input.charCodeAt(++t.position),dt(t,!0,e),wi(t,e,ma,!1,!0),w=t.result),p?Ti(t,s,g,T,_,w,i,o,n):f?s.push(Ti(t,null,g,T,_,w,i,o,n)):s.push(_),dt(t,!0,e),C=t.input.charCodeAt(t.position),C===44?(r=!0,C=t.input.charCodeAt(++t.position)):r=!1}W(t,"unexpected end of the stream within a flow collection")}function fB(t,e){var r,i,o=yl,n=!1,a=!1,s=e,l=0,c=!1,h,f;if(f=t.input.charCodeAt(t.position),f===124)i=!1;else if(f===62)i=!0;else return!1;for(t.kind="scalar",t.result="";f!==0;)if(f=t.input.charCodeAt(++t.position),f===43||f===45)yl===o?o=f===43?dm:JA:W(t,"repeat of a chomping mode identifier");else if((h=nB(f))>=0)h===0?W(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?W(t,"repeat of an indentation width identifier"):(s=e+h-1,a=!0);else break;if(Dr(f)){do f=t.input.charCodeAt(++t.position);while(Dr(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!ye(f)&&f!==0)}for(;f!==0;){for(zl(t),t.lineIndent=0,f=t.input.charCodeAt(t.position);(!a||t.lineIndents&&(s=t.lineIndent),ye(f)){l++;continue}if(t.lineIndente)&&l!==0)W(t,"bad indentation of a sequence entry");else if(t.lineIndente)&&(T&&(a=t.line,s=t.lineStart,l=t.position),wi(t,e,ga,!0,o)&&(T?g=t.result:_=t.result),T||(Ti(t,f,u,p,g,_,a,s,l),p=g=_=null),dt(t,!0,-1),C=t.input.charCodeAt(t.position)),(t.line===n||t.lineIndent>e)&&C!==0)W(t,"bad indentation of a mapping entry");else if(t.lineIndente?l=1:t.lineIndent===e?l=0:t.lineIndente?l=1:t.lineIndent===e?l=0:t.lineIndent tag; it should be "scalar", not "'+t.kind+'"'),f=0,u=t.implicitTypes.length;f"),t.result!==null&&g.kind!==t.kind&&W(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+g.kind+'", not "'+t.kind+'"'),g.resolve(t.result,t.tag)?(t.result=g.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):W(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||h}function xB(t){var e=t.position,r,i,o,n=!1,a;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(a=t.input.charCodeAt(t.position))!==0&&(dt(t,!0,-1),a=t.input.charCodeAt(t.position),!(t.lineIndent>0||a!==37));){for(n=!0,a=t.input.charCodeAt(++t.position),r=t.position;a!==0&&!Gt(a);)a=t.input.charCodeAt(++t.position);for(i=t.input.slice(r,t.position),o=[],i.length<1&&W(t,"directive name must not be less than one character in length");a!==0;){for(;Dr(a);)a=t.input.charCodeAt(++t.position);if(a===35){do a=t.input.charCodeAt(++t.position);while(a!==0&&!ye(a));break}if(ye(a))break;for(r=t.position;a!==0&&!Gt(a);)a=t.input.charCodeAt(++t.position);o.push(t.input.slice(r,t.position))}a!==0&&zl(t),nr.call(xm,i)?xm[i](t,i,o):xa(t,'unknown document directive "'+i+'"')}if(dt(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,dt(t,!0,-1)):n&&W(t,"directives end mark is expected"),wi(t,t.lineIndent-1,ga,!1,!0),dt(t,!0,-1),t.checkLineBreaks&&eB.test(t.input.slice(e,t.position))&&xa(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&va(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,dt(t,!0,-1));return}if(t.position"u"&&(r=e,e=null);var i=kg(t,r);if(typeof e!="function")return i;for(var o=0,n=i.length;ot.replace(/\r\n?/g,` +`).replace(/<(\w+)([^>]*)>/g,(e,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),AB=t=>{let{text:e,metadata:r}=SB(t),{displayMode:i,title:o,config:n={}}=r;return i&&(n.gantt||(n.gantt={}),n.gantt.displayMode=i),{title:o,config:n,text:e}},BB=t=>{let e=To.detectInit(t)??{},r=To.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:i})=>{}):r?.type==="wrap"&&(e.wrap=!0),{text:tk(t),directive:e}};function Sg(t){let e=wB(t),r=AB(e),i=BB(r.text),o=Nm(r.config,i.directive);return t=Dw(i.text),{code:t,title:r.title,config:o}}var FB=5e4,LB="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",MB="sandbox",EB="loose",OB="http://www.w3.org/2000/svg",IB="http://www.w3.org/1999/xlink",DB="http://www.w3.org/1999/xhtml",NB="100%",RB="100%",PB="border:0;margin:0;",$B="margin:0",zB="allow-top-navigation-by-user-activation allow-popups",qB='The "iframe" tag is not supported by your browser.',WB=["foreignobject"],UB=["dominant-baseline"];function wg(t){let e=Sg(t);return ha(),Sk(e.config??{}),e}function HB(t,e){return J(this,null,function*(){Pl(),t=wg(t).code;try{yield Wl(t)}catch(r){if(e?.suppressErrors)return!1;throw r}return!0})}var Cm=(t,e,r=[])=>` +.${t} ${e} { ${r.join(" !important; ")} !important; }`,YB=(t,e={})=>{var r;let i="";if(t.themeCSS!==void 0&&(i+=` +${t.themeCSS}`),t.fontFamily!==void 0&&(i+=` +:root { --mermaid-font-family: ${t.fontFamily}}`),t.altFontFamily!==void 0&&(i+=` +:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!Xn(e)){let s=t.htmlLabels||((r=t.flowchart)==null?void 0:r.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(let l in e){let c=e[l];Xn(c.styles)||s.forEach(h=>{i+=Cm(c.id,h,c.styles)}),Xn(c.textStyles)||(i+=Cm(c.id,"tspan",c.textStyles))}}return i},jB=(t,e,r,i)=>{let o=YB(t,r),n=YS(e,o,t.themeVariables);return na(rm(`${i}{${n}}`),im)},GB=(t="",e,r)=>{let i=t;return!r&&!e&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=bk(i),i=i.replace(/
/g,"
"),i},VB=(t="",e)=>{var r,i;let o=(i=(r=e?.viewBox)==null?void 0:r.baseVal)!=null&&i.height?e.viewBox.baseVal.height+"px":RB,n=btoa(''+t+"");return``},bm=(t,e,r,i,o)=>{let n=t.append("div");n.attr("id",r),i&&n.attr("style",i);let a=n.append("svg").attr("id",e).attr("width","100%").attr("xmlns",OB);return o&&a.attr("xmlns:xlink",o),a.append("g"),t};function Tm(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}var XB=(t,e,r,i)=>{var o,n,a;(o=t.getElementById(e))==null||o.remove(),(n=t.getElementById(r))==null||n.remove(),(a=t.getElementById(i))==null||a.remove()},KB=function(t,e,r){return J(this,null,function*(){var i,o,n,a,s,l;Pl();let c=wg(e);e=c.code;let h=_e();Y.debug(h),e.length>(h?.maxTextSize??FB)&&(e=LB);let f="#"+t,u="i"+t,p="#"+u,g="d"+t,_="#"+g,T=Ut("body"),w=h.securityLevel===MB,C=h.securityLevel===EB,E=h.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),w){let U=Tm(Ut(r),u);T=Ut(U.nodes()[0].contentDocument.body),T.node().style.margin=0}else T=Ut(r);bm(T,t,g,`font-family: ${E}`,IB)}else{if(XB(document,t,g,u),w){let U=Tm(Ut("body"),u);T=Ut(U.nodes()[0].contentDocument.body),T.node().style.margin=0}else T=Ut("body");bm(T,t,g)}let v,D;try{v=yield Wl(e,{title:c.title})}catch(U){v=new da("error"),D=U}let A=T.select(_).node(),M=v.type,V=A.firstChild,j=V.firstChild,ot=(o=(i=v.renderer).getClasses)==null?void 0:o.call(i,e,v),I=jB(h,M,ot,f),B=document.createElement("style");B.innerHTML=I,V.insertBefore(B,j);try{yield v.renderer.draw(e,t,cm,v)}catch(U){throw sw.draw(e,t,cm),U}let x=T.select(`${_} svg`),y=(a=(n=v.db).getAccTitle)==null?void 0:a.call(n),O=(l=(s=v.db).getAccDescription)==null?void 0:l.call(s);QB(M,x,y,O),T.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",DB);let k=T.select(_).node().innerHTML;if(Y.debug("config.arrowMarkerAbsolute",h.arrowMarkerAbsolute),k=GB(k,w,Am(h.arrowMarkerAbsolute)),w){let U=T.select(_+" svg").node();k=VB(k,U)}else C||(k=Ar.sanitize(k,{ADD_TAGS:WB,ADD_ATTR:UB}));if(Mw(),D)throw D;let N=Ut(w?p:_).node();return N&&"remove"in N&&N.remove(),{svg:k,bindFunctions:v.db.bindFunctions}})};function ZB(t={}){var e;t?.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),vk(t),t?.theme&&t.theme in Pe?t.themeVariables=Pe[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Pe.default.getThemeVariables(t.themeVariables));let r=typeof t=="object"?Tk(t):Pm();Al(r.logLevel),Pl()}var Wl=(t,e={})=>{let{code:r}=Sg(t);return Lw(r,e)};function QB(t,e,r,i){Ow(e,t),Iw(e,r,i,e.attr("id"))}var Nr=Object.freeze({render:KB,parse:HB,getDiagramFromText:Wl,initialize:ZB,getConfig:_e,setConfig:$m,getSiteConfig:Pm,updateSiteConfig:kk,reset:()=>{ha()},globalReset:()=>{ha(ki)},defaultConfig:ki});Al(_e().logLevel);ha(_e());var JB=()=>J(void 0,null,function*(){Y.debug("Loading registered diagrams");let e=(yield Promise.allSettled(Object.entries(vi).map(n=>J(void 0,[n],function*([r,{detector:i,loader:o}]){if(o)try{Rl(r)}catch{try{let{diagram:s,id:l}=yield o();pa(l,s,i)}catch(s){throw Y.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete vi[r],s}}})))).filter(r=>r.status==="rejected");if(e.length>0){Y.error(`Failed to load ${e.length} external diagrams`);for(let r of e)Y.error(r);throw new Error(`Failed to load ${e.length} external diagrams`)}}),tF=(t,e,r)=>{Y.warn(t),Dm(t)?(r&&r(t.str,t.hash),e.push(ie(re({},t),{message:t.str,error:t}))):(r&&r(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},Ag=function(){return J(this,arguments,function*(t={querySelector:".mermaid"}){try{yield eF(t)}catch(e){if(Dm(e)&&Y.error(e.str),Ce.parseError&&Ce.parseError(e),!t.suppressErrors)throw Y.error("Use the suppressErrors option to suppress these errors"),e}})},eF=function(){return J(this,arguments,function*({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){let i=Nr.getConfig();Y.debug(`${t?"":"No "}Callback function found`);let o;if(r)o=r;else if(e)o=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");Y.debug(`Found ${o.length} diagrams`),i?.startOnLoad!==void 0&&(Y.debug("Start On Load: "+i?.startOnLoad),Nr.updateSiteConfig({startOnLoad:i?.startOnLoad}));let n=new To.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed),a,s=[];for(let l of Array.from(o)){Y.info("Rendering diagram: "+l.id);if(l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");let c=`mermaid-${n.next()}`;a=l.innerHTML,a=fc(To.entityDecode(a)).trim().replace(//gi,"
");let h=To.detectInit(a);h&&Y.debug("Detected early reinit: ",h);try{let{svg:f,bindFunctions:u}=yield Mg(c,a,l);l.innerHTML=f,t&&(yield t(c)),u&&u(l)}catch(f){tF(f,s,Ce.parseError)}}if(s.length>0)throw s[0]})},Bg=function(t){Nr.initialize(t)},rF=function(t,e,r){return J(this,null,function*(){Y.warn("mermaid.init is deprecated. Please use run instead."),t&&Bg(t);let i={postRenderCallback:r,querySelector:".mermaid"};typeof e=="string"?i.querySelector=e:e&&(e instanceof HTMLElement?i.nodes=[e]:i.nodes=e),yield Ag(i)})},iF=(r,...i)=>J(void 0,[r,...i],function*(t,{lazyLoad:e=!0}={}){Mm(...t),e===!1&&(yield JB())}),Fg=function(){if(Ce.startOnLoad){let{startOnLoad:t}=Nr.getConfig();t&&Ce.run().catch(e=>Y.error("Mermaid failed to initialize",e))}};if(typeof document<"u"){window.addEventListener("load",Fg,!1)}var oF=function(t){Ce.parseError=t},ya=[],_l=!1,Lg=()=>J(void 0,null,function*(){if(!_l){for(_l=!0;ya.length>0;){let t=ya.shift();if(t)try{yield t()}catch(e){Y.error("Error executing queue",e)}}_l=!1}}),nF=(t,e)=>J(void 0,null,function*(){return new Promise((r,i)=>{let o=()=>new Promise((n,a)=>{Nr.parse(t,e).then(s=>{n(s),r(s)},s=>{var l;Y.error("Error parsing",s),(l=Ce.parseError)==null||l.call(Ce,s),a(s),i(s)})});ya.push(o),Lg().catch(i)})}),Mg=(t,e,r)=>new Promise((i,o)=>{let n=()=>new Promise((a,s)=>{Nr.render(t,e,r).then(l=>{a(l),i(l)},l=>{var c;Y.error("Error parsing",l),(c=Ce.parseError)==null||c.call(Ce,l),s(l),o(l)})});ya.push(n),Lg().catch(o)}),Ce={startOnLoad:!0,mermaidAPI:Nr,parse:nF,render:Mg,init:rF,run:Ag,registerExternalDiagrams:iF,initialize:Bg,parseError:void 0,contentLoaded:Fg,setParseErrorHandler:oF,detectType:ba};export{fc as a,pc as b,mc as c,gc as d,xc as e,l0 as f,c0 as g,Ut as h,ax as i,Cx as j,hC as k,zi as l,Ja as m,fs as n,gr as o,me as p,Xr as q,Kr as r,Be as s,Fe as t,Zr as u,oh as v,nh as w,Ue as x,ah as y,sh as z,Jr as A,on as B,Ih as C,n_ as D,d_ as E,Vi as F,m_ as G,g_ as H,ws as I,Xe as J,$C as K,Fr as L,$ as M,H as N,ft as O,si as P,ce as Q,Ht as R,li as S,Ke as T,po as U,Pn as V,$p as W,di as X,qp as Y,jp as Z,ul as _,Gp as $,Vp as aa,Xp as ba,zn as ca,Qp as da,xe as ea,Lr as fa,Mr as ga,qn as ha,rr as ia,td as ja,mi as ka,ad as la,ld as ma,pl as na,gi as oa,hd as pa,fd as qa,Wn as ra,dd as sa,Un as ta,Hn as ua,vd as va,kd as wa,Ad as xa,Bd as ya,Fd as za,Md as Aa,Od as Ba,Gn as Ca,$d as Da,Xn as Ea,Y as Fa,wo as Ga,ko as Ha,Am as Ia,xq as Ja,am as Ka,yq as La,Dv as Ma,Bl as Na,qv as Oa,jv as Pa,Et as Qa,Kv as Ra,rk as Sa,ck as Ta,uk as Ua,fk as Va,mk as Wa,xk as Xa,ua as Ya,Ml as Za,Nm as _a,To as $a,bk as ab,_e as bb,ng as cb,WS as db,jS as eb,GS as fb,VS as gb,XS as hb,KS as ib,ZS as jb,QS as kb,JS as lb,Nl as mb,vq as nb,kq as ob,iw as pb,nw as qb}; diff --git a/chunk-3HQOU2ZR.js b/chunk-3HQOU2ZR.js new file mode 100644 index 0000000..f172cfb --- /dev/null +++ b/chunk-3HQOU2ZR.js @@ -0,0 +1,35 @@ +import{E as H,Fa as J,H as st,Ha as nt,Pa as rt,Za as at,_a as lt,b as kt,c as bt,cb as ct,eb as ot,fb as ht,gb as ut,hb as yt,ib as pt,jb as ft,kb as gt,l as it,mb as K,qb as dt}from"./chunk-2YKPSI5H.js";import{h as et}from"./chunk-TWZW5B45.js";var Wt=et(kt(),1),jt=et(bt(),1);var Q=function(){var i=function(d,t,e,s){for(e=e||{},s=d.length;s--;e[d[s]]=t);return e},_=[1,3],F=[1,4],p=[1,5],g=[1,6],S=[1,10,12,14,16,18,19,20,21,22],N=[2,4],D=[1,5,10,12,14,16,18,19,20,21,22],o=[20,21,22],E=[2,7],m=[1,12],C=[1,13],O=[1,14],x=[1,15],P=[1,16],h=[1,17],$={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(t,e,s,r,a,n,w){var u=n.length-1;switch(a){case 3:r.setShowData(!0);break;case 6:this.$=n[u-1];break;case 8:r.addSection(n[u-1],r.cleanupValue(n[u]));break;case 9:this.$=n[u].trim(),r.setDiagramTitle(this.$);break;case 10:this.$=n[u].trim(),r.setAccTitle(this.$);break;case 11:case 12:this.$=n[u].trim(),r.setAccDescription(this.$);break;case 13:r.addSection(n[u].substr(8)),this.$=n[u].substr(8);break}},table:[{3:1,4:2,5:_,20:F,21:p,22:g},{1:[3]},{3:7,4:2,5:_,20:F,21:p,22:g},i(S,N,{6:8,7:[1,9]}),i(D,[2,14]),i(D,[2,15]),i(D,[2,16]),{1:[2,1]},i(o,E,{8:10,9:11,1:[2,2],10:m,12:C,14:O,16:x,18:P,19:h}),i(S,N,{6:18}),i(S,[2,5]),{4:19,20:F,21:p,22:g},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},i(o,[2,12]),i(o,[2,13]),i(o,E,{8:10,9:11,1:[2,3],10:m,12:C,14:O,16:x,18:P,19:h}),i(S,[2,6]),i(o,[2,8]),i(o,[2,9]),i(o,[2,10]),i(o,[2,11])],defaultActions:{7:[2,1]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var s=new Error(t);throw s.hash=e,s}},parse:function(t){var e=this,s=[0],r=[],a=[null],n=[],w=this.table,u="",c=0,A=0,V=2,z=1,B=n.slice.call(arguments,1),l=Object.create(this.lexer),T={yy:{}};for(var U in this.yy)Object.prototype.hasOwnProperty.call(this.yy,U)&&(T.yy[U]=this.yy[U]);l.setInput(t,T.yy),T.yy.lexer=l,T.yy.parser=this,typeof l.yylloc>"u"&&(l.yylloc={});var Y=l.yylloc;n.push(Y);var mt=l.options&&l.options.ranges;typeof T.yy.parseError=="function"?this.parseError=T.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function xt(){var b;return b=r.pop()||l.lex()||z,typeof b!="number"&&(b instanceof Array&&(r=b,b=r.pop()),b=e.symbols_[b]||b),b}for(var y,I,f,q,L={},W,k,tt,j;;){if(I=s[s.length-1],this.defaultActions[I]?f=this.defaultActions[I]:((y===null||typeof y>"u")&&(y=xt()),f=w[I]&&w[I][y]),typeof f>"u"||!f.length||!f[0]){var Z="";j=[];for(W in w[I])this.terminals_[W]&&W>V&&j.push("'"+this.terminals_[W]+"'");l.showPosition?Z="Parse error on line "+(c+1)+`: +`+l.showPosition()+` +Expecting `+j.join(", ")+", got '"+(this.terminals_[y]||y)+"'":Z="Parse error on line "+(c+1)+": Unexpected "+(y==z?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(Z,{text:l.match,token:this.terminals_[y]||y,line:l.yylineno,loc:Y,expected:j})}if(f[0]instanceof Array&&f.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+y);switch(f[0]){case 1:s.push(y),a.push(l.yytext),n.push(l.yylloc),s.push(f[1]),y=null,A=l.yyleng,u=l.yytext,c=l.yylineno,Y=l.yylloc;break;case 2:if(k=this.productions_[f[1]][1],L.$=a[a.length-k],L._$={first_line:n[n.length-(k||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(k||1)].first_column,last_column:n[n.length-1].last_column},mt&&(L._$.range=[n[n.length-(k||1)].range[0],n[n.length-1].range[1]]),q=this.performAction.apply(L,[u,A,c,T.yy,f[1],a,n].concat(B)),typeof q<"u")return q;k&&(s=s.slice(0,-1*k*2),a=a.slice(0,-1*k),n=n.slice(0,-1*k)),s.push(this.productions_[f[1]][0]),a.push(L.$),n.push(L._$),tt=w[s[s.length-2]][s[s.length-1]],s.push(tt);break;case 3:return!0}}return!0}},R=function(){var d={EOF:1,parseError:function(e,s){if(this.yy.parser)this.yy.parser.parseError(e,s);else throw new Error(e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);return e?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,s=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=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===r.length?this.yylloc.first_column:0)+r[r.length-s.length].length-s[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-e]),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(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+` +`+e+"^"},test_match:function(t,e){var s,r,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))),r=t[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],s=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var n in a)this[n]=a[n];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,e,s,r;this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),n=0;ne[0].length)){if(e=s,r=n,this.options.backtrack_lexer){if(t=this.test_match(s,a[n]),t!==!1)return t;if(this._backtrack){e=!1;continue}else return!1}else if(!this.options.flex)break}return e?(t=this.test_match(e,a[r]),t!==!1?t:!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 e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>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(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,s,r,a){switch(r){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 d}();$.lexer=R;function v(){this.yy={}}return v.prototype=$,$.Parser=v,new v}();Q.parser=Q;var vt=Q,_t=rt.pie,G={sections:{},showData:!1,config:_t},M=G.sections,X=G.showData,St=structuredClone(_t),Et=()=>structuredClone(St),$t=()=>{M=structuredClone(G.sections),X=G.showData,ot()},wt=(i,_)=>{i=nt(i,K()),M[i]===void 0&&(M[i]=_,J.debug(`added new section: ${i}, with value: ${_}`))},At=()=>M,Tt=i=>(i.substring(0,1)===":"&&(i=i.substring(1).trim()),Number(i.trim())),It=i=>{X=i},Dt=()=>X,Ct={getConfig:Et,clear:$t,setDiagramTitle:ft,getDiagramTitle:gt,setAccTitle:ht,getAccTitle:ut,setAccDescription:yt,getAccDescription:pt,addSection:wt,getSections:At,cleanupValue:Tt,setShowData:It,getShowData:Dt},Ot=i=>` + .pieCircle{ + stroke: ${i.pieStrokeColor}; + stroke-width : ${i.pieStrokeWidth}; + opacity : ${i.pieOpacity}; + } + .pieOuterCircle{ + stroke: ${i.pieOuterStrokeColor}; + stroke-width: ${i.pieOuterStrokeWidth}; + fill: none; + } + .pieTitleText { + text-anchor: middle; + font-size: ${i.pieTitleTextSize}; + fill: ${i.pieTitleTextColor}; + font-family: ${i.fontFamily}; + } + .slice { + font-family: ${i.fontFamily}; + fill: ${i.pieSectionTextColor}; + font-size:${i.pieSectionTextSize}; + // fill: white; + } + .legend text { + fill: ${i.pieLegendTextColor}; + font-family: ${i.fontFamily}; + font-size: ${i.pieLegendTextSize}; + } +`,Pt=Ot,Vt=i=>{let _=Object.entries(i).map(p=>({label:p[0],value:p[1]})).sort((p,g)=>g.value-p.value);return st().value(p=>p.value)(_)},Lt=(i,_,F,p)=>{J.debug(`rendering pie chart +`+i);let g=p.db,S=K(),N=lt(g.getConfig(),S.pie),D=40,o=18,E=4,m=450,C=m,O=dt(_),x=O.append("g"),P=g.getSections();x.attr("transform","translate("+C/2+","+m/2+")");let{themeVariables:h}=S,[$]=at(h.pieOuterStrokeWidth);$??($=2);let R=N.textPosition,v=Math.min(C,m)/2-D,d=H().innerRadius(0).outerRadius(v),t=H().innerRadius(v*R).outerRadius(v*R);x.append("circle").attr("cx",0).attr("cy",0).attr("r",v+$/2).attr("class","pieOuterCircle");let e=Vt(P),s=[h.pie1,h.pie2,h.pie3,h.pie4,h.pie5,h.pie6,h.pie7,h.pie8,h.pie9,h.pie10,h.pie11,h.pie12],r=it(s);x.selectAll("mySlices").data(e).enter().append("path").attr("d",d).attr("fill",c=>r(c.data.label)).attr("class","pieCircle");let a=0;Object.keys(P).forEach(c=>{a+=P[c]}),x.selectAll("mySlices").data(e).enter().append("text").text(c=>(c.data.value/a*100).toFixed(0)+"%").attr("transform",c=>"translate("+t.centroid(c)+")").style("text-anchor","middle").attr("class","slice"),x.append("text").text(g.getDiagramTitle()).attr("x",0).attr("y",-(m-50)/2).attr("class","pieTitleText");let n=x.selectAll(".legend").data(r.domain()).enter().append("g").attr("class","legend").attr("transform",(c,A)=>{let V=o+E,z=V*r.domain().length/2,B=12*o,l=A*V-z;return"translate("+B+","+l+")"});n.append("rect").attr("width",o).attr("height",o).style("fill",r).style("stroke",r),n.data(e).append("text").attr("x",o+E).attr("y",o-E).text(c=>{let{label:A,value:V}=c.data;return g.getShowData()?`${A} [${V}]`:A});let w=Math.max(...n.selectAll("text").nodes().map(c=>c?.getBoundingClientRect().width??0)),u=C+D+o+E+w;O.attr("viewBox",`0 0 ${u} ${m}`),ct(O,m,u,N.useMaxWidth)},Ft={draw:Lt},Mt={parser:vt,db:Ct,renderer:Ft,styles:Pt};export{Mt as diagram}; diff --git a/chunk-4DTOKC54.js b/chunk-4DTOKC54.js new file mode 100644 index 0000000..19c8285 --- /dev/null +++ b/chunk-4DTOKC54.js @@ -0,0 +1,139 @@ +import{a as et,b as st,c as nt,f as G}from"./chunk-4Q3LOV4K.js";import{E as X,b as $t,c as Tt,cb as it,eb as rt,fb as at,gb as ot,h as j,hb as lt,ib as ct,jb as ht,kb as ut,mb as S}from"./chunk-2YKPSI5H.js";import{h as tt}from"./chunk-TWZW5B45.js";var Kt=tt($t(),1),Qt=tt(Tt(),1);var U=function(){var t=function(p,s,r,a){for(r=r||{},a=p.length;a--;r[p[a]]=s);return r},e=[6,8,10,11,12,14,16,17,18],i=[1,9],l=[1,10],n=[1,11],h=[1,12],c=[1,13],f=[1,14],y={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(s,r,a,u,d,o,w){var k=o.length-1;switch(d){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 13:u.addTask(o[k-1],o[k]),this.$="task";break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:function(s,r){if(r.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=r,a}},parse:function(s){var r=this,a=[0],u=[],d=[null],o=[],w=this.table,k="",R=0,K=0,_t=2,Q=1,bt=o.slice.call(arguments,1),x=Object.create(this.lexer),E={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(E.yy[Y]=this.yy[Y]);x.setInput(s,E.yy),E.yy.lexer=x,E.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var q=x.yylloc;o.push(q);var vt=x.options&&x.options.ranges;typeof E.yy.parseError=="function"?this.parseError=E.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function wt(){var T;return T=u.pop()||x.lex()||Q,typeof T!="number"&&(T instanceof Array&&(u=T,T=u.pop()),T=r.symbols_[T]||T),T}for(var _,P,b,O,A={},N,$,D,B;;){if(P=a[a.length-1],this.defaultActions[P]?b=this.defaultActions[P]:((_===null||typeof _>"u")&&(_=wt()),b=w[P]&&w[P][_]),typeof b>"u"||!b.length||!b[0]){var W="";B=[];for(N in w[P])this.terminals_[N]&&N>_t&&B.push("'"+this.terminals_[N]+"'");x.showPosition?W="Parse error on line "+(R+1)+`: +`+x.showPosition()+` +Expecting `+B.join(", ")+", got '"+(this.terminals_[_]||_)+"'":W="Parse error on line "+(R+1)+": Unexpected "+(_==Q?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(W,{text:x.match,token:this.terminals_[_]||_,line:x.yylineno,loc:q,expected:B})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+_);switch(b[0]){case 1:a.push(_),d.push(x.yytext),o.push(x.yylloc),a.push(b[1]),_=null,K=x.yyleng,k=x.yytext,R=x.yylineno,q=x.yylloc;break;case 2:if($=this.productions_[b[1]][1],A.$=d[d.length-$],A._$={first_line:o[o.length-($||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-($||1)].first_column,last_column:o[o.length-1].last_column},vt&&(A._$.range=[o[o.length-($||1)].range[0],o[o.length-1].range[1]]),O=this.performAction.apply(A,[k,K,R,E.yy,b[1],d,o].concat(bt)),typeof O<"u")return O;$&&(a=a.slice(0,-1*$*2),d=d.slice(0,-1*$),o=o.slice(0,-1*$)),a.push(this.productions_[b[1]][0]),d.push(A.$),o.push(A._$),D=w[a[a.length-2]][a[a.length-1]],a.push(D);break;case 3:return!0}}return!0}},m=function(){var p={EOF:1,parseError:function(r,a){if(this.yy.parser)this.yy.parser.parseError(r,a);else throw new Error(r)},setInput:function(s,r){return this.yy=r||this.yy||{},this._input=s,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 s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var r=s.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},unput:function(s){var r=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;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),a.length-1&&(this.yylineno-=a.length-1);var d=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:a?(a.length===u.length?this.yylloc.first_column:0)+u[u.length-a.length].length-a[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-r]),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(s){this.unput(this.match.slice(s))},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var s=this.pastInput(),r=new Array(s.length+1).join("-");return s+this.upcomingInput()+` +`+r+"^"},test_match:function(s,r){var a,u,d;if(this.options.backtrack_lexer&&(d={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&&(d.yylloc.range=this.yylloc.range.slice(0))),u=s[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+s[0].length},this.yytext+=s[0],this.match+=s[0],this.matches=s,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(s[0].length),this.matched+=s[0],a=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var o in d)this[o]=d[o];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,r,a,u;this._more||(this.yytext="",this.match="");for(var d=this._currentRules(),o=0;or[0].length)){if(r=a,u=o,this.options.backtrack_lexer){if(s=this.test_match(a,d[o]),s!==!1)return s;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(s=this.test_match(r,d[u]),s!==!1?s:!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 r=this.next();return r||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){var r=this.conditionStack.length-1;return r>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(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,a,u,d){switch(u){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 p}();y.lexer=m;function g(){this.yy={}}return g.prototype=y,y.Parser=g,new g}();U.parser=U;var Mt=U,C="",Z=[],V=[],F=[],St=function(){Z.length=0,V.length=0,C="",F.length=0,rt()},Et=function(t){C=t,Z.push(t)},Pt=function(){return Z},It=function(){let t=yt(),e=100,i=0;for(;!t&&i{i.people&&t.push(...i.people)}),[...new Set(t)].sort()},Ct=function(t,e){let i=e.substr(1).split(":"),l=0,n=[];i.length===1?(l=Number(i[0]),n=[]):(l=Number(i[0]),n=i[1].split(","));let h=n.map(f=>f.trim()),c={section:C,type:C,people:h,task:t,score:l};F.push(c)},Vt=function(t){let e={section:C,type:C,description:t,task:t,classes:[]};V.push(e)},yt=function(){let t=function(i){return F[i].processed},e=!0;for(let[i,l]of F.entries())t(i),e=e&&l.processed;return e},Ft=function(){return At()},ft={getConfig:()=>S().journey,clear:St,setDiagramTitle:ht,getDiagramTitle:ut,setAccTitle:at,getAccTitle:ot,setAccDescription:lt,getAccDescription:ct,addSection:Et,getSections:Pt,getTasks:It,addTask:Ct,addTaskOrg:Vt,getActors:Ft},Lt=t=>`.label { + font-family: 'trebuchet ms', verdana, arial, sans-serif; + font-family: var(--mermaid-font-family); + color: ${t.textColor}; + } + .mouth { + stroke: #666; + } + + line { + stroke: ${t.textColor} + } + + .legend { + fill: ${t.textColor}; + } + + .label text { + fill: #333; + } + .label { + color: ${t.textColor} + } + + .face { + ${t.faceColor?`fill: ${t.faceColor}`:"fill: #FFF8DC"}; + stroke: #999; + } + + .node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${t.mainBkg}; + stroke: ${t.nodeBorder}; + stroke-width: 1px; + } + + .node .label { + text-align: center; + } + .node.clickable { + cursor: pointer; + } + + .arrowheadPath { + fill: ${t.arrowheadColor}; + } + + .edgePath .path { + stroke: ${t.lineColor}; + stroke-width: 1.5px; + } + + .flowchart-link { + stroke: ${t.lineColor}; + fill: none; + } + + .edgeLabel { + background-color: ${t.edgeLabelBackground}; + rect { + opacity: 0.5; + } + text-align: center; + } + + .cluster rect { + } + + .cluster text { + fill: ${t.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: ${t.tertiaryColor}; + border: 1px solid ${t.border2}; + border-radius: 2px; + pointer-events: none; + z-index: 100; + } + + .task-type-0, .section-type-0 { + ${t.fillType0?`fill: ${t.fillType0}`:""}; + } + .task-type-1, .section-type-1 { + ${t.fillType0?`fill: ${t.fillType1}`:""}; + } + .task-type-2, .section-type-2 { + ${t.fillType0?`fill: ${t.fillType2}`:""}; + } + .task-type-3, .section-type-3 { + ${t.fillType0?`fill: ${t.fillType3}`:""}; + } + .task-type-4, .section-type-4 { + ${t.fillType0?`fill: ${t.fillType4}`:""}; + } + .task-type-5, .section-type-5 { + ${t.fillType0?`fill: ${t.fillType5}`:""}; + } + .task-type-6, .section-type-6 { + ${t.fillType0?`fill: ${t.fillType6}`:""}; + } + .task-type-7, .section-type-7 { + ${t.fillType0?`fill: ${t.fillType7}`:""}; + } + + .actor-0 { + ${t.actor0?`fill: ${t.actor0}`:""}; + } + .actor-1 { + ${t.actor1?`fill: ${t.actor1}`:""}; + } + .actor-2 { + ${t.actor2?`fill: ${t.actor2}`:""}; + } + .actor-3 { + ${t.actor3?`fill: ${t.actor3}`:""}; + } + .actor-4 { + ${t.actor4?`fill: ${t.actor4}`:""}; + } + .actor-5 { + ${t.actor5?`fill: ${t.actor5}`:""}; + } +`,Rt=Lt,J=function(t,e){return et(t,e)},Nt=function(t,e){let l=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),n=t.append("g");n.append("circle").attr("cx",e.cx-15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),n.append("circle").attr("cx",e.cx+15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function h(y){let m=X().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}function c(y){let m=X().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}function f(y){y.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return e.score>3?h(n):e.score<3?c(n):f(n),l},mt=function(t,e){let i=t.append("circle");return i.attr("cx",e.cx),i.attr("cy",e.cy),i.attr("class","actor-"+e.pos),i.attr("fill",e.fill),i.attr("stroke",e.stroke),i.attr("r",e.r),i.class!==void 0&&i.attr("class",i.class),e.title!==void 0&&i.append("title").text(e.title),i},xt=function(t,e){return nt(t,e)},Bt=function(t,e){function i(n,h,c,f,y){return n+","+h+" "+(n+c)+","+h+" "+(n+c)+","+(h+f-y)+" "+(n+c-y*1.2)+","+(h+f)+" "+n+","+(h+f)}let l=t.append("polygon");l.attr("points",i(e.x,e.y,50,20,7)),l.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,xt(t,e)},jt=function(t,e,i){let l=t.append("g"),n=G();n.x=e.x,n.y=e.y,n.fill=e.fill,n.width=i.width*e.taskCount+i.diagramMarginX*(e.taskCount-1),n.height=i.height,n.class="journey-section section-type-"+e.num,n.rx=3,n.ry=3,J(l,n),kt(i)(e.text,l,n.x,n.y,n.width,n.height,{class:"journey-section section-type-"+e.num},i,e.colour)},dt=-1,zt=function(t,e,i){let l=e.x+i.width/2,n=t.append("g");dt++;let h=300+5*30;n.append("line").attr("id","task"+dt).attr("x1",l).attr("y1",e.y).attr("x2",l).attr("y2",h).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Nt(n,{cx:l,cy:300+(5-e.score)*30,score:e.score});let c=G();c.x=e.x,c.y=e.y,c.fill=e.fill,c.width=i.width,c.height=i.height,c.class="task task-type-"+e.num,c.rx=3,c.ry=3,J(n,c);let f=e.x+14;e.people.forEach(y=>{let m=e.actors[y].color,g={cx:f,cy:e.y,r:7,fill:m,stroke:"#000",title:y,pos:e.actors[y].position};mt(n,g),f+=10}),kt(i)(e.task,n,c.x,c.y,c.width,c.height,{class:"task"},i,e.colour)},Yt=function(t,e){st(t,e)},kt=function(){function t(n,h,c,f,y,m,g,p){let s=h.append("text").attr("x",c+y/2).attr("y",f+m/2+5).style("font-color",p).style("text-anchor","middle").text(n);l(s,g)}function e(n,h,c,f,y,m,g,p,s){let{taskFontSize:r,taskFontFamily:a}=p,u=n.split(//gi);for(let d=0;d{let n=M[l].color,h={cx:20,cy:i,r:7,fill:n,stroke:"#000",pos:M[l].position};L.drawCircle(t,h);let c={x:40,y:i+7,fill:"#666",text:l,textMargin:e.boxTextMargin|5};L.drawText(t,c),i+=20})}var z=S().journey,I=z.leftMargin,Xt=function(t,e,i,l){let n=S().journey,h=S().securityLevel,c;h==="sandbox"&&(c=j("#i"+e));let f=h==="sandbox"?j(c.nodes()[0].contentDocument.body):j("body");v.init();let y=f.select("#"+e);L.initGraphics(y);let m=l.db.getTasks(),g=l.db.getDiagramTitle(),p=l.db.getActors();for(let o in M)delete M[o];let s=0;p.forEach(o=>{M[o]={color:n.actorColours[s%n.actorColours.length],position:s},s++}),Wt(y),v.insert(0,0,I,Object.keys(M).length*50),Gt(y,m,0);let r=v.getBounds();g&&y.append("text").text(g).attr("x",I).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);let a=r.stopy-r.starty+2*n.diagramMarginY,u=I+r.stopx+2*n.diagramMarginX;it(y,a,u,n.useMaxWidth),y.append("line").attr("x1",I).attr("y1",n.height*4).attr("x2",u-I-4).attr("y2",n.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");let d=g?70:0;y.attr("viewBox",`${r.startx} -25 ${u} ${a+d}`),y.attr("preserveAspectRatio","xMinYMin meet"),y.attr("height",a+d+25)},v={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(t,e,i,l){t[e]===void 0?t[e]=i:t[e]=l(i,t[e])},updateBounds:function(t,e,i,l){let n=S().journey,h=this,c=0;function f(y){return function(g){c++;let p=h.sequenceItems.length-c+1;h.updateVal(g,"starty",e-p*n.boxMargin,Math.min),h.updateVal(g,"stopy",l+p*n.boxMargin,Math.max),h.updateVal(v.data,"startx",t-p*n.boxMargin,Math.min),h.updateVal(v.data,"stopx",i+p*n.boxMargin,Math.max),y!=="activation"&&(h.updateVal(g,"startx",t-p*n.boxMargin,Math.min),h.updateVal(g,"stopx",i+p*n.boxMargin,Math.max),h.updateVal(v.data,"starty",e-p*n.boxMargin,Math.min),h.updateVal(v.data,"stopy",l+p*n.boxMargin,Math.max))}}this.sequenceItems.forEach(f())},insert:function(t,e,i,l){let n=Math.min(t,i),h=Math.max(t,i),c=Math.min(e,l),f=Math.max(e,l);this.updateVal(v.data,"startx",n,Math.min),this.updateVal(v.data,"starty",c,Math.min),this.updateVal(v.data,"stopx",h,Math.max),this.updateVal(v.data,"stopy",f,Math.max),this.updateBounds(n,c,h,f)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},H=z.sectionFills,pt=z.sectionColours,Gt=function(t,e,i){let l=S().journey,n="",h=l.height*2+l.diagramMarginY,c=i+h,f=0,y="#CCC",m="black",g=0;for(let[p,s]of e.entries()){if(n!==s.section){y=H[f%H.length],g=f%H.length,m=pt[f%pt.length];let a=0,u=s.section;for(let o=p;o(M[u]&&(a[u]=M[u]),a),{});s.x=p*l.taskMargin+p*l.width+I,s.y=c,s.width=l.diagramMarginX,s.height=l.diagramMarginY,s.colour=m,s.fill=y,s.num=g,s.actors=r,L.drawTask(t,s,l),v.insert(s.x,s.y,s.x+s.width+l.taskMargin,300+5*30)}},gt={setConf:Ot,draw:Xt},te={parser:Mt,db:ft,renderer:gt,styles:Rt,init:t=>{gt.setConf(t.journey),ft.clear()}};export{te as diagram}; diff --git a/chunk-4GQOA6BJ.js b/chunk-4GQOA6BJ.js new file mode 100644 index 0000000..6672887 --- /dev/null +++ b/chunk-4GQOA6BJ.js @@ -0,0 +1 @@ +import{a as Y,b as W,c as z,d as q,e as R,f as K,g as w,h as j}from"./chunk-GEICOQJ6.js";import{a as V}from"./chunk-FRQHQZY3.js";import"./chunk-V6OKWLLU.js";import"./chunk-UGXKMGFK.js";import{A as U}from"./chunk-KLEKA63L.js";import"./chunk-5RSCYRGJ.js";import{$a as J,Fa as l,Na as g,b as ct,c as rt,cb as Q,h as y,mb as h}from"./chunk-2YKPSI5H.js";import{h as M,j as H}from"./chunk-TWZW5B45.js";var Mt=M(ct(),1),Ht=M(rt(),1);var x="rect",G="rectWithTitle",lt="start",at="end",dt="divider",Et="roundedWithTitle",St="note",pt="noteGroup",_="statediagram",Tt="state",_t=`${_}-${Tt}`,Z="transition",ut="note",bt="note-edge",ft=`${Z} ${bt}`,Dt=`${_}-${ut}`,ht="cluster",At=`${_}-${ht}`,yt="cluster-alt",gt=`${_}-${yt}`,F="parent",I="note",xt="state",P="----",$t=`${P}${I}`,X=`${P}${F}`,tt="fill:none",et="fill: #333",ot="c",st="text",nt="normal",$={},E=0,Ct=function(t){let n=Object.keys(t);for(let e of n)t[e]},Rt=function(t,n){return n.db.extract(n.db.getRootDocV2()),n.db.getClasses()};function wt(t){return t==null?"":t.classes?t.classes.join(" "):""}function N(t="",n=0,e="",i=P){let c=e!==null&&e.length>0?`${i}${e}`:"";return`${xt}-${t}${c}-${n}`}var A=(t,n,e,i,c,r)=>{let o=e.id,u=wt(i[o]);if(o!=="root"){let p=x;e.start===!0&&(p=lt),e.start===!1&&(p=at),e.type!==R&&(p=e.type),$[o]||($[o]={id:o,shape:p,description:g.sanitizeText(o,h()),classes:`${u} ${_t}`});let s=$[o];e.description&&(Array.isArray(s.description)?(s.shape=G,s.description.push(e.description)):s.description.length>0?(s.shape=G,s.description===o?s.description=[e.description]:s.description=[s.description,e.description]):(s.shape=x,s.description=e.description),s.description=g.sanitizeTextOrArray(s.description,h())),s.description.length===1&&s.shape===G&&(s.shape=x),!s.type&&e.doc&&(l.info("Setting cluster for ",o,L(e)),s.type="group",s.dir=L(e),s.shape=e.type===K?dt:Et,s.classes=s.classes+" "+At+" "+(r?gt:""));let T={labelStyle:"",shape:s.shape,labelText:s.description,classes:s.classes,style:"",id:o,dir:s.dir,domId:N(o,E),type:s.type,padding:15};if(T.centerLabel=!0,e.note){let a={labelStyle:"",shape:St,labelText:e.note.text,classes:Dt,style:"",id:o+$t+"-"+E,domId:N(o,E,I),type:s.type,padding:15},d={labelStyle:"",shape:pt,labelText:e.note.text,classes:s.classes,style:"",id:o+X,domId:N(o,E,F),type:"group",padding:0};E++;let b=o+X;t.setNode(b,d),t.setNode(a.id,a),t.setNode(o,T),t.setParent(o,b),t.setParent(a.id,b);let S=o,f=a.id;e.note.position==="left of"&&(S=a.id,f=o),t.setEdge(S,f,{arrowhead:"none",arrowType:"",style:tt,labelStyle:"",classes:ft,arrowheadStyle:et,labelpos:ot,labelType:st,thickness:nt})}else t.setNode(o,T)}n&&n.id!=="root"&&(l.trace("Setting node ",o," to be child of its parent ",n.id),t.setParent(o,n.id)),e.doc&&(l.trace("Adding nodes children "),Gt(t,e,e.doc,i,c,!r))},Gt=(t,n,e,i,c,r)=>{l.trace("items",e),e.forEach(o=>{switch(o.stmt){case z:A(t,n,o,i,c,r);break;case R:A(t,n,o,i,c,r);break;case q:{A(t,n,o.state1,i,c,r),A(t,n,o.state2,i,c,r);let u={id:"edge"+E,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:tt,labelStyle:"",label:g.sanitizeText(o.description,h()),arrowheadStyle:et,labelpos:ot,labelType:st,thickness:nt,classes:Z};t.setEdge(o.state1.id,o.state2.id,u,E),E++}break}})},L=(t,n=W)=>{let e=n;if(t.doc)for(let i=0;i{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,w.clear()}};export{Wt as diagram}; diff --git a/chunk-4Q3LOV4K.js b/chunk-4Q3LOV4K.js new file mode 100644 index 0000000..ad57c58 --- /dev/null +++ b/chunk-4Q3LOV4K.js @@ -0,0 +1 @@ +import{Ga as o,c}from"./chunk-2YKPSI5H.js";import{h as l}from"./chunk-TWZW5B45.js";var i=l(c(),1);var x=(s,t)=>{let r=s.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(let e in t.attrs)r.attr(e,t.attrs[e]);return t.class!==void 0&&r.attr("class",t.class),r},h=(s,t)=>{let 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"};x(s,r).lower()},y=(s,t)=>{let r=t.text.replace(o," "),e=s.append("text");e.attr("x",t.x),e.attr("y",t.y),e.attr("class","legend"),e.style("text-anchor",t.anchor),t.class!==void 0&&e.attr("class",t.class);let n=e.append("tspan");return n.attr("x",t.x+t.textMargin*2),n.text(r),e},m=(s,t,r,e)=>{let n=s.append("image");n.attr("x",t),n.attr("y",r);let a=(0,i.sanitizeUrl)(e);n.attr("xlink:href",a)},p=(s,t,r,e)=>{let n=s.append("use");n.attr("x",t),n.attr("y",r);let a=(0,i.sanitizeUrl)(e);n.attr("xlink:href",`#${a}`)},g=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),f=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0});export{x as a,h as b,y as c,m as d,p as e,g as f,f as g}; diff --git a/chunk-5CMFXMAV.js b/chunk-5CMFXMAV.js new file mode 100644 index 0000000..a48b575 --- /dev/null +++ b/chunk-5CMFXMAV.js @@ -0,0 +1,118 @@ +import{a as Le,f as re,i as me,n as _e,o as ye,p as Ee}from"./chunk-V6OKWLLU.js";import{A as Se,b as xe}from"./chunk-KLEKA63L.js";import"./chunk-5RSCYRGJ.js";import{D as pe,Fa as S,J as fe,K as be,Na as we,Ta as De,b as Ye,bb as Q,c as We,cb as ve,eb as ke,h as X,l as ge,mb as ne}from"./chunk-2YKPSI5H.js";import{a as V,b as U,h as de,j as K}from"./chunk-TWZW5B45.js";var zt=de(Ye(),1),Ct=de(We(),1);var Ne,Ie,ae=function(){var e=function(D,o,s,i){for(s=s||{},i=D.length;i--;s[D[i]]=o);return s},a=[1,7],h=[1,13],c=[1,14],n=[1,15],g=[1,19],l=[1,16],f=[1,17],b=[1,18],p=[8,30],x=[8,21,28,29,30,31,32,40,44,47],y=[1,23],T=[1,24],v=[8,15,16,21,28,29,30,31,32,40,44,47],k=[8,15,16,21,27,28,29,30,31,32,40,44,47],E=[1,49],L={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(o,s,i,u,d,t,m){var r=t.length-1;switch(d){case 4:u.getLogger().debug("Rule: separator (NL) ");break;case 5:u.getLogger().debug("Rule: separator (Space) ");break;case 6:u.getLogger().debug("Rule: separator (EOF) ");break;case 7:u.getLogger().debug("Rule: hierarchy: ",t[r-1]),u.setHierarchy(t[r-1]);break;case 8:u.getLogger().debug("Stop NL ");break;case 9:u.getLogger().debug("Stop EOF ");break;case 10:u.getLogger().debug("Stop NL2 ");break;case 11:u.getLogger().debug("Stop EOF2 ");break;case 12:u.getLogger().debug("Rule: statement: ",t[r]),typeof t[r].length=="number"?this.$=t[r]:this.$=[t[r]];break;case 13:u.getLogger().debug("Rule: statement #2: ",t[r-1]),this.$=[t[r-1]].concat(t[r]);break;case 14:u.getLogger().debug("Rule: link: ",t[r],o),this.$={edgeTypeStr:t[r],label:""};break;case 15:u.getLogger().debug("Rule: LABEL link: ",t[r-3],t[r-1],t[r]),this.$={edgeTypeStr:t[r],label:t[r-1]};break;case 18:let R=parseInt(t[r]),W=u.generateId();this.$={id:W,type:"space",label:"",width:R,children:[]};break;case 23:u.getLogger().debug("Rule: (nodeStatement link node) ",t[r-2],t[r-1],t[r]," typestr: ",t[r-1].edgeTypeStr);let F=u.edgeStrToEdgeData(t[r-1].edgeTypeStr);this.$=[{id:t[r-2].id,label:t[r-2].label,type:t[r-2].type,directions:t[r-2].directions},{id:t[r-2].id+"-"+t[r].id,start:t[r-2].id,end:t[r].id,label:t[r-1].label,type:"edge",directions:t[r].directions,arrowTypeEnd:F,arrowTypeStart:"arrow_open"},{id:t[r].id,label:t[r].label,type:u.typeStr2Type(t[r].typeStr),directions:t[r].directions}];break;case 24:u.getLogger().debug("Rule: nodeStatement (abc88 node size) ",t[r-1],t[r]),this.$={id:t[r-1].id,label:t[r-1].label,type:u.typeStr2Type(t[r-1].typeStr),directions:t[r-1].directions,widthInColumns:parseInt(t[r],10)};break;case 25:u.getLogger().debug("Rule: nodeStatement (node) ",t[r]),this.$={id:t[r].id,label:t[r].label,type:u.typeStr2Type(t[r].typeStr),directions:t[r].directions,widthInColumns:1};break;case 26:u.getLogger().debug("APA123",this?this:"na"),u.getLogger().debug("COLUMNS: ",t[r]),this.$={type:"column-setting",columns:t[r]==="auto"?-1:parseInt(t[r])};break;case 27:u.getLogger().debug("Rule: id-block statement : ",t[r-2],t[r-1]),u.generateId(),this.$=U(V({},t[r-2]),{type:"composite",children:t[r-1]});break;case 28:u.getLogger().debug("Rule: blockStatement : ",t[r-2],t[r-1],t[r]);let C=u.generateId();this.$={id:C,type:"composite",label:"",children:t[r-1]};break;case 29:u.getLogger().debug("Rule: node (NODE_ID separator): ",t[r]),this.$={id:t[r]};break;case 30:u.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",t[r-1],t[r]),this.$={id:t[r-1],label:t[r].label,typeStr:t[r].typeStr,directions:t[r].directions};break;case 31:u.getLogger().debug("Rule: dirList: ",t[r]),this.$=[t[r]];break;case 32:u.getLogger().debug("Rule: dirList: ",t[r-1],t[r]),this.$=[t[r-1]].concat(t[r]);break;case 33:u.getLogger().debug("Rule: nodeShapeNLabel: ",t[r-2],t[r-1],t[r]),this.$={typeStr:t[r-2]+t[r],label:t[r-1]};break;case 34:u.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",t[r-3],t[r-2]," #3:",t[r-1],t[r]),this.$={typeStr:t[r-3]+t[r],label:t[r-2],directions:t[r-1]};break;case 35:case 36:this.$={type:"classDef",id:t[r-1].trim(),css:t[r].trim()};break;case 37:this.$={type:"applyClass",id:t[r-1].trim(),styleClass:t[r].trim()};break;case 38:this.$={type:"applyStyles",id:t[r-1].trim(),stylesStr:t[r].trim()};break}},table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:h,29:c,31:n,32:g,40:l,44:f,47:b},{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:a,28:h,29:c,31:n,32:g,40:l,44:f,47:b}),e(x,[2,16],{14:22,15:y,16:T}),e(x,[2,17]),e(x,[2,18]),e(x,[2,19]),e(x,[2,20]),e(x,[2,21]),e(x,[2,22]),e(v,[2,25],{27:[1,25]}),e(x,[2,26]),{19:26,26:12,32:g},{11:27,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:h,29:c,31:n,32:g,40:l,44:f,47:b},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},e(k,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},e(p,[2,13]),{26:35,32:g},{32:[2,14]},{17:[1,36]},e(v,[2,24]),{11:37,13:4,14:22,15:y,16:T,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:h,29:c,31:n,32:g,40:l,44:f,47:b},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},e(k,[2,30]),{18:[1,43]},{18:[1,44]},e(v,[2,23]),{18:[1,45]},{30:[1,46]},e(x,[2,28]),e(x,[2,35]),e(x,[2,36]),e(x,[2,37]),e(x,[2,38]),{37:[1,47]},{34:48,35:E},{15:[1,50]},e(x,[2,27]),e(k,[2,33]),{39:[1,51]},{34:52,35:E,39:[2,31]},{32:[2,15]},e(k,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:function(o,s){if(s.recoverable)this.trace(o);else{var i=new Error(o);throw i.hash=s,i}},parse:function(o){var s=this,i=[0],u=[],d=[null],t=[],m=this.table,r="",R=0,W=0,F=2,C=1,Fe=t.slice.call(arguments,1),w=Object.create(this.lexer),M={yy:{}};for(var ee in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ee)&&(M.yy[ee]=this.yy[ee]);w.setInput(o,M.yy),M.yy.lexer=w,M.yy.parser=this,typeof w.yylloc>"u"&&(w.yylloc={});var te=w.yylloc;t.push(te);var Ke=w.options&&w.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Me(){var P;return P=u.pop()||w.lex()||C,typeof P!="number"&&(P instanceof Array&&(u=P,P=u.pop()),P=s.symbols_[P]||P),P}for(var I,Y,z,se,j={},Z,B,he,J;;){if(Y=i[i.length-1],this.defaultActions[Y]?z=this.defaultActions[Y]:((I===null||typeof I>"u")&&(I=Me()),z=m[Y]&&m[Y][I]),typeof z>"u"||!z.length||!z[0]){var ie="";J=[];for(Z in m[Y])this.terminals_[Z]&&Z>F&&J.push("'"+this.terminals_[Z]+"'");w.showPosition?ie="Parse error on line "+(R+1)+`: +`+w.showPosition()+` +Expecting `+J.join(", ")+", got '"+(this.terminals_[I]||I)+"'":ie="Parse error on line "+(R+1)+": Unexpected "+(I==C?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(ie,{text:w.match,token:this.terminals_[I]||I,line:w.yylineno,loc:te,expected:J})}if(z[0]instanceof Array&&z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Y+", token: "+I);switch(z[0]){case 1:i.push(I),d.push(w.yytext),t.push(w.yylloc),i.push(z[1]),I=null,W=w.yyleng,r=w.yytext,R=w.yylineno,te=w.yylloc;break;case 2:if(B=this.productions_[z[1]][1],j.$=d[d.length-B],j._$={first_line:t[t.length-(B||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(B||1)].first_column,last_column:t[t.length-1].last_column},Ke&&(j._$.range=[t[t.length-(B||1)].range[0],t[t.length-1].range[1]]),se=this.performAction.apply(j,[r,W,R,M.yy,z[1],d,t].concat(Fe)),typeof se<"u")return se;B&&(i=i.slice(0,-1*B*2),d=d.slice(0,-1*B),t=t.slice(0,-1*B)),i.push(this.productions_[z[1]][0]),d.push(j.$),t.push(j._$),he=m[i[i.length-2]][i[i.length-1]],i.push(he);break;case 3:return!0}}return!0}},A=function(){var D={EOF:1,parseError:function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},setInput:function(o,s){return this.yy=s||this.yy||{},this._input=o,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 o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var s=o.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),o},unput:function(o){var s=o.length,i=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;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),i.length-1&&(this.yylineno-=i.length-1);var d=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:i?(i.length===u.length?this.yylloc.first_column:0)+u[u.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[d[0],d[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(o){this.unput(this.match.slice(o))},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),s=new Array(o.length+1).join("-");return o+this.upcomingInput()+` +`+s+"^"},test_match:function(o,s){var i,u,d;if(this.options.backtrack_lexer&&(d={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&&(d.yylloc.range=this.yylloc.range.slice(0))),u=o[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+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,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(o[0].length),this.matched+=o[0],i=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var t in d)this[t]=d[t];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,s,i,u;this._more||(this.yytext="",this.match="");for(var d=this._currentRules(),t=0;ts[0].length)){if(s=i,u=t,this.options.backtrack_lexer){if(o=this.test_match(i,d[t]),o!==!1)return o;if(this._backtrack){s=!1;continue}else return!1}else if(!this.options.flex)break}return s?(o=this.test_match(s,d[u]),o!==!1?o:!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:{},performAction:function(s,i,u,d){switch(u){case 0:return 10;case 1:return s.getLogger().debug("Found space-block"),31;case 2:return s.getLogger().debug("Found nl-block"),31;case 3:return s.getLogger().debug("Found space-block"),29;case 4:s.getLogger().debug(".",i.yytext);break;case 5:s.getLogger().debug("_",i.yytext);break;case 6:return 5;case 7:return i.yytext=-1,28;case 8:return i.yytext=i.yytext.replace(/columns\s+/,""),s.getLogger().debug("COLUMNS (LEX)",i.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:s.getLogger().debug("LEX: POPPING STR:",i.yytext),this.popState();break;case 14:return s.getLogger().debug("LEX: STR end:",i.yytext),"STR";case 15:return i.yytext=i.yytext.replace(/space\:/,""),s.getLogger().debug("SPACE NUM (LEX)",i.yytext),21;case 16:return i.yytext="1",s.getLogger().debug("COLUMNS (LEX)",i.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(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 40:return this.popState(),s.getLogger().debug("Lex: ))"),"NODE_DEND";case 41:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 42:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 43:return this.popState(),s.getLogger().debug("Lex: (-"),"NODE_DEND";case 44:return this.popState(),s.getLogger().debug("Lex: -)"),"NODE_DEND";case 45:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 46:return this.popState(),s.getLogger().debug("Lex: ]]"),"NODE_DEND";case 47:return this.popState(),s.getLogger().debug("Lex: ("),"NODE_DEND";case 48:return this.popState(),s.getLogger().debug("Lex: ])"),"NODE_DEND";case 49:return this.popState(),s.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),s.getLogger().debug("Lex: /]"),"NODE_DEND";case 51:return this.popState(),s.getLogger().debug("Lex: )]"),"NODE_DEND";case 52:return this.popState(),s.getLogger().debug("Lex: )"),"NODE_DEND";case 53:return this.popState(),s.getLogger().debug("Lex: ]>"),"NODE_DEND";case 54:return this.popState(),s.getLogger().debug("Lex: ]"),"NODE_DEND";case 55:return s.getLogger().debug("Lexa: -)"),this.pushState("NODE"),36;case 56:return s.getLogger().debug("Lexa: (-"),this.pushState("NODE"),36;case 57:return s.getLogger().debug("Lexa: ))"),this.pushState("NODE"),36;case 58:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 59:return s.getLogger().debug("Lex: ((("),this.pushState("NODE"),36;case 60:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 61:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 62:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 63:return s.getLogger().debug("Lexc: >"),this.pushState("NODE"),36;case 64:return s.getLogger().debug("Lexa: (["),this.pushState("NODE"),36;case 65:return s.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 s.getLogger().debug("Lexa: ["),this.pushState("NODE"),36;case 74:return this.pushState("BLOCK_ARROW"),s.getLogger().debug("LEX ARR START"),38;case 75:return s.getLogger().debug("Lex: NODE_ID",i.yytext),32;case 76:return s.getLogger().debug("Lex: EOF",i.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:s.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 82:s.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 83:return s.getLogger().debug("LEX: NODE_DESCR:",i.yytext),"NODE_DESCR";case 84:s.getLogger().debug("LEX POPPING"),this.popState();break;case 85:s.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 86:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (right): dir:",i.yytext),"DIR";case 87:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (left):",i.yytext),"DIR";case 88:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (x):",i.yytext),"DIR";case 89:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (y):",i.yytext),"DIR";case 90:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (up):",i.yytext),"DIR";case 91:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (down):",i.yytext),"DIR";case 92:return i.yytext="]>",s.getLogger().debug("Lex (ARROW_DIR end):",i.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 93:return s.getLogger().debug("Lex: LINK","#"+i.yytext+"#"),15;case 94:return s.getLogger().debug("Lex: LINK",i.yytext),15;case 95:return s.getLogger().debug("Lex: LINK",i.yytext),15;case 96:return s.getLogger().debug("Lex: LINK",i.yytext),15;case 97:return s.getLogger().debug("Lex: START_LINK",i.yytext),this.pushState("LLABEL"),16;case 98:return s.getLogger().debug("Lex: START_LINK",i.yytext),this.pushState("LLABEL"),16;case 99:return s.getLogger().debug("Lex: START_LINK",i.yytext),this.pushState("LLABEL"),16;case 100:this.pushState("md_string");break;case 101:return s.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 102:return this.popState(),s.getLogger().debug("Lex: LINK","#"+i.yytext+"#"),15;case 103:return this.popState(),s.getLogger().debug("Lex: LINK",i.yytext),15;case 104:return this.popState(),s.getLogger().debug("Lex: LINK",i.yytext),15;case 105:return s.getLogger().debug("Lex: COLON",i.yytext),i.yytext=i.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 D}();L.lexer=A;function N(){this.yy={}}return N.prototype=L,L.Parser=N,new N}();ae.parser=ae;var je=ae,O={},oe=[],G={},Oe="color",Te="fill",Ve="bgFill",Ce=",",Ue=ne(),H={},Xe=e=>we.sanitizeText(e,Ue),Ge=function(e,a=""){H[e]===void 0&&(H[e]={id:e,styles:[],textStyles:[]});let h=H[e];a?.split(Ce).forEach(c=>{let n=c.replace(/([^;]*);/,"$1").trim();if(c.match(Oe)){let l=n.replace(Te,Ve).replace(Oe,Te);h.textStyles.push(l)}h.styles.push(n)})},He=function(e,a=""){let h=O[e];a!=null&&(h.styles=a.split(Ce))},qe=function(e,a){e.split(",").forEach(function(h){let c=O[h];if(c===void 0){let n=h.trim();O[n]={id:n,type:"na",children:[]},c=O[n]}c.classes||(c.classes=[]),c.classes.push(a)})},Ae=(e,a)=>{let h=e.flat(),c=[];for(let n of h){if(n.label&&(n.label=Xe(n.label)),n.type==="classDef"){Ge(n.id,n.css);continue}if(n.type==="applyClass"){qe(n.id,n?.styleClass||"");continue}if(n.type==="applyStyles"){n?.stylesStr&&He(n.id,n?.stylesStr);continue}if(n.type==="column-setting")a.columns=n.columns||-1;else if(n.type==="edge")G[n.id]?G[n.id]++:G[n.id]=1,n.id=G[n.id]+"-"+n.id,oe.push(n);else{n.label||(n.type==="composite"?n.label="":n.label=n.id);let g=!O[n.id];if(g?O[n.id]=n:(n.type!=="na"&&(O[n.id].type=n.type),n.label!==n.id&&(O[n.id].label=n.label)),n.children&&Ae(n.children,n),n.type==="space"){let l=n.width||1;for(let f=0;f{S.debug("Clear called"),ke(),q={id:"root",type:"composite",children:[],columns:-1},O={root:q},ce=[],H={},oe=[],G={}};function Je(e){switch(S.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return S.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 Qe(e){switch(S.debug("typeStr2Type",e),e){case"==":return"thick";default:return"normal"}}function $e(e){switch(e.trim()){case"--x":return"arrow_cross";case"--o":return"arrow_circle";default:return"arrow_point"}}var ze=0,et=()=>(ze++,"id-"+Math.random().toString(36).substr(2,12)+"-"+ze),tt=e=>{q.children=e,Ae(e,q),ce=q.children},st=e=>{let a=O[e];return a?a.columns?a.columns:a.children?a.children.length:-1:-1},it=()=>[...Object.values(O)],rt=()=>ce||[],nt=()=>oe,at=e=>O[e],lt=e=>{O[e.id]=e},ot=()=>console,ct=function(){return H},ut={getConfig:()=>Q().block,typeStr2Type:Je,edgeTypeStr2Type:Qe,edgeStrToEdgeData:$e,getLogger:ot,getBlocksFlat:it,getBlocks:rt,getEdges:nt,setHierarchy:tt,getBlock:at,setBlock:lt,getColumns:st,getClasses:ct,clear:Ze,generateId:et},ht=ut,$=(e,a)=>{let h=be,c=h(e,"r"),n=h(e,"g"),g=h(e,"b");return fe(c,n,g,a)},dt=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: ${$(e.edgeLabelBackground,.5)}; + // background-color: + } + + .node .cluster { + // fill: ${$(e.mainBkg,.5)}; + fill: ${$(e.clusterBkg,.5)}; + stroke: ${$(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}; + } +`,gt=dt;function Re(e,a,h=!1){var c,n,g;let l=e,f="default";(((c=l?.classes)==null?void 0:c.length)||0)>0&&(f=(l?.classes||[]).join(" ")),f=f+" flowchart-label";let b=0,p="",x;switch(l.type){case"round":b=5,p="rect";break;case"composite":b=0,p="composite",x=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"}let y=De(l?.styles||[]),T=l.label,v=l.size||{width:0,height:0,x:0,y:0};return{labelStyle:y.labelStyle,shape:p,labelText:T,rx:b,ry:b,class:f,style:y.style,id:l.id,directions:l.directions,width:v.width,height:v.height,x:v.x,y:v.y,positioned:h,intersect:void 0,type:l.type,padding:x??(((g=(n=Q())==null?void 0:n.block)==null?void 0:g.padding)||0)}}function pt(e,a,h){return K(this,null,function*(){let c=Re(a,h,!1);if(c.type==="group")return;let n=yield re(e,c),g=n.node().getBBox(),l=h.getBlock(c.id);l.size={width:g.width,height:g.height,x:0,y:0,node:n},h.setBlock(l),n.remove()})}function ft(e,a,h){return K(this,null,function*(){let c=Re(a,h,!0);h.getBlock(c.id).type!=="space"&&(yield re(e,c),a.intersect=c?.intersect,me(c))})}function ue(e,a,h,c){return K(this,null,function*(){for(let n of a)yield c(e,n,h),n.children&&(yield ue(e,n.children,h,c))})}function bt(e,a,h){return K(this,null,function*(){yield ue(e,a,h,pt)})}function xt(e,a,h){return K(this,null,function*(){yield ue(e,a,h,ft)})}function St(e,a,h,c,n){return K(this,null,function*(){let g=new Se({multigraph:!0,compound:!0});g.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(let l of h)l.size&&g.setNode(l.id,{width:l.size.width,height:l.size.height,intersect:l.intersect});for(let l of a)if(l.start&&l.end){let f=c.getBlock(l.start),b=c.getBlock(l.end);if(f?.size&&b?.size){let p=f.size,x=b.size,y=[{x:p.x,y:p.y},{x:p.x+(x.x-p.x)/2,y:p.y+(x.y-p.y)/2},{x:x.x,y:x.y}];yield Ee(e,{v:l.start,w:l.end,name:l.id},U(V({},l),{arrowTypeEnd:l.arrowTypeEnd,arrowTypeStart:l.arrowTypeStart,points:y,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"}),void 0,"block",g,n),l.label&&(yield _e(e,U(V({},l),{label:l.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:l.arrowTypeEnd,arrowTypeStart:l.arrowTypeStart,points:y,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"})),yield ye(U(V({},l),{x:y[1].x,y:y[1].y}),{originalPath:y}))}}})}var _=((Ie=(Ne=ne())==null?void 0:Ne.block)==null?void 0:Ie.padding)||8;function Lt(e,a){if(e===0||!Number.isInteger(e))throw new Error("Columns must be an integer !== 0.");if(a<0||!Number.isInteger(a))throw new Error("Position must be a non-negative integer."+a);if(e<0)return{px:a,py:0};if(e===1)return{px:0,py:a};let h=a%e,c=Math.floor(a/e);return{px:h,py:c}}var mt=e=>{let a=0,h=0;for(let c of e.children){let{width:n,height:g,x:l,y:f}=c.size||{width:0,height:0,x:0,y:0};S.debug("getMaxChildSize abc95 child:",c.id,"width:",n,"height:",g,"x:",l,"y:",f,c.type),c.type!=="space"&&(n>a&&(a=n/(e.widthInColumns||1)),g>h&&(h=g))}return{width:a,height:h}};function le(e,a,h=0,c=0){var n,g,l,f,b,p,x,y,T,v,k;S.debug("setBlockSizes abc95 (start)",e.id,(n=e?.size)==null?void 0:n.x,"block width =",e?.size,"sieblingWidth",h),(g=e?.size)!=null&&g.width||(e.size={width:h,height:c,x:0,y:0});let E=0,L=0;if(((l=e.children)==null?void 0:l.length)>0){for(let d of e.children)le(d,a);let A=mt(e);E=A.width,L=A.height,S.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",E,L);for(let d of e.children)d.size&&(S.debug(`abc95 Setting size of children of ${e.id} id=${d.id} ${E} ${L} ${d.size}`),d.size.width=E*(d.widthInColumns||1)+_*((d.widthInColumns||1)-1),d.size.height=L,d.size.x=0,d.size.y=0,S.debug(`abc95 updating size of ${e.id} children child:${d.id} maxWidth:${E} maxHeight:${L}`));for(let d of e.children)le(d,a,E,L);let N=e.columns||-1,D=0;for(let d of e.children)D+=d.widthInColumns||1;let o=e.children.length;N>0&&N0?Math.min(e.children.length,N):e.children.length;if(d>0){let t=(i-d*_-_)/d;S.debug("abc95 (growing to fit) width",e.id,i,(x=e.size)==null?void 0:x.width,t);for(let m of e.children)m.size&&(m.size.width=t)}}e.size={width:i,height:u,x:0,y:0}}S.debug("setBlockSizes abc94 (done)",e.id,(y=e?.size)==null?void 0:y.x,(T=e?.size)==null?void 0:T.width,(v=e?.size)==null?void 0:v.y,(k=e?.size)==null?void 0:k.height)}function Be(e,a){var h,c,n,g,l,f,b,p,x,y,T,v,k,E,L,A,N;S.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${(h=e?.size)==null?void 0:h.x} y: ${(c=e?.size)==null?void 0:c.y} width: ${(n=e?.size)==null?void 0:n.width}`);let D=e.columns||-1;if(S.debug("layoutBlocks columns abc95",e.id,"=>",D,e),e.children&&e.children.length>0){let o=((l=(g=e?.children[0])==null?void 0:g.size)==null?void 0:l.width)||0,s=e.children.length*o+(e.children.length-1)*_;S.debug("widthOfChildren 88",s,"posX");let i=0;S.debug("abc91 block?.size?.x",e.id,(f=e?.size)==null?void 0:f.x);let u=(b=e?.size)!=null&&b.x?((p=e?.size)==null?void 0:p.x)+(-((x=e?.size)==null?void 0:x.width)/2||0):-_,d=0;for(let t of e.children){let m=e;if(!t.size)continue;let{width:r,height:R}=t.size,{px:W,py:F}=Lt(D,i);if(F!=d&&(d=F,u=(y=e?.size)!=null&&y.x?((T=e?.size)==null?void 0:T.x)+(-((v=e?.size)==null?void 0:v.width)/2||0):-_,S.debug("New row in layout for block",e.id," and child ",t.id,d)),S.debug(`abc89 layout blocks (child) id: ${t.id} Pos: ${i} (px, py) ${W},${F} (${(k=m?.size)==null?void 0:k.x},${(E=m?.size)==null?void 0:E.y}) parent: ${m.id} width: ${r}${_}`),m.size){let C=r/2;t.size.x=u+_+C,S.debug(`abc91 layout blocks (calc) px, pyid:${t.id} startingPos=X${u} new startingPosX${t.size.x} ${C} padding=${_} width=${r} halfWidth=${C} => x:${t.size.x} y:${t.size.y} ${t.widthInColumns} (width * (child?.w || 1)) / 2 ${r*(t?.widthInColumns||1)/2}`),u=t.size.x+C,t.size.y=m.size.y-m.size.height/2+F*(R+_)+R/2+_,S.debug(`abc88 layout blocks (calc) px, pyid:${t.id}startingPosX${u}${_}${C}=>x:${t.size.x}y:${t.size.y}${t.widthInColumns}(width * (child?.w || 1)) / 2${r*(t?.widthInColumns||1)/2}`)}t.children&&Be(t),i+=t?.widthInColumns||1,S.debug("abc88 columnsPos",t,i)}}S.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${(L=e?.size)==null?void 0:L.x} y: ${(A=e?.size)==null?void 0:A.y} width: ${(N=e?.size)==null?void 0:N.width}`)}function Pe(e,{minX:a,minY:h,maxX:c,maxY:n}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!=="root"){let{x:g,y:l,width:f,height:b}=e.size;g-f/2c&&(c=g+f/2),l+b/2>n&&(n=l+b/2)}if(e.children)for(let g of e.children)({minX:a,minY:h,maxX:c,maxY:n}=Pe(g,{minX:a,minY:h,maxX:c,maxY:n}));return{minX:a,minY:h,maxX:c,maxY:n}}function _t(e){let a=e.getBlock("root");if(!a)return;le(a,e,0,0),Be(a),S.debug("getBlocks",JSON.stringify(a,null,2));let{minX:h,minY:c,maxX:n,maxY:g}=Pe(a),l=g-c,f=n-h;return{x:h,y:c,width:f,height:l}}var yt=function(e,a){return a.db.getClasses()},Et=function(e,a,h,c){return K(this,null,function*(){let{securityLevel:n,block:g}=Q(),l=c.db,f;n==="sandbox"&&(f=X("#i"+a));let b=n==="sandbox"?X(f.nodes()[0].contentDocument.body):X("body"),p=n==="sandbox"?b.select(`[id="${a}"]`):X(`[id="${a}"]`);Le(p,["point","circle","cross"],c.type,a);let y=l.getBlocks(),T=l.getBlocksFlat(),v=l.getEdges(),k=p.insert("g").attr("class","block");yield bt(k,y,l);let E=_t(l);if(yield xt(k,y,l),yield St(k,v,T,l,a),E){let L=E,A=Math.max(1,Math.round(.125*(L.width/L.height))),N=L.height+A+10,D=L.width+10,{useMaxWidth:o}=g;ve(p,N,D,!!o),S.debug("Here Bounds",E,L),p.attr("viewBox",`${L.x-5} ${L.y-5} ${L.width+10} ${L.height+10}`)}ge(pe)})},wt={draw:Et,getClasses:yt},Rt={parser:je,db:ht,renderer:wt,styles:gt};export{Rt as diagram}; diff --git a/chunk-5RSCYRGJ.js b/chunk-5RSCYRGJ.js new file mode 100644 index 0000000..367eae5 --- /dev/null +++ b/chunk-5RSCYRGJ.js @@ -0,0 +1,7 @@ +import{Fa as xt,a as ft,ab as gt}from"./chunk-2YKPSI5H.js";import{g as ae}from"./chunk-TWZW5B45.js";var oe={};function Un(n,r){let t=r||oe,e=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,a=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return dt(n,e,a)}function dt(n,r,t){if(le(n)){if("value"in n)return n.type==="html"&&!t?"":n.value;if(r&&"alt"in n&&n.alt)return n.alt;if("children"in n)return kt(n.children,r,t)}return Array.isArray(n)?kt(n,r,t):""}function kt(n,r,t){let e=[],a=-1;for(;++aa?0:a+r:r=r>a?a:r,t=t>0?t:0,e.length<1e4)u=Array.from(e),u.unshift(r,t),n.splice(...u);else for(t&&n.splice(r,t);i0?($(n,n.length,0,r),n):r}var yt={}.hasOwnProperty;function bt(n){let r={},t=-1;for(;++tu))return;let D=r.events.length,V=D,W,Z;for(;V--;)if(r.events[V][0]==="exit"&&r.events[V][1].type==="chunkFlow"){if(W){Z=r.events[V][1].end;break}W=!0}for(y(e),k=D;kS;){let M=t[_];r.containerState=M[1],M[0].exit.call(r,n)}t.length=S}function R(){a.write([null]),i=void 0,a=void 0,r.containerState._closeFlow=void 0}}function he(n,r,t){return C(n,n.attempt(this.parser.constructs.document,r,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function $n(n){if(n===null||N(n)||At(n))return 1;if(Ct(n))return 2}function yn(n,r,t){let e=[],a=-1;for(;++a1&&n[t][1].end.offset-n[t][1].start.offset>1?2:1;let x=Object.assign({},n[e][1].end),h=Object.assign({},n[t][1].start);Bt(x,-f),Bt(h,f),u={type:f>1?"strongSequence":"emphasisSequence",start:x,end:Object.assign({},n[e][1].end)},o={type:f>1?"strongSequence":"emphasisSequence",start:Object.assign({},n[t][1].start),end:h},i={type:f>1?"strongText":"emphasisText",start:Object.assign({},n[e][1].end),end:Object.assign({},n[t][1].start)},a={type:f>1?"strong":"emphasis",start:Object.assign({},u.start),end:Object.assign({},o.end)},n[e][1].end=Object.assign({},u.start),n[t][1].start=Object.assign({},o.end),m=[],n[e][1].end.offset-n[e][1].start.offset&&(m=G(m,[["enter",n[e][1],r],["exit",n[e][1],r]])),m=G(m,[["enter",a,r],["enter",u,r],["exit",u,r],["enter",i,r]]),m=G(m,yn(r.parser.constructs.insideSpan.null,n.slice(e+1,t),r)),m=G(m,[["exit",i,r],["enter",o,r],["exit",o,r],["exit",a,r]]),n[t][1].end.offset-n[t][1].start.offset?(c=2,m=G(m,[["enter",n[t][1],r],["exit",n[t][1],r]])):c=0,$(n,e-1,t-e+3,m),t=e+m.length-c-2;break}}for(t=-1;++t0&&F(k)?C(n,R,"linePrefix",i+1)(k):R(k)}function R(k){return k===null||b(k)?n.check(Ot,B,_)(k):(n.enter("codeFlowValue"),S(k))}function S(k){return k===null||b(k)?(n.exit("codeFlowValue"),R(k)):(n.consume(k),S)}function _(k){return n.exit("codeFenced"),r(k)}function M(k,D,V){let W=0;return Z;function Z(A){return k.enter("lineEnding"),k.consume(A),k.exit("lineEnding"),H}function H(A){return k.enter("codeFencedFence"),F(A)?C(k,I,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):I(A)}function I(A){return A===o?(k.enter("codeFencedFenceSequence"),w(A)):V(A)}function w(A){return A===o?(W++,k.consume(A),w):W>=u?(k.exit("codeFencedFenceSequence"),F(A)?C(k,z,"whitespace")(A):z(A)):V(A)}function z(A){return A===null||b(A)?(k.exit("codeFencedFence"),D(A)):V(A)}}}function Fe(n,r,t){let e=this;return a;function a(u){return u===null?t(u):(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),i)}function i(u){return e.parser.lazy[e.now().line]?t(u):r(u)}}var Tn={name:"codeIndented",tokenize:Ae},Ce={tokenize:ze,partial:!0};function Ae(n,r,t){let e=this;return a;function a(m){return n.enter("codeIndented"),C(n,i,"linePrefix",5)(m)}function i(m){let c=e.events[e.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?u(m):t(m)}function u(m){return m===null?f(m):b(m)?n.attempt(Ce,u,f)(m):(n.enter("codeFlowValue"),o(m))}function o(m){return m===null||b(m)?(n.exit("codeFlowValue"),u(m)):(n.consume(m),o)}function f(m){return n.exit("codeIndented"),r(m)}}function ze(n,r,t){let e=this;return a;function a(u){return e.parser.lazy[e.now().line]?t(u):b(u)?(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),a):C(n,i,"linePrefix",5)(u)}function i(u){let o=e.events[e.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?r(u):b(u)?a(u):t(u)}}var Yn={name:"codeText",tokenize:Be,resolve:Ie,previous:Te};function Ie(n){let r=n.length-4,t=3,e,a;if((n[t][1].type==="lineEnding"||n[t][1].type==="space")&&(n[r][1].type==="lineEnding"||n[r][1].type==="space")){for(e=t;++e=4?r(u):n.interrupt(e.parser.constructs.flow,t,r)(u)}}function Mn(n,r,t,e,a,i,u,o,f){let m=f||Number.POSITIVE_INFINITY,c=0;return x;function x(y){return y===60?(n.enter(e),n.enter(a),n.enter(i),n.consume(y),n.exit(i),h):y===null||y===32||y===41||An(y)?t(y):(n.enter(e),n.enter(u),n.enter(o),n.enter("chunkString",{contentType:"string"}),B(y))}function h(y){return y===62?(n.enter(i),n.consume(y),n.exit(i),n.exit(a),n.exit(e),r):(n.enter(o),n.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===62?(n.exit("chunkString"),n.exit(o),h(y)):y===null||y===60||b(y)?t(y):(n.consume(y),y===92?T:p)}function T(y){return y===60||y===62||y===92?(n.consume(y),p):p(y)}function B(y){return!c&&(y===null||y===41||N(y))?(n.exit("chunkString"),n.exit(o),n.exit(u),n.exit(e),r(y)):c999||p===null||p===91||p===93&&!f||p===94&&!o&&"_hiddenFootnoteSupport"in u.parser.constructs?t(p):p===93?(n.exit(i),n.enter(a),n.consume(p),n.exit(a),n.exit(e),r):b(p)?(n.enter("lineEnding"),n.consume(p),n.exit("lineEnding"),c):(n.enter("chunkString",{contentType:"string"}),x(p))}function x(p){return p===null||p===91||p===93||b(p)||o++>999?(n.exit("chunkString"),c(p)):(n.consume(p),f||(f=!F(p)),p===92?h:x)}function h(p){return p===91||p===92||p===93?(n.consume(p),o++,x):x(p)}}function jn(n,r,t,e,a,i){let u;return o;function o(h){return h===34||h===39||h===40?(n.enter(e),n.enter(a),n.consume(h),n.exit(a),u=h===40?41:h,f):t(h)}function f(h){return h===u?(n.enter(a),n.consume(h),n.exit(a),n.exit(e),r):(n.enter(i),m(h))}function m(h){return h===u?(n.exit(i),f(u)):h===null?t(h):b(h)?(n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),C(n,m,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===u||h===null||b(h)?(n.exit("chunkString"),m(h)):(n.consume(h),h===92?x:c)}function x(h){return h===u||h===92?(n.consume(h),c):c(h)}}function fn(n,r){let t;return e;function e(a){return b(a)?(n.enter("lineEnding"),n.consume(a),n.exit("lineEnding"),t=!0,e):F(a)?C(n,e,t?"linePrefix":"lineSuffix")(a):r(a)}}function ln(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Jn={name:"definition",tokenize:Re},Me={tokenize:je,partial:!0};function Re(n,r,t){let e=this,a;return i;function i(p){return n.enter("definition"),u(p)}function u(p){return Rn.call(e,n,o,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function o(p){return a=ln(e.sliceSerialize(e.events[e.events.length-1][1]).slice(1,-1)),p===58?(n.enter("definitionMarker"),n.consume(p),n.exit("definitionMarker"),f):t(p)}function f(p){return N(p)?fn(n,m)(p):m(p)}function m(p){return Mn(n,c,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return n.attempt(Me,x,x)(p)}function x(p){return F(p)?C(n,h,"whitespace")(p):h(p)}function h(p){return p===null||b(p)?(n.exit("definition"),e.parser.defined.push(a),r(p)):t(p)}}function je(n,r,t){return e;function e(o){return N(o)?fn(n,a)(o):t(o)}function a(o){return jn(n,i,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function i(o){return F(o)?C(n,u,"whitespace")(o):u(o)}function u(o){return o===null||b(o)?r(o):t(o)}}var Kn={name:"hardBreakEscape",tokenize:He};function He(n,r,t){return e;function e(i){return n.enter("hardBreakEscape"),n.consume(i),a}function a(i){return b(i)?(n.exit("hardBreakEscape"),r(i)):t(i)}}var Xn={name:"headingAtx",tokenize:Ne,resolve:qe};function qe(n,r){let t=n.length-2,e=3,a,i;return n[e][1].type==="whitespace"&&(e+=2),t-2>e&&n[t][1].type==="whitespace"&&(t-=2),n[t][1].type==="atxHeadingSequence"&&(e===t-1||t-4>e&&n[t-2][1].type==="whitespace")&&(t-=e+1===t?2:4),t>e&&(a={type:"atxHeadingText",start:n[e][1].start,end:n[t][1].end},i={type:"chunkText",start:n[e][1].start,end:n[t][1].end,contentType:"text"},$(n,e,t-e+1,[["enter",a,r],["enter",i,r],["exit",i,r],["exit",a,r]])),n}function Ne(n,r,t){let e=0;return a;function a(c){return n.enter("atxHeading"),i(c)}function i(c){return n.enter("atxHeadingSequence"),u(c)}function u(c){return c===35&&e++<6?(n.consume(c),u):c===null||N(c)?(n.exit("atxHeadingSequence"),o(c)):t(c)}function o(c){return c===35?(n.enter("atxHeadingSequence"),f(c)):c===null||b(c)?(n.exit("atxHeading"),r(c)):F(c)?C(n,o,"whitespace")(c):(n.enter("atxHeadingText"),m(c))}function f(c){return c===35?(n.consume(c),f):(n.exit("atxHeadingSequence"),o(c))}function m(c){return c===null||c===35||N(c)?(n.exit("atxHeadingText"),o(c)):(n.consume(c),m)}}var Dt=["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"],vn=["pre","script","style","textarea"];var nt={name:"htmlFlow",tokenize:Ue,resolveTo:Qe,concrete:!0},Ve={tokenize:Ze,partial:!0},We={tokenize:$e,partial:!0};function Qe(n){let r=n.length;for(;r--&&!(n[r][0]==="enter"&&n[r][1].type==="htmlFlow"););return r>1&&n[r-2][1].type==="linePrefix"&&(n[r][1].start=n[r-2][1].start,n[r+1][1].start=n[r-2][1].start,n.splice(r-2,2)),n}function Ue(n,r,t){let e=this,a,i,u,o,f;return m;function m(s){return c(s)}function c(s){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(s),x}function x(s){return s===33?(n.consume(s),h):s===47?(n.consume(s),i=!0,B):s===63?(n.consume(s),a=3,e.interrupt?r:l):X(s)?(n.consume(s),u=String.fromCharCode(s),P):t(s)}function h(s){return s===45?(n.consume(s),a=2,p):s===91?(n.consume(s),a=5,o=0,T):X(s)?(n.consume(s),a=4,e.interrupt?r:l):t(s)}function p(s){return s===45?(n.consume(s),e.interrupt?r:l):t(s)}function T(s){let K="CDATA[";return s===K.charCodeAt(o++)?(n.consume(s),o===K.length?e.interrupt?r:I:T):t(s)}function B(s){return X(s)?(n.consume(s),u=String.fromCharCode(s),P):t(s)}function P(s){if(s===null||s===47||s===62||N(s)){let K=s===47,kn=u.toLowerCase();return!K&&!i&&vn.includes(kn)?(a=1,e.interrupt?r(s):I(s)):Dt.includes(u.toLowerCase())?(a=6,K?(n.consume(s),y):e.interrupt?r(s):I(s)):(a=7,e.interrupt&&!e.parser.lazy[e.now().line]?t(s):i?R(s):S(s))}return s===45||J(s)?(n.consume(s),u+=String.fromCharCode(s),P):t(s)}function y(s){return s===62?(n.consume(s),e.interrupt?r:I):t(s)}function R(s){return F(s)?(n.consume(s),R):Z(s)}function S(s){return s===47?(n.consume(s),Z):s===58||s===95||X(s)?(n.consume(s),_):F(s)?(n.consume(s),S):Z(s)}function _(s){return s===45||s===46||s===58||s===95||J(s)?(n.consume(s),_):M(s)}function M(s){return s===61?(n.consume(s),k):F(s)?(n.consume(s),M):S(s)}function k(s){return s===null||s===60||s===61||s===62||s===96?t(s):s===34||s===39?(n.consume(s),f=s,D):F(s)?(n.consume(s),k):V(s)}function D(s){return s===f?(n.consume(s),f=null,W):s===null||b(s)?t(s):(n.consume(s),D)}function V(s){return s===null||s===34||s===39||s===47||s===60||s===61||s===62||s===96||N(s)?M(s):(n.consume(s),V)}function W(s){return s===47||s===62||F(s)?S(s):t(s)}function Z(s){return s===62?(n.consume(s),H):t(s)}function H(s){return s===null||b(s)?I(s):F(s)?(n.consume(s),H):t(s)}function I(s){return s===45&&a===2?(n.consume(s),j):s===60&&a===1?(n.consume(s),Q):s===62&&a===4?(n.consume(s),v):s===63&&a===3?(n.consume(s),l):s===93&&a===5?(n.consume(s),en):b(s)&&(a===6||a===7)?(n.exit("htmlFlowData"),n.check(Ve,rn,w)(s)):s===null||b(s)?(n.exit("htmlFlowData"),w(s)):(n.consume(s),I)}function w(s){return n.check(We,z,rn)(s)}function z(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),A}function A(s){return s===null||b(s)?w(s):(n.enter("htmlFlowData"),I(s))}function j(s){return s===45?(n.consume(s),l):I(s)}function Q(s){return s===47?(n.consume(s),u="",nn):I(s)}function nn(s){if(s===62){let K=u.toLowerCase();return vn.includes(K)?(n.consume(s),v):I(s)}return X(s)&&u.length<8?(n.consume(s),u+=String.fromCharCode(s),nn):I(s)}function en(s){return s===93?(n.consume(s),l):I(s)}function l(s){return s===62?(n.consume(s),v):s===45&&a===2?(n.consume(s),l):I(s)}function v(s){return s===null||b(s)?(n.exit("htmlFlowData"),rn(s)):(n.consume(s),v)}function rn(s){return n.exit("htmlFlow"),r(s)}}function $e(n,r,t){let e=this;return a;function a(u){return b(u)?(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),i):t(u)}function i(u){return e.parser.lazy[e.now().line]?t(u):r(u)}}function Ze(n,r,t){return e;function e(a){return n.enter("lineEnding"),n.consume(a),n.exit("lineEnding"),n.attempt(pn,r,t)}}var tt={name:"htmlText",tokenize:Ye};function Ye(n,r,t){let e=this,a,i,u;return o;function o(l){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(l),f}function f(l){return l===33?(n.consume(l),m):l===47?(n.consume(l),M):l===63?(n.consume(l),S):X(l)?(n.consume(l),V):t(l)}function m(l){return l===45?(n.consume(l),c):l===91?(n.consume(l),i=0,T):X(l)?(n.consume(l),R):t(l)}function c(l){return l===45?(n.consume(l),p):t(l)}function x(l){return l===null?t(l):l===45?(n.consume(l),h):b(l)?(u=x,Q(l)):(n.consume(l),x)}function h(l){return l===45?(n.consume(l),p):x(l)}function p(l){return l===62?j(l):l===45?h(l):x(l)}function T(l){let v="CDATA[";return l===v.charCodeAt(i++)?(n.consume(l),i===v.length?B:T):t(l)}function B(l){return l===null?t(l):l===93?(n.consume(l),P):b(l)?(u=B,Q(l)):(n.consume(l),B)}function P(l){return l===93?(n.consume(l),y):B(l)}function y(l){return l===62?j(l):l===93?(n.consume(l),y):B(l)}function R(l){return l===null||l===62?j(l):b(l)?(u=R,Q(l)):(n.consume(l),R)}function S(l){return l===null?t(l):l===63?(n.consume(l),_):b(l)?(u=S,Q(l)):(n.consume(l),S)}function _(l){return l===62?j(l):S(l)}function M(l){return X(l)?(n.consume(l),k):t(l)}function k(l){return l===45||J(l)?(n.consume(l),k):D(l)}function D(l){return b(l)?(u=D,Q(l)):F(l)?(n.consume(l),D):j(l)}function V(l){return l===45||J(l)?(n.consume(l),V):l===47||l===62||N(l)?W(l):t(l)}function W(l){return l===47?(n.consume(l),j):l===58||l===95||X(l)?(n.consume(l),Z):b(l)?(u=W,Q(l)):F(l)?(n.consume(l),W):j(l)}function Z(l){return l===45||l===46||l===58||l===95||J(l)?(n.consume(l),Z):H(l)}function H(l){return l===61?(n.consume(l),I):b(l)?(u=H,Q(l)):F(l)?(n.consume(l),H):W(l)}function I(l){return l===null||l===60||l===61||l===62||l===96?t(l):l===34||l===39?(n.consume(l),a=l,w):b(l)?(u=I,Q(l)):F(l)?(n.consume(l),I):(n.consume(l),z)}function w(l){return l===a?(n.consume(l),a=void 0,A):l===null?t(l):b(l)?(u=w,Q(l)):(n.consume(l),w)}function z(l){return l===null||l===34||l===39||l===60||l===61||l===96?t(l):l===47||l===62||N(l)?W(l):(n.consume(l),z)}function A(l){return l===47||l===62||N(l)?W(l):t(l)}function j(l){return l===62?(n.consume(l),n.exit("htmlTextData"),n.exit("htmlText"),r):t(l)}function Q(l){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),nn}function nn(l){return F(l)?C(n,en,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):en(l)}function en(l){return n.enter("htmlTextData"),u(l)}}var xn={name:"labelEnd",tokenize:nr,resolveTo:ve,resolveAll:Xe},Ge={tokenize:tr},Je={tokenize:er},Ke={tokenize:rr};function Xe(n){let r=-1;for(;++r=3&&(m===null||b(m))?(n.exit("thematicBreak"),r(m)):t(m)}function f(m){return m===a?(n.consume(m),e++,f):(n.exit("thematicBreakSequence"),F(m)?C(n,o,"whitespace")(m):o(m))}}var Y={name:"list",tokenize:cr,continuation:{tokenize:pr},exit:hr},lr={tokenize:fr,partial:!0},sr={tokenize:mr,partial:!0};function cr(n,r,t){let e=this,a=e.events[e.events.length-1],i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,u=0;return o;function o(p){let T=e.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(T==="listUnordered"?!e.containerState.marker||p===e.containerState.marker:zn(p)){if(e.containerState.type||(e.containerState.type=T,n.enter(T,{_container:!0})),T==="listUnordered")return n.enter("listItemPrefix"),p===42||p===45?n.check(gn,t,m)(p):m(p);if(!e.interrupt||p===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),f(p)}return t(p)}function f(p){return zn(p)&&++u<10?(n.consume(p),f):(!e.interrupt||u<2)&&(e.containerState.marker?p===e.containerState.marker:p===41||p===46)?(n.exit("listItemValue"),m(p)):t(p)}function m(p){return n.enter("listItemMarker"),n.consume(p),n.exit("listItemMarker"),e.containerState.marker=e.containerState.marker||p,n.check(pn,e.interrupt?t:c,n.attempt(lr,h,x))}function c(p){return e.containerState.initialBlankLine=!0,i++,h(p)}function x(p){return F(p)?(n.enter("listItemPrefixWhitespace"),n.consume(p),n.exit("listItemPrefixWhitespace"),h):t(p)}function h(p){return e.containerState.size=i+e.sliceSerialize(n.exit("listItemPrefix"),!0).length,r(p)}}function pr(n,r,t){let e=this;return e.containerState._closeFlow=void 0,n.check(pn,a,i);function a(o){return e.containerState.furtherBlankLines=e.containerState.furtherBlankLines||e.containerState.initialBlankLine,C(n,r,"listItemIndent",e.containerState.size+1)(o)}function i(o){return e.containerState.furtherBlankLines||!F(o)?(e.containerState.furtherBlankLines=void 0,e.containerState.initialBlankLine=void 0,u(o)):(e.containerState.furtherBlankLines=void 0,e.containerState.initialBlankLine=void 0,n.attempt(sr,r,u)(o))}function u(o){return e.containerState._closeFlow=!0,e.interrupt=void 0,C(n,n.attempt(Y,r,t),"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function mr(n,r,t){let e=this;return C(n,a,"listItemIndent",e.containerState.size+1);function a(i){let u=e.events[e.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===e.containerState.size?r(i):t(i)}}function hr(n){n.exit(this.containerState.type)}function fr(n,r,t){let e=this;return C(n,a,"listItemPrefixWhitespace",e.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){let u=e.events[e.events.length-1];return!F(i)&&u&&u[1].type==="listItemPrefixWhitespace"?r(i):t(i)}}var Hn={name:"setextUnderline",tokenize:gr,resolveTo:xr};function xr(n,r){let t=n.length,e,a,i;for(;t--;)if(n[t][0]==="enter"){if(n[t][1].type==="content"){e=t;break}n[t][1].type==="paragraph"&&(a=t)}else n[t][1].type==="content"&&n.splice(t,1),!i&&n[t][1].type==="definition"&&(i=t);let u={type:"setextHeading",start:Object.assign({},n[a][1].start),end:Object.assign({},n[n.length-1][1].end)};return n[a][1].type="setextHeadingText",i?(n.splice(a,0,["enter",u,r]),n.splice(i+1,0,["exit",n[e][1],r]),n[e][1].end=Object.assign({},n[i][1].end)):n[e][1]=u,n.push(["exit",u,r]),n}function gr(n,r,t){let e=this,a;return i;function i(m){let c=e.events.length,x;for(;c--;)if(e.events[c][1].type!=="lineEnding"&&e.events[c][1].type!=="linePrefix"&&e.events[c][1].type!=="content"){x=e.events[c][1].type==="paragraph";break}return!e.parser.lazy[e.now().line]&&(e.interrupt||x)?(n.enter("setextHeadingLine"),a=m,u(m)):t(m)}function u(m){return n.enter("setextHeadingLineSequence"),o(m)}function o(m){return m===a?(n.consume(m),o):(n.exit("setextHeadingLineSequence"),F(m)?C(n,f,"lineSuffix")(m):f(m))}function f(m){return m===null||b(m)?(n.exit("setextHeadingLine"),r(m)):t(m)}}var Pt={tokenize:kr};function kr(n){let r=this,t=n.attempt(pn,e,n.attempt(this.parser.constructs.flowInitial,a,C(n,n.attempt(this.parser.constructs.flow,a,n.attempt(Gn,a)),"linePrefix")));return t;function e(i){if(i===null){n.consume(i);return}return n.enter("lineEndingBlank"),n.consume(i),n.exit("lineEndingBlank"),r.currentConstruct=void 0,t}function a(i){if(i===null){n.consume(i);return}return n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),r.currentConstruct=void 0,t}}var _t={resolveAll:Ht()},Mt=jt("string"),Rt=jt("text");function jt(n){return{tokenize:r,resolveAll:Ht(n==="text"?dr:void 0)};function r(t){let e=this,a=this.parser.constructs[n],i=t.attempt(a,u,o);return u;function u(c){return m(c)?i(c):o(c)}function o(c){if(c===null){t.consume(c);return}return t.enter("data"),t.consume(c),f}function f(c){return m(c)?(t.exit("data"),i(c)):(t.consume(c),f)}function m(c){if(c===null)return!0;let x=a[c],h=-1;if(x)for(;++h-1){let o=u[0];typeof o=="string"?u[0]=o.slice(e):u.shift()}i>0&&u.push(n[a].slice(0,i))}return u}function br(n,r){let t=-1,e=[],a;for(;++tIr,contentInitial:()=>wr,disable:()=>Tr,document:()=>Sr,flow:()=>Fr,flowInitial:()=>Er,insideSpan:()=>zr,string:()=>Cr,text:()=>Ar});var Sr={42:Y,43:Y,45:Y,48:Y,49:Y,50:Y,51:Y,52:Y,53:Y,54:Y,55:Y,56:Y,57:Y,62:Ln},wr={91:Jn},Er={[-2]:Tn,[-1]:Tn,32:Tn},Fr={35:Xn,42:gn,45:[Hn,gn],60:nt,61:Hn,95:gn,96:Pn,126:Pn},Cr={38:Dn,92:On},Ar={[-5]:Bn,[-4]:Bn,[-3]:Bn,33:et,38:Dn,42:In,60:[Zn,tt],91:rt,92:[Kn,On],93:xn,95:In,96:Yn},zr={null:[In,_t]},Ir={null:[42,95]},Tr={null:[]};function Nt(n){let t=bt([it,...(n||{}).extensions||[]]),e={defined:[],lazy:{},constructs:t,content:a(zt),document:a(Tt),flow:a(Pt),string:a(Mt),text:a(Rt)};return e;function a(i){return u;function u(o){return qt(e,i,o)}}}var Vt=/[\0\t\n\r]/g;function Wt(){let n=1,r="",t=!0,e;return a;function a(i,u,o){let f=[],m,c,x,h,p;for(i=r+i.toString(u),x=0,r="",t&&(i.charCodeAt(0)===65279&&x++,t=void 0);x13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"\uFFFD":String.fromCharCode(t)}var Br=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ut(n){return n.replace(Br,Lr)}function Lr(n,r,t){if(r)return r;if(t.charCodeAt(0)===35){let a=t.charCodeAt(1),i=a===120||a===88;return qn(t.slice(i?2:1),i?16:10)}return bn(t)||n}function Sn(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?$t(n.position):"start"in n||"end"in n?$t(n):"line"in n||"column"in n?ut(n):""}function ut(n){return Zt(n&&n.line)+":"+Zt(n&&n.column)}function $t(n){return ut(n&&n.start)+"-"+ut(n&&n.end)}function Zt(n){return n&&typeof n=="number"?n:1}var Gt={}.hasOwnProperty,Nn=function(n,r,t){return typeof r!="string"&&(t=r,r=void 0),Or(t)(Qt(Nt(t).document().write(Wt()(n,r,!0))))};function Or(n){let r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(mt),autolinkProtocol:H,autolinkEmail:H,atxHeading:o(st),blockQuote:o(dn),characterEscape:H,characterReference:H,codeFenced:o(hn),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:o(hn,f),codeText:o(Wn,f),codeTextData:H,data:H,codeFlowValue:H,definition:o(Xt),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:o(vt),hardBreakEscape:o(ct),hardBreakTrailing:o(ct),htmlFlow:o(pt,f),htmlFlowData:H,htmlText:o(pt,f),htmlTextData:H,image:o(ne),label:f,link:o(mt),listItem:o(te),listItemValue:T,listOrdered:o(ht,p),listUnordered:o(ht),paragraph:o(ee),reference:kn,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:o(st),strong:o(re),thematicBreak:o(ue)},exit:{atxHeading:c(),atxHeadingSequence:D,autolink:c(),autolinkEmail:un,autolinkProtocol:En,blockQuote:c(),characterEscapeValue:I,characterReferenceMarkerHexadecimal:wn,characterReferenceMarkerNumeric:wn,characterReferenceValue:U,codeFenced:c(R),codeFencedFence:y,codeFencedFenceInfo:B,codeFencedFenceMeta:P,codeFlowValue:I,codeIndented:c(S),codeText:c(Q),codeTextData:I,data:I,definition:c(),definitionDestinationString:k,definitionLabelString:_,definitionTitleString:M,emphasis:c(),hardBreakEscape:c(z),hardBreakTrailing:c(z),htmlFlow:c(A),htmlFlowData:I,htmlText:c(j),htmlTextData:I,image:c(en),label:v,labelText:l,lineEnding:w,link:c(nn),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:Vn,resourceDestinationString:rn,resourceTitleString:s,resource:K,setextHeading:c(Z),setextHeadingLineSequence:W,setextHeadingText:V,strong:c(),thematicBreak:c()}};Jt(r,(n||{}).mdastExtensions||[]);let t={};return e;function e(g){let d={type:"root",children:[]},E={stack:[d],tokenStack:[],config:r,enter:m,exit:x,buffer:f,resume:h,setData:i,getData:u},L=[],O=-1;for(;++O0){let tn=E.tokenStack[E.tokenStack.length-1];(tn[1]||Yt).call(E,void 0,tn[0])}for(d.position={start:mn(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:mn(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},O=-1;++O{c!==0&&(a++,e.push([])),m.split(" ").forEach(x=>{x&&e[a].push({content:x,type:o})})}):(u.type==="strong"||u.type==="emphasis")&&u.children.forEach(f=>{i(f,u.type)})}return t.forEach(u=>{u.type==="paragraph"&&u.children.forEach(o=>{i(o)})}),e}function Mr(n){let{children:r}=Nn(n);function t(e){return e.type==="text"?e.value.replace(/\n/g,"
"):e.type==="strong"?`${e.children.map(t).join("")}`:e.type==="emphasis"?`${e.children.map(t).join("")}`:e.type==="paragraph"?`

${e.children.map(t).join("")}

`:`Unsupported markdown: ${e.type}`}return r.map(t).join("")}function Rr(n){return Intl.Segmenter?[...new Intl.Segmenter().segment(n)].map(r=>r.segment):[...n]}function jr(n,r){let t=Rr(r.content);return Kt(n,[],t,r.type)}function Kt(n,r,t,e){if(t.length===0)return[{content:r.join(""),type:e},{content:"",type:e}];let[a,...i]=t,u=[...r,a];return n([{content:u.join(""),type:e}])?Kt(n,u,i,e):(r.length===0&&a&&(r.push(a),t.shift()),[{content:r.join(""),type:e},{content:t.join(""),type:e}])}function Hr(n,r){if(n.some(({content:t})=>t.includes(` +`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return at(n,r)}function at(n,r,t=[],e=[]){if(n.length===0)return e.length>0&&t.push(e),t.length>0?t:[];let a="";n[0].content===" "&&(a=" ",n.shift());let i=n.shift()??{content:" ",type:"normal"},u=[...e];if(a!==""&&u.push({content:a,type:"normal"}),u.push(i),r(u))return at(n,r,t,u);if(e.length>0)t.push(e),n.unshift(i);else if(i.content){let[o,f]=jr(r,i);t.push([o]),f.content&&n.unshift(f)}return at(n,r,t)}function qr(n,r){r&&n.attr("style",r)}function Nr(n,r,t,e,a=!1){let i=n.append("foreignObject"),u=i.append("xhtml:div"),o=r.label,f=r.isNode?"nodeLabel":"edgeLabel";u.html(` + "+o+""),qr(u,r.labelStyle),u.style("display","table-cell"),u.style("white-space","nowrap"),u.style("max-width",t+"px"),u.attr("xmlns","http://www.w3.org/1999/xhtml"),a&&u.attr("class","labelBkg");let m=u.node().getBoundingClientRect();return m.width===t&&(u.style("display","table"),u.style("white-space","break-spaces"),u.style("width",t+"px"),m=u.node().getBoundingClientRect()),i.style("width",m.width),i.style("height",m.height),i.node()}function ot(n,r,t){return n.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",r*t-.1+"em").attr("dy",t+"em")}function Vr(n,r,t){let e=n.append("text"),a=ot(e,1,r);lt(a,t);let i=a.node().getComputedTextLength();return e.remove(),i}function ao(n,r,t){var e;let a=n.append("text"),i=ot(a,1,r);lt(i,[{content:t,type:"normal"}]);let u=(e=i.node())==null?void 0:e.getBoundingClientRect();return u&&a.remove(),u}function Wr(n,r,t,e=!1){let i=r.append("g"),u=i.insert("rect").attr("class","background"),o=i.append("text").attr("y","-10.1"),f=0;for(let m of t){let c=h=>Vr(i,1.1,h)<=n,x=c(m)?[m]:Hr(m,c);for(let h of x){let p=ot(o,f,1.1);lt(p,h),f++}}if(e){let m=o.node().getBBox(),c=2;return u.attr("x",-c).attr("y",-c).attr("width",m.width+2*c).attr("height",m.height+2*c),i.node()}else return o.node()}function lt(n,r){n.text(""),r.forEach((t,e)=>{let a=n.append("tspan").attr("font-style",t.type==="emphasis"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",t.type==="strong"?"bold":"normal");e===0?a.text(t.content):a.text(" "+t.content)})}var oo=(n,r="",{style:t="",isTitle:e=!1,classes:a="",useHtmlLabels:i=!0,isNode:u=!0,width:o=200,addSvgBackground:f=!1}={})=>{if(xt.info("createText",r,t,e,a,i,u,f),i){let m=Mr(r),c={isNode:u,label:gt(m).replace(/fa[blrs]?:fa-[\w-]+/g,h=>``),labelStyle:t.replace("fill:","color:")};return Nr(n,c,o,a,f)}else{let m=_r(r);return Wr(o,n,m,f)}};export{ao as a,oo as b}; diff --git a/chunk-5WSNGUVD.js b/chunk-5WSNGUVD.js new file mode 100644 index 0000000..bf9e6d2 --- /dev/null +++ b/chunk-5WSNGUVD.js @@ -0,0 +1,52 @@ +import{a as ve}from"./chunk-UGXKMGFK.js";import{A as Ae}from"./chunk-KLEKA63L.js";import{Fa as ce,G as xe,Na as he,b as We,c as Ke,cb as we,eb as $e,fb as Ve,gb as qe,h as ie,hb as Oe,ib as Le,mb as ue}from"./chunk-2YKPSI5H.js";import{h as Ne}from"./chunk-TWZW5B45.js";var vt=Ne(We(),1),wt=Ne(Ke(),1);var de=function(){var e=function(V,i,n,a){for(n=n||{},a=V.length;a--;n[V[a]]=i);return n},t=[1,3],l=[1,4],c=[1,5],u=[1,6],d=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],p=[1,18],h=[2,7],o=[1,22],g=[1,23],R=[1,24],A=[1,25],T=[1,26],N=[1,27],v=[1,20],k=[1,28],x=[1,29],F=[62,63],ye=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],_e=[1,47],ge=[1,48],Ee=[1,49],Re=[1,50],me=[1,51],Ie=[1,52],be=[1,53],O=[53,54],M=[1,64],D=[1,60],P=[1,61],Y=[1,62],U=[1,63],B=[1,65],z=[1,69],j=[1,70],X=[1,67],J=[1,68],m=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],re={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(i,n,a,r,f,s,W){var _=s.length-1;switch(f){case 4:this.$=s[_].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=s[_].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:r.addRequirement(s[_-3],s[_-4]);break;case 14:r.setNewReqId(s[_-2]);break;case 15:r.setNewReqText(s[_-2]);break;case 16:r.setNewReqRisk(s[_-2]);break;case 17:r.setNewReqVerifyMethod(s[_-2]);break;case 20:this.$=r.RequirementType.REQUIREMENT;break;case 21:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=r.RiskLevel.LOW_RISK;break;case 27:this.$=r.RiskLevel.MED_RISK;break;case 28:this.$=r.RiskLevel.HIGH_RISK;break;case 29:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=r.VerifyType.VERIFY_TEST;break;case 33:r.addElement(s[_-3]);break;case 34:r.setNewElementType(s[_-2]);break;case 35:r.setNewElementDocRef(s[_-2]);break;case 38:r.addRelationship(s[_-2],s[_],s[_-4]);break;case 39:r.addRelationship(s[_-2],s[_-4],s[_]);break;case 40:this.$=r.Relationships.CONTAINS;break;case 41:this.$=r.Relationships.COPIES;break;case 42:this.$=r.Relationships.DERIVES;break;case 43:this.$=r.Relationships.SATISFIES;break;case 44:this.$=r.Relationships.VERIFIES;break;case 45:this.$=r.Relationships.REFINES;break;case 46:this.$=r.Relationships.TRACES;break}},table:[{3:1,4:2,6:t,9:l,11:c,13:u},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:l,11:c,13:u},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(d,[2,6]),{3:12,4:2,6:t,9:l,11:c,13:u},{1:[2,2]},{4:17,5:p,7:13,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},e(d,[2,4]),e(d,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:p,7:31,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:32,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:33,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:34,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:35,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(F,[2,20]),e(F,[2,21]),e(F,[2,22]),e(F,[2,23]),e(F,[2,24]),e(F,[2,25]),e(ye,[2,49]),e(ye,[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:_e,56:ge,57:Ee,58:Re,59:me,60:Ie,61:be},{52:54,55:_e,56:ge,57:Ee,58:Re,59:me,60:Ie,61:be},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(O,[2,40]),e(O,[2,41]),e(O,[2,42]),e(O,[2,43]),e(O,[2,44]),e(O,[2,45]),e(O,[2,46]),{54:[1,58]},{5:M,20:59,21:D,24:P,26:Y,28:U,30:B},{5:z,30:j,46:66,47:X,49:J},{23:71,62:k,63:x},{23:72,62:k,63:x},e(m,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:M,20:77,21:D,24:P,26:Y,28:U,30:B},e(m,[2,19]),e(m,[2,33]),{22:[1,78]},{22:[1,79]},{5:z,30:j,46:80,47:X,49:J},e(m,[2,37]),e(m,[2,38]),e(m,[2,39]),{23:81,62:k,63:x},{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(m,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(m,[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:M,20:106,21:D,24:P,26:Y,28:U,30:B},{5:M,20:107,21:D,24:P,26:Y,28:U,30:B},{5:M,20:108,21:D,24:P,26:Y,28:U,30:B},{5:M,20:109,21:D,24:P,26:Y,28:U,30:B},{5:z,30:j,46:110,47:X,49:J},{5:z,30:j,46:111,47:X,49:J},e(m,[2,14]),e(m,[2,15]),e(m,[2,16]),e(m,[2,17]),e(m,[2,34]),e(m,[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(i,n){if(n.recoverable)this.trace(i);else{var a=new Error(i);throw a.hash=n,a}},parse:function(i){var n=this,a=[0],r=[],f=[null],s=[],W=this.table,_="",Z=0,ke=0,Ue=2,Se=1,Be=s.slice.call(arguments,1),E=Object.create(this.lexer),L={yy:{}};for(var se in this.yy)Object.prototype.hasOwnProperty.call(this.yy,se)&&(L.yy[se]=this.yy[se]);E.setInput(i,L.yy),L.yy.lexer=E,L.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var ae=E.yylloc;s.push(ae);var Qe=E.options&&E.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function He(){var $;return $=r.pop()||E.lex()||Se,typeof $!="number"&&($ instanceof Array&&(r=$,$=r.pop()),$=n.symbols_[$]||$),$}for(var I,C,S,le,Q={},ee,w,Te,te;;){if(C=a[a.length-1],this.defaultActions[C]?S=this.defaultActions[C]:((I===null||typeof I>"u")&&(I=He()),S=W[C]&&W[C][I]),typeof S>"u"||!S.length||!S[0]){var oe="";te=[];for(ee in W[C])this.terminals_[ee]&&ee>Ue&&te.push("'"+this.terminals_[ee]+"'");E.showPosition?oe="Parse error on line "+(Z+1)+`: +`+E.showPosition()+` +Expecting `+te.join(", ")+", got '"+(this.terminals_[I]||I)+"'":oe="Parse error on line "+(Z+1)+": Unexpected "+(I==Se?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(oe,{text:E.match,token:this.terminals_[I]||I,line:E.yylineno,loc:ae,expected:te})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+I);switch(S[0]){case 1:a.push(I),f.push(E.yytext),s.push(E.yylloc),a.push(S[1]),I=null,ke=E.yyleng,_=E.yytext,Z=E.yylineno,ae=E.yylloc;break;case 2:if(w=this.productions_[S[1]][1],Q.$=f[f.length-w],Q._$={first_line:s[s.length-(w||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(w||1)].first_column,last_column:s[s.length-1].last_column},Qe&&(Q._$.range=[s[s.length-(w||1)].range[0],s[s.length-1].range[1]]),le=this.performAction.apply(Q,[_,ke,Z,L.yy,S[1],f,s].concat(Be)),typeof le<"u")return le;w&&(a=a.slice(0,-1*w*2),f=f.slice(0,-1*w),s=s.slice(0,-1*w)),a.push(this.productions_[S[1]][0]),f.push(Q.$),s.push(Q._$),Te=W[a[a.length-2]][a[a.length-1]],a.push(Te);break;case 3:return!0}}return!0}},Ye=function(){var V={EOF:1,parseError:function(n,a){if(this.yy.parser)this.yy.parser.parseError(n,a);else throw new Error(n)},setInput:function(i,n){return this.yy=n||this.yy||{},this._input=i,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 i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var n=i.length,a=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var r=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),a.length-1&&(this.yylineno-=a.length-1);var f=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:a?(a.length===r.length?this.yylloc.first_column:0)+r[r.length-a.length].length-a[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-n]),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(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+` +`+n+"^"},test_match:function(i,n){var a,r,f;if(this.options.backtrack_lexer&&(f={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&&(f.yylloc.range=this.yylloc.range.slice(0))),r=i[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,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(i[0].length),this.matched+=i[0],a=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var s in f)this[s]=f[s];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,n,a,r;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),s=0;sn[0].length)){if(n=a,r=s,this.options.backtrack_lexer){if(i=this.test_match(a,f[s]),i!==!1)return i;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(i=this.test_match(n,f[r]),i!==!1?i:!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 n=this.next();return n||this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){var n=this.conditionStack.length-1;return n>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(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},pushState:function(n){this.begin(n)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(n,a,r,f){switch(r){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 a.yytext=a.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 V}();re.lexer=Ye;function ne(){this.yy={}}return ne.prototype=re,re.Parser=ne,new ne}();de.parser=de;var Ge=de,fe=[],b={},K={},q={},G={},ze={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},je={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},Xe={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},Je={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},Ze=(e,t)=>(K[e]===void 0&&(K[e]={name:e,type:t,id:b.id,text:b.text,risk:b.risk,verifyMethod:b.verifyMethod}),b={},K[e]),et=()=>K,tt=e=>{b!==void 0&&(b.id=e)},it=e=>{b!==void 0&&(b.text=e)},rt=e=>{b!==void 0&&(b.risk=e)},nt=e=>{b!==void 0&&(b.verifyMethod=e)},st=e=>(G[e]===void 0&&(G[e]={name:e,type:q.type,docRef:q.docRef},ce.info("Added new requirement: ",e)),q={},G[e]),at=()=>G,lt=e=>{q!==void 0&&(q.type=e)},ot=e=>{q!==void 0&&(q.docRef=e)},ct=(e,t,l)=>{fe.push({type:e,src:t,dst:l})},ht=()=>fe,ut=()=>{fe=[],b={},K={},q={},G={},$e()},dt={RequirementType:ze,RiskLevel:je,VerifyType:Xe,Relationships:Je,getConfig:()=>ue().req,addRequirement:Ze,getRequirements:et,setNewReqId:tt,setNewReqText:it,setNewReqRisk:rt,setNewReqVerifyMethod:nt,setAccTitle:Ve,getAccTitle:qe,setAccDescription:Oe,getAccDescription:Le,addElement:st,getElements:at,setNewElementType:lt,setNewElementDocRef:ot,addRelationship:ct,getRelationships:ht,clear:ut},pt=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}; + } + +`,ft=pt,pe={CONTAINS:"contains",ARROW:"arrow"},yt=(e,t)=>{let l=e.append("defs").append("marker").attr("id",pe.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");l.append("circle").attr("cx",t.line_height/2).attr("cy",t.line_height/2).attr("r",t.line_height/2).attr("fill","none"),l.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),l.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",pe.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)},Fe={ReqMarkers:pe,insertLineEndings:yt},y={},Ce=0,Me=(e,t)=>e.insert("rect","#"+t).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",y.rect_min_width+"px").attr("height",y.rect_min_height+"px"),De=(e,t,l)=>{let c=y.rect_min_width/2,u=e.append("text").attr("class","req reqLabel reqTitle").attr("id",t).attr("x",c).attr("y",y.rect_padding).attr("dominant-baseline","hanging"),d=0;l.forEach(g=>{d==0?u.append("tspan").attr("text-anchor","middle").attr("x",y.rect_min_width/2).attr("dy",0).text(g):u.append("tspan").attr("text-anchor","middle").attr("x",y.rect_min_width/2).attr("dy",y.line_height*.75).text(g),d++});let p=1.5*y.rect_padding,h=d*y.line_height*.75,o=p+h;return e.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",y.rect_min_width).attr("y1",o).attr("y2",o),{titleNode:u,y:o}},Pe=(e,t,l,c)=>{let u=e.append("text").attr("class","req reqLabel").attr("id",t).attr("x",y.rect_padding).attr("y",c).attr("dominant-baseline","hanging"),d=0,p=30,h=[];return l.forEach(o=>{let g=o.length;for(;g>p&&d<3;){let R=o.substring(0,p);o=o.substring(p,o.length),g=o.length,h[h.length]=R,d++}if(d==3){let R=h[h.length-1];h[h.length-1]=R.substring(0,R.length-4)+"..."}else h[h.length]=o;d=0}),h.forEach(o=>{u.append("tspan").attr("x",y.rect_padding).attr("dy",y.line_height).text(o)}),u},_t=(e,t,l,c)=>{let u=t.node().getTotalLength(),d=t.node().getPointAtLength(u*.5),p="rel"+Ce;Ce++;let o=e.append("text").attr("class","req relationshipLabel").attr("id",p).attr("x",d.x).attr("y",d.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(c).node().getBBox();e.insert("rect","#"+p).attr("class","req reqLabelBox").attr("x",d.x-o.width/2).attr("y",d.y-o.height/2).attr("width",o.width).attr("height",o.height).attr("fill","white").attr("fill-opacity","85%")},gt=function(e,t,l,c,u){let d=l.edge(H(t.src),H(t.dst)),p=xe().x(function(o){return o.x}).y(function(o){return o.y}),h=e.insert("path","#"+c).attr("class","er relationshipLine").attr("d",p(d.points)).attr("fill","none");t.type==u.db.Relationships.CONTAINS?h.attr("marker-start","url("+he.getUrl(y.arrowMarkerAbsolute)+"#"+t.type+"_line_ending)"):(h.attr("stroke-dasharray","10,7"),h.attr("marker-end","url("+he.getUrl(y.arrowMarkerAbsolute)+"#"+Fe.ReqMarkers.ARROW+"_line_ending)")),_t(e,h,y,`<<${t.type}>>`)},Et=(e,t,l)=>{Object.keys(e).forEach(c=>{let u=e[c];c=H(c),ce.info("Added new requirement: ",c);let d=l.append("g").attr("id",c),p="req-"+c,h=Me(d,p),o=De(d,c+"_title",[`<<${u.type}>>`,`${u.name}`]);Pe(d,c+"_body",[`Id: ${u.id}`,`Text: ${u.text}`,`Risk: ${u.risk}`,`Verification: ${u.verifyMethod}`],o.y);let g=h.node().getBBox();t.setNode(c,{width:g.width,height:g.height,shape:"rect",id:c})})},Rt=(e,t,l)=>{Object.keys(e).forEach(c=>{let u=e[c],d=H(c),p=l.append("g").attr("id",d),h="element-"+d,o=Me(p,h),g=De(p,h+"_title",["<>",`${c}`]);Pe(p,h+"_body",[`Type: ${u.type||"Not Specified"}`,`Doc Ref: ${u.docRef||"None"}`],g.y);let R=o.node().getBBox();t.setNode(d,{width:R.width,height:R.height,shape:"rect",id:d})})},mt=(e,t)=>(e.forEach(function(l){let c=H(l.src),u=H(l.dst);t.setEdge(c,u,{relationship:l})}),e),It=function(e,t){t.nodes().forEach(function(l){l!==void 0&&t.node(l)!==void 0&&(e.select("#"+l),e.select("#"+l).attr("transform","translate("+(t.node(l).x-t.node(l).width/2)+","+(t.node(l).y-t.node(l).height/2)+" )"))})},H=e=>e.replace(/\s/g,"").replace(/\./g,"_"),bt=(e,t,l,c)=>{y=ue().requirement;let u=y.securityLevel,d;u==="sandbox"&&(d=ie("#i"+t));let h=(u==="sandbox"?ie(d.nodes()[0].contentDocument.body):ie("body")).select(`[id='${t}']`);Fe.insertLineEndings(h,y);let o=new Ae({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:y.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}}),g=c.db.getRequirements(),R=c.db.getElements(),A=c.db.getRelationships();Et(g,o,h),Rt(R,o,h),mt(A,o),ve(o),It(h,o),A.forEach(function(x){gt(h,x,o,t,c)});let T=y.rect_padding,N=h.node().getBBox(),v=N.width+T*2,k=N.height+T*2;we(h,k,v,y.useMaxWidth),h.attr("viewBox",`${N.x-T} ${N.y-T} ${v} ${k}`)},kt={draw:bt},Vt={parser:Ge,db:dt,renderer:kt,styles:ft};export{Vt as diagram}; diff --git a/chunk-6IVRQXMA.js b/chunk-6IVRQXMA.js new file mode 100644 index 0000000..0fea37b --- /dev/null +++ b/chunk-6IVRQXMA.js @@ -0,0 +1 @@ +import{a as p}from"./chunk-L4YHDAK7.js";import"./chunk-WEP4G4BU.js";import{S as D,a as s}from"./chunk-FNBE65Q7.js";import{Ba as l,Ra as g,U as c,nb as r,ob as i}from"./chunk-FUUZABHH.js";import{a as d,b as o,h as b}from"./chunk-TWZW5B45.js";var f=b(D());var y={title:"Welcome",mdFile:"../../../../README.md"},e=y;var h=[];var w={},u=w;var N='

Angular Web User Interface \u{1F3A8}

Angular library of components, services & patterns easing development of user interfaces. This is not a framework, nor a cdk, nut simply a collection of components following best practices in angular web development.

This repository was created as a model for creating actual application. Feel free to use take any components you want \u{1F64C}

Built with \u{1F3D7}\uFE0F

Dependencyversion
@angular/core^18.2.0
eslint8.57.0
jest^29.7.0
rxjs~7.8.0
tailwind^3.4.13
typescript~5.5.2

More dependencies can be found inside package.json.

Get Started \u{1F680}

This project contains multiple scripts. Remember to first run npm i in order to load required dependencies. Then you can run any of the scripts below:

ScriptDescription
npm run startServes application locally to https://localhost:4200
npm run buildBuilds application in production mode to dist/ngx-lib/browser
npm run watchBuilds application in development mode and watch for file change
npm run testLaunch unit tests with Jest runner
npm run test:watchLaunch unit tests and watch for files change
npm run lintLint repository with eslint & prettier.

Versions \u{1F516}

A complete changelog can be found in dedicated markdown. Which resume current progress. You can also found what is in the current development inside TODO markdown.

',a=class t extends s{pageType="guide";pageContent=N;page=e;demoAssets=u;constructor(){super()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=c({type:t,selectors:[["ng-doc-page-hc384p7h"]],standalone:!0,features:[r([{provide:s,useExisting:t},h,e.providers??[]]),l,i],decls:1,vars:0,template:function(n,v){n&1&&g(0,"ng-doc-page")},dependencies:[p],encapsulation:2,changeDetection:0})},P=[o(d({},(0,f.isRoute)(e.route)?e.route:{}),{path:"",component:a,title:"Welcome"})],M=P;export{a as PageComponent,M as default}; diff --git a/chunk-6KII2NPD.js b/chunk-6KII2NPD.js new file mode 100644 index 0000000..c6ff4d7 --- /dev/null +++ b/chunk-6KII2NPD.js @@ -0,0 +1,8 @@ +import{D as vt,Na as bt,b as Vt,c as Wt,db as St,eb as wt,fb as Lt,gb as At,h as X,hb as Et,ib as Tt,jb as Ct,kb as Mt,l as _t,mb as Q,ob as Ot}from"./chunk-2YKPSI5H.js";import{h as kt}from"./chunk-TWZW5B45.js";function G(t,n){let r;if(n===void 0)for(let l of t)l!=null&&(r=l)&&(r=l);else{let l=-1;for(let f of t)(f=n(f,++l,t))!=null&&(r=f)&&(r=f)}return r}function $(t,n){let r;if(n===void 0)for(let l of t)l!=null&&(r>l||r===void 0&&l>=l)&&(r=l);else{let l=-1;for(let f of t)(f=n(f,++l,t))!=null&&(r>f||r===void 0&&f>=f)&&(r=f)}return r}function B(t,n){let r=0;if(n===void 0)for(let l of t)(l=+l)&&(r+=l);else{let l=-1;for(let f of t)(f=+n(f,++l,t))&&(r+=f)}return r}function Ut(t){return t.target.depth}function ot(t){return t.depth}function st(t,n){return n-1-t.height}function K(t,n){return t.sourceLinks.length?t.depth:n-1}function it(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?$(t.sourceLinks,Ut)-1:0}function V(t){return function(){return t}}function It(t,n){return J(t.source,n.source)||t.index-n.index}function Nt(t,n){return J(t.target,n.target)||t.index-n.index}function J(t,n){return t.y0-n.y0}function at(t){return t.value}function Ft(t){return t.index}function qt(t){return t.nodes}function Yt(t){return t.links}function Pt(t,n){let r=t.get(n);if(!r)throw new Error("missing: "+n);return r}function Rt({nodes:t}){for(let n of t){let r=n.y0,l=r;for(let f of n.sourceLinks)f.y0=r+f.width/2,r+=f.width;for(let f of n.targetLinks)f.y1=l+f.width/2,l+=f.width}}function Z(){let t=0,n=0,r=1,l=1,f=24,k=8,y,m=Ft,o=K,i,u,g=qt,b=Yt,d=6;function _(){let e={nodes:g.apply(null,arguments),links:b.apply(null,arguments)};return A(e),L(e),E(e),M(e),w(e),Rt(e),e}_.update=function(e){return Rt(e),e},_.nodeId=function(e){return arguments.length?(m=typeof e=="function"?e:V(e),_):m},_.nodeAlign=function(e){return arguments.length?(o=typeof e=="function"?e:V(e),_):o},_.nodeSort=function(e){return arguments.length?(i=e,_):i},_.nodeWidth=function(e){return arguments.length?(f=+e,_):f},_.nodePadding=function(e){return arguments.length?(k=y=+e,_):k},_.nodes=function(e){return arguments.length?(g=typeof e=="function"?e:V(e),_):g},_.links=function(e){return arguments.length?(b=typeof e=="function"?e:V(e),_):b},_.linkSort=function(e){return arguments.length?(u=e,_):u},_.size=function(e){return arguments.length?(t=n=0,r=+e[0],l=+e[1],_):[r-t,l-n]},_.extent=function(e){return arguments.length?(t=+e[0][0],r=+e[1][0],n=+e[0][1],l=+e[1][1],_):[[t,n],[r,l]]},_.iterations=function(e){return arguments.length?(d=+e,_):d};function A({nodes:e,links:h}){for(let[c,s]of e.entries())s.index=c,s.sourceLinks=[],s.targetLinks=[];let a=new Map(e.map((c,s)=>[m(c,s,e),c]));for(let[c,s]of h.entries()){s.index=c;let{source:x,target:v}=s;typeof x!="object"&&(x=s.source=Pt(a,x)),typeof v!="object"&&(v=s.target=Pt(a,v)),x.sourceLinks.push(s),v.targetLinks.push(s)}if(u!=null)for(let{sourceLinks:c,targetLinks:s}of e)c.sort(u),s.sort(u)}function L({nodes:e}){for(let h of e)h.value=h.fixedValue===void 0?Math.max(B(h.sourceLinks,at),B(h.targetLinks,at)):h.fixedValue}function E({nodes:e}){let h=e.length,a=new Set(e),c=new Set,s=0;for(;a.size;){for(let x of a){x.depth=s;for(let{target:v}of x.sourceLinks)c.add(v)}if(++s>h)throw new Error("circular link");a=c,c=new Set}}function M({nodes:e}){let h=e.length,a=new Set(e),c=new Set,s=0;for(;a.size;){for(let x of a){x.height=s;for(let{source:v}of x.targetLinks)c.add(v)}if(++s>h)throw new Error("circular link");a=c,c=new Set}}function N({nodes:e}){let h=G(e,s=>s.depth)+1,a=(r-t-f)/(h-1),c=new Array(h);for(let s of e){let x=Math.max(0,Math.min(h-1,Math.floor(o.call(null,s,h))));s.layer=x,s.x0=t+x*a,s.x1=s.x0+f,c[x]?c[x].push(s):c[x]=[s]}if(i)for(let s of c)s.sort(i);return c}function z(e){let h=$(e,a=>(l-n-(a.length-1)*y)/B(a,at));for(let a of e){let c=n;for(let s of a){s.y0=c,s.y1=c+s.value*h,c=s.y1+y;for(let x of s.sourceLinks)x.width=x.value*h}c=(l-c+y)/(a.length+1);for(let s=0;sa.length)-1)),z(h);for(let a=0;a0))continue;let q=(F/D-v.y0)*h;v.y0+=q,v.y1+=q,S(v)}i===void 0&&x.sort(J),O(x,a)}}function R(e,h,a){for(let c=e.length,s=c-2;s>=0;--s){let x=e[s];for(let v of x){let F=0,D=0;for(let{target:Y,value:rt}of v.sourceLinks){let H=rt*(Y.layer-v.layer);F+=U(v,Y)*H,D+=H}if(!(D>0))continue;let q=(F/D-v.y0)*h;v.y0+=q,v.y1+=q,S(v)}i===void 0&&x.sort(J),O(x,a)}}function O(e,h){let a=e.length>>1,c=e[a];p(e,c.y0-y,a-1,h),I(e,c.y1+y,a+1,h),p(e,l,e.length-1,h),I(e,n,0,h)}function I(e,h,a,c){for(;a1e-6&&(s.y0+=x,s.y1+=x),h=s.y1+y}}function p(e,h,a,c){for(;a>=0;--a){let s=e[a],x=(s.y1-h)*c;x>1e-6&&(s.y0-=x,s.y1-=x),h=s.y0-y}}function S({sourceLinks:e,targetLinks:h}){if(u===void 0){for(let{source:{sourceLinks:a}}of h)a.sort(Nt);for(let{target:{targetLinks:a}}of e)a.sort(It)}}function P(e){if(u===void 0)for(let{sourceLinks:h,targetLinks:a}of e)h.sort(Nt),a.sort(It)}function T(e,h){let a=e.y0-(e.sourceLinks.length-1)*y/2;for(let{target:c,width:s}of e.sourceLinks){if(c===h)break;a+=s+y}for(let{source:c,width:s}of h.targetLinks){if(c===e)break;a-=s}return a}function U(e,h){let a=h.y0-(h.targetLinks.length-1)*y/2;for(let{source:c,width:s}of h.targetLinks){if(c===e)break;a+=s+y}for(let{target:c,width:s}of e.sourceLinks){if(c===h)break;a-=s}return a}return _}var lt=Math.PI,ut=2*lt,j=1e-6,Ht=ut-j;function ft(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function zt(){return new ft}ft.prototype=zt.prototype={constructor:ft,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,r,l){this._+="Q"+ +t+","+ +n+","+(this._x1=+r)+","+(this._y1=+l)},bezierCurveTo:function(t,n,r,l,f,k){this._+="C"+ +t+","+ +n+","+ +r+","+ +l+","+(this._x1=+f)+","+(this._y1=+k)},arcTo:function(t,n,r,l,f){t=+t,n=+n,r=+r,l=+l,f=+f;var k=this._x1,y=this._y1,m=r-t,o=l-n,i=k-t,u=y-n,g=i*i+u*u;if(f<0)throw new Error("negative radius: "+f);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(g>j)if(!(Math.abs(u*m-o*i)>j)||!f)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var b=r-k,d=l-y,_=m*m+o*o,A=b*b+d*d,L=Math.sqrt(_),E=Math.sqrt(g),M=f*Math.tan((lt-Math.acos((_+g-A)/(2*L*E)))/2),N=M/E,z=M/L;Math.abs(N-1)>j&&(this._+="L"+(t+N*i)+","+(n+N*u)),this._+="A"+f+","+f+",0,0,"+ +(u*b>i*d)+","+(this._x1=t+z*m)+","+(this._y1=n+z*o)}},arc:function(t,n,r,l,f,k){t=+t,n=+n,r=+r,k=!!k;var y=r*Math.cos(l),m=r*Math.sin(l),o=t+y,i=n+m,u=1^k,g=k?l-f:f-l;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+o+","+i:(Math.abs(this._x1-o)>j||Math.abs(this._y1-i)>j)&&(this._+="L"+o+","+i),r&&(g<0&&(g=g%ut+ut),g>Ht?this._+="A"+r+","+r+",0,1,"+u+","+(t-y)+","+(n-m)+"A"+r+","+r+",0,1,"+u+","+(this._x1=o)+","+(this._y1=i):g>j&&(this._+="A"+r+","+r+",0,"+ +(g>=lt)+","+u+","+(this._x1=t+r*Math.cos(f))+","+(this._y1=n+r*Math.sin(f))))},rect:function(t,n,r,l){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +r+"v"+ +l+"h"+-r+"Z"},toString:function(){return this._}};var ct=zt;function ht(t){return function(){return t}}function Dt(t){return t[0]}function jt(t){return t[1]}var $t=Array.prototype.slice;function Xt(t){return t.source}function Gt(t){return t.target}function Kt(t){var n=Xt,r=Gt,l=Dt,f=jt,k=null;function y(){var m,o=$t.call(arguments),i=n.apply(this,o),u=r.apply(this,o);if(k||(k=m=ct()),t(k,+l.apply(this,(o[0]=i,o)),+f.apply(this,o),+l.apply(this,(o[0]=u,o)),+f.apply(this,o)),m)return k=null,m+""||null}return y.source=function(m){return arguments.length?(n=m,y):n},y.target=function(m){return arguments.length?(r=m,y):r},y.x=function(m){return arguments.length?(l=typeof m=="function"?m:ht(+m),y):l},y.y=function(m){return arguments.length?(f=typeof m=="function"?m:ht(+m),y):f},y.context=function(m){return arguments.length?(k=m??null,y):k},y}function Qt(t,n,r,l,f){t.moveTo(n,r),t.bezierCurveTo(n=(n+l)/2,r,n,f,l,f)}function dt(){return Kt(Qt)}function Jt(t){return[t.source.x1,t.y0]}function Zt(t){return[t.target.x0,t.y1]}function pt(){return dt().source(Jt).target(Zt)}var Je=kt(Vt(),1),Ze=kt(Wt(),1);var yt=function(){var t=function(m,o,i,u){for(i=i||{},u=m.length;u--;i[m[u]]=o);return i},n=[1,9],r=[1,10],l=[1,5,10,12],f={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(o,i,u,g,b,d,_){var A=d.length-1;switch(b){case 7:let L=g.findOrCreateNode(d[A-4].trim().replaceAll('""','"')),E=g.findOrCreateNode(d[A-2].trim().replaceAll('""','"')),M=parseFloat(d[A].trim());g.addLink(L,E,M);break;case 8:case 9:case 11:this.$=d[A];break;case 10:this.$=d[A-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:r},{1:[2,6],7:11,10:[1,12]},t(r,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(l,[2,8]),t(l,[2,9]),{19:[1,16]},t(l,[2,11]),{1:[2,1]},{1:[2,5]},t(r,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:r},{15:18,16:7,17:8,18:n,20:r},{18:[1,19]},t(r,[2,3]),{12:[1,20]},t(l,[2,10]),{15:21,16:7,17:8,18:n,20:r},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(o,i){if(i.recoverable)this.trace(o);else{var u=new Error(o);throw u.hash=i,u}},parse:function(o){var i=this,u=[0],g=[],b=[null],d=[],_=this.table,A="",L=0,E=0,M=2,N=1,z=d.slice.call(arguments,1),w=Object.create(this.lexer),C={yy:{}};for(var R in this.yy)Object.prototype.hasOwnProperty.call(this.yy,R)&&(C.yy[R]=this.yy[R]);w.setInput(o,C.yy),C.yy.lexer=w,C.yy.parser=this,typeof w.yylloc>"u"&&(w.yylloc={});var O=w.yylloc;d.push(O);var I=w.options&&w.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function p(){var v;return v=g.pop()||w.lex()||N,typeof v!="number"&&(v instanceof Array&&(g=v,v=g.pop()),v=i.symbols_[v]||v),v}for(var S,P,T,U,e={},h,a,c,s;;){if(P=u[u.length-1],this.defaultActions[P]?T=this.defaultActions[P]:((S===null||typeof S>"u")&&(S=p()),T=_[P]&&_[P][S]),typeof T>"u"||!T.length||!T[0]){var x="";s=[];for(h in _[P])this.terminals_[h]&&h>M&&s.push("'"+this.terminals_[h]+"'");w.showPosition?x="Parse error on line "+(L+1)+`: +`+w.showPosition()+` +Expecting `+s.join(", ")+", got '"+(this.terminals_[S]||S)+"'":x="Parse error on line "+(L+1)+": Unexpected "+(S==N?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(x,{text:w.match,token:this.terminals_[S]||S,line:w.yylineno,loc:O,expected:s})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+S);switch(T[0]){case 1:u.push(S),b.push(w.yytext),d.push(w.yylloc),u.push(T[1]),S=null,E=w.yyleng,A=w.yytext,L=w.yylineno,O=w.yylloc;break;case 2:if(a=this.productions_[T[1]][1],e.$=b[b.length-a],e._$={first_line:d[d.length-(a||1)].first_line,last_line:d[d.length-1].last_line,first_column:d[d.length-(a||1)].first_column,last_column:d[d.length-1].last_column},I&&(e._$.range=[d[d.length-(a||1)].range[0],d[d.length-1].range[1]]),U=this.performAction.apply(e,[A,E,L,C.yy,T[1],b,d].concat(z)),typeof U<"u")return U;a&&(u=u.slice(0,-1*a*2),b=b.slice(0,-1*a),d=d.slice(0,-1*a)),u.push(this.productions_[T[1]][0]),b.push(e.$),d.push(e._$),c=_[u[u.length-2]][u[u.length-1]],u.push(c);break;case 3:return!0}}return!0}},k=function(){var m={EOF:1,parseError:function(i,u){if(this.yy.parser)this.yy.parser.parseError(i,u);else throw new Error(i)},setInput:function(o,i){return this.yy=i||this.yy||{},this._input=o,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 o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var i=o.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},unput:function(o){var i=o.length,u=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var g=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 b=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===g.length?this.yylloc.first_column:0)+g[g.length-u.length].length-u[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-i]),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(o){this.unput(this.match.slice(o))},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),i=new Array(o.length+1).join("-");return o+this.upcomingInput()+` +`+i+"^"},test_match:function(o,i){var u,g,b;if(this.options.backtrack_lexer&&(b={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&&(b.yylloc.range=this.yylloc.range.slice(0))),g=o[0].match(/(?:\r\n?|\n).*/g),g&&(this.yylineno+=g.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-g[g.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,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(o[0].length),this.matched+=o[0],u=this.performAction.call(this,this.yy,this,i,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),u)return u;if(this._backtrack){for(var d in b)this[d]=b[d];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,i,u,g;this._more||(this.yytext="",this.match="");for(var b=this._currentRules(),d=0;di[0].length)){if(i=u,g=d,this.options.backtrack_lexer){if(o=this.test_match(u,b[d]),o!==!1)return o;if(this._backtrack){i=!1;continue}else return!1}else if(!this.options.flex)break}return i?(o=this.test_match(i,b[g]),o!==!1?o:!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 i=this.next();return i||this.lex()},begin:function(i){this.conditionStack.push(i)},popState:function(){var i=this.conditionStack.length-1;return i>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(i){return i=this.conditionStack.length-1-Math.abs(i||0),i>=0?this.conditionStack[i]:"INITIAL"},pushState:function(i){this.begin(i)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(i,u,g,b){switch(g){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 m}();f.lexer=k;function y(){this.yy={}}return y.prototype=f,f.Parser=y,new y}();yt.parser=yt;var tt=yt,et=[],nt=[],W={},te=()=>{et=[],nt=[],W={},wt()},mt=class{constructor(n,r,l=0){this.source=n,this.target=r,this.value=l}},ee=(t,n,r)=>{et.push(new mt(t,n,r))},gt=class{constructor(n){this.ID=n}},ne=t=>(t=bt.sanitizeText(t,Q()),W[t]||(W[t]=new gt(t),nt.push(W[t])),W[t]),re=()=>nt,oe=()=>et,se=()=>({nodes:nt.map(t=>({id:t.ID})),links:et.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),ie={nodesMap:W,getConfig:()=>Q().sankey,getNodes:re,getLinks:oe,getGraph:se,addLink:ee,findOrCreateNode:ne,getAccTitle:At,setAccTitle:Lt,getAccDescription:Tt,setAccDescription:Et,getDiagramTitle:Mt,setDiagramTitle:Ct,clear:te},ae=(()=>{let t=class xt{static next(r){return new xt(r+ ++xt.count)}constructor(r){this.id=r,this.href=`#${r}`}toString(){return"url("+this.href+")"}};return t.count=0,t})(),Bt=ae,le={left:ot,right:st,center:it,justify:K},ue=function(t,n,r,l){let{securityLevel:f,sankey:k}=Q(),y=Ot.sankey,m;f==="sandbox"&&(m=X("#i"+n));let o=f==="sandbox"?X(m.nodes()[0].contentDocument.body):X("body"),i=f==="sandbox"?o.select(`[id="${n}"]`):X(`[id="${n}"]`),u=k?.width??y.width,g=k?.height??y.width,b=k?.useMaxWidth??y.useMaxWidth,d=k?.nodeAlignment??y.nodeAlignment,_=k?.prefix??y.prefix,A=k?.suffix??y.suffix,L=k?.showValues??y.showValues,E=l.db.getGraph(),M=le[d];Z().nodeId(p=>p.id).nodeWidth(10).nodePadding(10+(L?15:0)).nodeAlign(M).extent([[0,0],[u,g]])(E);let w=_t(vt);i.append("g").attr("class","nodes").selectAll(".node").data(E.nodes).join("g").attr("class","node").attr("id",p=>(p.uid=Bt.next("node-")).id).attr("transform",function(p){return"translate("+p.x0+","+p.y0+")"}).attr("x",p=>p.x0).attr("y",p=>p.y0).append("rect").attr("height",p=>p.y1-p.y0).attr("width",p=>p.x1-p.x0).attr("fill",p=>w(p.id));let C=({id:p,value:S})=>L?`${p} +${_}${Math.round(S*100)/100}${A}`:p;i.append("g").attr("class","node-labels").attr("font-family","sans-serif").attr("font-size",14).selectAll("text").data(E.nodes).join("text").attr("x",p=>p.x0(p.y1+p.y0)/2).attr("dy",`${L?"0":"0.35"}em`).attr("text-anchor",p=>p.x0(S.uid=Bt.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",S=>S.source.x1).attr("x2",S=>S.target.x0);p.append("stop").attr("offset","0%").attr("stop-color",S=>w(S.source.id)),p.append("stop").attr("offset","100%").attr("stop-color",S=>w(S.target.id))}let I;switch(O){case"gradient":I=p=>p.uid;break;case"source":I=p=>w(p.source.id);break;case"target":I=p=>w(p.target.id);break;default:I=O}R.append("path").attr("d",pt()).attr("stroke",I).attr("stroke-width",p=>Math.max(1,p.width)),St(void 0,i,0,b)},fe={draw:ue},ce=t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,` +`).trim(),he=tt.parse.bind(tt);tt.parse=t=>he(ce(t));var en={parser:tt,db:ie,renderer:fe};export{en as diagram}; diff --git a/chunk-6KTFR5ZY.js b/chunk-6KTFR5ZY.js new file mode 100644 index 0000000..a045667 --- /dev/null +++ b/chunk-6KTFR5ZY.js @@ -0,0 +1,6 @@ +import{a as _}from"./chunk-YTBHK5E4.js";import{a as L}from"./chunk-L4YHDAK7.js";import"./chunk-WEP4G4BU.js";import{a as F,b as k}from"./chunk-NQCIMNAB.js";import{o as z,q as H}from"./chunk-ZCY2UNJH.js";import{S as Z,a as y}from"./chunk-FNBE65Q7.js";import{Ba as l,Ha as T,I as x,Ia as E,O as R,Qb as G,Ra as g,S as s,Tb as O,U as a,bb as u,cb as h,db as f,ha as c,ia as V,m as S,n as w,nb as q,ob as d,va as M,wa as A,x as I}from"./chunk-FUUZABHH.js";import{a as N,b,h as j}from"./chunk-TWZW5B45.js";var B=j(Z());var m=class t{http=s(O);getSVG(o){return this.http.get(o,{responseType:"text"}).pipe(I(()=>S(null)),w(e=>{if(!e){let r=` + + + + `,P=document.createElement("div");return P.innerHTML=r,P.querySelector("svg")}let n=document.createElement("div");return n.innerHTML=e,n.querySelector("svg")}))}static \u0275fac=function(e){return new(e||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})};var $="/icons",p=class t{name=c.required();alt=c("icon");size=c("1.5rem");aspectRatio=c("1 / 1");color=c("currentColor");triggerSubscription=k(this.name).pipe(x(o=>this.fileService.getSVG(`${$}/${o}.svg`)),F()).subscribe(o=>this.renderSvg(o));el=s(V);fileService=s(m);renderer=s(M);renderSvg(o){let e=o?.querySelector("svg");e&&(this.renderer.setAttribute(e,"width",this.size()),this.renderer.setAttribute(e,"height",this.size())),this.renderer.appendChild(this.el.nativeElement,o)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=a({type:t,selectors:[["lib-icon"]],hostVars:4,hostBindings:function(e,n){e&2&&E("width",n.size())("aspect-ratio",n.aspectRatio())},inputs:{name:[1,"name"],alt:[1,"alt"],size:[1,"size"],aspectRatio:[1,"aspectRatio"],color:[1,"color"]},standalone:!0,features:[d],decls:0,vars:0,template:function(e,n){},styles:["[_nghost-%COMP%] svg[_ngcontent-%COMP%]{fill:currentColor;width:100%;height:100%}"],changeDetection:0})};var J={title:"Icon",mdFile:"./index.md",playgrounds:{IconPlayground:{target:p,template:""}},category:_},i=J;var C=class t extends H{static selector="lib-icon";playground;viewContainerRef;configData=i.playgrounds.IconPlayground.data;constructor(){super(i.playgrounds.IconPlayground.target)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=a({type:t,selectors:[["ng-doc-playground-1"]],viewQuery:function(e,n){if(e&1&&(u(i.playgrounds.IconPlayground.target,7),u(i.playgrounds.IconPlayground.target,7,A)),e&2){let r;h(r=f())&&(n.playground=r.first),h(r=f())&&(n.viewContainerRef=r.first)}},standalone:!0,features:[l,d],decls:1,vars:5,consts:[[3,"name","alt","size","aspectRatio","color"]],template:function(e,n){e&1&&g(0,"lib-icon",0),e&2&&T("name",n.properties.name)("alt",n.properties.alt)("size",n.properties.size)("aspectRatio",n.properties.aspectRatio)("color",n.properties.color)},dependencies:[G,p],encapsulation:2,changeDetection:0})};var U=[z("IconPlayground",C)];var K={},Y=K;var X=`

Simple component to display an icon as SVG tag from an svg file located in your assets/icons folder.

Pre requirements

In order to use this component in your application, you must follow these steps:

Create assets/icons folder

In this folder, you can add all SVG required for your UI. You can also creates sub-folders but be aware, you'll need to format name as folderName/fileName.

Note: With this component, you can control the fill of the SVG by adding some color of the component (works by inheritance).

Import FileService

This service helps working with files in general but this component requires getSVG() method. Simply copy paste this service or get isolated method.

That's it \u{1F389}

You can now start importing this component in your application !

  • Ensure that the SVG files in the assets/icons folder are properly named and formatted.
  • The name input should match the file name of the SVG without the .svg extension.

By following these guidelines, you can effectively use the lib-icon component in your Angular application.

Playground \u{1F579}\uFE0F

lib-icon
{"name":{"inputName":"name","type":"string","description":"<p>Name of the icon. +(must match the filename located in assets/icons folder, without extension .svg)</p>","options":[]},"alt":{"inputName":"alt","type":"string","description":"<p>Alternative text to be displayed when the icon is not available</p>","options":[]},"size":{"inputName":"size","type":"string","description":"<p>Size of the icon (must include css unit)</p>","options":[]},"aspectRatio":{"inputName":"aspectRatio","type":"string","description":"<p>Aspect ratio of the icon (must match css aspect-ratio property)</p>","options":[]},"color":{"inputName":"color","type":"string","description":"<p>Color of the icon (must match css aspect-ratio property)</p>","options":[]}}
{}
`,D=class t extends y{pageType="guide";pageContent=X;page=i;demoAssets=Y;constructor(){super()}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=a({type:t,selectors:[["ng-doc-page-fcd6qacc"]],standalone:!0,features:[q([{provide:y,useExisting:t},U,i.providers??[]]),l,d],decls:1,vars:0,template:function(e,n){e&1&&g(0,"ng-doc-page")},dependencies:[L],encapsulation:2,changeDetection:0})},ee=[b(N({},(0,B.isRoute)(i.route)?i.route:{}),{path:"",component:D,title:"Icon"})],Ee=ee;export{D as PageComponent,Ee as default}; diff --git a/chunk-6YPOPMS4.js b/chunk-6YPOPMS4.js new file mode 100644 index 0000000..e1e28b6 --- /dev/null +++ b/chunk-6YPOPMS4.js @@ -0,0 +1,100 @@ +import{b as es}from"./chunk-5RSCYRGJ.js";import{Fa as Wt,Ha as jr,L as Qi,M as Ji,N as ji,Pa as ea,Za as ts,b as ml,c as bl,db as rs,h as Zi,mb as Fa,qb as as}from"./chunk-2YKPSI5H.js";import{f as Fn,h as Gn,j as Ki}from"./chunk-TWZW5B45.js";var zi=Fn((Ra,Gi)=>{"use strict";(function(e,r){typeof Ra=="object"&&typeof Gi=="object"?Gi.exports=r():typeof define=="function"&&define.amd?define([],r):typeof Ra=="object"?Ra.layoutBase=r():e.layoutBase=r()})(Ra,function(){return function(t){var e={};function r(a){if(e[a])return e[a].exports;var n=e[a]={i:a,l:!1,exports:{}};return t[a].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=t,r.c=e,r.i=function(a){return a},r.d=function(a,n,i){r.o(a,n)||Object.defineProperty(a,n,{configurable:!1,enumerable:!0,get:i})},r.n=function(a){var n=a&&a.__esModule?function(){return a.default}:function(){return a};return r.d(n,"a",n),n},r.o=function(a,n){return Object.prototype.hasOwnProperty.call(a,n)},r.p="",r(r.s=26)}([function(t,e,r){"use strict";function a(){}a.QUALITY=1,a.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,a.DEFAULT_INCREMENTAL=!1,a.DEFAULT_ANIMATION_ON_LAYOUT=!0,a.DEFAULT_ANIMATION_DURING_LAYOUT=!1,a.DEFAULT_ANIMATION_PERIOD=50,a.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,a.DEFAULT_GRAPH_MARGIN=15,a.NODE_DIMENSIONS_INCLUDE_LABELS=!1,a.SIMPLE_NODE_SIZE=40,a.SIMPLE_NODE_HALF_SIZE=a.SIMPLE_NODE_SIZE/2,a.EMPTY_COMPOUND_NODE_SIZE=40,a.MIN_EDGE_LENGTH=1,a.WORLD_BOUNDARY=1e6,a.INITIAL_WORLD_BOUNDARY=a.WORLD_BOUNDARY/1e3,a.WORLD_CENTER_X=1200,a.WORLD_CENTER_Y=900,t.exports=a},function(t,e,r){"use strict";var a=r(2),n=r(8),i=r(9);function s(l,u,f){a.call(this,f),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=f,this.bendpoints=[],this.source=l,this.target=u}s.prototype=Object.create(a.prototype);for(var o in a)s[o]=a[o];s.prototype.getSource=function(){return this.source},s.prototype.getTarget=function(){return this.target},s.prototype.isInterGraph=function(){return this.isInterGraph},s.prototype.getLength=function(){return this.length},s.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},s.prototype.getBendpoints=function(){return this.bendpoints},s.prototype.getLca=function(){return this.lca},s.prototype.getSourceInLca=function(){return this.sourceInLca},s.prototype.getTargetInLca=function(){return this.targetInLca},s.prototype.getOtherEnd=function(l){if(this.source===l)return this.target;if(this.target===l)return this.source;throw"Node is not incident with this edge"},s.prototype.getOtherEndInGraph=function(l,u){for(var f=this.getOtherEnd(l),h=u.getGraphManager().getRoot();;){if(f.getOwner()==u)return f;if(f.getOwner()==h)break;f=f.getOwner().getParent()}return null},s.prototype.updateLength=function(){var l=new Array(4);this.isOverlapingSourceAndTarget=n.getIntersection(this.target.getRect(),this.source.getRect(),l),this.isOverlapingSourceAndTarget||(this.lengthX=l[0]-l[2],this.lengthY=l[1]-l[3],Math.abs(this.lengthX)<1&&(this.lengthX=i.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=i.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},s.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=i.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=i.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},t.exports=s},function(t,e,r){"use strict";function a(n){this.vGraphObject=n}t.exports=a},function(t,e,r){"use strict";var a=r(2),n=r(10),i=r(13),s=r(0),o=r(16),l=r(4);function u(h,c,v,d){v==null&&d==null&&(d=c),a.call(this,d),h.graphManager!=null&&(h=h.graphManager),this.estimatedSize=n.MIN_VALUE,this.inclusionTreeDepth=n.MAX_VALUE,this.vGraphObject=d,this.edges=[],this.graphManager=h,v!=null&&c!=null?this.rect=new i(c.x,c.y,v.width,v.height):this.rect=new i}u.prototype=Object.create(a.prototype);for(var f in a)u[f]=a[f];u.prototype.getEdges=function(){return this.edges},u.prototype.getChild=function(){return this.child},u.prototype.getOwner=function(){return this.owner},u.prototype.getWidth=function(){return this.rect.width},u.prototype.setWidth=function(h){this.rect.width=h},u.prototype.getHeight=function(){return this.rect.height},u.prototype.setHeight=function(h){this.rect.height=h},u.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},u.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},u.prototype.getCenter=function(){return new l(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},u.prototype.getLocation=function(){return new l(this.rect.x,this.rect.y)},u.prototype.getRect=function(){return this.rect},u.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},u.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},u.prototype.setRect=function(h,c){this.rect.x=h.x,this.rect.y=h.y,this.rect.width=c.width,this.rect.height=c.height},u.prototype.setCenter=function(h,c){this.rect.x=h-this.rect.width/2,this.rect.y=c-this.rect.height/2},u.prototype.setLocation=function(h,c){this.rect.x=h,this.rect.y=c},u.prototype.moveBy=function(h,c){this.rect.x+=h,this.rect.y+=c},u.prototype.getEdgeListToNode=function(h){var c=[],v,d=this;return d.edges.forEach(function(y){if(y.target==h){if(y.source!=d)throw"Incorrect edge source!";c.push(y)}}),c},u.prototype.getEdgesBetween=function(h){var c=[],v,d=this;return d.edges.forEach(function(y){if(!(y.source==d||y.target==d))throw"Incorrect edge source and/or target";(y.target==h||y.source==h)&&c.push(y)}),c},u.prototype.getNeighborsList=function(){var h=new Set,c=this;return c.edges.forEach(function(v){if(v.source==c)h.add(v.target);else{if(v.target!=c)throw"Incorrect incidency!";h.add(v.source)}}),h},u.prototype.withChildren=function(){var h=new Set,c,v;if(h.add(this),this.child!=null)for(var d=this.child.getNodes(),y=0;yc&&(this.rect.x-=(this.labelWidth-c)/2,this.setWidth(this.labelWidth)),this.labelHeight>v&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-v)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-v),this.setHeight(this.labelHeight))}}},u.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==n.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},u.prototype.transform=function(h){var c=this.rect.x;c>s.WORLD_BOUNDARY?c=s.WORLD_BOUNDARY:c<-s.WORLD_BOUNDARY&&(c=-s.WORLD_BOUNDARY);var v=this.rect.y;v>s.WORLD_BOUNDARY?v=s.WORLD_BOUNDARY:v<-s.WORLD_BOUNDARY&&(v=-s.WORLD_BOUNDARY);var d=new l(c,v),y=h.inverseTransformPoint(d);this.setLocation(y.x,y.y)},u.prototype.getLeft=function(){return this.rect.x},u.prototype.getRight=function(){return this.rect.x+this.rect.width},u.prototype.getTop=function(){return this.rect.y},u.prototype.getBottom=function(){return this.rect.y+this.rect.height},u.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},t.exports=u},function(t,e,r){"use strict";function a(n,i){n==null&&i==null?(this.x=0,this.y=0):(this.x=n,this.y=i)}a.prototype.getX=function(){return this.x},a.prototype.getY=function(){return this.y},a.prototype.setX=function(n){this.x=n},a.prototype.setY=function(n){this.y=n},a.prototype.getDifference=function(n){return new DimensionD(this.x-n.x,this.y-n.y)},a.prototype.getCopy=function(){return new a(this.x,this.y)},a.prototype.translate=function(n){return this.x+=n.width,this.y+=n.height,this},t.exports=a},function(t,e,r){"use strict";var a=r(2),n=r(10),i=r(0),s=r(6),o=r(3),l=r(1),u=r(13),f=r(12),h=r(11);function c(d,y,p){a.call(this,p),this.estimatedSize=n.MIN_VALUE,this.margin=i.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=d,y!=null&&y instanceof s?this.graphManager=y:y!=null&&y instanceof Layout&&(this.graphManager=y.graphManager)}c.prototype=Object.create(a.prototype);for(var v in a)c[v]=a[v];c.prototype.getNodes=function(){return this.nodes},c.prototype.getEdges=function(){return this.edges},c.prototype.getGraphManager=function(){return this.graphManager},c.prototype.getParent=function(){return this.parent},c.prototype.getLeft=function(){return this.left},c.prototype.getRight=function(){return this.right},c.prototype.getTop=function(){return this.top},c.prototype.getBottom=function(){return this.bottom},c.prototype.isConnected=function(){return this.isConnected},c.prototype.add=function(d,y,p){if(y==null&&p==null){var g=d;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(g)>-1)throw"Node already in graph!";return g.owner=this,this.getNodes().push(g),g}else{var m=d;if(!(this.getNodes().indexOf(y)>-1&&this.getNodes().indexOf(p)>-1))throw"Source or target not in graph!";if(!(y.owner==p.owner&&y.owner==this))throw"Both owners must be this graph!";return y.owner!=p.owner?null:(m.source=y,m.target=p,m.isInterGraph=!1,this.getEdges().push(m),y.edges.push(m),p!=y&&p.edges.push(m),m)}},c.prototype.remove=function(d){var y=d;if(d instanceof o){if(y==null)throw"Node is null!";if(!(y.owner!=null&&y.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var p=y.edges.slice(),g,m=p.length,b=0;b-1&&w>-1))throw"Source and/or target doesn't know this edge!";g.source.edges.splice(E,1),g.target!=g.source&&g.target.edges.splice(w,1);var C=g.source.owner.getEdges().indexOf(g);if(C==-1)throw"Not in owner's edge list!";g.source.owner.getEdges().splice(C,1)}},c.prototype.updateLeftTop=function(){for(var d=n.MAX_VALUE,y=n.MAX_VALUE,p,g,m,b=this.getNodes(),C=b.length,E=0;Ep&&(d=p),y>g&&(y=g)}return d==n.MAX_VALUE?null:(b[0].getParent().paddingLeft!=null?m=b[0].getParent().paddingLeft:m=this.margin,this.left=y-m,this.top=d-m,new f(this.left,this.top))},c.prototype.updateBounds=function(d){for(var y=n.MAX_VALUE,p=-n.MAX_VALUE,g=n.MAX_VALUE,m=-n.MAX_VALUE,b,C,E,w,x,T=this.nodes,D=T.length,S=0;Sb&&(y=b),pE&&(g=E),mb&&(y=b),pE&&(g=E),m=this.nodes.length){var D=0;p.forEach(function(S){S.owner==d&&D++}),D==this.nodes.length&&(this.isConnected=!0)}},t.exports=c},function(t,e,r){"use strict";var a,n=r(1);function i(s){a=r(5),this.layout=s,this.graphs=[],this.edges=[]}i.prototype.addRoot=function(){var s=this.layout.newGraph(),o=this.layout.newNode(null),l=this.add(s,o);return this.setRootGraph(l),this.rootGraph},i.prototype.add=function(s,o,l,u,f){if(l==null&&u==null&&f==null){if(s==null)throw"Graph is null!";if(o==null)throw"Parent node is null!";if(this.graphs.indexOf(s)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(s),s.parent!=null)throw"Already has a parent!";if(o.child!=null)throw"Already has a child!";return s.parent=o,o.child=s,s}else{f=l,u=o,l=s;var h=u.getOwner(),c=f.getOwner();if(!(h!=null&&h.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(c!=null&&c.getGraphManager()==this))throw"Target not in this graph mgr!";if(h==c)return l.isInterGraph=!1,h.add(l,u,f);if(l.isInterGraph=!0,l.source=u,l.target=f,this.edges.indexOf(l)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(l),!(l.source!=null&&l.target!=null))throw"Edge source and/or target is null!";if(!(l.source.edges.indexOf(l)==-1&&l.target.edges.indexOf(l)==-1))throw"Edge already in source and/or target incidency list!";return l.source.edges.push(l),l.target.edges.push(l),l}},i.prototype.remove=function(s){if(s instanceof a){var o=s;if(o.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(o==this.rootGraph||o.parent!=null&&o.parent.graphManager==this))throw"Invalid parent node!";var l=[];l=l.concat(o.getEdges());for(var u,f=l.length,h=0;h=s.getRight()?o[0]+=Math.min(s.getX()-i.getX(),i.getRight()-s.getRight()):s.getX()<=i.getX()&&s.getRight()>=i.getRight()&&(o[0]+=Math.min(i.getX()-s.getX(),s.getRight()-i.getRight())),i.getY()<=s.getY()&&i.getBottom()>=s.getBottom()?o[1]+=Math.min(s.getY()-i.getY(),i.getBottom()-s.getBottom()):s.getY()<=i.getY()&&s.getBottom()>=i.getBottom()&&(o[1]+=Math.min(i.getY()-s.getY(),s.getBottom()-i.getBottom()));var f=Math.abs((s.getCenterY()-i.getCenterY())/(s.getCenterX()-i.getCenterX()));s.getCenterY()===i.getCenterY()&&s.getCenterX()===i.getCenterX()&&(f=1);var h=f*o[0],c=o[1]/f;o[0]h)return o[0]=l,o[1]=v,o[2]=f,o[3]=T,!1;if(uf)return o[0]=c,o[1]=u,o[2]=w,o[3]=h,!1;if(lf?(o[0]=y,o[1]=p,L=!0):(o[0]=d,o[1]=v,L=!0):O===R&&(l>f?(o[0]=c,o[1]=v,L=!0):(o[0]=g,o[1]=p,L=!0)),-k===R?f>l?(o[2]=x,o[3]=T,I=!0):(o[2]=w,o[3]=E,I=!0):k===R&&(f>l?(o[2]=C,o[3]=E,I=!0):(o[2]=D,o[3]=T,I=!0)),L&&I)return!1;if(l>f?u>h?(M=this.getCardinalDirection(O,R,4),P=this.getCardinalDirection(k,R,2)):(M=this.getCardinalDirection(-O,R,3),P=this.getCardinalDirection(-k,R,1)):u>h?(M=this.getCardinalDirection(-O,R,1),P=this.getCardinalDirection(-k,R,3)):(M=this.getCardinalDirection(O,R,2),P=this.getCardinalDirection(k,R,4)),!L)switch(M){case 1:V=v,F=l+-b/R,o[0]=F,o[1]=V;break;case 2:F=g,V=u+m*R,o[0]=F,o[1]=V;break;case 3:V=p,F=l+b/R,o[0]=F,o[1]=V;break;case 4:F=y,V=u+-m*R,o[0]=F,o[1]=V;break}if(!I)switch(P){case 1:B=E,G=f+-A/R,o[2]=G,o[3]=B;break;case 2:G=D,B=h+S*R,o[2]=G,o[3]=B;break;case 3:B=T,G=f+A/R,o[2]=G,o[3]=B;break;case 4:G=x,B=h+-S*R,o[2]=G,o[3]=B;break}}return!1},n.getCardinalDirection=function(i,s,o){return i>s?o:1+o%4},n.getIntersection=function(i,s,o,l){if(l==null)return this.getIntersection2(i,s,o);var u=i.x,f=i.y,h=s.x,c=s.y,v=o.x,d=o.y,y=l.x,p=l.y,g=void 0,m=void 0,b=void 0,C=void 0,E=void 0,w=void 0,x=void 0,T=void 0,D=void 0;return b=c-f,E=u-h,x=h*f-u*c,C=p-d,w=v-y,T=y*d-v*p,D=b*w-C*E,D===0?null:(g=(E*T-w*x)/D,m=(C*x-b*T)/D,new a(g,m))},n.angleOfVector=function(i,s,o,l){var u=void 0;return i!==o?(u=Math.atan((l-s)/(o-i)),o0?1:n<0?-1:0},a.floor=function(n){return n<0?Math.ceil(n):Math.floor(n)},a.ceil=function(n){return n<0?Math.floor(n):Math.ceil(n)},t.exports=a},function(t,e,r){"use strict";function a(){}a.MAX_VALUE=2147483647,a.MIN_VALUE=-2147483648,t.exports=a},function(t,e,r){"use strict";var a=function(){function u(f,h){for(var c=0;c"u"?"undefined":a(i);return i==null||s!="object"&&s!="function"},t.exports=n},function(t,e,r){"use strict";function a(v){if(Array.isArray(v)){for(var d=0,y=Array(v.length);d0&&d;){for(b.push(E[0]);b.length>0&&d;){var w=b[0];b.splice(0,1),m.add(w);for(var x=w.getEdges(),g=0;g-1&&E.splice(A,1)}m=new Set,C=new Map}}return v},c.prototype.createDummyNodesForBendpoints=function(v){for(var d=[],y=v.source,p=this.graphManager.calcLowestCommonAncestor(v.source,v.target),g=0;g0){for(var p=this.edgeToDummyNodes.get(y),g=0;g=0&&d.splice(T,1);var D=C.getNeighborsList();D.forEach(function(L){if(y.indexOf(L)<0){var I=p.get(L),O=I-1;O==1&&w.push(L),p.set(L,O)}})}y=y.concat(w),(d.length==1||d.length==2)&&(g=!0,m=d[0])}return m},c.prototype.setGraphManager=function(v){this.graphManager=v},t.exports=c},function(t,e,r){"use strict";function a(){}a.seed=1,a.x=0,a.nextDouble=function(){return a.x=Math.sin(a.seed++)*1e4,a.x-Math.floor(a.x)},t.exports=a},function(t,e,r){"use strict";var a=r(4);function n(i,s){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}n.prototype.getWorldOrgX=function(){return this.lworldOrgX},n.prototype.setWorldOrgX=function(i){this.lworldOrgX=i},n.prototype.getWorldOrgY=function(){return this.lworldOrgY},n.prototype.setWorldOrgY=function(i){this.lworldOrgY=i},n.prototype.getWorldExtX=function(){return this.lworldExtX},n.prototype.setWorldExtX=function(i){this.lworldExtX=i},n.prototype.getWorldExtY=function(){return this.lworldExtY},n.prototype.setWorldExtY=function(i){this.lworldExtY=i},n.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},n.prototype.setDeviceOrgX=function(i){this.ldeviceOrgX=i},n.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},n.prototype.setDeviceOrgY=function(i){this.ldeviceOrgY=i},n.prototype.getDeviceExtX=function(){return this.ldeviceExtX},n.prototype.setDeviceExtX=function(i){this.ldeviceExtX=i},n.prototype.getDeviceExtY=function(){return this.ldeviceExtY},n.prototype.setDeviceExtY=function(i){this.ldeviceExtY=i},n.prototype.transformX=function(i){var s=0,o=this.lworldExtX;return o!=0&&(s=this.ldeviceOrgX+(i-this.lworldOrgX)*this.ldeviceExtX/o),s},n.prototype.transformY=function(i){var s=0,o=this.lworldExtY;return o!=0&&(s=this.ldeviceOrgY+(i-this.lworldOrgY)*this.ldeviceExtY/o),s},n.prototype.inverseTransformX=function(i){var s=0,o=this.ldeviceExtX;return o!=0&&(s=this.lworldOrgX+(i-this.ldeviceOrgX)*this.lworldExtX/o),s},n.prototype.inverseTransformY=function(i){var s=0,o=this.ldeviceExtY;return o!=0&&(s=this.lworldOrgY+(i-this.ldeviceOrgY)*this.lworldExtY/o),s},n.prototype.inverseTransformPoint=function(i){var s=new a(this.inverseTransformX(i.x),this.inverseTransformY(i.y));return s},t.exports=n},function(t,e,r){"use strict";function a(h){if(Array.isArray(h)){for(var c=0,v=Array(h.length);ci.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*i.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(h-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-i.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT_INCREMENTAL):(h>i.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(i.COOLING_ADAPTATION_FACTOR,1-(h-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*(1-i.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},u.prototype.calcSpringForces=function(){for(var h=this.getAllEdges(),c,v=0;v0&&arguments[0]!==void 0?arguments[0]:!0,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v,d,y,p,g=this.getAllNodes(),m;if(this.useFRGridVariant)for(this.totalIterations%i.GRID_CALCULATION_CHECK_PERIOD==1&&h&&this.updateGrid(),m=new Set,v=0;vb||m>b)&&(h.gravitationForceX=-this.gravityConstant*y,h.gravitationForceY=-this.gravityConstant*p)):(b=c.getEstimatedSize()*this.compoundGravityRangeFactor,(g>b||m>b)&&(h.gravitationForceX=-this.gravityConstant*y*this.compoundGravityConstant,h.gravitationForceY=-this.gravityConstant*p*this.compoundGravityConstant))},u.prototype.isConverged=function(){var h,c=!1;return this.totalIterations>this.maxIterations/3&&(c=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),h=this.totalDisplacement=g.length||b>=g[0].length)){for(var C=0;Cu}}]),o}();t.exports=s},function(t,e,r){"use strict";var a=function(){function s(o,l){for(var u=0;u2&&arguments[2]!==void 0?arguments[2]:1,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;n(this,s),this.sequence1=o,this.sequence2=l,this.match_score=u,this.mismatch_penalty=f,this.gap_penalty=h,this.iMax=o.length+1,this.jMax=l.length+1,this.grid=new Array(this.iMax);for(var c=0;c=0;o--){var l=this.listeners[o];l.event===i&&l.callback===s&&this.listeners.splice(o,1)}},n.emit=function(i,s){for(var o=0;o{"use strict";(function(e,r){typeof ka=="object"&&typeof Vi=="object"?Vi.exports=r(zi()):typeof define=="function"&&define.amd?define(["layout-base"],r):typeof ka=="object"?ka.coseBase=r(zi()):e.coseBase=r(e.layoutBase)})(ka,function(t){return function(e){var r={};function a(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,a),i.l=!0,i.exports}return a.m=e,a.c=r,a.i=function(n){return n},a.d=function(n,i,s){a.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:s})},a.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return a.d(i,"a",i),i},a.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},a.p="",a(a.s=7)}([function(e,r){e.exports=t},function(e,r,a){"use strict";var n=a(0).FDLayoutConstants;function i(){}for(var s in n)i[s]=n[s];i.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,i.DEFAULT_RADIAL_SEPARATION=n.DEFAULT_EDGE_LENGTH,i.DEFAULT_COMPONENT_SEPERATION=60,i.TILE=!0,i.TILING_PADDING_VERTICAL=10,i.TILING_PADDING_HORIZONTAL=10,i.TREE_REDUCTION_ON_INCREMENTAL=!1,e.exports=i},function(e,r,a){"use strict";var n=a(0).FDLayoutEdge;function i(o,l,u){n.call(this,o,l,u)}i.prototype=Object.create(n.prototype);for(var s in n)i[s]=n[s];e.exports=i},function(e,r,a){"use strict";var n=a(0).LGraph;function i(o,l,u){n.call(this,o,l,u)}i.prototype=Object.create(n.prototype);for(var s in n)i[s]=n[s];e.exports=i},function(e,r,a){"use strict";var n=a(0).LGraphManager;function i(o){n.call(this,o)}i.prototype=Object.create(n.prototype);for(var s in n)i[s]=n[s];e.exports=i},function(e,r,a){"use strict";var n=a(0).FDLayoutNode,i=a(0).IMath;function s(l,u,f,h){n.call(this,l,u,f,h)}s.prototype=Object.create(n.prototype);for(var o in n)s[o]=n[o];s.prototype.move=function(){var l=this.graphManager.getLayout();this.displacementX=l.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=l.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>l.coolingFactor*l.maxNodeDisplacement&&(this.displacementX=l.coolingFactor*l.maxNodeDisplacement*i.sign(this.displacementX)),Math.abs(this.displacementY)>l.coolingFactor*l.maxNodeDisplacement&&(this.displacementY=l.coolingFactor*l.maxNodeDisplacement*i.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),l.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},s.prototype.propogateDisplacementToChildren=function(l,u){for(var f=this.getChild().getNodes(),h,c=0;c0)this.positionNodesRadially(E);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var w=new Set(this.getAllNodes()),x=this.nodesWithGravity.filter(function(T){return w.has(T)});this.graphManager.setAllNodesToApplyGravitation(x),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},b.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%f.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 E=new Set(this.getAllNodes()),w=this.nodesWithGravity.filter(function(D){return E.has(D)});this.graphManager.setAllNodesToApplyGravitation(w),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=f.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=f.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var x=!this.isTreeGrowing&&!this.isGrowthFinished,T=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(x,T),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},b.prototype.getPositionsData=function(){for(var E=this.graphManager.getAllNodes(),w={},x=0;x1){var L;for(L=0;LT&&(T=Math.floor(A.y)),S=Math.floor(A.x+u.DEFAULT_COMPONENT_SEPERATION)}this.transform(new v(h.WORLD_CENTER_X-A.x/2,h.WORLD_CENTER_Y-A.y/2))},b.radialLayout=function(E,w,x){var T=Math.max(this.maxDiagonalInTree(E),u.DEFAULT_RADIAL_SEPARATION);b.branchRadialLayout(w,null,0,359,0,T);var D=g.calculateBounds(E),S=new m;S.setDeviceOrgX(D.getMinX()),S.setDeviceOrgY(D.getMinY()),S.setWorldOrgX(x.x),S.setWorldOrgY(x.y);for(var A=0;A1;){var $=B[0];B.splice(0,1);var q=M.indexOf($);q>=0&&M.splice(q,1),V--,P--}w!=null?G=(M.indexOf(B[0])+1)%V:G=0;for(var Z=Math.abs(T-x)/P,W=G;F!=P;W=++W%V){var ee=M[W].getOtherEnd(E);if(ee!=w){var Y=(x+F*Z)%360,z=(Y+Z)%360;b.branchRadialLayout(ee,E,Y,z,D+S,S),F++}}},b.maxDiagonalInTree=function(E){for(var w=y.MIN_VALUE,x=0;xw&&(w=D)}return w},b.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},b.prototype.groupZeroDegreeMembers=function(){var E=this,w={};this.memberGroups={},this.idToDummyNode={};for(var x=[],T=this.graphManager.getAllNodes(),D=0;D"u"&&(w[L]=[]),w[L]=w[L].concat(S)}Object.keys(w).forEach(function(I){if(w[I].length>1){var O="DummyCompound_"+I;E.memberGroups[O]=w[I];var k=w[I][0].getParent(),R=new o(E.graphManager);R.id=O,R.paddingLeft=k.paddingLeft||0,R.paddingRight=k.paddingRight||0,R.paddingBottom=k.paddingBottom||0,R.paddingTop=k.paddingTop||0,E.idToDummyNode[O]=R;var M=E.getGraphManager().add(E.newGraph(),R),P=k.getChild();P.add(R);for(var F=0;F=0;E--){var w=this.compoundOrder[E],x=w.id,T=w.paddingLeft,D=w.paddingTop;this.adjustLocations(this.tiledMemberPack[x],w.rect.x,w.rect.y,T,D)}},b.prototype.repopulateZeroDegreeMembers=function(){var E=this,w=this.tiledZeroDegreePack;Object.keys(w).forEach(function(x){var T=E.idToDummyNode[x],D=T.paddingLeft,S=T.paddingTop;E.adjustLocations(w[x],T.rect.x,T.rect.y,D,S)})},b.prototype.getToBeTiled=function(E){var w=E.id;if(this.toBeTiled[w]!=null)return this.toBeTiled[w];var x=E.getChild();if(x==null)return this.toBeTiled[w]=!1,!1;for(var T=x.getNodes(),D=0;D0)return this.toBeTiled[w]=!1,!1;if(S.getChild()==null){this.toBeTiled[S.id]=!1;continue}if(!this.getToBeTiled(S))return this.toBeTiled[w]=!1,!1}return this.toBeTiled[w]=!0,!0},b.prototype.getNodeDegree=function(E){for(var w=E.id,x=E.getEdges(),T=0,D=0;DI&&(I=k.rect.height)}x+=I+E.verticalPadding}},b.prototype.tileCompoundMembers=function(E,w){var x=this;this.tiledMemberPack=[],Object.keys(E).forEach(function(T){var D=w[T];x.tiledMemberPack[T]=x.tileNodes(E[T],D.paddingLeft+D.paddingRight),D.rect.width=x.tiledMemberPack[T].width,D.rect.height=x.tiledMemberPack[T].height})},b.prototype.tileNodes=function(E,w){var x=u.TILING_PADDING_VERTICAL,T=u.TILING_PADDING_HORIZONTAL,D={rows:[],rowWidth:[],rowHeight:[],width:0,height:w,verticalPadding:x,horizontalPadding:T};E.sort(function(L,I){return L.rect.width*L.rect.height>I.rect.width*I.rect.height?-1:L.rect.width*L.rect.height0&&(A+=E.horizontalPadding),E.rowWidth[x]=A,E.width0&&(L+=E.verticalPadding);var I=0;L>E.rowHeight[x]&&(I=E.rowHeight[x],E.rowHeight[x]=L,I=E.rowHeight[x]-I),E.height+=I,E.rows[x].push(w)},b.prototype.getShortestRowIndex=function(E){for(var w=-1,x=Number.MAX_VALUE,T=0;Tx&&(w=T,x=E.rowWidth[T]);return w},b.prototype.canAddHorizontal=function(E,w,x){var T=this.getShortestRowIndex(E);if(T<0)return!0;var D=E.rowWidth[T];if(D+E.horizontalPadding+w<=E.width)return!0;var S=0;E.rowHeight[T]0&&(S=x+E.verticalPadding-E.rowHeight[T]);var A;E.width-D>=w+E.horizontalPadding?A=(E.height+S)/(D+w+E.horizontalPadding):A=(E.height+S)/E.width,S=x+E.verticalPadding;var L;return E.widthS&&w!=x){T.splice(-1,1),E.rows[x].push(D),E.rowWidth[w]=E.rowWidth[w]-S,E.rowWidth[x]=E.rowWidth[x]+S,E.width=E.rowWidth[instance.getLongestRowIndex(E)];for(var A=Number.MIN_VALUE,L=0;LA&&(A=T[L].height);w>0&&(A+=E.verticalPadding);var I=E.rowHeight[w]+E.rowHeight[x];E.rowHeight[w]=A,E.rowHeight[x]0)for(var P=D;P<=S;P++)M[0]+=this.grid[P][A-1].length+this.grid[P][A].length-1;if(S0)for(var P=A;P<=L;P++)M[3]+=this.grid[D-1][P].length+this.grid[D][P].length-1;for(var F=y.MAX_VALUE,V,G,B=0;B{"use strict";(function(e,r){typeof Pa=="object"&&typeof $i=="object"?$i.exports=r(Ui()):typeof define=="function"&&define.amd?define(["cose-base"],r):typeof Pa=="object"?Pa.cytoscapeCoseBilkent=r(Ui()):e.cytoscapeCoseBilkent=r(e.coseBase)})(Pa,function(t){return function(e){var r={};function a(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,a),i.l=!0,i.exports}return a.m=e,a.c=r,a.i=function(n){return n},a.d=function(n,i,s){a.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:s})},a.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return a.d(i,"a",i),i},a.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},a.p="",a(a.s=1)}([function(e,r){e.exports=t},function(e,r,a){"use strict";var n=a(0).layoutBase.LayoutConstants,i=a(0).layoutBase.FDLayoutConstants,s=a(0).CoSEConstants,o=a(0).CoSELayout,l=a(0).CoSENode,u=a(0).layoutBase.PointD,f=a(0).layoutBase.DimensionD,h={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 c(p,g){var m={};for(var b in p)m[b]=p[b];for(var b in g)m[b]=g[b];return m}function v(p){this.options=c(h,p),d(this.options)}var d=function(g){g.nodeRepulsion!=null&&(s.DEFAULT_REPULSION_STRENGTH=i.DEFAULT_REPULSION_STRENGTH=g.nodeRepulsion),g.idealEdgeLength!=null&&(s.DEFAULT_EDGE_LENGTH=i.DEFAULT_EDGE_LENGTH=g.idealEdgeLength),g.edgeElasticity!=null&&(s.DEFAULT_SPRING_STRENGTH=i.DEFAULT_SPRING_STRENGTH=g.edgeElasticity),g.nestingFactor!=null&&(s.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=g.nestingFactor),g.gravity!=null&&(s.DEFAULT_GRAVITY_STRENGTH=i.DEFAULT_GRAVITY_STRENGTH=g.gravity),g.numIter!=null&&(s.MAX_ITERATIONS=i.MAX_ITERATIONS=g.numIter),g.gravityRange!=null&&(s.DEFAULT_GRAVITY_RANGE_FACTOR=i.DEFAULT_GRAVITY_RANGE_FACTOR=g.gravityRange),g.gravityCompound!=null&&(s.DEFAULT_COMPOUND_GRAVITY_STRENGTH=i.DEFAULT_COMPOUND_GRAVITY_STRENGTH=g.gravityCompound),g.gravityRangeCompound!=null&&(s.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=g.gravityRangeCompound),g.initialEnergyOnIncremental!=null&&(s.DEFAULT_COOLING_FACTOR_INCREMENTAL=i.DEFAULT_COOLING_FACTOR_INCREMENTAL=g.initialEnergyOnIncremental),g.quality=="draft"?n.QUALITY=0:g.quality=="proof"?n.QUALITY=2:n.QUALITY=1,s.NODE_DIMENSIONS_INCLUDE_LABELS=i.NODE_DIMENSIONS_INCLUDE_LABELS=n.NODE_DIMENSIONS_INCLUDE_LABELS=g.nodeDimensionsIncludeLabels,s.DEFAULT_INCREMENTAL=i.DEFAULT_INCREMENTAL=n.DEFAULT_INCREMENTAL=!g.randomize,s.ANIMATE=i.ANIMATE=n.ANIMATE=g.animate,s.TILE=g.tile,s.TILING_PADDING_VERTICAL=typeof g.tilingPaddingVertical=="function"?g.tilingPaddingVertical.call():g.tilingPaddingVertical,s.TILING_PADDING_HORIZONTAL=typeof g.tilingPaddingHorizontal=="function"?g.tilingPaddingHorizontal.call():g.tilingPaddingHorizontal};v.prototype.run=function(){var p,g,m=this.options,b=this.idToLNode={},C=this.layout=new o,E=this;E.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var w=C.newGraphManager();this.gm=w;var x=this.options.eles.nodes(),T=this.options.eles.edges();this.root=w.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(x),C);for(var D=0;D0){var L;L=m.getGraphManager().add(m.newGraph(),x),this.processChildrenList(L,w,m)}}},v.prototype.stop=function(){return this.stopped=!0,this};var y=function(g){g("layout","cose-bilkent",v)};typeof cytoscape<"u"&&y(cytoscape),e.exports=y}])})});function He(t){"@babel/helpers - typeof";return He=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},He(t)}function di(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ns(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,a=new Array(e);r=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(l){throw l},f:n}}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 i=!0,s=!1,o;return{s:function(){r=r.call(t)},n:function(){var l=r.next();return i=l.done,l},e:function(l){s=!0,o=l},f:function(){try{!i&&r.return!=null&&r.return()}finally{if(s)throw o}}}}var Ye=typeof window>"u"?null:window,ss=Ye?Ye.navigator:null;Ye&&Ye.document;var Tl=He(""),xo=He({}),Cl=He(function(){}),Dl=typeof HTMLElement>"u"?"undefined":He(HTMLElement),Ca=function(e){return e&&e.instanceString&&Ge(e.instanceString)?e.instanceString():null},de=function(e){return e!=null&&He(e)==Tl},Ge=function(e){return e!=null&&He(e)===Cl},Re=function(e){return!pt(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},Ce=function(e){return e!=null&&He(e)===xo&&!Re(e)&&e.constructor===Object},Sl=function(e){return e!=null&&He(e)===xo},ie=function(e){return e!=null&&He(e)===He(1)&&!isNaN(e)},Ll=function(e){return ie(e)&&Math.floor(e)===e},sn=function(e){if(Dl!=="undefined")return e!=null&&e instanceof HTMLElement},pt=function(e){return Da(e)||To(e)},Da=function(e){return Ca(e)==="collection"&&e._private.single},To=function(e){return Ca(e)==="collection"&&!e._private.single},pi=function(e){return Ca(e)==="core"},Co=function(e){return Ca(e)==="stylesheet"},Al=function(e){return Ca(e)==="event"},tr=function(e){return e==null?!0:!!(e===""||e.match(/^\s+$/))},Ol=function(e){return typeof HTMLElement>"u"?!1:e instanceof HTMLElement},Nl=function(e){return Ce(e)&&ie(e.x1)&&ie(e.x2)&&ie(e.y1)&&ie(e.y2)},Il=function(e){return Sl(e)&&Ge(e.then)},Ml=function(){return ss&&ss.userAgent.match(/msie|trident|edge/i)},va=function(e,r){r||(r=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var i=[],s=0;sr?1:0},zl=function(e,r){return-1*So(e,r)},be=Object.assign!=null?Object.assign.bind(Object):function(t){for(var e=arguments,r=1;r1&&(p-=1),p<1/6?d+(y-d)*6*p:p<1/2?y:p<2/3?d+(y-d)*(2/3-p)*6:d}var h=new RegExp("^"+Pl+"$").exec(e);if(h){if(a=parseInt(h[1]),a<0?a=(360- -1*a%360)%360:a>360&&(a=a%360),a/=360,n=parseFloat(h[2]),n<0||n>100||(n=n/100,i=parseFloat(h[3]),i<0||i>100)||(i=i/100,s=h[4],s!==void 0&&(s=parseFloat(s),s<0||s>1)))return;if(n===0)o=l=u=Math.round(i*255);else{var c=i<.5?i*(1+n):i+n-i*n,v=2*i-c;o=Math.round(255*f(v,c,a+1/3)),l=Math.round(255*f(v,c,a)),u=Math.round(255*f(v,c,a-1/3))}r=[o,l,u,s]}return r},$l=function(e){var r,a=new RegExp("^"+Rl+"$").exec(e);if(a){r=[];for(var n=[],i=1;i<=3;i++){var s=a[i];if(s[s.length-1]==="%"&&(n[i]=!0),s=parseFloat(s),n[i]&&(s=s/100*255),s<0||s>255)return;r.push(Math.floor(s))}var o=n[1]||n[2]||n[3],l=n[1]&&n[2]&&n[3];if(o&&!l)return;var u=a[4];if(u!==void 0){if(u=parseFloat(u),u<0||u>1)return;r.push(u)}}return r},Yl=function(e){return Hl[e.toLowerCase()]},_l=function(e){return(Re(e)?e:null)||Yl(e)||Vl(e)||$l(e)||Ul(e)},Hl={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]},Lo=function(e){for(var r=e.map,a=e.keys,n=a.length,i=0;i=e||x<0||h&&T>=i}function g(){var w=zn();if(p(w))return m(w);o=setTimeout(g,y(w))}function m(w){return o=void 0,c&&a?v(w):(a=n=void 0,s)}function b(){o!==void 0&&clearTimeout(o),u=0,a=l=n=o=void 0}function C(){return o===void 0?s:m(zn())}function E(){var w=zn(),x=p(w);if(a=arguments,n=this,l=w,x){if(o===void 0)return d(l);if(h)return clearTimeout(o),o=setTimeout(g,e),v(l)}return o===void 0&&(o=setTimeout(g,e)),s}return E.cancel=b,E.flush=C,E}var bn=Nf,Vn=Ye?Ye.performance:null,Io=Vn&&Vn.now?function(){return Vn.now()}:function(){return Date.now()},If=function(){if(Ye){if(Ye.requestAnimationFrame)return function(t){Ye.requestAnimationFrame(t)};if(Ye.mozRequestAnimationFrame)return function(t){Ye.mozRequestAnimationFrame(t)};if(Ye.webkitRequestAnimationFrame)return function(t){Ye.webkitRequestAnimationFrame(t)};if(Ye.msRequestAnimationFrame)return function(t){Ye.msRequestAnimationFrame(t)}}return function(t){t&&setTimeout(function(){t(Io())},1e3/60)}}(),on=function(e){return If(e)},$t=Io,Nr=9261,Mo=65599,oa=5381,Ro=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Nr,a=r,n;n=e.next(),!n.done;)a=a*Mo+n.value|0;return a},da=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Nr;return r*Mo+e|0},ga=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:oa;return(r<<5)+r+e|0},Mf=function(e,r){return e*2097152+r},Kt=function(e){return e[0]*2097152+e[1]},Ga=function(e,r){return[da(e[0],r[0]),ga(e[1],r[1])]},Rf=function(e,r){var a={value:0,done:!1},n=0,i=e.length,s={next:function(){return n=0&&!(e[n]===r&&(e.splice(n,1),a));n--);},Ei=function(e){e.splice(0,e.length)},Vf=function(e,r){for(var a=0;a"u"?"undefined":He(Set))!==$f?Set:Yf,En=function(e,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||r===void 0||!pi(e)){ze("An element must have a core reference and parameters set");return}var n=r.group;if(n==null&&(r.data&&r.data.source!=null&&r.data.target!=null?n="edges":n="nodes"),n!=="nodes"&&n!=="edges"){ze("An element must be of type `nodes` or `edges`; you specified `"+n+"`");return}this.length=1,this[0]=this;var i=this._private={cy:e,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:n,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?n==="edges":!!r.pannable,active:!1,classes:new Ur,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(i.position.x==null&&(i.position.x=0),i.position.y==null&&(i.position.y=0),r.renderedPosition){var s=r.renderedPosition,o=e.pan(),l=e.zoom();i.position={x:(s.x-o.x)/l,y:(s.y-o.y)/l}}var u=[];Re(r.classes)?u=r.classes:de(r.classes)&&(u=r.classes.split(/\s+/));for(var f=0,h=u.length;fm?1:0},f=function(g,m,b,C,E){var w;if(b==null&&(b=0),E==null&&(E=a),b<0)throw new Error("lo must be non-negative");for(C==null&&(C=g.length);bS;0<=S?D++:D--)T.push(D);return T}.apply(this).reverse(),x=[],C=0,E=w.length;CA;0<=A?++T:--T)L.push(s(g,b));return L},y=function(g,m,b,C){var E,w,x;for(C==null&&(C=a),E=g[b];b>m;){if(x=b-1>>1,w=g[x],C(E,w)<0){g[b]=w,b=x;continue}break}return g[b]=E},p=function(g,m,b){var C,E,w,x,T;for(b==null&&(b=a),E=g.length,T=m,w=g[m],C=2*m+1;C0;){var w=m.pop(),x=p(w),T=w.id();if(c[T]=x,x!==1/0)for(var D=w.neighborhood().intersect(d),S=0;S0)for(P.unshift(M);h[V];){var G=h[V];P.unshift(G.edge),P.unshift(G.node),F=G.node,V=F.id()}return o.spawn(P)}}}},qf={kruskal:function(e){e=e||function(b){return 1};for(var r=this.byGroup(),a=r.nodes,n=r.edges,i=a.length,s=new Array(i),o=a,l=function(C){for(var E=0;E0;){if(E(),x++,C===f){for(var T=[],D=i,S=f,A=g[S];T.unshift(D),A!=null&&T.unshift(A),D=p[S],D!=null;)S=D.id(),A=g[S];return{found:!0,distance:h[C],path:this.spawn(T),steps:x}}v[C]=!0;for(var L=b._private.edges,I=0;IA&&(d[S]=A,m[S]=D,b[S]=E),!i){var L=D*f+T;!i&&d[L]>A&&(d[L]=A,m[L]=T,b[L]=E)}}}for(var I=0;I1&&arguments[1]!==void 0?arguments[1]:s,Ae=b(fe),xe=[],we=Ae;;){if(we==null)return r.spawn();var De=m(we),j=De.edge,N=De.pred;if(xe.unshift(we[0]),we.same(pe)&&xe.length>0)break;j!=null&&xe.unshift(j),we=N}return l.spawn(xe)},w=0;w=0;f--){var h=u[f],c=h[1],v=h[2];(r[c]===o&&r[v]===l||r[c]===l&&r[v]===o)&&u.splice(f,1)}for(var d=0;dn;){var i=Math.floor(Math.random()*r.length);r=th(i,e,r),a--}return r},rh={kargerStein:function(){var e=this,r=this.byGroup(),a=r.nodes,n=r.edges;n.unmergeBy(function(P){return P.isLoop()});var i=a.length,s=n.length,o=Math.ceil(Math.pow(Math.log(i)/Math.LN2,2)),l=Math.floor(i/eh);if(i<2){ze("At least 2 nodes are required for Karger-Stein algorithm");return}for(var u=[],f=0;f1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=1/0,i=r;i1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=-1/0,i=r;i1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=0,i=0,s=r;s1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;n?e=e.slice(r,a):(a0&&e.splice(0,r));for(var o=0,l=e.length-1;l>=0;l--){var u=e[l];s?isFinite(u)||(e[l]=-1/0,o++):e.splice(l,1)}i&&e.sort(function(c,v){return c-v});var f=e.length,h=Math.floor(f/2);return f%2!==0?e[h+1+o]:(e[h-1+o]+e[h+o])/2},uh=function(e){return Math.PI*e/180},za=function(e,r){return Math.atan2(r,e)-Math.PI/2},wi=Math.log2||function(t){return Math.log(t)/Math.log(2)},Vo=function(e){return e>0?1:e<0?-1:0},yr=function(e,r){return Math.sqrt(fr(e,r))},fr=function(e,r){var a=r.x-e.x,n=r.y-e.y;return a*a+n*n},lh=function(e){for(var r=e.length,a=0,n=0;n=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},hh=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},ch=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},vh=function(e,r,a){return{x1:e.x1+r,x2:e.x2+r,y1:e.y1+a,y2:e.y2+a,w:e.w,h:e.h}},Uo=function(e,r){e.x1=Math.min(e.x1,r.x1),e.x2=Math.max(e.x2,r.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,r.y1),e.y2=Math.max(e.y2,r.y2),e.h=e.y2-e.y1},dh=function(e,r,a){e.x1=Math.min(e.x1,r),e.x2=Math.max(e.x2,r),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,a),e.y2=Math.max(e.y2,a),e.h=e.y2-e.y1},Za=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=r,e.x2+=r,e.y1-=r,e.y2+=r,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},Qa=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],a,n,i,s;if(r.length===1)a=n=i=s=r[0];else if(r.length===2)a=i=r[0],s=n=r[1];else if(r.length===4){var o=St(r,4);a=o[0],n=o[1],i=o[2],s=o[3]}return e.x1-=s,e.x2+=n,e.y1-=a,e.y2+=i,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},ds=function(e,r){e.x1=r.x1,e.y1=r.y1,e.x2=r.x2,e.y2=r.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},xi=function(e,r){return!(e.x1>r.x2||r.x1>e.x2||e.x2r.y2||r.y1>e.y2)},Gr=function(e,r,a){return e.x1<=r&&r<=e.x2&&e.y1<=a&&a<=e.y2},gh=function(e,r){return Gr(e,r.x,r.y)},$o=function(e,r){return Gr(e,r.x1,r.y1)&&Gr(e,r.x2,r.y2)},Yo=function(e,r,a,n,i,s,o){var l=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"auto",u=l==="auto"?mr(i,s):l,f=i/2,h=s/2;u=Math.min(u,f,h);var c=u!==f,v=u!==h,d;if(c){var y=a-f+u-o,p=n-h-o,g=a+f-u+o,m=p;if(d=Jt(e,r,a,n,y,p,g,m,!1),d.length>0)return d}if(v){var b=a+f+o,C=n-h+u-o,E=b,w=n+h-u+o;if(d=Jt(e,r,a,n,b,C,E,w,!1),d.length>0)return d}if(c){var x=a-f+u-o,T=n+h+o,D=a+f-u+o,S=T;if(d=Jt(e,r,a,n,x,T,D,S,!1),d.length>0)return d}if(v){var A=a-f-o,L=n-h+u-o,I=A,O=n+h-u+o;if(d=Jt(e,r,a,n,A,L,I,O,!1),d.length>0)return d}var k;{var R=a-f+u,M=n-h+u;if(k=ua(e,r,a,n,R,M,u+o),k.length>0&&k[0]<=R&&k[1]<=M)return[k[0],k[1]]}{var P=a+f-u,F=n-h+u;if(k=ua(e,r,a,n,P,F,u+o),k.length>0&&k[0]>=P&&k[1]<=F)return[k[0],k[1]]}{var V=a+f-u,G=n+h-u;if(k=ua(e,r,a,n,V,G,u+o),k.length>0&&k[0]>=V&&k[1]>=G)return[k[0],k[1]]}{var B=a-f+u,$=n+h-u;if(k=ua(e,r,a,n,B,$,u+o),k.length>0&&k[0]<=B&&k[1]>=$)return[k[0],k[1]]}return[]},ph=function(e,r,a,n,i,s,o){var l=o,u=Math.min(a,i),f=Math.max(a,i),h=Math.min(n,s),c=Math.max(n,s);return u-l<=e&&e<=f+l&&h-l<=r&&r<=c+l},yh=function(e,r,a,n,i,s,o,l,u){var f={x1:Math.min(a,o,i)-u,x2:Math.max(a,o,i)+u,y1:Math.min(n,l,s)-u,y2:Math.max(n,l,s)+u};return!(ef.x2||rf.y2)},mh=function(e,r,a,n){a-=n;var i=r*r-4*e*a;if(i<0)return[];var s=Math.sqrt(i),o=2*e,l=(-r+s)/o,u=(-r-s)/o;return[l,u]},bh=function(e,r,a,n,i){var s=1e-5;e===0&&(e=s),r/=e,a/=e,n/=e;var o,l,u,f,h,c,v,d;if(l=(3*a-r*r)/9,u=-(27*n)+r*(9*a-2*(r*r)),u/=54,o=l*l*l+u*u,i[1]=0,v=r/3,o>0){h=u+Math.sqrt(o),h=h<0?-Math.pow(-h,1/3):Math.pow(h,1/3),c=u-Math.sqrt(o),c=c<0?-Math.pow(-c,1/3):Math.pow(c,1/3),i[0]=-v+h+c,v+=(h+c)/2,i[4]=i[2]=-v,v=Math.sqrt(3)*(-c+h)/2,i[3]=v,i[5]=-v;return}if(i[5]=i[3]=0,o===0){d=u<0?-Math.pow(-u,1/3):Math.pow(u,1/3),i[0]=-v+2*d,i[4]=i[2]=-(d+v);return}l=-l,f=l*l*l,f=Math.acos(u/Math.sqrt(f)),d=2*Math.sqrt(l),i[0]=-v+d*Math.cos(f/3),i[2]=-v+d*Math.cos((f+2*Math.PI)/3),i[4]=-v+d*Math.cos((f+4*Math.PI)/3)},Eh=function(e,r,a,n,i,s,o,l){var u=1*a*a-4*a*i+2*a*o+4*i*i-4*i*o+o*o+n*n-4*n*s+2*n*l+4*s*s-4*s*l+l*l,f=1*9*a*i-3*a*a-3*a*o-6*i*i+3*i*o+9*n*s-3*n*n-3*n*l-6*s*s+3*s*l,h=1*3*a*a-6*a*i+a*o-a*e+2*i*i+2*i*e-o*e+3*n*n-6*n*s+n*l-n*r+2*s*s+2*s*r-l*r,c=1*a*i-a*a+a*e-i*e+n*s-n*n+n*r-s*r,v=[];bh(u,f,h,c,v);for(var d=1e-7,y=[],p=0;p<6;p+=2)Math.abs(v[p+1])=0&&v[p]<=1&&y.push(v[p]);y.push(1),y.push(0);for(var g=-1,m,b,C,E=0;E=0?Cu?(e-i)*(e-i)+(r-s)*(r-s):f-c},dt=function(e,r,a){for(var n,i,s,o,l,u=0,f=0;f=e&&e>=s||n<=e&&e<=s)l=(e-n)/(s-n)*(o-i)+i,l>r&&u++;else continue;return u%2!==0},Yt=function(e,r,a,n,i,s,o,l,u){var f=new Array(a.length),h;l[0]!=null?(h=Math.atan(l[1]/l[0]),l[0]<0?h=h+Math.PI/2:h=-h-Math.PI/2):h=l;for(var c=Math.cos(-h),v=Math.sin(-h),d=0;d0){var p=fn(f,-u);y=ln(p)}else y=f;return dt(e,r,y)},xh=function(e,r,a,n,i,s,o,l){for(var u=new Array(a.length*2),f=0;f=0&&p<=1&&m.push(p),g>=0&&g<=1&&m.push(g),m.length===0)return[];var b=m[0]*l[0]+e,C=m[0]*l[1]+r;if(m.length>1){if(m[0]==m[1])return[b,C];var E=m[1]*l[0]+e,w=m[1]*l[1]+r;return[b,C,E,w]}else return[b,C]},$n=function(e,r,a){return r<=e&&e<=a||a<=e&&e<=r?e:e<=r&&r<=a||a<=r&&r<=e?r:a},Jt=function(e,r,a,n,i,s,o,l,u){var f=e-i,h=a-e,c=o-i,v=r-s,d=n-r,y=l-s,p=c*v-y*f,g=h*v-d*f,m=y*h-c*d;if(m!==0){var b=p/m,C=g/m,E=.001,w=0-E,x=1+E;return w<=b&&b<=x&&w<=C&&C<=x?[e+b*h,r+b*d]:u?[e+b*h,r+b*d]:[]}else return p===0||g===0?$n(e,a,o)===o?[o,l]:$n(e,a,i)===i?[i,s]:$n(i,o,a)===a?[a,n]:[]:[]},ma=function(e,r,a,n,i,s,o,l){var u=[],f,h=new Array(a.length),c=!0;s==null&&(c=!1);var v;if(c){for(var d=0;d0){var y=fn(h,-l);v=ln(y)}else v=h}else v=a;for(var p,g,m,b,C=0;C2){for(var d=[f[0],f[1]],y=Math.pow(d[0]-e,2)+Math.pow(d[1]-r,2),p=1;pf&&(f=C)},get:function(b){return u[b]}},c=0;c0?R=k.edgesTo(O)[0]:R=O.edgesTo(k)[0];var M=n(R);O=O.id(),T[O]>T[L]+M&&(T[O]=T[L]+M,D.nodes.indexOf(O)<0?D.push(O):D.updateItem(O),x[O]=0,w[O]=[]),T[O]==T[L]+M&&(x[O]=x[O]+x[L],w[O].push(L))}else for(var P=0;P0;){for(var B=E.pop(),$=0;$0&&o.push(a[l]);o.length!==0&&i.push(n.collection(o))}return i},Gh=function(e,r){for(var a=0;a5&&arguments[5]!==void 0?arguments[5]:Uh,o=n,l,u,f=0;f=2?ra(e,r,a,0,bs,$h):ra(e,r,a,0,ms)},squaredEuclidean:function(e,r,a){return ra(e,r,a,0,bs)},manhattan:function(e,r,a){return ra(e,r,a,0,ms)},max:function(e,r,a){return ra(e,r,a,-1/0,Yh)}};zr["squared-euclidean"]=zr.squaredEuclidean;zr.squaredeuclidean=zr.squaredEuclidean;function xn(t,e,r,a,n,i){var s;return Ge(t)?s=t:s=zr[t]||zr.euclidean,e===0&&Ge(t)?s(n,i):s(e,r,a,n,i)}var _h=tt({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),Ci=function(e){return _h(e)},hn=function(e,r,a,n,i){var s=i!=="kMedoids",o=s?function(h){return a[h]}:function(h){return n[h](a)},l=function(c){return n[c](r)},u=a,f=r;return xn(e,n.length,o,l,u,f)},Yn=function(e,r,a){for(var n=a.length,i=new Array(n),s=new Array(n),o=new Array(r),l=null,u=0;ua)return!1}return!0},qh=function(e,r,a){for(var n=0;no&&(o=r[u][f],l=f);i[l].push(e[u])}for(var h=0;h=i.threshold||i.mode==="dendrogram"&&e.length===1)return!1;var d=r[s],y=r[n[s]],p;i.mode==="dendrogram"?p={left:d,right:y,key:d.key}:p={value:d.value.concat(y.value),key:d.key},e[d.index]=p,e.splice(y.index,1),r[d.key]=p;for(var g=0;ga[y.key][m.key]&&(l=a[y.key][m.key])):i.linkage==="max"?(l=a[d.key][m.key],a[d.key][m.key]0&&n.push(i);return n},Ds=function(e,r,a){for(var n=[],i=0;io&&(s=u,o=r[i*e+u])}s>0&&n.push(s)}for(var f=0;fu&&(l=f,u=h)}a[i]=s[l]}return n=Ds(e,r,a),n},Ss=function(e){for(var r=this.cy(),a=this.nodes(),n=oc(e),i={},s=0;s=A?(L=A,A=O,I=k):O>L&&(L=O);for(var R=0;R0?1:0;x[D%n.minIterations*o+B]=$,G+=$}if(G>0&&(D>=n.minIterations-1||D==n.maxIterations-1)){for(var q=0,Z=0;Z1||w>1)&&(o=!0),h[b]=[],m.outgoers().forEach(function(T){T.isEdge()&&h[b].push(T.id())})}else c[b]=[void 0,m.target().id()]}):s.forEach(function(m){var b=m.id();if(m.isNode()){var C=m.degree(!0);C%2&&(l?u?o=!0:u=b:l=b),h[b]=[],m.connectedEdges().forEach(function(E){return h[b].push(E.id())})}else c[b]=[m.source().id(),m.target().id()]});var v={found:!1,trail:void 0};if(o)return v;if(u&&l)if(i){if(f&&u!=f)return v;f=u}else{if(f&&u!=f&&l!=f)return v;f||(f=u)}else f||(f=s[0].id());var d=function(b){for(var C=b,E=[b],w,x,T;h[C].length;)w=h[C].shift(),x=c[w][0],T=c[w][1],C!=T?(h[T]=h[T].filter(function(D){return D!=w}),C=T):!i&&C!=x&&(h[x]=h[x].filter(function(D){return D!=w}),C=x),E.unshift(w),E.unshift(C);return E},y=[],p=[];for(p=d(f);p.length!=1;)h[p[0]].length==0?(y.unshift(s.getElementById(p.shift())),y.unshift(s.getElementById(p.shift()))):p=d(p.shift()).concat(p);y.unshift(s.getElementById(p.shift()));for(var g in h)if(h[g].length)return v;return v.found=!0,v.trail=this.spawn(y,!0),v}},$a=function(){var e=this,r={},a=0,n=0,i=[],s=[],o={},l=function(c,v){for(var d=s.length-1,y=[],p=e.spawn();s[d].x!=c||s[d].y!=v;)y.push(s.pop().edge),d--;y.push(s.pop().edge),y.forEach(function(g){var m=g.connectedNodes().intersection(e);p.merge(g),m.forEach(function(b){var C=b.id(),E=b.connectedEdges().intersection(e);p.merge(b),r[C].cutVertex?p.merge(E.filter(function(w){return w.isLoop()})):p.merge(E)})}),i.push(p)},u=function h(c,v,d){c===d&&(n+=1),r[v]={id:a,low:a++,cutVertex:!1};var y=e.getElementById(v).connectedEdges().intersection(e);if(y.size()===0)i.push(e.spawn(e.getElementById(v)));else{var p,g,m,b;y.forEach(function(C){p=C.source().id(),g=C.target().id(),m=p===v?g:p,m!==d&&(b=C.id(),o[b]||(o[b]=!0,s.push({x:v,y:m,edge:C})),m in r?r[v].low=Math.min(r[v].low,r[m].id):(h(c,m,v),r[v].low=Math.min(r[v].low,r[m].low),r[v].id<=r[m].low&&(r[v].cutVertex=!0,l(v,m))))})}};e.forEach(function(h){if(h.isNode()){var c=h.id();c in r||(n=0,u(c,c),r[c].cutVertex=n>1)}});var f=Object.keys(r).filter(function(h){return r[h].cutVertex}).map(function(h){return e.getElementById(h)});return{cut:e.spawn(f),components:i}},gc={hopcroftTarjanBiconnected:$a,htbc:$a,htb:$a,hopcroftTarjanBiconnectedComponents:$a},Ya=function(){var e=this,r={},a=0,n=[],i=[],s=e.spawn(e),o=function l(u){i.push(u),r[u]={index:a,low:a++,explored:!1};var f=e.getElementById(u).connectedEdges().intersection(e);if(f.forEach(function(y){var p=y.target().id();p!==u&&(p in r||l(p),r[p].explored||(r[u].low=Math.min(r[u].low,r[p].low)))}),r[u].index===r[u].low){for(var h=e.spawn();;){var c=i.pop();if(h.merge(e.getElementById(c)),r[c].low=r[u].index,r[c].explored=!0,c===u)break}var v=h.edgesWith(h),d=h.merge(v);n.push(d),s=s.difference(d)}};return e.forEach(function(l){if(l.isNode()){var u=l.id();u in r||o(u)}}),{cut:s,components:n}},pc={tarjanStronglyConnected:Ya,tsc:Ya,tscc:Ya,tarjanStronglyConnectedComponents:Ya},Zo={};[pa,Xf,qf,Kf,Qf,jf,rh,Lh,kr,Pr,ei,Vh,jh,ic,cc,dc,gc,pc].forEach(function(t){be(Zo,t)});var Qo=0,Jo=1,jo=2,_t=function t(e){if(!(this instanceof t))return new t(e);this.id="Thenable/1.0.7",this.state=Qo,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof e=="function"&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))};_t.prototype={fulfill:function(e){return Ls(this,Jo,"fulfillValue",e)},reject:function(e){return Ls(this,jo,"rejectReason",e)},then:function(e,r){var a=this,n=new _t;return a.onFulfilled.push(Os(e,n,"fulfill")),a.onRejected.push(Os(r,n,"reject")),eu(a),n.proxy}};var Ls=function(e,r,a,n){return e.state===Qo&&(e.state=r,e[a]=n,eu(e)),e},eu=function(e){e.state===Jo?As(e,"onFulfilled",e.fulfillValue):e.state===jo&&As(e,"onRejected",e.rejectReason)},As=function(e,r,a){if(e[r].length!==0){var n=e[r];e[r]=[];var i=function(){for(var o=0;o0}},clearQueue:function(){return function(){var r=this,a=r.length!==void 0,n=a?r:[r],i=this._private.cy||this;if(!i.styleEnabled())return this;for(var s=0;s-1}var Tv=xv;function Cv(t,e){var r=this.__data__,a=Cn(r,t);return a<0?(++this.size,r.push([t,e])):r[a][1]=e,this}var Dv=Cv;function _r(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t0&&this.spawn(n).updateStyle().emit("class"),r},addClass:function(e){return this.toggleClass(e,!0)},hasClass:function(e){var r=this[0];return r!=null&&r._private.classes.has(e)},toggleClass:function(e,r){Re(e)||(e=e.match(/\S+/g)||[]);for(var a=this,n=r===void 0,i=[],s=0,o=a.length;s0&&this.spawn(i).updateStyle().emit("class"),a},removeClass:function(e){return this.toggleClass(e,!1)},flashClass:function(e,r){var a=this;if(r==null)r=250;else if(r===0)return a;return a.addClass(e),setTimeout(function(){a.removeClass(e)},r),a}};Ja.className=Ja.classNames=Ja.classes;var Te={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:_e,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};Te.variable="(?:[\\w-.]|(?:\\\\"+Te.metaChar+"))+";Te.className="(?:[\\w-]|(?:\\\\"+Te.metaChar+"))+";Te.value=Te.string+"|"+Te.number;Te.id=Te.variable;(function(){var t,e,r;for(t=Te.comparatorOp.split("|"),r=0;r=0)&&e!=="="&&(Te.comparatorOp+="|\\!"+e)})();var Ie=function(){return{checks:[]}},oe={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},ri=[{selector:":selected",matches:function(e){return e.selected()}},{selector:":unselected",matches:function(e){return!e.selected()}},{selector:":selectable",matches:function(e){return e.selectable()}},{selector:":unselectable",matches:function(e){return!e.selectable()}},{selector:":locked",matches:function(e){return e.locked()}},{selector:":unlocked",matches:function(e){return!e.locked()}},{selector:":visible",matches:function(e){return e.visible()}},{selector:":hidden",matches:function(e){return!e.visible()}},{selector:":transparent",matches:function(e){return e.transparent()}},{selector:":grabbed",matches:function(e){return e.grabbed()}},{selector:":free",matches:function(e){return!e.grabbed()}},{selector:":removed",matches:function(e){return e.removed()}},{selector:":inside",matches:function(e){return!e.removed()}},{selector:":grabbable",matches:function(e){return e.grabbable()}},{selector:":ungrabbable",matches:function(e){return!e.grabbable()}},{selector:":animated",matches:function(e){return e.animated()}},{selector:":unanimated",matches:function(e){return!e.animated()}},{selector:":parent",matches:function(e){return e.isParent()}},{selector:":childless",matches:function(e){return e.isChildless()}},{selector:":child",matches:function(e){return e.isChild()}},{selector:":orphan",matches:function(e){return e.isOrphan()}},{selector:":nonorphan",matches:function(e){return e.isChild()}},{selector:":compound",matches:function(e){return e.isNode()?e.isParent():e.source().isParent()||e.target().isParent()}},{selector:":loop",matches:function(e){return e.isLoop()}},{selector:":simple",matches:function(e){return e.isSimple()}},{selector:":active",matches:function(e){return e.active()}},{selector:":inactive",matches:function(e){return!e.active()}},{selector:":backgrounding",matches:function(e){return e.backgrounding()}},{selector:":nonbackgrounding",matches:function(e){return!e.backgrounding()}}].sort(function(t,e){return zl(t.selector,e.selector)}),Od=function(){for(var t={},e,r=0;r0&&f.edgeCount>0)return Ne("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(f.edgeCount>1)return Ne("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;f.edgeCount===1&&Ne("The selector `"+e+"` 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},Pd=function(){if(this.toStringCache!=null)return this.toStringCache;for(var e=function(f){return f??""},r=function(f){return de(f)?'"'+f+'"':e(f)},a=function(f){return" "+f+" "},n=function(f,h){var c=f.type,v=f.value;switch(c){case oe.GROUP:{var d=e(v);return d.substring(0,d.length-1)}case oe.DATA_COMPARE:{var y=f.field,p=f.operator;return"["+y+a(e(p))+r(v)+"]"}case oe.DATA_BOOL:{var g=f.operator,m=f.field;return"["+e(g)+m+"]"}case oe.DATA_EXIST:{var b=f.field;return"["+b+"]"}case oe.META_COMPARE:{var C=f.operator,E=f.field;return"[["+E+a(e(C))+r(v)+"]]"}case oe.STATE:return v;case oe.ID:return"#"+v;case oe.CLASS:return"."+v;case oe.PARENT:case oe.CHILD:return i(f.parent,h)+a(">")+i(f.child,h);case oe.ANCESTOR:case oe.DESCENDANT:return i(f.ancestor,h)+" "+i(f.descendant,h);case oe.COMPOUND_SPLIT:{var w=i(f.left,h),x=i(f.subject,h),T=i(f.right,h);return w+(w.length>0?" ":"")+x+T}case oe.TRUE:return""}},i=function(f,h){return f.checks.reduce(function(c,v,d){return c+(h===f&&d===0?"$":"")+n(v,h)},"")},s="",o=0;o1&&o=0&&(r=r.replace("!",""),h=!0),r.indexOf("@")>=0&&(r=r.replace("@",""),f=!0),(i||o||f)&&(l=!i&&!s?"":""+e,u=""+a),f&&(e=l=l.toLowerCase(),a=u=u.toLowerCase()),r){case"*=":n=l.indexOf(u)>=0;break;case"$=":n=l.indexOf(u,l.length-u.length)>=0;break;case"^=":n=l.indexOf(u)===0;break;case"=":n=e===a;break;case">":c=!0,n=e>a;break;case">=":c=!0,n=e>=a;break;case"<":c=!0,n=e0;){var f=n.shift();e(f),i.add(f.id()),o&&a(n,i,f)}return t}function lu(t,e,r){if(r.isParent())for(var a=r._private.children,n=0;n1&&arguments[1]!==void 0?arguments[1]:!0;return Oi(this,t,e,lu)};function fu(t,e,r){if(r.isChild()){var a=r._private.parent;e.has(a.id())||t.push(a)}}Vr.forEachUp=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Oi(this,t,e,fu)};function Yd(t,e,r){fu(t,e,r),lu(t,e,r)}Vr.forEachUpAndDown=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Oi(this,t,e,Yd)};Vr.ancestors=Vr.parents;var Ea,hu;Ea=hu={data:Oe.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:Oe.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:Oe.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Oe.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:Oe.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:Oe.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var e=this[0];if(e)return e._private.data.id}};Ea.attr=Ea.data;Ea.removeAttr=Ea.removeData;var _d=hu,Sn={};function Hn(t){return function(e){var r=this;if(e===void 0&&(e=!0),r.length!==0)if(r.isNode()&&!r.removed()){for(var a=0,n=r[0],i=n._private.edges,s=0;se}),minIndegree:Sr("indegree",function(t,e){return te}),minOutdegree:Sr("outdegree",function(t,e){return te})});be(Sn,{totalDegree:function(e){for(var r=0,a=this.nodes(),n=0;n0,c=h;h&&(f=f[0]);var v=c?f.position():{x:0,y:0};r!==void 0?u.position(e,r+v[e]):i!==void 0&&u.position({x:i.x+v.x,y:i.y+v.y})}else{var d=a.position(),y=o?a.parent():null,p=y&&y.length>0,g=p;p&&(y=y[0]);var m=g?y.position():{x:0,y:0};return i={x:d.x-m.x,y:d.y-m.y},e===void 0?i:i[e]}else if(!s)return;return this}};Ot.modelPosition=Ot.point=Ot.position;Ot.modelPositions=Ot.points=Ot.positions;Ot.renderedPoint=Ot.renderedPosition;Ot.relativePoint=Ot.relativePosition;var Hd=cu,Br,sr;Br=sr={};sr.renderedBoundingBox=function(t){var e=this.boundingBox(t),r=this.cy(),a=r.zoom(),n=r.pan(),i=e.x1*a+n.x,s=e.x2*a+n.x,o=e.y1*a+n.y,l=e.y2*a+n.y;return{x1:i,x2:s,y1:o,y2:l,w:s-i,h:l-o}};sr.dirtyCompoundBoundsCache=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();return!e.styleEnabled()||!e.hasCompoundNodes()?this:(this.forEachUp(function(r){if(r.isParent()){var a=r._private;a.compoundBoundsClean=!1,a.bbCache=null,t||r.emitAndNotify("bounds")}}),this)};sr.updateCompoundBounds=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();if(!e.styleEnabled()||!e.hasCompoundNodes())return this;if(!t&&e.batching())return this;function r(s){if(!s.isParent())return;var o=s._private,l=s.children(),u=s.pstyle("compound-sizing-wrt-labels").value==="include",f={width:{val:s.pstyle("min-width").pfValue,left:s.pstyle("min-width-bias-left"),right:s.pstyle("min-width-bias-right")},height:{val:s.pstyle("min-height").pfValue,top:s.pstyle("min-height-bias-top"),bottom:s.pstyle("min-height-bias-bottom")}},h=l.boundingBox({includeLabels:u,includeOverlays:!1,useCache:!1}),c=o.position;(h.w===0||h.h===0)&&(h={w:s.pstyle("width").pfValue,h:s.pstyle("height").pfValue},h.x1=c.x-h.w/2,h.x2=c.x+h.w/2,h.y1=c.y-h.h/2,h.y2=c.y+h.h/2);function v(D,S,A){var L=0,I=0,O=S+A;return D>0&&O>0&&(L=S/O*D,I=A/O*D),{biasDiff:L,biasComplementDiff:I}}function d(D,S,A,L){if(A.units==="%")switch(L){case"width":return D>0?A.pfValue*D:0;case"height":return S>0?A.pfValue*S:0;case"average":return D>0&&S>0?A.pfValue*(D+S)/2:0;case"min":return D>0&&S>0?D>S?A.pfValue*S:A.pfValue*D:0;case"max":return D>0&&S>0?D>S?A.pfValue*D:A.pfValue*S:0;default:return 0}else return A.units==="px"?A.pfValue:0}var y=f.width.left.value;f.width.left.units==="px"&&f.width.val>0&&(y=y*100/f.width.val);var p=f.width.right.value;f.width.right.units==="px"&&f.width.val>0&&(p=p*100/f.width.val);var g=f.height.top.value;f.height.top.units==="px"&&f.height.val>0&&(g=g*100/f.height.val);var m=f.height.bottom.value;f.height.bottom.units==="px"&&f.height.val>0&&(m=m*100/f.height.val);var b=v(f.width.val-h.w,y,p),C=b.biasDiff,E=b.biasComplementDiff,w=v(f.height.val-h.h,g,m),x=w.biasDiff,T=w.biasComplementDiff;o.autoPadding=d(h.w,h.h,s.pstyle("padding"),s.pstyle("padding-relative-to").value),o.autoWidth=Math.max(h.w,f.width.val),c.x=(-C+h.x1+h.x2+E)/2,o.autoHeight=Math.max(h.h,f.height.val),c.y=(-x+h.y1+h.y2+T)/2}for(var a=0;ae.x2?n:e.x2,e.y1=ae.y2?i:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},hr=function(e,r){return r==null?e:Lt(e,r.x1,r.y1,r.x2,r.y2)},aa=function(e,r,a){return At(e,r,a)},_a=function(e,r,a){if(!r.cy().headless()){var n=r._private,i=n.rstyle,s=i.arrowWidth/2,o=r.pstyle(a+"-arrow-shape").value,l,u;if(o!=="none"){a==="source"?(l=i.srcX,u=i.srcY):a==="target"?(l=i.tgtX,u=i.tgtY):(l=i.midX,u=i.midY);var f=n.arrowBounds=n.arrowBounds||{},h=f[a]=f[a]||{};h.x1=l-s,h.y1=u-s,h.x2=l+s,h.y2=u+s,h.w=h.x2-h.x1,h.h=h.y2-h.y1,Za(h,1),Lt(e,h.x1,h.y1,h.x2,h.y2)}}},Xn=function(e,r,a){if(!r.cy().headless()){var n;a?n=a+"-":n="";var i=r._private,s=i.rstyle,o=r.pstyle(n+"label").strValue;if(o){var l=r.pstyle("text-halign"),u=r.pstyle("text-valign"),f=aa(s,"labelWidth",a),h=aa(s,"labelHeight",a),c=aa(s,"labelX",a),v=aa(s,"labelY",a),d=r.pstyle(n+"text-margin-x").pfValue,y=r.pstyle(n+"text-margin-y").pfValue,p=r.isEdge(),g=r.pstyle(n+"text-rotation"),m=r.pstyle("text-outline-width").pfValue,b=r.pstyle("text-border-width").pfValue,C=b/2,E=r.pstyle("text-background-padding").pfValue,w=2,x=h,T=f,D=T/2,S=x/2,A,L,I,O;if(p)A=c-D,L=c+D,I=v-S,O=v+S;else{switch(l.value){case"left":A=c-T,L=c;break;case"center":A=c-D,L=c+D;break;case"right":A=c,L=c+T;break}switch(u.value){case"top":I=v-x,O=v;break;case"center":I=v-S,O=v+S;break;case"bottom":I=v,O=v+x;break}}A+=d-Math.max(m,C)-E-w,L+=d+Math.max(m,C)+E+w,I+=y-Math.max(m,C)-E-w,O+=y+Math.max(m,C)+E+w;var k=a||"main",R=i.labelBounds,M=R[k]=R[k]||{};M.x1=A,M.y1=I,M.x2=L,M.y2=O,M.w=L-A,M.h=O-I;var P=p&&g.strValue==="autorotate",F=g.pfValue!=null&&g.pfValue!==0;if(P||F){var V=P?aa(i.rstyle,"labelAngle",a):g.pfValue,G=Math.cos(V),B=Math.sin(V),$=(A+L)/2,q=(I+O)/2;if(!p){switch(l.value){case"left":$=L;break;case"right":$=A;break}switch(u.value){case"top":q=O;break;case"bottom":q=I;break}}var Z=function(ce,te){return ce=ce-$,te=te-q,{x:ce*G-te*B+$,y:ce*B+te*G+q}},W=Z(A,I),ee=Z(A,O),Y=Z(L,I),z=Z(L,O);A=Math.min(W.x,ee.x,Y.x,z.x),L=Math.max(W.x,ee.x,Y.x,z.x),I=Math.min(W.y,ee.y,Y.y,z.y),O=Math.max(W.y,ee.y,Y.y,z.y)}var H=k+"Rot",Q=R[H]=R[H]||{};Q.x1=A,Q.y1=I,Q.x2=L,Q.y2=O,Q.w=L-A,Q.h=O-I,Lt(e,A,I,L,O),Lt(i.labelBounds.all,A,I,L,O)}return e}},Xd=function(e,r){if(!r.cy().headless()){var a=r.pstyle("outline-opacity").value,n=r.pstyle("outline-width").value;if(a>0&&n>0){var i=r.pstyle("outline-offset").value,s=r.pstyle("shape").value,o=n+i,l=(e.w+o*2)/e.w,u=(e.h+o*2)/e.h,f=0,h=0;["diamond","pentagon","round-triangle"].includes(s)?(l=(e.w+o*2.4)/e.w,h=-o/3.6):["concave-hexagon","rhomboid","right-rhomboid"].includes(s)?l=(e.w+o*2.4)/e.w:s==="star"?(l=(e.w+o*2.8)/e.w,u=(e.h+o*2.6)/e.h,h=-o/3.8):s==="triangle"?(l=(e.w+o*2.8)/e.w,u=(e.h+o*2.4)/e.h,h=-o/1.4):s==="vee"&&(l=(e.w+o*4.4)/e.w,u=(e.h+o*3.8)/e.h,h=-o*.5);var c=e.h*u-e.h,v=e.w*l-e.w;if(Qa(e,[Math.ceil(c/2),Math.ceil(v/2)]),f!=0||h!==0){var d=vh(e,f,h);Uo(e,d)}}}},qd=function(e,r){var a=e._private.cy,n=a.styleEnabled(),i=a.headless(),s=gt(),o=e._private,l=e.isNode(),u=e.isEdge(),f,h,c,v,d,y,p=o.rstyle,g=l&&n?e.pstyle("bounds-expansion").pfValue:[0],m=function(ue){return ue.pstyle("display").value!=="none"},b=!n||m(e)&&(!u||m(e.source())&&m(e.target()));if(b){var C=0,E=0;n&&r.includeOverlays&&(C=e.pstyle("overlay-opacity").value,C!==0&&(E=e.pstyle("overlay-padding").value));var w=0,x=0;n&&r.includeUnderlays&&(w=e.pstyle("underlay-opacity").value,w!==0&&(x=e.pstyle("underlay-padding").value));var T=Math.max(E,x),D=0,S=0;if(n&&(D=e.pstyle("width").pfValue,S=D/2),l&&r.includeNodes){var A=e.position();d=A.x,y=A.y;var L=e.outerWidth(),I=L/2,O=e.outerHeight(),k=O/2;f=d-I,h=d+I,c=y-k,v=y+k,Lt(s,f,c,h,v),n&&r.includeOutlines&&Xd(s,e)}else if(u&&r.includeEdges)if(n&&!i){var R=e.pstyle("curve-style").strValue;if(f=Math.min(p.srcX,p.midX,p.tgtX),h=Math.max(p.srcX,p.midX,p.tgtX),c=Math.min(p.srcY,p.midY,p.tgtY),v=Math.max(p.srcY,p.midY,p.tgtY),f-=S,h+=S,c-=S,v+=S,Lt(s,f,c,h,v),R==="haystack"){var M=p.haystackPts;if(M&&M.length===2){if(f=M[0].x,c=M[0].y,h=M[1].x,v=M[1].y,f>h){var P=f;f=h,h=P}if(c>v){var F=c;c=v,v=F}Lt(s,f-S,c-S,h+S,v+S)}}else if(R==="bezier"||R==="unbundled-bezier"||R.endsWith("segments")||R.endsWith("taxi")){var V;switch(R){case"bezier":case"unbundled-bezier":V=p.bezierPts;break;case"segments":case"taxi":case"round-segments":case"round-taxi":V=p.linePts;break}if(V!=null)for(var G=0;Gh){var ee=f;f=h,h=ee}if(c>v){var Y=c;c=v,v=Y}f-=S,h+=S,c-=S,v+=S,Lt(s,f,c,h,v)}if(n&&r.includeEdges&&u&&(_a(s,e,"mid-source"),_a(s,e,"mid-target"),_a(s,e,"source"),_a(s,e,"target")),n){var z=e.pstyle("ghost").value==="yes";if(z){var H=e.pstyle("ghost-offset-x").pfValue,Q=e.pstyle("ghost-offset-y").pfValue;Lt(s,s.x1+H,s.y1+Q,s.x2+H,s.y2+Q)}}var ne=o.bodyBounds=o.bodyBounds||{};ds(ne,s),Qa(ne,g),Za(ne,1),n&&(f=s.x1,h=s.x2,c=s.y1,v=s.y2,Lt(s,f-T,c-T,h+T,v+T));var ce=o.overlayBounds=o.overlayBounds||{};ds(ce,s),Qa(ce,g),Za(ce,1);var te=o.labelBounds=o.labelBounds||{};te.all!=null?ch(te.all):te.all=gt(),n&&r.includeLabels&&(r.includeMainLabels&&Xn(s,e,null),u&&(r.includeSourceLabels&&Xn(s,e,"source"),r.includeTargetLabels&&Xn(s,e,"target")))}return s.x1=Et(s.x1),s.y1=Et(s.y1),s.x2=Et(s.x2),s.y2=Et(s.y2),s.w=Et(s.x2-s.x1),s.h=Et(s.y2-s.y1),s.w>0&&s.h>0&&b&&(Qa(s,g),Za(s,1)),s},du=function(e){var r=0,a=function(s){return(s?1:0)<0&&arguments[0]!==void 0?arguments[0]:ug,e=arguments.length>1?arguments[1]:void 0,r=0;r=0;o--)s(o);return this};ir.removeAllListeners=function(){return this.removeListener("*")};ir.emit=ir.trigger=function(t,e,r){var a=this.listeners,n=a.length;return this.emitting++,Re(e)||(e=[e]),lg(this,function(i,s){r!=null&&(a=[{event:s.event,type:s.type,namespace:s.namespace,callback:r}],n=a.length);for(var o=function(f){var h=a[f];if(h.type===s.type&&(!h.namespace||h.namespace===s.namespace||h.namespace===og)&&i.eventMatches(i.context,h,s)){var c=[s];e!=null&&Vf(c,e),i.beforeEmit(i.context,h,s),h.conf&&h.conf.one&&(i.listeners=i.listeners.filter(function(y){return y!==h}));var v=i.callbackContext(i.context,h,s),d=h.callback.apply(v,c);i.afterEmit(i.context,h,s),d===!1&&(s.stopPropagation(),s.preventDefault())}},l=0;l1&&!s){var o=this.length-1,l=this[o],u=l._private.data.id;this[o]=void 0,this[e]=l,i.set(u,{ele:l,index:e})}return this.length--,this},unmergeOne:function(e){e=e[0];var r=this._private,a=e._private.data.id,n=r.map,i=n.get(a);if(!i)return this;var s=i.index;return this.unmergeAt(s),this},unmerge:function(e){var r=this._private.cy;if(!e)return this;if(e&&de(e)){var a=e;e=r.mutableElements().filter(a)}for(var n=0;n=0;r--){var a=this[r];e(a)&&this.unmergeAt(r)}return this},map:function(e,r){for(var a=[],n=this,i=0;ia&&(a=l,n=o)}return{value:a,ele:n}},min:function(e,r){for(var a=1/0,n,i=this,s=0;s=0&&i"u"?"undefined":He(Symbol))!=e&&He(Symbol.iterator)!=e;r&&(cn[Symbol.iterator]=function(){var a=this,n={value:void 0,done:!1},i=0,s=this.length;return bo({next:function(){return i1&&arguments[1]!==void 0?arguments[1]:!0,a=this[0],n=a.cy();if(n.styleEnabled()&&a){this.cleanStyle();var i=a._private.style[e];return i??(r?n.style().getDefaultProperty(e):null)}},numericStyle:function(e){var r=this[0];if(r.cy().styleEnabled()&&r){var a=r.pstyle(e);return a.pfValue!==void 0?a.pfValue:a.value}},numericStyleUnits:function(e){var r=this[0];if(r.cy().styleEnabled()&&r)return r.pstyle(e).units},renderedStyle:function(e){var r=this.cy();if(!r.styleEnabled())return this;var a=this[0];if(a)return r.style().getRenderedStyle(a,e)},style:function(e,r){var a=this.cy();if(!a.styleEnabled())return this;var n=!1,i=a.style();if(Ce(e)){var s=e;i.applyBypass(this,s,n),this.emitAndNotify("style")}else if(de(e))if(r===void 0){var o=this[0];return o?i.getStylePropertyValue(o,e):void 0}else i.applyBypass(this,e,r,n),this.emitAndNotify("style");else if(e===void 0){var l=this[0];return l?i.getRawStyle(l):void 0}return this},removeStyle:function(e){var r=this.cy();if(!r.styleEnabled())return this;var a=!1,n=r.style(),i=this;if(e===void 0)for(var s=0;s0&&e.push(f[0]),e.push(o[0])}return this.spawn(e,!0).filter(t)},"neighborhood"),closedNeighborhood:function(e){return this.neighborhood().add(this).filter(e)},openNeighborhood:function(e){return this.neighborhood(e)}});it.neighbourhood=it.neighborhood;it.closedNeighbourhood=it.closedNeighborhood;it.openNeighbourhood=it.openNeighborhood;be(it,{source:wt(function(e){var r=this[0],a;return r&&(a=r._private.source||r.cy().collection()),a&&e?a.filter(e):a},"source"),target:wt(function(e){var r=this[0],a;return r&&(a=r._private.target||r.cy().collection()),a&&e?a.filter(e):a},"target"),sources:Xs({attr:"source"}),targets:Xs({attr:"target"})});function Xs(t){return function(r){for(var a=[],n=0;n0);return s},component:function(){var e=this[0];return e.cy().mutableElements().components(e)[0]}});it.componentsOf=it.components;var et=function(e,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e===void 0){ze("A collection must have a reference to the core");return}var i=new Bt,s=!1;if(!r)r=[];else if(r.length>0&&Ce(r[0])&&!Da(r[0])){s=!0;for(var o=[],l=new Ur,u=0,f=r.length;u0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,a=r.cy(),n=a._private,i=[],s=[],o,l=0,u=r.length;l0){for(var F=o.length===r.length?r:new et(a,o),V=0;V0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,a=[],n={},i=r._private.cy;function s(O){for(var k=O._private.edges,R=0;R0&&(t?A.emitAndNotify("remove"):e&&A.emit("remove"));for(var L=0;L0?L=O:A=O;while(Math.abs(I)>s&&++k=i?m(S,k):R===0?k:C(S,A,A+u)}var w=!1;function x(){w=!0,(t!==e||r!==a)&&b()}var T=function(A){return w||x(),t===e&&r===a?A:A===0?0:A===1?1:p(E(A),e,a)};T.getControlPoints=function(){return[{x:t,y:e},{x:r,y:a}]};var D="generateBezier("+[t,e,r,a]+")";return T.toString=function(){return D},T}var Eg=function(){function t(a){return-a.tension*a.x-a.friction*a.v}function e(a,n,i){var s={x:a.x+i.dx*n,v:a.v+i.dv*n,tension:a.tension,friction:a.friction};return{dx:s.v,dv:t(s)}}function r(a,n){var i={dx:a.v,dv:t(a)},s=e(a,n*.5,i),o=e(a,n*.5,s),l=e(a,n,o),u=1/6*(i.dx+2*(s.dx+o.dx)+l.dx),f=1/6*(i.dv+2*(s.dv+o.dv)+l.dv);return a.x=a.x+u*n,a.v=a.v+f*n,a}return function a(n,i,s){var o={x:-1,v:0,tension:null,friction:null},l=[0],u=0,f=1/1e4,h=16/1e3,c,v,d;for(n=parseFloat(n)||500,i=parseFloat(i)||20,s=s||null,o.tension=n,o.friction=i,c=s!==null,c?(u=a(n,i),v=u/s*h):v=h;d=r(d||o,v),l.push(1+d.x),u+=16,Math.abs(d.x)>f&&Math.abs(d.v)>f;);return c?function(y){return l[y*(l.length-1)|0]}:u}}(),ke=function(e,r,a,n){var i=bg(e,r,a,n);return function(s,o,l){return s+(o-s)*i(l)}},en={linear:function(e,r,a){return e+(r-e)*a},ease:ke(.25,.1,.25,1),"ease-in":ke(.42,0,1,1),"ease-out":ke(0,0,.58,1),"ease-in-out":ke(.42,0,.58,1),"ease-in-sine":ke(.47,0,.745,.715),"ease-out-sine":ke(.39,.575,.565,1),"ease-in-out-sine":ke(.445,.05,.55,.95),"ease-in-quad":ke(.55,.085,.68,.53),"ease-out-quad":ke(.25,.46,.45,.94),"ease-in-out-quad":ke(.455,.03,.515,.955),"ease-in-cubic":ke(.55,.055,.675,.19),"ease-out-cubic":ke(.215,.61,.355,1),"ease-in-out-cubic":ke(.645,.045,.355,1),"ease-in-quart":ke(.895,.03,.685,.22),"ease-out-quart":ke(.165,.84,.44,1),"ease-in-out-quart":ke(.77,0,.175,1),"ease-in-quint":ke(.755,.05,.855,.06),"ease-out-quint":ke(.23,1,.32,1),"ease-in-out-quint":ke(.86,0,.07,1),"ease-in-expo":ke(.95,.05,.795,.035),"ease-out-expo":ke(.19,1,.22,1),"ease-in-out-expo":ke(1,0,0,1),"ease-in-circ":ke(.6,.04,.98,.335),"ease-out-circ":ke(.075,.82,.165,1),"ease-in-out-circ":ke(.785,.135,.15,.86),spring:function(e,r,a){if(a===0)return en.linear;var n=Eg(e,r,a);return function(i,s,o){return i+(s-i)*n(o)}},"cubic-bezier":ke};function Ks(t,e,r,a,n){if(a===1||e===r)return r;var i=n(e,r,a);return t==null||((t.roundValue||t.color)&&(i=Math.round(i)),t.min!==void 0&&(i=Math.max(i,t.min)),t.max!==void 0&&(i=Math.min(i,t.max))),i}function Zs(t,e){return t.pfValue!=null||t.value!=null?t.pfValue!=null&&(e==null||e.type.units!=="%")?t.pfValue:t.value:t}function Lr(t,e,r,a,n){var i=n!=null?n.type:null;r<0?r=0:r>1&&(r=1);var s=Zs(t,n),o=Zs(e,n);if(ie(s)&&ie(o))return Ks(i,s,o,r,a);if(Re(s)&&Re(o)){for(var l=[],u=0;u0?(v==="spring"&&d.push(s.duration),s.easingImpl=en[v].apply(null,d)):s.easingImpl=en[v]}var y=s.easingImpl,p;if(s.duration===0?p=1:p=(r-l)/s.duration,s.applying&&(p=s.progress),p<0?p=0:p>1&&(p=1),s.delay==null){var g=s.startPosition,m=s.position;if(m&&n&&!t.locked()){var b={};ia(g.x,m.x)&&(b.x=Lr(g.x,m.x,p,y)),ia(g.y,m.y)&&(b.y=Lr(g.y,m.y,p,y)),t.position(b)}var C=s.startPan,E=s.pan,w=i.pan,x=E!=null&&a;x&&(ia(C.x,E.x)&&(w.x=Lr(C.x,E.x,p,y)),ia(C.y,E.y)&&(w.y=Lr(C.y,E.y,p,y)),t.emit("pan"));var T=s.startZoom,D=s.zoom,S=D!=null&&a;S&&(ia(T,D)&&(i.zoom=ya(i.minZoom,Lr(T,D,p,y),i.maxZoom)),t.emit("zoom")),(x||S)&&t.emit("viewport");var A=s.style;if(A&&A.length>0&&n){for(var L=0;L=0;x--){var T=w[x];T()}w.splice(0,w.length)},m=v.length-1;m>=0;m--){var b=v[m],C=b._private;if(C.stopped){v.splice(m,1),C.hooked=!1,C.playing=!1,C.started=!1,g(C.frames);continue}!C.playing&&!C.applying||(C.playing&&C.applying&&(C.applying=!1),C.started||xg(f,b,t),wg(f,b,t,h),C.applying&&(C.applying=!1),g(C.frames),C.step!=null&&C.step(t),b.completed()&&(v.splice(m,1),C.hooked=!1,C.playing=!1,C.started=!1,g(C.completes)),y=!0)}return!h&&v.length===0&&d.length===0&&a.push(f),y}for(var i=!1,s=0;s0?e.notify("draw",r):e.notify("draw")),r.unmerge(a),e.emit("step")}var Tg={animate:Oe.animate(),animation:Oe.animation(),animated:Oe.animated(),clearQueue:Oe.clearQueue(),delay:Oe.delay(),delayAnimation:Oe.delayAnimation(),stop:Oe.stop(),addToAnimationPool:function(e){var r=this;r.styleEnabled()&&r._private.aniEles.merge(e)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var e=this;if(e._private.animationsRunning=!0,!e.styleEnabled())return;function r(){e._private.animationsRunning&&on(function(i){Qs(i,e),r()})}var a=e.renderer();a&&a.beforeRender?a.beforeRender(function(i,s){Qs(s,e)},a.beforeRenderPriorities.animations):r()}},Cg={qualifierCompare:function(e,r){return e==null||r==null?e==null&&r==null:e.sameText(r)},eventMatches:function(e,r,a){var n=r.qualifier;return n!=null?e!==a.target&&Da(a.target)&&n.matches(a.target):!0},addEventFields:function(e,r){r.cy=e,r.target=e},callbackContext:function(e,r,a){return r.qualifier!=null?a.target:e}},qa=function(e){return de(e)?new ar(e):e},Du={createEmitter:function(){var e=this._private;return e.emitter||(e.emitter=new Ln(Cg,this)),this},emitter:function(){return this._private.emitter},on:function(e,r,a){return this.emitter().on(e,qa(r),a),this},removeListener:function(e,r,a){return this.emitter().removeListener(e,qa(r),a),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,r,a){return this.emitter().one(e,qa(r),a),this},once:function(e,r,a){return this.emitter().one(e,qa(r),a),this},emit:function(e,r){return this.emitter().emit(e,r),this},emitAndNotify:function(e,r){return this.emit(e),this.notify(e,r),this}};Oe.eventAliasesOn(Du);var ni={png:function(e){var r=this._private.renderer;return e=e||{},r.png(e)},jpg:function(e){var r=this._private.renderer;return e=e||{},e.bg=e.bg||"#fff",r.jpg(e)}};ni.jpeg=ni.jpg;var tn={layout:function(e){var r=this;if(e==null){ze("Layout options must be specified to make a layout");return}if(e.name==null){ze("A `name` must be specified to make a layout");return}var a=e.name,n=r.extension("layout",a);if(n==null){ze("No such layout `"+a+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var i;de(e.eles)?i=r.$(e.eles):i=e.eles!=null?e.eles:r.$();var s=new n(be({},e,{cy:r,eles:i}));return s}};tn.createLayout=tn.makeLayout=tn.layout;var Dg={notify:function(e,r){var a=this._private;if(this.batching()){a.batchNotifications=a.batchNotifications||{};var n=a.batchNotifications[e]=a.batchNotifications[e]||this.collection();r!=null&&n.merge(r);return}if(a.notificationsEnabled){var i=this.renderer();this.destroyed()||!i||i.notify(e,r)}},notifications:function(e){var r=this._private;return e===void 0?r.notificationsEnabled:(r.notificationsEnabled=!!e,this)},noNotifications:function(e){this.notifications(!1),e(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var e=this._private;return e.batchCount==null&&(e.batchCount=0),e.batchCount===0&&(e.batchStyleEles=this.collection(),e.batchNotifications={}),e.batchCount++,this},endBatch:function(){var e=this._private;if(e.batchCount===0)return this;if(e.batchCount--,e.batchCount===0){e.batchStyleEles.updateStyle();var r=this.renderer();Object.keys(e.batchNotifications).forEach(function(a){var n=e.batchNotifications[a];n.empty()?r.notify(a):r.notify(a,n)})}return this},batch:function(e){return this.startBatch(),e(),this.endBatch(),this},batchData:function(e){var r=this;return this.batch(function(){for(var a=Object.keys(e),n=0;n0;)r.removeChild(r.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach(function(a){var n=a._private;n.rscratch={},n.rstyle={},n.animation.current=[],n.animation.queue=[]})},onRender:function(e){return this.on("render",e)},offRender:function(e){return this.off("render",e)}};ii.invalidateDimensions=ii.resize;var rn={collection:function(e,r){return de(e)?this.$(e):pt(e)?e.collection():Re(e)?(r||(r={}),new et(this,e,r.unique,r.removed)):new et(this)},nodes:function(e){var r=this.$(function(a){return a.isNode()});return e?r.filter(e):r},edges:function(e){var r=this.$(function(a){return a.isEdge()});return e?r.filter(e):r},$:function(e){var r=this._private.elements;return e?r.filter(e):r.spawnSelf()},mutableElements:function(){return this._private.elements}};rn.elements=rn.filter=rn.$;var ot={},ha="t",Lg="f";ot.apply=function(t){for(var e=this,r=e._private,a=r.cy,n=a.collection(),i=0;i0;if(c||h&&v){var d=void 0;c&&v||c?d=u.properties:v&&(d=u.mappedProperties);for(var y=0;y1&&(C=1),o.color){var w=a.valueMin[0],x=a.valueMax[0],T=a.valueMin[1],D=a.valueMax[1],S=a.valueMin[2],A=a.valueMax[2],L=a.valueMin[3]==null?1:a.valueMin[3],I=a.valueMax[3]==null?1:a.valueMax[3],O=[Math.round(w+(x-w)*C),Math.round(T+(D-T)*C),Math.round(S+(A-S)*C),Math.round(L+(I-L)*C)];i={bypass:a.bypass,name:a.name,value:O,strValue:"rgb("+O[0]+", "+O[1]+", "+O[2]+")"}}else if(o.number){var k=a.valueMin+(a.valueMax-a.valueMin)*C;i=this.parse(a.name,k,a.bypass,c)}else return!1;if(!i)return y(),!1;i.mapping=a,a=i;break}case s.data:{for(var R=a.field.split("."),M=h.data,P=0;P0&&i>0){for(var o={},l=!1,u=0;u0?t.delayAnimation(s).play().promise().then(b):b()}).then(function(){return t.animation({style:o,duration:i,easing:t.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){r.removeBypasses(t,n),t.emitAndNotify("style"),a.transitioning=!1})}else a.transitioning&&(this.removeBypasses(t,n),t.emitAndNotify("style"),a.transitioning=!1)};ot.checkTrigger=function(t,e,r,a,n,i){var s=this.properties[e],o=n(s);o!=null&&o(r,a)&&i(s)};ot.checkZOrderTrigger=function(t,e,r,a){var n=this;this.checkTrigger(t,e,r,a,function(i){return i.triggersZOrder},function(){n._private.cy.notify("zorder",t)})};ot.checkBoundsTrigger=function(t,e,r,a){this.checkTrigger(t,e,r,a,function(n){return n.triggersBounds},function(n){t.dirtyCompoundBoundsCache(),t.dirtyBoundingBoxCache(),n.triggersBoundsOfParallelBeziers&&e==="curve-style"&&(r==="bezier"||a==="bezier")&&t.parallelEdges().forEach(function(i){i.isBundledBezier()&&i.dirtyBoundingBoxCache()}),n.triggersBoundsOfConnectedEdges&&e==="display"&&(r==="none"||a==="none")&&t.connectedEdges().forEach(function(i){i.dirtyBoundingBoxCache()})})};ot.checkTriggers=function(t,e,r,a){t.dirtyStyleCache(),this.checkZOrderTrigger(t,e,r,a),this.checkBoundsTrigger(t,e,r,a)};var Oa={};Oa.applyBypass=function(t,e,r,a){var n=this,i=[],s=!0;if(e==="*"||e==="**"){if(r!==void 0)for(var o=0;on.length?a=a.substr(n.length):a=""}function l(){i.length>s.length?i=i.substr(s.length):i=""}for(;;){var u=a.match(/^\s*$/);if(u)break;var f=a.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!f){Ne("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+a);break}n=f[0];var h=f[1];if(h!=="core"){var c=new ar(h);if(c.invalid){Ne("Skipping parsing of block: Invalid selector found in string stylesheet: "+h),o();continue}}var v=f[2],d=!1;i=v;for(var y=[];;){var p=i.match(/^\s*$/);if(p)break;var g=i.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!g){Ne("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+v),d=!0;break}s=g[0];var m=g[1],b=g[2],C=e.properties[m];if(!C){Ne("Skipping property: Invalid property name in: "+s),l();continue}var E=r.parse(m,b);if(!E){Ne("Skipping property: Invalid property definition in: "+s),l();continue}y.push({name:m,val:b}),l()}if(d){o();break}r.selector(h);for(var w=0;w=7&&e[0]==="d"&&(f=new RegExp(o.data.regex).exec(e))){if(r)return!1;var c=o.data;return{name:t,value:f,strValue:""+e,mapped:c,field:f[1],bypass:r}}else if(e.length>=10&&e[0]==="m"&&(h=new RegExp(o.mapData.regex).exec(e))){if(r||u.multiple)return!1;var v=o.mapData;if(!(u.color||u.number))return!1;var d=this.parse(t,h[4]);if(!d||d.mapped)return!1;var y=this.parse(t,h[5]);if(!y||y.mapped)return!1;if(d.pfValue===y.pfValue||d.strValue===y.strValue)return Ne("`"+t+": "+e+"` is not a valid mapper because the output range is zero; converting to `"+t+": "+d.strValue+"`"),this.parse(t,d.strValue);if(u.color){var p=d.value,g=y.value,m=p[0]===g[0]&&p[1]===g[1]&&p[2]===g[2]&&(p[3]===g[3]||(p[3]==null||p[3]===1)&&(g[3]==null||g[3]===1));if(m)return!1}return{name:t,value:h,strValue:""+e,mapped:v,field:h[1],fieldMin:parseFloat(h[2]),fieldMax:parseFloat(h[3]),valueMin:d.value,valueMax:y.value,bypass:r}}}if(u.multiple&&a!=="multiple"){var b;if(l?b=e.split(/\s+/):Re(e)?b=e:b=[e],u.evenMultiple&&b.length%2!==0)return null;for(var C=[],E=[],w=[],x="",T=!1,D=0;D0?" ":"")+S.strValue}return u.validate&&!u.validate(C,E)?null:u.singleEnum&&T?C.length===1&&de(C[0])?{name:t,value:C[0],strValue:C[0],bypass:r}:null:{name:t,value:C,pfValue:w,strValue:x,bypass:r,units:E}}var A=function(){for(var z=0;zu.max||u.strictMax&&e===u.max))return null;var R={name:t,value:e,strValue:""+e+(L||""),units:L,bypass:r};return u.unitless||L!=="px"&&L!=="em"?R.pfValue=e:R.pfValue=L==="px"||!L?e:this.getEmSizeInPixels()*e,(L==="ms"||L==="s")&&(R.pfValue=L==="ms"?e:1e3*e),(L==="deg"||L==="rad")&&(R.pfValue=L==="rad"?e:uh(e)),L==="%"&&(R.pfValue=e/100),R}else if(u.propList){var M=[],P=""+e;if(P!=="none"){for(var F=P.split(/\s*,\s*|\s+/),V=0;V0&&o>0&&!isNaN(a.w)&&!isNaN(a.h)&&a.w>0&&a.h>0){l=Math.min((s-2*r)/a.w,(o-2*r)/a.h),l=l>this._private.maxZoom?this._private.maxZoom:l,l=l=a.minZoom&&(a.maxZoom=r),this},minZoom:function(e){return e===void 0?this._private.minZoom:this.zoomRange({min:e})},maxZoom:function(e){return e===void 0?this._private.maxZoom:this.zoomRange({max:e})},getZoomedViewport:function(e){var r=this._private,a=r.pan,n=r.zoom,i,s,o=!1;if(r.zoomingEnabled||(o=!0),ie(e)?s=e:Ce(e)&&(s=e.level,e.position!=null?i=wn(e.position,n,a):e.renderedPosition!=null&&(i=e.renderedPosition),i!=null&&!r.panningEnabled&&(o=!0)),s=s>r.maxZoom?r.maxZoom:s,s=sr.maxZoom||!r.zoomingEnabled?s=!0:(r.zoom=l,i.push("zoom"))}if(n&&(!s||!e.cancelOnFailedZoom)&&r.panningEnabled){var u=e.pan;ie(u.x)&&(r.pan.x=u.x,o=!1),ie(u.y)&&(r.pan.y=u.y,o=!1),o||i.push("pan")}return i.length>0&&(i.push("viewport"),this.emit(i.join(" ")),this.notify("viewport")),this},center:function(e){var r=this.getCenterPan(e);return r&&(this._private.pan=r,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(e,r){if(this._private.panningEnabled){if(de(e)){var a=e;e=this.mutableElements().filter(a)}else pt(e)||(e=this.mutableElements());if(e.length!==0){var n=e.boundingBox(),i=this.width(),s=this.height();r=r===void 0?this._private.zoom:r;var o={x:(i-r*(n.x1+n.x2))/2,y:(s-r*(n.y1+n.y2))/2};return o}}},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 e=this._private,r=e.container,a=this;return e.sizeCache=e.sizeCache||(r?function(){var n=a.window().getComputedStyle(r),i=function(o){return parseFloat(n.getPropertyValue(o))};return{width:r.clientWidth-i("padding-left")-i("padding-right"),height:r.clientHeight-i("padding-top")-i("padding-bottom")}}():{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var e=this._private.pan,r=this._private.zoom,a=this.renderedExtent(),n={x1:(a.x1-e.x)/r,x2:(a.x2-e.x)/r,y1:(a.y1-e.y)/r,y2:(a.y2-e.y)/r};return n.w=n.x2-n.x1,n.h=n.y2-n.y1,n},renderedExtent:function(){var e=this.width(),r=this.height();return{x1:0,y1:0,x2:e,y2:r,w:e,h:r}},multiClickDebounceTime:function(e){if(e)this._private.multiClickDebounceTime=e;else return this._private.multiClickDebounceTime;return this}};Er.centre=Er.center;Er.autolockNodes=Er.autolock;Er.autoungrabifyNodes=Er.autoungrabify;var xa={data:Oe.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:Oe.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:Oe.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:Oe.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};xa.attr=xa.data;xa.removeAttr=xa.removeData;var Ta=function(e){var r=this;e=be({},e);var a=e.container;a&&!sn(a)&&sn(a[0])&&(a=a[0]);var n=a?a._cyreg:null;n=n||{},n&&n.cy&&(n.cy.destroy(),n={});var i=n.readies=n.readies||[];a&&(a._cyreg=n),n.cy=r;var s=Ye!==void 0&&a!==void 0&&!e.headless,o=e;o.layout=be({name:s?"grid":"null"},o.layout),o.renderer=be({name:s?"canvas":"null"},o.renderer);var l=function(d,y,p){return y!==void 0?y:p!==void 0?p:d},u=this._private={container:a,ready:!1,options:o,elements:new et(this),listeners:[],aniEles:new et(this),data:o.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:l(!0,o.zoomingEnabled),userZoomingEnabled:l(!0,o.userZoomingEnabled),panningEnabled:l(!0,o.panningEnabled),userPanningEnabled:l(!0,o.userPanningEnabled),boxSelectionEnabled:l(!0,o.boxSelectionEnabled),autolock:l(!1,o.autolock,o.autolockNodes),autoungrabify:l(!1,o.autoungrabify,o.autoungrabifyNodes),autounselectify:l(!1,o.autounselectify),styleEnabled:o.styleEnabled===void 0?s:o.styleEnabled,zoom:ie(o.zoom)?o.zoom:1,pan:{x:Ce(o.pan)&&ie(o.pan.x)?o.pan.x:0,y:Ce(o.pan)&&ie(o.pan.y)?o.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:l(250,o.multiClickDebounceTime)};this.createEmitter(),this.selectionType(o.selectionType),this.zoomRange({min:o.minZoom,max:o.maxZoom});var f=function(d,y){var p=d.some(Il);if(p)return $r.all(d).then(y);y(d)};u.styleEnabled&&r.setStyle([]);var h=be({},o,o.renderer);r.initRenderer(h);var c=function(d,y,p){r.notifications(!1);var g=r.mutableElements();g.length>0&&g.remove(),d!=null&&(Ce(d)||Re(d))&&r.add(d),r.one("layoutready",function(b){r.notifications(!0),r.emit(b),r.one("load",y),r.emitAndNotify("load")}).one("layoutstop",function(){r.one("done",p),r.emit("done")});var m=be({},r._private.options.layout);m.eles=r.elements(),r.layout(m).run()};f([o.style,o.elements],function(v){var d=v[0],y=v[1];u.styleEnabled&&r.style().append(d),c(y,function(){r.startAnimationLoop(),u.ready=!0,Ge(o.ready)&&r.on("ready",o.ready);for(var p=0;p0,l=gt(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),u;if(pt(e.roots))u=e.roots;else if(Re(e.roots)){for(var f=[],h=0;h0;){var k=O(),R=S(k,L);if(R)k.outgoers().filter(function(te){return te.isNode()&&a.has(te)}).forEach(I);else if(R===null){Ne("Detected double maximal shift for node `"+k.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}D();var M=0;if(e.avoidOverlap)for(var P=0;P0&&g[0].length<=3?we/2:0),N=2*Math.PI/g[ve].length*fe;return ve===0&&g[0].length===1&&(j=1),{x:Q.x+j*Math.cos(N),y:Q.y+j*Math.sin(N)}}else{var De={x:Q.x+(fe+1-(pe+1)/2)*Ae,y:(ve+1)*xe};return De}};return a.nodes().layoutPositions(this,e,ce),this};var Mg={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(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function Lu(t){this.options=be({},Mg,t)}Lu.prototype.run=function(){var t=this.options,e=t,r=t.cy,a=e.eles,n=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,i=a.nodes().not(":parent");e.sort&&(i=i.sort(e.sort));for(var s=gt(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),o={x:s.x1+s.w/2,y:s.y1+s.h/2},l=e.sweep===void 0?2*Math.PI-2*Math.PI/i.length:e.sweep,u=l/Math.max(1,i.length-1),f,h=0,c=0;c1&&e.avoidOverlap){h*=1.75;var g=Math.cos(u)-Math.cos(0),m=Math.sin(u)-Math.sin(0),b=Math.sqrt(h*h/(g*g+m*m));f=Math.max(b,f)}var C=function(w,x){var T=e.startAngle+x*u*(n?1:-1),D=f*Math.cos(T),S=f*Math.sin(T),A={x:o.x+D,y:o.y+S};return A};return a.nodes().layoutPositions(this,e,C),this};var Rg={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(e){return e.degree()},levelWidth:function(e){return e.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function Au(t){this.options=be({},Rg,t)}Au.prototype.run=function(){for(var t=this.options,e=t,r=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,a=t.cy,n=e.eles,i=n.nodes().not(":parent"),s=gt(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:a.width(),h:a.height()}),o={x:s.x1+s.w/2,y:s.y1+s.h/2},l=[],u=0,f=0;f0){var E=Math.abs(m[0].value-C.value);E>=p&&(m=[],g.push(m))}m.push(C)}var w=u+e.minNodeSpacing;if(!e.avoidOverlap){var x=g.length>0&&g[0].length>1,T=Math.min(s.w,s.h)/2-w,D=T/(g.length+x?1:0);w=Math.min(w,D)}for(var S=0,A=0;A1&&e.avoidOverlap){var k=Math.cos(O)-Math.cos(0),R=Math.sin(O)-Math.sin(0),M=Math.sqrt(w*w/(k*k+R*R));S=Math.max(M,S)}L.r=S,S+=w}if(e.equidistant){for(var P=0,F=0,V=0;V=t.numIter||(Ug(a,t),a.temperature=a.temperature*t.coolingFactor,a.temperature=t.animationThreshold&&i(),on(h)}};f()}else{for(;u;)u=s(l),l++;eo(a,t),o()}return this};Mn.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this};Mn.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var Pg=function(e,r,a){for(var n=a.eles.edges(),i=a.eles.nodes(),s=gt(a.boundingBox?a.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),o={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:i.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:n.size(),temperature:a.initialTemp,clientWidth:s.w,clientHeight:s.h,boundingBox:s},l=a.eles.components(),u={},f=0;f0){o.graphSet.push(T);for(var f=0;fn.count?0:n.graph},Fg=function t(e,r,a,n){var i=n.graphSet[a];if(-10)var h=n.nodeOverlap*f,c=Math.sqrt(o*o+l*l),v=h*o/c,d=h*l/c;else var y=dn(e,o,l),p=dn(r,-1*o,-1*l),g=p.x-y.x,m=p.y-y.y,b=g*g+m*m,c=Math.sqrt(b),h=(e.nodeRepulsion+r.nodeRepulsion)/b,v=h*g/c,d=h*m/c;e.isLocked||(e.offsetX-=v,e.offsetY-=d),r.isLocked||(r.offsetX+=v,r.offsetY+=d)}},_g=function(e,r,a,n){if(a>0)var i=e.maxX-r.minX;else var i=r.maxX-e.minX;if(n>0)var s=e.maxY-r.minY;else var s=r.maxY-e.minY;return i>=0&&s>=0?Math.sqrt(i*i+s*s):0},dn=function(e,r,a){var n=e.positionX,i=e.positionY,s=e.height||1,o=e.width||1,l=a/r,u=s/o,f={};return r===0&&0a?(f.x=n,f.y=i+s/2,f):0r&&-1*u<=l&&l<=u?(f.x=n-o/2,f.y=i-o*a/2/r,f):0=u)?(f.x=n+s*r/2/a,f.y=i+s/2,f):(0>a&&(l<=-1*u||l>=u)&&(f.x=n-s*r/2/a,f.y=i-s/2),f)},Hg=function(e,r){for(var a=0;aa){var p=r.gravity*v/y,g=r.gravity*d/y;c.offsetX+=p,c.offsetY+=g}}}}},qg=function(e,r){var a=[],n=0,i=-1;for(a.push.apply(a,e.graphSet[0]),i+=e.graphSet[0].length;n<=i;){var s=a[n++],o=e.idToIndex[s],l=e.layoutNodes[o],u=l.children;if(0a)var i={x:a*e/n,y:a*r/n};else var i={x:e,y:r};return i},Zg=function t(e,r){var a=e.parentId;if(a!=null){var n=r.layoutNodes[r.idToIndex[a]],i=!1;if((n.maxX==null||e.maxX+n.padRight>n.maxX)&&(n.maxX=e.maxX+n.padRight,i=!0),(n.minX==null||e.minX-n.padLeftn.maxY)&&(n.maxY=e.maxY+n.padBottom,i=!0),(n.minY==null||e.minY-n.padTopg&&(d+=p+r.componentSpacing,v=0,y=0,p=0)}}},Qg={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(e){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function Nu(t){this.options=be({},Qg,t)}Nu.prototype.run=function(){var t=this.options,e=t,r=t.cy,a=e.eles,n=a.nodes().not(":parent");e.sort&&(n=n.sort(e.sort));var i=gt(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()});if(i.h===0||i.w===0)a.nodes().layoutPositions(this,e,function($){return{x:i.x1,y:i.y1}});else{var s=n.size(),o=Math.sqrt(s*i.h/i.w),l=Math.round(o),u=Math.round(i.w/i.h*o),f=function(q){if(q==null)return Math.min(l,u);var Z=Math.min(l,u);Z==l?l=q:u=q},h=function(q){if(q==null)return Math.max(l,u);var Z=Math.max(l,u);Z==l?l=q:u=q},c=e.rows,v=e.cols!=null?e.cols:e.columns;if(c!=null&&v!=null)l=c,u=v;else if(c!=null&&v==null)l=c,u=Math.ceil(s/l);else if(c==null&&v!=null)u=v,l=Math.ceil(s/u);else if(u*l>s){var d=f(),y=h();(d-1)*y>=s?f(d-1):(y-1)*d>=s&&h(y-1)}else for(;u*l=s?h(g+1):f(p+1)}var m=i.w/u,b=i.h/l;if(e.condense&&(m=0,b=0),e.avoidOverlap)for(var C=0;C=u&&(k=0,O++)},M={},P=0;P(k=wh(t,e,R[M],R[M+1],R[M+2],R[M+3])))return p(x,k),!0}else if(D.edgeType==="bezier"||D.edgeType==="multibezier"||D.edgeType==="self"||D.edgeType==="compound"){for(var R=D.allpts,M=0;M+5(k=Eh(t,e,R[M],R[M+1],R[M+2],R[M+3],R[M+4],R[M+5])))return p(x,k),!0}for(var P=P||T.source,F=F||T.target,V=n.getArrowWidth(S,A),G=[{name:"source",x:D.arrowStartX,y:D.arrowStartY,angle:D.srcArrowAngle},{name:"target",x:D.arrowEndX,y:D.arrowEndY,angle:D.tgtArrowAngle},{name:"mid-source",x:D.midX,y:D.midY,angle:D.midsrcArrowAngle},{name:"mid-target",x:D.midX,y:D.midY,angle:D.midtgtArrowAngle}],M=0;M0&&(g(P),g(F))}function b(x,T,D){return At(x,T,D)}function C(x,T){var D=x._private,S=c,A;T?A=T+"-":A="",x.boundingBox();var L=D.labelBounds[T||"main"],I=x.pstyle(A+"label").value,O=x.pstyle("text-events").strValue==="yes";if(!(!O||!I)){var k=b(D.rscratch,"labelX",T),R=b(D.rscratch,"labelY",T),M=b(D.rscratch,"labelAngle",T),P=x.pstyle(A+"text-margin-x").pfValue,F=x.pstyle(A+"text-margin-y").pfValue,V=L.x1-S-P,G=L.x2+S-P,B=L.y1-S-F,$=L.y2+S-F;if(M){var q=Math.cos(M),Z=Math.sin(M),W=function(ce,te){return ce=ce-k,te=te-R,{x:ce*q-te*Z+k,y:ce*Z+te*q+R}},ee=W(V,B),Y=W(V,$),z=W(G,B),H=W(G,$),Q=[ee.x+P,ee.y+F,z.x+P,z.y+F,H.x+P,H.y+F,Y.x+P,Y.y+F];if(dt(t,e,Q))return p(x),!0}else if(Gr(L,t,e))return p(x),!0}}for(var E=s.length-1;E>=0;E--){var w=s[E];w.isNode()?g(w)||C(w):m(w)||C(w)||C(w,"source")||C(w,"target")}return o};xr.getAllInBox=function(t,e,r,a){var n=this.getCachedZSortedEles().interactive,i=[],s=Math.min(t,r),o=Math.max(t,r),l=Math.min(e,a),u=Math.max(e,a);t=s,r=o,e=l,a=u;for(var f=gt({x1:t,y1:e,x2:r,y2:a}),h=0;h0?-(Math.PI-e.ang):Math.PI+e.ang},ap=function(e,r,a,n,i){if(e!==io?so(r,e,kt):rp(bt,kt),so(r,a,bt),ao=kt.nx*bt.ny-kt.ny*bt.nx,no=kt.nx*bt.nx-kt.ny*-bt.ny,Ut=Math.asin(Math.max(-1,Math.min(1,ao))),Math.abs(Ut)<1e-6){si=r.x,oi=r.y,cr=Or=0;return}vr=1,an=!1,no<0?Ut<0?Ut=Math.PI+Ut:(Ut=Math.PI-Ut,vr=-1,an=!0):Ut>0&&(vr=-1,an=!0),r.radius!==void 0?Or=r.radius:Or=n,ur=Ut/2,Wa=Math.min(kt.len/2,bt.len/2),i?(Rt=Math.abs(Math.cos(ur)*Or/Math.sin(ur)),Rt>Wa?(Rt=Wa,cr=Math.abs(Rt*Math.sin(ur)/Math.cos(ur))):cr=Or):(Rt=Math.min(Wa,Or),cr=Math.abs(Rt*Math.sin(ur)/Math.cos(ur))),ui=r.x+bt.nx*Rt,li=r.y+bt.ny*Rt,si=ui-bt.ny*cr*vr,oi=li+bt.nx*cr*vr,ku=r.x+kt.nx*Rt,Pu=r.y+kt.ny*Rt,io=r};function Bu(t,e){e.radius===0?t.lineTo(e.cx,e.cy):t.arc(e.cx,e.cy,e.radius,e.startAngle,e.endAngle,e.counterClockwise)}function Pi(t,e,r,a){var n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;return a===0||e.radius===0?{cx:e.x,cy:e.y,radius:0,startX:e.x,startY:e.y,stopX:e.x,stopY:e.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0}:(ap(t,e,r,a,n),{cx:si,cy:oi,radius:cr,startX:ku,startY:Pu,stopX:ui,stopY:li,startAngle:kt.ang+Math.PI/2*vr,endAngle:bt.ang-Math.PI/2*vr,counterClockwise:an})}var ut={};ut.findMidptPtsEtc=function(t,e){var r=e.posPts,a=e.intersectionPts,n=e.vectorNormInverse,i,s=t.pstyle("source-endpoint"),o=t.pstyle("target-endpoint"),l=s.units!=null&&o.units!=null,u=function(E,w,x,T){var D=T-w,S=x-E,A=Math.sqrt(S*S+D*D);return{x:-D/A,y:S/A}},f=t.pstyle("edge-distances").value;switch(f){case"node-position":i=r;break;case"intersection":i=a;break;case"endpoints":{if(l){var h=this.manualEndptToPx(t.source()[0],s),c=St(h,2),v=c[0],d=c[1],y=this.manualEndptToPx(t.target()[0],o),p=St(y,2),g=p[0],m=p[1],b={x1:v,y1:d,x2:g,y2:m};n=u(v,d,g,m),i=b}else Ne("Edge ".concat(t.id()," has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint. Falling back on edge-distances:intersection (default).")),i=a;break}}return{midptPts:i,vectorNormInverse:n}};ut.findHaystackPoints=function(t){for(var e=0;e0?Math.max(ye-me,0):Math.min(ye+me,0)},I=L(S,T),O=L(A,D),k=!1;m===u?g=Math.abs(I)>Math.abs(O)?n:a:m===l||m===o?(g=a,k=!0):(m===i||m===s)&&(g=n,k=!0);var R=g===a,M=R?O:I,P=R?A:S,F=Vo(P),V=!1;!(k&&(C||w))&&(m===o&&P<0||m===l&&P>0||m===i&&P>0||m===s&&P<0)&&(F*=-1,M=F*Math.abs(M),V=!0);var G;if(C){var B=E<0?1+E:E;G=B*M}else{var $=E<0?M:0;G=$+E*F}var q=function(ye){return Math.abs(ye)=Math.abs(M)},Z=q(G),W=q(Math.abs(M)-Math.abs(G)),ee=Z||W;if(ee&&!V)if(R){var Y=Math.abs(P)<=c/2,z=Math.abs(S)<=v/2;if(Y){var H=(f.x1+f.x2)/2,Q=f.y1,ne=f.y2;r.segpts=[H,Q,H,ne]}else if(z){var ce=(f.y1+f.y2)/2,te=f.x1,se=f.x2;r.segpts=[te,ce,se,ce]}else r.segpts=[f.x1,f.y2]}else{var ue=Math.abs(P)<=h/2,ve=Math.abs(A)<=d/2;if(ue){var fe=(f.y1+f.y2)/2,pe=f.x1,Ae=f.x2;r.segpts=[pe,fe,Ae,fe]}else if(ve){var xe=(f.x1+f.x2)/2,we=f.y1,De=f.y2;r.segpts=[xe,we,xe,De]}else r.segpts=[f.x2,f.y1]}else if(R){var j=f.y1+G+(p?c/2*F:0),N=f.x1,U=f.x2;r.segpts=[N,j,U,j]}else{var J=f.x1+G+(p?h/2*F:0),X=f.y1,_=f.y2;r.segpts=[J,X,J,_]}if(r.isRound){var ae=t.pstyle("taxi-radius").value,K=t.pstyle("radius-type").value[0]==="arc-radius";r.radii=new Array(r.segpts.length/2).fill(ae),r.isArcRadius=new Array(r.segpts.length/2).fill(K)}};ut.tryToCorrectInvalidPoints=function(t,e){var r=t._private.rscratch;if(r.edgeType==="bezier"){var a=e.srcPos,n=e.tgtPos,i=e.srcW,s=e.srcH,o=e.tgtW,l=e.tgtH,u=e.srcShape,f=e.tgtShape,h=e.srcCornerRadius,c=e.tgtCornerRadius,v=e.srcRs,d=e.tgtRs,y=!ie(r.startX)||!ie(r.startY),p=!ie(r.arrowStartX)||!ie(r.arrowStartY),g=!ie(r.endX)||!ie(r.endY),m=!ie(r.arrowEndX)||!ie(r.arrowEndY),b=3,C=this.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.arrowShapeWidth,E=b*C,w=yr({x:r.ctrlpts[0],y:r.ctrlpts[1]},{x:r.startX,y:r.startY}),x=wO.poolIndex()){var k=I;I=O,O=k}var R=D.srcPos=I.position(),M=D.tgtPos=O.position(),P=D.srcW=I.outerWidth(),F=D.srcH=I.outerHeight(),V=D.tgtW=O.outerWidth(),G=D.tgtH=O.outerHeight(),B=D.srcShape=r.nodeShapes[e.getNodeShape(I)],$=D.tgtShape=r.nodeShapes[e.getNodeShape(O)],q=D.srcCornerRadius=I.pstyle("corner-radius").value==="auto"?"auto":I.pstyle("corner-radius").pfValue,Z=D.tgtCornerRadius=O.pstyle("corner-radius").value==="auto"?"auto":O.pstyle("corner-radius").pfValue,W=D.tgtRs=O._private.rscratch,ee=D.srcRs=I._private.rscratch;D.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var Y=0;Y0){var ne=i,ce=fr(ne,Ir(r)),te=fr(ne,Ir(Q)),se=ce;if(te2){var ue=fr(ne,{x:Q[2],y:Q[3]});ue0){var _=s,ae=fr(_,Ir(r)),K=fr(_,Ir(X)),re=ae;if(K2){var ye=fr(_,{x:X[2],y:X[3]});ye=d||x){p={cp:C,segment:w};break}}if(p)break}var T=p.cp,D=p.segment,S=(d-g)/D.length,A=D.t1-D.t0,L=v?D.t0+A*S:D.t1-A*S;L=ya(0,L,1),e=Rr(T.p0,T.p1,T.p2,L),c=ip(T.p0,T.p1,T.p2,L);break}case"straight":case"segments":case"haystack":{for(var I=0,O,k,R,M,P=a.allpts.length,F=0;F+3=d));F+=2);var V=d-k,G=V/O;G=ya(0,G,1),e=fh(R,M,G),c=zu(R,M);break}}s("labelX",h,e.x),s("labelY",h,e.y),s("labelAutoAngle",h,c)}};u("source"),u("target"),this.applyLabelDimensions(t)}};Gt.applyLabelDimensions=function(t){this.applyPrefixedLabelDimensions(t),t.isEdge()&&(this.applyPrefixedLabelDimensions(t,"source"),this.applyPrefixedLabelDimensions(t,"target"))};Gt.applyPrefixedLabelDimensions=function(t,e){var r=t._private,a=this.getLabelText(t,e),n=this.calculateLabelDimensions(t,a),i=t.pstyle("line-height").pfValue,s=t.pstyle("text-wrap").strValue,o=At(r.rscratch,"labelWrapCachedLines",e)||[],l=s!=="wrap"?1:Math.max(o.length,1),u=n.height/l,f=u*i,h=n.width,c=n.height+(l-1)*(i-1)*u;Qt(r.rstyle,"labelWidth",e,h),Qt(r.rscratch,"labelWidth",e,h),Qt(r.rstyle,"labelHeight",e,c),Qt(r.rscratch,"labelHeight",e,c),Qt(r.rscratch,"labelLineHeight",e,f)};Gt.getLabelText=function(t,e){var r=t._private,a=e?e+"-":"",n=t.pstyle(a+"label").strValue,i=t.pstyle("text-transform").value,s=function($,q){return q?(Qt(r.rscratch,$,e,q),q):At(r.rscratch,$,e)};if(!n)return"";i=="none"||(i=="uppercase"?n=n.toUpperCase():i=="lowercase"&&(n=n.toLowerCase()));var o=t.pstyle("text-wrap").value;if(o==="wrap"){var l=s("labelKey");if(l!=null&&s("labelWrapKey")===l)return s("labelWrapCachedText");for(var u="\u200B",f=n.split(` +`),h=t.pstyle("text-max-width").pfValue,c=t.pstyle("text-overflow-wrap").value,v=c==="anywhere",d=[],y=/[\s\u200b]+|$/g,p=0;ph){var E=g.matchAll(y),w="",x=0,T=wo(E),D;try{for(T.s();!(D=T.n()).done;){var S=D.value,A=S[0],L=g.substring(x,S.index);x=S.index+A.length;var I=w.length===0?L:w+L+A,O=this.calculateLabelDimensions(t,I),k=O.width;k<=h?w+=L+A:(w&&d.push(w),w=L+A)}}catch(B){T.e(B)}finally{T.f()}w.match(/^[\s\u200b]+$/)||d.push(w)}else d.push(g)}s("labelWrapCachedLines",d),n=s("labelWrapCachedText",d.join(` +`)),s("labelWrapKey",l)}else if(o==="ellipsis"){var R=t.pstyle("text-max-width").pfValue,M="",P="\u2026",F=!1;if(this.calculateLabelDimensions(t,n).widthR)break;M+=n[V],V===n.length-1&&(F=!0)}return F||(M+=P),M}return n};Gt.getLabelJustification=function(t){var e=t.pstyle("text-justification").strValue,r=t.pstyle("text-halign").strValue;if(e==="auto")if(t.isNode())switch(r){case"left":return"right";case"right":return"left";default:return"center"}else return"center";else return e};Gt.calculateLabelDimensions=function(t,e){var r=this,a=r.cy.window(),n=a.document,i=pr(e,t._private.labelDimsKey),s=r.labelDimCache||(r.labelDimCache=[]),o=s[i];if(o!=null)return o;var l=0,u=t.pstyle("font-style").strValue,f=t.pstyle("font-size").pfValue,h=t.pstyle("font-family").strValue,c=t.pstyle("font-weight").strValue,v=this.labelCalcCanvas,d=this.labelCalcCanvasContext;if(!v){v=this.labelCalcCanvas=n.createElement("canvas"),d=this.labelCalcCanvasContext=v.getContext("2d");var y=v.style;y.position="absolute",y.left="-9999px",y.top="-9999px",y.zIndex="-1",y.visibility="hidden",y.pointerEvents="none"}d.font="".concat(u," ").concat(c," ").concat(f,"px ").concat(h);for(var p=0,g=0,m=e.split(` +`),b=0;b1&&arguments[1]!==void 0?arguments[1]:!0;if(e.merge(s),o)for(var l=0;l=t.desktopTapThreshold2}var ft=n(N);Me&&(t.hoverData.tapholdCancelled=!0);var xt=function(){var Mt=t.hoverData.dragDelta=t.hoverData.dragDelta||[];Mt.length===0?(Mt.push(ge[0]),Mt.push(ge[1])):(Mt[0]+=ge[0],Mt[1]+=ge[1])};J=!0,a(he,["mousemove","vmousemove","tapdrag"],N,{x:K[0],y:K[1]});var mt=function(){t.data.bgActivePosistion=void 0,t.hoverData.selecting||X.emit({originalEvent:N,type:"boxstart",position:{x:K[0],y:K[1]}}),me[4]=1,t.hoverData.selecting=!0,t.redrawHint("select",!0),t.redraw()};if(t.hoverData.which===3){if(Me){var vt={originalEvent:N,type:"cxtdrag",position:{x:K[0],y:K[1]}};le?le.emit(vt):X.emit(vt),t.hoverData.cxtDragged=!0,(!t.hoverData.cxtOver||he!==t.hoverData.cxtOver)&&(t.hoverData.cxtOver&&t.hoverData.cxtOver.emit({originalEvent:N,type:"cxtdragout",position:{x:K[0],y:K[1]}}),t.hoverData.cxtOver=he,he&&he.emit({originalEvent:N,type:"cxtdragover",position:{x:K[0],y:K[1]}}))}}else if(t.hoverData.dragging){if(J=!0,X.panningEnabled()&&X.userPanningEnabled()){var It;if(t.hoverData.justStartedPan){var Vt=t.hoverData.mdownPos;It={x:(K[0]-Vt[0])*_,y:(K[1]-Vt[1])*_},t.hoverData.justStartedPan=!1}else It={x:ge[0]*_,y:ge[1]*_};X.panBy(It),X.emit("dragpan"),t.hoverData.dragged=!0}K=t.projectIntoViewport(N.clientX,N.clientY)}else if(me[4]==1&&(le==null||le.pannable())){if(Me){if(!t.hoverData.dragging&&X.boxSelectionEnabled()&&(ft||!X.panningEnabled()||!X.userPanningEnabled()))mt();else if(!t.hoverData.selecting&&X.panningEnabled()&&X.userPanningEnabled()){var Tt=i(le,t.hoverData.downs);Tt&&(t.hoverData.dragging=!0,t.hoverData.justStartedPan=!0,me[4]=0,t.data.bgActivePosistion=Ir(re),t.redrawHint("select",!0),t.redraw())}le&&le.pannable()&&le.active()&&le.unactivate()}}else{if(le&&le.pannable()&&le.active()&&le.unactivate(),(!le||!le.grabbed())&&he!=Ee&&(Ee&&a(Ee,["mouseout","tapdragout"],N,{x:K[0],y:K[1]}),he&&a(he,["mouseover","tapdragover"],N,{x:K[0],y:K[1]}),t.hoverData.last=he),le)if(Me){if(X.boxSelectionEnabled()&&ft)le&&le.grabbed()&&(p(Fe),le.emit("freeon"),Fe.emit("free"),t.dragData.didDrag&&(le.emit("dragfreeon"),Fe.emit("dragfree"))),mt();else if(le&&le.grabbed()&&t.nodeIsDraggable(le)){var $e=!t.dragData.didDrag;$e&&t.redrawHint("eles",!0),t.dragData.didDrag=!0,t.hoverData.draggingEles||d(Fe,{inDragLayer:!0});var We={x:0,y:0};if(ie(ge[0])&&ie(ge[1])&&(We.x+=ge[0],We.y+=ge[1],$e)){var at=t.hoverData.dragDelta;at&&ie(at[0])&&ie(at[1])&&(We.x+=at[0],We.y+=at[1])}t.hoverData.draggingEles=!0,Fe.silentShift(We).emit("position drag"),t.redrawHint("drag",!0),t.redraw()}}else xt();J=!0}if(me[2]=K[0],me[3]=K[1],J)return N.stopPropagation&&N.stopPropagation(),N.preventDefault&&N.preventDefault(),!1}},!1);var S,A,L;t.registerBinding(e,"mouseup",function(N){if(!(t.hoverData.which===1&&N.which!==1&&t.hoverData.capture)){var U=t.hoverData.capture;if(U){t.hoverData.capture=!1;var J=t.cy,X=t.projectIntoViewport(N.clientX,N.clientY),_=t.selection,ae=t.findNearestElement(X[0],X[1],!0,!1),K=t.dragData.possibleDragElements,re=t.hoverData.down,ye=n(N);if(t.data.bgActivePosistion&&(t.redrawHint("select",!0),t.redraw()),t.hoverData.tapholdCancelled=!0,t.data.bgActivePosistion=void 0,re&&re.unactivate(),t.hoverData.which===3){var me={originalEvent:N,type:"cxttapend",position:{x:X[0],y:X[1]}};if(re?re.emit(me):J.emit(me),!t.hoverData.cxtDragged){var he={originalEvent:N,type:"cxttap",position:{x:X[0],y:X[1]}};re?re.emit(he):J.emit(he)}t.hoverData.cxtDragged=!1,t.hoverData.which=null}else if(t.hoverData.which===1){if(a(ae,["mouseup","tapend","vmouseup"],N,{x:X[0],y:X[1]}),!t.dragData.didDrag&&!t.hoverData.dragged&&!t.hoverData.selecting&&!t.hoverData.isOverThresholdDrag&&(a(re,["click","tap","vclick"],N,{x:X[0],y:X[1]}),A=!1,N.timeStamp-L<=J.multiClickDebounceTime()?(S&&clearTimeout(S),A=!0,L=null,a(re,["dblclick","dbltap","vdblclick"],N,{x:X[0],y:X[1]})):(S=setTimeout(function(){A||a(re,["oneclick","onetap","voneclick"],N,{x:X[0],y:X[1]})},J.multiClickDebounceTime()),L=N.timeStamp)),re==null&&!t.dragData.didDrag&&!t.hoverData.selecting&&!t.hoverData.dragged&&!n(N)&&(J.$(r).unselect(["tapunselect"]),K.length>0&&t.redrawHint("eles",!0),t.dragData.possibleDragElements=K=J.collection()),ae==re&&!t.dragData.didDrag&&!t.hoverData.selecting&&ae!=null&&ae._private.selectable&&(t.hoverData.dragging||(J.selectionType()==="additive"||ye?ae.selected()?ae.unselect(["tapunselect"]):ae.select(["tapselect"]):ye||(J.$(r).unmerge(ae).unselect(["tapunselect"]),ae.select(["tapselect"]))),t.redrawHint("eles",!0)),t.hoverData.selecting){var Ee=J.collection(t.getAllInBox(_[0],_[1],_[2],_[3]));t.redrawHint("select",!0),Ee.length>0&&t.redrawHint("eles",!0),J.emit({type:"boxend",originalEvent:N,position:{x:X[0],y:X[1]}});var le=function(Me){return Me.selectable()&&!Me.selected()};J.selectionType()==="additive"||ye||J.$(r).unmerge(Ee).unselect(),Ee.emit("box").stdFilter(le).select().emit("boxselect"),t.redraw()}if(t.hoverData.dragging&&(t.hoverData.dragging=!1,t.redrawHint("select",!0),t.redrawHint("eles",!0),t.redraw()),!_[4]){t.redrawHint("drag",!0),t.redrawHint("eles",!0);var ge=re&&re.grabbed();p(K),ge&&(re.emit("freeon"),K.emit("free"),t.dragData.didDrag&&(re.emit("dragfreeon"),K.emit("dragfree")))}}_[4]=0,t.hoverData.down=null,t.hoverData.cxtStarted=!1,t.hoverData.draggingEles=!1,t.hoverData.selecting=!1,t.hoverData.isOverThresholdDrag=!1,t.dragData.didDrag=!1,t.hoverData.dragged=!1,t.hoverData.dragDelta=[],t.hoverData.mdownPos=null,t.hoverData.mdownGPos=null,t.hoverData.which=null}}},!1);var I=function(N){if(!t.scrollingPage){var U=t.cy,J=U.zoom(),X=U.pan(),_=t.projectIntoViewport(N.clientX,N.clientY),ae=[_[0]*J+X.x,_[1]*J+X.y];if(t.hoverData.draggingEles||t.hoverData.dragging||t.hoverData.cxtStarted||T()){N.preventDefault();return}if(U.panningEnabled()&&U.userPanningEnabled()&&U.zoomingEnabled()&&U.userZoomingEnabled()){N.preventDefault(),t.data.wheelZooming=!0,clearTimeout(t.data.wheelTimeout),t.data.wheelTimeout=setTimeout(function(){t.data.wheelZooming=!1,t.redrawHint("eles",!0),t.redraw()},150);var K;N.deltaY!=null?K=N.deltaY/-250:N.wheelDeltaY!=null?K=N.wheelDeltaY/1e3:K=N.wheelDelta/1e3,K=K*t.wheelSensitivity;var re=N.deltaMode===1;re&&(K*=33);var ye=U.zoom()*Math.pow(10,K);N.type==="gesturechange"&&(ye=t.gestureStartZoom*N.scale),U.zoom({level:ye,renderedPosition:{x:ae[0],y:ae[1]}}),U.emit(N.type==="gesturechange"?"pinchzoom":"scrollzoom")}}};t.registerBinding(t.container,"wheel",I,!0),t.registerBinding(e,"scroll",function(N){t.scrollingPage=!0,clearTimeout(t.scrollingPageTimeout),t.scrollingPageTimeout=setTimeout(function(){t.scrollingPage=!1},250)},!0),t.registerBinding(t.container,"gesturestart",function(N){t.gestureStartZoom=t.cy.zoom(),t.hasTouchStarted||N.preventDefault()},!0),t.registerBinding(t.container,"gesturechange",function(j){t.hasTouchStarted||I(j)},!0),t.registerBinding(t.container,"mouseout",function(N){var U=t.projectIntoViewport(N.clientX,N.clientY);t.cy.emit({originalEvent:N,type:"mouseout",position:{x:U[0],y:U[1]}})},!1),t.registerBinding(t.container,"mouseover",function(N){var U=t.projectIntoViewport(N.clientX,N.clientY);t.cy.emit({originalEvent:N,type:"mouseover",position:{x:U[0],y:U[1]}})},!1);var O,k,R,M,P,F,V,G,B,$,q,Z,W,ee=function(N,U,J,X){return Math.sqrt((J-N)*(J-N)+(X-U)*(X-U))},Y=function(N,U,J,X){return(J-N)*(J-N)+(X-U)*(X-U)},z;t.registerBinding(t.container,"touchstart",z=function(N){if(t.hasTouchStarted=!0,!!D(N)){m(),t.touchData.capture=!0,t.data.bgActivePosistion=void 0;var U=t.cy,J=t.touchData.now,X=t.touchData.earlier;if(N.touches[0]){var _=t.projectIntoViewport(N.touches[0].clientX,N.touches[0].clientY);J[0]=_[0],J[1]=_[1]}if(N.touches[1]){var _=t.projectIntoViewport(N.touches[1].clientX,N.touches[1].clientY);J[2]=_[0],J[3]=_[1]}if(N.touches[2]){var _=t.projectIntoViewport(N.touches[2].clientX,N.touches[2].clientY);J[4]=_[0],J[5]=_[1]}if(N.touches[1]){t.touchData.singleTouchMoved=!0,p(t.dragData.touchDragEles);var ae=t.findContainerClientCoords();B=ae[0],$=ae[1],q=ae[2],Z=ae[3],O=N.touches[0].clientX-B,k=N.touches[0].clientY-$,R=N.touches[1].clientX-B,M=N.touches[1].clientY-$,W=0<=O&&O<=q&&0<=R&&R<=q&&0<=k&&k<=Z&&0<=M&&M<=Z;var K=U.pan(),re=U.zoom();P=ee(O,k,R,M),F=Y(O,k,R,M),V=[(O+R)/2,(k+M)/2],G=[(V[0]-K.x)/re,(V[1]-K.y)/re];var ye=200,me=ye*ye;if(F=1){for(var Ze=t.touchData.startPosition=[null,null,null,null,null,null],Ue=0;Ue=t.touchTapThreshold2}if(U&&t.touchData.cxt){N.preventDefault();var Ze=N.touches[0].clientX-B,Ue=N.touches[0].clientY-$,ct=N.touches[1].clientX-B,Qe=N.touches[1].clientY-$,ft=Y(Ze,Ue,ct,Qe),xt=ft/F,mt=150,vt=mt*mt,It=1.5,Vt=It*It;if(xt>=Vt||ft>=vt){t.touchData.cxt=!1,t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var Tt={originalEvent:N,type:"cxttapend",position:{x:_[0],y:_[1]}};t.touchData.start?(t.touchData.start.unactivate().emit(Tt),t.touchData.start=null):X.emit(Tt)}}if(U&&t.touchData.cxt){var Tt={originalEvent:N,type:"cxtdrag",position:{x:_[0],y:_[1]}};t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.touchData.start?t.touchData.start.emit(Tt):X.emit(Tt),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxtDragged=!0;var $e=t.findNearestElement(_[0],_[1],!0,!0);(!t.touchData.cxtOver||$e!==t.touchData.cxtOver)&&(t.touchData.cxtOver&&t.touchData.cxtOver.emit({originalEvent:N,type:"cxtdragout",position:{x:_[0],y:_[1]}}),t.touchData.cxtOver=$e,$e&&$e.emit({originalEvent:N,type:"cxtdragover",position:{x:_[0],y:_[1]}}))}else if(U&&N.touches[2]&&X.boxSelectionEnabled())N.preventDefault(),t.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,t.touchData.selecting||X.emit({originalEvent:N,type:"boxstart",position:{x:_[0],y:_[1]}}),t.touchData.selecting=!0,t.touchData.didSelect=!0,J[4]=1,!J||J.length===0||J[0]===void 0?(J[0]=(_[0]+_[2]+_[4])/3,J[1]=(_[1]+_[3]+_[5])/3,J[2]=(_[0]+_[2]+_[4])/3+1,J[3]=(_[1]+_[3]+_[5])/3+1):(J[2]=(_[0]+_[2]+_[4])/3,J[3]=(_[1]+_[3]+_[5])/3),t.redrawHint("select",!0),t.redraw();else if(U&&N.touches[1]&&!t.touchData.didSelect&&X.zoomingEnabled()&&X.panningEnabled()&&X.userZoomingEnabled()&&X.userPanningEnabled()){N.preventDefault(),t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var We=t.dragData.touchDragEles;if(We){t.redrawHint("drag",!0);for(var at=0;at0&&!t.hoverData.draggingEles&&!t.swipePanning&&t.data.bgActivePosistion!=null&&(t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.redraw())}},!1);var Q;t.registerBinding(e,"touchcancel",Q=function(N){var U=t.touchData.start;t.touchData.capture=!1,U&&U.unactivate()});var ne,ce,te,se;if(t.registerBinding(e,"touchend",ne=function(N){var U=t.touchData.start,J=t.touchData.capture;if(J)N.touches.length===0&&(t.touchData.capture=!1),N.preventDefault();else return;var X=t.selection;t.swipePanning=!1,t.hoverData.draggingEles=!1;var _=t.cy,ae=_.zoom(),K=t.touchData.now,re=t.touchData.earlier;if(N.touches[0]){var ye=t.projectIntoViewport(N.touches[0].clientX,N.touches[0].clientY);K[0]=ye[0],K[1]=ye[1]}if(N.touches[1]){var ye=t.projectIntoViewport(N.touches[1].clientX,N.touches[1].clientY);K[2]=ye[0],K[3]=ye[1]}if(N.touches[2]){var ye=t.projectIntoViewport(N.touches[2].clientX,N.touches[2].clientY);K[4]=ye[0],K[5]=ye[1]}U&&U.unactivate();var me;if(t.touchData.cxt){if(me={originalEvent:N,type:"cxttapend",position:{x:K[0],y:K[1]}},U?U.emit(me):_.emit(me),!t.touchData.cxtDragged){var he={originalEvent:N,type:"cxttap",position:{x:K[0],y:K[1]}};U?U.emit(he):_.emit(he)}t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!1,t.touchData.start=null,t.redraw();return}if(!N.touches[2]&&_.boxSelectionEnabled()&&t.touchData.selecting){t.touchData.selecting=!1;var Ee=_.collection(t.getAllInBox(X[0],X[1],X[2],X[3]));X[0]=void 0,X[1]=void 0,X[2]=void 0,X[3]=void 0,X[4]=0,t.redrawHint("select",!0),_.emit({type:"boxend",originalEvent:N,position:{x:K[0],y:K[1]}});var le=function(vt){return vt.selectable()&&!vt.selected()};Ee.emit("box").stdFilter(le).select().emit("boxselect"),Ee.nonempty()&&t.redrawHint("eles",!0),t.redraw()}if(U?.unactivate(),N.touches[2])t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);else if(!N.touches[1]){if(!N.touches[0]){if(!N.touches[0]){t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var ge=t.dragData.touchDragEles;if(U!=null){var Fe=U._private.grabbed;p(ge),t.redrawHint("drag",!0),t.redrawHint("eles",!0),Fe&&(U.emit("freeon"),ge.emit("free"),t.dragData.didDrag&&(U.emit("dragfreeon"),ge.emit("dragfree"))),a(U,["touchend","tapend","vmouseup","tapdragout"],N,{x:K[0],y:K[1]}),U.unactivate(),t.touchData.start=null}else{var Me=t.findNearestElement(K[0],K[1],!0,!0);a(Me,["touchend","tapend","vmouseup","tapdragout"],N,{x:K[0],y:K[1]})}var lt=t.touchData.startPosition[0]-K[0],Ze=lt*lt,Ue=t.touchData.startPosition[1]-K[1],ct=Ue*Ue,Qe=Ze+ct,ft=Qe*ae*ae;t.touchData.singleTouchMoved||(U||_.$(":selected").unselect(["tapunselect"]),a(U,["tap","vclick"],N,{x:K[0],y:K[1]}),ce=!1,N.timeStamp-se<=_.multiClickDebounceTime()?(te&&clearTimeout(te),ce=!0,se=null,a(U,["dbltap","vdblclick"],N,{x:K[0],y:K[1]})):(te=setTimeout(function(){ce||a(U,["onetap","voneclick"],N,{x:K[0],y:K[1]})},_.multiClickDebounceTime()),se=N.timeStamp)),U!=null&&!t.dragData.didDrag&&U._private.selectable&&ft"u"){var ue=[],ve=function(N){return{clientX:N.clientX,clientY:N.clientY,force:1,identifier:N.pointerId,pageX:N.pageX,pageY:N.pageY,radiusX:N.width/2,radiusY:N.height/2,screenX:N.screenX,screenY:N.screenY,target:N.target}},fe=function(N){return{event:N,touch:ve(N)}},pe=function(N){ue.push(fe(N))},Ae=function(N){for(var U=0;U0)return B[0]}return null},d=Object.keys(c),y=0;y0?v:Yo(i,s,e,r,a,n,o,l)},checkPoint:function(e,r,a,n,i,s,o,l){l=l==="auto"?mr(n,i):l;var u=2*l;if(Yt(e,r,this.points,s,o,n,i-u,[0,-1],a)||Yt(e,r,this.points,s,o,n-u,i,[0,-1],a))return!0;var f=n/2+2*a,h=i/2+2*a,c=[s-f,o-h,s-f,o,s+f,o,s+f,o-h];return!!(dt(e,r,c)||dr(e,r,u,u,s+n/2-l,o+i/2-l,a)||dr(e,r,u,u,s-n/2+l,o+i/2-l,a))}}};Xt.registerNodeShapes=function(){var t=this.nodeShapes={},e=this;this.generateEllipse(),this.generatePolygon("triangle",ht(3,0)),this.generateRoundPolygon("round-triangle",ht(3,0)),this.generatePolygon("rectangle",ht(4,0)),t.square=t.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",ht(5,0)),this.generateRoundPolygon("round-pentagon",ht(5,0)),this.generatePolygon("hexagon",ht(6,0)),this.generateRoundPolygon("round-hexagon",ht(6,0)),this.generatePolygon("heptagon",ht(7,0)),this.generateRoundPolygon("round-heptagon",ht(7,0)),this.generatePolygon("octagon",ht(8,0)),this.generateRoundPolygon("round-octagon",ht(8,0));var a=new Array(20);{var n=Jn(5,0),i=Jn(5,Math.PI/5),s=.5*(3-Math.sqrt(5));s*=1.57;for(var o=0;o=e.deqFastCost*C)break}else if(u){if(m>=e.deqCost*v||m>=e.deqAvgCost*c)break}else if(b>=e.deqNoDrawCost*Kn)break;var E=e.deq(a,p,y);if(E.length>0)for(var w=0;w0&&(e.onDeqd(a,d),!u&&e.shouldRedraw(a,d,p,y)&&i())},o=e.priority||bi;n.beforeRender(s,o(a))}}}},op=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:un;di(this,t),this.idsByKey=new Bt,this.keyForId=new Bt,this.cachesByLvl=new Bt,this.lvls=[],this.getKey=e,this.doesEleInvalidateKey=r}return gi(t,[{key:"getIdsFor",value:function(r){r==null&&ze("Can not get id list for null key");var a=this.idsByKey,n=this.idsByKey.get(r);return n||(n=new Ur,a.set(r,n)),n}},{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(),n=this.keyForId.get(a),i=this.getKey(r);this.deleteIdForKey(n,a),this.addIdForKey(i,a),this.keyForId.set(a,i)}},{key:"deleteKeyMappingFor",value:function(r){var a=r.id(),n=this.keyForId.get(a);this.deleteIdForKey(n,a),this.keyForId.delete(a)}},{key:"keyHasChangedFor",value:function(r){var a=r.id(),n=this.keyForId.get(a),i=this.getKey(r);return n!==i}},{key:"isInvalid",value:function(r){return this.keyHasChangedFor(r)||this.doesEleInvalidateKey(r)}},{key:"getCachesAt",value:function(r){var a=this.cachesByLvl,n=this.lvls,i=a.get(r);return i||(i=new Bt,a.set(r,i),n.push(r)),i}},{key:"getCache",value:function(r,a){return this.getCachesAt(a).get(r)}},{key:"get",value:function(r,a){var n=this.getKey(r),i=this.getCache(n,a);return i!=null&&this.updateKeyMappingFor(r),i}},{key:"getForCachedKey",value:function(r,a){var n=this.keyForId.get(r.id()),i=this.getCache(n,a);return i}},{key:"hasCache",value:function(r,a){return this.getCachesAt(a).has(r)}},{key:"has",value:function(r,a){var n=this.getKey(r);return this.hasCache(n,a)}},{key:"setCache",value:function(r,a,n){n.key=r,this.getCachesAt(a).set(r,n)}},{key:"set",value:function(r,a,n){var i=this.getKey(r);this.setCache(i,a,n),this.updateKeyMappingFor(r)}},{key:"deleteCache",value:function(r,a){this.getCachesAt(a).delete(r)}},{key:"delete",value:function(r,a){var n=this.getKey(r);this.deleteCache(n,a)}},{key:"invalidateKey",value:function(r){var a=this;this.lvls.forEach(function(n){return a.deleteCache(r,n)})}},{key:"invalidate",value:function(r){var a=r.id(),n=this.keyForId.get(a);this.deleteKeyMappingFor(r);var i=this.doesEleInvalidateKey(r);return i&&this.invalidateKey(n),i||this.getNumberOfIdsForKey(n)===0}}]),t}(),fo=25,Ka=50,nn=-4,fi=3,up=7.99,lp=8,fp=1024,hp=1024,cp=1024,vp=.2,dp=.8,gp=10,pp=.15,yp=.1,mp=.9,bp=.9,Ep=100,wp=1,Mr={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},xp=tt({getKey:null,doesEleInvalidateKey:un,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:Po,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),fa=function(e,r){var a=this;a.renderer=e,a.onDequeues=[];var n=xp(r);be(a,n),a.lookup=new op(n.getKey,n.doesEleInvalidateKey),a.setupDequeueing()},Xe=fa.prototype;Xe.reasons=Mr;Xe.getTextureQueue=function(t){var e=this;return e.eleImgCaches=e.eleImgCaches||{},e.eleImgCaches[t]=e.eleImgCaches[t]||[]};Xe.getRetiredTextureQueue=function(t){var e=this,r=e.eleImgCaches.retired=e.eleImgCaches.retired||{},a=r[t]=r[t]||[];return a};Xe.getElementQueue=function(){var t=this,e=t.eleCacheQueue=t.eleCacheQueue||new La(function(r,a){return a.reqs-r.reqs});return e};Xe.getElementKeyToQueue=function(){var t=this,e=t.eleKeyToCacheQueue=t.eleKeyToCacheQueue||{};return e};Xe.getElement=function(t,e,r,a,n){var i=this,s=this.renderer,o=s.cy.zoom(),l=this.lookup;if(!e||e.w===0||e.h===0||isNaN(e.w)||isNaN(e.h)||!t.visible()||t.removed()||!i.allowEdgeTxrCaching&&t.isEdge()||!i.allowParentTxrCaching&&t.isParent())return null;if(a==null&&(a=Math.ceil(wi(o*r))),a=up||a>fi)return null;var u=Math.pow(2,a),f=e.h*u,h=e.w*u,c=s.eleTextBiggerThanMin(t,u);if(!this.isVisible(t,c))return null;var v=l.get(t,a);if(v&&v.invalidated&&(v.invalidated=!1,v.texture.invalidatedWidth-=v.width),v)return v;var d;if(f<=fo?d=fo:f<=Ka?d=Ka:d=Math.ceil(f/Ka)*Ka,f>cp||h>hp)return null;var y=i.getTextureQueue(d),p=y[y.length-2],g=function(){return i.recycleTexture(d,h)||i.addTexture(d,h)};p||(p=y[y.length-1]),p||(p=g()),p.width-p.usedWidtha;A--)D=i.getElement(t,e,r,A,Mr.downscale);S()}else return i.queueElement(t,w.level-1),w;else{var L;if(!b&&!C&&!E)for(var I=a-1;I>=nn;I--){var O=l.get(t,I);if(O){L=O;break}}if(m(L))return i.queueElement(t,a),L;p.context.translate(p.usedWidth,0),p.context.scale(u,u),this.drawElement(p.context,t,e,c,!1),p.context.scale(1/u,1/u),p.context.translate(-p.usedWidth,0)}return v={x:p.usedWidth,texture:p,level:a,scale:u,width:h,height:f,scaledLabelShown:c},p.usedWidth+=Math.ceil(h+lp),p.eleCaches.push(v),l.set(t,a,v),i.checkTextureFullness(p),v};Xe.invalidateElements=function(t){for(var e=0;e=vp*t.width&&this.retireTexture(t)};Xe.checkTextureFullness=function(t){var e=this,r=e.getTextureQueue(t.height);t.usedWidth/t.width>dp&&t.fullnessChecks>=gp?rr(r,t):t.fullnessChecks++};Xe.retireTexture=function(t){var e=this,r=t.height,a=e.getTextureQueue(r),n=this.lookup;rr(a,t),t.retired=!0;for(var i=t.eleCaches,s=0;s=e)return s.retired=!1,s.usedWidth=0,s.invalidatedWidth=0,s.fullnessChecks=0,Ei(s.eleCaches),s.context.setTransform(1,0,0,1,0,0),s.context.clearRect(0,0,s.width,s.height),rr(n,s),a.push(s),s}};Xe.queueElement=function(t,e){var r=this,a=r.getElementQueue(),n=r.getElementKeyToQueue(),i=this.getKey(t),s=n[i];if(s)s.level=Math.max(s.level,e),s.eles.merge(t),s.reqs++,a.updateItem(s);else{var o={eles:t.spawn().merge(t),level:e,reqs:1,key:i};a.push(o),n[i]=o}};Xe.dequeue=function(t){for(var e=this,r=e.getElementQueue(),a=e.getElementKeyToQueue(),n=[],i=e.lookup,s=0;s0;s++){var o=r.pop(),l=o.key,u=o.eles[0],f=i.hasCache(u,o.level);if(a[l]=null,f)continue;n.push(o);var h=e.getBoundingBox(u);e.getElement(u,h,t,o.level,Mr.dequeue)}return n};Xe.removeFromQueue=function(t){var e=this,r=e.getElementQueue(),a=e.getElementKeyToQueue(),n=this.getKey(t),i=a[n];i!=null&&(i.eles.length===1?(i.reqs=mi,r.updateItem(i),r.pop(),a[n]=null):i.eles.unmerge(t))};Xe.onDequeue=function(t){this.onDequeues.push(t)};Xe.offDequeue=function(t){rr(this.onDequeues,t)};Xe.setupDequeueing=_u.setupDequeueing({deqRedrawThreshold:Ep,deqCost:pp,deqAvgCost:yp,deqNoDrawCost:mp,deqFastCost:bp,deq:function(e,r,a){return e.dequeue(r,a)},onDeqd:function(e,r){for(var a=0;a=Cp||r>pn)return null}a.validateLayersElesOrdering(r,t);var l=a.layersByLevel,u=Math.pow(2,r),f=l[r]=l[r]||[],h,c=a.levelIsComplete(r,t),v,d=function(){var S=function(k){if(a.validateLayersElesOrdering(k,t),a.levelIsComplete(k,t))return v=l[k],!0},A=function(k){if(!v)for(var R=r+k;ca<=R&&R<=pn&&!S(R);R+=k);};A(1),A(-1);for(var L=f.length-1;L>=0;L--){var I=f[L];I.invalid&&rr(f,I)}};if(!c)d();else return f;var y=function(){if(!h){h=gt();for(var S=0;SMp)return null;var I=a.makeLayer(h,r);if(A!=null){var O=f.indexOf(A)+1;f.splice(O,0,I)}else(S.insert===void 0||S.insert)&&f.unshift(I);return I};if(a.skipping&&!o)return null;for(var g=null,m=t.length/Tp,b=!o,C=0;C=m||!$o(g.bb,E.boundingBox()))&&(g=p({insert:!0,after:g}),!g))return null;v||b?a.queueLayer(g,E):a.drawEleInLayer(g,E,r,e),g.eles.push(E),x[r]=g}return v||(b?null:f)};rt.getEleLevelForLayerLevel=function(t,e){return t};rt.drawEleInLayer=function(t,e,r,a){var n=this,i=this.renderer,s=t.context,o=e.boundingBox();o.w===0||o.h===0||!e.visible()||(r=n.getEleLevelForLayerLevel(r,a),i.setImgSmoothing(s,!1),i.drawCachedElement(s,e,null,null,r,Rp),i.setImgSmoothing(s,!0))};rt.levelIsComplete=function(t,e){var r=this,a=r.layersByLevel[t];if(!a||a.length===0)return!1;for(var n=0,i=0;i0||s.invalid)return!1;n+=s.eles.length}return n===e.length};rt.validateLayersElesOrdering=function(t,e){var r=this.layersByLevel[t];if(r)for(var a=0;a0){e=!0;break}}return e};rt.invalidateElements=function(t){var e=this;t.length!==0&&(e.lastInvalidationTime=$t(),!(t.length===0||!e.haveLayers())&&e.updateElementsInLayers(t,function(a,n,i){e.invalidateLayer(a)}))};rt.invalidateLayer=function(t){if(this.lastInvalidationTime=$t(),!t.invalid){var e=t.level,r=t.eles,a=this.layersByLevel[e];rr(a,t),t.elesQueue=[],t.invalid=!0,t.replacement&&(t.replacement.invalid=!0);for(var n=0;n3&&arguments[3]!==void 0?arguments[3]:!0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,s=this,o=e._private.rscratch;if(!(i&&!e.visible())&&!(o.badLine||o.allpts==null||isNaN(o.allpts[0]))){var l;r&&(l=r,t.translate(-l.x1,-l.y1));var u=i?e.pstyle("opacity").value:1,f=i?e.pstyle("line-opacity").value:1,h=e.pstyle("curve-style").value,c=e.pstyle("line-style").value,v=e.pstyle("width").pfValue,d=e.pstyle("line-cap").value,y=e.pstyle("line-outline-width").value,p=e.pstyle("line-outline-color").value,g=u*f,m=u*f,b=function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:g;h==="straight-triangle"?(s.eleStrokeStyle(t,e,k),s.drawEdgeTrianglePath(e,t,o.allpts)):(t.lineWidth=v,t.lineCap=d,s.eleStrokeStyle(t,e,k),s.drawEdgePath(e,t,o.allpts,c),t.lineCap="butt")},C=function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:g;if(t.lineWidth=v+y,t.lineCap=d,y>0)s.colorStrokeStyle(t,p[0],p[1],p[2],k);else{t.lineCap="butt";return}h==="straight-triangle"?s.drawEdgeTrianglePath(e,t,o.allpts):(s.drawEdgePath(e,t,o.allpts,c),t.lineCap="butt")},E=function(){n&&s.drawEdgeOverlay(t,e)},w=function(){n&&s.drawEdgeUnderlay(t,e)},x=function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m;s.drawArrowheads(t,e,k)},T=function(){s.drawElementText(t,e,null,a)};t.lineJoin="round";var D=e.pstyle("ghost").value==="yes";if(D){var S=e.pstyle("ghost-offset-x").pfValue,A=e.pstyle("ghost-offset-y").pfValue,L=e.pstyle("ghost-opacity").value,I=g*L;t.translate(S,A),b(I),x(I),t.translate(-S,-A)}else C();w(),b(),x(),E(),T(),r&&t.translate(l.x1,l.y1)}};var qu=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(r,a){if(a.visible()){var n=a.pstyle("".concat(e,"-opacity")).value;if(n!==0){var i=this,s=i.usePaths(),o=a._private.rscratch,l=a.pstyle("".concat(e,"-padding")).pfValue,u=2*l,f=a.pstyle("".concat(e,"-color")).value;r.lineWidth=u,o.edgeType==="self"&&!s?r.lineCap="butt":r.lineCap="round",i.colorStrokeStyle(r,f[0],f[1],f[2],n),i.drawEdgePath(a,r,o.allpts,"solid")}}}};qt.drawEdgeOverlay=qu("overlay");qt.drawEdgeUnderlay=qu("underlay");qt.drawEdgePath=function(t,e,r,a){var n=t._private.rscratch,i=e,s,o=!1,l=this.usePaths(),u=t.pstyle("line-dash-pattern").pfValue,f=t.pstyle("line-dash-offset").pfValue;if(l){var h=r.join("$"),c=n.pathCacheKey&&n.pathCacheKey===h;c?(s=e=n.pathCache,o=!0):(s=e=new Path2D,n.pathCacheKey=h,n.pathCache=s)}if(i.setLineDash)switch(a){case"dotted":i.setLineDash([1,1]);break;case"dashed":i.setLineDash(u),i.lineDashOffset=f;break;case"solid":i.setLineDash([]);break}if(!o&&!n.badLine)switch(e.beginPath&&e.beginPath(),e.moveTo(r[0],r[1]),n.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var v=2;v+35&&arguments[5]!==void 0?arguments[5]:!0,s=this;if(a==null){if(i&&!s.eleTextBiggerThanMin(e))return}else if(a===!1)return;if(e.isNode()){var o=e.pstyle("label");if(!o||!o.value)return;var l=s.getLabelJustification(e);t.textAlign=l,t.textBaseline="bottom"}else{var u=e.element()._private.rscratch.badLine,f=e.pstyle("label"),h=e.pstyle("source-label"),c=e.pstyle("target-label");if(u||(!f||!f.value)&&(!h||!h.value)&&(!c||!c.value))return;t.textAlign="center",t.textBaseline="bottom"}var v=!r,d;r&&(d=r,t.translate(-d.x1,-d.y1)),n==null?(s.drawText(t,e,null,v,i),e.isEdge()&&(s.drawText(t,e,"source",v,i),s.drawText(t,e,"target",v,i))):s.drawText(t,e,n,v,i),r&&t.translate(d.x1,d.y1)};Tr.getFontCache=function(t){var e;this.fontCaches=this.fontCaches||[];for(var r=0;r2&&arguments[2]!==void 0?arguments[2]:!0,a=e.pstyle("font-style").strValue,n=e.pstyle("font-size").pfValue+"px",i=e.pstyle("font-family").strValue,s=e.pstyle("font-weight").strValue,o=r?e.effectiveOpacity()*e.pstyle("text-opacity").value:1,l=e.pstyle("text-outline-opacity").value*o,u=e.pstyle("color").value,f=e.pstyle("text-outline-color").value;t.font=a+" "+s+" "+n+" "+i,t.lineJoin="round",this.colorFillStyle(t,u[0],u[1],u[2],o),this.colorStrokeStyle(t,f[0],f[1],f[2],l)};function Qn(t,e,r,a,n){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:5,s=arguments.length>6?arguments[6]:void 0;t.beginPath(),t.moveTo(e+i,r),t.lineTo(e+a-i,r),t.quadraticCurveTo(e+a,r,e+a,r+i),t.lineTo(e+a,r+n-i),t.quadraticCurveTo(e+a,r+n,e+a-i,r+n),t.lineTo(e+i,r+n),t.quadraticCurveTo(e,r+n,e,r+n-i),t.lineTo(e,r+i),t.quadraticCurveTo(e,r,e+i,r),t.closePath(),s?t.stroke():t.fill()}Tr.getTextAngle=function(t,e){var r,a=t._private,n=a.rscratch,i=e?e+"-":"",s=t.pstyle(i+"text-rotation"),o=At(n,"labelAngle",e);return s.strValue==="autorotate"?r=t.isEdge()?o:0:s.strValue==="none"?r=0:r=s.pfValue,r};Tr.drawText=function(t,e,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=e._private,s=i.rscratch,o=n?e.effectiveOpacity():1;if(!(n&&(o===0||e.pstyle("text-opacity").value===0))){r==="main"&&(r=null);var l=At(s,"labelX",r),u=At(s,"labelY",r),f,h,c=this.getLabelText(e,r);if(c!=null&&c!==""&&!isNaN(l)&&!isNaN(u)){this.setupTextStyle(t,e,n);var v=r?r+"-":"",d=At(s,"labelWidth",r),y=At(s,"labelHeight",r),p=e.pstyle(v+"text-margin-x").pfValue,g=e.pstyle(v+"text-margin-y").pfValue,m=e.isEdge(),b=e.pstyle("text-halign").value,C=e.pstyle("text-valign").value;m&&(b="center",C="center"),l+=p,u+=g;var E;switch(a?E=this.getTextAngle(e,r):E=0,E!==0&&(f=l,h=u,t.translate(f,h),t.rotate(E),l=0,u=0),C){case"top":break;case"center":u+=y/2;break;case"bottom":u+=y;break}var w=e.pstyle("text-background-opacity").value,x=e.pstyle("text-border-opacity").value,T=e.pstyle("text-border-width").pfValue,D=e.pstyle("text-background-padding").pfValue,S=e.pstyle("text-background-shape").strValue,A=S.indexOf("round")===0,L=2;if(w>0||T>0&&x>0){var I=l-D;switch(b){case"left":I-=d;break;case"center":I-=d/2;break}var O=u-y-D,k=d+2*D,R=y+2*D;if(w>0){var M=t.fillStyle,P=e.pstyle("text-background-color").value;t.fillStyle="rgba("+P[0]+","+P[1]+","+P[2]+","+w*o+")",A?Qn(t,I,O,k,R,L):t.fillRect(I,O,k,R),t.fillStyle=M}if(T>0&&x>0){var F=t.strokeStyle,V=t.lineWidth,G=e.pstyle("text-border-color").value,B=e.pstyle("text-border-style").value;if(t.strokeStyle="rgba("+G[0]+","+G[1]+","+G[2]+","+x*o+")",t.lineWidth=T,t.setLineDash)switch(B){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"double":t.lineWidth=T/4,t.setLineDash([]);break;case"solid":t.setLineDash([]);break}if(A?Qn(t,I,O,k,R,L,"stroke"):t.strokeRect(I,O,k,R),B==="double"){var $=T/2;A?Qn(t,I+$,O+$,k-$*2,R-$*2,L,"stroke"):t.strokeRect(I+$,O+$,k-$*2,R-$*2)}t.setLineDash&&t.setLineDash([]),t.lineWidth=V,t.strokeStyle=F}}var q=2*e.pstyle("text-outline-width").pfValue;if(q>0&&(t.lineWidth=q),e.pstyle("text-wrap").value==="wrap"){var Z=At(s,"labelWrapCachedLines",r),W=At(s,"labelLineHeight",r),ee=d/2,Y=this.getLabelJustification(e);switch(Y==="auto"||(b==="left"?Y==="left"?l+=-d:Y==="center"&&(l+=-ee):b==="center"?Y==="left"?l+=-ee:Y==="right"&&(l+=ee):b==="right"&&(Y==="center"?l+=ee:Y==="right"&&(l+=d))),C){case"top":u-=(Z.length-1)*W;break;case"center":case"bottom":u-=(Z.length-1)*W;break}for(var z=0;z0&&t.strokeText(Z[z],l,u),t.fillText(Z[z],l,u),u+=W}else q>0&&t.strokeText(c,l,u),t.fillText(c,l,u);E!==0&&(t.rotate(-E),t.translate(-f,-h))}}};var Zr={};Zr.drawNode=function(t,e,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,s=this,o,l,u=e._private,f=u.rscratch,h=e.position();if(!(!ie(h.x)||!ie(h.y))&&!(i&&!e.visible())){var c=i?e.effectiveOpacity():1,v=s.usePaths(),d,y=!1,p=e.padding();o=e.width()+2*p,l=e.height()+2*p;var g;r&&(g=r,t.translate(-g.x1,-g.y1));for(var m=e.pstyle("background-image"),b=m.value,C=new Array(b.length),E=new Array(b.length),w=0,x=0;x0&&arguments[0]!==void 0?arguments[0]:I;s.eleFillStyle(t,e,ae)},z=function(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:G;s.colorStrokeStyle(t,O[0],O[1],O[2],ae)},H=function(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Z;s.colorStrokeStyle(t,$[0],$[1],$[2],ae)},Q=function(ae,K,re,ye){var me=s.nodePathCache=s.nodePathCache||[],he=ko(re==="polygon"?re+","+ye.join(","):re,""+K,""+ae,""+ee),Ee=me[he],le,ge=!1;return Ee!=null?(le=Ee,ge=!0,f.pathCache=le):(le=new Path2D,me[he]=f.pathCache=le),{path:le,cacheHit:ge}},ne=e.pstyle("shape").strValue,ce=e.pstyle("shape-polygon-points").pfValue;if(v){t.translate(h.x,h.y);var te=Q(o,l,ne,ce);d=te.path,y=te.cacheHit}var se=function(){if(!y){var ae=h;v&&(ae={x:0,y:0}),s.nodeShapes[s.getNodeShape(e)].draw(d||t,ae.x,ae.y,o,l,ee,f)}v?t.fill(d):t.fill()},ue=function(){for(var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c,K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,re=u.backgrounding,ye=0,me=0;me0&&arguments[0]!==void 0?arguments[0]:!1,K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:c;s.hasPie(e)&&(s.drawPie(t,e,K),ae&&(v||s.nodeShapes[s.getNodeShape(e)].draw(t,h.x,h.y,o,l,ee,f)))},fe=function(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c,K=(A>0?A:-A)*ae,re=A>0?0:255;A!==0&&(s.colorFillStyle(t,re,re,re,K),v?t.fill(d):t.fill())},pe=function(){if(L>0){if(t.lineWidth=L,t.lineCap=M,t.lineJoin=R,t.setLineDash)switch(k){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash(F),t.lineDashOffset=V;break;case"solid":case"double":t.setLineDash([]);break}if(P!=="center"){if(t.save(),t.lineWidth*=2,P==="inside")v?t.clip(d):t.clip();else{var ae=new Path2D;ae.rect(-o/2-L,-l/2-L,o+2*L,l+2*L),ae.addPath(d),t.clip(ae,"evenodd")}v?t.stroke(d):t.stroke(),t.restore()}else v?t.stroke(d):t.stroke();if(k==="double"){t.lineWidth=L/3;var K=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",v?t.stroke(d):t.stroke(),t.globalCompositeOperation=K}t.setLineDash&&t.setLineDash([])}},Ae=function(){if(B>0){if(t.lineWidth=B,t.lineCap="butt",t.setLineDash)switch(q){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"solid":case"double":t.setLineDash([]);break}var ae=h;v&&(ae={x:0,y:0});var K=s.getNodeShape(e),re=L;P==="inside"&&(re=0),P==="outside"&&(re*=2);var ye=(o+re+(B+W))/o,me=(l+re+(B+W))/l,he=o*ye,Ee=l*me,le=s.nodeShapes[K].points,ge;if(v){var Fe=Q(he,Ee,K,le);ge=Fe.path}if(K==="ellipse")s.drawEllipsePath(ge||t,ae.x,ae.y,he,Ee);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(K)){var Me=0,lt=0,Ze=0;K==="round-diamond"?Me=(re+W+B)*1.4:K==="round-heptagon"?(Me=(re+W+B)*1.075,Ze=-(re/2+W+B)/35):K==="round-hexagon"?Me=(re+W+B)*1.12:K==="round-pentagon"?(Me=(re+W+B)*1.13,Ze=-(re/2+W+B)/15):K==="round-tag"?(Me=(re+W+B)*1.12,lt=(re/2+B+W)*.07):K==="round-triangle"&&(Me=(re+W+B)*(Math.PI/2),Ze=-(re+W/2+B)/Math.PI),Me!==0&&(ye=(o+Me)/o,he=o*ye,["round-hexagon","round-tag"].includes(K)||(me=(l+Me)/l,Ee=l*me)),ee=ee==="auto"?Ho(he,Ee):ee;for(var Ue=he/2,ct=Ee/2,Qe=ee+(re+B+W)/2,ft=new Array(le.length/2),xt=new Array(le.length/2),mt=0;mt0){if(n=n||a.position(),i==null||s==null){var v=a.padding();i=a.width()+2*v,s=a.height()+2*v}o.colorFillStyle(r,f[0],f[1],f[2],u),o.nodeShapes[h].draw(r,n.x,n.y,i+l*2,s+l*2,c),r.fill()}}}};Zr.drawNodeOverlay=Wu("overlay");Zr.drawNodeUnderlay=Wu("underlay");Zr.hasPie=function(t){return t=t[0],t._private.hasPie};Zr.drawPie=function(t,e,r,a){e=e[0],a=a||e.position();var n=e.cy().style(),i=e.pstyle("pie-size"),s=a.x,o=a.y,l=e.width(),u=e.height(),f=Math.min(l,u)/2,h=0,c=this.usePaths();c&&(s=0,o=0),i.units==="%"?f=f*i.pfValue:i.pfValue!==void 0&&(f=i.pfValue/2);for(var v=1;v<=n.pieBackgroundN;v++){var d=e.pstyle("pie-"+v+"-background-size").value,y=e.pstyle("pie-"+v+"-background-color").value,p=e.pstyle("pie-"+v+"-background-opacity").value*r,g=d/100;g+h>1&&(g=1-h);var m=1.5*Math.PI+2*Math.PI*h,b=2*Math.PI*g,C=m+b;d===0||h>=1||h+g>1||(t.beginPath(),t.moveTo(s,o),t.arc(s,o,f,m,C),t.closePath(),this.colorFillStyle(t,y[0],y[1],y[2],p),t.fill(),h+=g)}};var yt={},_p=100;yt.getPixelRatio=function(){var t=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var e=this.cy.window(),r=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(e.devicePixelRatio||1)/r};yt.paintCache=function(t){for(var e=this.paintCaches=this.paintCaches||[],r=!0,a,n=0;ns.minMbLowQualFrames&&(s.motionBlurPxRatio=s.mbPxRBlurry)),s.clearingMotionBlur&&(s.motionBlurPxRatio=1),s.textureDrawLastFrame&&!h&&(f[s.NODE]=!0,f[s.SELECT_BOX]=!0);var m=l.style(),b=l.zoom(),C=n!==void 0?n:b,E=l.pan(),w={x:E.x,y:E.y},x={zoom:b,pan:{x:E.x,y:E.y}},T=s.prevViewport,D=T===void 0||x.zoom!==T.zoom||x.pan.x!==T.pan.x||x.pan.y!==T.pan.y;!D&&!(y&&!d)&&(s.motionBlurPxRatio=1),i&&(w=i),C*=o,w.x*=o,w.y*=o;var S=s.getCachedZSortedEles();function A(te,se,ue,ve,fe){var pe=te.globalCompositeOperation;te.globalCompositeOperation="destination-out",s.colorFillStyle(te,255,255,255,s.motionBlurTransparency),te.fillRect(se,ue,ve,fe),te.globalCompositeOperation=pe}function L(te,se){var ue,ve,fe,pe;!s.clearingMotionBlur&&(te===u.bufferContexts[s.MOTIONBLUR_BUFFER_NODE]||te===u.bufferContexts[s.MOTIONBLUR_BUFFER_DRAG])?(ue={x:E.x*v,y:E.y*v},ve=b*v,fe=s.canvasWidth*v,pe=s.canvasHeight*v):(ue=w,ve=C,fe=s.canvasWidth,pe=s.canvasHeight),te.setTransform(1,0,0,1,0,0),se==="motionBlur"?A(te,0,0,fe,pe):!e&&(se===void 0||se)&&te.clearRect(0,0,fe,pe),r||(te.translate(ue.x,ue.y),te.scale(ve,ve)),i&&te.translate(i.x,i.y),n&&te.scale(n,n)}if(h||(s.textureDrawLastFrame=!1),h){if(s.textureDrawLastFrame=!0,!s.textureCache){s.textureCache={},s.textureCache.bb=l.mutableElements().boundingBox(),s.textureCache.texture=s.data.bufferCanvases[s.TEXTURE_BUFFER];var I=s.data.bufferContexts[s.TEXTURE_BUFFER];I.setTransform(1,0,0,1,0,0),I.clearRect(0,0,s.canvasWidth*s.textureMult,s.canvasHeight*s.textureMult),s.render({forcedContext:I,drawOnlyNodeLayer:!0,forcedPxRatio:o*s.textureMult});var x=s.textureCache.viewport={zoom:l.zoom(),pan:l.pan(),width:s.canvasWidth,height:s.canvasHeight};x.mpan={x:(0-x.pan.x)/x.zoom,y:(0-x.pan.y)/x.zoom}}f[s.DRAG]=!1,f[s.NODE]=!1;var O=u.contexts[s.NODE],k=s.textureCache.texture,x=s.textureCache.viewport;O.setTransform(1,0,0,1,0,0),c?A(O,0,0,x.width,x.height):O.clearRect(0,0,x.width,x.height);var R=m.core("outside-texture-bg-color").value,M=m.core("outside-texture-bg-opacity").value;s.colorFillStyle(O,R[0],R[1],R[2],M),O.fillRect(0,0,x.width,x.height);var b=l.zoom();L(O,!1),O.clearRect(x.mpan.x,x.mpan.y,x.width/x.zoom/o,x.height/x.zoom/o),O.drawImage(k,x.mpan.x,x.mpan.y,x.width/x.zoom/o,x.height/x.zoom/o)}else s.textureOnViewport&&!e&&(s.textureCache=null);var P=l.extent(),F=s.pinching||s.hoverData.dragging||s.swipePanning||s.data.wheelZooming||s.hoverData.draggingEles||s.cy.animated(),V=s.hideEdgesOnViewport&&F,G=[];if(G[s.NODE]=!f[s.NODE]&&c&&!s.clearedForMotionBlur[s.NODE]||s.clearingMotionBlur,G[s.NODE]&&(s.clearedForMotionBlur[s.NODE]=!0),G[s.DRAG]=!f[s.DRAG]&&c&&!s.clearedForMotionBlur[s.DRAG]||s.clearingMotionBlur,G[s.DRAG]&&(s.clearedForMotionBlur[s.DRAG]=!0),f[s.NODE]||r||a||G[s.NODE]){var B=c&&!G[s.NODE]&&v!==1,O=e||(B?s.data.bufferContexts[s.MOTIONBLUR_BUFFER_NODE]:u.contexts[s.NODE]),$=c&&!B?"motionBlur":void 0;L(O,$),V?s.drawCachedNodes(O,S.nondrag,o,P):s.drawLayeredElements(O,S.nondrag,o,P),s.debug&&s.drawDebugPoints(O,S.nondrag),!r&&!c&&(f[s.NODE]=!1)}if(!a&&(f[s.DRAG]||r||G[s.DRAG])){var B=c&&!G[s.DRAG]&&v!==1,O=e||(B?s.data.bufferContexts[s.MOTIONBLUR_BUFFER_DRAG]:u.contexts[s.DRAG]);L(O,c&&!B?"motionBlur":void 0),V?s.drawCachedNodes(O,S.drag,o,P):s.drawCachedElements(O,S.drag,o,P),s.debug&&s.drawDebugPoints(O,S.drag),!r&&!c&&(f[s.DRAG]=!1)}if(s.showFps||!a&&f[s.SELECT_BOX]&&!r){var O=e||u.contexts[s.SELECT_BOX];if(L(O),s.selection[4]==1&&(s.hoverData.selecting||s.touchData.selecting)){var b=s.cy.zoom(),q=m.core("selection-box-border-width").value/b;O.lineWidth=q,O.fillStyle="rgba("+m.core("selection-box-color").value[0]+","+m.core("selection-box-color").value[1]+","+m.core("selection-box-color").value[2]+","+m.core("selection-box-opacity").value+")",O.fillRect(s.selection[0],s.selection[1],s.selection[2]-s.selection[0],s.selection[3]-s.selection[1]),q>0&&(O.strokeStyle="rgba("+m.core("selection-box-border-color").value[0]+","+m.core("selection-box-border-color").value[1]+","+m.core("selection-box-border-color").value[2]+","+m.core("selection-box-opacity").value+")",O.strokeRect(s.selection[0],s.selection[1],s.selection[2]-s.selection[0],s.selection[3]-s.selection[1]))}if(u.bgActivePosistion&&!s.hoverData.selecting){var b=s.cy.zoom(),Z=u.bgActivePosistion;O.fillStyle="rgba("+m.core("active-bg-color").value[0]+","+m.core("active-bg-color").value[1]+","+m.core("active-bg-color").value[2]+","+m.core("active-bg-opacity").value+")",O.beginPath(),O.arc(Z.x,Z.y,m.core("active-bg-size").pfValue/b,0,2*Math.PI),O.fill()}var W=s.lastRedrawTime;if(s.showFps&&W){W=Math.round(W);var ee=Math.round(1e3/W);O.setTransform(1,0,0,1,0,0),O.fillStyle="rgba(255, 0, 0, 0.75)",O.strokeStyle="rgba(255, 0, 0, 0.75)",O.lineWidth=1,O.fillText("1 frame = "+W+" ms = "+ee+" fps",0,20);var Y=60;O.strokeRect(0,30,250,20),O.fillRect(0,30,250*Math.min(ee/Y,1),20)}r||(f[s.SELECT_BOX]=!1)}if(c&&v!==1){var z=u.contexts[s.NODE],H=s.data.bufferCanvases[s.MOTIONBLUR_BUFFER_NODE],Q=u.contexts[s.DRAG],ne=s.data.bufferCanvases[s.MOTIONBLUR_BUFFER_DRAG],ce=function(se,ue,ve){se.setTransform(1,0,0,1,0,0),ve||!g?se.clearRect(0,0,s.canvasWidth,s.canvasHeight):A(se,0,0,s.canvasWidth,s.canvasHeight);var fe=v;se.drawImage(ue,0,0,s.canvasWidth*fe,s.canvasHeight*fe,0,0,s.canvasWidth,s.canvasHeight)};(f[s.NODE]||G[s.NODE])&&(ce(z,H,G[s.NODE]),f[s.NODE]=!1),(f[s.DRAG]||G[s.DRAG])&&(ce(Q,ne,G[s.DRAG]),f[s.DRAG]=!1)}s.prevViewport=x,s.clearingMotionBlur&&(s.clearingMotionBlur=!1,s.motionBlurCleared=!0,s.motionBlur=!0),c&&(s.motionBlurTimeout=setTimeout(function(){s.motionBlurTimeout=null,s.clearedForMotionBlur[s.NODE]=!1,s.clearedForMotionBlur[s.DRAG]=!1,s.motionBlur=!1,s.clearingMotionBlur=!h,s.mbFrames=0,f[s.NODE]=!0,f[s.DRAG]=!0,s.redraw()},_p)),e||l.emit("render")};var or={};or.drawPolygonPath=function(t,e,r,a,n,i){var s=a/2,o=n/2;t.beginPath&&t.beginPath(),t.moveTo(e+s*i[0],r+o*i[1]);for(var l=1;l0&&s>0){v.clearRect(0,0,i,s),v.globalCompositeOperation="source-over";var d=this.getCachedZSortedEles();if(t.full)v.translate(-a.x1*u,-a.y1*u),v.scale(u,u),this.drawElements(v,d),v.scale(1/u,1/u),v.translate(a.x1*u,a.y1*u);else{var y=e.pan(),p={x:y.x*u,y:y.y*u};u*=e.zoom(),v.translate(p.x,p.y),v.scale(u,u),this.drawElements(v,d),v.scale(1/u,1/u),v.translate(-p.x,-p.y)}t.bg&&(v.globalCompositeOperation="destination-over",v.fillStyle=t.bg,v.rect(0,0,i,s),v.fill())}return c};function Hp(t,e){for(var r=atob(t),a=new ArrayBuffer(r.length),n=new Uint8Array(a),i=0;i"u"?"undefined":He(OffscreenCanvas))!=="undefined")r=new OffscreenCanvas(t,e);else{var a=this.cy.window(),n=a.document;r=n.createElement("canvas"),r.width=t,r.height=e}return r};[Xu,zt,qt,Fi,Tr,Zr,yt,or,Ma,Qu].forEach(function(t){be(Se,t)});var Wp=[{name:"null",impl:Ru},{name:"base",impl:Yu},{name:"canvas",impl:Xp}],Kp=[{type:"layout",extensions:tp},{type:"renderer",extensions:Wp}],ju={},el={};function tl(t,e,r){var a=r,n=function(T){Ne("Can not register `"+e+"` for `"+t+"` since `"+T+"` already exists in the prototype and can not be overridden")};if(t==="core"){if(Ta.prototype[e])return n(e);Ta.prototype[e]=r}else if(t==="collection"){if(et.prototype[e])return n(e);et.prototype[e]=r}else if(t==="layout"){for(var i=function(T){this.options=T,r.call(this,T),Ce(this._private)||(this._private={}),this._private.cy=T.cy,this._private.listeners=[],this.createEmitter()},s=i.prototype=Object.create(r.prototype),o=[],l=0;l"u"&&(P.yylloc={});var G=P.yylloc;S.push(G);var B=P.options&&P.options.ranges;typeof F.yy.parseError=="function"?this.parseError=F.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function $(){var te;return te=T.pop()||P.lex()||R,typeof te!="number"&&(te instanceof Array&&(T=te,te=T.pop()),te=w.symbols_[te]||te),te}for(var q,Z,W,ee,Y={},z,H,Q,ne;;){if(Z=x[x.length-1],this.defaultActions[Z]?W=this.defaultActions[Z]:((q===null||typeof q>"u")&&(q=$()),W=A[Z]&&A[Z][q]),typeof W>"u"||!W.length||!W[0]){var ce="";ne=[];for(z in A[Z])this.terminals_[z]&&z>k&&ne.push("'"+this.terminals_[z]+"'");P.showPosition?ce="Parse error on line "+(I+1)+`: +`+P.showPosition()+` +Expecting `+ne.join(", ")+", got '"+(this.terminals_[q]||q)+"'":ce="Parse error on line "+(I+1)+": Unexpected "+(q==R?"end of input":"'"+(this.terminals_[q]||q)+"'"),this.parseError(ce,{text:P.match,token:this.terminals_[q]||q,line:P.yylineno,loc:G,expected:ne})}if(W[0]instanceof Array&&W.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Z+", token: "+q);switch(W[0]){case 1:x.push(q),D.push(P.yytext),S.push(P.yylloc),x.push(W[1]),q=null,O=P.yyleng,L=P.yytext,I=P.yylineno,G=P.yylloc;break;case 2:if(H=this.productions_[W[1]][1],Y.$=D[D.length-H],Y._$={first_line:S[S.length-(H||1)].first_line,last_line:S[S.length-1].last_line,first_column:S[S.length-(H||1)].first_column,last_column:S[S.length-1].last_column},B&&(Y._$.range=[S[S.length-(H||1)].range[0],S[S.length-1].range[1]]),ee=this.performAction.apply(Y,[L,O,I,F.yy,W[1],D,S].concat(M)),typeof ee<"u")return ee;H&&(x=x.slice(0,-1*H*2),D=D.slice(0,-1*H),S=S.slice(0,-1*H)),x.push(this.productions_[W[1]][0]),D.push(Y.$),S.push(Y._$),Q=A[x[x.length-2]][x[x.length-1]],x.push(Q);break;case 3:return!0}}return!0}},m=function(){var C={EOF:1,parseError:function(w,x){if(this.yy.parser)this.yy.parser.parseError(w,x);else throw new Error(w)},setInput:function(E,w){return this.yy=w||this.yy||{},this._input=E,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 E=this._input[0];this.yytext+=E,this.yyleng++,this.offset++,this.match+=E,this.matched+=E;var w=E.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),E},unput:function(E){var w=E.length,x=E.split(/(?:\r\n?|\n)/g);this._input=E+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-w),this.offset-=w;var T=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),x.length-1&&(this.yylineno-=x.length-1);var D=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:x?(x.length===T.length?this.yylloc.first_column:0)+T[T.length-x.length].length-x[0].length:this.yylloc.first_column-w},this.options.ranges&&(this.yylloc.range=[D[0],D[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(E){this.unput(this.match.slice(E))},pastInput:function(){var E=this.matched.substr(0,this.matched.length-this.match.length);return(E.length>20?"...":"")+E.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var E=this.match;return E.length<20&&(E+=this._input.substr(0,20-E.length)),(E.substr(0,20)+(E.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var E=this.pastInput(),w=new Array(E.length+1).join("-");return E+this.upcomingInput()+` +`+w+"^"},test_match:function(E,w){var x,T,D;if(this.options.backtrack_lexer&&(D={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&&(D.yylloc.range=this.yylloc.range.slice(0))),T=E[0].match(/(?:\r\n?|\n).*/g),T&&(this.yylineno+=T.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:T?T[T.length-1].length-T[T.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+E[0].length},this.yytext+=E[0],this.match+=E[0],this.matches=E,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(E[0].length),this.matched+=E[0],x=this.performAction.call(this,this.yy,this,w,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),x)return x;if(this._backtrack){for(var S in D)this[S]=D[S];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var E,w,x,T;this._more||(this.yytext="",this.match="");for(var D=this._currentRules(),S=0;Sw[0].length)){if(w=x,T=S,this.options.backtrack_lexer){if(E=this.test_match(x,D[S]),E!==!1)return E;if(this._backtrack){w=!1;continue}else return!1}else if(!this.options.flex)break}return w?(E=this.test_match(w,D[T]),E!==!1?E:!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,x,T,D){switch(T){case 0:return w.getLogger().trace("Found comment",x.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:w.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return w.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:w.getLogger().trace("end icon"),this.popState();break;case 10:return w.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return w.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return w.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return w.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:w.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return w.getLogger().trace("description:",x.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),w.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),w.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),w.getLogger().trace("node end ...",x.yytext),"NODE_DEND";case 30:return this.popState(),w.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),w.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),w.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),w.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),w.getLogger().trace("node end (("),"NODE_DEND";case 35:return w.getLogger().trace("Long description:",x.yytext),20;case 36:return w.getLogger().trace("Long description:",x.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 C}();g.lexer=m;function b(){this.yy={}}return b.prototype=g,g.Parser=b,new b}();Yi.parser=Yi;var jp=Yi,Nt=[],sl=0,_i={},ey=()=>{Nt=[],sl=0,_i={}},ty=function(t){for(let e=Nt.length-1;e>=0;e--)if(Nt[e].levelNt.length>0?Nt[0]:null,ay=(t,e,r,a)=>{var n,i;Wt.info("addNode",t,e,r,a);let s=Fa(),o=((n=s.mindmap)==null?void 0:n.padding)??ea.mindmap.padding;switch(a){case qe.ROUNDED_RECT:case qe.RECT:case qe.HEXAGON:o*=2}let l={id:sl++,nodeId:jr(e,s),level:t,descr:jr(r,s),type:a,children:[],width:((i=s.mindmap)==null?void 0:i.maxNodeWidth)??ea.mindmap.maxNodeWidth,padding:o},u=ty(t);if(u)u.children.push(l),Nt.push(l);else if(Nt.length===0)Nt.push(l);else throw new Error('There can be only one root. No parent could be found for ("'+l.descr+'")')},qe={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},ny=(t,e)=>{switch(Wt.debug("In get type",t,e),t){case"[":return qe.RECT;case"(":return e===")"?qe.ROUNDED_RECT:qe.CLOUD;case"((":return qe.CIRCLE;case")":return qe.CLOUD;case"))":return qe.BANG;case"{{":return qe.HEXAGON;default:return qe.DEFAULT}},iy=(t,e)=>{_i[t]=e},sy=t=>{if(!t)return;let e=Fa(),r=Nt[Nt.length-1];t.icon&&(r.icon=jr(t.icon,e)),t.class&&(r.class=jr(t.class,e))},oy=t=>{switch(t){case qe.DEFAULT:return"no-border";case qe.RECT:return"rect";case qe.ROUNDED_RECT:return"rounded-rect";case qe.CIRCLE:return"circle";case qe.CLOUD:return"cloud";case qe.BANG:return"bang";case qe.HEXAGON:return"hexgon";default:return"no-border"}},uy=()=>Wt,ly=t=>_i[t],fy={clear:ey,addNode:ay,getMindmap:ry,nodeType:qe,getType:ny,setElementForId:iy,decorateNode:sy,type2Str:oy,getLogger:uy,getElementById:ly},hy=fy,cy=12,vy=function(t,e,r,a){e.append("path").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.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`),e.append("line").attr("class","node-line-"+a).attr("x1",0).attr("y1",r.height).attr("x2",r.width).attr("y2",r.height)},dy=function(t,e,r){e.append("rect").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("height",r.height).attr("width",r.width)},gy=function(t,e,r){let a=r.width,n=r.height,i=.15*a,s=.25*a,o=.35*a,l=.2*a;e.append("path").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("d",`M0 0 a${i},${i} 0 0,1 ${a*.25},${-1*a*.1} + a${o},${o} 1 0,1 ${a*.4},${-1*a*.1} + a${s},${s} 1 0,1 ${a*.35},${1*a*.2} + + a${i},${i} 1 0,1 ${a*.15},${1*n*.35} + a${l},${l} 1 0,1 ${-1*a*.15},${1*n*.65} + + a${s},${i} 1 0,1 ${-1*a*.25},${a*.15} + a${o},${o} 1 0,1 ${-1*a*.5},0 + a${i},${i} 1 0,1 ${-1*a*.25},${-1*a*.15} + + a${i},${i} 1 0,1 ${-1*a*.1},${-1*n*.35} + a${l},${l} 1 0,1 ${a*.1},${-1*n*.65} + + H0 V0 Z`)},py=function(t,e,r){let a=r.width,n=r.height,i=.15*a;e.append("path").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("d",`M0 0 a${i},${i} 1 0,0 ${a*.25},${-1*n*.1} + a${i},${i} 1 0,0 ${a*.25},0 + a${i},${i} 1 0,0 ${a*.25},0 + a${i},${i} 1 0,0 ${a*.25},${1*n*.1} + + a${i},${i} 1 0,0 ${a*.15},${1*n*.33} + a${i*.8},${i*.8} 1 0,0 0,${1*n*.34} + a${i},${i} 1 0,0 ${-1*a*.15},${1*n*.33} + + a${i},${i} 1 0,0 ${-1*a*.25},${n*.15} + a${i},${i} 1 0,0 ${-1*a*.25},0 + a${i},${i} 1 0,0 ${-1*a*.25},0 + a${i},${i} 1 0,0 ${-1*a*.25},${-1*n*.15} + + a${i},${i} 1 0,0 ${-1*a*.1},${-1*n*.33} + a${i*.8},${i*.8} 1 0,0 0,${-1*n*.34} + a${i},${i} 1 0,0 ${a*.1},${-1*n*.33} + + H0 V0 Z`)},yy=function(t,e,r){e.append("circle").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("r",r.width/2)};function my(t,e,r,a,n){return t.insert("polygon",":first-child").attr("points",a.map(function(i){return i.x+","+i.y}).join(" ")).attr("transform","translate("+(n.width-e)/2+", "+r+")")}var by=function(t,e,r){let a=r.height,i=a/4,s=r.width-r.padding+2*i,o=[{x:i,y:0},{x:s-i,y:0},{x:s,y:-a/2},{x:s-i,y:-a},{x:i,y:-a},{x:0,y:-a/2}];my(e,s,a,o,r)},Ey=function(t,e,r){e.append("rect").attr("id","node-"+r.id).attr("class","node-bkg node-"+t.type2Str(r.type)).attr("height",r.height).attr("rx",r.padding).attr("ry",r.padding).attr("width",r.width)},wy=function(t,e,r,a,n){let i=n.htmlLabels,s=a%(cy-1),o=e.append("g");r.section=s;let l="section-"+s;s<0&&(l+=" section-root"),o.attr("class",(r.class?r.class+" ":"")+"mindmap-node "+l);let u=o.append("g"),f=o.append("g"),h=r.descr.replace(/()/g,` +`);es(f,h,{useHtmlLabels:i,width:r.width,classes:"mindmap-node-label"}),i||f.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle");let c=f.node().getBBox(),[v]=ts(n.fontSize);if(r.height=c.height+v*1.1*.5+r.padding,r.width=c.width+2*r.padding,r.icon)if(r.type===t.nodeType.CIRCLE)r.height+=50,r.width+=50,o.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-"+s+" "+r.icon),f.attr("transform","translate("+r.width/2+", "+(r.height/2-1.5*r.padding)+")");else{r.width+=50;let d=r.height;r.height=Math.max(d,60);let y=Math.abs(r.height-d);o.append("foreignObject").attr("width","60px").attr("height",r.height).attr("style","text-align: center;margin-top:"+y/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+s+" "+r.icon),f.attr("transform","translate("+(25+r.width/2)+", "+(y/2+r.padding/2)+")")}else if(i){let d=(r.width-c.width)/2,y=(r.height-c.height)/2;f.attr("transform","translate("+d+", "+y+")")}else{let d=r.width/2,y=r.padding/2;f.attr("transform","translate("+d+", "+y+")")}switch(r.type){case t.nodeType.DEFAULT:vy(t,u,r,s);break;case t.nodeType.ROUNDED_RECT:Ey(t,u,r);break;case t.nodeType.RECT:dy(t,u,r);break;case t.nodeType.CIRCLE:u.attr("transform","translate("+r.width/2+", "+ +r.height/2+")"),yy(t,u,r);break;case t.nodeType.CLOUD:gy(t,u,r);break;case t.nodeType.BANG:py(t,u,r);break;case t.nodeType.HEXAGON:by(t,u,r);break}return t.setElementForId(r.id,o),r.height},xy=function(t,e){let r=t.getElementById(e.id),a=e.x||0,n=e.y||0;r.attr("transform","translate("+a+","+n+")")};Ht.use(il.default);function ol(t,e,r,a,n){wy(t,e,r,a,n),r.children&&r.children.forEach((i,s)=>{ol(t,e,i,a<0?s:a,n)})}function Ty(t,e){e.edges().map((r,a)=>{let n=r.data();if(r[0]._private.bodyBounds){let i=r[0]._private.rscratch;Wt.trace("Edge: ",a,n),t.insert("path").attr("d",`M ${i.startX},${i.startY} L ${i.midX},${i.midY} L${i.endX},${i.endY} `).attr("class","edge section-edge-"+n.section+" edge-depth-"+n.depth)}})}function ul(t,e,r,a){e.add({group:"nodes",data:{id:t.id.toString(),labelText:t.descr,height:t.height,width:t.width,level:a,nodeId:t.id,padding:t.padding,type:t.type},position:{x:t.x,y:t.y}}),t.children&&t.children.forEach(n=>{ul(n,e,r,a+1),e.add({group:"edges",data:{id:`${t.id}_${n.id}`,source:t.id,target:n.id,depth:a,section:n.section}})})}function Cy(t,e){return new Promise(r=>{let a=Zi("body").append("div").attr("id","cy").attr("style","display:none"),n=Ht({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});a.remove(),ul(t,n,e,0),n.nodes().forEach(function(i){i.layoutDimensions=()=>{let s=i.data();return{w:s.width,h:s.height}}}),n.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),n.ready(i=>{Wt.info("Ready",i),r(n)})})}function Dy(t,e){e.nodes().map((r,a)=>{let n=r.data();n.x=r.position().x,n.y=r.position().y,xy(t,n);let i=t.getElementById(n.nodeId);Wt.info("Id:",a,"Position: (",r.position().x,", ",r.position().y,")",n),i.attr("transform",`translate(${r.position().x-n.width/2}, ${r.position().y-n.height/2})`),i.attr("attr",`apa-${a})`)})}var Sy=(t,e,r,a)=>Ki(void 0,null,function*(){var n,i;Wt.debug(`Rendering mindmap diagram +`+t);let s=a.db,o=s.getMindmap();if(!o)return;let l=Fa();l.htmlLabels=!1;let u=as(e),f=u.append("g");f.attr("class","mindmap-edges");let h=u.append("g");h.attr("class","mindmap-nodes"),ol(s,h,o,-1,l);let c=yield Cy(o,l);Ty(f,c),Dy(s,c),rs(void 0,u,((n=l.mindmap)==null?void 0:n.padding)??ea.mindmap.padding,((i=l.mindmap)==null?void 0:i.useMaxWidth)??ea.mindmap.useMaxWidth)}),Ly={draw:Sy},Ay=t=>{let e="";for(let r=0;r` + .edge { + stroke-width: 3; + } + ${Ay(t)} + .section-root rect, .section-root path, .section-root circle, .section-root polygon { + fill: ${t.git0}; + } + .section-root text { + fill: ${t.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; + } +`,Ny=Oy,Uy={db:hy,renderer:Ly,parser:jp,styles:Ny};export{Uy as diagram}; diff --git a/chunk-74ANW5XJ.js b/chunk-74ANW5XJ.js new file mode 100644 index 0000000..c3b6f2c --- /dev/null +++ b/chunk-74ANW5XJ.js @@ -0,0 +1,116 @@ +import{a as U}from"./chunk-FRQHQZY3.js";import{A as H}from"./chunk-KLEKA63L.js";import{$a as K,F as L,Fa as u,Ia as j,J as M,K as R,Ma as B,Na as I,S as q,Sa as E,Ta as N,db as W,h as _,i as V,la as F,mb as v}from"./chunk-2YKPSI5H.js";import{j as $}from"./chunk-TWZW5B45.js";function se(e,l){return!!e.children(l).length}function ie(e){return D(e.v)+":"+D(e.w)+":"+D(e.name)}var O=/:/g;function D(e){return e?String(e).replace(O,"\\:"):""}function X(e,l){l&&e.attr("style",l)}function ce(e,l,c){l&&e.attr("class",l).attr("class",c+" "+e.attr("class"))}function de(e,l){var c=l.graph();if(F(c)){var a=c.transition;if(q(a))return a(e)}return e}function J(e,l){var c=e.append("foreignObject").attr("width","100000"),a=c.append("xhtml:div");a.attr("xmlns","http://www.w3.org/1999/xhtml");var i=l.label;switch(typeof i){case"function":a.insert(i);break;case"object":a.insert(function(){return i});break;default:a.html(i)}X(a,l.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap");var d=a.node().getBoundingClientRect();return c.attr("width",d.width).attr("height",d.height),c}var Q={},te=function(e){let l=Object.keys(e);for(let c of l)Q[c]=e[c]},Y=function(e,l,c,a,i,d){return $(this,null,function*(){let w=a.select(`[id="${c}"]`),n=Object.keys(e);for(let p of n){let r=e[p],y="default";r.classes.length>0&&(y=r.classes.join(" ")),y=y+" flowchart-label";let h=N(r.styles),t=r.text!==void 0?r.text:r.id,s;if(u.info("vertex",r,r.labelType),r.labelType==="markdown")u.info("vertex",r,r.labelType);else if(j(v().flowchart.htmlLabels))s=J(w,{label:t}).node(),s.parentNode.removeChild(s);else{let k=i.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("style",h.labelStyle.replace("color:","fill:"));let C=t.split(I.lineBreakRegex);for(let A of C){let S=i.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","1"),S.textContent=A,k.appendChild(S)}s=k}let b=0,o="";switch(r.type){case"round":b=5,o="rect";break;case"square":o="rect";break;case"diamond":o="question";break;case"hexagon":o="hexagon";break;case"odd":o="rect_left_inv_arrow";break;case"lean_right":o="lean_right";break;case"lean_left":o="lean_left";break;case"trapezoid":o="trapezoid";break;case"inv_trapezoid":o="inv_trapezoid";break;case"odd_right":o="rect_left_inv_arrow";break;case"circle":o="circle";break;case"ellipse":o="ellipse";break;case"stadium":o="stadium";break;case"subroutine":o="subroutine";break;case"cylinder":o="cylinder";break;case"group":o="rect";break;case"doublecircle":o="doublecircle";break;default:o="rect"}let T=yield B(t,v());l.setNode(r.id,{labelStyle:h.labelStyle,shape:o,labelText:T,labelType:r.labelType,rx:b,ry:b,class:y,style:h.style,id:r.id,link:r.link,linkTarget:r.linkTarget,tooltip:d.db.getTooltip(r.id)||"",domId:d.db.lookUpDomId(r.id),haveCallback:r.haveCallback,width:r.type==="group"?500:void 0,dir:r.dir,type:r.type,props:r.props,padding:v().flowchart.padding}),u.info("setNode",{labelStyle:h.labelStyle,labelType:r.labelType,shape:o,labelText:T,rx:b,ry:b,class:y,style:h.style,id:r.id,domId:d.db.lookUpDomId(r.id),width:r.type==="group"?500:void 0,type:r.type,dir:r.dir,props:r.props,padding:v().flowchart.padding})}})},Z=function(e,l,c){return $(this,null,function*(){u.info("abc78 edges = ",e);let a=0,i={},d,w;if(e.defaultStyle!==void 0){let n=N(e.defaultStyle);d=n.style,w=n.labelStyle}for(let n of e){a++;let p="L-"+n.start+"-"+n.end;i[p]===void 0?(i[p]=0,u.info("abc78 new entry",p,i[p])):(i[p]++,u.info("abc78 new entry",p,i[p]));let r=p+"-"+i[p];u.info("abc78 new link id to be used is",p,r,i[p]);let y="LS-"+n.start,h="LE-"+n.end,t={style:"",labelStyle:""};switch(t.minlen=n.length||1,n.type==="arrow_open"?t.arrowhead="none":t.arrowhead="normal",t.arrowTypeStart="arrow_open",t.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":t.arrowTypeStart="arrow_cross";case"arrow_cross":t.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":t.arrowTypeStart="arrow_point";case"arrow_point":t.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":t.arrowTypeStart="arrow_circle";case"arrow_circle":t.arrowTypeEnd="arrow_circle";break}let s="",b="";switch(n.stroke){case"normal":s="fill:none;",d!==void 0&&(s=d),w!==void 0&&(b=w),t.thickness="normal",t.pattern="solid";break;case"dotted":t.thickness="normal",t.pattern="dotted",t.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":t.thickness="thick",t.pattern="solid",t.style="stroke-width: 3.5px;fill:none;";break;case"invisible":t.thickness="invisible",t.pattern="solid",t.style="stroke-width: 0;fill:none;";break}if(n.style!==void 0){let o=N(n.style);s=o.style,b=o.labelStyle}t.style=t.style+=s,t.labelStyle=t.labelStyle+=b,n.interpolate!==void 0?t.curve=E(n.interpolate,L):e.defaultInterpolate!==void 0?t.curve=E(e.defaultInterpolate,L):t.curve=E(Q.curve,L),n.text===void 0?n.style!==void 0&&(t.arrowheadStyle="fill: #333"):(t.arrowheadStyle="fill: #333",t.labelpos="c"),t.labelType=n.labelType,t.label=yield B(n.text.replace(I.lineBreakRegex,` +`),v()),n.style===void 0&&(t.style=t.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),t.labelStyle=t.labelStyle.replace("color:","fill:"),t.id=r,t.classes="flowchart-link "+y+" "+h,l.setEdge(n.start,n.end,t,a)}})},re=function(e,l){return l.db.getClasses()},le=function(e,l,c,a){return $(this,null,function*(){u.info("Drawing flowchart");let i=a.db.getDirection();i===void 0&&(i="TD");let{securityLevel:d,flowchart:w}=v(),n=w.nodeSpacing||50,p=w.rankSpacing||50,r;d==="sandbox"&&(r=_("#i"+l));let y=d==="sandbox"?_(r.nodes()[0].contentDocument.body):_("body"),h=d==="sandbox"?r.nodes()[0].contentDocument:document,t=new H({multigraph:!0,compound:!0}).setGraph({rankdir:i,nodesep:n,ranksep:p,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}}),s,b=a.db.getSubGraphs();u.info("Subgraphs - ",b);for(let f=b.length-1;f>=0;f--)s=b[f],u.info("Subgraph - ",s),a.db.addVertex(s.id,{text:s.title,type:s.labelType},"group",void 0,s.classes,s.dir);let o=a.db.getVertices(),T=a.db.getEdges();u.info("Edges",T);let k=0;for(k=b.length-1;k>=0;k--){s=b[k],V("cluster").append("text");for(let f=0;f{let c=R,a=c(e,"r"),i=c(e,"g"),d=c(e,"b");return M(a,i,d,l)},oe=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: ${ae(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}; + } +`,ke=oe;export{se as a,ie as b,X as c,ce as d,de as e,J as f,ye as g,ke as h}; diff --git a/chunk-7S3PH27A.js b/chunk-7S3PH27A.js new file mode 100644 index 0000000..902f58f --- /dev/null +++ b/chunk-7S3PH27A.js @@ -0,0 +1,261 @@ +import"./chunk-TWZW5B45.js";var m0=class r{constructor(e,t,a){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=a}static range(e,t){return t?!e||!e.loc||!t.loc||e.loc.lexer!==t.loc.lexer?null:new r(e.loc.lexer,e.loc.start,t.loc.end):e&&e.loc}},p0=class r{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new r(t,m0.range(this,e))}},M=class r{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var a="KaTeX parse error: "+e,n,s,o=t&&t.loc;if(o&&o.start<=o.end){var h=o.lexer.input;n=o.start,s=o.end,n===h.length?a+=" at end of input: ":a+=" at position "+(n+1)+": ";var c=h.slice(n,s).replace(/[^]/g,"$&\u0332"),p;n>15?p="\u2026"+h.slice(n-15,n):p=h.slice(0,n);var g;s+15":">","<":"<",'"':""","'":"'"},xa=/[&><"']/g;function wa(r){return String(r).replace(xa,e=>ya[e])}var gr=function r(e){return e.type==="ordgroup"||e.type==="color"?e.body.length===1?r(e.body[0]):e:e.type==="font"?r(e.body):e},ka=function(e){var t=gr(e);return t.type==="mathord"||t.type==="textord"||t.type==="atom"},Sa=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},Ma=function(e){var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},N={contains:pa,deflt:va,escape:wa,hyphenate:ba,getBaseElem:gr,isCharacterBox:ka,protocolFromUrl:Ma},qe={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 "},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 ",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:r=>"#"+r},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(r,e)=>(e.push(r),e)},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:r=>Math.max(0,r),cli:"--min-rule-thickness ",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:r=>Math.max(0,r),cli:"-s, --max-size ",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:r=>Math.max(0,r),cli:"-e, --max-expand ",cliProcessor:r=>r==="Infinity"?1/0:parseInt(r)},globalGroup:{type:"boolean",cli:!1}};function za(r){if(r.default)return r.default;var e=r.type,t=Array.isArray(e)?e[0]:e;if(typeof t!="string")return t.enum[0];switch(t){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}var he=class{constructor(e){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,e=e||{};for(var t in qe)if(qe.hasOwnProperty(t)){var a=qe[t];this[t]=e[t]!==void 0?a.processor?a.processor(e[t]):e[t]:za(a)}}reportNonstrict(e,t,a){var n=this.strict;if(typeof n=="function"&&(n=n(e,t,a)),!(!n||n==="ignore")){if(n===!0||n==="error")throw new M("LaTeX-incompatible input and strict mode is set to 'error': "+(t+" ["+e+"]"),a);n==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+n+"': "+t+" ["+e+"]"))}}useStrictBehavior(e,t,a){var n=this.strict;if(typeof n=="function")try{n=n(e,t,a)}catch{n="error"}return!n||n==="ignore"?!1:n===!0||n==="error"?!0:n==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+n+"': "+t+" ["+e+"]")),!1)}isTrusted(e){if(e.url&&!e.protocol){var t=N.protocolFromUrl(e.url);if(t==null)return!1;e.protocol=t}var a=typeof this.trust=="function"?this.trust(e):this.trust;return!!a}},x0=class{constructor(e,t,a){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=a}sup(){return w0[Aa[this.id]]}sub(){return w0[Ta[this.id]]}fracNum(){return w0[Ba[this.id]]}fracDen(){return w0[Da[this.id]]}cramp(){return w0[Ca[this.id]]}text(){return w0[qa[this.id]]}isTight(){return this.size>=2}},yt=0,Re=1,te=2,C0=3,me=4,f0=5,re=6,n0=7,w0=[new x0(yt,0,!1),new x0(Re,0,!0),new x0(te,1,!1),new x0(C0,1,!0),new x0(me,2,!1),new x0(f0,2,!0),new x0(re,3,!1),new x0(n0,3,!0)],Aa=[me,f0,me,f0,re,n0,re,n0],Ta=[f0,f0,f0,f0,n0,n0,n0,n0],Ba=[te,C0,me,f0,re,n0,re,n0],Da=[C0,C0,f0,f0,n0,n0,n0,n0],Ca=[Re,Re,C0,C0,f0,f0,n0,n0],qa=[yt,Re,te,C0,te,C0,te,C0],E={DISPLAY:w0[yt],TEXT:w0[te],SCRIPT:w0[me],SCRIPTSCRIPT:w0[re]},lt=[{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 Na(r){for(var e=0;e=n[0]&&r<=n[1])return t.name}return null}var Ne=[];lt.forEach(r=>r.blocks.forEach(e=>Ne.push(...e)));function br(r){for(var e=0;e=Ne[e]&&r<=Ne[e+1])return!0;return!1}var ee=80,Ra=function(e,t){return"M95,"+(622+e+t)+` +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`+e/2.075+" -"+e+` +c5.3,-9.3,12,-14,20,-14 +H400000v`+(40+e)+`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+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},Ea=function(e,t){return"M263,"+(601+e+t)+`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`+e/2.084+" -"+e+` +c4.7,-7.3,11,-11,19,-11 +H40000v`+(40+e)+`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+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},Ia=function(e,t){return"M983 "+(10+e+t)+` +l`+e/3.13+" -"+e+` +c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+` +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+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},Oa=function(e,t){return"M424,"+(2398+e+t)+` +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`+e/4.223+" -"+e+`c4,-6.7,10,-10,18,-10 H400000 +v`+(40+e)+`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+e)+" "+t+` +h400000v`+(40+e)+"h-400000z"},Ha=function(e,t){return"M473,"+(2713+e+t)+` +c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+" -"+e+` +c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`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+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"},Fa=function(e){var t=e/2;return"M400000 "+e+" H0 L"+t+" 0 l65 45 L145 "+(e-80)+" H400000z"},La=function(e,t,a){var n=a-54-t-e;return"M702 "+(e+t)+"H400000"+(40+e)+` +H742v`+n+`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 `+t+"H400000v"+(40+e)+"H742z"},Pa=function(e,t,a){t=1e3*t;var n="";switch(e){case"sqrtMain":n=Ra(t,ee);break;case"sqrtSize1":n=Ea(t,ee);break;case"sqrtSize2":n=Ia(t,ee);break;case"sqrtSize3":n=Oa(t,ee);break;case"sqrtSize4":n=Ha(t,ee);break;case"sqrtTall":n=La(t,ee,a)}return n},Ga=function(e,t){switch(e){case"\u239C":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"\u2223":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"\u2225":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z"+("M367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z");case"\u239F":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"\u23A2":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"\u23A5":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"\u23AA":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"\u23D0":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"\u2016":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257z"+("M478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z");default:return""}},Pt={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`},Va=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v1759 h347 v-84 +H403z M403 1759 V0 H319 V1759 v`+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+` v1759 H0 v84 H347z +M347 1759 V0 H263 V1759 v`+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z +M367 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+` v1715 h263 v84 H319z +MM319 602 V0 H403 V602 v`+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+` v1799 H0 v-84 H319z +MM319 602 V0 H403 V602 v`+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v602 h84z +M403 1759 V0 H319 V1759 v`+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+` v602 h84z +M347 1759 V0 h-84 V1759 v`+t+" 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,`+(t+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,-`+(t+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,`+(t+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,-`+(t+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.")}},$0=class{constructor(e){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=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return N.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),t=0;tt.toText();return this.children.map(e).join("")}},k0={"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]}},xe={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]},Gt={\u00C5:"A",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function Ua(r,e){k0[r]=e}function xt(r,e,t){if(!k0[e])throw new Error("Font metrics not found for font: "+e+".");var a=r.charCodeAt(0),n=k0[e][a];if(!n&&r[0]in Gt&&(a=Gt[r[0]].charCodeAt(0),n=k0[e][a]),!n&&t==="text"&&br(a)&&(n=k0[e][77]),n)return{depth:n[0],height:n[1],italic:n[2],skew:n[3],width:n[4]}}var Ze={};function Ya(r){var e;if(r>=5?e=0:r>=3?e=1:e=2,!Ze[e]){var t=Ze[e]={cssEmPerMu:xe.quad[e]/18};for(var a in xe)xe.hasOwnProperty(a)&&(t[a]=xe[a][e])}return Ze[e]}var Xa=[[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]],Vt=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Ut=function(e,t){return t.size<2?e:Xa[e-1][t.size-1]},$a=(()=>{class r{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||r.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=Vt[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var a={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 n in t)t.hasOwnProperty(n)&&(a[n]=t[n]);return new r(a)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Ut(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:Vt[t-1]})}havingBaseStyle(t){t=t||this.style.text();var a=Ut(r.BASESIZE,t);return this.size===a&&this.textSize===r.BASESIZE&&this.style===t?this:this.extend({style:t,size:a})}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!==r.BASESIZE?["sizing","reset-size"+this.size,"size"+r.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Ya(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}return r.BASESIZE=6,r})(),ot={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},Wa={ex:!0,em:!0,mu:!0},yr=function(e){return typeof e!="string"&&(e=e.unit),e in ot||e in Wa||e==="ex"},J=function(e,t){var a;if(e.unit in ot)a=ot[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit==="mu")a=t.fontMetrics().cssEmPerMu;else{var n;if(t.style.isTight()?n=t.havingStyle(t.style.text()):n=t,e.unit==="ex")a=n.fontMetrics().xHeight;else if(e.unit==="em")a=n.fontMetrics().quad;else throw new M("Invalid unit: '"+e.unit+"'");n!==t&&(a*=n.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*a,t.maxSize)},A=function(e){return+e.toFixed(4)+"em"},P0=function(e){return e.filter(t=>t).join(" ")},xr=function(e,t,a){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=a||{},t){t.style.isTight()&&this.classes.push("mtight");var n=t.getColor();n&&(this.style.color=n)}},wr=function(e){var t=document.createElement(e);t.className=P0(this.classes);for(var a in this.style)this.style.hasOwnProperty(a)&&(t.style[a]=this.style[a]);for(var n in this.attributes)this.attributes.hasOwnProperty(n)&&t.setAttribute(n,this.attributes[n]);for(var s=0;s",t},W0=class{constructor(e,t,a,n){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,xr.call(this,e,a,n),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return N.contains(this.classes,e)}toNode(){return wr.call(this,"span")}toMarkup(){return kr.call(this,"span")}},ce=class{constructor(e,t,a,n){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,xr.call(this,t,n),this.children=a||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return N.contains(this.classes,e)}toNode(){return wr.call(this,"a")}toMarkup(){return kr.call(this,"a")}},ut=class{constructor(e,t,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=t,this.src=e,this.classes=["mord"],this.style=a}hasClass(e){return N.contains(this.classes,e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(var t in this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e=''+N.escape(this.alt)+'0&&(t=document.createElement("span"),t.style.marginRight=A(this.italic)),this.classes.length>0&&(t=t||document.createElement("span"),t.className=P0(this.classes));for(var a in this.style)this.style.hasOwnProperty(a)&&(t=t||document.createElement("span"),t.style[a]=this.style[a]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="0&&(a+="margin-right:"+this.italic+"em;");for(var n in this.style)this.style.hasOwnProperty(n)&&(a+=N.hyphenate(n)+":"+this.style[n]+";");a&&(e=!0,t+=' style="'+N.escape(a)+'"');var s=N.escape(this.text);return e?(t+=">",t+=s,t+="",t):s}},y0=class{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&t.setAttribute(a,this.attributes[a]);for(var n=0;n':''}},de=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"line");for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&t.setAttribute(a,this.attributes[a]);return t}toMarkup(){var e=" but got "+String(r)+".")}var Ka={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Ja={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},$={math:{},text:{}};function i(r,e,t,a,n,s){$[r][n]={font:e,group:t,replace:a},s&&a&&($[r][a]=$[r][n])}var l="math",k="text",u="main",d="ams",W="accent-token",D="bin",i0="close",ae="inner",R="mathord",_="op-token",c0="open",Le="punct",f="rel",E0="spacing",v="textord";i(l,u,f,"\u2261","\\equiv",!0);i(l,u,f,"\u227A","\\prec",!0);i(l,u,f,"\u227B","\\succ",!0);i(l,u,f,"\u223C","\\sim",!0);i(l,u,f,"\u22A5","\\perp");i(l,u,f,"\u2AAF","\\preceq",!0);i(l,u,f,"\u2AB0","\\succeq",!0);i(l,u,f,"\u2243","\\simeq",!0);i(l,u,f,"\u2223","\\mid",!0);i(l,u,f,"\u226A","\\ll",!0);i(l,u,f,"\u226B","\\gg",!0);i(l,u,f,"\u224D","\\asymp",!0);i(l,u,f,"\u2225","\\parallel");i(l,u,f,"\u22C8","\\bowtie",!0);i(l,u,f,"\u2323","\\smile",!0);i(l,u,f,"\u2291","\\sqsubseteq",!0);i(l,u,f,"\u2292","\\sqsupseteq",!0);i(l,u,f,"\u2250","\\doteq",!0);i(l,u,f,"\u2322","\\frown",!0);i(l,u,f,"\u220B","\\ni",!0);i(l,u,f,"\u221D","\\propto",!0);i(l,u,f,"\u22A2","\\vdash",!0);i(l,u,f,"\u22A3","\\dashv",!0);i(l,u,f,"\u220B","\\owns");i(l,u,Le,".","\\ldotp");i(l,u,Le,"\u22C5","\\cdotp");i(l,u,v,"#","\\#");i(k,u,v,"#","\\#");i(l,u,v,"&","\\&");i(k,u,v,"&","\\&");i(l,u,v,"\u2135","\\aleph",!0);i(l,u,v,"\u2200","\\forall",!0);i(l,u,v,"\u210F","\\hbar",!0);i(l,u,v,"\u2203","\\exists",!0);i(l,u,v,"\u2207","\\nabla",!0);i(l,u,v,"\u266D","\\flat",!0);i(l,u,v,"\u2113","\\ell",!0);i(l,u,v,"\u266E","\\natural",!0);i(l,u,v,"\u2663","\\clubsuit",!0);i(l,u,v,"\u2118","\\wp",!0);i(l,u,v,"\u266F","\\sharp",!0);i(l,u,v,"\u2662","\\diamondsuit",!0);i(l,u,v,"\u211C","\\Re",!0);i(l,u,v,"\u2661","\\heartsuit",!0);i(l,u,v,"\u2111","\\Im",!0);i(l,u,v,"\u2660","\\spadesuit",!0);i(l,u,v,"\xA7","\\S",!0);i(k,u,v,"\xA7","\\S");i(l,u,v,"\xB6","\\P",!0);i(k,u,v,"\xB6","\\P");i(l,u,v,"\u2020","\\dag");i(k,u,v,"\u2020","\\dag");i(k,u,v,"\u2020","\\textdagger");i(l,u,v,"\u2021","\\ddag");i(k,u,v,"\u2021","\\ddag");i(k,u,v,"\u2021","\\textdaggerdbl");i(l,u,i0,"\u23B1","\\rmoustache",!0);i(l,u,c0,"\u23B0","\\lmoustache",!0);i(l,u,i0,"\u27EF","\\rgroup",!0);i(l,u,c0,"\u27EE","\\lgroup",!0);i(l,u,D,"\u2213","\\mp",!0);i(l,u,D,"\u2296","\\ominus",!0);i(l,u,D,"\u228E","\\uplus",!0);i(l,u,D,"\u2293","\\sqcap",!0);i(l,u,D,"\u2217","\\ast");i(l,u,D,"\u2294","\\sqcup",!0);i(l,u,D,"\u25EF","\\bigcirc",!0);i(l,u,D,"\u2219","\\bullet",!0);i(l,u,D,"\u2021","\\ddagger");i(l,u,D,"\u2240","\\wr",!0);i(l,u,D,"\u2A3F","\\amalg");i(l,u,D,"&","\\And");i(l,u,f,"\u27F5","\\longleftarrow",!0);i(l,u,f,"\u21D0","\\Leftarrow",!0);i(l,u,f,"\u27F8","\\Longleftarrow",!0);i(l,u,f,"\u27F6","\\longrightarrow",!0);i(l,u,f,"\u21D2","\\Rightarrow",!0);i(l,u,f,"\u27F9","\\Longrightarrow",!0);i(l,u,f,"\u2194","\\leftrightarrow",!0);i(l,u,f,"\u27F7","\\longleftrightarrow",!0);i(l,u,f,"\u21D4","\\Leftrightarrow",!0);i(l,u,f,"\u27FA","\\Longleftrightarrow",!0);i(l,u,f,"\u21A6","\\mapsto",!0);i(l,u,f,"\u27FC","\\longmapsto",!0);i(l,u,f,"\u2197","\\nearrow",!0);i(l,u,f,"\u21A9","\\hookleftarrow",!0);i(l,u,f,"\u21AA","\\hookrightarrow",!0);i(l,u,f,"\u2198","\\searrow",!0);i(l,u,f,"\u21BC","\\leftharpoonup",!0);i(l,u,f,"\u21C0","\\rightharpoonup",!0);i(l,u,f,"\u2199","\\swarrow",!0);i(l,u,f,"\u21BD","\\leftharpoondown",!0);i(l,u,f,"\u21C1","\\rightharpoondown",!0);i(l,u,f,"\u2196","\\nwarrow",!0);i(l,u,f,"\u21CC","\\rightleftharpoons",!0);i(l,d,f,"\u226E","\\nless",!0);i(l,d,f,"\uE010","\\@nleqslant");i(l,d,f,"\uE011","\\@nleqq");i(l,d,f,"\u2A87","\\lneq",!0);i(l,d,f,"\u2268","\\lneqq",!0);i(l,d,f,"\uE00C","\\@lvertneqq");i(l,d,f,"\u22E6","\\lnsim",!0);i(l,d,f,"\u2A89","\\lnapprox",!0);i(l,d,f,"\u2280","\\nprec",!0);i(l,d,f,"\u22E0","\\npreceq",!0);i(l,d,f,"\u22E8","\\precnsim",!0);i(l,d,f,"\u2AB9","\\precnapprox",!0);i(l,d,f,"\u2241","\\nsim",!0);i(l,d,f,"\uE006","\\@nshortmid");i(l,d,f,"\u2224","\\nmid",!0);i(l,d,f,"\u22AC","\\nvdash",!0);i(l,d,f,"\u22AD","\\nvDash",!0);i(l,d,f,"\u22EA","\\ntriangleleft");i(l,d,f,"\u22EC","\\ntrianglelefteq",!0);i(l,d,f,"\u228A","\\subsetneq",!0);i(l,d,f,"\uE01A","\\@varsubsetneq");i(l,d,f,"\u2ACB","\\subsetneqq",!0);i(l,d,f,"\uE017","\\@varsubsetneqq");i(l,d,f,"\u226F","\\ngtr",!0);i(l,d,f,"\uE00F","\\@ngeqslant");i(l,d,f,"\uE00E","\\@ngeqq");i(l,d,f,"\u2A88","\\gneq",!0);i(l,d,f,"\u2269","\\gneqq",!0);i(l,d,f,"\uE00D","\\@gvertneqq");i(l,d,f,"\u22E7","\\gnsim",!0);i(l,d,f,"\u2A8A","\\gnapprox",!0);i(l,d,f,"\u2281","\\nsucc",!0);i(l,d,f,"\u22E1","\\nsucceq",!0);i(l,d,f,"\u22E9","\\succnsim",!0);i(l,d,f,"\u2ABA","\\succnapprox",!0);i(l,d,f,"\u2246","\\ncong",!0);i(l,d,f,"\uE007","\\@nshortparallel");i(l,d,f,"\u2226","\\nparallel",!0);i(l,d,f,"\u22AF","\\nVDash",!0);i(l,d,f,"\u22EB","\\ntriangleright");i(l,d,f,"\u22ED","\\ntrianglerighteq",!0);i(l,d,f,"\uE018","\\@nsupseteqq");i(l,d,f,"\u228B","\\supsetneq",!0);i(l,d,f,"\uE01B","\\@varsupsetneq");i(l,d,f,"\u2ACC","\\supsetneqq",!0);i(l,d,f,"\uE019","\\@varsupsetneqq");i(l,d,f,"\u22AE","\\nVdash",!0);i(l,d,f,"\u2AB5","\\precneqq",!0);i(l,d,f,"\u2AB6","\\succneqq",!0);i(l,d,f,"\uE016","\\@nsubseteqq");i(l,d,D,"\u22B4","\\unlhd");i(l,d,D,"\u22B5","\\unrhd");i(l,d,f,"\u219A","\\nleftarrow",!0);i(l,d,f,"\u219B","\\nrightarrow",!0);i(l,d,f,"\u21CD","\\nLeftarrow",!0);i(l,d,f,"\u21CF","\\nRightarrow",!0);i(l,d,f,"\u21AE","\\nleftrightarrow",!0);i(l,d,f,"\u21CE","\\nLeftrightarrow",!0);i(l,d,f,"\u25B3","\\vartriangle");i(l,d,v,"\u210F","\\hslash");i(l,d,v,"\u25BD","\\triangledown");i(l,d,v,"\u25CA","\\lozenge");i(l,d,v,"\u24C8","\\circledS");i(l,d,v,"\xAE","\\circledR");i(k,d,v,"\xAE","\\circledR");i(l,d,v,"\u2221","\\measuredangle",!0);i(l,d,v,"\u2204","\\nexists");i(l,d,v,"\u2127","\\mho");i(l,d,v,"\u2132","\\Finv",!0);i(l,d,v,"\u2141","\\Game",!0);i(l,d,v,"\u2035","\\backprime");i(l,d,v,"\u25B2","\\blacktriangle");i(l,d,v,"\u25BC","\\blacktriangledown");i(l,d,v,"\u25A0","\\blacksquare");i(l,d,v,"\u29EB","\\blacklozenge");i(l,d,v,"\u2605","\\bigstar");i(l,d,v,"\u2222","\\sphericalangle",!0);i(l,d,v,"\u2201","\\complement",!0);i(l,d,v,"\xF0","\\eth",!0);i(k,u,v,"\xF0","\xF0");i(l,d,v,"\u2571","\\diagup");i(l,d,v,"\u2572","\\diagdown");i(l,d,v,"\u25A1","\\square");i(l,d,v,"\u25A1","\\Box");i(l,d,v,"\u25CA","\\Diamond");i(l,d,v,"\xA5","\\yen",!0);i(k,d,v,"\xA5","\\yen",!0);i(l,d,v,"\u2713","\\checkmark",!0);i(k,d,v,"\u2713","\\checkmark");i(l,d,v,"\u2136","\\beth",!0);i(l,d,v,"\u2138","\\daleth",!0);i(l,d,v,"\u2137","\\gimel",!0);i(l,d,v,"\u03DD","\\digamma",!0);i(l,d,v,"\u03F0","\\varkappa");i(l,d,c0,"\u250C","\\@ulcorner",!0);i(l,d,i0,"\u2510","\\@urcorner",!0);i(l,d,c0,"\u2514","\\@llcorner",!0);i(l,d,i0,"\u2518","\\@lrcorner",!0);i(l,d,f,"\u2266","\\leqq",!0);i(l,d,f,"\u2A7D","\\leqslant",!0);i(l,d,f,"\u2A95","\\eqslantless",!0);i(l,d,f,"\u2272","\\lesssim",!0);i(l,d,f,"\u2A85","\\lessapprox",!0);i(l,d,f,"\u224A","\\approxeq",!0);i(l,d,D,"\u22D6","\\lessdot");i(l,d,f,"\u22D8","\\lll",!0);i(l,d,f,"\u2276","\\lessgtr",!0);i(l,d,f,"\u22DA","\\lesseqgtr",!0);i(l,d,f,"\u2A8B","\\lesseqqgtr",!0);i(l,d,f,"\u2251","\\doteqdot");i(l,d,f,"\u2253","\\risingdotseq",!0);i(l,d,f,"\u2252","\\fallingdotseq",!0);i(l,d,f,"\u223D","\\backsim",!0);i(l,d,f,"\u22CD","\\backsimeq",!0);i(l,d,f,"\u2AC5","\\subseteqq",!0);i(l,d,f,"\u22D0","\\Subset",!0);i(l,d,f,"\u228F","\\sqsubset",!0);i(l,d,f,"\u227C","\\preccurlyeq",!0);i(l,d,f,"\u22DE","\\curlyeqprec",!0);i(l,d,f,"\u227E","\\precsim",!0);i(l,d,f,"\u2AB7","\\precapprox",!0);i(l,d,f,"\u22B2","\\vartriangleleft");i(l,d,f,"\u22B4","\\trianglelefteq");i(l,d,f,"\u22A8","\\vDash",!0);i(l,d,f,"\u22AA","\\Vvdash",!0);i(l,d,f,"\u2323","\\smallsmile");i(l,d,f,"\u2322","\\smallfrown");i(l,d,f,"\u224F","\\bumpeq",!0);i(l,d,f,"\u224E","\\Bumpeq",!0);i(l,d,f,"\u2267","\\geqq",!0);i(l,d,f,"\u2A7E","\\geqslant",!0);i(l,d,f,"\u2A96","\\eqslantgtr",!0);i(l,d,f,"\u2273","\\gtrsim",!0);i(l,d,f,"\u2A86","\\gtrapprox",!0);i(l,d,D,"\u22D7","\\gtrdot");i(l,d,f,"\u22D9","\\ggg",!0);i(l,d,f,"\u2277","\\gtrless",!0);i(l,d,f,"\u22DB","\\gtreqless",!0);i(l,d,f,"\u2A8C","\\gtreqqless",!0);i(l,d,f,"\u2256","\\eqcirc",!0);i(l,d,f,"\u2257","\\circeq",!0);i(l,d,f,"\u225C","\\triangleq",!0);i(l,d,f,"\u223C","\\thicksim");i(l,d,f,"\u2248","\\thickapprox");i(l,d,f,"\u2AC6","\\supseteqq",!0);i(l,d,f,"\u22D1","\\Supset",!0);i(l,d,f,"\u2290","\\sqsupset",!0);i(l,d,f,"\u227D","\\succcurlyeq",!0);i(l,d,f,"\u22DF","\\curlyeqsucc",!0);i(l,d,f,"\u227F","\\succsim",!0);i(l,d,f,"\u2AB8","\\succapprox",!0);i(l,d,f,"\u22B3","\\vartriangleright");i(l,d,f,"\u22B5","\\trianglerighteq");i(l,d,f,"\u22A9","\\Vdash",!0);i(l,d,f,"\u2223","\\shortmid");i(l,d,f,"\u2225","\\shortparallel");i(l,d,f,"\u226C","\\between",!0);i(l,d,f,"\u22D4","\\pitchfork",!0);i(l,d,f,"\u221D","\\varpropto");i(l,d,f,"\u25C0","\\blacktriangleleft");i(l,d,f,"\u2234","\\therefore",!0);i(l,d,f,"\u220D","\\backepsilon");i(l,d,f,"\u25B6","\\blacktriangleright");i(l,d,f,"\u2235","\\because",!0);i(l,d,f,"\u22D8","\\llless");i(l,d,f,"\u22D9","\\gggtr");i(l,d,D,"\u22B2","\\lhd");i(l,d,D,"\u22B3","\\rhd");i(l,d,f,"\u2242","\\eqsim",!0);i(l,u,f,"\u22C8","\\Join");i(l,d,f,"\u2251","\\Doteq",!0);i(l,d,D,"\u2214","\\dotplus",!0);i(l,d,D,"\u2216","\\smallsetminus");i(l,d,D,"\u22D2","\\Cap",!0);i(l,d,D,"\u22D3","\\Cup",!0);i(l,d,D,"\u2A5E","\\doublebarwedge",!0);i(l,d,D,"\u229F","\\boxminus",!0);i(l,d,D,"\u229E","\\boxplus",!0);i(l,d,D,"\u22C7","\\divideontimes",!0);i(l,d,D,"\u22C9","\\ltimes",!0);i(l,d,D,"\u22CA","\\rtimes",!0);i(l,d,D,"\u22CB","\\leftthreetimes",!0);i(l,d,D,"\u22CC","\\rightthreetimes",!0);i(l,d,D,"\u22CF","\\curlywedge",!0);i(l,d,D,"\u22CE","\\curlyvee",!0);i(l,d,D,"\u229D","\\circleddash",!0);i(l,d,D,"\u229B","\\circledast",!0);i(l,d,D,"\u22C5","\\centerdot");i(l,d,D,"\u22BA","\\intercal",!0);i(l,d,D,"\u22D2","\\doublecap");i(l,d,D,"\u22D3","\\doublecup");i(l,d,D,"\u22A0","\\boxtimes",!0);i(l,d,f,"\u21E2","\\dashrightarrow",!0);i(l,d,f,"\u21E0","\\dashleftarrow",!0);i(l,d,f,"\u21C7","\\leftleftarrows",!0);i(l,d,f,"\u21C6","\\leftrightarrows",!0);i(l,d,f,"\u21DA","\\Lleftarrow",!0);i(l,d,f,"\u219E","\\twoheadleftarrow",!0);i(l,d,f,"\u21A2","\\leftarrowtail",!0);i(l,d,f,"\u21AB","\\looparrowleft",!0);i(l,d,f,"\u21CB","\\leftrightharpoons",!0);i(l,d,f,"\u21B6","\\curvearrowleft",!0);i(l,d,f,"\u21BA","\\circlearrowleft",!0);i(l,d,f,"\u21B0","\\Lsh",!0);i(l,d,f,"\u21C8","\\upuparrows",!0);i(l,d,f,"\u21BF","\\upharpoonleft",!0);i(l,d,f,"\u21C3","\\downharpoonleft",!0);i(l,u,f,"\u22B6","\\origof",!0);i(l,u,f,"\u22B7","\\imageof",!0);i(l,d,f,"\u22B8","\\multimap",!0);i(l,d,f,"\u21AD","\\leftrightsquigarrow",!0);i(l,d,f,"\u21C9","\\rightrightarrows",!0);i(l,d,f,"\u21C4","\\rightleftarrows",!0);i(l,d,f,"\u21A0","\\twoheadrightarrow",!0);i(l,d,f,"\u21A3","\\rightarrowtail",!0);i(l,d,f,"\u21AC","\\looparrowright",!0);i(l,d,f,"\u21B7","\\curvearrowright",!0);i(l,d,f,"\u21BB","\\circlearrowright",!0);i(l,d,f,"\u21B1","\\Rsh",!0);i(l,d,f,"\u21CA","\\downdownarrows",!0);i(l,d,f,"\u21BE","\\upharpoonright",!0);i(l,d,f,"\u21C2","\\downharpoonright",!0);i(l,d,f,"\u21DD","\\rightsquigarrow",!0);i(l,d,f,"\u21DD","\\leadsto");i(l,d,f,"\u21DB","\\Rrightarrow",!0);i(l,d,f,"\u21BE","\\restriction");i(l,u,v,"\u2018","`");i(l,u,v,"$","\\$");i(k,u,v,"$","\\$");i(k,u,v,"$","\\textdollar");i(l,u,v,"%","\\%");i(k,u,v,"%","\\%");i(l,u,v,"_","\\_");i(k,u,v,"_","\\_");i(k,u,v,"_","\\textunderscore");i(l,u,v,"\u2220","\\angle",!0);i(l,u,v,"\u221E","\\infty",!0);i(l,u,v,"\u2032","\\prime");i(l,u,v,"\u25B3","\\triangle");i(l,u,v,"\u0393","\\Gamma",!0);i(l,u,v,"\u0394","\\Delta",!0);i(l,u,v,"\u0398","\\Theta",!0);i(l,u,v,"\u039B","\\Lambda",!0);i(l,u,v,"\u039E","\\Xi",!0);i(l,u,v,"\u03A0","\\Pi",!0);i(l,u,v,"\u03A3","\\Sigma",!0);i(l,u,v,"\u03A5","\\Upsilon",!0);i(l,u,v,"\u03A6","\\Phi",!0);i(l,u,v,"\u03A8","\\Psi",!0);i(l,u,v,"\u03A9","\\Omega",!0);i(l,u,v,"A","\u0391");i(l,u,v,"B","\u0392");i(l,u,v,"E","\u0395");i(l,u,v,"Z","\u0396");i(l,u,v,"H","\u0397");i(l,u,v,"I","\u0399");i(l,u,v,"K","\u039A");i(l,u,v,"M","\u039C");i(l,u,v,"N","\u039D");i(l,u,v,"O","\u039F");i(l,u,v,"P","\u03A1");i(l,u,v,"T","\u03A4");i(l,u,v,"X","\u03A7");i(l,u,v,"\xAC","\\neg",!0);i(l,u,v,"\xAC","\\lnot");i(l,u,v,"\u22A4","\\top");i(l,u,v,"\u22A5","\\bot");i(l,u,v,"\u2205","\\emptyset");i(l,d,v,"\u2205","\\varnothing");i(l,u,R,"\u03B1","\\alpha",!0);i(l,u,R,"\u03B2","\\beta",!0);i(l,u,R,"\u03B3","\\gamma",!0);i(l,u,R,"\u03B4","\\delta",!0);i(l,u,R,"\u03F5","\\epsilon",!0);i(l,u,R,"\u03B6","\\zeta",!0);i(l,u,R,"\u03B7","\\eta",!0);i(l,u,R,"\u03B8","\\theta",!0);i(l,u,R,"\u03B9","\\iota",!0);i(l,u,R,"\u03BA","\\kappa",!0);i(l,u,R,"\u03BB","\\lambda",!0);i(l,u,R,"\u03BC","\\mu",!0);i(l,u,R,"\u03BD","\\nu",!0);i(l,u,R,"\u03BE","\\xi",!0);i(l,u,R,"\u03BF","\\omicron",!0);i(l,u,R,"\u03C0","\\pi",!0);i(l,u,R,"\u03C1","\\rho",!0);i(l,u,R,"\u03C3","\\sigma",!0);i(l,u,R,"\u03C4","\\tau",!0);i(l,u,R,"\u03C5","\\upsilon",!0);i(l,u,R,"\u03D5","\\phi",!0);i(l,u,R,"\u03C7","\\chi",!0);i(l,u,R,"\u03C8","\\psi",!0);i(l,u,R,"\u03C9","\\omega",!0);i(l,u,R,"\u03B5","\\varepsilon",!0);i(l,u,R,"\u03D1","\\vartheta",!0);i(l,u,R,"\u03D6","\\varpi",!0);i(l,u,R,"\u03F1","\\varrho",!0);i(l,u,R,"\u03C2","\\varsigma",!0);i(l,u,R,"\u03C6","\\varphi",!0);i(l,u,D,"\u2217","*",!0);i(l,u,D,"+","+");i(l,u,D,"\u2212","-",!0);i(l,u,D,"\u22C5","\\cdot",!0);i(l,u,D,"\u2218","\\circ",!0);i(l,u,D,"\xF7","\\div",!0);i(l,u,D,"\xB1","\\pm",!0);i(l,u,D,"\xD7","\\times",!0);i(l,u,D,"\u2229","\\cap",!0);i(l,u,D,"\u222A","\\cup",!0);i(l,u,D,"\u2216","\\setminus",!0);i(l,u,D,"\u2227","\\land");i(l,u,D,"\u2228","\\lor");i(l,u,D,"\u2227","\\wedge",!0);i(l,u,D,"\u2228","\\vee",!0);i(l,u,v,"\u221A","\\surd");i(l,u,c0,"\u27E8","\\langle",!0);i(l,u,c0,"\u2223","\\lvert");i(l,u,c0,"\u2225","\\lVert");i(l,u,i0,"?","?");i(l,u,i0,"!","!");i(l,u,i0,"\u27E9","\\rangle",!0);i(l,u,i0,"\u2223","\\rvert");i(l,u,i0,"\u2225","\\rVert");i(l,u,f,"=","=");i(l,u,f,":",":");i(l,u,f,"\u2248","\\approx",!0);i(l,u,f,"\u2245","\\cong",!0);i(l,u,f,"\u2265","\\ge");i(l,u,f,"\u2265","\\geq",!0);i(l,u,f,"\u2190","\\gets");i(l,u,f,">","\\gt",!0);i(l,u,f,"\u2208","\\in",!0);i(l,u,f,"\uE020","\\@not");i(l,u,f,"\u2282","\\subset",!0);i(l,u,f,"\u2283","\\supset",!0);i(l,u,f,"\u2286","\\subseteq",!0);i(l,u,f,"\u2287","\\supseteq",!0);i(l,d,f,"\u2288","\\nsubseteq",!0);i(l,d,f,"\u2289","\\nsupseteq",!0);i(l,u,f,"\u22A8","\\models");i(l,u,f,"\u2190","\\leftarrow",!0);i(l,u,f,"\u2264","\\le");i(l,u,f,"\u2264","\\leq",!0);i(l,u,f,"<","\\lt",!0);i(l,u,f,"\u2192","\\rightarrow",!0);i(l,u,f,"\u2192","\\to");i(l,d,f,"\u2271","\\ngeq",!0);i(l,d,f,"\u2270","\\nleq",!0);i(l,u,E0,"\xA0","\\ ");i(l,u,E0,"\xA0","\\space");i(l,u,E0,"\xA0","\\nobreakspace");i(k,u,E0,"\xA0","\\ ");i(k,u,E0,"\xA0"," ");i(k,u,E0,"\xA0","\\space");i(k,u,E0,"\xA0","\\nobreakspace");i(l,u,E0,null,"\\nobreak");i(l,u,E0,null,"\\allowbreak");i(l,u,Le,",",",");i(l,u,Le,";",";");i(l,d,D,"\u22BC","\\barwedge",!0);i(l,d,D,"\u22BB","\\veebar",!0);i(l,u,D,"\u2299","\\odot",!0);i(l,u,D,"\u2295","\\oplus",!0);i(l,u,D,"\u2297","\\otimes",!0);i(l,u,v,"\u2202","\\partial",!0);i(l,u,D,"\u2298","\\oslash",!0);i(l,d,D,"\u229A","\\circledcirc",!0);i(l,d,D,"\u22A1","\\boxdot",!0);i(l,u,D,"\u25B3","\\bigtriangleup");i(l,u,D,"\u25BD","\\bigtriangledown");i(l,u,D,"\u2020","\\dagger");i(l,u,D,"\u22C4","\\diamond");i(l,u,D,"\u22C6","\\star");i(l,u,D,"\u25C3","\\triangleleft");i(l,u,D,"\u25B9","\\triangleright");i(l,u,c0,"{","\\{");i(k,u,v,"{","\\{");i(k,u,v,"{","\\textbraceleft");i(l,u,i0,"}","\\}");i(k,u,v,"}","\\}");i(k,u,v,"}","\\textbraceright");i(l,u,c0,"{","\\lbrace");i(l,u,i0,"}","\\rbrace");i(l,u,c0,"[","\\lbrack",!0);i(k,u,v,"[","\\lbrack",!0);i(l,u,i0,"]","\\rbrack",!0);i(k,u,v,"]","\\rbrack",!0);i(l,u,c0,"(","\\lparen",!0);i(l,u,i0,")","\\rparen",!0);i(k,u,v,"<","\\textless",!0);i(k,u,v,">","\\textgreater",!0);i(l,u,c0,"\u230A","\\lfloor",!0);i(l,u,i0,"\u230B","\\rfloor",!0);i(l,u,c0,"\u2308","\\lceil",!0);i(l,u,i0,"\u2309","\\rceil",!0);i(l,u,v,"\\","\\backslash");i(l,u,v,"\u2223","|");i(l,u,v,"\u2223","\\vert");i(k,u,v,"|","\\textbar",!0);i(l,u,v,"\u2225","\\|");i(l,u,v,"\u2225","\\Vert");i(k,u,v,"\u2225","\\textbardbl");i(k,u,v,"~","\\textasciitilde");i(k,u,v,"\\","\\textbackslash");i(k,u,v,"^","\\textasciicircum");i(l,u,f,"\u2191","\\uparrow",!0);i(l,u,f,"\u21D1","\\Uparrow",!0);i(l,u,f,"\u2193","\\downarrow",!0);i(l,u,f,"\u21D3","\\Downarrow",!0);i(l,u,f,"\u2195","\\updownarrow",!0);i(l,u,f,"\u21D5","\\Updownarrow",!0);i(l,u,_,"\u2210","\\coprod");i(l,u,_,"\u22C1","\\bigvee");i(l,u,_,"\u22C0","\\bigwedge");i(l,u,_,"\u2A04","\\biguplus");i(l,u,_,"\u22C2","\\bigcap");i(l,u,_,"\u22C3","\\bigcup");i(l,u,_,"\u222B","\\int");i(l,u,_,"\u222B","\\intop");i(l,u,_,"\u222C","\\iint");i(l,u,_,"\u222D","\\iiint");i(l,u,_,"\u220F","\\prod");i(l,u,_,"\u2211","\\sum");i(l,u,_,"\u2A02","\\bigotimes");i(l,u,_,"\u2A01","\\bigoplus");i(l,u,_,"\u2A00","\\bigodot");i(l,u,_,"\u222E","\\oint");i(l,u,_,"\u222F","\\oiint");i(l,u,_,"\u2230","\\oiiint");i(l,u,_,"\u2A06","\\bigsqcup");i(l,u,_,"\u222B","\\smallint");i(k,u,ae,"\u2026","\\textellipsis");i(l,u,ae,"\u2026","\\mathellipsis");i(k,u,ae,"\u2026","\\ldots",!0);i(l,u,ae,"\u2026","\\ldots",!0);i(l,u,ae,"\u22EF","\\@cdots",!0);i(l,u,ae,"\u22F1","\\ddots",!0);i(l,u,v,"\u22EE","\\varvdots");i(l,u,W,"\u02CA","\\acute");i(l,u,W,"\u02CB","\\grave");i(l,u,W,"\xA8","\\ddot");i(l,u,W,"~","\\tilde");i(l,u,W,"\u02C9","\\bar");i(l,u,W,"\u02D8","\\breve");i(l,u,W,"\u02C7","\\check");i(l,u,W,"^","\\hat");i(l,u,W,"\u20D7","\\vec");i(l,u,W,"\u02D9","\\dot");i(l,u,W,"\u02DA","\\mathring");i(l,u,R,"\uE131","\\@imath");i(l,u,R,"\uE237","\\@jmath");i(l,u,v,"\u0131","\u0131");i(l,u,v,"\u0237","\u0237");i(k,u,v,"\u0131","\\i",!0);i(k,u,v,"\u0237","\\j",!0);i(k,u,v,"\xDF","\\ss",!0);i(k,u,v,"\xE6","\\ae",!0);i(k,u,v,"\u0153","\\oe",!0);i(k,u,v,"\xF8","\\o",!0);i(k,u,v,"\xC6","\\AE",!0);i(k,u,v,"\u0152","\\OE",!0);i(k,u,v,"\xD8","\\O",!0);i(k,u,W,"\u02CA","\\'");i(k,u,W,"\u02CB","\\`");i(k,u,W,"\u02C6","\\^");i(k,u,W,"\u02DC","\\~");i(k,u,W,"\u02C9","\\=");i(k,u,W,"\u02D8","\\u");i(k,u,W,"\u02D9","\\.");i(k,u,W,"\xB8","\\c");i(k,u,W,"\u02DA","\\r");i(k,u,W,"\u02C7","\\v");i(k,u,W,"\xA8",'\\"');i(k,u,W,"\u02DD","\\H");i(k,u,W,"\u25EF","\\textcircled");var Sr={"--":!0,"---":!0,"``":!0,"''":!0};i(k,u,v,"\u2013","--",!0);i(k,u,v,"\u2013","\\textendash");i(k,u,v,"\u2014","---",!0);i(k,u,v,"\u2014","\\textemdash");i(k,u,v,"\u2018","`",!0);i(k,u,v,"\u2018","\\textquoteleft");i(k,u,v,"\u2019","'",!0);i(k,u,v,"\u2019","\\textquoteright");i(k,u,v,"\u201C","``",!0);i(k,u,v,"\u201C","\\textquotedblleft");i(k,u,v,"\u201D","''",!0);i(k,u,v,"\u201D","\\textquotedblright");i(l,u,v,"\xB0","\\degree",!0);i(k,u,v,"\xB0","\\degree");i(k,u,v,"\xB0","\\textdegree",!0);i(l,u,v,"\xA3","\\pounds");i(l,u,v,"\xA3","\\mathsterling",!0);i(k,u,v,"\xA3","\\pounds");i(k,u,v,"\xA3","\\textsterling",!0);i(l,d,v,"\u2720","\\maltese");i(k,d,v,"\u2720","\\maltese");var Xt='0123456789/@."';for(we=0;we0)return b0(s,p,n,t,o.concat(g));if(c){var y,w;if(c==="boldsymbol"){var x=e1(s,n,t,o,a);y=x.fontName,w=[x.fontClass]}else h?(y=Ar[c].fontName,w=[c]):(y=Ae(c,t.fontWeight,t.fontShape),w=[c,t.fontWeight,t.fontShape]);if(Pe(s,y,n).metrics)return b0(s,y,n,t,o.concat(w));if(Sr.hasOwnProperty(s)&&y.slice(0,10)==="Typewriter"){for(var z=[],T=0;T{if(P0(r.classes)!==P0(e.classes)||r.skew!==e.skew||r.maxFontSize!==e.maxFontSize)return!1;if(r.classes.length===1){var t=r.classes[0];if(t==="mbin"||t==="mord")return!1}for(var a in r.style)if(r.style.hasOwnProperty(a)&&r.style[a]!==e.style[a])return!1;for(var n in e.style)if(e.style.hasOwnProperty(n)&&r.style[n]!==e.style[n])return!1;return!0},a1=r=>{for(var e=0;et&&(t=o.height),o.depth>a&&(a=o.depth),o.maxFontSize>n&&(n=o.maxFontSize)}e.height=t,e.depth=a,e.maxFontSize=n},l0=function(e,t,a,n){var s=new W0(e,t,a,n);return wt(s),s},Mr=(r,e,t,a)=>new W0(r,e,t,a),n1=function(e,t,a){var n=l0([e],[],t);return n.height=Math.max(a||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),n.style.borderBottomWidth=A(n.height),n.maxFontSize=1,n},i1=function(e,t,a,n){var s=new ce(e,t,a,n);return wt(s),s},zr=function(e){var t=new $0(e);return wt(t),t},s1=function(e,t){return e instanceof $0?l0([],[e],t):e},l1=function(e){if(e.positionType==="individualShift"){for(var t=e.children,a=[t[0]],n=-t[0].shift-t[0].elem.depth,s=n,o=1;o{var t=l0(["mspace"],[],e),a=J(r,e);return t.style.marginRight=A(a),t},Ae=function(e,t,a){var n="";switch(e){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=e}var s;return t==="textbf"&&a==="textit"?s="BoldItalic":t==="textbf"?s="Bold":t==="textit"?s="Italic":s="Regular",n+"-"+s},Ar={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"},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"}},Tr={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},h1=function(e,t){var[a,n,s]=Tr[e],o=new S0(a),h=new y0([o],{width:A(n),height:A(s),style:"width:"+A(n),viewBox:"0 0 "+1e3*n+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),c=Mr(["overlay"],[h],t);return c.height=s,c.style.height=A(s),c.style.width=A(n),c},b={fontMap:Ar,makeSymbol:b0,mathsym:_a,makeSpan:l0,makeSvgSpan:Mr,makeLineSpan:n1,makeAnchor:i1,makeFragment:zr,wrapFragment:s1,makeVList:o1,makeOrd:t1,makeGlue:u1,staticSvg:h1,svgData:Tr,tryCombineChars:a1},K={number:3,unit:"mu"},Y0={number:4,unit:"mu"},D0={number:5,unit:"mu"},m1={mord:{mop:K,mbin:Y0,mrel:D0,minner:K},mop:{mord:K,mop:K,mrel:D0,minner:K},mbin:{mord:Y0,mop:Y0,mopen:Y0,minner:Y0},mrel:{mord:D0,mop:D0,mopen:D0,minner:D0},mopen:{},mclose:{mop:K,mbin:Y0,mrel:D0,minner:K},mpunct:{mord:K,mop:K,mrel:D0,mopen:K,mclose:K,mpunct:K,minner:K},minner:{mord:K,mop:K,mbin:Y0,mrel:D0,mopen:K,mpunct:K,minner:K}},c1={mord:{mop:K},mop:{mord:K,mop:K},mbin:{},mrel:{},mopen:{},mclose:{mop:K},mpunct:{},minner:{mop:K}},Br={},Ie={},Oe={};function B(r){for(var{type:e,names:t,props:a,handler:n,htmlBuilder:s,mathmlBuilder:o}=r,h={type:e,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:n},c=0;c{var C=T.classes[0],q=z.classes[0];C==="mbin"&&N.contains(f1,q)?T.classes[0]="mord":q==="mbin"&&N.contains(d1,C)&&(z.classes[0]="mord")},{node:y},w,x),jt(s,(z,T)=>{var C=mt(T),q=mt(z),O=C&&q?z.hasClass("mtight")?c1[C][q]:m1[C][q]:null;if(O)return b.makeGlue(O,p)},{node:y},w,x),s},jt=function r(e,t,a,n,s){n&&e.push(n);for(var o=0;ow=>{e.splice(y+1,0,w),o++})(o)}n&&e.pop()},Dr=function(e){return e instanceof $0||e instanceof ce||e instanceof W0&&e.hasClass("enclosing")?e:null},g1=function r(e,t){var a=Dr(e);if(a){var n=a.children;if(n.length){if(t==="right")return r(n[n.length-1],"right");if(t==="left")return r(n[0],"left")}}return e},mt=function(e,t){return e?(t&&(e=g1(e,t)),v1[e.classes[0]]||null):null},fe=function(e,t){var a=["nulldelimiter"].concat(e.baseSizingClasses());return N0(t.concat(a))},P=function(e,t,a){if(!e)return N0();if(Ie[e.type]){var n=Ie[e.type](e,t);if(a&&t.size!==a.size){n=N0(t.sizingClasses(a),[n],t);var s=t.sizeMultiplier/a.sizeMultiplier;n.height*=s,n.depth*=s}return n}else throw new M("Got group of unknown type: '"+e.type+"'")};function Te(r,e){var t=N0(["base"],r,e),a=N0(["strut"]);return a.style.height=A(t.height+t.depth),t.depth&&(a.style.verticalAlign=A(-t.depth)),t.children.unshift(a),t}function ct(r,e){var t=null;r.length===1&&r[0].type==="tag"&&(t=r[0].tag,r=r[0].body);var a=t0(r,e,"root"),n;a.length===2&&a[1].hasClass("tag")&&(n=a.pop());for(var s=[],o=[],h=0;h0&&(s.push(Te(o,e)),o=[]),s.push(a[h]));o.length>0&&s.push(Te(o,e));var p;t?(p=Te(t0(t,e,!0)),p.classes=["tag"],s.push(p)):n&&s.push(n);var g=N0(["katex-html"],s);if(g.setAttribute("aria-hidden","true"),p){var y=p.children[0];y.style.height=A(g.height+g.depth),g.depth&&(y.style.verticalAlign=A(-g.depth))}return g}function Cr(r){return new $0(r)}var o0=class{constructor(e,t,a){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=a||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=P0(this.classes));for(var a=0;a0&&(e+=' class ="'+N.escape(P0(this.classes))+'"'),e+=">";for(var a=0;a",e}toText(){return this.children.map(e=>e.toText()).join("")}},X0=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return N.escape(this.toText())}toText(){return this.text}},dt=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character="\u200A":e>=.1666&&e<=.1667?this.character="\u2009":e>=.2222&&e<=.2223?this.character="\u2005":e>=.2777&&e<=.2778?this.character="\u2005\u200A":e>=-.05556&&e<=-.05555?this.character="\u200A\u2063":e>=-.1667&&e<=-.1666?this.character="\u2009\u2063":e>=-.2223&&e<=-.2222?this.character="\u205F\u2063":e>=-.2778&&e<=-.2777?this.character="\u2005\u2063":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",A(this.width)),e}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}},S={MathNode:o0,TextNode:X0,SpaceNode:dt,newDocumentFragment:Cr},v0=function(e,t,a){return $[t][e]&&$[t][e].replace&&e.charCodeAt(0)!==55349&&!(Sr.hasOwnProperty(e)&&a&&(a.fontFamily&&a.fontFamily.slice(4,6)==="tt"||a.font&&a.font.slice(4,6)==="tt"))&&(e=$[t][e].replace),new S.TextNode(e)},kt=function(e){return e.length===1?e[0]:new S.MathNode("mrow",e)},St=function(e,t){if(t.fontFamily==="texttt")return"monospace";if(t.fontFamily==="textsf")return t.fontShape==="textit"&&t.fontWeight==="textbf"?"sans-serif-bold-italic":t.fontShape==="textit"?"sans-serif-italic":t.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(t.fontShape==="textit"&&t.fontWeight==="textbf")return"bold-italic";if(t.fontShape==="textit")return"italic";if(t.fontWeight==="textbf")return"bold";var a=t.font;if(!a||a==="mathnormal")return null;var n=e.mode;if(a==="mathit")return"italic";if(a==="boldsymbol")return e.type==="textord"?"bold":"bold-italic";if(a==="mathbf")return"bold";if(a==="mathbb")return"double-struck";if(a==="mathfrak")return"fraktur";if(a==="mathscr"||a==="mathcal")return"script";if(a==="mathsf")return"sans-serif";if(a==="mathtt")return"monospace";var s=e.text;if(N.contains(["\\imath","\\jmath"],s))return null;$[n][s]&&$[n][s].replace&&(s=$[n][s].replace);var o=b.fontMap[a].fontName;return xt(s,o,n)?b.fontMap[a].variant:null},h0=function(e,t,a){if(e.length===1){var n=X(e[0],t);return a&&n instanceof o0&&n.type==="mo"&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var s=[],o,h=0;h0&&(y.text=y.text.slice(0,1)+"\u0338"+y.text.slice(1),s.pop())}}}s.push(c),o=c}return s},G0=function(e,t,a){return kt(h0(e,t,a))},X=function(e,t){if(!e)return new S.MathNode("mrow");if(Oe[e.type]){var a=Oe[e.type](e,t);return a}else throw new M("Got group of unknown type: '"+e.type+"'")};function Zt(r,e,t,a,n){var s=h0(r,t),o;s.length===1&&s[0]instanceof o0&&N.contains(["mrow","mtable"],s[0].type)?o=s[0]:o=new S.MathNode("mrow",s);var h=new S.MathNode("annotation",[new S.TextNode(e)]);h.setAttribute("encoding","application/x-tex");var c=new S.MathNode("semantics",[o,h]),p=new S.MathNode("math",[c]);p.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),a&&p.setAttribute("display","block");var g=n?"katex":"katex-mathml";return b.makeSpan([g],[p])}var qr=function(e){return new $a({style:e.displayMode?E.DISPLAY:E.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},Nr=function(e,t){if(t.displayMode){var a=["katex-display"];t.leqno&&a.push("leqno"),t.fleqn&&a.push("fleqn"),e=b.makeSpan(a,[e])}return e},b1=function(e,t,a){var n=qr(a),s;if(a.output==="mathml")return Zt(e,t,n,a.displayMode,!0);if(a.output==="html"){var o=ct(e,n);s=b.makeSpan(["katex"],[o])}else{var h=Zt(e,t,n,a.displayMode,!1),c=ct(e,n);s=b.makeSpan(["katex"],[h,c])}return Nr(s,a)},y1=function(e,t,a){var n=qr(a),s=ct(e,n),o=b.makeSpan(["katex"],[s]);return Nr(o,a)},x1={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},w1=function(e){var t=new S.MathNode("mo",[new S.TextNode(x1[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},k1={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]},S1=function(e){return e.type==="ordgroup"?e.body.length:1},M1=function(e,t){function a(){var h=4e5,c=e.label.slice(1);if(N.contains(["widehat","widecheck","widetilde","utilde"],c)){var p=e,g=S1(p.base),y,w,x;if(g>5)c==="widehat"||c==="widecheck"?(y=420,h=2364,x=.42,w=c+"4"):(y=312,h=2340,x=.34,w="tilde4");else{var z=[1,1,2,2,3,3][g];c==="widehat"||c==="widecheck"?(h=[0,1062,2364,2364,2364][z],y=[0,239,300,360,420][z],x=[0,.24,.3,.3,.36,.42][z],w=c+z):(h=[0,600,1033,2339,2340][z],y=[0,260,286,306,312][z],x=[0,.26,.286,.3,.306,.34][z],w="tilde"+z)}var T=new S0(w),C=new y0([T],{width:"100%",height:A(x),viewBox:"0 0 "+h+" "+y,preserveAspectRatio:"none"});return{span:b.makeSvgSpan([],[C],t),minWidth:0,height:x}}else{var q=[],O=k1[c],[H,V,L]=O,U=L/1e3,G=H.length,j,Y;if(G===1){var T0=O[3];j=["hide-tail"],Y=[T0]}else if(G===2)j=["halfarrow-left","halfarrow-right"],Y=["xMinYMin","xMaxYMin"];else if(G===3)j=["brace-left","brace-center","brace-right"],Y=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support + `+G+" children.");for(var a0=0;a00&&(n.style.minWidth=A(s)),n},z1=function(e,t,a,n,s){var o,h=e.height+e.depth+a+n;if(/fbox|color|angl/.test(t)){if(o=b.makeSpan(["stretchy",t],[],s),t==="fbox"){var c=s.color&&s.getColor();c&&(o.style.borderColor=c)}}else{var p=[];/^[bx]cancel$/.test(t)&&p.push(new de({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&p.push(new de({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var g=new y0(p,{width:"100%",height:A(h)});o=b.makeSvgSpan([],[g],s)}return o.height=h,o.style.height=A(h),o},R0={encloseSpan:z1,mathMLnode:w1,svgSpan:M1};function F(r,e){if(!r||r.type!==e)throw new Error("Expected node of type "+e+", but got "+(r?"node of type "+r.type:String(r)));return r}function Mt(r){var e=Ge(r);if(!e)throw new Error("Expected node of symbol group type, but got "+(r?"node of type "+r.type:String(r)));return e}function Ge(r){return r&&(r.type==="atom"||Ja.hasOwnProperty(r.type))?r:null}var zt=(r,e)=>{var t,a,n;r&&r.type==="supsub"?(a=F(r.base,"accent"),t=a.base,r.base=t,n=Za(P(r,e)),r.base=a):(a=F(r,"accent"),t=a.base);var s=P(t,e.havingCrampedStyle()),o=a.isShifty&&N.isCharacterBox(t),h=0;if(o){var c=N.getBaseElem(t),p=P(c,e.havingCrampedStyle());h=Yt(p).skew}var g=a.label==="\\c",y=g?s.height+s.depth:Math.min(s.height,e.fontMetrics().xHeight),w;if(a.isStretchy)w=R0.svgSpan(a,e),w=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:w,wrapperClasses:["svg-align"],wrapperStyle:h>0?{width:"calc(100% - "+A(2*h)+")",marginLeft:A(2*h)}:void 0}]},e);else{var x,z;a.label==="\\vec"?(x=b.staticSvg("vec",e),z=b.svgData.vec[1]):(x=b.makeOrd({mode:a.mode,text:a.label},e,"textord"),x=Yt(x),x.italic=0,z=x.width,g&&(y+=x.depth)),w=b.makeSpan(["accent-body"],[x]);var T=a.label==="\\textcircled";T&&(w.classes.push("accent-full"),y=s.height);var C=h;T||(C-=z/2),w.style.left=A(C),a.label==="\\textcircled"&&(w.style.top=".2em"),w=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-y},{type:"elem",elem:w}]},e)}var q=b.makeSpan(["mord","accent"],[w],e);return n?(n.children[0]=q,n.height=Math.max(q.height,n.height),n.classes[0]="mord",n):q},Rr=(r,e)=>{var t=r.isStretchy?R0.mathMLnode(r.label):new S.MathNode("mo",[v0(r.label,r.mode)]),a=new S.MathNode("mover",[X(r.base,e),t]);return a.setAttribute("accent","true"),a},A1=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(r=>"\\"+r).join("|"));B({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:(r,e)=>{var t=He(e[0]),a=!A1.test(r.funcName),n=!a||r.funcName==="\\widehat"||r.funcName==="\\widetilde"||r.funcName==="\\widecheck";return{type:"accent",mode:r.parser.mode,label:r.funcName,isStretchy:a,isShifty:n,base:t}},htmlBuilder:zt,mathmlBuilder:Rr});B({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(r,e)=>{var t=e[0],a=r.parser.mode;return a==="math"&&(r.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+r.funcName+" works only in text mode"),a="text"),{type:"accent",mode:a,label:r.funcName,isStretchy:!1,isShifty:!0,base:t}},htmlBuilder:zt,mathmlBuilder:Rr});B({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0];return{type:"accentUnder",mode:t.mode,label:a,base:n}},htmlBuilder:(r,e)=>{var t=P(r.base,e),a=R0.svgSpan(r,e),n=r.label==="\\utilde"?.12:0,s=b.makeVList({positionType:"top",positionData:t.height,children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:n},{type:"elem",elem:t}]},e);return b.makeSpan(["mord","accentunder"],[s],e)},mathmlBuilder:(r,e)=>{var t=R0.mathMLnode(r.label),a=new S.MathNode("munder",[X(r.base,e),t]);return a.setAttribute("accentunder","true"),a}});var Be=r=>{var e=new S.MathNode("mpadded",r?[r]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};B({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(r,e,t){var{parser:a,funcName:n}=r;return{type:"xArrow",mode:a.mode,label:n,body:e[0],below:t[0]}},htmlBuilder(r,e){var t=e.style,a=e.havingStyle(t.sup()),n=b.wrapFragment(P(r.body,a,e),e),s=r.label.slice(0,2)==="\\x"?"x":"cd";n.classes.push(s+"-arrow-pad");var o;r.below&&(a=e.havingStyle(t.sub()),o=b.wrapFragment(P(r.below,a,e),e),o.classes.push(s+"-arrow-pad"));var h=R0.svgSpan(r,e),c=-e.fontMetrics().axisHeight+.5*h.height,p=-e.fontMetrics().axisHeight-.5*h.height-.111;(n.depth>.25||r.label==="\\xleftequilibrium")&&(p-=n.depth);var g;if(o){var y=-e.fontMetrics().axisHeight+o.height+.5*h.height+.111;g=b.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:p},{type:"elem",elem:h,shift:c},{type:"elem",elem:o,shift:y}]},e)}else g=b.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:p},{type:"elem",elem:h,shift:c}]},e);return g.children[0].children[0].children[1].classes.push("svg-align"),b.makeSpan(["mrel","x-arrow"],[g],e)},mathmlBuilder(r,e){var t=R0.mathMLnode(r.label);t.setAttribute("minsize",r.label.charAt(0)==="x"?"1.75em":"3.0em");var a;if(r.body){var n=Be(X(r.body,e));if(r.below){var s=Be(X(r.below,e));a=new S.MathNode("munderover",[t,s,n])}else a=new S.MathNode("mover",[t,n])}else if(r.below){var o=Be(X(r.below,e));a=new S.MathNode("munder",[t,o])}else a=Be(),a=new S.MathNode("mover",[t,a]);return a}});var T1=b.makeSpan;function Er(r,e){var t=t0(r.body,e,!0);return T1([r.mclass],t,e)}function Ir(r,e){var t,a=h0(r.body,e);return r.mclass==="minner"?t=new S.MathNode("mpadded",a):r.mclass==="mord"?r.isCharacterBox?(t=a[0],t.type="mi"):t=new S.MathNode("mi",a):(r.isCharacterBox?(t=a[0],t.type="mo"):t=new S.MathNode("mo",a),r.mclass==="mbin"?(t.attributes.lspace="0.22em",t.attributes.rspace="0.22em"):r.mclass==="mpunct"?(t.attributes.lspace="0em",t.attributes.rspace="0.17em"):r.mclass==="mopen"||r.mclass==="mclose"?(t.attributes.lspace="0em",t.attributes.rspace="0em"):r.mclass==="minner"&&(t.attributes.lspace="0.0556em",t.attributes.width="+0.1111em")),t}B({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(r,e){var{parser:t,funcName:a}=r,n=e[0];return{type:"mclass",mode:t.mode,mclass:"m"+a.slice(5),body:Q(n),isCharacterBox:N.isCharacterBox(n)}},htmlBuilder:Er,mathmlBuilder:Ir});var Ve=r=>{var e=r.type==="ordgroup"&&r.body.length?r.body[0]:r;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};B({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(r,e){var{parser:t}=r;return{type:"mclass",mode:t.mode,mclass:Ve(e[0]),body:Q(e[1]),isCharacterBox:N.isCharacterBox(e[1])}}});B({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(r,e){var{parser:t,funcName:a}=r,n=e[1],s=e[0],o;a!=="\\stackrel"?o=Ve(n):o="mrel";var h={type:"op",mode:n.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:a!=="\\stackrel",body:Q(n)},c={type:"supsub",mode:s.mode,base:h,sup:a==="\\underset"?null:s,sub:a==="\\underset"?s:null};return{type:"mclass",mode:t.mode,mclass:o,body:[c],isCharacterBox:N.isCharacterBox(c)}},htmlBuilder:Er,mathmlBuilder:Ir});B({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"pmb",mode:t.mode,mclass:Ve(e[0]),body:Q(e[0])}},htmlBuilder(r,e){var t=t0(r.body,e,!0),a=b.makeSpan([r.mclass],t,e);return a.style.textShadow="0.02em 0.01em 0.04px",a},mathmlBuilder(r,e){var t=h0(r.body,e),a=new S.MathNode("mstyle",t);return a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),a}});var B1={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Kt=()=>({type:"styling",body:[],mode:"math",style:"display"}),Jt=r=>r.type==="textord"&&r.text==="@",D1=(r,e)=>(r.type==="mathord"||r.type==="atom")&&r.text===e;function C1(r,e,t){var a=B1[r];switch(a){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return t.callFunction(a,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var n=t.callFunction("\\\\cdleft",[e[0]],[]),s={type:"atom",text:a,mode:"math",family:"rel"},o=t.callFunction("\\Big",[s],[]),h=t.callFunction("\\\\cdright",[e[1]],[]),c={type:"ordgroup",mode:"math",body:[n,o,h]};return t.callFunction("\\\\cdparent",[c],[])}case"\\\\cdlongequal":return t.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var p={type:"textord",text:"\\Vert",mode:"math"};return t.callFunction("\\Big",[p],[])}default:return{type:"textord",text:" ",mode:"math"}}}function q1(r){var e=[];for(r.gullet.beginGroup(),r.gullet.macros.set("\\cr","\\\\\\relax"),r.gullet.beginGroup();;){e.push(r.parseExpression(!1,"\\\\")),r.gullet.endGroup(),r.gullet.beginGroup();var t=r.fetch().text;if(t==="&"||t==="\\\\")r.consume();else if(t==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new M("Expected \\\\ or \\cr or \\end",r.nextToken)}for(var a=[],n=[a],s=0;s-1))if("<>AV".indexOf(p)>-1)for(var y=0;y<2;y++){for(var w=!0,x=c+1;xAV=|." after @',o[c]);var z=C1(p,g,r),T={type:"styling",body:[z],mode:"math",style:"display"};a.push(T),h=Kt()}s%2===0?a.push(h):a.shift(),a=[],n.push(a)}r.gullet.endGroup(),r.gullet.endGroup();var C=new Array(n[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:n,arraystretch:1,addJot:!0,rowGaps:[null],cols:C,colSeparationType:"CD",hLinesBeforeRow:new Array(n.length+1).fill([])}}B({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(r,e){var{parser:t,funcName:a}=r;return{type:"cdlabel",mode:t.mode,side:a.slice(4),label:e[0]}},htmlBuilder(r,e){var t=e.havingStyle(e.style.sup()),a=b.wrapFragment(P(r.label,t,e),e);return a.classes.push("cd-label-"+r.side),a.style.bottom=A(.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder(r,e){var t=new S.MathNode("mrow",[X(r.label,e)]);return t=new S.MathNode("mpadded",[t]),t.setAttribute("width","0"),r.side==="left"&&t.setAttribute("lspace","-1width"),t.setAttribute("voffset","0.7em"),t=new S.MathNode("mstyle",[t]),t.setAttribute("displaystyle","false"),t.setAttribute("scriptlevel","1"),t}});B({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(r,e){var{parser:t}=r;return{type:"cdlabelparent",mode:t.mode,fragment:e[0]}},htmlBuilder(r,e){var t=b.wrapFragment(P(r.fragment,e),e);return t.classes.push("cd-vert-arrow"),t},mathmlBuilder(r,e){return new S.MathNode("mrow",[X(r.fragment,e)])}});B({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(r,e){for(var{parser:t}=r,a=F(e[0],"ordgroup"),n=a.body,s="",o=0;o=1114111)throw new M("\\@char with invalid code point "+s);return c<=65535?p=String.fromCharCode(c):(c-=65536,p=String.fromCharCode((c>>10)+55296,(c&1023)+56320)),{type:"textord",mode:t.mode,text:p}}});var Or=(r,e)=>{var t=t0(r.body,e.withColor(r.color),!1);return b.makeFragment(t)},Hr=(r,e)=>{var t=h0(r.body,e.withColor(r.color)),a=new S.MathNode("mstyle",t);return a.setAttribute("mathcolor",r.color),a};B({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(r,e){var{parser:t}=r,a=F(e[0],"color-token").color,n=e[1];return{type:"color",mode:t.mode,color:a,body:Q(n)}},htmlBuilder:Or,mathmlBuilder:Hr});B({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(r,e){var{parser:t,breakOnTokenText:a}=r,n=F(e[0],"color-token").color;t.gullet.macros.set("\\current@color",n);var s=t.parseExpression(!0,a);return{type:"color",mode:t.mode,color:n,body:s}},htmlBuilder:Or,mathmlBuilder:Hr});B({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(r,e,t){var{parser:a}=r,n=a.gullet.future().text==="["?a.parseSizeGroup(!0):null,s=!a.settings.displayMode||!a.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:a.mode,newLine:s,size:n&&F(n,"size").value}},htmlBuilder(r,e){var t=b.makeSpan(["mspace"],[],e);return r.newLine&&(t.classes.push("newline"),r.size&&(t.style.marginTop=A(J(r.size,e)))),t},mathmlBuilder(r,e){var t=new S.MathNode("mspace");return r.newLine&&(t.setAttribute("linebreak","newline"),r.size&&t.setAttribute("height",A(J(r.size,e)))),t}});var ft={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Fr=r=>{var e=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new M("Expected a control sequence",r);return e},N1=r=>{var e=r.gullet.popToken();return e.text==="="&&(e=r.gullet.popToken(),e.text===" "&&(e=r.gullet.popToken())),e},Lr=(r,e,t,a)=>{var n=r.gullet.macros.get(t.text);n==null&&(t.noexpand=!0,n={tokens:[t],numArgs:0,unexpandable:!r.gullet.isExpandable(t.text)}),r.gullet.macros.set(e,n,a)};B({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(r){var{parser:e,funcName:t}=r;e.consumeSpaces();var a=e.fetch();if(ft[a.text])return(t==="\\global"||t==="\\\\globallong")&&(a.text=ft[a.text]),F(e.parseFunction(),"internal");throw new M("Invalid token after macro prefix",a)}});B({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,a=e.gullet.popToken(),n=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(n))throw new M("Expected a control sequence",a);for(var s=0,o,h=[[]];e.gullet.future().text!=="{";)if(a=e.gullet.popToken(),a.text==="#"){if(e.gullet.future().text==="{"){o=e.gullet.future(),h[s].push("{");break}if(a=e.gullet.popToken(),!/^[1-9]$/.test(a.text))throw new M('Invalid argument number "'+a.text+'"');if(parseInt(a.text)!==s+1)throw new M('Argument number "'+a.text+'" out of order');s++,h.push([])}else{if(a.text==="EOF")throw new M("Expected a macro definition");h[s].push(a.text)}var{tokens:c}=e.gullet.consumeArg();return o&&c.unshift(o),(t==="\\edef"||t==="\\xdef")&&(c=e.gullet.expandTokens(c),c.reverse()),e.gullet.macros.set(n,{tokens:c,numArgs:s,delimiters:h},t===ft[t]),{type:"internal",mode:e.mode}}});B({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,a=Fr(e.gullet.popToken());e.gullet.consumeSpaces();var n=N1(e);return Lr(e,a,n,t==="\\\\globallet"),{type:"internal",mode:e.mode}}});B({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,a=Fr(e.gullet.popToken()),n=e.gullet.popToken(),s=e.gullet.popToken();return Lr(e,a,s,t==="\\\\globalfuture"),e.gullet.pushToken(s),e.gullet.pushToken(n),{type:"internal",mode:e.mode}}});var oe=function(e,t,a){var n=$.math[e]&&$.math[e].replace,s=xt(n||e,t,a);if(!s)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return s},At=function(e,t,a,n){var s=a.havingBaseStyle(t),o=b.makeSpan(n.concat(s.sizingClasses(a)),[e],a),h=s.sizeMultiplier/a.sizeMultiplier;return o.height*=h,o.depth*=h,o.maxFontSize=s.sizeMultiplier,o},Pr=function(e,t,a){var n=t.havingBaseStyle(a),s=(1-t.sizeMultiplier/n.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=A(s),e.height-=s,e.depth+=s},R1=function(e,t,a,n,s,o){var h=b.makeSymbol(e,"Main-Regular",s,n),c=At(h,t,n,o);return a&&Pr(c,n,t),c},E1=function(e,t,a,n){return b.makeSymbol(e,"Size"+t+"-Regular",a,n)},Gr=function(e,t,a,n,s,o){var h=E1(e,t,s,n),c=At(b.makeSpan(["delimsizing","size"+t],[h],n),E.TEXT,n,o);return a&&Pr(c,n,E.TEXT),c},Qe=function(e,t,a){var n;t==="Size1-Regular"?n="delim-size1":n="delim-size4";var s=b.makeSpan(["delimsizinginner",n],[b.makeSpan([],[b.makeSymbol(e,t,a)])]);return{type:"elem",elem:s}},_e=function(e,t,a){var n=k0["Size4-Regular"][e.charCodeAt(0)]?k0["Size4-Regular"][e.charCodeAt(0)][4]:k0["Size1-Regular"][e.charCodeAt(0)][4],s=new S0("inner",Ga(e,Math.round(1e3*t))),o=new y0([s],{width:A(n),height:A(t),style:"width:"+A(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),h=b.makeSvgSpan([],[o],a);return h.height=t,h.style.height=A(t),h.style.width=A(n),{type:"elem",elem:h}},pt=.008,De={type:"kern",size:-1*pt},I1=["|","\\lvert","\\rvert","\\vert"],O1=["\\|","\\lVert","\\rVert","\\Vert"],Vr=function(e,t,a,n,s,o){var h,c,p,g,y="",w=0;h=p=g=e,c=null;var x="Size1-Regular";e==="\\uparrow"?p=g="\u23D0":e==="\\Uparrow"?p=g="\u2016":e==="\\downarrow"?h=p="\u23D0":e==="\\Downarrow"?h=p="\u2016":e==="\\updownarrow"?(h="\\uparrow",p="\u23D0",g="\\downarrow"):e==="\\Updownarrow"?(h="\\Uparrow",p="\u2016",g="\\Downarrow"):N.contains(I1,e)?(p="\u2223",y="vert",w=333):N.contains(O1,e)?(p="\u2225",y="doublevert",w=556):e==="["||e==="\\lbrack"?(h="\u23A1",p="\u23A2",g="\u23A3",x="Size4-Regular",y="lbrack",w=667):e==="]"||e==="\\rbrack"?(h="\u23A4",p="\u23A5",g="\u23A6",x="Size4-Regular",y="rbrack",w=667):e==="\\lfloor"||e==="\u230A"?(p=h="\u23A2",g="\u23A3",x="Size4-Regular",y="lfloor",w=667):e==="\\lceil"||e==="\u2308"?(h="\u23A1",p=g="\u23A2",x="Size4-Regular",y="lceil",w=667):e==="\\rfloor"||e==="\u230B"?(p=h="\u23A5",g="\u23A6",x="Size4-Regular",y="rfloor",w=667):e==="\\rceil"||e==="\u2309"?(h="\u23A4",p=g="\u23A5",x="Size4-Regular",y="rceil",w=667):e==="("||e==="\\lparen"?(h="\u239B",p="\u239C",g="\u239D",x="Size4-Regular",y="lparen",w=875):e===")"||e==="\\rparen"?(h="\u239E",p="\u239F",g="\u23A0",x="Size4-Regular",y="rparen",w=875):e==="\\{"||e==="\\lbrace"?(h="\u23A7",c="\u23A8",g="\u23A9",p="\u23AA",x="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(h="\u23AB",c="\u23AC",g="\u23AD",p="\u23AA",x="Size4-Regular"):e==="\\lgroup"||e==="\u27EE"?(h="\u23A7",g="\u23A9",p="\u23AA",x="Size4-Regular"):e==="\\rgroup"||e==="\u27EF"?(h="\u23AB",g="\u23AD",p="\u23AA",x="Size4-Regular"):e==="\\lmoustache"||e==="\u23B0"?(h="\u23A7",g="\u23AD",p="\u23AA",x="Size4-Regular"):(e==="\\rmoustache"||e==="\u23B1")&&(h="\u23AB",g="\u23A9",p="\u23AA",x="Size4-Regular");var z=oe(h,x,s),T=z.height+z.depth,C=oe(p,x,s),q=C.height+C.depth,O=oe(g,x,s),H=O.height+O.depth,V=0,L=1;if(c!==null){var U=oe(c,x,s);V=U.height+U.depth,L=2}var G=T+H+V,j=Math.max(0,Math.ceil((t-G)/(L*q))),Y=G+j*L*q,T0=n.fontMetrics().axisHeight;a&&(T0*=n.sizeMultiplier);var a0=Y/2-T0,e0=[];if(y.length>0){var U0=Y-T-H,s0=Math.round(Y*1e3),g0=Va(y,Math.round(U0*1e3)),I0=new S0(y,g0),Z0=(w/1e3).toFixed(3)+"em",K0=(s0/1e3).toFixed(3)+"em",Xe=new y0([I0],{width:Z0,height:K0,viewBox:"0 0 "+w+" "+s0}),O0=b.makeSvgSpan([],[Xe],n);O0.height=s0/1e3,O0.style.width=Z0,O0.style.height=K0,e0.push({type:"elem",elem:O0})}else{if(e0.push(Qe(g,x,s)),e0.push(De),c===null){var H0=Y-T-H+2*pt;e0.push(_e(p,H0,n))}else{var d0=(Y-T-H-V)/2+2*pt;e0.push(_e(p,d0,n)),e0.push(De),e0.push(Qe(c,x,s)),e0.push(De),e0.push(_e(p,d0,n))}e0.push(De),e0.push(Qe(h,x,s))}var ie=n.havingBaseStyle(E.TEXT),$e=b.makeVList({positionType:"bottom",positionData:a0,children:e0},ie);return At(b.makeSpan(["delimsizing","mult"],[$e],ie),E.TEXT,n,o)},et=80,tt=.08,rt=function(e,t,a,n,s){var o=Pa(e,n,a),h=new S0(e,o),c=new y0([h],{width:"400em",height:A(t),viewBox:"0 0 400000 "+a,preserveAspectRatio:"xMinYMin slice"});return b.makeSvgSpan(["hide-tail"],[c],s)},H1=function(e,t){var a=t.havingBaseSizing(),n=$r("\\surd",e*a.sizeMultiplier,Xr,a),s=a.sizeMultiplier,o=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),h,c=0,p=0,g=0,y;return n.type==="small"?(g=1e3+1e3*o+et,e<1?s=1:e<1.4&&(s=.7),c=(1+o+tt)/s,p=(1+o)/s,h=rt("sqrtMain",c,g,o,t),h.style.minWidth="0.853em",y=.833/s):n.type==="large"?(g=(1e3+et)*ue[n.size],p=(ue[n.size]+o)/s,c=(ue[n.size]+o+tt)/s,h=rt("sqrtSize"+n.size,c,g,o,t),h.style.minWidth="1.02em",y=1/s):(c=e+o+tt,p=e+o,g=Math.floor(1e3*e+o)+et,h=rt("sqrtTall",c,g,o,t),h.style.minWidth="0.742em",y=1.056),h.height=p,h.style.height=A(c),{span:h,advanceWidth:y,ruleWidth:(t.fontMetrics().sqrtRuleThickness+o)*s}},Ur=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],F1=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],Yr=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],ue=[0,1.2,1.8,2.4,3],L1=function(e,t,a,n,s){if(e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle"),N.contains(Ur,e)||N.contains(Yr,e))return Gr(e,t,!1,a,n,s);if(N.contains(F1,e))return Vr(e,ue[t],!1,a,n,s);throw new M("Illegal delimiter: '"+e+"'")},P1=[{type:"small",style:E.SCRIPTSCRIPT},{type:"small",style:E.SCRIPT},{type:"small",style:E.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],G1=[{type:"small",style:E.SCRIPTSCRIPT},{type:"small",style:E.SCRIPT},{type:"small",style:E.TEXT},{type:"stack"}],Xr=[{type:"small",style:E.SCRIPTSCRIPT},{type:"small",style:E.SCRIPT},{type:"small",style:E.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],V1=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},$r=function(e,t,a,n){for(var s=Math.min(2,3-n.style.size),o=s;ot)return a[o]}return a[a.length-1]},Wr=function(e,t,a,n,s,o){e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle");var h;N.contains(Yr,e)?h=P1:N.contains(Ur,e)?h=Xr:h=G1;var c=$r(e,t,h,n);return c.type==="small"?R1(e,c.style,a,n,s,o):c.type==="large"?Gr(e,c.size,a,n,s,o):Vr(e,t,a,n,s,o)},U1=function(e,t,a,n,s,o){var h=n.fontMetrics().axisHeight*n.sizeMultiplier,c=901,p=5/n.fontMetrics().ptPerEm,g=Math.max(t-h,a+h),y=Math.max(g/500*c,2*g-p);return Wr(e,y,!0,n,s,o)},q0={sqrtImage:H1,sizedDelim:L1,sizeToMaxHeight:ue,customSizedDelim:Wr,leftRightDelim:U1},Qt={"\\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}},Y1=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Ue(r,e){var t=Ge(r);if(t&&N.contains(Y1,t.text))return t;throw t?new M("Invalid delimiter '"+t.text+"' after '"+e.funcName+"'",r):new M("Invalid delimiter type '"+r.type+"'",r)}B({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:(r,e)=>{var t=Ue(e[0],r);return{type:"delimsizing",mode:r.parser.mode,size:Qt[r.funcName].size,mclass:Qt[r.funcName].mclass,delim:t.text}},htmlBuilder:(r,e)=>r.delim==="."?b.makeSpan([r.mclass]):q0.sizedDelim(r.delim,r.size,e,r.mode,[r.mclass]),mathmlBuilder:r=>{var e=[];r.delim!=="."&&e.push(v0(r.delim,r.mode));var t=new S.MathNode("mo",e);r.mclass==="mopen"||r.mclass==="mclose"?t.setAttribute("fence","true"):t.setAttribute("fence","false"),t.setAttribute("stretchy","true");var a=A(q0.sizeToMaxHeight[r.size]);return t.setAttribute("minsize",a),t.setAttribute("maxsize",a),t}});function _t(r){if(!r.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}B({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=r.parser.gullet.macros.get("\\current@color");if(t&&typeof t!="string")throw new M("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:r.parser.mode,delim:Ue(e[0],r).text,color:t}}});B({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=Ue(e[0],r),a=r.parser;++a.leftrightDepth;var n=a.parseExpression(!1);--a.leftrightDepth,a.expect("\\right",!1);var s=F(a.parseFunction(),"leftright-right");return{type:"leftright",mode:a.mode,body:n,left:t.text,right:s.delim,rightColor:s.color}},htmlBuilder:(r,e)=>{_t(r);for(var t=t0(r.body,e,!0,["mopen","mclose"]),a=0,n=0,s=!1,o=0;o{_t(r);var t=h0(r.body,e);if(r.left!=="."){var a=new S.MathNode("mo",[v0(r.left,r.mode)]);a.setAttribute("fence","true"),t.unshift(a)}if(r.right!=="."){var n=new S.MathNode("mo",[v0(r.right,r.mode)]);n.setAttribute("fence","true"),r.rightColor&&n.setAttribute("mathcolor",r.rightColor),t.push(n)}return kt(t)}});B({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=Ue(e[0],r);if(!r.parser.leftrightDepth)throw new M("\\middle without preceding \\left",t);return{type:"middle",mode:r.parser.mode,delim:t.text}},htmlBuilder:(r,e)=>{var t;if(r.delim===".")t=fe(e,[]);else{t=q0.sizedDelim(r.delim,1,e,r.mode,[]);var a={delim:r.delim,options:e};t.isMiddle=a}return t},mathmlBuilder:(r,e)=>{var t=r.delim==="\\vert"||r.delim==="|"?v0("|","text"):v0(r.delim,r.mode),a=new S.MathNode("mo",[t]);return a.setAttribute("fence","true"),a.setAttribute("lspace","0.05em"),a.setAttribute("rspace","0.05em"),a}});var Tt=(r,e)=>{var t=b.wrapFragment(P(r.body,e),e),a=r.label.slice(1),n=e.sizeMultiplier,s,o=0,h=N.isCharacterBox(r.body);if(a==="sout")s=b.makeSpan(["stretchy","sout"]),s.height=e.fontMetrics().defaultRuleThickness/n,o=-.5*e.fontMetrics().xHeight;else if(a==="phase"){var c=J({number:.6,unit:"pt"},e),p=J({number:.35,unit:"ex"},e),g=e.havingBaseSizing();n=n/g.sizeMultiplier;var y=t.height+t.depth+c+p;t.style.paddingLeft=A(y/2+c);var w=Math.floor(1e3*y*n),x=Fa(w),z=new y0([new S0("phase",x)],{width:"400em",height:A(w/1e3),viewBox:"0 0 400000 "+w,preserveAspectRatio:"xMinYMin slice"});s=b.makeSvgSpan(["hide-tail"],[z],e),s.style.height=A(y),o=t.depth+c+p}else{/cancel/.test(a)?h||t.classes.push("cancel-pad"):a==="angl"?t.classes.push("anglpad"):t.classes.push("boxpad");var T=0,C=0,q=0;/box/.test(a)?(q=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),T=e.fontMetrics().fboxsep+(a==="colorbox"?0:q),C=T):a==="angl"?(q=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),T=4*q,C=Math.max(0,.25-t.depth)):(T=h?.2:0,C=T),s=R0.encloseSpan(t,a,T,C,e),/fbox|boxed|fcolorbox/.test(a)?(s.style.borderStyle="solid",s.style.borderWidth=A(q)):a==="angl"&&q!==.049&&(s.style.borderTopWidth=A(q),s.style.borderRightWidth=A(q)),o=t.depth+C,r.backgroundColor&&(s.style.backgroundColor=r.backgroundColor,r.borderColor&&(s.style.borderColor=r.borderColor))}var O;if(r.backgroundColor)O=b.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:o},{type:"elem",elem:t,shift:0}]},e);else{var H=/cancel|phase/.test(a)?["svg-align"]:[];O=b.makeVList({positionType:"individualShift",children:[{type:"elem",elem:t,shift:0},{type:"elem",elem:s,shift:o,wrapperClasses:H}]},e)}return/cancel/.test(a)&&(O.height=t.height,O.depth=t.depth),/cancel/.test(a)&&!h?b.makeSpan(["mord","cancel-lap"],[O],e):b.makeSpan(["mord"],[O],e)},Bt=(r,e)=>{var t=0,a=new S.MathNode(r.label.indexOf("colorbox")>-1?"mpadded":"menclose",[X(r.body,e)]);switch(r.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(t=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,a.setAttribute("width","+"+2*t+"pt"),a.setAttribute("height","+"+2*t+"pt"),a.setAttribute("lspace",t+"pt"),a.setAttribute("voffset",t+"pt"),r.label==="\\fcolorbox"){var n=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);a.setAttribute("style","border: "+n+"em solid "+String(r.borderColor))}break;case"\\xcancel":a.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return r.backgroundColor&&a.setAttribute("mathbackground",r.backgroundColor),a};B({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(r,e,t){var{parser:a,funcName:n}=r,s=F(e[0],"color-token").color,o=e[1];return{type:"enclose",mode:a.mode,label:n,backgroundColor:s,body:o}},htmlBuilder:Tt,mathmlBuilder:Bt});B({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(r,e,t){var{parser:a,funcName:n}=r,s=F(e[0],"color-token").color,o=F(e[1],"color-token").color,h=e[2];return{type:"enclose",mode:a.mode,label:n,backgroundColor:o,borderColor:s,body:h}},htmlBuilder:Tt,mathmlBuilder:Bt});B({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"enclose",mode:t.mode,label:"\\fbox",body:e[0]}}});B({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(r,e){var{parser:t,funcName:a}=r,n=e[0];return{type:"enclose",mode:t.mode,label:a,body:n}},htmlBuilder:Tt,mathmlBuilder:Bt});B({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(r,e){var{parser:t}=r;return{type:"enclose",mode:t.mode,label:"\\angl",body:e[0]}}});var jr={};function M0(r){for(var{type:e,names:t,props:a,handler:n,htmlBuilder:s,mathmlBuilder:o}=r,h={type:e,numArgs:a.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:n},c=0;c{var e=r.parser.settings;if(!e.displayMode)throw new M("{"+r.envName+"} can be used only in display mode.")};function Dt(r){if(r.indexOf("ed")===-1)return r.indexOf("*")===-1}function V0(r,e,t){var{hskipBeforeAndAfter:a,addJot:n,cols:s,arraystretch:o,colSeparationType:h,autoTag:c,singleRow:p,emptySingleRow:g,maxNumCols:y,leqno:w}=e;if(r.gullet.beginGroup(),p||r.gullet.macros.set("\\cr","\\\\\\relax"),!o){var x=r.gullet.expandMacroAsText("\\arraystretch");if(x==null)o=1;else if(o=parseFloat(x),!o||o<0)throw new M("Invalid \\arraystretch: "+x)}r.gullet.beginGroup();var z=[],T=[z],C=[],q=[],O=c!=null?[]:void 0;function H(){c&&r.gullet.macros.set("\\@eqnsw","1",!0)}function V(){O&&(r.gullet.macros.get("\\df@tag")?(O.push(r.subparse([new p0("\\df@tag")])),r.gullet.macros.set("\\df@tag",void 0,!0)):O.push(!!c&&r.gullet.macros.get("\\@eqnsw")==="1"))}for(H(),q.push(er(r));;){var L=r.parseExpression(!1,p?"\\end":"\\\\");r.gullet.endGroup(),r.gullet.beginGroup(),L={type:"ordgroup",mode:r.mode,body:L},t&&(L={type:"styling",mode:r.mode,style:t,body:[L]}),z.push(L);var U=r.fetch().text;if(U==="&"){if(y&&z.length===y){if(p||h)throw new M("Too many tab characters: &",r.nextToken);r.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}r.consume()}else if(U==="\\end"){V(),z.length===1&&L.type==="styling"&&L.body[0].body.length===0&&(T.length>1||!g)&&T.pop(),q.length0&&(H+=.25),p.push({pos:H,isDashed:be[ye]})}for(V(o[0]),a=0;a0&&(a0+=O,Gbe))for(a=0;a=h)){var Q0=void 0;(n>0||e.hskipBeforeAndAfter)&&(Q0=N.deflt(d0.pregap,w),Q0!==0&&(g0=b.makeSpan(["arraycolsep"],[]),g0.style.width=A(Q0),s0.push(g0)));var _0=[];for(a=0;a0){for(var da=b.makeLineSpan("hline",t,g),fa=b.makeLineSpan("hdashline",t,g),We=[{type:"elem",elem:c,shift:0}];p.length>0;){var Ft=p.pop(),Lt=Ft.pos-e0;Ft.isDashed?We.push({type:"elem",elem:fa,shift:Lt}):We.push({type:"elem",elem:da,shift:Lt})}c=b.makeVList({positionType:"individualShift",children:We},t)}if(Z0.length===0)return b.makeSpan(["mord"],[c],t);var je=b.makeVList({positionType:"individualShift",children:Z0},t);return je=b.makeSpan(["tag"],[je],t),b.makeFragment([c,je])},X1={c:"center ",l:"left ",r:"right "},A0=function(e,t){for(var a=[],n=new S.MathNode("mtd",[],["mtr-glue"]),s=new S.MathNode("mtd",[],["mml-eqn-num"]),o=0;o0){var z=e.cols,T="",C=!1,q=0,O=z.length;z[0].type==="separator"&&(w+="top ",q=1),z[z.length-1].type==="separator"&&(w+="bottom ",O-=1);for(var H=q;H0?"left ":"",w+=j[j.length-1].length>0?"right ":"";for(var Y=1;Y-1?"alignat":"align",s=e.envName==="split",o=V0(e.parser,{cols:a,addJot:!0,autoTag:s?void 0:Dt(e.envName),emptySingleRow:!0,colSeparationType:n,maxNumCols:s?2:void 0,leqno:e.parser.settings.leqno},"display"),h,c=0,p={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&t[0].type==="ordgroup"){for(var g="",y=0;y0&&x&&(C=1),a[z]={type:"align",align:T,pregap:C,postgap:0}}return o.colSeparationType=x?"align":"alignat",o};M0({type:"array",names:["array","darray"],props:{numArgs:1},handler(r,e){var t=Ge(e[0]),a=t?[e[0]]:F(e[0],"ordgroup").body,n=a.map(function(o){var h=Mt(o),c=h.text;if("lcr".indexOf(c)!==-1)return{type:"align",align:c};if(c==="|")return{type:"separator",separator:"|"};if(c===":")return{type:"separator",separator:":"};throw new M("Unknown column alignment: "+c,o)}),s={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return V0(r.parser,s,Ct(r.envName))},htmlBuilder:z0,mathmlBuilder:A0});M0({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(r){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[r.envName.replace("*","")],t="c",a={hskipBeforeAndAfter:!1,cols:[{type:"align",align:t}]};if(r.envName.charAt(r.envName.length-1)==="*"){var n=r.parser;if(n.consumeSpaces(),n.fetch().text==="["){if(n.consume(),n.consumeSpaces(),t=n.fetch().text,"lcr".indexOf(t)===-1)throw new M("Expected l or c or r",n.nextToken);n.consume(),n.consumeSpaces(),n.expect("]"),n.consume(),a.cols=[{type:"align",align:t}]}}var s=V0(r.parser,a,Ct(r.envName)),o=Math.max(0,...s.body.map(h=>h.length));return s.cols=new Array(o).fill({type:"align",align:t}),e?{type:"leftright",mode:r.mode,body:[s],left:e[0],right:e[1],rightColor:void 0}:s},htmlBuilder:z0,mathmlBuilder:A0});M0({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(r){var e={arraystretch:.5},t=V0(r.parser,e,"script");return t.colSeparationType="small",t},htmlBuilder:z0,mathmlBuilder:A0});M0({type:"array",names:["subarray"],props:{numArgs:1},handler(r,e){var t=Ge(e[0]),a=t?[e[0]]:F(e[0],"ordgroup").body,n=a.map(function(o){var h=Mt(o),c=h.text;if("lc".indexOf(c)!==-1)return{type:"align",align:c};throw new M("Unknown column alignment: "+c,o)});if(n.length>1)throw new M("{subarray} can contain only one column");var s={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5};if(s=V0(r.parser,s,"script"),s.body.length>0&&s.body[0].length>1)throw new M("{subarray} can contain only one column");return s},htmlBuilder:z0,mathmlBuilder:A0});M0({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(r){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},t=V0(r.parser,e,Ct(r.envName));return{type:"leftright",mode:r.mode,body:[t],left:r.envName.indexOf("r")>-1?".":"\\{",right:r.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:z0,mathmlBuilder:A0});M0({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Kr,htmlBuilder:z0,mathmlBuilder:A0});M0({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(r){N.contains(["gather","gather*"],r.envName)&&Ye(r);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Dt(r.envName),emptySingleRow:!0,leqno:r.parser.settings.leqno};return V0(r.parser,e,"display")},htmlBuilder:z0,mathmlBuilder:A0});M0({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Kr,htmlBuilder:z0,mathmlBuilder:A0});M0({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(r){Ye(r);var e={autoTag:Dt(r.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:r.parser.settings.leqno};return V0(r.parser,e,"display")},htmlBuilder:z0,mathmlBuilder:A0});M0({type:"array",names:["CD"],props:{numArgs:0},handler(r){return Ye(r),q1(r.parser)},htmlBuilder:z0,mathmlBuilder:A0});m("\\nonumber","\\gdef\\@eqnsw{0}");m("\\notag","\\nonumber");B({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(r,e){throw new M(r.funcName+" valid only within array environment")}});var tr=jr;B({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(r,e){var{parser:t,funcName:a}=r,n=e[0];if(n.type!=="ordgroup")throw new M("Invalid environment name",n);for(var s="",o=0;o{var t=r.font,a=e.withFont(t);return P(r.body,a)},Qr=(r,e)=>{var t=r.font,a=e.withFont(t);return X(r.body,a)},rr={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};B({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=He(e[0]),s=a;return s in rr&&(s=rr[s]),{type:"font",mode:t.mode,font:s.slice(1),body:n}},htmlBuilder:Jr,mathmlBuilder:Qr});B({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(r,e)=>{var{parser:t}=r,a=e[0],n=N.isCharacterBox(a);return{type:"mclass",mode:t.mode,mclass:Ve(a),body:[{type:"font",mode:t.mode,font:"boldsymbol",body:a}],isCharacterBox:n}}});B({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(r,e)=>{var{parser:t,funcName:a,breakOnTokenText:n}=r,{mode:s}=t,o=t.parseExpression(!0,n),h="math"+a.slice(1);return{type:"font",mode:s,font:h,body:{type:"ordgroup",mode:t.mode,body:o}}},htmlBuilder:Jr,mathmlBuilder:Qr});var _r=(r,e)=>{var t=e;return r==="display"?t=t.id>=E.SCRIPT.id?t.text():E.DISPLAY:r==="text"&&t.size===E.DISPLAY.size?t=E.TEXT:r==="script"?t=E.SCRIPT:r==="scriptscript"&&(t=E.SCRIPTSCRIPT),t},qt=(r,e)=>{var t=_r(r.size,e.style),a=t.fracNum(),n=t.fracDen(),s;s=e.havingStyle(a);var o=P(r.numer,s,e);if(r.continued){var h=8.5/e.fontMetrics().ptPerEm,c=3.5/e.fontMetrics().ptPerEm;o.height=o.height0?z=3*w:z=7*w,T=e.fontMetrics().denom1):(y>0?(x=e.fontMetrics().num2,z=w):(x=e.fontMetrics().num3,z=3*w),T=e.fontMetrics().denom2);var C;if(g){var O=e.fontMetrics().axisHeight;x-o.depth-(O+.5*y){var t=new S.MathNode("mfrac",[X(r.numer,e),X(r.denom,e)]);if(!r.hasBarLine)t.setAttribute("linethickness","0px");else if(r.barSize){var a=J(r.barSize,e);t.setAttribute("linethickness",A(a))}var n=_r(r.size,e.style);if(n.size!==e.style.size){t=new S.MathNode("mstyle",[t]);var s=n.size===E.DISPLAY.size?"true":"false";t.setAttribute("displaystyle",s),t.setAttribute("scriptlevel","0")}if(r.leftDelim!=null||r.rightDelim!=null){var o=[];if(r.leftDelim!=null){var h=new S.MathNode("mo",[new S.TextNode(r.leftDelim.replace("\\",""))]);h.setAttribute("fence","true"),o.push(h)}if(o.push(t),r.rightDelim!=null){var c=new S.MathNode("mo",[new S.TextNode(r.rightDelim.replace("\\",""))]);c.setAttribute("fence","true"),o.push(c)}return kt(o)}return t};B({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0],s=e[1],o,h=null,c=null,p="auto";switch(a){case"\\dfrac":case"\\frac":case"\\tfrac":o=!0;break;case"\\\\atopfrac":o=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":o=!1,h="(",c=")";break;case"\\\\bracefrac":o=!1,h="\\{",c="\\}";break;case"\\\\brackfrac":o=!1,h="[",c="]";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:t.mode,continued:!1,numer:n,denom:s,hasBarLine:o,leftDelim:h,rightDelim:c,size:p,barSize:null}},htmlBuilder:qt,mathmlBuilder:Nt});B({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0],s=e[1];return{type:"genfrac",mode:t.mode,continued:!0,numer:n,denom:s,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});B({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(r){var{parser:e,funcName:t,token:a}=r,n;switch(t){case"\\over":n="\\frac";break;case"\\choose":n="\\binom";break;case"\\atop":n="\\\\atopfrac";break;case"\\brace":n="\\\\bracefrac";break;case"\\brack":n="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:n,token:a}}});var ar=["display","text","script","scriptscript"],nr=function(e){var t=null;return e.length>0&&(t=e,t=t==="."?null:t),t};B({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(r,e){var{parser:t}=r,a=e[4],n=e[5],s=He(e[0]),o=s.type==="atom"&&s.family==="open"?nr(s.text):null,h=He(e[1]),c=h.type==="atom"&&h.family==="close"?nr(h.text):null,p=F(e[2],"size"),g,y=null;p.isBlank?g=!0:(y=p.value,g=y.number>0);var w="auto",x=e[3];if(x.type==="ordgroup"){if(x.body.length>0){var z=F(x.body[0],"textord");w=ar[Number(z.text)]}}else x=F(x,"textord"),w=ar[Number(x.text)];return{type:"genfrac",mode:t.mode,numer:a,denom:n,continued:!1,hasBarLine:g,barSize:y,leftDelim:o,rightDelim:c,size:w}},htmlBuilder:qt,mathmlBuilder:Nt});B({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(r,e){var{parser:t,funcName:a,token:n}=r;return{type:"infix",mode:t.mode,replaceWith:"\\\\abovefrac",size:F(e[0],"size").value,token:n}}});B({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0],s=Sa(F(e[1],"infix").size),o=e[2],h=s.number>0;return{type:"genfrac",mode:t.mode,numer:n,denom:o,continued:!1,hasBarLine:h,barSize:s,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:qt,mathmlBuilder:Nt});var ea=(r,e)=>{var t=e.style,a,n;r.type==="supsub"?(a=r.sup?P(r.sup,e.havingStyle(t.sup()),e):P(r.sub,e.havingStyle(t.sub()),e),n=F(r.base,"horizBrace")):n=F(r,"horizBrace");var s=P(n.base,e.havingBaseStyle(E.DISPLAY)),o=R0.svgSpan(n,e),h;if(n.isOver?(h=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]},e),h.children[0].children[0].children[1].classes.push("svg-align")):(h=b.makeVList({positionType:"bottom",positionData:s.depth+.1+o.height,children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]},e),h.children[0].children[0].children[0].classes.push("svg-align")),a){var c=b.makeSpan(["mord",n.isOver?"mover":"munder"],[h],e);n.isOver?h=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:c},{type:"kern",size:.2},{type:"elem",elem:a}]},e):h=b.makeVList({positionType:"bottom",positionData:c.depth+.2+a.height+a.depth,children:[{type:"elem",elem:a},{type:"kern",size:.2},{type:"elem",elem:c}]},e)}return b.makeSpan(["mord",n.isOver?"mover":"munder"],[h],e)},$1=(r,e)=>{var t=R0.mathMLnode(r.label);return new S.MathNode(r.isOver?"mover":"munder",[X(r.base,e),t])};B({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(r,e){var{parser:t,funcName:a}=r;return{type:"horizBrace",mode:t.mode,label:a,isOver:/^\\over/.test(a),base:e[0]}},htmlBuilder:ea,mathmlBuilder:$1});B({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[1],n=F(e[0],"url").url;return t.settings.isTrusted({command:"\\href",url:n})?{type:"href",mode:t.mode,href:n,body:Q(a)}:t.formatUnsupportedCmd("\\href")},htmlBuilder:(r,e)=>{var t=t0(r.body,e,!1);return b.makeAnchor(r.href,[],t,e)},mathmlBuilder:(r,e)=>{var t=G0(r.body,e);return t instanceof o0||(t=new o0("mrow",[t])),t.setAttribute("href",r.href),t}});B({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=F(e[0],"url").url;if(!t.settings.isTrusted({command:"\\url",url:a}))return t.formatUnsupportedCmd("\\url");for(var n=[],s=0;s{var{parser:t,funcName:a,token:n}=r,s=F(e[0],"raw").string,o=e[1];t.settings.strict&&t.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var h,c={};switch(a){case"\\htmlClass":c.class=s,h={command:"\\htmlClass",class:s};break;case"\\htmlId":c.id=s,h={command:"\\htmlId",id:s};break;case"\\htmlStyle":c.style=s,h={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var p=s.split(","),g=0;g{var t=t0(r.body,e,!1),a=["enclosing"];r.attributes.class&&a.push(...r.attributes.class.trim().split(/\s+/));var n=b.makeSpan(a,t,e);for(var s in r.attributes)s!=="class"&&r.attributes.hasOwnProperty(s)&&n.setAttribute(s,r.attributes[s]);return n},mathmlBuilder:(r,e)=>G0(r.body,e)});B({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r;return{type:"htmlmathml",mode:t.mode,html:Q(e[0]),mathml:Q(e[1])}},htmlBuilder:(r,e)=>{var t=t0(r.html,e,!1);return b.makeFragment(t)},mathmlBuilder:(r,e)=>G0(r.mathml,e)});var at=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new M("Invalid size: '"+e+"' in \\includegraphics");var a={number:+(t[1]+t[2]),unit:t[3]};if(!yr(a))throw new M("Invalid unit: '"+a.unit+"' in \\includegraphics.");return a};B({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(r,e,t)=>{var{parser:a}=r,n={number:0,unit:"em"},s={number:.9,unit:"em"},o={number:0,unit:"em"},h="";if(t[0])for(var c=F(t[0],"raw").string,p=c.split(","),g=0;g{var t=J(r.height,e),a=0;r.totalheight.number>0&&(a=J(r.totalheight,e)-t);var n=0;r.width.number>0&&(n=J(r.width,e));var s={height:A(t+a)};n>0&&(s.width=A(n)),a>0&&(s.verticalAlign=A(-a));var o=new ut(r.src,r.alt,s);return o.height=t,o.depth=a,o},mathmlBuilder:(r,e)=>{var t=new S.MathNode("mglyph",[]);t.setAttribute("alt",r.alt);var a=J(r.height,e),n=0;if(r.totalheight.number>0&&(n=J(r.totalheight,e)-a,t.setAttribute("valign",A(-n))),t.setAttribute("height",A(a+n)),r.width.number>0){var s=J(r.width,e);t.setAttribute("width",A(s))}return t.setAttribute("src",r.src),t}});B({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(r,e){var{parser:t,funcName:a}=r,n=F(e[0],"size");if(t.settings.strict){var s=a[1]==="m",o=n.value.unit==="mu";s?(o||t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" supports only mu units, "+("not "+n.value.unit+" units")),t.mode!=="math"&&t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" works only in math mode")):o&&t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" doesn't support mu units")}return{type:"kern",mode:t.mode,dimension:n.value}},htmlBuilder(r,e){return b.makeGlue(r.dimension,e)},mathmlBuilder(r,e){var t=J(r.dimension,e);return new S.SpaceNode(t)}});B({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0];return{type:"lap",mode:t.mode,alignment:a.slice(5),body:n}},htmlBuilder:(r,e)=>{var t;r.alignment==="clap"?(t=b.makeSpan([],[P(r.body,e)]),t=b.makeSpan(["inner"],[t],e)):t=b.makeSpan(["inner"],[P(r.body,e)]);var a=b.makeSpan(["fix"],[]),n=b.makeSpan([r.alignment],[t,a],e),s=b.makeSpan(["strut"]);return s.style.height=A(n.height+n.depth),n.depth&&(s.style.verticalAlign=A(-n.depth)),n.children.unshift(s),n=b.makeSpan(["thinbox"],[n],e),b.makeSpan(["mord","vbox"],[n],e)},mathmlBuilder:(r,e)=>{var t=new S.MathNode("mpadded",[X(r.body,e)]);if(r.alignment!=="rlap"){var a=r.alignment==="llap"?"-1":"-0.5";t.setAttribute("lspace",a+"width")}return t.setAttribute("width","0px"),t}});B({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(r,e){var{funcName:t,parser:a}=r,n=a.mode;a.switchMode("math");var s=t==="\\("?"\\)":"$",o=a.parseExpression(!1,s);return a.expect(s),a.switchMode(n),{type:"styling",mode:a.mode,style:"text",body:o}}});B({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(r,e){throw new M("Mismatched "+r.funcName)}});var ir=(r,e)=>{switch(e.style.size){case E.DISPLAY.size:return r.display;case E.TEXT.size:return r.text;case E.SCRIPT.size:return r.script;case E.SCRIPTSCRIPT.size:return r.scriptscript;default:return r.text}};B({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(r,e)=>{var{parser:t}=r;return{type:"mathchoice",mode:t.mode,display:Q(e[0]),text:Q(e[1]),script:Q(e[2]),scriptscript:Q(e[3])}},htmlBuilder:(r,e)=>{var t=ir(r,e),a=t0(t,e,!1);return b.makeFragment(a)},mathmlBuilder:(r,e)=>{var t=ir(r,e);return G0(t,e)}});var ta=(r,e,t,a,n,s,o)=>{r=b.makeSpan([],[r]);var h=t&&N.isCharacterBox(t),c,p;if(e){var g=P(e,a.havingStyle(n.sup()),a);p={elem:g,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-g.depth)}}if(t){var y=P(t,a.havingStyle(n.sub()),a);c={elem:y,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-y.height)}}var w;if(p&&c){var x=a.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+r.depth+o;w=b.makeVList({positionType:"bottom",positionData:x,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:A(-s)},{type:"kern",size:c.kern},{type:"elem",elem:r},{type:"kern",size:p.kern},{type:"elem",elem:p.elem,marginLeft:A(s)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else if(c){var z=r.height-o;w=b.makeVList({positionType:"top",positionData:z,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:A(-s)},{type:"kern",size:c.kern},{type:"elem",elem:r}]},a)}else if(p){var T=r.depth+o;w=b.makeVList({positionType:"bottom",positionData:T,children:[{type:"elem",elem:r},{type:"kern",size:p.kern},{type:"elem",elem:p.elem,marginLeft:A(s)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else return r;var C=[w];if(c&&s!==0&&!h){var q=b.makeSpan(["mspace"],[],a);q.style.marginRight=A(s),C.unshift(q)}return b.makeSpan(["mop","op-limits"],C,a)},ra=["\\smallint"],ne=(r,e)=>{var t,a,n=!1,s;r.type==="supsub"?(t=r.sup,a=r.sub,s=F(r.base,"op"),n=!0):s=F(r,"op");var o=e.style,h=!1;o.size===E.DISPLAY.size&&s.symbol&&!N.contains(ra,s.name)&&(h=!0);var c;if(s.symbol){var p=h?"Size2-Regular":"Size1-Regular",g="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(g=s.name.slice(1),s.name=g==="oiint"?"\\iint":"\\iiint"),c=b.makeSymbol(s.name,p,"math",e,["mop","op-symbol",h?"large-op":"small-op"]),g.length>0){var y=c.italic,w=b.staticSvg(g+"Size"+(h?"2":"1"),e);c=b.makeVList({positionType:"individualShift",children:[{type:"elem",elem:c,shift:0},{type:"elem",elem:w,shift:h?.08:0}]},e),s.name="\\"+g,c.classes.unshift("mop"),c.italic=y}}else if(s.body){var x=t0(s.body,e,!0);x.length===1&&x[0]instanceof u0?(c=x[0],c.classes[0]="mop"):c=b.makeSpan(["mop"],x,e)}else{for(var z=[],T=1;T{var t;if(r.symbol)t=new o0("mo",[v0(r.name,r.mode)]),N.contains(ra,r.name)&&t.setAttribute("largeop","false");else if(r.body)t=new o0("mo",h0(r.body,e));else{t=new o0("mi",[new X0(r.name.slice(1))]);var a=new o0("mo",[v0("\u2061","text")]);r.parentIsSupSub?t=new o0("mrow",[t,a]):t=Cr([t,a])}return t},W1={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};B({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=a;return n.length===1&&(n=W1[n]),{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:ne,mathmlBuilder:pe});B({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Q(a)}},htmlBuilder:ne,mathmlBuilder:pe});var j1={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};B({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(r){var{parser:e,funcName:t}=r;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:ne,mathmlBuilder:pe});B({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(r){var{parser:e,funcName:t}=r;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:ne,mathmlBuilder:pe});B({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler(r){var{parser:e,funcName:t}=r,a=t;return a.length===1&&(a=j1[a]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:ne,mathmlBuilder:pe});var aa=(r,e)=>{var t,a,n=!1,s;r.type==="supsub"?(t=r.sup,a=r.sub,s=F(r.base,"operatorname"),n=!0):s=F(r,"operatorname");var o;if(s.body.length>0){for(var h=s.body.map(y=>{var w=y.text;return typeof w=="string"?{type:"textord",mode:y.mode,text:w}:y}),c=t0(h,e.withFont("mathrm"),!0),p=0;p{for(var t=h0(r.body,e.withFont("mathrm")),a=!0,n=0;ng.toText()).join("");t=[new S.TextNode(h)]}var c=new S.MathNode("mi",t);c.setAttribute("mathvariant","normal");var p=new S.MathNode("mo",[v0("\u2061","text")]);return r.parentIsSupSub?new S.MathNode("mrow",[c,p]):S.newDocumentFragment([c,p])};B({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0];return{type:"operatorname",mode:t.mode,body:Q(n),alwaysHandleSupSub:a==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:aa,mathmlBuilder:Z1});m("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");j0({type:"ordgroup",htmlBuilder(r,e){return r.semisimple?b.makeFragment(t0(r.body,e,!1)):b.makeSpan(["mord"],t0(r.body,e,!0),e)},mathmlBuilder(r,e){return G0(r.body,e,!0)}});B({type:"overline",names:["\\overline"],props:{numArgs:1},handler(r,e){var{parser:t}=r,a=e[0];return{type:"overline",mode:t.mode,body:a}},htmlBuilder(r,e){var t=P(r.body,e.havingCrampedStyle()),a=b.makeLineSpan("overline-line",e),n=e.fontMetrics().defaultRuleThickness,s=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t},{type:"kern",size:3*n},{type:"elem",elem:a},{type:"kern",size:n}]},e);return b.makeSpan(["mord","overline"],[s],e)},mathmlBuilder(r,e){var t=new S.MathNode("mo",[new S.TextNode("\u203E")]);t.setAttribute("stretchy","true");var a=new S.MathNode("mover",[X(r.body,e),t]);return a.setAttribute("accent","true"),a}});B({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"phantom",mode:t.mode,body:Q(a)}},htmlBuilder:(r,e)=>{var t=t0(r.body,e.withPhantom(),!1);return b.makeFragment(t)},mathmlBuilder:(r,e)=>{var t=h0(r.body,e);return new S.MathNode("mphantom",t)}});B({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"hphantom",mode:t.mode,body:a}},htmlBuilder:(r,e)=>{var t=b.makeSpan([],[P(r.body,e.withPhantom())]);if(t.height=0,t.depth=0,t.children)for(var a=0;a{var t=h0(Q(r.body),e),a=new S.MathNode("mphantom",t),n=new S.MathNode("mpadded",[a]);return n.setAttribute("height","0px"),n.setAttribute("depth","0px"),n}});B({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"vphantom",mode:t.mode,body:a}},htmlBuilder:(r,e)=>{var t=b.makeSpan(["inner"],[P(r.body,e.withPhantom())]),a=b.makeSpan(["fix"],[]);return b.makeSpan(["mord","rlap"],[t,a],e)},mathmlBuilder:(r,e)=>{var t=h0(Q(r.body),e),a=new S.MathNode("mphantom",t),n=new S.MathNode("mpadded",[a]);return n.setAttribute("width","0px"),n}});B({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(r,e){var{parser:t}=r,a=F(e[0],"size").value,n=e[1];return{type:"raisebox",mode:t.mode,dy:a,body:n}},htmlBuilder(r,e){var t=P(r.body,e),a=J(r.dy,e);return b.makeVList({positionType:"shift",positionData:-a,children:[{type:"elem",elem:t}]},e)},mathmlBuilder(r,e){var t=new S.MathNode("mpadded",[X(r.body,e)]),a=r.dy.number+r.dy.unit;return t.setAttribute("voffset",a),t}});B({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(r){var{parser:e}=r;return{type:"internal",mode:e.mode}}});B({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(r,e,t){var{parser:a}=r,n=t[0],s=F(e[0],"size"),o=F(e[1],"size");return{type:"rule",mode:a.mode,shift:n&&F(n,"size").value,width:s.value,height:o.value}},htmlBuilder(r,e){var t=b.makeSpan(["mord","rule"],[],e),a=J(r.width,e),n=J(r.height,e),s=r.shift?J(r.shift,e):0;return t.style.borderRightWidth=A(a),t.style.borderTopWidth=A(n),t.style.bottom=A(s),t.width=a,t.height=n+s,t.depth=-s,t.maxFontSize=n*1.125*e.sizeMultiplier,t},mathmlBuilder(r,e){var t=J(r.width,e),a=J(r.height,e),n=r.shift?J(r.shift,e):0,s=e.color&&e.getColor()||"black",o=new S.MathNode("mspace");o.setAttribute("mathbackground",s),o.setAttribute("width",A(t)),o.setAttribute("height",A(a));var h=new S.MathNode("mpadded",[o]);return n>=0?h.setAttribute("height",A(n)):(h.setAttribute("height",A(n)),h.setAttribute("depth",A(-n))),h.setAttribute("voffset",A(n)),h}});function na(r,e,t){for(var a=t0(r,e,!1),n=e.sizeMultiplier/t.sizeMultiplier,s=0;s{var t=e.havingSize(r.size);return na(r.body,t,e)};B({type:"sizing",names:sr,props:{numArgs:0,allowedInText:!0},handler:(r,e)=>{var{breakOnTokenText:t,funcName:a,parser:n}=r,s=n.parseExpression(!1,t);return{type:"sizing",mode:n.mode,size:sr.indexOf(a)+1,body:s}},htmlBuilder:K1,mathmlBuilder:(r,e)=>{var t=e.havingSize(r.size),a=h0(r.body,t),n=new S.MathNode("mstyle",a);return n.setAttribute("mathsize",A(t.sizeMultiplier)),n}});B({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(r,e,t)=>{var{parser:a}=r,n=!1,s=!1,o=t[0]&&F(t[0],"ordgroup");if(o)for(var h="",c=0;c{var t=b.makeSpan([],[P(r.body,e)]);if(!r.smashHeight&&!r.smashDepth)return t;if(r.smashHeight&&(t.height=0,t.children))for(var a=0;a{var t=new S.MathNode("mpadded",[X(r.body,e)]);return r.smashHeight&&t.setAttribute("height","0px"),r.smashDepth&&t.setAttribute("depth","0px"),t}});B({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(r,e,t){var{parser:a}=r,n=t[0],s=e[0];return{type:"sqrt",mode:a.mode,body:s,index:n}},htmlBuilder(r,e){var t=P(r.body,e.havingCrampedStyle());t.height===0&&(t.height=e.fontMetrics().xHeight),t=b.wrapFragment(t,e);var a=e.fontMetrics(),n=a.defaultRuleThickness,s=n;e.style.idt.height+t.depth+o&&(o=(o+y-t.height-t.depth)/2);var w=c.height-t.height-o-p;t.style.paddingLeft=A(g);var x=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t,wrapperClasses:["svg-align"]},{type:"kern",size:-(t.height+w)},{type:"elem",elem:c},{type:"kern",size:p}]},e);if(r.index){var z=e.havingStyle(E.SCRIPTSCRIPT),T=P(r.index,z,e),C=.6*(x.height-x.depth),q=b.makeVList({positionType:"shift",positionData:-C,children:[{type:"elem",elem:T}]},e),O=b.makeSpan(["root"],[q]);return b.makeSpan(["mord","sqrt"],[O,x],e)}else return b.makeSpan(["mord","sqrt"],[x],e)},mathmlBuilder(r,e){var{body:t,index:a}=r;return a?new S.MathNode("mroot",[X(t,e),X(a,e)]):new S.MathNode("msqrt",[X(t,e)])}});var lr={display:E.DISPLAY,text:E.TEXT,script:E.SCRIPT,scriptscript:E.SCRIPTSCRIPT};B({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r,e){var{breakOnTokenText:t,funcName:a,parser:n}=r,s=n.parseExpression(!0,t),o=a.slice(1,a.length-5);return{type:"styling",mode:n.mode,style:o,body:s}},htmlBuilder(r,e){var t=lr[r.style],a=e.havingStyle(t).withFont("");return na(r.body,a,e)},mathmlBuilder(r,e){var t=lr[r.style],a=e.havingStyle(t),n=h0(r.body,a),s=new S.MathNode("mstyle",n),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},h=o[r.style];return s.setAttribute("scriptlevel",h[0]),s.setAttribute("displaystyle",h[1]),s}});var J1=function(e,t){var a=e.base;if(a)if(a.type==="op"){var n=a.limits&&(t.style.size===E.DISPLAY.size||a.alwaysHandleSupSub);return n?ne:null}else if(a.type==="operatorname"){var s=a.alwaysHandleSupSub&&(t.style.size===E.DISPLAY.size||a.limits);return s?aa:null}else{if(a.type==="accent")return N.isCharacterBox(a.base)?zt:null;if(a.type==="horizBrace"){var o=!e.sub;return o===a.isOver?ea:null}else return null}else return null};j0({type:"supsub",htmlBuilder(r,e){var t=J1(r,e);if(t)return t(r,e);var{base:a,sup:n,sub:s}=r,o=P(a,e),h,c,p=e.fontMetrics(),g=0,y=0,w=a&&N.isCharacterBox(a);if(n){var x=e.havingStyle(e.style.sup());h=P(n,x,e),w||(g=o.height-x.fontMetrics().supDrop*x.sizeMultiplier/e.sizeMultiplier)}if(s){var z=e.havingStyle(e.style.sub());c=P(s,z,e),w||(y=o.depth+z.fontMetrics().subDrop*z.sizeMultiplier/e.sizeMultiplier)}var T;e.style===E.DISPLAY?T=p.sup1:e.style.cramped?T=p.sup3:T=p.sup2;var C=e.sizeMultiplier,q=A(.5/p.ptPerEm/C),O=null;if(c){var H=r.base&&r.base.type==="op"&&r.base.name&&(r.base.name==="\\oiint"||r.base.name==="\\oiiint");(o instanceof u0||H)&&(O=A(-o.italic))}var V;if(h&&c){g=Math.max(g,T,h.depth+.25*p.xHeight),y=Math.max(y,p.sub2);var L=p.defaultRuleThickness,U=4*L;if(g-h.depth-(c.height-y)0&&(g+=G,y-=G)}var j=[{type:"elem",elem:c,shift:y,marginRight:q,marginLeft:O},{type:"elem",elem:h,shift:-g,marginRight:q}];V=b.makeVList({positionType:"individualShift",children:j},e)}else if(c){y=Math.max(y,p.sub1,c.height-.8*p.xHeight);var Y=[{type:"elem",elem:c,marginLeft:O,marginRight:q}];V=b.makeVList({positionType:"shift",positionData:y,children:Y},e)}else if(h)g=Math.max(g,T,h.depth+.25*p.xHeight),V=b.makeVList({positionType:"shift",positionData:-g,children:[{type:"elem",elem:h,marginRight:q}]},e);else throw new Error("supsub must have either sup or sub.");var T0=mt(o,"right")||"mord";return b.makeSpan([T0],[o,b.makeSpan(["msupsub"],[V])],e)},mathmlBuilder(r,e){var t=!1,a,n;r.base&&r.base.type==="horizBrace"&&(n=!!r.sup,n===r.base.isOver&&(t=!0,a=r.base.isOver)),r.base&&(r.base.type==="op"||r.base.type==="operatorname")&&(r.base.parentIsSupSub=!0);var s=[X(r.base,e)];r.sub&&s.push(X(r.sub,e)),r.sup&&s.push(X(r.sup,e));var o;if(t)o=a?"mover":"munder";else if(r.sub)if(r.sup){var p=r.base;p&&p.type==="op"&&p.limits&&e.style===E.DISPLAY||p&&p.type==="operatorname"&&p.alwaysHandleSupSub&&(e.style===E.DISPLAY||p.limits)?o="munderover":o="msubsup"}else{var c=r.base;c&&c.type==="op"&&c.limits&&(e.style===E.DISPLAY||c.alwaysHandleSupSub)||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(c.limits||e.style===E.DISPLAY)?o="munder":o="msub"}else{var h=r.base;h&&h.type==="op"&&h.limits&&(e.style===E.DISPLAY||h.alwaysHandleSupSub)||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(h.limits||e.style===E.DISPLAY)?o="mover":o="msup"}return new S.MathNode(o,s)}});j0({type:"atom",htmlBuilder(r,e){return b.mathsym(r.text,r.mode,e,["m"+r.family])},mathmlBuilder(r,e){var t=new S.MathNode("mo",[v0(r.text,r.mode)]);if(r.family==="bin"){var a=St(r,e);a==="bold-italic"&&t.setAttribute("mathvariant",a)}else r.family==="punct"?t.setAttribute("separator","true"):(r.family==="open"||r.family==="close")&&t.setAttribute("stretchy","false");return t}});var ia={mi:"italic",mn:"normal",mtext:"normal"};j0({type:"mathord",htmlBuilder(r,e){return b.makeOrd(r,e,"mathord")},mathmlBuilder(r,e){var t=new S.MathNode("mi",[v0(r.text,r.mode,e)]),a=St(r,e)||"italic";return a!==ia[t.type]&&t.setAttribute("mathvariant",a),t}});j0({type:"textord",htmlBuilder(r,e){return b.makeOrd(r,e,"textord")},mathmlBuilder(r,e){var t=v0(r.text,r.mode,e),a=St(r,e)||"normal",n;return r.mode==="text"?n=new S.MathNode("mtext",[t]):/[0-9]/.test(r.text)?n=new S.MathNode("mn",[t]):r.text==="\\prime"?n=new S.MathNode("mo",[t]):n=new S.MathNode("mi",[t]),a!==ia[n.type]&&n.setAttribute("mathvariant",a),n}});var nt={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},it={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};j0({type:"spacing",htmlBuilder(r,e){if(it.hasOwnProperty(r.text)){var t=it[r.text].className||"";if(r.mode==="text"){var a=b.makeOrd(r,e,"textord");return a.classes.push(t),a}else return b.makeSpan(["mspace",t],[b.mathsym(r.text,r.mode,e)],e)}else{if(nt.hasOwnProperty(r.text))return b.makeSpan(["mspace",nt[r.text]],[],e);throw new M('Unknown type of space "'+r.text+'"')}},mathmlBuilder(r,e){var t;if(it.hasOwnProperty(r.text))t=new S.MathNode("mtext",[new S.TextNode("\xA0")]);else{if(nt.hasOwnProperty(r.text))return new S.MathNode("mspace");throw new M('Unknown type of space "'+r.text+'"')}return t}});var or=()=>{var r=new S.MathNode("mtd",[]);return r.setAttribute("width","50%"),r};j0({type:"tag",mathmlBuilder(r,e){var t=new S.MathNode("mtable",[new S.MathNode("mtr",[or(),new S.MathNode("mtd",[G0(r.body,e)]),or(),new S.MathNode("mtd",[G0(r.tag,e)])])]);return t.setAttribute("width","100%"),t}});var ur={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},hr={"\\textbf":"textbf","\\textmd":"textmd"},Q1={"\\textit":"textit","\\textup":"textup"},mr=(r,e)=>{var t=r.font;if(t){if(ur[t])return e.withTextFontFamily(ur[t]);if(hr[t])return e.withTextFontWeight(hr[t]);if(t==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(Q1[t])};B({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(r,e){var{parser:t,funcName:a}=r,n=e[0];return{type:"text",mode:t.mode,body:Q(n),font:a}},htmlBuilder(r,e){var t=mr(r,e),a=t0(r.body,t,!0);return b.makeSpan(["mord","text"],a,t)},mathmlBuilder(r,e){var t=mr(r,e);return G0(r.body,t)}});B({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"underline",mode:t.mode,body:e[0]}},htmlBuilder(r,e){var t=P(r.body,e),a=b.makeLineSpan("underline-line",e),n=e.fontMetrics().defaultRuleThickness,s=b.makeVList({positionType:"top",positionData:t.height,children:[{type:"kern",size:n},{type:"elem",elem:a},{type:"kern",size:3*n},{type:"elem",elem:t}]},e);return b.makeSpan(["mord","underline"],[s],e)},mathmlBuilder(r,e){var t=new S.MathNode("mo",[new S.TextNode("\u203E")]);t.setAttribute("stretchy","true");var a=new S.MathNode("munder",[X(r.body,e),t]);return a.setAttribute("accentunder","true"),a}});B({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(r,e){var{parser:t}=r;return{type:"vcenter",mode:t.mode,body:e[0]}},htmlBuilder(r,e){var t=P(r.body,e),a=e.fontMetrics().axisHeight,n=.5*(t.height-a-(t.depth+a));return b.makeVList({positionType:"shift",positionData:n,children:[{type:"elem",elem:t}]},e)},mathmlBuilder(r,e){return new S.MathNode("mpadded",[X(r.body,e)],["vcenter"])}});B({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(r,e,t){throw new M("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(r,e){for(var t=cr(r),a=[],n=e.havingStyle(e.style.text()),s=0;sr.body.replace(/ /g,r.star?"\u2423":"\xA0"),L0=Br,sa=`[ \r + ]`,_1="\\\\[a-zA-Z@]+",e4="\\\\[^\uD800-\uDFFF]",t4="("+_1+")"+sa+"*",r4=`\\\\( +|[ \r ]+ +?)[ \r ]*`,vt="[\u0300-\u036F]",a4=new RegExp(vt+"+$"),n4="("+sa+"+)|"+(r4+"|")+"([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(vt+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(vt+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+t4)+("|"+e4+")"),Fe=class{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(n4,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new p0("EOF",new m0(this,t,t));var a=this.tokenRegex.exec(e);if(a===null||a.index!==t)throw new M("Unexpected character: '"+e[t]+"'",new p0(e[t],new m0(this,t,t+1)));var n=a[6]||a[3]||(a[2]?"\\ ":" ");if(this.catcodes[n]===14){var s=e.indexOf(` +`,this.tokenRegex.lastIndex);return s===-1?(this.tokenRegex.lastIndex=e.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=s+1,this.lex()}return new p0(n,new m0(this,t,this.tokenRegex.lastIndex))}},gt=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new M("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(e[t]==null?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,a){if(a===void 0&&(a=!1),a){for(var n=0;n0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var s=this.undefStack[this.undefStack.length-1];s&&!s.hasOwnProperty(e)&&(s[e]=this.current[e])}t==null?delete this.current[e]:this.current[e]=t}},i4=Zr;m("\\noexpand",function(r){var e=r.popToken();return r.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});m("\\expandafter",function(r){var e=r.popToken();return r.expandOnce(!0),{tokens:[e],numArgs:0}});m("\\@firstoftwo",function(r){var e=r.consumeArgs(2);return{tokens:e[0],numArgs:0}});m("\\@secondoftwo",function(r){var e=r.consumeArgs(2);return{tokens:e[1],numArgs:0}});m("\\@ifnextchar",function(r){var e=r.consumeArgs(3);r.consumeSpaces();var t=r.future();return e[0].length===1&&e[0][0].text===t.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});m("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");m("\\TextOrMath",function(r){var e=r.consumeArgs(2);return r.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var dr={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};m("\\char",function(r){var e=r.popToken(),t,a="";if(e.text==="'")t=8,e=r.popToken();else if(e.text==='"')t=16,e=r.popToken();else if(e.text==="`")if(e=r.popToken(),e.text[0]==="\\")a=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new M("\\char` missing argument");a=e.text.charCodeAt(0)}else t=10;if(t){if(a=dr[e.text],a==null||a>=t)throw new M("Invalid base-"+t+" digit "+e.text);for(var n;(n=dr[r.future().text])!=null&&n{var a=r.consumeArg().tokens;if(a.length!==1)throw new M("\\newcommand's first argument must be a macro name");var n=a[0].text,s=r.isDefined(n);if(s&&!e)throw new M("\\newcommand{"+n+"} attempting to redefine "+(n+"; use \\renewcommand"));if(!s&&!t)throw new M("\\renewcommand{"+n+"} when command "+n+" does not yet exist; use \\newcommand");var o=0;if(a=r.consumeArg().tokens,a.length===1&&a[0].text==="["){for(var h="",c=r.expandNextToken();c.text!=="]"&&c.text!=="EOF";)h+=c.text,c=r.expandNextToken();if(!h.match(/^\s*[0-9]+\s*$/))throw new M("Invalid number of arguments: "+h);o=parseInt(h),a=r.consumeArg().tokens}return r.macros.set(n,{tokens:a,numArgs:o}),""};m("\\newcommand",r=>Rt(r,!1,!0));m("\\renewcommand",r=>Rt(r,!0,!1));m("\\providecommand",r=>Rt(r,!0,!0));m("\\message",r=>{var e=r.consumeArgs(1)[0];return console.log(e.reverse().map(t=>t.text).join("")),""});m("\\errmessage",r=>{var e=r.consumeArgs(1)[0];return console.error(e.reverse().map(t=>t.text).join("")),""});m("\\show",r=>{var e=r.popToken(),t=e.text;return console.log(e,r.macros.get(t),L0[t],$.math[t],$.text[t]),""});m("\\bgroup","{");m("\\egroup","}");m("~","\\nobreakspace");m("\\lq","`");m("\\rq","'");m("\\aa","\\r a");m("\\AA","\\r A");m("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}");m("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");m("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}");m("\u212C","\\mathscr{B}");m("\u2130","\\mathscr{E}");m("\u2131","\\mathscr{F}");m("\u210B","\\mathscr{H}");m("\u2110","\\mathscr{I}");m("\u2112","\\mathscr{L}");m("\u2133","\\mathscr{M}");m("\u211B","\\mathscr{R}");m("\u212D","\\mathfrak{C}");m("\u210C","\\mathfrak{H}");m("\u2128","\\mathfrak{Z}");m("\\Bbbk","\\Bbb{k}");m("\xB7","\\cdotp");m("\\llap","\\mathllap{\\textrm{#1}}");m("\\rlap","\\mathrlap{\\textrm{#1}}");m("\\clap","\\mathclap{\\textrm{#1}}");m("\\mathstrut","\\vphantom{(}");m("\\underbar","\\underline{\\text{#1}}");m("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');m("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}");m("\\ne","\\neq");m("\u2260","\\neq");m("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}");m("\u2209","\\notin");m("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}");m("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}");m("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}");m("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}");m("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}");m("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}");m("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}");m("\u27C2","\\perp");m("\u203C","\\mathclose{!\\mkern-0.8mu!}");m("\u220C","\\notni");m("\u231C","\\ulcorner");m("\u231D","\\urcorner");m("\u231E","\\llcorner");m("\u231F","\\lrcorner");m("\xA9","\\copyright");m("\xAE","\\textregistered");m("\uFE0F","\\textregistered");m("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');m("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');m("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');m("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');m("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}");m("\u22EE","\\vdots");m("\\varGamma","\\mathit{\\Gamma}");m("\\varDelta","\\mathit{\\Delta}");m("\\varTheta","\\mathit{\\Theta}");m("\\varLambda","\\mathit{\\Lambda}");m("\\varXi","\\mathit{\\Xi}");m("\\varPi","\\mathit{\\Pi}");m("\\varSigma","\\mathit{\\Sigma}");m("\\varUpsilon","\\mathit{\\Upsilon}");m("\\varPhi","\\mathit{\\Phi}");m("\\varPsi","\\mathit{\\Psi}");m("\\varOmega","\\mathit{\\Omega}");m("\\substack","\\begin{subarray}{c}#1\\end{subarray}");m("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");m("\\boxed","\\fbox{$\\displaystyle{#1}$}");m("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");m("\\implies","\\DOTSB\\;\\Longrightarrow\\;");m("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var fr={",":"\\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"};m("\\dots",function(r){var e="\\dotso",t=r.expandAfterFuture().text;return t in fr?e=fr[t]:(t.slice(0,4)==="\\not"||t in $.math&&N.contains(["bin","rel"],$.math[t].group))&&(e="\\dotsb"),e});var Et={")":!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};m("\\dotso",function(r){var e=r.future().text;return e in Et?"\\ldots\\,":"\\ldots"});m("\\dotsc",function(r){var e=r.future().text;return e in Et&&e!==","?"\\ldots\\,":"\\ldots"});m("\\cdots",function(r){var e=r.future().text;return e in Et?"\\@cdots\\,":"\\@cdots"});m("\\dotsb","\\cdots");m("\\dotsm","\\cdots");m("\\dotsi","\\!\\cdots");m("\\dotsx","\\ldots\\,");m("\\DOTSI","\\relax");m("\\DOTSB","\\relax");m("\\DOTSX","\\relax");m("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");m("\\,","\\tmspace+{3mu}{.1667em}");m("\\thinspace","\\,");m("\\>","\\mskip{4mu}");m("\\:","\\tmspace+{4mu}{.2222em}");m("\\medspace","\\:");m("\\;","\\tmspace+{5mu}{.2777em}");m("\\thickspace","\\;");m("\\!","\\tmspace-{3mu}{.1667em}");m("\\negthinspace","\\!");m("\\negmedspace","\\tmspace-{4mu}{.2222em}");m("\\negthickspace","\\tmspace-{5mu}{.277em}");m("\\enspace","\\kern.5em ");m("\\enskip","\\hskip.5em\\relax");m("\\quad","\\hskip1em\\relax");m("\\qquad","\\hskip2em\\relax");m("\\tag","\\@ifstar\\tag@literal\\tag@paren");m("\\tag@paren","\\tag@literal{({#1})}");m("\\tag@literal",r=>{if(r.macros.get("\\df@tag"))throw new M("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});m("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");m("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");m("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");m("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");m("\\newline","\\\\\\relax");m("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var la=A(k0["Main-Regular"][84][1]-.7*k0["Main-Regular"][65][1]);m("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+la+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");m("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+la+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");m("\\hspace","\\@ifstar\\@hspacer\\@hspace");m("\\@hspace","\\hskip #1\\relax");m("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");m("\\ordinarycolon",":");m("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");m("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');m("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');m("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');m("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');m("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');m("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');m("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');m("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');m("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');m("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');m("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');m("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');m("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');m("\u2237","\\dblcolon");m("\u2239","\\eqcolon");m("\u2254","\\coloneqq");m("\u2255","\\eqqcolon");m("\u2A74","\\Coloneqq");m("\\ratio","\\vcentcolon");m("\\coloncolon","\\dblcolon");m("\\colonequals","\\coloneqq");m("\\coloncolonequals","\\Coloneqq");m("\\equalscolon","\\eqqcolon");m("\\equalscoloncolon","\\Eqqcolon");m("\\colonminus","\\coloneq");m("\\coloncolonminus","\\Coloneq");m("\\minuscolon","\\eqcolon");m("\\minuscoloncolon","\\Eqcolon");m("\\coloncolonapprox","\\Colonapprox");m("\\coloncolonsim","\\Colonsim");m("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");m("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");m("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");m("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");m("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}");m("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");m("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");m("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");m("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");m("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");m("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");m("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");m("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");m("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}");m("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}");m("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}");m("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}");m("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}");m("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}");m("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}");m("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}");m("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}");m("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}");m("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}");m("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}");m("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}");m("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}");m("\\imath","\\html@mathml{\\@imath}{\u0131}");m("\\jmath","\\html@mathml{\\@jmath}{\u0237}");m("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}");m("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}");m("\u27E6","\\llbracket");m("\u27E7","\\rrbracket");m("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}");m("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}");m("\u2983","\\lBrace");m("\u2984","\\rBrace");m("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29B5}}");m("\u29B5","\\minuso");m("\\darr","\\downarrow");m("\\dArr","\\Downarrow");m("\\Darr","\\Downarrow");m("\\lang","\\langle");m("\\rang","\\rangle");m("\\uarr","\\uparrow");m("\\uArr","\\Uparrow");m("\\Uarr","\\Uparrow");m("\\N","\\mathbb{N}");m("\\R","\\mathbb{R}");m("\\Z","\\mathbb{Z}");m("\\alef","\\aleph");m("\\alefsym","\\aleph");m("\\Alpha","\\mathrm{A}");m("\\Beta","\\mathrm{B}");m("\\bull","\\bullet");m("\\Chi","\\mathrm{X}");m("\\clubs","\\clubsuit");m("\\cnums","\\mathbb{C}");m("\\Complex","\\mathbb{C}");m("\\Dagger","\\ddagger");m("\\diamonds","\\diamondsuit");m("\\empty","\\emptyset");m("\\Epsilon","\\mathrm{E}");m("\\Eta","\\mathrm{H}");m("\\exist","\\exists");m("\\harr","\\leftrightarrow");m("\\hArr","\\Leftrightarrow");m("\\Harr","\\Leftrightarrow");m("\\hearts","\\heartsuit");m("\\image","\\Im");m("\\infin","\\infty");m("\\Iota","\\mathrm{I}");m("\\isin","\\in");m("\\Kappa","\\mathrm{K}");m("\\larr","\\leftarrow");m("\\lArr","\\Leftarrow");m("\\Larr","\\Leftarrow");m("\\lrarr","\\leftrightarrow");m("\\lrArr","\\Leftrightarrow");m("\\Lrarr","\\Leftrightarrow");m("\\Mu","\\mathrm{M}");m("\\natnums","\\mathbb{N}");m("\\Nu","\\mathrm{N}");m("\\Omicron","\\mathrm{O}");m("\\plusmn","\\pm");m("\\rarr","\\rightarrow");m("\\rArr","\\Rightarrow");m("\\Rarr","\\Rightarrow");m("\\real","\\Re");m("\\reals","\\mathbb{R}");m("\\Reals","\\mathbb{R}");m("\\Rho","\\mathrm{P}");m("\\sdot","\\cdot");m("\\sect","\\S");m("\\spades","\\spadesuit");m("\\sub","\\subset");m("\\sube","\\subseteq");m("\\supe","\\supseteq");m("\\Tau","\\mathrm{T}");m("\\thetasym","\\vartheta");m("\\weierp","\\wp");m("\\Zeta","\\mathrm{Z}");m("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");m("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");m("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");m("\\bra","\\mathinner{\\langle{#1}|}");m("\\ket","\\mathinner{|{#1}\\rangle}");m("\\braket","\\mathinner{\\langle{#1}\\rangle}");m("\\Bra","\\left\\langle#1\\right|");m("\\Ket","\\left|#1\\right\\rangle");var oa=r=>e=>{var t=e.consumeArg().tokens,a=e.consumeArg().tokens,n=e.consumeArg().tokens,s=e.consumeArg().tokens,o=e.macros.get("|"),h=e.macros.get("\\|");e.macros.beginGroup();var c=y=>w=>{r&&(w.macros.set("|",o),n.length&&w.macros.set("\\|",h));var x=y;if(!y&&n.length){var z=w.future();z.text==="|"&&(w.popToken(),x=!0)}return{tokens:x?n:a,numArgs:0}};e.macros.set("|",c(!1)),n.length&&e.macros.set("\\|",c(!0));var p=e.consumeArg().tokens,g=e.expandTokens([...s,...p,...t]);return e.macros.endGroup(),{tokens:g.reverse(),numArgs:0}};m("\\bra@ket",oa(!1));m("\\bra@set",oa(!0));m("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");m("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");m("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");m("\\angln","{\\angl n}");m("\\blue","\\textcolor{##6495ed}{#1}");m("\\orange","\\textcolor{##ffa500}{#1}");m("\\pink","\\textcolor{##ff00af}{#1}");m("\\red","\\textcolor{##df0030}{#1}");m("\\green","\\textcolor{##28ae7b}{#1}");m("\\gray","\\textcolor{gray}{#1}");m("\\purple","\\textcolor{##9d38bd}{#1}");m("\\blueA","\\textcolor{##ccfaff}{#1}");m("\\blueB","\\textcolor{##80f6ff}{#1}");m("\\blueC","\\textcolor{##63d9ea}{#1}");m("\\blueD","\\textcolor{##11accd}{#1}");m("\\blueE","\\textcolor{##0c7f99}{#1}");m("\\tealA","\\textcolor{##94fff5}{#1}");m("\\tealB","\\textcolor{##26edd5}{#1}");m("\\tealC","\\textcolor{##01d1c1}{#1}");m("\\tealD","\\textcolor{##01a995}{#1}");m("\\tealE","\\textcolor{##208170}{#1}");m("\\greenA","\\textcolor{##b6ffb0}{#1}");m("\\greenB","\\textcolor{##8af281}{#1}");m("\\greenC","\\textcolor{##74cf70}{#1}");m("\\greenD","\\textcolor{##1fab54}{#1}");m("\\greenE","\\textcolor{##0d923f}{#1}");m("\\goldA","\\textcolor{##ffd0a9}{#1}");m("\\goldB","\\textcolor{##ffbb71}{#1}");m("\\goldC","\\textcolor{##ff9c39}{#1}");m("\\goldD","\\textcolor{##e07d10}{#1}");m("\\goldE","\\textcolor{##a75a05}{#1}");m("\\redA","\\textcolor{##fca9a9}{#1}");m("\\redB","\\textcolor{##ff8482}{#1}");m("\\redC","\\textcolor{##f9685d}{#1}");m("\\redD","\\textcolor{##e84d39}{#1}");m("\\redE","\\textcolor{##bc2612}{#1}");m("\\maroonA","\\textcolor{##ffbde0}{#1}");m("\\maroonB","\\textcolor{##ff92c6}{#1}");m("\\maroonC","\\textcolor{##ed5fa6}{#1}");m("\\maroonD","\\textcolor{##ca337c}{#1}");m("\\maroonE","\\textcolor{##9e034e}{#1}");m("\\purpleA","\\textcolor{##ddd7ff}{#1}");m("\\purpleB","\\textcolor{##c6b9fc}{#1}");m("\\purpleC","\\textcolor{##aa87ff}{#1}");m("\\purpleD","\\textcolor{##7854ab}{#1}");m("\\purpleE","\\textcolor{##543b78}{#1}");m("\\mintA","\\textcolor{##f5f9e8}{#1}");m("\\mintB","\\textcolor{##edf2df}{#1}");m("\\mintC","\\textcolor{##e0e5cc}{#1}");m("\\grayA","\\textcolor{##f6f7f7}{#1}");m("\\grayB","\\textcolor{##f0f1f2}{#1}");m("\\grayC","\\textcolor{##e3e5e6}{#1}");m("\\grayD","\\textcolor{##d6d8da}{#1}");m("\\grayE","\\textcolor{##babec2}{#1}");m("\\grayF","\\textcolor{##888d93}{#1}");m("\\grayG","\\textcolor{##626569}{#1}");m("\\grayH","\\textcolor{##3b3e40}{#1}");m("\\grayI","\\textcolor{##21242c}{#1}");m("\\kaBlue","\\textcolor{##314453}{#1}");m("\\kaGreen","\\textcolor{##71B307}{#1}");var ua={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},bt=class{constructor(e,t,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=t,this.expansionCount=0,this.feed(e),this.macros=new gt(i4,t.macros),this.mode=a,this.stack=[]}feed(e){this.lexer=new Fe(e,this.settings)}switchMode(e){this.mode=e}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(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,a,n;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;t=this.popToken(),{tokens:n,end:a}=this.consumeArg(["]"])}else({tokens:n,start:t,end:a}=this.consumeArg());return this.pushToken(new p0("EOF",a.loc)),this.pushTokens(n),t.range(a,"")}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var t=[],a=e&&e.length>0;a||this.consumeSpaces();var n=this.future(),s,o=0,h=0;do{if(s=this.popToken(),t.push(s),s.text==="{")++o;else if(s.text==="}"){if(--o,o===-1)throw new M("Extra }",s)}else if(s.text==="EOF")throw new M("Unexpected end of input in a macro argument, expected '"+(e&&a?e[h]:"}")+"'",s);if(e&&a)if((o===0||o===1&&e[h]==="{")&&s.text===e[h]){if(++h,h===e.length){t.splice(-h,h);break}}else h=0}while(o!==0||a);return n.text==="{"&&t[t.length-1].text==="}"&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:n,end:s}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new M("The length of delimiters doesn't match the number of args!");for(var a=t[0],n=0;nthis.settings.maxExpand)throw new M("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),a=t.text,n=t.noexpand?null:this._getExpansion(a);if(n==null||e&&n.unexpandable){if(e&&n==null&&a[0]==="\\"&&!this.isDefined(a))throw new M("Undefined control sequence: "+a);return this.pushToken(t),!1}this.countExpansion(1);var s=n.tokens,o=this.consumeArgs(n.numArgs,n.delimiters);if(n.numArgs){s=s.slice();for(var h=s.length-1;h>=0;--h){var c=s[h];if(c.text==="#"){if(h===0)throw new M("Incomplete placeholder at end of macro body",c);if(c=s[--h],c.text==="#")s.splice(h+1,1);else if(/^[1-9]$/.test(c.text))s.splice(h,2,...o[+c.text-1]);else throw new M("Not a valid argument number",c)}}}return this.pushTokens(s),s.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new p0(e)]):void 0}expandTokens(e){var t=[],a=this.stack.length;for(this.pushTokens(e);this.stack.length>a;)if(this.expandOnce(!0)===!1){var n=this.stack.pop();n.treatAsRelax&&(n.noexpand=!1,n.treatAsRelax=!1),t.push(n)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(a=>a.text).join("")}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var a=this.lexer.catcodes[e];if(a!=null&&a!==13)return}var n=typeof t=="function"?t(this):t;if(typeof n=="string"){var s=0;if(n.indexOf("#")!==-1)for(var o=n.replace(/##/g,"");o.indexOf("#"+(s+1))!==-1;)++s;for(var h=new Fe(n,this.settings),c=[],p=h.lex();p.text!=="EOF";)c.push(p),p=h.lex();c.reverse();var g={tokens:c,numArgs:s};return g}return n}isDefined(e){return this.macros.has(e)||L0.hasOwnProperty(e)||$.math.hasOwnProperty(e)||$.text.hasOwnProperty(e)||ua.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t!=null?typeof t=="string"||typeof t=="function"||!t.unexpandable:L0.hasOwnProperty(e)&&!L0[e].primitive}},pr=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕáĩĸâąŧₖₗₘₙₒₚáĩŖₛₜáĩ¤áĩĨₓáĩĻáĩ§áĩ¨áĩŠáĩĒ]/,Ce=Object.freeze({"\u208A":"+","\u208B":"-","\u208C":"=","\u208D":"(","\u208E":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9","\u2090":"a","\u2091":"e","\u2095":"h","\u1D62":"i","\u2C7C":"j","\u2096":"k","\u2097":"l","\u2098":"m","\u2099":"n","\u2092":"o","\u209A":"p","\u1D63":"r","\u209B":"s","\u209C":"t","\u1D64":"u","\u1D65":"v","\u2093":"x","\u1D66":"\u03B2","\u1D67":"\u03B3","\u1D68":"\u03C1","\u1D69":"\u03D5","\u1D6A":"\u03C7","\u207A":"+","\u207B":"-","\u207C":"=","\u207D":"(","\u207E":")","\u2070":"0","\xB9":"1","\xB2":"2","\xB3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9","\u1D2C":"A","\u1D2E":"B","\u1D30":"D","\u1D31":"E","\u1D33":"G","\u1D34":"H","\u1D35":"I","\u1D36":"J","\u1D37":"K","\u1D38":"L","\u1D39":"M","\u1D3A":"N","\u1D3C":"O","\u1D3E":"P","\u1D3F":"R","\u1D40":"T","\u1D41":"U","\u2C7D":"V","\u1D42":"W","\u1D43":"a","\u1D47":"b","\u1D9C":"c","\u1D48":"d","\u1D49":"e","\u1DA0":"f","\u1D4D":"g",\u02B0:"h","\u2071":"i",\u02B2:"j","\u1D4F":"k",\u02E1:"l","\u1D50":"m",\u207F:"n","\u1D52":"o","\u1D56":"p",\u02B3:"r",\u02E2:"s","\u1D57":"t","\u1D58":"u","\u1D5B":"v",\u02B7:"w",\u02E3:"x",\u02B8:"y","\u1DBB":"z","\u1D5D":"\u03B2","\u1D5E":"\u03B3","\u1D5F":"\u03B4","\u1D60":"\u03D5","\u1D61":"\u03C7","\u1DBF":"\u03B8"}),st={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"},"\u0327":{text:"\\c"}},vr={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u1E09:"c\u0327\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u00E7:"c\u0327",\u010F:"d\u030C",\u1E0B:"d\u0307",\u1E11:"d\u0327",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u1E1D:"e\u0327\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u0229:"e\u0327",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u0123:"g\u0327",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u1E29:"h\u0327",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u0137:"k\u0327",\u013A:"l\u0301",\u013E:"l\u030C",\u013C:"l\u0327",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u0146:"n\u0327",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u0157:"r\u0327",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u015F:"s\u0327",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u0163:"t\u0327",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u1E08:"C\u0327\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u00C7:"C\u0327",\u010E:"D\u030C",\u1E0A:"D\u0307",\u1E10:"D\u0327",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u1E1C:"E\u0327\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u0228:"E\u0327",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u0122:"G\u0327",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u1E28:"H\u0327",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0136:"K\u0327",\u0139:"L\u0301",\u013D:"L\u030C",\u013B:"L\u0327",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u0145:"N\u0327",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u0156:"R\u0327",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u015E:"S\u0327",\u0164:"T\u030C",\u1E6A:"T\u0307",\u0162:"T\u0327",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},s4=(()=>{class r{constructor(t,a){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 bt(t,a,this.mode),this.settings=a,this.leftrightDepth=0}expect(t,a){if(a===void 0&&(a=!0),this.fetch().text!==t)throw new M("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());a&&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 a=this.nextToken;this.consume(),this.gullet.pushToken(new p0("}")),this.gullet.pushTokens(t);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=a,n}parseExpression(t,a){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var s=this.fetch();if(r.endOfExpression.indexOf(s.text)!==-1||a&&s.text===a||t&&L0[s.text]&&L0[s.text].infix)break;var o=this.parseAtom(a);if(o){if(o.type==="internal")continue}else break;n.push(o)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(t){for(var a=-1,n,s=0;s=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+a[0]+'" used in math mode',t);var c=$[this.mode][a].group,p=m0.range(t),g;if(Ka.hasOwnProperty(c)){var y=c;g={type:"atom",mode:this.mode,family:y,loc:p,text:a}}else g={type:c,mode:this.mode,loc:p,text:a};h=g}else if(a.charCodeAt(0)>=128)this.settings.strict&&(br(a.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+a[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+a[0]+'"'+(" ("+a.charCodeAt(0)+")"),t)),h={type:"textord",mode:"text",loc:m0.range(t),text:a};else return null;if(this.consume(),o)for(var w=0;w"u"&&(o.yylloc={});var I=o.yylloc;n.push(I);var M=o.options&&o.options.ranges;typeof p.yy.parseError=="function"?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function B(){var y;return y=s.pop()||o.lex()||T,typeof y!="number"&&(y instanceof Array&&(s=y,y=s.pop()),y=e.symbols_[y]||y),y}for(var l,g,h,w,m={},b,c,F,S;;){if(g=i[i.length-1],this.defaultActions[g]?h=this.defaultActions[g]:((l===null||typeof l>"u")&&(l=B()),h=d[g]&&d[g][l]),typeof h>"u"||!h.length||!h[0]){var A="";S=[];for(b in d[g])this.terminals_[b]&&b>Y&&S.push("'"+this.terminals_[b]+"'");o.showPosition?A="Parse error on line "+(v+1)+`: +`+o.showPosition()+` +Expecting `+S.join(", ")+", got '"+(this.terminals_[l]||l)+"'":A="Parse error on line "+(v+1)+": Unexpected "+(l==T?"end of input":"'"+(this.terminals_[l]||l)+"'"),this.parseError(A,{text:o.match,token:this.terminals_[l]||l,line:o.yylineno,loc:I,expected:S})}if(h[0]instanceof Array&&h.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+l);switch(h[0]){case 1:i.push(l),r.push(o.yytext),n.push(o.yylloc),i.push(h[1]),l=null,L=o.yyleng,$=o.yytext,v=o.yylineno,I=o.yylloc;break;case 2:if(c=this.productions_[h[1]][1],m.$=r[r.length-c],m._$={first_line:n[n.length-(c||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(c||1)].first_column,last_column:n[n.length-1].last_column},M&&(m._$.range=[n[n.length-(c||1)].range[0],n[n.length-1].range[1]]),w=this.performAction.apply(m,[$,L,v,p.yy,h[1],r,n].concat(D)),typeof w<"u")return w;c&&(i=i.slice(0,-1*c*2),r=r.slice(0,-1*c),n=n.slice(0,-1*c)),i.push(this.productions_[h[1]][0]),r.push(m.$),n.push(m._$),F=d[i[i.length-2]][i[i.length-1]],i.push(F);break;case 3:return!0}}return!0}},k=function(){var u={EOF:1,parseError:function(e,i){if(this.yy.parser)this.yy.parser.parseError(e,i);else throw new Error(e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);return e?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var s=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),i.length-1&&(this.yylineno-=i.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===s.length?this.yylloc.first_column:0)+s[s.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){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(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+` +`+e+"^"},test_match:function(t,e){var i,s,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),s=t[0].match(/(?:\r\n?|\n).*/g),s&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var n in r)this[n]=r[n];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,e,i,s;this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),n=0;ne[0].length)){if(e=i,s=n,this.options.backtrack_lexer){if(t=this.test_match(i,r[n]),t!==!1)return t;if(this._backtrack){e=!1;continue}else return!1}else if(!this.options.flex)break}return e?(t=this.test_match(e,r[s]),t!==!1?t:!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 e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>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(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,i,s,r){switch(s){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 u}();_.lexer=k;function x(){this.yy={}}return x.prototype=_,_.Parser=x,new x}();O.parser=O;var q=O,U={info:!1},P=U.info,C=a=>{P=a},G=()=>P,H=()=>{P=U.info},J={clear:H,setInfo:C,getInfo:G},K=(a,f,_)=>{N.debug(`rendering info diagram +`+a);let k=z(f);R(k,100,400,!0),k.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${_}`)},Q={draw:K},st={parser:q,db:J,renderer:Q};export{st as diagram}; diff --git a/chunk-D3UNDUCH.js b/chunk-D3UNDUCH.js new file mode 100644 index 0000000..6fea504 --- /dev/null +++ b/chunk-D3UNDUCH.js @@ -0,0 +1 @@ +import{a as i}from"./chunk-WEP4G4BU.js";import{Ha as r,Ra as p,U as a,ob as d}from"./chunk-FUUZABHH.js";import"./chunk-TWZW5B45.js";var g='

Todo

',t=class n{routes=s[0].children;headerContent=g;pageType="guide";hasBreadcrumb=!0;static \u0275fac=function(e){return new(e||n)};static \u0275cmp=a({type:n,selectors:[["ng-doc-page-wrapper-qkknqpr2"]],standalone:!0,features:[d],decls:1,vars:4,consts:[[3,"routes","headerContent","hasBreadcrumb","pageType"]],template:function(e,o){e&1&&p(0,"ng-doc-page-wrapper",0),e&2&&r("routes",o.routes)("headerContent",o.headerContent)("hasBreadcrumb",o.hasBreadcrumb)("pageType",o.pageType)},dependencies:[i],encapsulation:2,changeDetection:0})},s=[{path:"",component:t,title:"Todo",children:[{path:"",loadChildren:()=>import("./chunk-JLKXU7RL.js"),title:"Todo",data:{icon:""}}]}],l=s;export{t as PageWrapperComponent,l as default}; diff --git a/chunk-FNBE65Q7.js b/chunk-FNBE65Q7.js new file mode 100644 index 0000000..a6f68e0 --- /dev/null +++ b/chunk-FNBE65Q7.js @@ -0,0 +1,10 @@ +import{$a as V,$b as Ss,A as as,B as mt,Ba as ue,C as ar,Cb as q,D as cs,Da as De,Db as nn,Ea as _s,Eb as ei,Fa as Ci,Fb as at,G as cr,Ga as ee,Gb as rn,H as _t,Ha as K,Hb as hr,I as rt,Ia as dr,Ib as G,J as oe,Ja as It,Jb as Os,K as Wi,Ka as vs,L as ls,La as ys,M as Xt,Ma as Xi,Mb as wt,N as Zt,Na as Zi,O as k,Oa as Ki,P as Xe,Pa as B,Q as le,Qa as z,R as m,Ra as Ke,Rb as xs,S as D,Sa as Qi,T as us,Ta as Ji,U as N,V as Ze,W as M,X as ds,Y as hs,Ya as ge,Za as en,_ as vt,_a as Q,a as Wt,ab as Qt,ac as Ms,b as nr,bb as Qe,c as gt,ca as lr,cb as ye,d as H,da as we,db as be,dc as on,ea as fs,ec as As,fa as se,g as rr,ga as E,h as ve,hb as Ct,i as he,ia as y,ib as bs,ic as cu,j as Yt,ja as bi,jb as Jt,jc as Pt,k as Pe,ka as ps,kc as Dt,l as is,la as Yi,lc as Is,m as $t,ma as gs,mc as Ee,n as Z,nb as Fe,nc as ze,o as ns,ob as j,p as rs,pa as U,pb as tn,q as os,qa as _,r as X,ra as Kt,s as or,sa as yt,sb as Cs,sc as sn,t as fe,ta as $i,tb as ws,u as Gi,ua as ms,v as F,va as ot,w as sr,wa as bt,x as ss,xb as Ds,y as He,ya as ur,z as Ue,za as st,zb as Es}from"./chunk-FUUZABHH.js";import{a as A,b as _e,e as zi,f as u,g as au,h as qe,i as $e}from"./chunk-TWZW5B45.js";var Ts=u(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.NgDocAngularEntities=void 0;an.NgDocAngularEntities=["Component","Directive","Pipe","Injectable","NgModule"]});var ks=u(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.NgDocDeclarations=void 0;cn.NgDocDeclarations=["Class","Interface","Enum","Function","TypeAlias","Variable"]});var Rs=u(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.NG_DOC_ELEMENT=void 0;ln.NG_DOC_ELEMENT="ngde"});var Fs=u(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.NG_DOC_DYNAMIC_SELECTOR=void 0;un.NG_DOC_DYNAMIC_SELECTOR="ng-doc-selector"});var Ns=u(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.EMPTY_FUNCTION=Et.EMPTY_MAP=Et.EMPTY_ARRAY=void 0;Et.EMPTY_ARRAY=[];Et.EMPTY_MAP=new Map;var lu=()=>{};Et.EMPTY_FUNCTION=lu});var dn=u(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});var wi=(Pe(),$e(Yt));wi.__exportStar(Ts(),Tt);wi.__exportStar(ks(),Tt);wi.__exportStar(Rs(),Tt);wi.__exportStar(Fs(),Tt);wi.__exportStar(Ns(),Tt)});var S,uu,W,hn=zi(()=>{"use strict";S=function(t){return t.Attribute="attribute",t.Pseudo="pseudo",t.PseudoElement="pseudo-element",t.Tag="tag",t.Universal="universal",t.Adjacent="adjacent",t.Child="child",t.Descendant="descendant",t.Parent="parent",t.Sibling="sibling",t.ColumnCombinator="column-combinator",t}(S||{}),uu={Unknown:null,QuirksMode:"quirks",IgnoreCase:!0,CaseSensitive:!1},W=function(t){return t.Any="any",t.Element="element",t.End="end",t.Equals="equals",t.Exists="exists",t.Hyphen="hyphen",t.Not="not",t.Start="start",t}(W||{})});function pr(t){switch(t.type){case S.Adjacent:case S.Child:case S.Descendant:case S.Parent:case S.Sibling:case S.ColumnCombinator:return!0;default:return!1}}function gu(t,e,i){let n=parseInt(e,16)-65536;return n!==n||i?e:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,n&1023|56320)}function Di(t){return t.replace(du,gu)}function fr(t){return t===39||t===34}function js(t){return t===32||t===9||t===10||t===12||t===13}function Ls(t){let e=[],i=Bs(e,`${t}`,0);if(i0&&i0&&pr(n[n.length-1]))throw new Error("Did not expect successive traversals.")}function l(C){if(n.length>0&&n[n.length-1].type===S.Descendant){n[n.length-1].type=C;return}c(),n.push({type:C})}function d(C,g){n.push({type:S.Attribute,name:C,action:g,value:r(1),namespace:null,ignoreCase:"quirks"})}function v(){if(n.length&&n[n.length-1].type===S.Descendant&&n.pop(),n.length===0)throw new Error("Empty sub-selector");t.push(n)}if(o(0),e.length===i)return i;e:for(;i{"use strict";hn();Vs=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,du=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,hu=new Map([[126,W.Element],[94,W.Start],[36,W.End],[42,W.Any],[33,W.Not],[124,W.Hyphen]]),fu=new Set(["has","not","matches","is","where","host","host-context"]);pu=new Set(["contains","icontains"])});function gr(t){return t.map(e=>e.map(_u).join("")).join(", ")}function _u(t,e,i){switch(t.type){case S.Child:return e===0?"> ":" > ";case S.Parent:return e===0?"< ":" < ";case S.Sibling:return e===0?"~ ":" ~ ";case S.Adjacent:return e===0?"+ ":" + ";case S.Descendant:return" ";case S.ColumnCombinator:return e===0?"|| ":" || ";case S.Universal:return t.namespace==="*"&&e+10?n+t.slice(i):t}var zs,Gs,mu,Hs,ti,Ys=zi(()=>{"use strict";hn();zs=["\\",'"'],Gs=[...zs,"(",")"],mu=new Set(zs.map(t=>t.charCodeAt(0))),Hs=new Set(Gs.map(t=>t.charCodeAt(0))),ti=new Set([...Gs,"~","^","$","*","+","!","|",":","[","]"," ","."].map(t=>t.charCodeAt(0)))});var Ei={};au(Ei,{AttributeAction:()=>W,IgnoreCaseMode:()=>uu,SelectorType:()=>S,isTraversal:()=>pr,parse:()=>Ls,stringify:()=>gr});var Oi=zi(()=>{"use strict";hn();qs();Ys()});var $s=u(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});var yu=class{constructor(t){this.source=t,this.lastPosition={line:1,column:1},this.lastIndex=0}getPosition(t){if(t{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});var bu=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Cu=String.fromCodePoint||function(t){var e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023),e+=String.fromCharCode(t),e};function wu(t){var e;return t>=55296&&t<=57343||t>1114111?"\uFFFD":Cu((e=bu.get(t))!==null&&e!==void 0?e:t)}_r.default=wu});var Xs=u(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.default=new Uint16Array([14866,60,237,340,721,1312,1562,1654,1838,1957,2183,2239,2301,2958,3037,3893,4123,4298,4330,4801,5191,5395,5752,5903,5943,5972,6050,0,0,0,0,0,0,6135,6565,7422,8183,8738,9242,9503,9938,10189,10573,10637,10715,11950,12246,13539,13950,14445,14533,15364,16514,16980,17390,17763,17849,18036,18125,4096,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,92,100,106,115,122,137,142,151,157,163,167,182,196,204,220,229,108,105,103,33024,198,59,32768,198,80,33024,38,59,32768,38,99,117,116,101,33024,193,59,32768,193,114,101,118,101,59,32768,258,512,105,121,127,134,114,99,33024,194,59,32768,194,59,32768,1040,114,59,32896,55349,56580,114,97,118,101,33024,192,59,32768,192,112,104,97,59,32768,913,97,99,114,59,32768,256,100,59,32768,10835,512,103,112,172,177,111,110,59,32768,260,102,59,32896,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,32768,8289,105,110,103,33024,197,59,32768,197,512,99,115,209,214,114,59,32896,55349,56476,105,103,110,59,32768,8788,105,108,100,101,33024,195,59,32768,195,109,108,33024,196,59,32768,196,2048,97,99,101,102,111,114,115,117,253,278,282,310,315,321,327,332,512,99,114,258,267,107,115,108,97,115,104,59,32768,8726,583,271,274,59,32768,10983,101,100,59,32768,8966,121,59,32768,1041,768,99,114,116,289,296,306,97,117,115,101,59,32768,8757,110,111,117,108,108,105,115,59,32768,8492,97,59,32768,914,114,59,32896,55349,56581,112,102,59,32896,55349,56633,101,118,101,59,32768,728,99,114,59,32768,8492,109,112,101,113,59,32768,8782,3584,72,79,97,99,100,101,102,104,105,108,111,114,115,117,368,373,380,426,461,466,487,491,495,533,593,695,701,707,99,121,59,32768,1063,80,89,33024,169,59,32768,169,768,99,112,121,387,393,419,117,116,101,59,32768,262,512,59,105,398,400,32768,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,32768,8517,108,101,121,115,59,32768,8493,1024,97,101,105,111,435,441,449,454,114,111,110,59,32768,268,100,105,108,33024,199,59,32768,199,114,99,59,32768,264,110,105,110,116,59,32768,8752,111,116,59,32768,266,512,100,110,471,478,105,108,108,97,59,32768,184,116,101,114,68,111,116,59,32768,183,114,59,32768,8493,105,59,32768,935,114,99,108,101,1024,68,77,80,84,508,513,520,526,111,116,59,32768,8857,105,110,117,115,59,32768,8854,108,117,115,59,32768,8853,105,109,101,115,59,32768,8855,111,512,99,115,539,562,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,32768,8754,101,67,117,114,108,121,512,68,81,573,586,111,117,98,108,101,81,117,111,116,101,59,32768,8221,117,111,116,101,59,32768,8217,1024,108,110,112,117,602,614,648,664,111,110,512,59,101,609,611,32768,8759,59,32768,10868,768,103,105,116,621,629,634,114,117,101,110,116,59,32768,8801,110,116,59,32768,8751,111,117,114,73,110,116,101,103,114,97,108,59,32768,8750,512,102,114,653,656,59,32768,8450,111,100,117,99,116,59,32768,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,32768,8755,111,115,115,59,32768,10799,99,114,59,32896,55349,56478,112,512,59,67,713,715,32768,8915,97,112,59,32768,8781,2816,68,74,83,90,97,99,101,102,105,111,115,743,758,763,768,773,795,809,821,826,910,1295,512,59,111,748,750,32768,8517,116,114,97,104,100,59,32768,10513,99,121,59,32768,1026,99,121,59,32768,1029,99,121,59,32768,1039,768,103,114,115,780,786,790,103,101,114,59,32768,8225,114,59,32768,8609,104,118,59,32768,10980,512,97,121,800,806,114,111,110,59,32768,270,59,32768,1044,108,512,59,116,815,817,32768,8711,97,59,32768,916,114,59,32896,55349,56583,512,97,102,831,897,512,99,109,836,891,114,105,116,105,99,97,108,1024,65,68,71,84,852,859,877,884,99,117,116,101,59,32768,180,111,581,864,867,59,32768,729,98,108,101,65,99,117,116,101,59,32768,733,114,97,118,101,59,32768,96,105,108,100,101,59,32768,732,111,110,100,59,32768,8900,102,101,114,101,110,116,105,97,108,68,59,32768,8518,2113,920,0,0,0,925,946,0,1139,102,59,32896,55349,56635,768,59,68,69,931,933,938,32768,168,111,116,59,32768,8412,113,117,97,108,59,32768,8784,98,108,101,1536,67,68,76,82,85,86,961,978,996,1080,1101,1125,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,32768,8751,111,1093,985,0,0,988,59,32768,168,110,65,114,114,111,119,59,32768,8659,512,101,111,1001,1034,102,116,768,65,82,84,1010,1017,1029,114,114,111,119,59,32768,8656,105,103,104,116,65,114,114,111,119,59,32768,8660,101,101,59,32768,10980,110,103,512,76,82,1041,1068,101,102,116,512,65,82,1049,1056,114,114,111,119,59,32768,10232,105,103,104,116,65,114,114,111,119,59,32768,10234,105,103,104,116,65,114,114,111,119,59,32768,10233,105,103,104,116,512,65,84,1089,1096,114,114,111,119,59,32768,8658,101,101,59,32768,8872,112,1042,1108,0,0,1115,114,114,111,119,59,32768,8657,111,119,110,65,114,114,111,119,59,32768,8661,101,114,116,105,99,97,108,66,97,114,59,32768,8741,110,1536,65,66,76,82,84,97,1152,1179,1186,1236,1272,1288,114,114,111,119,768,59,66,85,1163,1165,1170,32768,8595,97,114,59,32768,10515,112,65,114,114,111,119,59,32768,8693,114,101,118,101,59,32768,785,101,102,116,1315,1196,0,1209,0,1220,105,103,104,116,86,101,99,116,111,114,59,32768,10576,101,101,86,101,99,116,111,114,59,32768,10590,101,99,116,111,114,512,59,66,1229,1231,32768,8637,97,114,59,32768,10582,105,103,104,116,805,1245,0,1256,101,101,86,101,99,116,111,114,59,32768,10591,101,99,116,111,114,512,59,66,1265,1267,32768,8641,97,114,59,32768,10583,101,101,512,59,65,1279,1281,32768,8868,114,114,111,119,59,32768,8615,114,114,111,119,59,32768,8659,512,99,116,1300,1305,114,59,32896,55349,56479,114,111,107,59,32768,272,4096,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1344,1348,1354,1363,1386,1391,1396,1405,1413,1460,1475,1483,1514,1527,1531,1538,71,59,32768,330,72,33024,208,59,32768,208,99,117,116,101,33024,201,59,32768,201,768,97,105,121,1370,1376,1383,114,111,110,59,32768,282,114,99,33024,202,59,32768,202,59,32768,1069,111,116,59,32768,278,114,59,32896,55349,56584,114,97,118,101,33024,200,59,32768,200,101,109,101,110,116,59,32768,8712,512,97,112,1418,1423,99,114,59,32768,274,116,121,1060,1431,0,0,1444,109,97,108,108,83,113,117,97,114,101,59,32768,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,32768,9643,512,103,112,1465,1470,111,110,59,32768,280,102,59,32896,55349,56636,115,105,108,111,110,59,32768,917,117,512,97,105,1489,1504,108,512,59,84,1495,1497,32768,10869,105,108,100,101,59,32768,8770,108,105,98,114,105,117,109,59,32768,8652,512,99,105,1519,1523,114,59,32768,8496,109,59,32768,10867,97,59,32768,919,109,108,33024,203,59,32768,203,512,105,112,1543,1549,115,116,115,59,32768,8707,111,110,101,110,116,105,97,108,69,59,32768,8519,1280,99,102,105,111,115,1572,1576,1581,1620,1648,121,59,32768,1060,114,59,32896,55349,56585,108,108,101,100,1060,1591,0,0,1604,109,97,108,108,83,113,117,97,114,101,59,32768,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,32768,9642,1601,1628,0,1633,0,0,1639,102,59,32896,55349,56637,65,108,108,59,32768,8704,114,105,101,114,116,114,102,59,32768,8497,99,114,59,32768,8497,3072,74,84,97,98,99,100,102,103,111,114,115,116,1678,1683,1688,1701,1708,1729,1734,1739,1742,1748,1828,1834,99,121,59,32768,1027,33024,62,59,32768,62,109,109,97,512,59,100,1696,1698,32768,915,59,32768,988,114,101,118,101,59,32768,286,768,101,105,121,1715,1721,1726,100,105,108,59,32768,290,114,99,59,32768,284,59,32768,1043,111,116,59,32768,288,114,59,32896,55349,56586,59,32768,8921,112,102,59,32896,55349,56638,101,97,116,101,114,1536,69,70,71,76,83,84,1766,1783,1794,1803,1809,1821,113,117,97,108,512,59,76,1775,1777,32768,8805,101,115,115,59,32768,8923,117,108,108,69,113,117,97,108,59,32768,8807,114,101,97,116,101,114,59,32768,10914,101,115,115,59,32768,8823,108,97,110,116,69,113,117,97,108,59,32768,10878,105,108,100,101,59,32768,8819,99,114,59,32896,55349,56482,59,32768,8811,2048,65,97,99,102,105,111,115,117,1854,1861,1874,1880,1884,1897,1919,1934,82,68,99,121,59,32768,1066,512,99,116,1866,1871,101,107,59,32768,711,59,32768,94,105,114,99,59,32768,292,114,59,32768,8460,108,98,101,114,116,83,112,97,99,101,59,32768,8459,833,1902,0,1906,102,59,32768,8461,105,122,111,110,116,97,108,76,105,110,101,59,32768,9472,512,99,116,1924,1928,114,59,32768,8459,114,111,107,59,32768,294,109,112,533,1940,1950,111,119,110,72,117,109,112,59,32768,8782,113,117,97,108,59,32768,8783,3584,69,74,79,97,99,100,102,103,109,110,111,115,116,117,1985,1990,1996,2001,2010,2025,2030,2034,2043,2077,2134,2155,2160,2167,99,121,59,32768,1045,108,105,103,59,32768,306,99,121,59,32768,1025,99,117,116,101,33024,205,59,32768,205,512,105,121,2015,2022,114,99,33024,206,59,32768,206,59,32768,1048,111,116,59,32768,304,114,59,32768,8465,114,97,118,101,33024,204,59,32768,204,768,59,97,112,2050,2052,2070,32768,8465,512,99,103,2057,2061,114,59,32768,298,105,110,97,114,121,73,59,32768,8520,108,105,101,115,59,32768,8658,837,2082,0,2110,512,59,101,2086,2088,32768,8748,512,103,114,2093,2099,114,97,108,59,32768,8747,115,101,99,116,105,111,110,59,32768,8898,105,115,105,98,108,101,512,67,84,2120,2127,111,109,109,97,59,32768,8291,105,109,101,115,59,32768,8290,768,103,112,116,2141,2146,2151,111,110,59,32768,302,102,59,32896,55349,56640,97,59,32768,921,99,114,59,32768,8464,105,108,100,101,59,32768,296,828,2172,0,2177,99,121,59,32768,1030,108,33024,207,59,32768,207,1280,99,102,111,115,117,2193,2206,2211,2217,2232,512,105,121,2198,2203,114,99,59,32768,308,59,32768,1049,114,59,32896,55349,56589,112,102,59,32896,55349,56641,820,2222,0,2227,114,59,32896,55349,56485,114,99,121,59,32768,1032,107,99,121,59,32768,1028,1792,72,74,97,99,102,111,115,2253,2258,2263,2269,2283,2288,2294,99,121,59,32768,1061,99,121,59,32768,1036,112,112,97,59,32768,922,512,101,121,2274,2280,100,105,108,59,32768,310,59,32768,1050,114,59,32896,55349,56590,112,102,59,32896,55349,56642,99,114,59,32896,55349,56486,2816,74,84,97,99,101,102,108,109,111,115,116,2323,2328,2333,2374,2396,2775,2780,2797,2804,2934,2954,99,121,59,32768,1033,33024,60,59,32768,60,1280,99,109,110,112,114,2344,2350,2356,2360,2370,117,116,101,59,32768,313,98,100,97,59,32768,923,103,59,32768,10218,108,97,99,101,116,114,102,59,32768,8466,114,59,32768,8606,768,97,101,121,2381,2387,2393,114,111,110,59,32768,317,100,105,108,59,32768,315,59,32768,1051,512,102,115,2401,2702,116,2560,65,67,68,70,82,84,85,86,97,114,2423,2470,2479,2530,2537,2561,2618,2666,2683,2690,512,110,114,2428,2441,103,108,101,66,114,97,99,107,101,116,59,32768,10216,114,111,119,768,59,66,82,2451,2453,2458,32768,8592,97,114,59,32768,8676,105,103,104,116,65,114,114,111,119,59,32768,8646,101,105,108,105,110,103,59,32768,8968,111,838,2485,0,2498,98,108,101,66,114,97,99,107,101,116,59,32768,10214,110,805,2503,0,2514,101,101,86,101,99,116,111,114,59,32768,10593,101,99,116,111,114,512,59,66,2523,2525,32768,8643,97,114,59,32768,10585,108,111,111,114,59,32768,8970,105,103,104,116,512,65,86,2546,2553,114,114,111,119,59,32768,8596,101,99,116,111,114,59,32768,10574,512,101,114,2566,2591,101,768,59,65,86,2574,2576,2583,32768,8867,114,114,111,119,59,32768,8612,101,99,116,111,114,59,32768,10586,105,97,110,103,108,101,768,59,66,69,2604,2606,2611,32768,8882,97,114,59,32768,10703,113,117,97,108,59,32768,8884,112,768,68,84,86,2626,2638,2649,111,119,110,86,101,99,116,111,114,59,32768,10577,101,101,86,101,99,116,111,114,59,32768,10592,101,99,116,111,114,512,59,66,2659,2661,32768,8639,97,114,59,32768,10584,101,99,116,111,114,512,59,66,2676,2678,32768,8636,97,114,59,32768,10578,114,114,111,119,59,32768,8656,105,103,104,116,97,114,114,111,119,59,32768,8660,115,1536,69,70,71,76,83,84,2716,2730,2741,2750,2756,2768,113,117,97,108,71,114,101,97,116,101,114,59,32768,8922,117,108,108,69,113,117,97,108,59,32768,8806,114,101,97,116,101,114,59,32768,8822,101,115,115,59,32768,10913,108,97,110,116,69,113,117,97,108,59,32768,10877,105,108,100,101,59,32768,8818,114,59,32896,55349,56591,512,59,101,2785,2787,32768,8920,102,116,97,114,114,111,119,59,32768,8666,105,100,111,116,59,32768,319,768,110,112,119,2811,2899,2904,103,1024,76,82,108,114,2821,2848,2860,2887,101,102,116,512,65,82,2829,2836,114,114,111,119,59,32768,10229,105,103,104,116,65,114,114,111,119,59,32768,10231,105,103,104,116,65,114,114,111,119,59,32768,10230,101,102,116,512,97,114,2868,2875,114,114,111,119,59,32768,10232,105,103,104,116,97,114,114,111,119,59,32768,10234,105,103,104,116,97,114,114,111,119,59,32768,10233,102,59,32896,55349,56643,101,114,512,76,82,2911,2922,101,102,116,65,114,114,111,119,59,32768,8601,105,103,104,116,65,114,114,111,119,59,32768,8600,768,99,104,116,2941,2945,2948,114,59,32768,8466,59,32768,8624,114,111,107,59,32768,321,59,32768,8810,2048,97,99,101,102,105,111,115,117,2974,2978,2982,3007,3012,3022,3028,3033,112,59,32768,10501,121,59,32768,1052,512,100,108,2987,2998,105,117,109,83,112,97,99,101,59,32768,8287,108,105,110,116,114,102,59,32768,8499,114,59,32896,55349,56592,110,117,115,80,108,117,115,59,32768,8723,112,102,59,32896,55349,56644,99,114,59,32768,8499,59,32768,924,2304,74,97,99,101,102,111,115,116,117,3055,3060,3067,3089,3201,3206,3874,3880,3889,99,121,59,32768,1034,99,117,116,101,59,32768,323,768,97,101,121,3074,3080,3086,114,111,110,59,32768,327,100,105,108,59,32768,325,59,32768,1053,768,103,115,119,3096,3160,3194,97,116,105,118,101,768,77,84,86,3108,3121,3145,101,100,105,117,109,83,112,97,99,101,59,32768,8203,104,105,512,99,110,3128,3137,107,83,112,97,99,101,59,32768,8203,83,112,97,99,101,59,32768,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,32768,8203,116,101,100,512,71,76,3168,3184,114,101,97,116,101,114,71,114,101,97,116,101,114,59,32768,8811,101,115,115,76,101,115,115,59,32768,8810,76,105,110,101,59,32768,10,114,59,32896,55349,56593,1024,66,110,112,116,3215,3222,3238,3242,114,101,97,107,59,32768,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,32768,160,102,59,32768,8469,3328,59,67,68,69,71,72,76,78,80,82,83,84,86,3269,3271,3293,3312,3352,3430,3455,3551,3589,3625,3678,3821,3861,32768,10988,512,111,117,3276,3286,110,103,114,117,101,110,116,59,32768,8802,112,67,97,112,59,32768,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,32768,8742,768,108,113,120,3319,3327,3345,101,109,101,110,116,59,32768,8713,117,97,108,512,59,84,3335,3337,32768,8800,105,108,100,101,59,32896,8770,824,105,115,116,115,59,32768,8708,114,101,97,116,101,114,1792,59,69,70,71,76,83,84,3373,3375,3382,3394,3404,3410,3423,32768,8815,113,117,97,108,59,32768,8817,117,108,108,69,113,117,97,108,59,32896,8807,824,114,101,97,116,101,114,59,32896,8811,824,101,115,115,59,32768,8825,108,97,110,116,69,113,117,97,108,59,32896,10878,824,105,108,100,101,59,32768,8821,117,109,112,533,3437,3448,111,119,110,72,117,109,112,59,32896,8782,824,113,117,97,108,59,32896,8783,824,101,512,102,115,3461,3492,116,84,114,105,97,110,103,108,101,768,59,66,69,3477,3479,3485,32768,8938,97,114,59,32896,10703,824,113,117,97,108,59,32768,8940,115,1536,59,69,71,76,83,84,3506,3508,3515,3524,3531,3544,32768,8814,113,117,97,108,59,32768,8816,114,101,97,116,101,114,59,32768,8824,101,115,115,59,32896,8810,824,108,97,110,116,69,113,117,97,108,59,32896,10877,824,105,108,100,101,59,32768,8820,101,115,116,101,100,512,71,76,3561,3578,114,101,97,116,101,114,71,114,101,97,116,101,114,59,32896,10914,824,101,115,115,76,101,115,115,59,32896,10913,824,114,101,99,101,100,101,115,768,59,69,83,3603,3605,3613,32768,8832,113,117,97,108,59,32896,10927,824,108,97,110,116,69,113,117,97,108,59,32768,8928,512,101,105,3630,3645,118,101,114,115,101,69,108,101,109,101,110,116,59,32768,8716,103,104,116,84,114,105,97,110,103,108,101,768,59,66,69,3663,3665,3671,32768,8939,97,114,59,32896,10704,824,113,117,97,108,59,32768,8941,512,113,117,3683,3732,117,97,114,101,83,117,512,98,112,3694,3712,115,101,116,512,59,69,3702,3705,32896,8847,824,113,117,97,108,59,32768,8930,101,114,115,101,116,512,59,69,3722,3725,32896,8848,824,113,117,97,108,59,32768,8931,768,98,99,112,3739,3757,3801,115,101,116,512,59,69,3747,3750,32896,8834,8402,113,117,97,108,59,32768,8840,99,101,101,100,115,1024,59,69,83,84,3771,3773,3781,3793,32768,8833,113,117,97,108,59,32896,10928,824,108,97,110,116,69,113,117,97,108,59,32768,8929,105,108,100,101,59,32896,8831,824,101,114,115,101,116,512,59,69,3811,3814,32896,8835,8402,113,117,97,108,59,32768,8841,105,108,100,101,1024,59,69,70,84,3834,3836,3843,3854,32768,8769,113,117,97,108,59,32768,8772,117,108,108,69,113,117,97,108,59,32768,8775,105,108,100,101,59,32768,8777,101,114,116,105,99,97,108,66,97,114,59,32768,8740,99,114,59,32896,55349,56489,105,108,100,101,33024,209,59,32768,209,59,32768,925,3584,69,97,99,100,102,103,109,111,112,114,115,116,117,118,3921,3927,3936,3951,3958,3963,3972,3996,4002,4034,4037,4055,4071,4078,108,105,103,59,32768,338,99,117,116,101,33024,211,59,32768,211,512,105,121,3941,3948,114,99,33024,212,59,32768,212,59,32768,1054,98,108,97,99,59,32768,336,114,59,32896,55349,56594,114,97,118,101,33024,210,59,32768,210,768,97,101,105,3979,3984,3989,99,114,59,32768,332,103,97,59,32768,937,99,114,111,110,59,32768,927,112,102,59,32896,55349,56646,101,110,67,117,114,108,121,512,68,81,4014,4027,111,117,98,108,101,81,117,111,116,101,59,32768,8220,117,111,116,101,59,32768,8216,59,32768,10836,512,99,108,4042,4047,114,59,32896,55349,56490,97,115,104,33024,216,59,32768,216,105,573,4060,4067,100,101,33024,213,59,32768,213,101,115,59,32768,10807,109,108,33024,214,59,32768,214,101,114,512,66,80,4085,4109,512,97,114,4090,4094,114,59,32768,8254,97,99,512,101,107,4101,4104,59,32768,9182,101,116,59,32768,9140,97,114,101,110,116,104,101,115,105,115,59,32768,9180,2304,97,99,102,104,105,108,111,114,115,4141,4150,4154,4159,4163,4166,4176,4198,4284,114,116,105,97,108,68,59,32768,8706,121,59,32768,1055,114,59,32896,55349,56595,105,59,32768,934,59,32768,928,117,115,77,105,110,117,115,59,32768,177,512,105,112,4181,4194,110,99,97,114,101,112,108,97,110,101,59,32768,8460,102,59,32768,8473,1024,59,101,105,111,4207,4209,4251,4256,32768,10939,99,101,100,101,115,1024,59,69,83,84,4223,4225,4232,4244,32768,8826,113,117,97,108,59,32768,10927,108,97,110,116,69,113,117,97,108,59,32768,8828,105,108,100,101,59,32768,8830,109,101,59,32768,8243,512,100,112,4261,4267,117,99,116,59,32768,8719,111,114,116,105,111,110,512,59,97,4278,4280,32768,8759,108,59,32768,8733,512,99,105,4289,4294,114,59,32896,55349,56491,59,32768,936,1024,85,102,111,115,4306,4313,4318,4323,79,84,33024,34,59,32768,34,114,59,32896,55349,56596,112,102,59,32768,8474,99,114,59,32896,55349,56492,3072,66,69,97,99,101,102,104,105,111,114,115,117,4354,4360,4366,4395,4417,4473,4477,4481,4743,4764,4776,4788,97,114,114,59,32768,10512,71,33024,174,59,32768,174,768,99,110,114,4373,4379,4383,117,116,101,59,32768,340,103,59,32768,10219,114,512,59,116,4389,4391,32768,8608,108,59,32768,10518,768,97,101,121,4402,4408,4414,114,111,110,59,32768,344,100,105,108,59,32768,342,59,32768,1056,512,59,118,4422,4424,32768,8476,101,114,115,101,512,69,85,4433,4458,512,108,113,4438,4446,101,109,101,110,116,59,32768,8715,117,105,108,105,98,114,105,117,109,59,32768,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,32768,10607,114,59,32768,8476,111,59,32768,929,103,104,116,2048,65,67,68,70,84,85,86,97,4501,4547,4556,4607,4614,4671,4719,4736,512,110,114,4506,4519,103,108,101,66,114,97,99,107,101,116,59,32768,10217,114,111,119,768,59,66,76,4529,4531,4536,32768,8594,97,114,59,32768,8677,101,102,116,65,114,114,111,119,59,32768,8644,101,105,108,105,110,103,59,32768,8969,111,838,4562,0,4575,98,108,101,66,114,97,99,107,101,116,59,32768,10215,110,805,4580,0,4591,101,101,86,101,99,116,111,114,59,32768,10589,101,99,116,111,114,512,59,66,4600,4602,32768,8642,97,114,59,32768,10581,108,111,111,114,59,32768,8971,512,101,114,4619,4644,101,768,59,65,86,4627,4629,4636,32768,8866,114,114,111,119,59,32768,8614,101,99,116,111,114,59,32768,10587,105,97,110,103,108,101,768,59,66,69,4657,4659,4664,32768,8883,97,114,59,32768,10704,113,117,97,108,59,32768,8885,112,768,68,84,86,4679,4691,4702,111,119,110,86,101,99,116,111,114,59,32768,10575,101,101,86,101,99,116,111,114,59,32768,10588,101,99,116,111,114,512,59,66,4712,4714,32768,8638,97,114,59,32768,10580,101,99,116,111,114,512,59,66,4729,4731,32768,8640,97,114,59,32768,10579,114,114,111,119,59,32768,8658,512,112,117,4748,4752,102,59,32768,8477,110,100,73,109,112,108,105,101,115,59,32768,10608,105,103,104,116,97,114,114,111,119,59,32768,8667,512,99,104,4781,4785,114,59,32768,8475,59,32768,8625,108,101,68,101,108,97,121,101,100,59,32768,10740,3328,72,79,97,99,102,104,105,109,111,113,115,116,117,4827,4842,4849,4856,4889,4894,4949,4955,4967,4973,5059,5065,5070,512,67,99,4832,4838,72,99,121,59,32768,1065,121,59,32768,1064,70,84,99,121,59,32768,1068,99,117,116,101,59,32768,346,1280,59,97,101,105,121,4867,4869,4875,4881,4886,32768,10940,114,111,110,59,32768,352,100,105,108,59,32768,350,114,99,59,32768,348,59,32768,1057,114,59,32896,55349,56598,111,114,116,1024,68,76,82,85,4906,4917,4928,4940,111,119,110,65,114,114,111,119,59,32768,8595,101,102,116,65,114,114,111,119,59,32768,8592,105,103,104,116,65,114,114,111,119,59,32768,8594,112,65,114,114,111,119,59,32768,8593,103,109,97,59,32768,931,97,108,108,67,105,114,99,108,101,59,32768,8728,112,102,59,32896,55349,56650,1091,4979,0,0,4983,116,59,32768,8730,97,114,101,1024,59,73,83,85,4994,4996,5010,5052,32768,9633,110,116,101,114,115,101,99,116,105,111,110,59,32768,8851,117,512,98,112,5016,5033,115,101,116,512,59,69,5024,5026,32768,8847,113,117,97,108,59,32768,8849,101,114,115,101,116,512,59,69,5043,5045,32768,8848,113,117,97,108,59,32768,8850,110,105,111,110,59,32768,8852,99,114,59,32896,55349,56494,97,114,59,32768,8902,1024,98,99,109,112,5079,5102,5155,5158,512,59,115,5084,5086,32768,8912,101,116,512,59,69,5093,5095,32768,8912,113,117,97,108,59,32768,8838,512,99,104,5107,5148,101,101,100,115,1024,59,69,83,84,5120,5122,5129,5141,32768,8827,113,117,97,108,59,32768,10928,108,97,110,116,69,113,117,97,108,59,32768,8829,105,108,100,101,59,32768,8831,84,104,97,116,59,32768,8715,59,32768,8721,768,59,101,115,5165,5167,5185,32768,8913,114,115,101,116,512,59,69,5176,5178,32768,8835,113,117,97,108,59,32768,8839,101,116,59,32768,8913,2816,72,82,83,97,99,102,104,105,111,114,115,5213,5221,5227,5241,5252,5274,5279,5323,5362,5368,5378,79,82,78,33024,222,59,32768,222,65,68,69,59,32768,8482,512,72,99,5232,5237,99,121,59,32768,1035,121,59,32768,1062,512,98,117,5246,5249,59,32768,9,59,32768,932,768,97,101,121,5259,5265,5271,114,111,110,59,32768,356,100,105,108,59,32768,354,59,32768,1058,114,59,32896,55349,56599,512,101,105,5284,5300,835,5289,0,5297,101,102,111,114,101,59,32768,8756,97,59,32768,920,512,99,110,5305,5315,107,83,112,97,99,101,59,32896,8287,8202,83,112,97,99,101,59,32768,8201,108,100,101,1024,59,69,70,84,5335,5337,5344,5355,32768,8764,113,117,97,108,59,32768,8771,117,108,108,69,113,117,97,108,59,32768,8773,105,108,100,101,59,32768,8776,112,102,59,32896,55349,56651,105,112,108,101,68,111,116,59,32768,8411,512,99,116,5383,5388,114,59,32896,55349,56495,114,111,107,59,32768,358,5426,5417,5444,5458,5473,0,5480,5485,0,0,0,0,0,5494,5500,5564,5579,0,5726,5732,5738,5745,512,99,114,5421,5429,117,116,101,33024,218,59,32768,218,114,512,59,111,5435,5437,32768,8607,99,105,114,59,32768,10569,114,820,5449,0,5453,121,59,32768,1038,118,101,59,32768,364,512,105,121,5462,5469,114,99,33024,219,59,32768,219,59,32768,1059,98,108,97,99,59,32768,368,114,59,32896,55349,56600,114,97,118,101,33024,217,59,32768,217,97,99,114,59,32768,362,512,100,105,5504,5548,101,114,512,66,80,5511,5535,512,97,114,5516,5520,114,59,32768,95,97,99,512,101,107,5527,5530,59,32768,9183,101,116,59,32768,9141,97,114,101,110,116,104,101,115,105,115,59,32768,9181,111,110,512,59,80,5555,5557,32768,8899,108,117,115,59,32768,8846,512,103,112,5568,5573,111,110,59,32768,370,102,59,32896,55349,56652,2048,65,68,69,84,97,100,112,115,5595,5624,5635,5648,5664,5671,5682,5712,114,114,111,119,768,59,66,68,5606,5608,5613,32768,8593,97,114,59,32768,10514,111,119,110,65,114,114,111,119,59,32768,8645,111,119,110,65,114,114,111,119,59,32768,8597,113,117,105,108,105,98,114,105,117,109,59,32768,10606,101,101,512,59,65,5655,5657,32768,8869,114,114,111,119,59,32768,8613,114,114,111,119,59,32768,8657,111,119,110,97,114,114,111,119,59,32768,8661,101,114,512,76,82,5689,5700,101,102,116,65,114,114,111,119,59,32768,8598,105,103,104,116,65,114,114,111,119,59,32768,8599,105,512,59,108,5718,5720,32768,978,111,110,59,32768,933,105,110,103,59,32768,366,99,114,59,32896,55349,56496,105,108,100,101,59,32768,360,109,108,33024,220,59,32768,220,2304,68,98,99,100,101,102,111,115,118,5770,5776,5781,5785,5798,5878,5883,5889,5895,97,115,104,59,32768,8875,97,114,59,32768,10987,121,59,32768,1042,97,115,104,512,59,108,5793,5795,32768,8873,59,32768,10982,512,101,114,5803,5806,59,32768,8897,768,98,116,121,5813,5818,5866,97,114,59,32768,8214,512,59,105,5823,5825,32768,8214,99,97,108,1024,66,76,83,84,5837,5842,5848,5859,97,114,59,32768,8739,105,110,101,59,32768,124,101,112,97,114,97,116,111,114,59,32768,10072,105,108,100,101,59,32768,8768,84,104,105,110,83,112,97,99,101,59,32768,8202,114,59,32896,55349,56601,112,102,59,32896,55349,56653,99,114,59,32896,55349,56497,100,97,115,104,59,32768,8874,1280,99,101,102,111,115,5913,5919,5925,5930,5936,105,114,99,59,32768,372,100,103,101,59,32768,8896,114,59,32896,55349,56602,112,102,59,32896,55349,56654,99,114,59,32896,55349,56498,1024,102,105,111,115,5951,5956,5959,5965,114,59,32896,55349,56603,59,32768,926,112,102,59,32896,55349,56655,99,114,59,32896,55349,56499,2304,65,73,85,97,99,102,111,115,117,5990,5995,6e3,6005,6014,6027,6032,6038,6044,99,121,59,32768,1071,99,121,59,32768,1031,99,121,59,32768,1070,99,117,116,101,33024,221,59,32768,221,512,105,121,6019,6024,114,99,59,32768,374,59,32768,1067,114,59,32896,55349,56604,112,102,59,32896,55349,56656,99,114,59,32896,55349,56500,109,108,59,32768,376,2048,72,97,99,100,101,102,111,115,6066,6071,6078,6092,6097,6119,6123,6128,99,121,59,32768,1046,99,117,116,101,59,32768,377,512,97,121,6083,6089,114,111,110,59,32768,381,59,32768,1047,111,116,59,32768,379,835,6102,0,6116,111,87,105,100,116,104,83,112,97,99,101,59,32768,8203,97,59,32768,918,114,59,32768,8488,112,102,59,32768,8484,99,114,59,32896,55349,56501,5938,6159,6168,6175,0,6214,6222,6233,0,0,0,0,6242,6267,6290,6429,6444,0,6495,6503,6531,6540,0,6547,99,117,116,101,33024,225,59,32768,225,114,101,118,101,59,32768,259,1536,59,69,100,105,117,121,6187,6189,6193,6196,6203,6210,32768,8766,59,32896,8766,819,59,32768,8767,114,99,33024,226,59,32768,226,116,101,33024,180,59,32768,180,59,32768,1072,108,105,103,33024,230,59,32768,230,512,59,114,6226,6228,32768,8289,59,32896,55349,56606,114,97,118,101,33024,224,59,32768,224,512,101,112,6246,6261,512,102,112,6251,6257,115,121,109,59,32768,8501,104,59,32768,8501,104,97,59,32768,945,512,97,112,6271,6284,512,99,108,6276,6280,114,59,32768,257,103,59,32768,10815,33024,38,59,32768,38,1077,6295,0,0,6326,1280,59,97,100,115,118,6305,6307,6312,6315,6322,32768,8743,110,100,59,32768,10837,59,32768,10844,108,111,112,101,59,32768,10840,59,32768,10842,1792,59,101,108,109,114,115,122,6340,6342,6345,6349,6391,6410,6422,32768,8736,59,32768,10660,101,59,32768,8736,115,100,512,59,97,6356,6358,32768,8737,2098,6368,6371,6374,6377,6380,6383,6386,6389,59,32768,10664,59,32768,10665,59,32768,10666,59,32768,10667,59,32768,10668,59,32768,10669,59,32768,10670,59,32768,10671,116,512,59,118,6397,6399,32768,8735,98,512,59,100,6405,6407,32768,8894,59,32768,10653,512,112,116,6415,6419,104,59,32768,8738,59,32768,197,97,114,114,59,32768,9084,512,103,112,6433,6438,111,110,59,32768,261,102,59,32896,55349,56658,1792,59,69,97,101,105,111,112,6458,6460,6463,6469,6472,6476,6480,32768,8776,59,32768,10864,99,105,114,59,32768,10863,59,32768,8778,100,59,32768,8779,115,59,32768,39,114,111,120,512,59,101,6488,6490,32768,8776,113,59,32768,8778,105,110,103,33024,229,59,32768,229,768,99,116,121,6509,6514,6517,114,59,32896,55349,56502,59,32768,42,109,112,512,59,101,6524,6526,32768,8776,113,59,32768,8781,105,108,100,101,33024,227,59,32768,227,109,108,33024,228,59,32768,228,512,99,105,6551,6559,111,110,105,110,116,59,32768,8755,110,116,59,32768,10769,4096,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,6597,6602,6673,6688,6701,6707,6768,6773,6891,6898,6999,7023,7309,7316,7334,7383,111,116,59,32768,10989,512,99,114,6607,6652,107,1024,99,101,112,115,6617,6623,6632,6639,111,110,103,59,32768,8780,112,115,105,108,111,110,59,32768,1014,114,105,109,101,59,32768,8245,105,109,512,59,101,6646,6648,32768,8765,113,59,32768,8909,583,6656,6661,101,101,59,32768,8893,101,100,512,59,103,6667,6669,32768,8965,101,59,32768,8965,114,107,512,59,116,6680,6682,32768,9141,98,114,107,59,32768,9142,512,111,121,6693,6698,110,103,59,32768,8780,59,32768,1073,113,117,111,59,32768,8222,1280,99,109,112,114,116,6718,6731,6738,6743,6749,97,117,115,512,59,101,6726,6728,32768,8757,59,32768,8757,112,116,121,118,59,32768,10672,115,105,59,32768,1014,110,111,117,59,32768,8492,768,97,104,119,6756,6759,6762,59,32768,946,59,32768,8502,101,101,110,59,32768,8812,114,59,32896,55349,56607,103,1792,99,111,115,116,117,118,119,6789,6809,6834,6850,6872,6879,6884,768,97,105,117,6796,6800,6805,112,59,32768,8898,114,99,59,32768,9711,112,59,32768,8899,768,100,112,116,6816,6821,6827,111,116,59,32768,10752,108,117,115,59,32768,10753,105,109,101,115,59,32768,10754,1090,6840,0,0,6846,99,117,112,59,32768,10758,97,114,59,32768,9733,114,105,97,110,103,108,101,512,100,117,6862,6868,111,119,110,59,32768,9661,112,59,32768,9651,112,108,117,115,59,32768,10756,101,101,59,32768,8897,101,100,103,101,59,32768,8896,97,114,111,119,59,32768,10509,768,97,107,111,6905,6976,6994,512,99,110,6910,6972,107,768,108,115,116,6918,6927,6935,111,122,101,110,103,101,59,32768,10731,113,117,97,114,101,59,32768,9642,114,105,97,110,103,108,101,1024,59,100,108,114,6951,6953,6959,6965,32768,9652,111,119,110,59,32768,9662,101,102,116,59,32768,9666,105,103,104,116,59,32768,9656,107,59,32768,9251,770,6981,0,6991,771,6985,0,6988,59,32768,9618,59,32768,9617,52,59,32768,9619,99,107,59,32768,9608,512,101,111,7004,7019,512,59,113,7009,7012,32896,61,8421,117,105,118,59,32896,8801,8421,116,59,32768,8976,1024,112,116,119,120,7032,7037,7049,7055,102,59,32896,55349,56659,512,59,116,7042,7044,32768,8869,111,109,59,32768,8869,116,105,101,59,32768,8904,3072,68,72,85,86,98,100,104,109,112,116,117,118,7080,7101,7126,7147,7182,7187,7208,7233,7240,7246,7253,7274,1024,76,82,108,114,7089,7092,7095,7098,59,32768,9559,59,32768,9556,59,32768,9558,59,32768,9555,1280,59,68,85,100,117,7112,7114,7117,7120,7123,32768,9552,59,32768,9574,59,32768,9577,59,32768,9572,59,32768,9575,1024,76,82,108,114,7135,7138,7141,7144,59,32768,9565,59,32768,9562,59,32768,9564,59,32768,9561,1792,59,72,76,82,104,108,114,7162,7164,7167,7170,7173,7176,7179,32768,9553,59,32768,9580,59,32768,9571,59,32768,9568,59,32768,9579,59,32768,9570,59,32768,9567,111,120,59,32768,10697,1024,76,82,108,114,7196,7199,7202,7205,59,32768,9557,59,32768,9554,59,32768,9488,59,32768,9484,1280,59,68,85,100,117,7219,7221,7224,7227,7230,32768,9472,59,32768,9573,59,32768,9576,59,32768,9516,59,32768,9524,105,110,117,115,59,32768,8863,108,117,115,59,32768,8862,105,109,101,115,59,32768,8864,1024,76,82,108,114,7262,7265,7268,7271,59,32768,9563,59,32768,9560,59,32768,9496,59,32768,9492,1792,59,72,76,82,104,108,114,7289,7291,7294,7297,7300,7303,7306,32768,9474,59,32768,9578,59,32768,9569,59,32768,9566,59,32768,9532,59,32768,9508,59,32768,9500,114,105,109,101,59,32768,8245,512,101,118,7321,7326,118,101,59,32768,728,98,97,114,33024,166,59,32768,166,1024,99,101,105,111,7343,7348,7353,7364,114,59,32896,55349,56503,109,105,59,32768,8271,109,512,59,101,7359,7361,32768,8765,59,32768,8909,108,768,59,98,104,7372,7374,7377,32768,92,59,32768,10693,115,117,98,59,32768,10184,573,7387,7399,108,512,59,101,7392,7394,32768,8226,116,59,32768,8226,112,768,59,69,101,7406,7408,7411,32768,8782,59,32768,10926,512,59,113,7416,7418,32768,8783,59,32768,8783,6450,7448,0,7523,7571,7576,7613,0,7618,7647,0,0,7764,0,0,7779,0,0,7899,7914,7949,7955,0,8158,0,8176,768,99,112,114,7454,7460,7509,117,116,101,59,32768,263,1536,59,97,98,99,100,115,7473,7475,7480,7487,7500,7505,32768,8745,110,100,59,32768,10820,114,99,117,112,59,32768,10825,512,97,117,7492,7496,112,59,32768,10827,112,59,32768,10823,111,116,59,32768,10816,59,32896,8745,65024,512,101,111,7514,7518,116,59,32768,8257,110,59,32768,711,1024,97,101,105,117,7531,7544,7552,7557,833,7536,0,7540,115,59,32768,10829,111,110,59,32768,269,100,105,108,33024,231,59,32768,231,114,99,59,32768,265,112,115,512,59,115,7564,7566,32768,10828,109,59,32768,10832,111,116,59,32768,267,768,100,109,110,7582,7589,7596,105,108,33024,184,59,32768,184,112,116,121,118,59,32768,10674,116,33280,162,59,101,7603,7605,32768,162,114,100,111,116,59,32768,183,114,59,32896,55349,56608,768,99,101,105,7624,7628,7643,121,59,32768,1095,99,107,512,59,109,7635,7637,32768,10003,97,114,107,59,32768,10003,59,32768,967,114,1792,59,69,99,101,102,109,115,7662,7664,7667,7742,7745,7752,7757,32768,9675,59,32768,10691,768,59,101,108,7674,7676,7680,32768,710,113,59,32768,8791,101,1074,7687,0,0,7709,114,114,111,119,512,108,114,7695,7701,101,102,116,59,32768,8634,105,103,104,116,59,32768,8635,1280,82,83,97,99,100,7719,7722,7725,7730,7736,59,32768,174,59,32768,9416,115,116,59,32768,8859,105,114,99,59,32768,8858,97,115,104,59,32768,8861,59,32768,8791,110,105,110,116,59,32768,10768,105,100,59,32768,10991,99,105,114,59,32768,10690,117,98,115,512,59,117,7771,7773,32768,9827,105,116,59,32768,9827,1341,7785,7804,7850,0,7871,111,110,512,59,101,7791,7793,32768,58,512,59,113,7798,7800,32768,8788,59,32768,8788,1086,7809,0,0,7820,97,512,59,116,7814,7816,32768,44,59,32768,64,768,59,102,108,7826,7828,7832,32768,8705,110,59,32768,8728,101,512,109,120,7838,7844,101,110,116,59,32768,8705,101,115,59,32768,8450,824,7854,0,7866,512,59,100,7858,7860,32768,8773,111,116,59,32768,10861,110,116,59,32768,8750,768,102,114,121,7877,7881,7886,59,32896,55349,56660,111,100,59,32768,8720,33280,169,59,115,7892,7894,32768,169,114,59,32768,8471,512,97,111,7903,7908,114,114,59,32768,8629,115,115,59,32768,10007,512,99,117,7918,7923,114,59,32896,55349,56504,512,98,112,7928,7938,512,59,101,7933,7935,32768,10959,59,32768,10961,512,59,101,7943,7945,32768,10960,59,32768,10962,100,111,116,59,32768,8943,1792,100,101,108,112,114,118,119,7969,7983,7996,8009,8057,8147,8152,97,114,114,512,108,114,7977,7980,59,32768,10552,59,32768,10549,1089,7989,0,0,7993,114,59,32768,8926,99,59,32768,8927,97,114,114,512,59,112,8004,8006,32768,8630,59,32768,10557,1536,59,98,99,100,111,115,8022,8024,8031,8044,8049,8053,32768,8746,114,99,97,112,59,32768,10824,512,97,117,8036,8040,112,59,32768,10822,112,59,32768,10826,111,116,59,32768,8845,114,59,32768,10821,59,32896,8746,65024,1024,97,108,114,118,8066,8078,8116,8123,114,114,512,59,109,8073,8075,32768,8631,59,32768,10556,121,768,101,118,119,8086,8104,8109,113,1089,8093,0,0,8099,114,101,99,59,32768,8926,117,99,99,59,32768,8927,101,101,59,32768,8910,101,100,103,101,59,32768,8911,101,110,33024,164,59,32768,164,101,97,114,114,111,119,512,108,114,8134,8140,101,102,116,59,32768,8630,105,103,104,116,59,32768,8631,101,101,59,32768,8910,101,100,59,32768,8911,512,99,105,8162,8170,111,110,105,110,116,59,32768,8754,110,116,59,32768,8753,108,99,116,121,59,32768,9005,4864,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8221,8226,8231,8267,8282,8296,8327,8351,8366,8379,8466,8471,8487,8621,8647,8676,8697,8712,8720,114,114,59,32768,8659,97,114,59,32768,10597,1024,103,108,114,115,8240,8246,8252,8256,103,101,114,59,32768,8224,101,116,104,59,32768,8504,114,59,32768,8595,104,512,59,118,8262,8264,32768,8208,59,32768,8867,572,8271,8278,97,114,111,119,59,32768,10511,97,99,59,32768,733,512,97,121,8287,8293,114,111,110,59,32768,271,59,32768,1076,768,59,97,111,8303,8305,8320,32768,8518,512,103,114,8310,8316,103,101,114,59,32768,8225,114,59,32768,8650,116,115,101,113,59,32768,10871,768,103,108,109,8334,8339,8344,33024,176,59,32768,176,116,97,59,32768,948,112,116,121,118,59,32768,10673,512,105,114,8356,8362,115,104,116,59,32768,10623,59,32896,55349,56609,97,114,512,108,114,8373,8376,59,32768,8643,59,32768,8642,1280,97,101,103,115,118,8390,8418,8421,8428,8433,109,768,59,111,115,8398,8400,8415,32768,8900,110,100,512,59,115,8407,8409,32768,8900,117,105,116,59,32768,9830,59,32768,9830,59,32768,168,97,109,109,97,59,32768,989,105,110,59,32768,8946,768,59,105,111,8440,8442,8461,32768,247,100,101,33280,247,59,111,8450,8452,32768,247,110,116,105,109,101,115,59,32768,8903,110,120,59,32768,8903,99,121,59,32768,1106,99,1088,8478,0,0,8483,114,110,59,32768,8990,111,112,59,32768,8973,1280,108,112,116,117,119,8498,8504,8509,8556,8570,108,97,114,59,32768,36,102,59,32896,55349,56661,1280,59,101,109,112,115,8520,8522,8535,8542,8548,32768,729,113,512,59,100,8528,8530,32768,8784,111,116,59,32768,8785,105,110,117,115,59,32768,8760,108,117,115,59,32768,8724,113,117,97,114,101,59,32768,8865,98,108,101,98,97,114,119,101,100,103,101,59,32768,8966,110,768,97,100,104,8578,8585,8597,114,114,111,119,59,32768,8595,111,119,110,97,114,114,111,119,115,59,32768,8650,97,114,112,111,111,110,512,108,114,8608,8614,101,102,116,59,32768,8643,105,103,104,116,59,32768,8642,563,8625,8633,107,97,114,111,119,59,32768,10512,1088,8638,0,0,8643,114,110,59,32768,8991,111,112,59,32768,8972,768,99,111,116,8654,8666,8670,512,114,121,8659,8663,59,32896,55349,56505,59,32768,1109,108,59,32768,10742,114,111,107,59,32768,273,512,100,114,8681,8686,111,116,59,32768,8945,105,512,59,102,8692,8694,32768,9663,59,32768,9662,512,97,104,8702,8707,114,114,59,32768,8693,97,114,59,32768,10607,97,110,103,108,101,59,32768,10662,512,99,105,8725,8729,121,59,32768,1119,103,114,97,114,114,59,32768,10239,4608,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,8774,8788,8807,8844,8849,8852,8866,8895,8929,8977,8989,9004,9046,9136,9151,9171,9184,9199,512,68,111,8779,8784,111,116,59,32768,10871,116,59,32768,8785,512,99,115,8793,8801,117,116,101,33024,233,59,32768,233,116,101,114,59,32768,10862,1024,97,105,111,121,8816,8822,8835,8841,114,111,110,59,32768,283,114,512,59,99,8828,8830,32768,8790,33024,234,59,32768,234,108,111,110,59,32768,8789,59,32768,1101,111,116,59,32768,279,59,32768,8519,512,68,114,8857,8862,111,116,59,32768,8786,59,32896,55349,56610,768,59,114,115,8873,8875,8883,32768,10906,97,118,101,33024,232,59,32768,232,512,59,100,8888,8890,32768,10902,111,116,59,32768,10904,1024,59,105,108,115,8904,8906,8914,8917,32768,10905,110,116,101,114,115,59,32768,9191,59,32768,8467,512,59,100,8922,8924,32768,10901,111,116,59,32768,10903,768,97,112,115,8936,8941,8960,99,114,59,32768,275,116,121,768,59,115,118,8950,8952,8957,32768,8709,101,116,59,32768,8709,59,32768,8709,112,512,49,59,8966,8975,516,8970,8973,59,32768,8196,59,32768,8197,32768,8195,512,103,115,8982,8985,59,32768,331,112,59,32768,8194,512,103,112,8994,8999,111,110,59,32768,281,102,59,32896,55349,56662,768,97,108,115,9011,9023,9028,114,512,59,115,9017,9019,32768,8917,108,59,32768,10723,117,115,59,32768,10865,105,768,59,108,118,9036,9038,9043,32768,949,111,110,59,32768,949,59,32768,1013,1024,99,115,117,118,9055,9071,9099,9128,512,105,111,9060,9065,114,99,59,32768,8790,108,111,110,59,32768,8789,1082,9077,0,0,9081,109,59,32768,8770,97,110,116,512,103,108,9088,9093,116,114,59,32768,10902,101,115,115,59,32768,10901,768,97,101,105,9106,9111,9116,108,115,59,32768,61,115,116,59,32768,8799,118,512,59,68,9122,9124,32768,8801,68,59,32768,10872,112,97,114,115,108,59,32768,10725,512,68,97,9141,9146,111,116,59,32768,8787,114,114,59,32768,10609,768,99,100,105,9158,9162,9167,114,59,32768,8495,111,116,59,32768,8784,109,59,32768,8770,512,97,104,9176,9179,59,32768,951,33024,240,59,32768,240,512,109,114,9189,9195,108,33024,235,59,32768,235,111,59,32768,8364,768,99,105,112,9206,9210,9215,108,59,32768,33,115,116,59,32768,8707,512,101,111,9220,9230,99,116,97,116,105,111,110,59,32768,8496,110,101,110,116,105,97,108,101,59,32768,8519,4914,9262,0,9276,0,9280,9287,0,0,9318,9324,0,9331,0,9352,9357,9386,0,9395,9497,108,108,105,110,103,100,111,116,115,101,113,59,32768,8786,121,59,32768,1092,109,97,108,101,59,32768,9792,768,105,108,114,9293,9299,9313,108,105,103,59,32768,64259,1082,9305,0,0,9309,103,59,32768,64256,105,103,59,32768,64260,59,32896,55349,56611,108,105,103,59,32768,64257,108,105,103,59,32896,102,106,768,97,108,116,9337,9341,9346,116,59,32768,9837,105,103,59,32768,64258,110,115,59,32768,9649,111,102,59,32768,402,833,9361,0,9366,102,59,32896,55349,56663,512,97,107,9370,9375,108,108,59,32768,8704,512,59,118,9380,9382,32768,8916,59,32768,10969,97,114,116,105,110,116,59,32768,10765,512,97,111,9399,9491,512,99,115,9404,9487,1794,9413,9443,9453,9470,9474,0,9484,1795,9421,9426,9429,9434,9437,0,9440,33024,189,59,32768,189,59,32768,8531,33024,188,59,32768,188,59,32768,8533,59,32768,8537,59,32768,8539,772,9447,0,9450,59,32768,8532,59,32768,8534,1285,9459,9464,0,0,9467,33024,190,59,32768,190,59,32768,8535,59,32768,8540,53,59,32768,8536,775,9478,0,9481,59,32768,8538,59,32768,8541,56,59,32768,8542,108,59,32768,8260,119,110,59,32768,8994,99,114,59,32896,55349,56507,4352,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,9537,9547,9575,9582,9595,9600,9679,9684,9694,9700,9705,9725,9773,9779,9785,9810,9917,512,59,108,9542,9544,32768,8807,59,32768,10892,768,99,109,112,9554,9560,9572,117,116,101,59,32768,501,109,97,512,59,100,9567,9569,32768,947,59,32768,989,59,32768,10886,114,101,118,101,59,32768,287,512,105,121,9587,9592,114,99,59,32768,285,59,32768,1075,111,116,59,32768,289,1024,59,108,113,115,9609,9611,9614,9633,32768,8805,59,32768,8923,768,59,113,115,9621,9623,9626,32768,8805,59,32768,8807,108,97,110,116,59,32768,10878,1024,59,99,100,108,9642,9644,9648,9667,32768,10878,99,59,32768,10921,111,116,512,59,111,9655,9657,32768,10880,512,59,108,9662,9664,32768,10882,59,32768,10884,512,59,101,9672,9675,32896,8923,65024,115,59,32768,10900,114,59,32896,55349,56612,512,59,103,9689,9691,32768,8811,59,32768,8921,109,101,108,59,32768,8503,99,121,59,32768,1107,1024,59,69,97,106,9714,9716,9719,9722,32768,8823,59,32768,10898,59,32768,10917,59,32768,10916,1024,69,97,101,115,9734,9737,9751,9768,59,32768,8809,112,512,59,112,9743,9745,32768,10890,114,111,120,59,32768,10890,512,59,113,9756,9758,32768,10888,512,59,113,9763,9765,32768,10888,59,32768,8809,105,109,59,32768,8935,112,102,59,32896,55349,56664,97,118,101,59,32768,96,512,99,105,9790,9794,114,59,32768,8458,109,768,59,101,108,9802,9804,9807,32768,8819,59,32768,10894,59,32768,10896,34304,62,59,99,100,108,113,114,9824,9826,9838,9843,9849,9856,32768,62,512,99,105,9831,9834,59,32768,10919,114,59,32768,10874,111,116,59,32768,8919,80,97,114,59,32768,10645,117,101,115,116,59,32768,10876,1280,97,100,101,108,115,9867,9882,9887,9906,9912,833,9872,0,9879,112,114,111,120,59,32768,10886,114,59,32768,10616,111,116,59,32768,8919,113,512,108,113,9893,9899,101,115,115,59,32768,8923,108,101,115,115,59,32768,10892,101,115,115,59,32768,8823,105,109,59,32768,8819,512,101,110,9922,9932,114,116,110,101,113,113,59,32896,8809,65024,69,59,32896,8809,65024,2560,65,97,98,99,101,102,107,111,115,121,9958,9963,10015,10020,10026,10060,10065,10085,10147,10171,114,114,59,32768,8660,1024,105,108,109,114,9972,9978,9982,9988,114,115,112,59,32768,8202,102,59,32768,189,105,108,116,59,32768,8459,512,100,114,9993,9998,99,121,59,32768,1098,768,59,99,119,10005,10007,10012,32768,8596,105,114,59,32768,10568,59,32768,8621,97,114,59,32768,8463,105,114,99,59,32768,293,768,97,108,114,10033,10048,10054,114,116,115,512,59,117,10041,10043,32768,9829,105,116,59,32768,9829,108,105,112,59,32768,8230,99,111,110,59,32768,8889,114,59,32896,55349,56613,115,512,101,119,10071,10078,97,114,111,119,59,32768,10533,97,114,111,119,59,32768,10534,1280,97,109,111,112,114,10096,10101,10107,10136,10141,114,114,59,32768,8703,116,104,116,59,32768,8763,107,512,108,114,10113,10124,101,102,116,97,114,114,111,119,59,32768,8617,105,103,104,116,97,114,114,111,119,59,32768,8618,102,59,32896,55349,56665,98,97,114,59,32768,8213,768,99,108,116,10154,10159,10165,114,59,32896,55349,56509,97,115,104,59,32768,8463,114,111,107,59,32768,295,512,98,112,10176,10182,117,108,108,59,32768,8259,104,101,110,59,32768,8208,5426,10211,0,10220,0,10239,10255,10267,0,10276,10312,0,0,10318,10371,10458,10485,10491,0,10500,10545,10558,99,117,116,101,33024,237,59,32768,237,768,59,105,121,10226,10228,10235,32768,8291,114,99,33024,238,59,32768,238,59,32768,1080,512,99,120,10243,10247,121,59,32768,1077,99,108,33024,161,59,32768,161,512,102,114,10259,10262,59,32768,8660,59,32896,55349,56614,114,97,118,101,33024,236,59,32768,236,1024,59,105,110,111,10284,10286,10300,10306,32768,8520,512,105,110,10291,10296,110,116,59,32768,10764,116,59,32768,8749,102,105,110,59,32768,10716,116,97,59,32768,8489,108,105,103,59,32768,307,768,97,111,112,10324,10361,10365,768,99,103,116,10331,10335,10357,114,59,32768,299,768,101,108,112,10342,10345,10351,59,32768,8465,105,110,101,59,32768,8464,97,114,116,59,32768,8465,104,59,32768,305,102,59,32768,8887,101,100,59,32768,437,1280,59,99,102,111,116,10381,10383,10389,10403,10409,32768,8712,97,114,101,59,32768,8453,105,110,512,59,116,10396,10398,32768,8734,105,101,59,32768,10717,100,111,116,59,32768,305,1280,59,99,101,108,112,10420,10422,10427,10444,10451,32768,8747,97,108,59,32768,8890,512,103,114,10432,10438,101,114,115,59,32768,8484,99,97,108,59,32768,8890,97,114,104,107,59,32768,10775,114,111,100,59,32768,10812,1024,99,103,112,116,10466,10470,10475,10480,121,59,32768,1105,111,110,59,32768,303,102,59,32896,55349,56666,97,59,32768,953,114,111,100,59,32768,10812,117,101,115,116,33024,191,59,32768,191,512,99,105,10504,10509,114,59,32896,55349,56510,110,1280,59,69,100,115,118,10521,10523,10526,10531,10541,32768,8712,59,32768,8953,111,116,59,32768,8949,512,59,118,10536,10538,32768,8948,59,32768,8947,59,32768,8712,512,59,105,10549,10551,32768,8290,108,100,101,59,32768,297,828,10562,0,10567,99,121,59,32768,1110,108,33024,239,59,32768,239,1536,99,102,109,111,115,117,10585,10598,10603,10609,10615,10630,512,105,121,10590,10595,114,99,59,32768,309,59,32768,1081,114,59,32896,55349,56615,97,116,104,59,32768,567,112,102,59,32896,55349,56667,820,10620,0,10625,114,59,32896,55349,56511,114,99,121,59,32768,1112,107,99,121,59,32768,1108,2048,97,99,102,103,104,106,111,115,10653,10666,10680,10685,10692,10697,10702,10708,112,112,97,512,59,118,10661,10663,32768,954,59,32768,1008,512,101,121,10671,10677,100,105,108,59,32768,311,59,32768,1082,114,59,32896,55349,56616,114,101,101,110,59,32768,312,99,121,59,32768,1093,99,121,59,32768,1116,112,102,59,32896,55349,56668,99,114,59,32896,55349,56512,5888,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,10761,10783,10789,10799,10804,10957,11011,11047,11094,11349,11372,11382,11409,11414,11451,11478,11526,11698,11711,11755,11823,11910,11929,768,97,114,116,10768,10773,10777,114,114,59,32768,8666,114,59,32768,8656,97,105,108,59,32768,10523,97,114,114,59,32768,10510,512,59,103,10794,10796,32768,8806,59,32768,10891,97,114,59,32768,10594,4660,10824,0,10830,0,10838,0,0,0,0,0,10844,10850,0,10867,10870,10877,0,10933,117,116,101,59,32768,314,109,112,116,121,118,59,32768,10676,114,97,110,59,32768,8466,98,100,97,59,32768,955,103,768,59,100,108,10857,10859,10862,32768,10216,59,32768,10641,101,59,32768,10216,59,32768,10885,117,111,33024,171,59,32768,171,114,2048,59,98,102,104,108,112,115,116,10894,10896,10907,10911,10915,10919,10923,10928,32768,8592,512,59,102,10901,10903,32768,8676,115,59,32768,10527,115,59,32768,10525,107,59,32768,8617,112,59,32768,8619,108,59,32768,10553,105,109,59,32768,10611,108,59,32768,8610,768,59,97,101,10939,10941,10946,32768,10923,105,108,59,32768,10521,512,59,115,10951,10953,32768,10925,59,32896,10925,65024,768,97,98,114,10964,10969,10974,114,114,59,32768,10508,114,107,59,32768,10098,512,97,107,10979,10991,99,512,101,107,10985,10988,59,32768,123,59,32768,91,512,101,115,10996,10999,59,32768,10635,108,512,100,117,11005,11008,59,32768,10639,59,32768,10637,1024,97,101,117,121,11020,11026,11040,11044,114,111,110,59,32768,318,512,100,105,11031,11036,105,108,59,32768,316,108,59,32768,8968,98,59,32768,123,59,32768,1083,1024,99,113,114,115,11056,11060,11072,11090,97,59,32768,10550,117,111,512,59,114,11067,11069,32768,8220,59,32768,8222,512,100,117,11077,11083,104,97,114,59,32768,10599,115,104,97,114,59,32768,10571,104,59,32768,8626,1280,59,102,103,113,115,11105,11107,11228,11231,11250,32768,8804,116,1280,97,104,108,114,116,11119,11136,11157,11169,11216,114,114,111,119,512,59,116,11128,11130,32768,8592,97,105,108,59,32768,8610,97,114,112,111,111,110,512,100,117,11147,11153,111,119,110,59,32768,8637,112,59,32768,8636,101,102,116,97,114,114,111,119,115,59,32768,8647,105,103,104,116,768,97,104,115,11180,11194,11204,114,114,111,119,512,59,115,11189,11191,32768,8596,59,32768,8646,97,114,112,111,111,110,115,59,32768,8651,113,117,105,103,97,114,114,111,119,59,32768,8621,104,114,101,101,116,105,109,101,115,59,32768,8907,59,32768,8922,768,59,113,115,11238,11240,11243,32768,8804,59,32768,8806,108,97,110,116,59,32768,10877,1280,59,99,100,103,115,11261,11263,11267,11286,11298,32768,10877,99,59,32768,10920,111,116,512,59,111,11274,11276,32768,10879,512,59,114,11281,11283,32768,10881,59,32768,10883,512,59,101,11291,11294,32896,8922,65024,115,59,32768,10899,1280,97,100,101,103,115,11309,11317,11322,11339,11344,112,112,114,111,120,59,32768,10885,111,116,59,32768,8918,113,512,103,113,11328,11333,116,114,59,32768,8922,103,116,114,59,32768,10891,116,114,59,32768,8822,105,109,59,32768,8818,768,105,108,114,11356,11362,11368,115,104,116,59,32768,10620,111,111,114,59,32768,8970,59,32896,55349,56617,512,59,69,11377,11379,32768,8822,59,32768,10897,562,11386,11405,114,512,100,117,11391,11394,59,32768,8637,512,59,108,11399,11401,32768,8636,59,32768,10602,108,107,59,32768,9604,99,121,59,32768,1113,1280,59,97,99,104,116,11425,11427,11432,11440,11446,32768,8810,114,114,59,32768,8647,111,114,110,101,114,59,32768,8990,97,114,100,59,32768,10603,114,105,59,32768,9722,512,105,111,11456,11462,100,111,116,59,32768,320,117,115,116,512,59,97,11470,11472,32768,9136,99,104,101,59,32768,9136,1024,69,97,101,115,11487,11490,11504,11521,59,32768,8808,112,512,59,112,11496,11498,32768,10889,114,111,120,59,32768,10889,512,59,113,11509,11511,32768,10887,512,59,113,11516,11518,32768,10887,59,32768,8808,105,109,59,32768,8934,2048,97,98,110,111,112,116,119,122,11543,11556,11561,11616,11640,11660,11667,11680,512,110,114,11548,11552,103,59,32768,10220,114,59,32768,8701,114,107,59,32768,10214,103,768,108,109,114,11569,11596,11604,101,102,116,512,97,114,11577,11584,114,114,111,119,59,32768,10229,105,103,104,116,97,114,114,111,119,59,32768,10231,97,112,115,116,111,59,32768,10236,105,103,104,116,97,114,114,111,119,59,32768,10230,112,97,114,114,111,119,512,108,114,11627,11633,101,102,116,59,32768,8619,105,103,104,116,59,32768,8620,768,97,102,108,11647,11651,11655,114,59,32768,10629,59,32896,55349,56669,117,115,59,32768,10797,105,109,101,115,59,32768,10804,562,11671,11676,115,116,59,32768,8727,97,114,59,32768,95,768,59,101,102,11687,11689,11695,32768,9674,110,103,101,59,32768,9674,59,32768,10731,97,114,512,59,108,11705,11707,32768,40,116,59,32768,10643,1280,97,99,104,109,116,11722,11727,11735,11747,11750,114,114,59,32768,8646,111,114,110,101,114,59,32768,8991,97,114,512,59,100,11742,11744,32768,8651,59,32768,10605,59,32768,8206,114,105,59,32768,8895,1536,97,99,104,105,113,116,11768,11774,11779,11782,11798,11817,113,117,111,59,32768,8249,114,59,32896,55349,56513,59,32768,8624,109,768,59,101,103,11790,11792,11795,32768,8818,59,32768,10893,59,32768,10895,512,98,117,11803,11806,59,32768,91,111,512,59,114,11812,11814,32768,8216,59,32768,8218,114,111,107,59,32768,322,34816,60,59,99,100,104,105,108,113,114,11841,11843,11855,11860,11866,11872,11878,11885,32768,60,512,99,105,11848,11851,59,32768,10918,114,59,32768,10873,111,116,59,32768,8918,114,101,101,59,32768,8907,109,101,115,59,32768,8905,97,114,114,59,32768,10614,117,101,115,116,59,32768,10875,512,80,105,11890,11895,97,114,59,32768,10646,768,59,101,102,11902,11904,11907,32768,9667,59,32768,8884,59,32768,9666,114,512,100,117,11916,11923,115,104,97,114,59,32768,10570,104,97,114,59,32768,10598,512,101,110,11934,11944,114,116,110,101,113,113,59,32896,8808,65024,69,59,32896,8808,65024,3584,68,97,99,100,101,102,104,105,108,110,111,112,115,117,11978,11984,12061,12075,12081,12095,12100,12104,12170,12181,12188,12204,12207,12223,68,111,116,59,32768,8762,1024,99,108,112,114,11993,11999,12019,12055,114,33024,175,59,32768,175,512,101,116,12004,12007,59,32768,9794,512,59,101,12012,12014,32768,10016,115,101,59,32768,10016,512,59,115,12024,12026,32768,8614,116,111,1024,59,100,108,117,12037,12039,12045,12051,32768,8614,111,119,110,59,32768,8615,101,102,116,59,32768,8612,112,59,32768,8613,107,101,114,59,32768,9646,512,111,121,12066,12072,109,109,97,59,32768,10793,59,32768,1084,97,115,104,59,32768,8212,97,115,117,114,101,100,97,110,103,108,101,59,32768,8737,114,59,32896,55349,56618,111,59,32768,8487,768,99,100,110,12111,12118,12146,114,111,33024,181,59,32768,181,1024,59,97,99,100,12127,12129,12134,12139,32768,8739,115,116,59,32768,42,105,114,59,32768,10992,111,116,33024,183,59,32768,183,117,115,768,59,98,100,12155,12157,12160,32768,8722,59,32768,8863,512,59,117,12165,12167,32768,8760,59,32768,10794,564,12174,12178,112,59,32768,10971,114,59,32768,8230,112,108,117,115,59,32768,8723,512,100,112,12193,12199,101,108,115,59,32768,8871,102,59,32896,55349,56670,59,32768,8723,512,99,116,12212,12217,114,59,32896,55349,56514,112,111,115,59,32768,8766,768,59,108,109,12230,12232,12240,32768,956,116,105,109,97,112,59,32768,8888,97,112,59,32768,8888,6144,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,12294,12315,12364,12376,12393,12472,12496,12547,12553,12636,12641,12703,12725,12747,12752,12876,12881,12957,13033,13089,13294,13359,13384,13499,512,103,116,12299,12303,59,32896,8921,824,512,59,118,12308,12311,32896,8811,8402,59,32896,8811,824,768,101,108,116,12322,12348,12352,102,116,512,97,114,12329,12336,114,114,111,119,59,32768,8653,105,103,104,116,97,114,114,111,119,59,32768,8654,59,32896,8920,824,512,59,118,12357,12360,32896,8810,8402,59,32896,8810,824,105,103,104,116,97,114,114,111,119,59,32768,8655,512,68,100,12381,12387,97,115,104,59,32768,8879,97,115,104,59,32768,8878,1280,98,99,110,112,116,12404,12409,12415,12420,12452,108,97,59,32768,8711,117,116,101,59,32768,324,103,59,32896,8736,8402,1280,59,69,105,111,112,12431,12433,12437,12442,12446,32768,8777,59,32896,10864,824,100,59,32896,8779,824,115,59,32768,329,114,111,120,59,32768,8777,117,114,512,59,97,12459,12461,32768,9838,108,512,59,115,12467,12469,32768,9838,59,32768,8469,836,12477,0,12483,112,33024,160,59,32768,160,109,112,512,59,101,12489,12492,32896,8782,824,59,32896,8783,824,1280,97,101,111,117,121,12507,12519,12525,12540,12544,833,12512,0,12515,59,32768,10819,111,110,59,32768,328,100,105,108,59,32768,326,110,103,512,59,100,12532,12534,32768,8775,111,116,59,32896,10861,824,112,59,32768,10818,59,32768,1085,97,115,104,59,32768,8211,1792,59,65,97,100,113,115,120,12568,12570,12575,12596,12602,12608,12623,32768,8800,114,114,59,32768,8663,114,512,104,114,12581,12585,107,59,32768,10532,512,59,111,12590,12592,32768,8599,119,59,32768,8599,111,116,59,32896,8784,824,117,105,118,59,32768,8802,512,101,105,12613,12618,97,114,59,32768,10536,109,59,32896,8770,824,105,115,116,512,59,115,12631,12633,32768,8708,59,32768,8708,114,59,32896,55349,56619,1024,69,101,115,116,12650,12654,12688,12693,59,32896,8807,824,768,59,113,115,12661,12663,12684,32768,8817,768,59,113,115,12670,12672,12676,32768,8817,59,32896,8807,824,108,97,110,116,59,32896,10878,824,59,32896,10878,824,105,109,59,32768,8821,512,59,114,12698,12700,32768,8815,59,32768,8815,768,65,97,112,12710,12715,12720,114,114,59,32768,8654,114,114,59,32768,8622,97,114,59,32768,10994,768,59,115,118,12732,12734,12744,32768,8715,512,59,100,12739,12741,32768,8956,59,32768,8954,59,32768,8715,99,121,59,32768,1114,1792,65,69,97,100,101,115,116,12767,12772,12776,12781,12785,12853,12858,114,114,59,32768,8653,59,32896,8806,824,114,114,59,32768,8602,114,59,32768,8229,1024,59,102,113,115,12794,12796,12821,12842,32768,8816,116,512,97,114,12802,12809,114,114,111,119,59,32768,8602,105,103,104,116,97,114,114,111,119,59,32768,8622,768,59,113,115,12828,12830,12834,32768,8816,59,32896,8806,824,108,97,110,116,59,32896,10877,824,512,59,115,12847,12850,32896,10877,824,59,32768,8814,105,109,59,32768,8820,512,59,114,12863,12865,32768,8814,105,512,59,101,12871,12873,32768,8938,59,32768,8940,105,100,59,32768,8740,512,112,116,12886,12891,102,59,32896,55349,56671,33536,172,59,105,110,12899,12901,12936,32768,172,110,1024,59,69,100,118,12911,12913,12917,12923,32768,8713,59,32896,8953,824,111,116,59,32896,8949,824,818,12928,12931,12934,59,32768,8713,59,32768,8951,59,32768,8950,105,512,59,118,12942,12944,32768,8716,818,12949,12952,12955,59,32768,8716,59,32768,8958,59,32768,8957,768,97,111,114,12964,12992,12999,114,1024,59,97,115,116,12974,12976,12983,12988,32768,8742,108,108,101,108,59,32768,8742,108,59,32896,11005,8421,59,32896,8706,824,108,105,110,116,59,32768,10772,768,59,99,101,13006,13008,13013,32768,8832,117,101,59,32768,8928,512,59,99,13018,13021,32896,10927,824,512,59,101,13026,13028,32768,8832,113,59,32896,10927,824,1024,65,97,105,116,13042,13047,13066,13077,114,114,59,32768,8655,114,114,768,59,99,119,13056,13058,13062,32768,8603,59,32896,10547,824,59,32896,8605,824,103,104,116,97,114,114,111,119,59,32768,8603,114,105,512,59,101,13084,13086,32768,8939,59,32768,8941,1792,99,104,105,109,112,113,117,13104,13128,13151,13169,13174,13179,13194,1024,59,99,101,114,13113,13115,13120,13124,32768,8833,117,101,59,32768,8929,59,32896,10928,824,59,32896,55349,56515,111,114,116,1086,13137,0,0,13142,105,100,59,32768,8740,97,114,97,108,108,101,108,59,32768,8742,109,512,59,101,13157,13159,32768,8769,512,59,113,13164,13166,32768,8772,59,32768,8772,105,100,59,32768,8740,97,114,59,32768,8742,115,117,512,98,112,13186,13190,101,59,32768,8930,101,59,32768,8931,768,98,99,112,13201,13241,13254,1024,59,69,101,115,13210,13212,13216,13219,32768,8836,59,32896,10949,824,59,32768,8840,101,116,512,59,101,13226,13229,32896,8834,8402,113,512,59,113,13235,13237,32768,8840,59,32896,10949,824,99,512,59,101,13247,13249,32768,8833,113,59,32896,10928,824,1024,59,69,101,115,13263,13265,13269,13272,32768,8837,59,32896,10950,824,59,32768,8841,101,116,512,59,101,13279,13282,32896,8835,8402,113,512,59,113,13288,13290,32768,8841,59,32896,10950,824,1024,103,105,108,114,13303,13307,13315,13319,108,59,32768,8825,108,100,101,33024,241,59,32768,241,103,59,32768,8824,105,97,110,103,108,101,512,108,114,13330,13344,101,102,116,512,59,101,13338,13340,32768,8938,113,59,32768,8940,105,103,104,116,512,59,101,13353,13355,32768,8939,113,59,32768,8941,512,59,109,13364,13366,32768,957,768,59,101,115,13373,13375,13380,32768,35,114,111,59,32768,8470,112,59,32768,8199,2304,68,72,97,100,103,105,108,114,115,13403,13409,13415,13420,13426,13439,13446,13476,13493,97,115,104,59,32768,8877,97,114,114,59,32768,10500,112,59,32896,8781,8402,97,115,104,59,32768,8876,512,101,116,13431,13435,59,32896,8805,8402,59,32896,62,8402,110,102,105,110,59,32768,10718,768,65,101,116,13453,13458,13462,114,114,59,32768,10498,59,32896,8804,8402,512,59,114,13467,13470,32896,60,8402,105,101,59,32896,8884,8402,512,65,116,13481,13486,114,114,59,32768,10499,114,105,101,59,32896,8885,8402,105,109,59,32896,8764,8402,768,65,97,110,13506,13511,13532,114,114,59,32768,8662,114,512,104,114,13517,13521,107,59,32768,10531,512,59,111,13526,13528,32768,8598,119,59,32768,8598,101,97,114,59,32768,10535,9252,13576,0,0,0,0,0,0,0,0,0,0,0,0,0,13579,0,13596,13617,13653,13659,13673,13695,13708,0,0,13713,13750,0,13788,13794,0,13815,13890,13913,13937,13944,59,32768,9416,512,99,115,13583,13591,117,116,101,33024,243,59,32768,243,116,59,32768,8859,512,105,121,13600,13613,114,512,59,99,13606,13608,32768,8858,33024,244,59,32768,244,59,32768,1086,1280,97,98,105,111,115,13627,13632,13638,13642,13646,115,104,59,32768,8861,108,97,99,59,32768,337,118,59,32768,10808,116,59,32768,8857,111,108,100,59,32768,10684,108,105,103,59,32768,339,512,99,114,13663,13668,105,114,59,32768,10687,59,32896,55349,56620,1600,13680,0,0,13684,0,13692,110,59,32768,731,97,118,101,33024,242,59,32768,242,59,32768,10689,512,98,109,13699,13704,97,114,59,32768,10677,59,32768,937,110,116,59,32768,8750,1024,97,99,105,116,13721,13726,13741,13746,114,114,59,32768,8634,512,105,114,13731,13735,114,59,32768,10686,111,115,115,59,32768,10683,110,101,59,32768,8254,59,32768,10688,768,97,101,105,13756,13761,13766,99,114,59,32768,333,103,97,59,32768,969,768,99,100,110,13773,13779,13782,114,111,110,59,32768,959,59,32768,10678,117,115,59,32768,8854,112,102,59,32896,55349,56672,768,97,101,108,13800,13804,13809,114,59,32768,10679,114,112,59,32768,10681,117,115,59,32768,8853,1792,59,97,100,105,111,115,118,13829,13831,13836,13869,13875,13879,13886,32768,8744,114,114,59,32768,8635,1024,59,101,102,109,13845,13847,13859,13864,32768,10845,114,512,59,111,13853,13855,32768,8500,102,59,32768,8500,33024,170,59,32768,170,33024,186,59,32768,186,103,111,102,59,32768,8886,114,59,32768,10838,108,111,112,101,59,32768,10839,59,32768,10843,768,99,108,111,13896,13900,13908,114,59,32768,8500,97,115,104,33024,248,59,32768,248,108,59,32768,8856,105,573,13917,13924,100,101,33024,245,59,32768,245,101,115,512,59,97,13930,13932,32768,8855,115,59,32768,10806,109,108,33024,246,59,32768,246,98,97,114,59,32768,9021,5426,13972,0,14013,0,14017,14053,0,14058,14086,0,0,14107,14199,0,14202,0,0,14229,14425,0,14438,114,1024,59,97,115,116,13981,13983,13997,14009,32768,8741,33280,182,59,108,13989,13991,32768,182,108,101,108,59,32768,8741,1082,14003,0,0,14007,109,59,32768,10995,59,32768,11005,59,32768,8706,121,59,32768,1087,114,1280,99,105,109,112,116,14028,14033,14038,14043,14046,110,116,59,32768,37,111,100,59,32768,46,105,108,59,32768,8240,59,32768,8869,101,110,107,59,32768,8241,114,59,32896,55349,56621,768,105,109,111,14064,14074,14080,512,59,118,14069,14071,32768,966,59,32768,981,109,97,116,59,32768,8499,110,101,59,32768,9742,768,59,116,118,14092,14094,14103,32768,960,99,104,102,111,114,107,59,32768,8916,59,32768,982,512,97,117,14111,14132,110,512,99,107,14117,14128,107,512,59,104,14123,14125,32768,8463,59,32768,8462,118,59,32768,8463,115,2304,59,97,98,99,100,101,109,115,116,14152,14154,14160,14163,14168,14179,14182,14188,14193,32768,43,99,105,114,59,32768,10787,59,32768,8862,105,114,59,32768,10786,512,111,117,14173,14176,59,32768,8724,59,32768,10789,59,32768,10866,110,33024,177,59,32768,177,105,109,59,32768,10790,119,111,59,32768,10791,59,32768,177,768,105,112,117,14208,14216,14221,110,116,105,110,116,59,32768,10773,102,59,32896,55349,56673,110,100,33024,163,59,32768,163,2560,59,69,97,99,101,105,110,111,115,117,14249,14251,14254,14258,14263,14336,14348,14367,14413,14418,32768,8826,59,32768,10931,112,59,32768,10935,117,101,59,32768,8828,512,59,99,14268,14270,32768,10927,1536,59,97,99,101,110,115,14283,14285,14293,14302,14306,14331,32768,8826,112,112,114,111,120,59,32768,10935,117,114,108,121,101,113,59,32768,8828,113,59,32768,10927,768,97,101,115,14313,14321,14326,112,112,114,111,120,59,32768,10937,113,113,59,32768,10933,105,109,59,32768,8936,105,109,59,32768,8830,109,101,512,59,115,14343,14345,32768,8242,59,32768,8473,768,69,97,115,14355,14358,14362,59,32768,10933,112,59,32768,10937,105,109,59,32768,8936,768,100,102,112,14374,14377,14402,59,32768,8719,768,97,108,115,14384,14390,14396,108,97,114,59,32768,9006,105,110,101,59,32768,8978,117,114,102,59,32768,8979,512,59,116,14407,14409,32768,8733,111,59,32768,8733,105,109,59,32768,8830,114,101,108,59,32768,8880,512,99,105,14429,14434,114,59,32896,55349,56517,59,32768,968,110,99,115,112,59,32768,8200,1536,102,105,111,112,115,117,14457,14462,14467,14473,14480,14486,114,59,32896,55349,56622,110,116,59,32768,10764,112,102,59,32896,55349,56674,114,105,109,101,59,32768,8279,99,114,59,32896,55349,56518,768,97,101,111,14493,14513,14526,116,512,101,105,14499,14508,114,110,105,111,110,115,59,32768,8461,110,116,59,32768,10774,115,116,512,59,101,14520,14522,32768,63,113,59,32768,8799,116,33024,34,59,32768,34,5376,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,14575,14597,14603,14608,14775,14829,14865,14901,14943,14966,15e3,15139,15159,15176,15182,15236,15261,15267,15309,15352,15360,768,97,114,116,14582,14587,14591,114,114,59,32768,8667,114,59,32768,8658,97,105,108,59,32768,10524,97,114,114,59,32768,10511,97,114,59,32768,10596,1792,99,100,101,110,113,114,116,14623,14637,14642,14650,14672,14679,14751,512,101,117,14628,14632,59,32896,8765,817,116,101,59,32768,341,105,99,59,32768,8730,109,112,116,121,118,59,32768,10675,103,1024,59,100,101,108,14660,14662,14665,14668,32768,10217,59,32768,10642,59,32768,10661,101,59,32768,10217,117,111,33024,187,59,32768,187,114,2816,59,97,98,99,102,104,108,112,115,116,119,14703,14705,14709,14720,14723,14727,14731,14735,14739,14744,14748,32768,8594,112,59,32768,10613,512,59,102,14714,14716,32768,8677,115,59,32768,10528,59,32768,10547,115,59,32768,10526,107,59,32768,8618,112,59,32768,8620,108,59,32768,10565,105,109,59,32768,10612,108,59,32768,8611,59,32768,8605,512,97,105,14756,14761,105,108,59,32768,10522,111,512,59,110,14767,14769,32768,8758,97,108,115,59,32768,8474,768,97,98,114,14782,14787,14792,114,114,59,32768,10509,114,107,59,32768,10099,512,97,107,14797,14809,99,512,101,107,14803,14806,59,32768,125,59,32768,93,512,101,115,14814,14817,59,32768,10636,108,512,100,117,14823,14826,59,32768,10638,59,32768,10640,1024,97,101,117,121,14838,14844,14858,14862,114,111,110,59,32768,345,512,100,105,14849,14854,105,108,59,32768,343,108,59,32768,8969,98,59,32768,125,59,32768,1088,1024,99,108,113,115,14874,14878,14885,14897,97,59,32768,10551,100,104,97,114,59,32768,10601,117,111,512,59,114,14892,14894,32768,8221,59,32768,8221,104,59,32768,8627,768,97,99,103,14908,14934,14938,108,1024,59,105,112,115,14918,14920,14925,14931,32768,8476,110,101,59,32768,8475,97,114,116,59,32768,8476,59,32768,8477,116,59,32768,9645,33024,174,59,32768,174,768,105,108,114,14950,14956,14962,115,104,116,59,32768,10621,111,111,114,59,32768,8971,59,32896,55349,56623,512,97,111,14971,14990,114,512,100,117,14977,14980,59,32768,8641,512,59,108,14985,14987,32768,8640,59,32768,10604,512,59,118,14995,14997,32768,961,59,32768,1009,768,103,110,115,15007,15123,15127,104,116,1536,97,104,108,114,115,116,15022,15039,15060,15086,15099,15111,114,114,111,119,512,59,116,15031,15033,32768,8594,97,105,108,59,32768,8611,97,114,112,111,111,110,512,100,117,15050,15056,111,119,110,59,32768,8641,112,59,32768,8640,101,102,116,512,97,104,15068,15076,114,114,111,119,115,59,32768,8644,97,114,112,111,111,110,115,59,32768,8652,105,103,104,116,97,114,114,111,119,115,59,32768,8649,113,117,105,103,97,114,114,111,119,59,32768,8605,104,114,101,101,116,105,109,101,115,59,32768,8908,103,59,32768,730,105,110,103,100,111,116,115,101,113,59,32768,8787,768,97,104,109,15146,15151,15156,114,114,59,32768,8644,97,114,59,32768,8652,59,32768,8207,111,117,115,116,512,59,97,15168,15170,32768,9137,99,104,101,59,32768,9137,109,105,100,59,32768,10990,1024,97,98,112,116,15191,15204,15209,15229,512,110,114,15196,15200,103,59,32768,10221,114,59,32768,8702,114,107,59,32768,10215,768,97,102,108,15216,15220,15224,114,59,32768,10630,59,32896,55349,56675,117,115,59,32768,10798,105,109,101,115,59,32768,10805,512,97,112,15241,15253,114,512,59,103,15247,15249,32768,41,116,59,32768,10644,111,108,105,110,116,59,32768,10770,97,114,114,59,32768,8649,1024,97,99,104,113,15276,15282,15287,15290,113,117,111,59,32768,8250,114,59,32896,55349,56519,59,32768,8625,512,98,117,15295,15298,59,32768,93,111,512,59,114,15304,15306,32768,8217,59,32768,8217,768,104,105,114,15316,15322,15328,114,101,101,59,32768,8908,109,101,115,59,32768,8906,105,1024,59,101,102,108,15338,15340,15343,15346,32768,9657,59,32768,8885,59,32768,9656,116,114,105,59,32768,10702,108,117,104,97,114,59,32768,10600,59,32768,8478,6706,15391,15398,15404,15499,15516,15592,0,15606,15660,0,0,15752,15758,0,15827,15863,15886,16e3,16006,16038,16086,0,16467,0,0,16506,99,117,116,101,59,32768,347,113,117,111,59,32768,8218,2560,59,69,97,99,101,105,110,112,115,121,15424,15426,15429,15441,15446,15458,15463,15482,15490,15495,32768,8827,59,32768,10932,833,15434,0,15437,59,32768,10936,111,110,59,32768,353,117,101,59,32768,8829,512,59,100,15451,15453,32768,10928,105,108,59,32768,351,114,99,59,32768,349,768,69,97,115,15470,15473,15477,59,32768,10934,112,59,32768,10938,105,109,59,32768,8937,111,108,105,110,116,59,32768,10771,105,109,59,32768,8831,59,32768,1089,111,116,768,59,98,101,15507,15509,15512,32768,8901,59,32768,8865,59,32768,10854,1792,65,97,99,109,115,116,120,15530,15535,15556,15562,15566,15572,15587,114,114,59,32768,8664,114,512,104,114,15541,15545,107,59,32768,10533,512,59,111,15550,15552,32768,8600,119,59,32768,8600,116,33024,167,59,32768,167,105,59,32768,59,119,97,114,59,32768,10537,109,512,105,110,15578,15584,110,117,115,59,32768,8726,59,32768,8726,116,59,32768,10038,114,512,59,111,15597,15600,32896,55349,56624,119,110,59,32768,8994,1024,97,99,111,121,15614,15619,15632,15654,114,112,59,32768,9839,512,104,121,15624,15629,99,121,59,32768,1097,59,32768,1096,114,116,1086,15640,0,0,15645,105,100,59,32768,8739,97,114,97,108,108,101,108,59,32768,8741,33024,173,59,32768,173,512,103,109,15664,15681,109,97,768,59,102,118,15673,15675,15678,32768,963,59,32768,962,59,32768,962,2048,59,100,101,103,108,110,112,114,15698,15700,15705,15715,15725,15735,15739,15745,32768,8764,111,116,59,32768,10858,512,59,113,15710,15712,32768,8771,59,32768,8771,512,59,69,15720,15722,32768,10910,59,32768,10912,512,59,69,15730,15732,32768,10909,59,32768,10911,101,59,32768,8774,108,117,115,59,32768,10788,97,114,114,59,32768,10610,97,114,114,59,32768,8592,1024,97,101,105,116,15766,15788,15796,15808,512,108,115,15771,15783,108,115,101,116,109,105,110,117,115,59,32768,8726,104,112,59,32768,10803,112,97,114,115,108,59,32768,10724,512,100,108,15801,15804,59,32768,8739,101,59,32768,8995,512,59,101,15813,15815,32768,10922,512,59,115,15820,15822,32768,10924,59,32896,10924,65024,768,102,108,112,15833,15839,15857,116,99,121,59,32768,1100,512,59,98,15844,15846,32768,47,512,59,97,15851,15853,32768,10692,114,59,32768,9023,102,59,32896,55349,56676,97,512,100,114,15868,15882,101,115,512,59,117,15875,15877,32768,9824,105,116,59,32768,9824,59,32768,8741,768,99,115,117,15892,15921,15977,512,97,117,15897,15909,112,512,59,115,15903,15905,32768,8851,59,32896,8851,65024,112,512,59,115,15915,15917,32768,8852,59,32896,8852,65024,117,512,98,112,15927,15952,768,59,101,115,15934,15936,15939,32768,8847,59,32768,8849,101,116,512,59,101,15946,15948,32768,8847,113,59,32768,8849,768,59,101,115,15959,15961,15964,32768,8848,59,32768,8850,101,116,512,59,101,15971,15973,32768,8848,113,59,32768,8850,768,59,97,102,15984,15986,15996,32768,9633,114,566,15991,15994,59,32768,9633,59,32768,9642,59,32768,9642,97,114,114,59,32768,8594,1024,99,101,109,116,16014,16019,16025,16031,114,59,32896,55349,56520,116,109,110,59,32768,8726,105,108,101,59,32768,8995,97,114,102,59,32768,8902,512,97,114,16042,16053,114,512,59,102,16048,16050,32768,9734,59,32768,9733,512,97,110,16058,16081,105,103,104,116,512,101,112,16067,16076,112,115,105,108,111,110,59,32768,1013,104,105,59,32768,981,115,59,32768,175,1280,98,99,109,110,112,16096,16221,16288,16291,16295,2304,59,69,100,101,109,110,112,114,115,16115,16117,16120,16125,16137,16143,16154,16160,16166,32768,8834,59,32768,10949,111,116,59,32768,10941,512,59,100,16130,16132,32768,8838,111,116,59,32768,10947,117,108,116,59,32768,10945,512,69,101,16148,16151,59,32768,10955,59,32768,8842,108,117,115,59,32768,10943,97,114,114,59,32768,10617,768,101,105,117,16173,16206,16210,116,768,59,101,110,16181,16183,16194,32768,8834,113,512,59,113,16189,16191,32768,8838,59,32768,10949,101,113,512,59,113,16201,16203,32768,8842,59,32768,10955,109,59,32768,10951,512,98,112,16215,16218,59,32768,10965,59,32768,10963,99,1536,59,97,99,101,110,115,16235,16237,16245,16254,16258,16283,32768,8827,112,112,114,111,120,59,32768,10936,117,114,108,121,101,113,59,32768,8829,113,59,32768,10928,768,97,101,115,16265,16273,16278,112,112,114,111,120,59,32768,10938,113,113,59,32768,10934,105,109,59,32768,8937,105,109,59,32768,8831,59,32768,8721,103,59,32768,9834,3328,49,50,51,59,69,100,101,104,108,109,110,112,115,16322,16327,16332,16337,16339,16342,16356,16368,16382,16388,16394,16405,16411,33024,185,59,32768,185,33024,178,59,32768,178,33024,179,59,32768,179,32768,8835,59,32768,10950,512,111,115,16347,16351,116,59,32768,10942,117,98,59,32768,10968,512,59,100,16361,16363,32768,8839,111,116,59,32768,10948,115,512,111,117,16374,16378,108,59,32768,10185,98,59,32768,10967,97,114,114,59,32768,10619,117,108,116,59,32768,10946,512,69,101,16399,16402,59,32768,10956,59,32768,8843,108,117,115,59,32768,10944,768,101,105,117,16418,16451,16455,116,768,59,101,110,16426,16428,16439,32768,8835,113,512,59,113,16434,16436,32768,8839,59,32768,10950,101,113,512,59,113,16446,16448,32768,8843,59,32768,10956,109,59,32768,10952,512,98,112,16460,16463,59,32768,10964,59,32768,10966,768,65,97,110,16473,16478,16499,114,114,59,32768,8665,114,512,104,114,16484,16488,107,59,32768,10534,512,59,111,16493,16495,32768,8601,119,59,32768,8601,119,97,114,59,32768,10538,108,105,103,33024,223,59,32768,223,5938,16538,16552,16557,16579,16584,16591,0,16596,16692,0,0,0,0,0,16731,16780,0,16787,16908,0,0,0,16938,1091,16543,0,0,16549,103,101,116,59,32768,8982,59,32768,964,114,107,59,32768,9140,768,97,101,121,16563,16569,16575,114,111,110,59,32768,357,100,105,108,59,32768,355,59,32768,1090,111,116,59,32768,8411,108,114,101,99,59,32768,8981,114,59,32896,55349,56625,1024,101,105,107,111,16604,16641,16670,16684,835,16609,0,16624,101,512,52,102,16614,16617,59,32768,8756,111,114,101,59,32768,8756,97,768,59,115,118,16631,16633,16638,32768,952,121,109,59,32768,977,59,32768,977,512,99,110,16646,16665,107,512,97,115,16652,16660,112,112,114,111,120,59,32768,8776,105,109,59,32768,8764,115,112,59,32768,8201,512,97,115,16675,16679,112,59,32768,8776,105,109,59,32768,8764,114,110,33024,254,59,32768,254,829,16696,16701,16727,100,101,59,32768,732,101,115,33536,215,59,98,100,16710,16712,16723,32768,215,512,59,97,16717,16719,32768,8864,114,59,32768,10801,59,32768,10800,116,59,32768,8749,768,101,112,115,16737,16741,16775,97,59,32768,10536,1024,59,98,99,102,16750,16752,16757,16762,32768,8868,111,116,59,32768,9014,105,114,59,32768,10993,512,59,111,16767,16770,32896,55349,56677,114,107,59,32768,10970,97,59,32768,10537,114,105,109,101,59,32768,8244,768,97,105,112,16793,16798,16899,100,101,59,32768,8482,1792,97,100,101,109,112,115,116,16813,16868,16873,16876,16883,16889,16893,110,103,108,101,1280,59,100,108,113,114,16828,16830,16836,16850,16853,32768,9653,111,119,110,59,32768,9663,101,102,116,512,59,101,16844,16846,32768,9667,113,59,32768,8884,59,32768,8796,105,103,104,116,512,59,101,16862,16864,32768,9657,113,59,32768,8885,111,116,59,32768,9708,59,32768,8796,105,110,117,115,59,32768,10810,108,117,115,59,32768,10809,98,59,32768,10701,105,109,101,59,32768,10811,101,122,105,117,109,59,32768,9186,768,99,104,116,16914,16926,16931,512,114,121,16919,16923,59,32896,55349,56521,59,32768,1094,99,121,59,32768,1115,114,111,107,59,32768,359,512,105,111,16942,16947,120,116,59,32768,8812,104,101,97,100,512,108,114,16956,16967,101,102,116,97,114,114,111,119,59,32768,8606,105,103,104,116,97,114,114,111,119,59,32768,8608,4608,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,17016,17021,17026,17043,17057,17072,17095,17110,17119,17139,17172,17187,17202,17290,17330,17336,17365,17381,114,114,59,32768,8657,97,114,59,32768,10595,512,99,114,17031,17039,117,116,101,33024,250,59,32768,250,114,59,32768,8593,114,820,17049,0,17053,121,59,32768,1118,118,101,59,32768,365,512,105,121,17062,17069,114,99,33024,251,59,32768,251,59,32768,1091,768,97,98,104,17079,17084,17090,114,114,59,32768,8645,108,97,99,59,32768,369,97,114,59,32768,10606,512,105,114,17100,17106,115,104,116,59,32768,10622,59,32896,55349,56626,114,97,118,101,33024,249,59,32768,249,562,17123,17135,114,512,108,114,17128,17131,59,32768,8639,59,32768,8638,108,107,59,32768,9600,512,99,116,17144,17167,1088,17150,0,0,17163,114,110,512,59,101,17156,17158,32768,8988,114,59,32768,8988,111,112,59,32768,8975,114,105,59,32768,9720,512,97,108,17177,17182,99,114,59,32768,363,33024,168,59,32768,168,512,103,112,17192,17197,111,110,59,32768,371,102,59,32896,55349,56678,1536,97,100,104,108,115,117,17215,17222,17233,17257,17262,17280,114,114,111,119,59,32768,8593,111,119,110,97,114,114,111,119,59,32768,8597,97,114,112,111,111,110,512,108,114,17244,17250,101,102,116,59,32768,8639,105,103,104,116,59,32768,8638,117,115,59,32768,8846,105,768,59,104,108,17270,17272,17275,32768,965,59,32768,978,111,110,59,32768,965,112,97,114,114,111,119,115,59,32768,8648,768,99,105,116,17297,17320,17325,1088,17303,0,0,17316,114,110,512,59,101,17309,17311,32768,8989,114,59,32768,8989,111,112,59,32768,8974,110,103,59,32768,367,114,105,59,32768,9721,99,114,59,32896,55349,56522,768,100,105,114,17343,17348,17354,111,116,59,32768,8944,108,100,101,59,32768,361,105,512,59,102,17360,17362,32768,9653,59,32768,9652,512,97,109,17370,17375,114,114,59,32768,8648,108,33024,252,59,32768,252,97,110,103,108,101,59,32768,10663,3840,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,17420,17425,17437,17443,17613,17617,17623,17667,17672,17678,17693,17699,17705,17711,17754,114,114,59,32768,8661,97,114,512,59,118,17432,17434,32768,10984,59,32768,10985,97,115,104,59,32768,8872,512,110,114,17448,17454,103,114,116,59,32768,10652,1792,101,107,110,112,114,115,116,17469,17478,17485,17494,17515,17526,17578,112,115,105,108,111,110,59,32768,1013,97,112,112,97,59,32768,1008,111,116,104,105,110,103,59,32768,8709,768,104,105,114,17501,17505,17508,105,59,32768,981,59,32768,982,111,112,116,111,59,32768,8733,512,59,104,17520,17522,32768,8597,111,59,32768,1009,512,105,117,17531,17537,103,109,97,59,32768,962,512,98,112,17542,17560,115,101,116,110,101,113,512,59,113,17553,17556,32896,8842,65024,59,32896,10955,65024,115,101,116,110,101,113,512,59,113,17571,17574,32896,8843,65024,59,32896,10956,65024,512,104,114,17583,17589,101,116,97,59,32768,977,105,97,110,103,108,101,512,108,114,17600,17606,101,102,116,59,32768,8882,105,103,104,116,59,32768,8883,121,59,32768,1074,97,115,104,59,32768,8866,768,101,108,114,17630,17648,17654,768,59,98,101,17637,17639,17644,32768,8744,97,114,59,32768,8891,113,59,32768,8794,108,105,112,59,32768,8942,512,98,116,17659,17664,97,114,59,32768,124,59,32768,124,114,59,32896,55349,56627,116,114,105,59,32768,8882,115,117,512,98,112,17685,17689,59,32896,8834,8402,59,32896,8835,8402,112,102,59,32896,55349,56679,114,111,112,59,32768,8733,116,114,105,59,32768,8883,512,99,117,17716,17721,114,59,32896,55349,56523,512,98,112,17726,17740,110,512,69,101,17732,17736,59,32896,10955,65024,59,32896,8842,65024,110,512,69,101,17746,17750,59,32896,10956,65024,59,32896,8843,65024,105,103,122,97,103,59,32768,10650,1792,99,101,102,111,112,114,115,17777,17783,17815,17820,17826,17829,17842,105,114,99,59,32768,373,512,100,105,17788,17809,512,98,103,17793,17798,97,114,59,32768,10847,101,512,59,113,17804,17806,32768,8743,59,32768,8793,101,114,112,59,32768,8472,114,59,32896,55349,56628,112,102,59,32896,55349,56680,59,32768,8472,512,59,101,17834,17836,32768,8768,97,116,104,59,32768,8768,99,114,59,32896,55349,56524,5428,17871,17891,0,17897,0,17902,17917,0,0,17920,17935,17940,17945,0,0,17977,17992,0,18008,18024,18029,768,97,105,117,17877,17881,17886,112,59,32768,8898,114,99,59,32768,9711,112,59,32768,8899,116,114,105,59,32768,9661,114,59,32896,55349,56629,512,65,97,17906,17911,114,114,59,32768,10234,114,114,59,32768,10231,59,32768,958,512,65,97,17924,17929,114,114,59,32768,10232,114,114,59,32768,10229,97,112,59,32768,10236,105,115,59,32768,8955,768,100,112,116,17951,17956,17970,111,116,59,32768,10752,512,102,108,17961,17965,59,32896,55349,56681,117,115,59,32768,10753,105,109,101,59,32768,10754,512,65,97,17981,17986,114,114,59,32768,10233,114,114,59,32768,10230,512,99,113,17996,18001,114,59,32896,55349,56525,99,117,112,59,32768,10758,512,112,116,18012,18018,108,117,115,59,32768,10756,114,105,59,32768,9651,101,101,59,32768,8897,101,100,103,101,59,32768,8896,2048,97,99,101,102,105,111,115,117,18052,18068,18081,18087,18092,18097,18103,18109,99,512,117,121,18058,18065,116,101,33024,253,59,32768,253,59,32768,1103,512,105,121,18073,18078,114,99,59,32768,375,59,32768,1099,110,33024,165,59,32768,165,114,59,32896,55349,56630,99,121,59,32768,1111,112,102,59,32896,55349,56682,99,114,59,32896,55349,56526,512,99,109,18114,18118,121,59,32768,1102,108,33024,255,59,32768,255,2560,97,99,100,101,102,104,105,111,115,119,18145,18152,18166,18171,18186,18191,18196,18204,18210,18216,99,117,116,101,59,32768,378,512,97,121,18157,18163,114,111,110,59,32768,382,59,32768,1079,111,116,59,32768,380,512,101,116,18176,18182,116,114,102,59,32768,8488,97,59,32768,950,114,59,32896,55349,56631,99,121,59,32768,1078,103,114,97,114,114,59,32768,8669,112,102,59,32896,55349,56683,99,114,59,32896,55349,56527,512,106,110,18221,18224,59,32768,8205,106,59,32768,8204])});var Zs=u(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.default=new Uint16Array([1024,97,103,108,113,9,23,27,31,1086,15,0,0,19,112,59,32768,38,111,115,59,32768,39,116,59,32768,62,116,59,32768,60,117,111,116,59,32768,34])});var i1=u(te=>{"use strict";var Cr=te&&te.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(te,"__esModule",{value:!0});te.decodeXML=te.decodeHTMLStrict=te.decodeHTML=te.determineBranch=te.JUMP_OFFSET_BASE=te.BinTrieFlags=te.xmlDecodeTree=te.htmlDecodeTree=void 0;var Ks=Cr(Xs());te.htmlDecodeTree=Ks.default;var Qs=Cr(Zs());te.xmlDecodeTree=Qs.default;var Du=Cr(vr()),xi;(function(t){t[t.HAS_VALUE=32768]="HAS_VALUE",t[t.BRANCH_LENGTH=32512]="BRANCH_LENGTH",t[t.MULTI_BYTE=128]="MULTI_BYTE",t[t.JUMP_TABLE=127]="JUMP_TABLE"})(xi=te.BinTrieFlags||(te.BinTrieFlags={}));te.JUMP_OFFSET_BASE=47;function Js(t){return function(i,n){for(var r="",o=0,s=0;(s=i.indexOf("&",s))>=0;){if(r+=i.slice(o,s),o=s,s+=1,i.charCodeAt(s)===35){var a=s+1,c=10,l=i.charCodeAt(a);for((l|32)===120&&(c=16,s+=1,a+=1);(l=i.charCodeAt(++s))>=48&&l<=57||c===16&&(l|32)>=97&&(l|32)<=102;);if(a!==s){var d=i.substring(a,s),v=parseInt(d,c);if(i.charCodeAt(s)===59)s+=1;else if(n)continue;r+=Du.default(v),o=s}continue}for(var C=null,g=1,h=0,f=t[h];s>8;if(r===0)return-1;if(r===1)return n===t[i]?i+1:-1;var o=e&xi.JUMP_TABLE;if(o){var s=n-te.JUMP_OFFSET_BASE-o;return s<0||s>r?-1:t[i+s]-1}for(var a=i,c=a+r-1;a<=c;){var l=a+c>>>1,d=t[l];if(dn)c=l-1;else return t[l+r]}return-1}te.determineBranch=e1;var t1=Js(Ks.default),Eu=Js(Qs.default);function Ou(t){return t1(t,!1)}te.decodeHTML=Ou;function xu(t){return t1(t,!0)}te.decodeHTMLStrict=xu;function Su(t){return Eu(t,!0)}te.decodeXML=Su});var wr=u(Mi=>{"use strict";var Mu=Mi&&Mi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Mi,"__esModule",{value:!0});var Au=Mu(vr()),Si=i1();function lt(t){return t===32||t===10||t===9||t===12||t===13}function fn(t){return t===47||t===62||lt(t)}function n1(t){return t>=48&&t<=57}function Iu(t){return t>=97&&t<=122||t>=65&&t<=90}var Oe={Cdata:new Uint16Array([67,68,65,84,65,91]),CdataEnd:new Uint16Array([93,93,62]),CommentEnd:new Uint16Array([45,45,62]),ScriptEnd:new Uint16Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint16Array([60,47,115,116,121,108,101]),TitleEnd:new Uint16Array([60,47,116,105,116,108,101])},Pu=function(){function t(e,i){var n=e.xmlMode,r=n===void 0?!1:n,o=e.decodeEntities,s=o===void 0?!0:o;this.cbs=i,this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.isSpecial=!1,this.running=!0,this.ended=!1,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.trieResult=null,this.entityExcess=0,this.xmlMode=r,this.decodeEntities=s,this.entityTrie=r?Si.xmlDecodeTree:Si.htmlDecodeTree}return t.prototype.reset=function(){this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.currentSequence=void 0,this.running=!0,this.ended=!1},t.prototype.write=function(e){if(this.ended)return this.cbs.onerror(Error(".write() after done!"));this.buffer+=e,this.parse()},t.prototype.end=function(e){if(this.ended)return this.cbs.onerror(Error(".end() after done!"));e&&this.write(e),this.ended=!0,this.running&&this.finish()},t.prototype.pause=function(){this.running=!1},t.prototype.resume=function(){this.running=!0,this._indexthis.sectionStart&&this.cbs.ontext(this.getSection()),this._state=2,this.sectionStart=this._index):this.decodeEntities&&e===38&&(this._state=25)},t.prototype.stateSpecialStartSequence=function(e){var i=this.sequenceIndex===this.currentSequence.length,n=i?fn(e):(e|32)===this.currentSequence[this.sequenceIndex];if(!n)this.isSpecial=!1;else if(!i){this.sequenceIndex++;return}this.sequenceIndex=0,this._state=3,this.stateInTagName(e)},t.prototype.stateInSpecialTag=function(e){if(this.sequenceIndex===this.currentSequence.length){if(e===62||lt(e)){var i=this._index-this.currentSequence.length;if(this.sectionStartthis.sectionStart&&this.emitPartial(this.buffer.substring(this.sectionStart,i)),this.trieResult=this.trieCurrent&Si.BinTrieFlags.MULTI_BYTE?String.fromCharCode(this.entityTrie[++this.trieIndex],this.entityTrie[++this.trieIndex]):String.fromCharCode(this.entityTrie[++this.trieIndex]),this.entityExcess=0,this.sectionStart=this._index+1}},t.prototype.emitNamedEntity=function(){this.trieResult&&this.emitPartial(this.trieResult),this._state=this.baseState},t.prototype.stateBeforeNumericEntity=function(e){(e|32)===120?(this.entityExcess++,this._state=29):(this._state=28,this.stateInNumericEntity(e))},t.prototype.decodeNumericEntity=function(e,i){var n=this._index-this.entityExcess-1,r=n+2+(e>>4);if(r!==this._index){n>this.sectionStart&&this.emitPartial(this.buffer.substring(this.sectionStart,n));var o=this.buffer.substring(r,this._index),s=parseInt(o,e);this.emitPartial((0,Au.default)(s)),this.sectionStart=this._index+Number(i)}this._state=this.baseState},t.prototype.stateInNumericEntity=function(e){e===59?this.decodeNumericEntity(10,!0):n1(e)?this.entityExcess++:(this.allowLegacyEntity()?this.decodeNumericEntity(10,!1):this._state=this.baseState,this._index--)},t.prototype.stateInHexEntity=function(e){e===59?this.decodeNumericEntity(16,!0):(e<97||e>102)&&(e<65||e>70)&&!n1(e)?(this.allowLegacyEntity()?this.decodeNumericEntity(16,!1):this._state=this.baseState,this._index--):this.entityExcess++},t.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===1||this.baseState===24)},t.prototype.cleanup=function(){this.running&&this.sectionStart!==this._index&&(this._state===1||this._state===24&&this.sequenceIndex===0)&&(this.cbs.ontext(this.buffer.substr(this.sectionStart)),this.sectionStart=this._index);var e=this.sectionStart<0?this._index:this.sectionStart;this.buffer=e===this.buffer.length?"":this.buffer.substr(e),this._index-=e,this.bufferOffset+=e,this.sectionStart>0&&(this.sectionStart=0)},t.prototype.shouldContinue=function(){return this._index{"use strict";var Tu=ni&&ni.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ni,"__esModule",{value:!0});ni.Parser=void 0;var ku=Tu(wr()),ii=new Set(["input","option","optgroup","select","button","datalist","textarea"]),L=new Set(["p"]),r1=new Set(["thead","tbody"]),o1=new Set(["dd","dt"]),s1=new Set(["rt","rp"]),Ru=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",L],["h1",L],["h2",L],["h3",L],["h4",L],["h5",L],["h6",L],["select",ii],["input",ii],["output",ii],["button",ii],["datalist",ii],["textarea",ii],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",o1],["dt",o1],["address",L],["article",L],["aside",L],["blockquote",L],["details",L],["div",L],["dl",L],["fieldset",L],["figcaption",L],["figure",L],["footer",L],["form",L],["header",L],["hr",L],["main",L],["nav",L],["ol",L],["pre",L],["section",L],["table",L],["ul",L],["rt",s1],["rp",s1],["tbody",r1],["tfoot",r1]]),Fu=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),a1=new Set(["math","svg"]),c1=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),Nu=/\s|\//,Vu=function(){function t(e,i){i===void 0&&(i={});var n,r,o,s,a;this.options=i,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.cbs=e??{},this.lowerCaseTagNames=(n=i.lowerCaseTags)!==null&&n!==void 0?n:!i.xmlMode,this.lowerCaseAttributeNames=(r=i.lowerCaseAttributeNames)!==null&&r!==void 0?r:!i.xmlMode,this.tokenizer=new((o=i.Tokenizer)!==null&&o!==void 0?o:ku.default)(this.options,this),(a=(s=this.cbs).onparserinit)===null||a===void 0||a.call(s,this)}return t.prototype.ontext=function(e){var i,n,r=this.tokenizer.getAbsoluteIndex();this.endIndex=r-1,(n=(i=this.cbs).ontext)===null||n===void 0||n.call(i,e),this.startIndex=r},t.prototype.isVoidElement=function(e){return!this.options.xmlMode&&Fu.has(e)},t.prototype.onopentagname=function(e){this.endIndex=this.tokenizer.getAbsoluteIndex(),this.lowerCaseTagNames&&(e=e.toLowerCase()),this.emitOpenTag(e)},t.prototype.emitOpenTag=function(e){var i,n,r,o;this.openTagStart=this.startIndex,this.tagname=e;var s=!this.options.xmlMode&&Ru.get(e);if(s)for(;this.stack.length>0&&s.has(this.stack[this.stack.length-1]);){var a=this.stack.pop();(n=(i=this.cbs).onclosetag)===null||n===void 0||n.call(i,a,!0)}this.isVoidElement(e)||(this.stack.push(e),a1.has(e)?this.foreignContext.push(!0):c1.has(e)&&this.foreignContext.push(!1)),(o=(r=this.cbs).onopentagname)===null||o===void 0||o.call(r,e),this.cbs.onopentag&&(this.attribs={})},t.prototype.endOpenTag=function(e){var i,n;this.startIndex=this.openTagStart,this.endIndex=this.tokenizer.getAbsoluteIndex(),this.attribs&&((n=(i=this.cbs).onopentag)===null||n===void 0||n.call(i,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},t.prototype.onopentagend=function(){this.endOpenTag(!1),this.startIndex=this.endIndex+1},t.prototype.onclosetag=function(e){var i,n,r,o,s,a;if(this.endIndex=this.tokenizer.getAbsoluteIndex(),this.lowerCaseTagNames&&(e=e.toLowerCase()),(a1.has(e)||c1.has(e))&&this.foreignContext.pop(),this.isVoidElement(e))!this.options.xmlMode&&e==="br"&&((n=(i=this.cbs).onopentagname)===null||n===void 0||n.call(i,e),(o=(r=this.cbs).onopentag)===null||o===void 0||o.call(r,e,{},!0),(a=(s=this.cbs).onclosetag)===null||a===void 0||a.call(s,e,!1));else{var c=this.stack.lastIndexOf(e);if(c!==-1)if(this.cbs.onclosetag)for(var l=this.stack.length-c;l--;)this.cbs.onclosetag(this.stack.pop(),l!==0);else this.stack.length=c;else!this.options.xmlMode&&e==="p"&&(this.emitOpenTag(e),this.closeCurrentTag(!0))}this.startIndex=this.endIndex+1},t.prototype.onselfclosingtag=function(){this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=this.endIndex+1):this.onopentagend()},t.prototype.closeCurrentTag=function(e){var i,n,r=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===r&&((n=(i=this.cbs).onclosetag)===null||n===void 0||n.call(i,r,!e),this.stack.pop())},t.prototype.onattribname=function(e){this.startIndex=this.tokenizer.getAbsoluteSectionStart(),this.lowerCaseAttributeNames&&(e=e.toLowerCase()),this.attribname=e},t.prototype.onattribdata=function(e){this.attribvalue+=e},t.prototype.onattribend=function(e){var i,n;this.endIndex=this.tokenizer.getAbsoluteIndex(),(n=(i=this.cbs).onattribute)===null||n===void 0||n.call(i,this.attribname,this.attribvalue,e),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribname="",this.attribvalue=""},t.prototype.getInstructionName=function(e){var i=e.search(Nu),n=i<0?e:e.substr(0,i);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},t.prototype.ondeclaration=function(e){if(this.endIndex=this.tokenizer.getAbsoluteIndex(),this.cbs.onprocessinginstruction){var i=this.getInstructionName(e);this.cbs.onprocessinginstruction("!"+i,"!"+e)}this.startIndex=this.endIndex+1},t.prototype.onprocessinginstruction=function(e){if(this.endIndex=this.tokenizer.getAbsoluteIndex(),this.cbs.onprocessinginstruction){var i=this.getInstructionName(e);this.cbs.onprocessinginstruction("?"+i,"?"+e)}this.startIndex=this.endIndex+1},t.prototype.oncomment=function(e){var i,n,r,o;this.endIndex=this.tokenizer.getAbsoluteIndex(),(n=(i=this.cbs).oncomment)===null||n===void 0||n.call(i,e),(o=(r=this.cbs).oncommentend)===null||o===void 0||o.call(r),this.startIndex=this.endIndex+1},t.prototype.oncdata=function(e){var i,n,r,o,s,a,c,l,d,v;this.endIndex=this.tokenizer.getAbsoluteIndex(),this.options.xmlMode||this.options.recognizeCDATA?((n=(i=this.cbs).oncdatastart)===null||n===void 0||n.call(i),(o=(r=this.cbs).ontext)===null||o===void 0||o.call(r,e),(a=(s=this.cbs).oncdataend)===null||a===void 0||a.call(s)):((l=(c=this.cbs).oncomment)===null||l===void 0||l.call(c,"[CDATA["+e+"]]"),(v=(d=this.cbs).oncommentend)===null||v===void 0||v.call(d)),this.startIndex=this.endIndex+1},t.prototype.onerror=function(e){var i,n;(n=(i=this.cbs).onerror)===null||n===void 0||n.call(i,e)},t.prototype.onend=function(){var e,i;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}(i=(e=this.cbs).onend)===null||i===void 0||i.call(e)},t.prototype.reset=function(){var e,i,n,r;(i=(e=this.cbs).onreset)===null||i===void 0||i.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack=[],this.startIndex=0,this.endIndex=0,(r=(n=this.cbs).onparserinit)===null||r===void 0||r.call(n,this)},t.prototype.parseComplete=function(e){this.reset(),this.end(e)},t.prototype.write=function(e){this.tokenizer.write(e)},t.prototype.end=function(e){this.tokenizer.end(e)},t.prototype.pause=function(){this.tokenizer.pause()},t.prototype.resume=function(){this.tokenizer.resume()},t.prototype.parseChunk=function(e){this.write(e)},t.prototype.done=function(e){this.end(e)},t}();ni.Parser=Vu});var ri=u(Y=>{"use strict";Object.defineProperty(Y,"__esModule",{value:!0});Y.Doctype=Y.CDATA=Y.Tag=Y.Style=Y.Script=Y.Comment=Y.Directive=Y.Text=Y.Root=Y.isTag=Y.ElementType=void 0;var Te;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(Te=Y.ElementType||(Y.ElementType={}));function ju(t){return t.type===Te.Tag||t.type===Te.Script||t.type===Te.Style}Y.isTag=ju;Y.Root=Te.Root;Y.Text=Te.Text;Y.Directive=Te.Directive;Y.Comment=Te.Comment;Y.Script=Te.Script;Y.Style=Te.Style;Y.Tag=Te.Tag;Y.CDATA=Te.CDATA;Y.Doctype=Te.Doctype});var Sr=u(O=>{"use strict";var kt=O&&O.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},t(e,i)};return function(e,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(e,i);function n(){this.constructor=e}e.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}}(),Ai=O&&O.__assign||function(){return Ai=Object.assign||function(t){for(var e,i=1,n=arguments.length;i0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(i){this.children=i},enumerable:!1,configurable:!0}),e}(Or);O.NodeWithChildren=gn;var h1=function(t){kt(e,t);function e(i){return t.call(this,ie.ElementType.Root,i)||this}return e}(gn);O.Document=h1;var f1=function(t){kt(e,t);function e(i,n,r,o){r===void 0&&(r=[]),o===void 0&&(o=i==="script"?ie.ElementType.Script:i==="style"?ie.ElementType.Style:ie.ElementType.Tag);var s=t.call(this,o,r)||this;return s.name=i,s.attribs=n,s}return Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(i){this.name=i},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var i=this;return Object.keys(this.attribs).map(function(n){var r,o;return{name:n,value:i.attribs[n],namespace:(r=i["x-attribsNamespace"])===null||r===void 0?void 0:r[n],prefix:(o=i["x-attribsPrefix"])===null||o===void 0?void 0:o[n]}})},enumerable:!1,configurable:!0}),e}(gn);O.Element=f1;function p1(t){return(0,ie.isTag)(t)}O.isTag=p1;function g1(t){return t.type===ie.ElementType.CDATA}O.isCDATA=g1;function m1(t){return t.type===ie.ElementType.Text}O.isText=m1;function _1(t){return t.type===ie.ElementType.Comment}O.isComment=_1;function v1(t){return t.type===ie.ElementType.Directive}O.isDirective=v1;function y1(t){return t.type===ie.ElementType.Root}O.isDocument=y1;function Bu(t){return Object.prototype.hasOwnProperty.call(t,"children")}O.hasChildren=Bu;function xr(t,e){e===void 0&&(e=!1);var i;if(m1(t))i=new l1(t.data);else if(_1(t))i=new u1(t.data);else if(p1(t)){var n=e?Er(t.children):[],r=new f1(t.name,Ai({},t.attribs),n);n.forEach(function(c){return c.parent=r}),t.namespace!=null&&(r.namespace=t.namespace),t["x-attribsNamespace"]&&(r["x-attribsNamespace"]=Ai({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(r["x-attribsPrefix"]=Ai({},t["x-attribsPrefix"])),i=r}else if(g1(t)){var n=e?Er(t.children):[],o=new gn(ie.ElementType.CDATA,n);n.forEach(function(l){return l.parent=o}),i=o}else if(y1(t)){var n=e?Er(t.children):[],s=new h1(n);n.forEach(function(l){return l.parent=s}),t["x-mode"]&&(s["x-mode"]=t["x-mode"]),i=s}else if(v1(t)){var a=new d1(t.name,t.data);t["x-name"]!=null&&(a["x-name"]=t["x-name"],a["x-publicId"]=t["x-publicId"],a["x-systemId"]=t["x-systemId"]),i=a}else throw new Error("Not implemented yet: ".concat(t.type));return i.startIndex=t.startIndex,i.endIndex=t.endIndex,t.sourceCodeLocation!=null&&(i.sourceCodeLocation=t.sourceCodeLocation),i}O.cloneNode=xr;function Er(t){for(var e=t.map(function(n){return xr(n,!0)}),i=1;i{"use strict";var qu=Je&&Je.__createBinding||(Object.create?function(t,e,i,n){n===void 0&&(n=i);var r=Object.getOwnPropertyDescriptor(e,i);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,r)}:function(t,e,i,n){n===void 0&&(n=i),t[n]=e[i]}),Hu=Je&&Je.__exportStar||function(t,e){for(var i in t)i!=="default"&&!Object.prototype.hasOwnProperty.call(e,i)&&qu(e,t,i)};Object.defineProperty(Je,"__esModule",{value:!0});Je.DomHandler=void 0;var mn=ri(),Ot=Sr();Hu(Sr(),Je);var b1=/\s+/g,C1={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},w1=function(){function t(e,i,n){this.dom=[],this.root=new Ot.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof i=="function"&&(n=i,i=C1),typeof e=="object"&&(i=e,e=void 0),this.callback=e??null,this.options=i??C1,this.elementCB=n??null}return t.prototype.onparserinit=function(e){this.parser=e},t.prototype.onreset=function(){this.dom=[],this.root=new Ot.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},t.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},t.prototype.onerror=function(e){this.handleCallback(e)},t.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},t.prototype.onopentag=function(e,i){var n=this.options.xmlMode?mn.ElementType.Tag:void 0,r=new Ot.Element(e,i,void 0,n);this.addNode(r),this.tagStack.push(r)},t.prototype.ontext=function(e){var i=this.options.normalizeWhitespace,n=this.lastNode;if(n&&n.type===mn.ElementType.Text)i?n.data=(n.data+e).replace(b1," "):n.data+=e,this.options.withEndIndices&&(n.endIndex=this.parser.endIndex);else{i&&(e=e.replace(b1," "));var r=new Ot.Text(e);this.addNode(r),this.lastNode=r}},t.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===mn.ElementType.Comment){this.lastNode.data+=e;return}var i=new Ot.Comment(e);this.addNode(i),this.lastNode=i},t.prototype.oncommentend=function(){this.lastNode=null},t.prototype.oncdatastart=function(){var e=new Ot.Text(""),i=new Ot.NodeWithChildren(mn.ElementType.CDATA,[e]);this.addNode(i),e.parent=i,this.lastNode=e},t.prototype.oncdataend=function(){this.lastNode=null},t.prototype.onprocessinginstruction=function(e,i){var n=new Ot.ProcessingInstruction(e,i);this.addNode(n)},t.prototype.handleCallback=function(e){if(typeof this.callback=="function")this.callback(e,this.dom);else if(e)throw e},t.prototype.addNode=function(e){var i=this.tagStack[this.tagStack.length-1],n=i.children[i.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),i.children.push(e),n&&(e.prev=n,n.next=e),e.parent=i,this.lastNode=null},t}();Je.DomHandler=w1;Je.default=w1});var Mr=u((V9,Uu)=>{Uu.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` +`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}});var D1=u((j9,zu)=>{zu.exports={Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",AElig:"\xC6",aelig:"\xE6",Agrave:"\xC0",agrave:"\xE0",amp:"&",AMP:"&",Aring:"\xC5",aring:"\xE5",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",brvbar:"\xA6",Ccedil:"\xC7",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",COPY:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Egrave:"\xC8",egrave:"\xE8",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",GT:">",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",iexcl:"\xA1",Igrave:"\xCC",igrave:"\xEC",iquest:"\xBF",Iuml:"\xCF",iuml:"\xEF",laquo:"\xAB",lt:"<",LT:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",Ntilde:"\xD1",ntilde:"\xF1",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Ograve:"\xD2",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",Oslash:"\xD8",oslash:"\xF8",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',QUOT:'"',raquo:"\xBB",reg:"\xAE",REG:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",THORN:"\xDE",thorn:"\xFE",times:"\xD7",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Ugrave:"\xD9",ugrave:"\xF9",uml:"\xA8",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}});var Ar=u((L9,Gu)=>{Gu.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}});var E1=u((B9,Wu)=>{Wu.exports={"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}});var x1=u(Ii=>{"use strict";var Yu=Ii&&Ii.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ii,"__esModule",{value:!0});var O1=Yu(E1()),$u=String.fromCodePoint||function(t){var e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023),e+=String.fromCharCode(t),e};function Xu(t){return t>=55296&&t<=57343||t>1114111?"\uFFFD":(t in O1.default&&(t=O1.default[t]),$u(t))}Ii.default=Xu});var Pr=u(et=>{"use strict";var _n=et&&et.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(et,"__esModule",{value:!0});et.decodeHTML=et.decodeHTMLStrict=et.decodeXML=void 0;var Ir=_n(Mr()),Zu=_n(D1()),Ku=_n(Ar()),S1=_n(x1()),Qu=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;et.decodeXML=A1(Ku.default);et.decodeHTMLStrict=A1(Ir.default);function A1(t){var e=I1(t);return function(i){return String(i).replace(Qu,e)}}var M1=function(t,e){return t{"use strict";var P1=xe&&xe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(xe,"__esModule",{value:!0});xe.escapeUTF8=xe.escape=xe.encodeNonAsciiHTML=xe.encodeHTML=xe.encodeXML=void 0;var Ju=P1(Ar()),T1=R1(Ju.default),k1=F1(T1);xe.encodeXML=j1(T1);var ed=P1(Mr()),Tr=R1(ed.default),td=F1(Tr);xe.encodeHTML=nd(Tr,td);xe.encodeNonAsciiHTML=j1(Tr);function R1(t){return Object.keys(t).sort().reduce(function(e,i){return e[t[i]]="&"+i+";",e},{})}function F1(t){for(var e=[],i=[],n=0,r=Object.keys(t);n1?id(t):t.charCodeAt(0)).toString(16).toUpperCase()+";"}function nd(t,e){return function(i){return i.replace(e,function(n){return t[n]}).replace(N1,vn)}}var V1=new RegExp(k1.source+"|"+N1.source,"g");function rd(t){return t.replace(V1,vn)}xe.escape=rd;function od(t){return t.replace(k1,vn)}xe.escapeUTF8=od;function j1(t){return function(e){return e.replace(V1,function(i){return t[i]||vn(i)})}}});var B1=u(x=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});x.decodeXMLStrict=x.decodeHTML5Strict=x.decodeHTML4Strict=x.decodeHTML5=x.decodeHTML4=x.decodeHTMLStrict=x.decodeHTML=x.decodeXML=x.encodeHTML5=x.encodeHTML4=x.escapeUTF8=x.escape=x.encodeNonAsciiHTML=x.encodeHTML=x.encodeXML=x.encode=x.decodeStrict=x.decode=void 0;var yn=Pr(),L1=kr();function sd(t,e){return(!e||e<=0?yn.decodeXML:yn.decodeHTML)(t)}x.decode=sd;function ad(t,e){return(!e||e<=0?yn.decodeXML:yn.decodeHTMLStrict)(t)}x.decodeStrict=ad;function cd(t,e){return(!e||e<=0?L1.encodeXML:L1.encodeHTML)(t)}x.encode=cd;var Rt=kr();Object.defineProperty(x,"encodeXML",{enumerable:!0,get:function(){return Rt.encodeXML}});Object.defineProperty(x,"encodeHTML",{enumerable:!0,get:function(){return Rt.encodeHTML}});Object.defineProperty(x,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return Rt.encodeNonAsciiHTML}});Object.defineProperty(x,"escape",{enumerable:!0,get:function(){return Rt.escape}});Object.defineProperty(x,"escapeUTF8",{enumerable:!0,get:function(){return Rt.escapeUTF8}});Object.defineProperty(x,"encodeHTML4",{enumerable:!0,get:function(){return Rt.encodeHTML}});Object.defineProperty(x,"encodeHTML5",{enumerable:!0,get:function(){return Rt.encodeHTML}});var xt=Pr();Object.defineProperty(x,"decodeXML",{enumerable:!0,get:function(){return xt.decodeXML}});Object.defineProperty(x,"decodeHTML",{enumerable:!0,get:function(){return xt.decodeHTML}});Object.defineProperty(x,"decodeHTMLStrict",{enumerable:!0,get:function(){return xt.decodeHTMLStrict}});Object.defineProperty(x,"decodeHTML4",{enumerable:!0,get:function(){return xt.decodeHTML}});Object.defineProperty(x,"decodeHTML5",{enumerable:!0,get:function(){return xt.decodeHTML}});Object.defineProperty(x,"decodeHTML4Strict",{enumerable:!0,get:function(){return xt.decodeHTMLStrict}});Object.defineProperty(x,"decodeHTML5Strict",{enumerable:!0,get:function(){return xt.decodeHTMLStrict}});Object.defineProperty(x,"decodeXMLStrict",{enumerable:!0,get:function(){return xt.decodeXML}})});var q1=u(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.attributeNames=oi.elementNames=void 0;oi.elementNames=new Map([["altglyph","altGlyph"],["altglyphdef","altGlyphDef"],["altglyphitem","altGlyphItem"],["animatecolor","animateColor"],["animatemotion","animateMotion"],["animatetransform","animateTransform"],["clippath","clipPath"],["feblend","feBlend"],["fecolormatrix","feColorMatrix"],["fecomponenttransfer","feComponentTransfer"],["fecomposite","feComposite"],["feconvolvematrix","feConvolveMatrix"],["fediffuselighting","feDiffuseLighting"],["fedisplacementmap","feDisplacementMap"],["fedistantlight","feDistantLight"],["fedropshadow","feDropShadow"],["feflood","feFlood"],["fefunca","feFuncA"],["fefuncb","feFuncB"],["fefuncg","feFuncG"],["fefuncr","feFuncR"],["fegaussianblur","feGaussianBlur"],["feimage","feImage"],["femerge","feMerge"],["femergenode","feMergeNode"],["femorphology","feMorphology"],["feoffset","feOffset"],["fepointlight","fePointLight"],["fespecularlighting","feSpecularLighting"],["fespotlight","feSpotLight"],["fetile","feTile"],["feturbulence","feTurbulence"],["foreignobject","foreignObject"],["glyphref","glyphRef"],["lineargradient","linearGradient"],["radialgradient","radialGradient"],["textpath","textPath"]]);oi.attributeNames=new Map([["definitionurl","definitionURL"],["attributename","attributeName"],["attributetype","attributeType"],["basefrequency","baseFrequency"],["baseprofile","baseProfile"],["calcmode","calcMode"],["clippathunits","clipPathUnits"],["diffuseconstant","diffuseConstant"],["edgemode","edgeMode"],["filterunits","filterUnits"],["glyphref","glyphRef"],["gradienttransform","gradientTransform"],["gradientunits","gradientUnits"],["kernelmatrix","kernelMatrix"],["kernelunitlength","kernelUnitLength"],["keypoints","keyPoints"],["keysplines","keySplines"],["keytimes","keyTimes"],["lengthadjust","lengthAdjust"],["limitingconeangle","limitingConeAngle"],["markerheight","markerHeight"],["markerunits","markerUnits"],["markerwidth","markerWidth"],["maskcontentunits","maskContentUnits"],["maskunits","maskUnits"],["numoctaves","numOctaves"],["pathlength","pathLength"],["patterncontentunits","patternContentUnits"],["patterntransform","patternTransform"],["patternunits","patternUnits"],["pointsatx","pointsAtX"],["pointsaty","pointsAtY"],["pointsatz","pointsAtZ"],["preservealpha","preserveAlpha"],["preserveaspectratio","preserveAspectRatio"],["primitiveunits","primitiveUnits"],["refx","refX"],["refy","refY"],["repeatcount","repeatCount"],["repeatdur","repeatDur"],["requiredextensions","requiredExtensions"],["requiredfeatures","requiredFeatures"],["specularconstant","specularConstant"],["specularexponent","specularExponent"],["spreadmethod","spreadMethod"],["startoffset","startOffset"],["stddeviation","stdDeviation"],["stitchtiles","stitchTiles"],["surfacescale","surfaceScale"],["systemlanguage","systemLanguage"],["tablevalues","tableValues"],["targetx","targetX"],["targety","targetY"],["textlength","textLength"],["viewbox","viewBox"],["viewtarget","viewTarget"],["xchannelselector","xChannelSelector"],["ychannelselector","yChannelSelector"],["zoomandpan","zoomAndPan"]])});var G1=u(Ge=>{"use strict";var si=Ge&&Ge.__assign||function(){return si=Object.assign||function(t){for(var e,i=1,n=arguments.length;i0&&(n+=Rr(t.children,e)),(e.xmlMode||!H1.has(t.name))&&(n+="")),n}function vd(t){return"<"+t.data+">"}function yd(t,e){var i=t.data||"";return e.decodeEntities!==!1&&!(!e.xmlMode&&t.parent&&hd.has(t.parent.name))&&(i=U1.encodeXML(i)),i}function bd(t){return""}function Cd(t){return""}});var Vr=u(Se=>{"use strict";var wd=Se&&Se.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Se,"__esModule",{value:!0});Se.innerText=Se.textContent=Se.getText=Se.getInnerHTML=Se.getOuterHTML=void 0;var tt=ut(),Dd=wd(G1()),Ed=ri();function W1(t,e){return(0,Dd.default)(t,e)}Se.getOuterHTML=W1;function Od(t,e){return(0,tt.hasChildren)(t)?t.children.map(function(i){return W1(i,e)}).join(""):""}Se.getInnerHTML=Od;function bn(t){return Array.isArray(t)?t.map(bn).join(""):(0,tt.isTag)(t)?t.name==="br"?` +`:bn(t.children):(0,tt.isCDATA)(t)?bn(t.children):(0,tt.isText)(t)?t.data:""}Se.getText=bn;function Fr(t){return Array.isArray(t)?t.map(Fr).join(""):(0,tt.hasChildren)(t)&&!(0,tt.isComment)(t)?Fr(t.children):(0,tt.isText)(t)?t.data:""}Se.textContent=Fr;function Nr(t){return Array.isArray(t)?t.map(Nr).join(""):(0,tt.hasChildren)(t)&&(t.type===Ed.ElementType.Tag||(0,tt.isCDATA)(t))?Nr(t.children):(0,tt.isText)(t)?t.data:""}Se.innerText=Nr});var Z1=u(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.prevElementSibling=de.nextElementSibling=de.getName=de.hasAttrib=de.getAttributeValue=de.getSiblings=de.getParent=de.getChildren=void 0;var Y1=ut(),xd=[];function $1(t){var e;return(e=t.children)!==null&&e!==void 0?e:xd}de.getChildren=$1;function X1(t){return t.parent||null}de.getParent=X1;function Sd(t){var e,i,n=X1(t);if(n!=null)return $1(n);for(var r=[t],o=t.prev,s=t.next;o!=null;)r.unshift(o),e=o,o=e.prev;for(;s!=null;)r.push(s),i=s,s=i.next;return r}de.getSiblings=Sd;function Md(t,e){var i;return(i=t.attribs)===null||i===void 0?void 0:i[e]}de.getAttributeValue=Md;function Ad(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}de.hasAttrib=Ad;function Id(t){return t.name}de.getName=Id;function Pd(t){for(var e,i=t.next;i!==null&&!(0,Y1.isTag)(i);)e=i,i=e.next;return i}de.nextElementSibling=Pd;function Td(t){for(var e,i=t.prev;i!==null&&!(0,Y1.isTag)(i);)e=i,i=e.prev;return i}de.prevElementSibling=Td});var K1=u(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.prepend=Me.prependChild=Me.append=Me.appendChild=Me.replaceElement=Me.removeElement=void 0;function Pi(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){var e=t.parent.children;e.splice(e.lastIndexOf(t),1)}}Me.removeElement=Pi;function kd(t,e){var i=e.prev=t.prev;i&&(i.next=e);var n=e.next=t.next;n&&(n.prev=e);var r=e.parent=t.parent;if(r){var o=r.children;o[o.lastIndexOf(t)]=e}}Me.replaceElement=kd;function Rd(t,e){if(Pi(e),e.next=null,e.parent=t,t.children.push(e)>1){var i=t.children[t.children.length-2];i.next=e,e.prev=i}else e.prev=null}Me.appendChild=Rd;function Fd(t,e){Pi(e);var i=t.parent,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=i,n){if(n.prev=e,i){var r=i.children;r.splice(r.lastIndexOf(n),0,e)}}else i&&i.children.push(e)}Me.append=Fd;function Nd(t,e){if(Pi(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){var i=t.children[1];i.prev=e,e.next=i}else e.next=null}Me.prependChild=Nd;function Vd(t,e){Pi(e);var i=t.parent;if(i){var n=i.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=i,e.prev=t.prev,e.next=t,t.prev=e}Me.prepend=Vd});var Lr=u(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.findAll=Ae.existsOne=Ae.findOne=Ae.findOneChild=Ae.find=Ae.filter=void 0;var Ti=ut();function jd(t,e,i,n){return i===void 0&&(i=!0),n===void 0&&(n=1/0),Array.isArray(e)||(e=[e]),jr(t,e,i,n)}Ae.filter=jd;function jr(t,e,i,n){for(var r=[],o=0,s=e;o0){var c=jr(t,a.children,i,n);if(r.push.apply(r,c),n-=c.length,n<=0)break}}return r}Ae.find=jr;function Ld(t,e){return e.find(t)}Ae.findOneChild=Ld;function Q1(t,e,i){i===void 0&&(i=!0);for(var n=null,r=0;r0&&(n=Q1(t,o.children));else continue}return n}Ae.findOne=Q1;function J1(t,e){return e.some(function(i){return(0,Ti.isTag)(i)&&(t(i)||i.children.length>0&&J1(t,i.children))})}Ae.existsOne=J1;function Bd(t,e){for(var i,n=[],r=e.filter(Ti.isTag),o;o=r.shift();){var s=(i=o.children)===null||i===void 0?void 0:i.filter(Ti.isTag);s&&s.length>0&&r.unshift.apply(r,s),t(o)&&n.push(o)}return n}Ae.findAll=Bd});var Br=u(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.getElementsByTagType=Ne.getElementsByTagName=Ne.getElementById=Ne.getElements=Ne.testElement=void 0;var Ft=ut(),wn=Lr(),Cn={tag_name:function(t){return typeof t=="function"?function(e){return(0,Ft.isTag)(e)&&t(e.name)}:t==="*"?Ft.isTag:function(e){return(0,Ft.isTag)(e)&&e.name===t}},tag_type:function(t){return typeof t=="function"?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return typeof t=="function"?function(e){return(0,Ft.isText)(e)&&t(e.data)}:function(e){return(0,Ft.isText)(e)&&e.data===t}}};function ea(t,e){return typeof e=="function"?function(i){return(0,Ft.isTag)(i)&&e(i.attribs[t])}:function(i){return(0,Ft.isTag)(i)&&i.attribs[t]===e}}function qd(t,e){return function(i){return t(i)||e(i)}}function ta(t){var e=Object.keys(t).map(function(i){var n=t[i];return Object.prototype.hasOwnProperty.call(Cn,i)?Cn[i](n):ea(i,n)});return e.length===0?null:e.reduce(qd)}function Hd(t,e){var i=ta(t);return i?i(e):!0}Ne.testElement=Hd;function Ud(t,e,i,n){n===void 0&&(n=1/0);var r=ta(t);return r?(0,wn.filter)(r,e,i,n):[]}Ne.getElements=Ud;function zd(t,e,i){return i===void 0&&(i=!0),Array.isArray(e)||(e=[e]),(0,wn.findOne)(ea("id",t),e,i)}Ne.getElementById=zd;function Gd(t,e,i,n){return i===void 0&&(i=!0),n===void 0&&(n=1/0),(0,wn.filter)(Cn.tag_name(t),e,i,n)}Ne.getElementsByTagName=Gd;function Wd(t,e,i,n){return i===void 0&&(i=!0),n===void 0&&(n=1/0),(0,wn.filter)(Cn.tag_type(t),e,i,n)}Ne.getElementsByTagType=Wd});var ra=u(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.uniqueSort=St.compareDocumentPosition=St.removeSubsets=void 0;var ia=ut();function Yd(t){for(var e=t.length;--e>=0;){var i=t[e];if(e>0&&t.lastIndexOf(i,e-1)>=0){t.splice(e,1);continue}for(var n=i.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}St.removeSubsets=Yd;function na(t,e){var i=[],n=[];if(t===e)return 0;for(var r=(0,ia.hasChildren)(t)?t:t.parent;r;)i.unshift(r),r=r.parent;for(r=(0,ia.hasChildren)(e)?e:e.parent;r;)n.unshift(r),r=r.parent;for(var o=Math.min(i.length,n.length),s=0;sc.indexOf(d)?a===e?20:4:a===t?10:2}St.compareDocumentPosition=na;function $d(t){return t=t.filter(function(e,i,n){return!n.includes(e,i+1)}),t.sort(function(e,i){var n=na(e,i);return n&2?-1:n&4?1:0}),t}St.uniqueSort=$d});var sa=u(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.getFeed=void 0;var Xd=Vr(),ki=Br();function Zd(t){var e=Dn(th,t);return e?e.name==="feed"?Kd(e):Qd(e):null}En.getFeed=Zd;function Kd(t){var e,i=t.children,n={type:"atom",items:(0,ki.getElementsByTagName)("entry",i).map(function(s){var a,c=s.children,l={media:oa(c)};Ie(l,"id","id",c),Ie(l,"title","title",c);var d=(a=Dn("link",c))===null||a===void 0?void 0:a.attribs.href;d&&(l.link=d);var v=Nt("summary",c)||Nt("content",c);v&&(l.description=v);var C=Nt("updated",c);return C&&(l.pubDate=new Date(C)),l})};Ie(n,"id","id",i),Ie(n,"title","title",i);var r=(e=Dn("link",i))===null||e===void 0?void 0:e.attribs.href;r&&(n.link=r),Ie(n,"description","subtitle",i);var o=Nt("updated",i);return o&&(n.updated=new Date(o)),Ie(n,"author","email",i,!0),n}function Qd(t){var e,i,n=(i=(e=Dn("channel",t.children))===null||e===void 0?void 0:e.children)!==null&&i!==void 0?i:[],r={type:t.name.substr(0,3),id:"",items:(0,ki.getElementsByTagName)("item",t.children).map(function(s){var a=s.children,c={media:oa(a)};Ie(c,"id","guid",a),Ie(c,"title","title",a),Ie(c,"link","link",a),Ie(c,"description","description",a);var l=Nt("pubDate",a);return l&&(c.pubDate=new Date(l)),c})};Ie(r,"title","title",n),Ie(r,"link","link",n),Ie(r,"description","description",n);var o=Nt("lastBuildDate",n);return o&&(r.updated=new Date(o)),Ie(r,"author","managingEditor",n,!0),r}var Jd=["url","type","lang"],eh=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function oa(t){return(0,ki.getElementsByTagName)("media:content",t).map(function(e){for(var i=e.attribs,n={medium:i.medium,isDefault:!!i.isDefault},r=0,o=Jd;r{"use strict";var ih=$&&$.__createBinding||(Object.create?function(t,e,i,n){n===void 0&&(n=i),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,n){n===void 0&&(n=i),t[n]=e[i]}),Vt=$&&$.__exportStar||function(t,e){for(var i in t)i!=="default"&&!Object.prototype.hasOwnProperty.call(e,i)&&ih(e,t,i)};Object.defineProperty($,"__esModule",{value:!0});$.hasChildren=$.isDocument=$.isComment=$.isText=$.isCDATA=$.isTag=void 0;Vt(Vr(),$);Vt(Z1(),$);Vt(K1(),$);Vt(Lr(),$);Vt(Br(),$);Vt(ra(),$);Vt(sa(),$);var ai=ut();Object.defineProperty($,"isTag",{enumerable:!0,get:function(){return ai.isTag}});Object.defineProperty($,"isCDATA",{enumerable:!0,get:function(){return ai.isCDATA}});Object.defineProperty($,"isText",{enumerable:!0,get:function(){return ai.isText}});Object.defineProperty($,"isComment",{enumerable:!0,get:function(){return ai.isComment}});Object.defineProperty($,"isDocument",{enumerable:!0,get:function(){return ai.isDocument}});Object.defineProperty($,"hasChildren",{enumerable:!0,get:function(){return ai.hasChildren}})});var Ur=u(Ve=>{"use strict";var nh=Ve&&Ve.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},t(e,i)};return function(e,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(e,i);function n(){this.constructor=e}e.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}}(),rh=Ve&&Ve.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ve,"__esModule",{value:!0});Ve.parseFeed=Ve.FeedHandler=Ve.getFeed=void 0;var aa=rh(ut()),Hr=qr();Object.defineProperty(Ve,"getFeed",{enumerable:!0,get:function(){return Hr.getFeed}});var oh=Dr(),sh=function(t){nh(e,t);function e(i,n){var r=this;return typeof i=="object"&&(i=void 0,n=i),r=t.call(this,i,n)||this,r}return e.prototype.onend=function(){var i=(0,Hr.getFeed)(this.dom);i?(this.feed=i,this.handleCallback(null)):this.handleCallback(new Error("couldn't find root of feed"))},e}(aa.default);Ve.FeedHandler=sh;function ah(t,e){e===void 0&&(e={xmlMode:!0});var i=new aa.default(null,e);return new oh.Parser(i,e).end(t),(0,Hr.getFeed)(i.dom)}Ve.parseFeed=ah});var da=u(P=>{"use strict";var ca=P&&P.__createBinding||(Object.create?function(t,e,i,n){n===void 0&&(n=i),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,n){n===void 0&&(n=i),t[n]=e[i]}),ch=P&&P.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),la=P&&P.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var i in t)i!=="default"&&Object.prototype.hasOwnProperty.call(t,i)&&ca(e,t,i);return ch(e,t),e},lh=P&&P.__exportStar||function(t,e){for(var i in t)i!=="default"&&!Object.prototype.hasOwnProperty.call(e,i)&&ca(e,t,i)},uh=P&&P.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(P,"__esModule",{value:!0});P.RssHandler=P.DefaultHandler=P.DomUtils=P.ElementType=P.Tokenizer=P.createDomStream=P.parseDOM=P.parseDocument=P.DomHandler=P.Parser=void 0;var zr=Dr();Object.defineProperty(P,"Parser",{enumerable:!0,get:function(){return zr.Parser}});var On=ut();Object.defineProperty(P,"DomHandler",{enumerable:!0,get:function(){return On.DomHandler}});Object.defineProperty(P,"DefaultHandler",{enumerable:!0,get:function(){return On.DomHandler}});function ua(t,e){var i=new On.DomHandler(void 0,e);return new zr.Parser(i,e).end(t),i.root}P.parseDocument=ua;function dh(t,e){return ua(t,e).children}P.parseDOM=dh;function hh(t,e,i){var n=new On.DomHandler(t,e,i);return new zr.Parser(n,e)}P.createDomStream=hh;var fh=wr();Object.defineProperty(P,"Tokenizer",{enumerable:!0,get:function(){return uh(fh).default}});var ph=la(ri());P.ElementType=ph;lh(Ur(),P);P.DomUtils=la(qr());var gh=Ur();Object.defineProperty(P,"RssHandler",{enumerable:!0,get:function(){return gh.FeedHandler}})});var ha=u(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});var mh=$s(),_h=da(),vh={lowerCaseTags:!1,lowerCaseAttributeNames:!1,decodeEntities:!1},yh=[{name:"!doctype",start:"<",end:">"}],bh=xn.parser=(t,e={})=>{let i=new mh.a(t),n=[],r=[],o=0,s={};function a(){return n[n.length-1]}function c(w,b){return w.name instanceof RegExp?new RegExp(w.name.source,"i").test(b):b===w.name}function l(w){let b={};return Object.keys(w).forEach(I=>{let Ce={};Ce[I]=String(w[I]).replace(/"/g,'"'),e.recognizeNoValueAttribute&&s[I]&&(Ce[I]=!0),Object.assign(b,Ce)}),b}function d(w,b){var I;let Ce=yh.concat((I=e.directives)!=null?I:[]),Le=a();for(let Be of Ce){let ts=Be.start+b+Be.end;if(c(Be,w.toLowerCase())){if(Le===void 0){r.push(ts);return}typeof Le=="object"&&(Le.content===void 0&&(Le.content=[]),Array.isArray(Le.content)&&Le.content.push(ts))}}}function v(w){let b=a(),I=``;if(b===void 0){r.push(I);return}typeof b=="object"&&(b.content===void 0&&(b.content=[]),Array.isArray(b.content)&&b.content.push(I))}function C(w,b,I){I===void 0&&(s[w]=!0)}function g(w,b){let I={tag:w};e.sourceLocations&&(I.location={start:i.getPosition(p.startIndex),end:i.getPosition(p.endIndex)},o=p.endIndex),Object.keys(b).length>0&&(I.attrs=l(b)),s={},n.push(I)}function h(w,b){let I=n.pop();if(I&&typeof I=="object"&&I.location&&p.endIndex!==null&&(b?o0){let I=b.content[b.content.length-1];if(typeof I=="string"&&!I.startsWith("",f.w," rootId: ",r," clusterId:",e)}catch(w){s.error(w)}})}s.debug("Removing node",a),t.removeNode(a)})},Q=(e,t)=>{let n=t.children(e),r=[...n];for(let i of n)z[i]=e,r=[...r,...Q(i,t)];return r},X=(e,t)=>{s.trace("Searching",e);let n=t.children(e);if(s.trace("Searching children of id ",e,n),n.length<1)return s.trace("This is a valid node",e),e;for(let r of n){let i=X(r,t);if(i)return s.trace("Found replacement for",e," => ",i),i}},J=e=>!l[e]||!l[e].externalConnections?e:l[e]?l[e].id:e,at=(e,t)=>{if(!e||t>10){s.debug("Opting out, no graph ");return}else s.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(s.warn("Cluster identified",n," Replacement id in edges: ",X(n,e)),g[n]=Q(n,e),l[n]={id:X(n,e),clusterData:e.node(n)})}),e.nodes().forEach(function(n){let r=e.children(n),i=e.edges();r.length>0?(s.debug("Cluster identified",n,g),i.forEach(a=>{if(a.v!==n&&a.w!==n){let d=T(a.v,n),h=T(a.w,n);d^h&&(s.warn("Edge: ",a," leaves cluster ",n),s.warn("Descendants of XXX ",n,": ",g[n]),l[n].externalConnections=!0)}})):s.debug("Not a cluster ",n,g)});for(let n of Object.keys(l)){let r=l[n].id,i=e.parent(r);i!==n&&l[i]&&!l[i].externalConnections&&(l[n].id=i)}e.edges().forEach(function(n){let r=e.edge(n);s.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),s.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let i=n.v,a=n.w;if(s.warn("Fix XXX",l,"ids:",n.v,n.w,"Translating: ",l[n.v]," --- ",l[n.w]),l[n.v]&&l[n.w]&&l[n.v]===l[n.w]){s.warn("Fixing and trixing link to self - removing XXX",n.v,n.w,n.name),s.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),i=J(n.v),a=J(n.w),e.removeEdge(n.v,n.w,n.name);let d=n.w+"---"+n.v;e.setNode(d,{domId:d,id:d,labelStyle:"",labelText:r.label,padding:0,shape:"labelRect",style:""});let h=structuredClone(r),f=structuredClone(r);h.label="",h.arrowTypeEnd="none",f.label="",h.fromCluster=n.v,f.toCluster=n.v,e.setEdge(i,d,h,n.name+"-cyclic-special"),e.setEdge(d,a,f,n.name+"-cyclic-special")}else if(l[n.v]||l[n.w]){if(s.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),i=J(n.v),a=J(n.w),e.removeEdge(n.v,n.w,n.name),i!==n.v){let d=e.parent(i);l[d].externalConnections=!0,r.fromCluster=n.v}if(a!==n.w){let d=e.parent(a);l[d].externalConnections=!0,r.toCluster=n.w}s.warn("Fix Replacing with XXX",i,a,n.name),e.setEdge(i,a,r,n.name)}}),s.warn("Adjusted Graph",m(e)),Y(e,0),s.trace(l)},Y=(e,t)=>{if(s.warn("extractor - ",t,m(e),e.children("D")),t>10){s.error("Bailing out");return}let n=e.nodes(),r=!1;for(let i of n){let a=e.children(i);r=r||a.length>0}if(!r){s.debug("Done, no node has children",e.nodes());return}s.debug("Nodes = ",n,t);for(let i of n)if(s.debug("Extracting node",i,l,l[i]&&!l[i].externalConnections,!e.parent(i),e.node(i),e.children("D")," Depth ",t),!l[i])s.debug("Not a cluster",i,t);else if(!l[i].externalConnections&&e.children(i)&&e.children(i).length>0){s.warn("Cluster without external connections, without a parent and with children",i,t);let d=e.graph().rankdir==="TB"?"LR":"TB";l[i]&&l[i].clusterData&&l[i].clusterData.dir&&(d=l[i].clusterData.dir,s.warn("Fixing dir",l[i].clusterData.dir,d));let h=new P({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});s.warn("Old graph before copy",m(e)),K(i,e,h,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:l[i].clusterData,labelText:l[i].labelText,graph:h}),s.warn("New graph after copy node: (",i,")",m(h)),s.debug("Old graph after copy",m(e))}else s.warn("Cluster ** ",i," **not meeting the criteria !externalConnections:",!l[i].externalConnections," no parent: ",!e.parent(i)," children ",e.children(i)&&e.children(i).length>0,e.children("D"),t),s.debug(l);n=e.nodes(),s.warn("New list of nodes",n);for(let i of n){let a=e.node(i);s.warn(" Now next level",i,a),a.clusterNode&&Y(a.graph,t+1)}},Z=(e,t)=>{if(t.length===0)return[];let n=Object.assign(t);return t.forEach(r=>{let i=e.children(r),a=Z(e,i);n=[...n,...a]}),n},ct=e=>Z(e,e.children()),ot=(e,t)=>{s.info("Creating subgraph rect for ",t.id,t);let n=D(),r=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),i=r.insert("rect",":first-child"),a=C(n.flowchart.htmlLabels),d=r.insert("g").attr("class","cluster-label"),h=t.labelType==="markdown"?$(d,t.labelText,{style:t.labelStyle,useHtmlLabels:a}):d.node().appendChild(R(t.labelText,t.labelStyle,void 0,!0)),f=h.getBBox();if(C(n.flowchart.htmlLabels)){let c=h.children[0],o=O(h);f=c.getBoundingClientRect(),o.attr("width",f.width),o.attr("height",f.height)}let u=0*t.padding,w=u/2,b=t.width<=f.width+u?f.width+u:t.width;t.width<=f.width+u?t.diff=(f.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,s.trace("Data ",t,JSON.stringify(t)),i.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-w).attr("width",b).attr("height",t.height+u);let{subGraphTitleTopMargin:y}=B(n);a?d.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2+y})`):d.attr("transform",`translate(${t.x}, ${t.y-t.height/2+y})`);let v=i.node().getBBox();return t.width=v.width,t.height=v.height,t.intersect=function(c){return N(t,c)},r},lt=(e,t)=>{let n=e.insert("g").attr("class","note-cluster").attr("id",t.id),r=n.insert("rect",":first-child"),i=0*t.padding,a=i/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2-a).attr("width",t.width+i).attr("height",t.height+i).attr("fill","none");let d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.intersect=function(h){return N(t,h)},n},ft=(e,t)=>{let n=D(),r=e.insert("g").attr("class",t.classes).attr("id",t.id),i=r.insert("rect",":first-child"),a=r.insert("g").attr("class","cluster-label"),d=r.append("rect"),h=a.node().appendChild(R(t.labelText,t.labelStyle,void 0,!0)),f=h.getBBox();if(C(n.flowchart.htmlLabels)){let c=h.children[0],o=O(h);f=c.getBoundingClientRect(),o.attr("width",f.width),o.attr("height",f.height)}f=h.getBBox();let u=0*t.padding,w=u/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,i.attr("class","outer").attr("x",t.x-b/2-w).attr("y",t.y-t.height/2-w).attr("width",b+u).attr("height",t.height+u),d.attr("class","inner").attr("x",t.x-b/2-w).attr("y",t.y-t.height/2-w+f.height-1).attr("width",b+u).attr("height",t.height+u-f.height-3);let{subGraphTitleTopMargin:y}=B(n);a.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2-t.padding/3+(C(n.flowchart.htmlLabels)?5:3)+y})`);let v=i.node().getBBox();return t.height=v.height,t.intersect=function(c){return N(t,c)},r},dt=(e,t)=>{let n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),i=0*t.padding,a=i/2;r.attr("class","divider").attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2).attr("width",t.width+i).attr("height",t.height+i);let d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.diff=-t.padding/2,t.intersect=function(h){return N(t,h)},n},ht={rect:ot,roundedWithTitle:ft,noteGroup:lt,divider:dt},I={},ut=(e,t)=>{s.trace("Inserting cluster");let n=t.shape||"rect";I[t.id]=ht[n](e,t)},gt=()=>{I={}},tt=(e,t,n,r,i,a)=>S(void 0,null,function*(){s.info("Graph in recursive render: XXX",m(t),i);let d=t.graph().rankdir;s.trace("Dir in recursive render - dir:",d);let h=e.insert("g").attr("class","root");t.nodes()?s.info("Recursive render XXX",t.nodes()):s.info("No nodes found for",t),t.edges().length>0&&s.trace("Recursive edges",t.edge(t.edges()[0]));let f=h.insert("g").attr("class","clusters"),u=h.insert("g").attr("class","edgePaths"),w=h.insert("g").attr("class","edgeLabels"),b=h.insert("g").attr("class","nodes");yield Promise.all(t.nodes().map(function(c){return S(this,null,function*(){let o=t.node(c);if(i!==void 0){let x=JSON.parse(JSON.stringify(i.clusterData));s.info("Setting data for cluster XXX (",c,") ",x,i),t.setNode(i.id,x),t.parent(c)||(s.trace("Setting parent",c,i.id),t.setParent(c,i.id,x))}if(s.info("(Insert) Node XXX"+c+": "+JSON.stringify(t.node(c))),o&&o.clusterNode){s.info("Cluster identified",c,o.width,t.node(c));let x=yield tt(b,o.graph,n,r,t.node(c),a),E=x.elem;M(o,E),o.diff=x.diff||0,s.info("Node bounds (abc123)",c,o,o.width,o.x,o.y),j(E,o),s.warn("Recursive render complete ",E,o)}else t.children(c).length>0?(s.info("Cluster - the non recursive path XXX",c,o.id,o,t),s.info(X(o.id,t)),l[o.id]={id:X(o.id,t),node:o}):(s.info("Node - the non recursive path",c,o.id,o),yield U(b,t.node(c),d))})})),t.edges().forEach(function(c){let o=t.edge(c.v,c.w,c.name);s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(c)),s.info("Edge "+c.v+" -> "+c.w+": ",c," ",JSON.stringify(t.edge(c))),s.info("Fix",l,"ids:",c.v,c.w,"Translating: ",l[c.v],l[c.w]),V(w,o)}),t.edges().forEach(function(c){s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(c))}),s.info("#############################################"),s.info("### Layout ###"),s.info("#############################################"),s.info(t),G(t),s.info("Graph after layout:",m(t));let y=0,{subGraphTitleTotalMargin:v}=B(a);return ct(t).forEach(function(c){let o=t.node(c);s.info("Position "+c+": "+JSON.stringify(t.node(c))),s.info("Position "+c+": ("+o.x,","+o.y,") width: ",o.width," height: ",o.height),o&&o.clusterNode?(o.y+=v,_(o)):t.children(c).length>0?(o.height+=v,ut(f,o),l[o.id].node=o):(o.y+=v/2,_(o))}),t.edges().forEach(function(c){let o=t.edge(c);s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(o),o),o.points.forEach(E=>E.y+=v/2);let x=q(u,c,o,l,n,t,r);W(o,x)}),t.nodes().forEach(function(c){let o=t.node(c);s.info(c,o.type,o.diff),o.type==="group"&&(y=o.diff)}),{elem:h,diff:y}}),Ct=(e,t,n,r,i)=>S(void 0,null,function*(){F(e,n,r,i),A(),H(),gt(),st(),s.warn("Graph at first:",JSON.stringify(m(t))),at(t),s.warn("Graph after:",JSON.stringify(m(t)));let a=D();yield tt(e,t,r,i,void 0,a)});export{Ct as a}; diff --git a/chunk-FUUZABHH.js b/chunk-FUUZABHH.js new file mode 100644 index 0000000..560ce09 --- /dev/null +++ b/chunk-FUUZABHH.js @@ -0,0 +1,45 @@ +import{a as D,b as H,e as Ey,f as Eo,g as Iy,h as vr,j as In}from"./chunk-TWZW5B45.js";var By={};Iy(By,{__addDisposableResource:()=>lf,__assign:()=>$o,__asyncDelegator:()=>nf,__asyncGenerator:()=>Wo,__asyncValues:()=>Zo,__await:()=>Qe,__awaiter:()=>Go,__classPrivateFieldGet:()=>af,__classPrivateFieldIn:()=>uf,__classPrivateFieldSet:()=>cf,__createBinding:()=>qo,__decorate:()=>Ho,__disposeResources:()=>df,__esDecorate:()=>Fy,__exportStar:()=>Jd,__extends:()=>Zd,__generator:()=>Kd,__importDefault:()=>sf,__importStar:()=>of,__makeTemplateObject:()=>rf,__metadata:()=>zo,__param:()=>Qd,__propKey:()=>Ly,__read:()=>Ea,__rest:()=>Yd,__runInitializers:()=>ky,__setFunctionName:()=>jy,__spread:()=>Xd,__spreadArray:()=>tf,__spreadArrays:()=>ef,__values:()=>Bo,default:()=>$y});function Zd(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");wa(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function Yd(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,n,i):s(t,n))||i);return o>3&&i&&Object.defineProperty(t,n,i),i}function Qd(e,t){return function(n,r){t(n,r,e)}}function Fy(e,t,n,r,o,i){function s(I){if(I!==void 0&&typeof I!="function")throw new TypeError("Function expected");return I}for(var a=r.kind,c=a==="getter"?"get":a==="setter"?"set":"value",u=!t&&e?r.static?e:e.prototype:null,l=t||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),d,h=!1,f=n.length-1;f>=0;f--){var p={};for(var m in r)p[m]=m==="access"?{}:r[m];for(var m in r.access)p.access[m]=r.access[m];p.addInitializer=function(I){if(h)throw new TypeError("Cannot add initializers after decoration has completed");i.push(s(I||null))};var v=(0,n[f])(a==="accessor"?{get:l.get,set:l.set}:l[c],p);if(a==="accessor"){if(v===void 0)continue;if(v===null||typeof v!="object")throw new TypeError("Object expected");(d=s(v.get))&&(l.get=d),(d=s(v.set))&&(l.set=d),(d=s(v.init))&&o.unshift(d)}else(d=s(v))&&(a==="field"?o.unshift(d):l[c]=d)}u&&Object.defineProperty(u,r.name,l),h=!0}function ky(e,t,n){for(var r=arguments.length>2,o=0;o0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ea(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function Xd(){for(var e=[],t=0;t1||c(f,m)})},p&&(o[f]=p(o[f])))}function c(f,p){try{u(r[f](p))}catch(m){h(i[0][3],m)}}function u(f){f.value instanceof Qe?Promise.resolve(f.value.v).then(l,d):h(i[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function h(f,p){f(p),i.shift(),i.length&&c(i[0][0],i[0][1])}}function nf(e){var t,n;return t={},r("next"),r("throw",function(o){throw o}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(o,i){t[o]=e[o]?function(s){return(n=!n)?{value:Qe(e[o](s)),done:!1}:i?i(s):s}:i}}function Zo(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Bo=="function"?Bo(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}}function rf(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function of(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&qo(t,e,n);return Vy(t,e),t}function sf(e){return e&&e.__esModule?e:{default:e}}function af(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function cf(e,t,n,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(e,n):o?o.value=n:t.set(e,n),n}function uf(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function lf(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r,o;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(o=r)}if(typeof r!="function")throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(i){return Promise.reject(i)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}function df(e){function t(i){e.error=e.hasError?new Uy(i,e.error,"An error was suppressed during disposal."):i,e.hasError=!0}var n,r=0;function o(){for(;n=e.stack.pop();)try{if(!n.async&&r===1)return r=0,e.stack.push(n),Promise.resolve().then(o);if(n.dispose){var i=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(i).then(o,function(s){return t(s),o()})}else r|=1}catch(s){t(s)}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return o()}var wa,$o,qo,Vy,Uy,$y,Yo=Ey(()=>{"use strict";wa=function(e,t){return wa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},wa(e,t)};$o=function(){return $o=Object.assign||function(t){for(var n,r=1,o=arguments.length;r{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.isPresent=wT;function wT(e){return e!=null&&(typeof e!="string"||e!=="")}});var fy=Eo(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});vd.isIterable=OT;function OT(e){return e!==null&&typeof e[Symbol.iterator]=="function"&&typeof e!="string"}});var ra=Eo(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.asArray=kT;var PT=fy(),FT=Jv();function kT(...e){return e.map(t=>(0,FT.isPresent)(t)?Array.isArray(t)?t:(0,PT.isIterable)(t)?Array.from(t):[t]:[]).flat()}});var Ed=Eo(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});wd.objectKeys=LT;function LT(e){return Object.keys(e)}});function bd(e,t){return Object.is(e,t)}var ee=null,yr=!1,Io=1,Me=Symbol("SIGNAL");function k(e){let t=ee;return ee=e,t}function Md(){return ee}function Cy(){return yr}var Cn={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function bo(e){if(yr)throw new Error("");if(ee===null)return;ee.consumerOnSignalRead(e);let t=ee.nextProducerIndex++;if(xo(ee),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function So(e){xo(e);for(let t=0;t0}function xo(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Ad(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Rd(e){return e.producerNode!==void 0}function ca(e){let t=Object.create(My);t.computation=e;let n=()=>{if(Sd(t),bo(t),t.value===Co)throw t.error;return t.value};return n[Me]=t,n}var ia=Symbol("UNSET"),sa=Symbol("COMPUTING"),Co=Symbol("ERRORED"),My=H(D({},Cn),{value:ia,dirty:!0,error:null,equal:bd,producerMustRecompute(e){return e.value===ia||e.value===sa},producerRecomputeValue(e){if(e.value===sa)throw new Error("Detected cycle in computations.");let t=e.value;e.value=sa;let n=wr(e),r;try{r=e.computation()}catch(o){r=Co,e.error=o}finally{Mo(e,n)}if(t!==ia&&t!==Co&&r!==Co&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function Sy(){throw new Error}var Od=Sy;function Pd(){Od()}function Fd(e){Od=e}var Ty=null;function kd(e){let t=Object.create(ua);t.value=e;let n=()=>(bo(t),t.value);return n[Me]=t,n}function No(e,t){_d()||Pd(),e.equal(e.value,t)||(e.value=t,_y(e))}function Ld(e,t){_d()||Pd(),No(e,t(e.value))}var ua=H(D({},Cn),{equal:bd,value:void 0});function _y(e){e.version++,by(),Td(e),Ty?.()}function jd(e,t,n){let r=Object.create(xy);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;let o=c=>{r.cleanupFn=c};function i(c){return c.fn===null&&c.schedule===null}function s(c){i(c)||(To(c),c.cleanupFn(),c.fn=null,c.schedule=null,c.cleanupFn=aa)}let a=()=>{if(r.fn===null)return;if(Cy())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!So(r))return;r.hasRun=!0;let c=wr(r);try{r.cleanupFn(),r.cleanupFn=aa,r.fn(o)}finally{Mo(r,c)}};return r.ref={notify:()=>xd(r),run:a,cleanup:()=>r.cleanupFn(),destroy:()=>s(r),[Me]:r},r.ref}var aa=()=>{},xy=H(D({},Cn),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule!==null&&e.schedule(e.ref)},hasRun:!1,cleanupFn:aa});function b(e){return typeof e=="function"}function bn(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Ao=bn(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: +${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=n});function Wt(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var W=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(b(r))try{r()}catch(i){t=i instanceof Ao?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Vd(i)}catch(s){t=t??[],s instanceof Ao?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Ao(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Vd(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Wt(n,t)}remove(t){let{_finalizers:n}=this;n&&Wt(n,t),t instanceof e&&t._removeParent(this)}};W.EMPTY=(()=>{let e=new W;return e.closed=!0,e})();var la=W.EMPTY;function Ro(e){return e instanceof W||e&&"closed"in e&&b(e.remove)&&b(e.add)&&b(e.unsubscribe)}function Vd(e){b(e)?e():e.unsubscribe()}var Ve={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Mn={setTimeout(e,t,...n){let{delegate:r}=Mn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Mn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Oo(e){Mn.setTimeout(()=>{let{onUnhandledError:t}=Ve;if(t)t(e);else throw e})}function dt(){}var Ud=da("C",void 0,void 0);function $d(e){return da("E",void 0,e)}function Bd(e){return da("N",e,void 0)}function da(e,t,n){return{kind:e,value:t,error:n}}var Zt=null;function Sn(e){if(Ve.useDeprecatedSynchronousErrorHandling){let t=!Zt;if(t&&(Zt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Zt;if(Zt=null,n)throw r}}else e()}function Hd(e){Ve.useDeprecatedSynchronousErrorHandling&&Zt&&(Zt.errorThrown=!0,Zt.error=e)}var Yt=class extends W{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Ro(t)&&t.add(this)):this.destination=Ry}static create(t,n,r){return new ft(t,n,r)}next(t){this.isStopped?ha(Bd(t),this):this._next(t)}error(t){this.isStopped?ha($d(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?ha(Ud,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Ny=Function.prototype.bind;function fa(e,t){return Ny.call(e,t)}var pa=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Po(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Po(r)}else Po(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Po(n)}}},ft=class extends Yt{constructor(t,n,r){super();let o;if(b(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Ve.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&fa(t.next,i),error:t.error&&fa(t.error,i),complete:t.complete&&fa(t.complete,i)}):o=t}this.destination=new pa(o)}};function Po(e){Ve.useDeprecatedSynchronousErrorHandling?Hd(e):Oo(e)}function Ay(e){throw e}function ha(e,t){let{onStoppedNotification:n}=Ve;n&&Mn.setTimeout(()=>n(e,t))}var Ry={closed:!0,next:dt,error:Ay,complete:dt};var Tn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ge(e){return e}function ga(...e){return ma(e)}function ma(e){return e.length===0?ge:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var O=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=Py(n)?n:new ft(n,r,o);return Sn(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=zd(r),new r((o,i)=>{let s=new ft({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Tn](){return this}pipe(...n){return ma(n)(this)}toPromise(n){return n=zd(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function zd(e){var t;return(t=e??Ve.Promise)!==null&&t!==void 0?t:Promise}function Oy(e){return e&&b(e.next)&&b(e.error)&&b(e.complete)}function Py(e){return e&&e instanceof Yt||Oy(e)&&Ro(e)}function va(e){return b(e?.lift)}function M(e){return t=>{if(va(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function C(e,t,n,r,o){return new ya(e,t,n,r,o)}var ya=class extends Yt{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function _n(){return M((e,t)=>{let n=null;e._refCount++;let r=C(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var xn=class extends O{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,va(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new W;let n=this.getSubject();t.add(this.source.subscribe(C(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=W.EMPTY)}return t}refCount(){return _n()(this)}};var Gd=bn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var q=(()=>{class e extends O{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Fo(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Gd}next(n){Sn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Sn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Sn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?la:(this.currentObservers=null,i.push(n),new W(()=>{this.currentObservers=null,Wt(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new O;return n.source=this,n}}return e.create=(t,n)=>new Fo(t,n),e})(),Fo=class extends q{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:la}};var ae=class extends q{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var Er={now(){return(Er.delegate||Date).now()},delegate:void 0};var Qt=class extends q{constructor(t=1/0,n=1/0,r=Er){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;se.complete());function Vo(e){return e&&b(e.schedule)}function Da(e){return e[e.length-1]}function Uo(e){return b(Da(e))?e.pop():void 0}function Ye(e){return Vo(Da(e))?e.pop():void 0}function Wd(e,t){return typeof Da(e)=="number"?e.pop():t}Yo();var An=e=>e&&typeof e.length=="number"&&typeof e!="function";function Qo(e){return b(e?.then)}function Ko(e){return b(e[Tn])}function Jo(e){return Symbol.asyncIterator&&b(e?.[Symbol.asyncIterator])}function Xo(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Hy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ei=Hy();function ti(e){return b(e?.[ei])}Yo();function ni(e){return Wo(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Qe(n.read());if(o)return yield Qe(void 0);yield yield Qe(r)}}finally{n.releaseLock()}})}function ri(e){return b(e?.getReader)}function L(e){if(e instanceof O)return e;if(e!=null){if(Ko(e))return zy(e);if(An(e))return Gy(e);if(Qo(e))return qy(e);if(Jo(e))return ff(e);if(ti(e))return Wy(e);if(ri(e))return Zy(e)}throw Xo(e)}function zy(e){return new O(t=>{let n=e[Tn]();if(b(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Gy(e){return new O(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Oo)})}function Wy(e){return new O(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function ff(e){return new O(t=>{Yy(e,t).catch(n=>t.error(n))})}function Zy(e){return ff(ni(e))}function Yy(e,t){var n,r,o,i;return Go(this,void 0,void 0,function*(){try{for(n=Zo(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function De(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function oi(e,t=0){return M((n,r)=>{n.subscribe(C(r,o=>De(r,e,()=>r.next(o),t),()=>De(r,e,()=>r.complete(),t),o=>De(r,e,()=>r.error(o),t)))})}function ii(e,t=0){return M((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function hf(e,t){return L(e).pipe(ii(t),oi(t))}function pf(e,t){return L(e).pipe(ii(t),oi(t))}function gf(e,t){return new O(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function mf(e,t){return new O(n=>{let r;return De(n,t,()=>{r=e[ei](),De(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>b(r?.return)&&r.return()})}function si(e,t){if(!e)throw new Error("Iterable cannot be null");return new O(n=>{De(n,t,()=>{let r=e[Symbol.asyncIterator]();De(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function vf(e,t){return si(ni(e),t)}function yf(e,t){if(e!=null){if(Ko(e))return hf(e,t);if(An(e))return gf(e,t);if(Qo(e))return pf(e,t);if(Jo(e))return si(e,t);if(ti(e))return mf(e,t);if(ri(e))return vf(e,t)}throw Xo(e)}function z(e,t){return t?yf(e,t):L(e)}function S(...e){let t=Ye(e);return z(e,t)}function Rn(e,t){let n=b(e)?e:()=>e,r=o=>o.error(n());return new O(t?o=>t.schedule(r,0,o):r)}function Ia(e){return!!e&&(e instanceof O||b(e.lift)&&b(e.subscribe))}var ht=bn(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Df(e){return e instanceof Date&&!isNaN(e)}function A(e,t){return M((n,r)=>{let o=0;n.subscribe(C(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Qy}=Array;function Ky(e,t){return Qy(t)?e(...t):e(t)}function On(e){return A(t=>Ky(e,t))}var{isArray:Jy}=Array,{getPrototypeOf:Xy,prototype:eD,keys:tD}=Object;function ai(e){if(e.length===1){let t=e[0];if(Jy(t))return{args:t,keys:null};if(nD(t)){let n=tD(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function nD(e){return e&&typeof e=="object"&&Xy(e)===eD}function ci(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function ui(...e){let t=Ye(e),n=Uo(e),{args:r,keys:o}=ai(e);if(r.length===0)return z([],t);let i=new O(rD(r,t,o?s=>ci(o,s):ge));return n?i.pipe(On(n)):i}function rD(e,t,n=ge){return r=>{wf(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c{let u=z(e[c],t),l=!1;u.subscribe(C(r,d=>{i[c]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function wf(e,t,n){e?De(n,e,t):t()}function Ef(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=!1,h=()=>{d&&!c.length&&!u&&t.complete()},f=m=>u{i&&t.next(m),u++;let v=!1;L(n(m,l++)).subscribe(C(t,I=>{o?.(I),i?f(I):t.next(I)},()=>{v=!0},void 0,()=>{if(v)try{for(u--;c.length&&up(I)):p(I)}h()}catch(I){t.error(I)}}))};return e.subscribe(C(t,f,()=>{d=!0,h()})),()=>{a?.()}}function G(e,t,n=1/0){return b(t)?G((r,o)=>A((i,s)=>t(r,i,o,s))(L(e(r,o))),n):(typeof t=="number"&&(n=t),M((r,o)=>Ef(r,o,e,n)))}function _t(e=1/0){return G(ge,e)}function If(){return _t(1)}function xt(...e){return If()(z(e,Ye(e)))}function li(e){return new O(t=>{L(e()).subscribe(t)})}function oD(...e){let t=Uo(e),{args:n,keys:r}=ai(e),o=new O(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l{d||(d=!0,u--),a[l]=h},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?ci(r,a):a),i.complete())}))}});return t?o.pipe(On(t)):o}var iD=["addListener","removeListener"],sD=["addEventListener","removeEventListener"],aD=["on","off"];function Ca(e,t,n,r){if(b(n)&&(r=n,n=void 0),r)return Ca(e,t,n).pipe(On(r));let[o,i]=lD(e)?sD.map(s=>a=>e[s](t,a,n)):cD(e)?iD.map(Cf(e,t)):uD(e)?aD.map(Cf(e,t)):[];if(!o&&An(e))return G(s=>Ca(s,t,n))(L(e));if(!o)throw new TypeError("Invalid event target");return new O(s=>{let a=(...c)=>s.next(1i(a)})}function Cf(e,t){return n=>r=>e[n](t,r)}function cD(e){return b(e.addListener)&&b(e.removeListener)}function uD(e){return b(e.on)&&b(e.off)}function lD(e){return b(e.addEventListener)&&b(e.removeEventListener)}function Jt(e=0,t,n=qd){let r=-1;return t!=null&&(Vo(t)?n=t:r=t),new O(o=>{let i=Df(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function dD(...e){let t=Ye(e),n=Wd(e,1/0),r=e;return r.length?r.length===1?L(r[0]):_t(n)(z(r,t)):te}var fD=new O(dt);function me(e,t){return M((n,r)=>{let o=0;n.subscribe(C(r,i=>e.call(t,i,o++)&&r.next(i)))})}function bf(e){return M((t,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let u=o;o=null,n.next(u)}s&&n.complete()},c=()=>{i=null,s&&n.complete()};t.subscribe(C(n,u=>{r=!0,o=u,i||L(e(u)).subscribe(i=C(n,a,c))},()=>{s=!0,(!r||!i||i.closed)&&n.complete()}))})}function hD(e,t=Kt){return bf(()=>Jt(e,t))}function Ue(e){return M((t,n)=>{let r=null,o=!1,i;r=t.subscribe(C(n,void 0,void 0,s=>{i=L(e(s,Ue(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Mf(e,t,n,r,o){return(i,s)=>{let a=n,c=t,u=0;i.subscribe(C(s,l=>{let d=u++;c=a?e(c,l,d):(a=!0,l),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function Nt(e,t){return b(t)?G(e,t,1):G(e,1)}function ba(e,t=Kt){return M((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let u=i;i=null,r.next(u)}};function c(){let u=s+e,l=t.now();if(l{i=u,s=t.now(),o||(o=t.schedule(c,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function At(e){return M((t,n)=>{let r=!1;t.subscribe(C(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function Se(e){return e<=0?()=>te:M((t,n)=>{let r=0;t.subscribe(C(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Sf(){return M((e,t)=>{e.subscribe(C(t,dt))})}function Cr(e){return A(()=>e)}function Tf(e,t){return t?n=>xt(t.pipe(Se(1),Sf()),n.pipe(Tf(e))):G((n,r)=>L(e(n,r)).pipe(Se(1),Cr(n)))}function Ma(e,t=ge){return e=e??pD,M((n,r)=>{let o,i=!0;n.subscribe(C(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function pD(e,t){return e===t}function di(e=gD){return M((t,n)=>{let r=!1;t.subscribe(C(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function gD(){return new ht}function Rt(e){return M((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Ke(e,t){let n=arguments.length>=2;return r=>r.pipe(e?me((o,i)=>e(o,i,r)):ge,Se(1),n?At(t):di(()=>new ht))}function Pn(e){return e<=0?()=>te:M((t,n)=>{let r=[];t.subscribe(C(n,o=>{r.push(o),e{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Sa(e,t){let n=arguments.length>=2;return r=>r.pipe(e?me((o,i)=>e(o,i,r)):ge,Pn(1),n?At(t):di(()=>new ht))}function mD(){return M((e,t)=>{let n,r=!1;e.subscribe(C(t,o=>{let i=n;n=o,r&&t.next([i,o]),r=!0}))})}function vD(e){let t=1/0,n;return e!=null&&(typeof e=="object"?{count:t=1/0,delay:n}=e:t=e),t<=0?()=>te:M((r,o)=>{let i=0,s,a=()=>{if(s?.unsubscribe(),s=null,n!=null){let u=typeof n=="number"?Jt(n):L(n(i)),l=C(o,()=>{l.unsubscribe(),c()});u.subscribe(l)}else c()},c=()=>{let u=!1;s=r.subscribe(C(o,void 0,()=>{++i=2,!0))}function fi(e={}){let{connector:t=()=>new q,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,c,u=0,l=!1,d=!1,h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),s=c=void 0,l=d=!1},p=()=>{let m=s;f(),m?.unsubscribe()};return M((m,v)=>{u++,!d&&!l&&h();let I=c=c??t();v.add(()=>{u--,u===0&&!d&&!l&&(a=_a(p,o))}),I.subscribe(v),!s&&u>0&&(s=new ft({next:V=>I.next(V),error:V=>{d=!0,h(),a=_a(f,n,V),I.error(V)},complete:()=>{l=!0,h(),a=_a(f,r),I.complete()}}),L(m).subscribe(s))})(i)}}function _a(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new ft({next:()=>{r.unsubscribe(),e()}});return L(t(...n)).subscribe(r)}function xa(e,t,n){let r,o=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:o=!1,scheduler:n}=e:r=e??1/0,fi({connector:()=>new Qt(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function yD(e){return me((t,n)=>e<=n)}function br(...e){let t=Ye(e);return M((n,r)=>{(t?xt(e,n,t):xt(e,n)).subscribe(r)})}function le(e,t){return M((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(C(r,c=>{o?.unsubscribe();let u=0,l=i++;L(e(c,l)).subscribe(o=C(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Mr(e){return M((t,n)=>{L(e).subscribe(C(n,()=>n.complete(),dt)),!n.closed&&t.subscribe(n)})}function J(e,t,n){let r=b(e)||t||n?{next:e,error:t,complete:n}:e;return r?M((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(C(i,c=>{var u;(u=r.next)===null||u===void 0||u.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),i.error(c)},()=>{var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):ge}function _f(e,t){return M((n,r)=>{let{leading:o=!0,trailing:i=!1}=t??{},s=!1,a=null,c=null,u=!1,l=()=>{c?.unsubscribe(),c=null,i&&(f(),u&&r.complete())},d=()=>{c=null,u&&r.complete()},h=p=>c=L(e(p)).subscribe(C(r,l,d)),f=()=>{if(s){s=!1;let p=a;a=null,r.next(p),!u&&h(p)}};n.subscribe(C(r,p=>{s=!0,a=p,!(c&&!c.closed)&&(o?f():h(p))},()=>{u=!0,!(i&&s&&c&&!c.closed)&&r.complete()}))})}function DD(e,t=Kt,n){let r=Jt(e,t);return _f(()=>r,n)}var Eh="https://g.co/ng/security#xss",w=class extends Error{constructor(t,n){super(es(t,n)),this.code=t}};function es(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}var Ih=Symbol("InputSignalNode#UNSET"),wD=H(D({},ua),{transformFn:void 0,applyValueToInputSignal(e,t){No(e,t)}});function Ch(e,t){let n=Object.create(wD);n.value=e,n.transformFn=t?.transform;function r(){if(bo(n),n.value===Ih)throw new w(-950,!1);return n.value}return r[Me]=n,r}function kr(e){return{toString:e}.toString()}var hi="__parameters__";function ED(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function bh(e,t,n){return kr(()=>{let r=ED(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,u,l){let d=c.hasOwnProperty(hi)?c[hi]:Object.defineProperty(c,hi,{value:[]})[hi];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),c}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var en=globalThis;function B(e){for(let t in e)if(e[t]===B)return t;throw Error("Could not find renamed property on target object.")}function ID(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ve(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(ve).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` +`);return n===-1?t:t.substring(0,n)}function za(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var CD=B({__forward_ref__:B});function Mh(e){return e.__forward_ref__=Mh,e.toString=function(){return ve(this())},e}function ce(e){return Sh(e)?e():e}function Sh(e){return typeof e=="function"&&e.hasOwnProperty(CD)&&e.__forward_ref__===Mh}function E(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Lr(e){return{providers:e.providers||[],imports:e.imports||[]}}function ts(e){return xf(e,_h)||xf(e,xh)}function Th(e){return ts(e)!==null}function xf(e,t){return e.hasOwnProperty(t)?e[t]:null}function bD(e){let t=e&&(e[_h]||e[xh]);return t||null}function Nf(e){return e&&(e.hasOwnProperty(Af)||e.hasOwnProperty(MD))?e[Af]:null}var _h=B({\u0275prov:B}),Af=B({\u0275inj:B}),xh=B({ngInjectableDef:B}),MD=B({ngInjectorDef:B}),y=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=E({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Nh(e){return e&&!!e.\u0275providers}var SD=B({\u0275cmp:B}),TD=B({\u0275dir:B}),iu=B({\u0275pipe:B}),_D=B({\u0275mod:B}),Ti=B({\u0275fac:B}),Tr=B({__NG_ELEMENT_ID__:B}),Rf=B({__NG_ENV_ID__:B});function jr(e){return typeof e=="string"?e:e==null?"":String(e)}function xD(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():jr(e)}function ND(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new w(-200,e)}function su(e,t){throw new w(-201,!1)}var F=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(F||{}),Ga;function Ah(){return Ga}function we(e){let t=Ga;return Ga=e,t}function Rh(e,t,n){let r=ts(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&F.Optional)return null;if(t!==void 0)return t;su(e,"Injector")}var AD={},_r=AD,qa="__NG_DI_FLAG__",_i="ngTempTokenPath",RD="ngTokenPath",OD=/\n/gm,PD="\u0275",Of="__source",Vn;function FD(){return Vn}function Ot(e){let t=Vn;return Vn=e,t}function kD(e,t=F.Default){if(Vn===void 0)throw new w(-203,!1);return Vn===null?Rh(e,void 0,t):Vn.get(e,t&F.Optional?null:void 0,t)}function N(e,t=F.Default){return(Ah()||kD)(ce(e),t)}function g(e,t=F.Default){return N(e,ns(t))}function ns(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Wa(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):ve(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(OD,` + `)}`}var rs=Oh(bh("Optional"),8);var au=Oh(bh("SkipSelf"),4);function tn(e,t){let n=e.hasOwnProperty(Ti);return n?e[Ti]:null}function UD(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?cu(n,t):t(n))}function Ph(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function xi(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function BD(e,t){let n=[];for(let r=0;rt;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function uu(e,t,n){let r=Vr(e,t);return r>=0?e[r|1]=n:(r=~r,HD(e,r,t,n)),r}function Na(e,t){let n=Vr(e,t);if(n>=0)return e[n|1]}function Vr(e,t){return zD(e,t,1)}function zD(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<t){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if($e(r))return!1;s=!0}}}}return $e(r)||s}function $e(e){return(e&1)===0}function QD(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!$e(s)&&(t+=Ff(i,o),o=""),r=s,i=i||!$e(r);n++}return o!==""&&(t+=Ff(i,o)),t}function nw(e){return e.map(tw).join(",")}function rw(e){let t=[],n=[],r=1,o=2;for(;r{let t=zh(e),n=H(D({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Lh.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||et.Emulated,styles:e.styles||de,_:null,schemas:e.schemas||null,tView:null,id:""});Gh(n);let r=e.dependencies;return n.directiveDefs=Lf(r,!1),n.pipeDefs=Lf(r,!0),n.id=sw(n),n})}function ow(e){return nn(e)||du(e)}function iw(e){return e!==null}function Ur(e){return kr(()=>({type:e.type,bootstrap:e.bootstrap||de,declarations:e.declarations||de,imports:e.imports||de,exports:e.exports||de,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function kf(e,t){if(e==null)return gt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=Ft.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==Ft.None?[r,a]:r,t[i]=s):n[i]=r}return n}function Pe(e){return kr(()=>{let t=zh(e);return Gh(t),t})}function $r(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone===!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function nn(e){return e[SD]||null}function du(e){return e[TD]||null}function $h(e){return e[iu]||null}function Bh(e){let t=nn(e)||du(e)||$h(e);return t!==null?t.standalone:!1}function Hh(e,t){let n=e[_D]||null;if(!n&&t===!0)throw new Error(`Type ${ve(e)} does not have '\u0275mod' property.`);return n}function zh(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||gt,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||de,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:kf(e.inputs,t),outputs:kf(e.outputs),debugInfo:null}}function Gh(e){e.features?.forEach(t=>t(e))}function Lf(e,t){if(!e)return null;let n=t?$h:ow;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(iw)}function sw(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function Jn(e){return{\u0275providers:e}}function aw(...e){return{\u0275providers:qh(!0,e),\u0275fromNgModule:!0}}function qh(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return cu(t,s=>{let a=s;Ya(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Wh(o,i),n}function Wh(e,t){for(let n=0;n{t(i,r)})}}function Ya(e,t,n,r){if(e=ce(e),!e)return!1;let o=null,i=Nf(e),s=!i&&nn(e);if(!i&&!s){let c=e.ngModule;if(i=Nf(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)Ya(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{cu(i.imports,l=>{Ya(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&Wh(u,t)}if(!a){let u=tn(o)||(()=>new o);t({provide:o,useFactory:u,deps:de},o),t({provide:kh,useValue:o,multi:!0},o),t({provide:$n,useValue:()=>N(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;fu(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function fu(e,t){for(let n of e)Nh(n)&&(n=n.\u0275providers),Array.isArray(n)?fu(n,t):t(n)}var cw=B({provide:String,useValue:B});function Zh(e){return e!==null&&typeof e=="object"&&cw in e}function uw(e){return!!(e&&e.useExisting)}function lw(e){return!!(e&&e.useFactory)}function Bn(e){return typeof e=="function"}function dw(e){return!!e.useClass}var os=new y(""),wi={},fw={},Aa;function hu(){return Aa===void 0&&(Aa=new Ni),Aa}var Ee=class{},Nr=class extends Ee{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ka(t,s=>this.processProvider(s)),this.records.set(Fh,Fn(void 0,this)),o.has("environment")&&this.records.set(Ee,Fn(void 0,this));let i=this.records.get(os);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(kh,de,F.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=k(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),k(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=Ot(this),r=we(void 0),o;try{return t()}finally{Ot(n),we(r)}}get(t,n=_r,r=F.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Rf))return t[Rf](this);r=ns(r);let o,i=Ot(this),s=we(void 0);try{if(!(r&F.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=vw(t)&&ts(t);u&&this.injectableDefInScope(u)?c=Fn(Qa(t),wi):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&F.Self?hu():this.parent;return n=r&F.Optional&&n===_r?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[_i]=a[_i]||[]).unshift(ve(t)),i)throw a;return jD(a,t,"R3InjectorError",this.source)}else throw a}finally{we(s),Ot(i)}}resolveInjectorInitializers(){let t=k(null),n=Ot(this),r=we(void 0),o;try{let i=this.get($n,de,F.Self);for(let s of i)s()}finally{Ot(n),we(r),k(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(ve(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new w(205,!1)}processProvider(t){t=ce(t);let n=Bn(t)?t:ce(t&&t.provide),r=pw(t);if(!Bn(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Fn(void 0,wi,!0),o.factory=()=>Wa(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=k(null);try{return n.value===wi&&(n.value=fw,n.value=n.factory()),typeof n.value=="object"&&n.value&&mw(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{k(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=ce(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Qa(e){let t=ts(e),n=t!==null?t.factory:tn(e);if(n!==null)return n;if(e instanceof y)throw new w(204,!1);if(e instanceof Function)return hw(e);throw new w(204,!1)}function hw(e){if(e.length>0)throw new w(204,!1);let n=bD(e);return n!==null?()=>n.factory(e):()=>new e}function pw(e){if(Zh(e))return Fn(void 0,e.useValue);{let t=Yh(e);return Fn(t,wi)}}function Yh(e,t,n){let r;if(Bn(e)){let o=ce(e);return tn(o)||Qa(o)}else if(Zh(e))r=()=>ce(e.useValue);else if(lw(e))r=()=>e.useFactory(...Wa(e.deps||[]));else if(uw(e))r=()=>N(ce(e.useExisting));else{let o=ce(e&&(e.useClass||e.provide));if(gw(e))r=()=>new o(...Wa(e.deps));else return tn(o)||Qa(o)}return r}function Fn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function gw(e){return!!e.deps}function mw(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function vw(e){return typeof e=="function"||typeof e=="object"&&e instanceof y}function Ka(e,t){for(let n of e)Array.isArray(n)?Ka(n,t):n&&Nh(n)?Ka(n.\u0275providers,t):t(n)}function ze(e,t){e instanceof Nr&&e.assertNotDestroyed();let n,r=Ot(e),o=we(void 0);try{return t()}finally{Ot(r),we(o)}}function Qh(){return Ah()!==void 0||FD()!=null}function pu(e){if(!Qh())throw new w(-203,!1)}function yw(e){return typeof e=="function"}var ot=0,T=1,_=2,he=3,He=4,Ce=5,Hn=6,Ai=7,re=8,zn=9,tt=10,Z=11,Ar=12,jf=13,Xn=14,Te=15,rn=16,kn=17,mt=18,Br=19,Kh=20,Pt=21,Ei=22,Oe=23,K=25,gu=1;var on=7,Ri=8,Gn=9,fe=10,Oi=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Oi||{});function pt(e){return Array.isArray(e)&&typeof e[gu]=="object"}function Et(e){return Array.isArray(e)&&e[gu]===!0}function mu(e){return(e.flags&4)!==0}function is(e){return e.componentOffset>-1}function ss(e){return(e.flags&1)===1}function vt(e){return!!e.template}function Ja(e){return(e[_]&512)!==0}var Xa=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Jh(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function be(){return Xh}function Xh(e){return e.type.prototype.ngOnChanges&&(e.setInput=ww),Dw}be.ngInherit=!0;function Dw(){let e=tp(this),t=e?.current;if(t){let n=e.previous;if(n===gt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function ww(e,t,n,r,o){let i=this.declaredInputs[r],s=tp(e)||Ew(e,{previous:gt,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new Xa(u&&u.currentValue,n,c===gt),Jh(e,t,o,n)}var ep="__ngSimpleChanges__";function tp(e){return e[ep]||null}function Ew(e,t){return e[ep]=t}var Vf=null;var Je=function(e,t,n){Vf?.(e,t,n)},np="svg",Iw="math";function _e(e){for(;Array.isArray(e);)e=e[ot];return e}function Cw(e){for(;Array.isArray(e);){if(typeof e[gu]=="object")return e;e=e[ot]}return null}function rp(e,t){return _e(t[e])}function Fe(e,t){return _e(t[e.index])}function vu(e,t){return e.data[t]}function as(e,t){return e[t]}function nt(e,t){let n=t[e];return pt(n)?n:n[ot]}function bw(e){return(e[_]&4)===4}function yu(e){return(e[_]&128)===128}function Mw(e){return Et(e[he])}function kt(e,t){return t==null?null:e[t]}function op(e){e[kn]=0}function ip(e){e[_]&1024||(e[_]|=1024,yu(e)&&us(e))}function Sw(e,t){for(;e>0;)t=t[Xn],e--;return t}function cs(e){return!!(e[_]&9216||e[Oe]?.dirty)}function ec(e){e[tt].changeDetectionScheduler?.notify(8),e[_]&64&&(e[_]|=1024),cs(e)&&us(e)}function us(e){e[tt].changeDetectionScheduler?.notify(0);let t=sn(e);for(;t!==null&&!(t[_]&8192||(t[_]|=8192,!yu(t)));)t=sn(t)}function sp(e,t){if((e[_]&256)===256)throw new w(911,!1);e[Pt]===null&&(e[Pt]=[]),e[Pt].push(t)}function Tw(e,t){if(e[Pt]===null)return;let n=e[Pt].indexOf(t);n!==-1&&e[Pt].splice(n,1)}function sn(e){let t=e[he];return Et(t)?t[he]:t}var P={lFrame:mp(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var ap=!1;function _w(){return P.lFrame.elementDepthCount}function xw(){P.lFrame.elementDepthCount++}function Nw(){P.lFrame.elementDepthCount--}function cp(){return P.bindingsEnabled}function up(){return P.skipHydrationRootTNode!==null}function Aw(e){return P.skipHydrationRootTNode===e}function Rw(){P.skipHydrationRootTNode=null}function x(){return P.lFrame.lView}function Y(){return P.lFrame.tView}function RF(e){return P.lFrame.contextLView=e,e[re]}function OF(e){return P.lFrame.contextLView=null,e}function ue(){let e=lp();for(;e!==null&&e.type===64;)e=e.parent;return e}function lp(){return P.lFrame.currentTNode}function Ow(){let e=P.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function hn(e,t){let n=P.lFrame;n.currentTNode=e,n.isParent=t}function Du(){return P.lFrame.isParent}function wu(){P.lFrame.isParent=!1}function Pw(){return P.lFrame.contextLView}function dp(){return ap}function Uf(e){ap=e}function er(){let e=P.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Fw(e){return P.lFrame.bindingIndex=e}function jt(){return P.lFrame.bindingIndex++}function fp(e){let t=P.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function kw(){return P.lFrame.inI18n}function Lw(e,t){let n=P.lFrame;n.bindingIndex=n.bindingRootIndex=e,tc(t)}function jw(){return P.lFrame.currentDirectiveIndex}function tc(e){P.lFrame.currentDirectiveIndex=e}function hp(e){let t=P.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Eu(){return P.lFrame.currentQueryIndex}function ls(e){P.lFrame.currentQueryIndex=e}function Vw(e){let t=e[T];return t.type===2?t.declTNode:t.type===1?e[Ce]:null}function pp(e,t,n){if(n&F.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&F.Host);)if(o=Vw(i),o===null||(i=i[Xn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=P.lFrame=gp();return r.currentTNode=t,r.lView=e,!0}function Iu(e){let t=gp(),n=e[T];P.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function gp(){let e=P.lFrame,t=e===null?null:e.child;return t===null?mp(e):t}function mp(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function vp(){let e=P.lFrame;return P.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var yp=vp;function Cu(){let e=vp();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Uw(e){return(P.lFrame.contextLView=Sw(e,P.lFrame.contextLView))[re]}function Vt(){return P.lFrame.selectedIndex}function an(e){P.lFrame.selectedIndex=e}function Hr(){let e=P.lFrame;return vu(e.tView,e.selectedIndex)}function PF(){P.lFrame.currentNamespace=np}function $w(){return P.lFrame.currentNamespace}var Dp=!0;function ds(){return Dp}function fs(e){Dp=e}function Bw(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Xh(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function hs(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[kn]+=65536),(a>14>16&&(e[_]&3)===t&&(e[_]+=16384,$f(a,i)):$f(a,i)}var Un=-1,cn=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function zw(e){return e instanceof cn}function Gw(e){return(e.flags&8)!==0}function qw(e){return(e.flags&16)!==0}var Oa={},nc=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=ns(r);let o=this.injector.get(t,Oa,r);return o!==Oa||n===Oa?o:this.parentInjector.get(t,n,r)}};function Ep(e){return e!==Un}function Pi(e){return e&32767}function Ww(e){return e>>16}function Fi(e,t){let n=Ww(e),r=t;for(;n>0;)r=r[Xn],n--;return r}var rc=!0;function ki(e){let t=rc;return rc=e,t}var Zw=256,Ip=Zw-1,Cp=5,Yw=0,Xe={};function Qw(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Tr)&&(r=n[Tr]),r==null&&(r=n[Tr]=Yw++);let o=r&Ip,i=1<>Cp)]|=i}function Li(e,t){let n=bp(e,t);if(n!==-1)return n;let r=t[T];r.firstCreatePass&&(e.injectorIndex=t.length,Pa(r.data,e),Pa(t,null),Pa(r.blueprint,null));let o=bu(e,t),i=e.injectorIndex;if(Ep(o)){let s=Pi(o),a=Fi(o,t),c=a[T].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function Pa(e,t){e.push(0,0,0,0,0,0,0,0,t)}function bp(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function bu(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=xp(o),r===null)return Un;if(n++,o=o[Xn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Un}function oc(e,t,n){Qw(e,t,n)}function Kw(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o>20,d=r?a:a+l,h=o?a+l:u;for(let f=d;f=c&&p.type===n)return f}if(o){let f=s[c];if(f&&vt(f)&&f.type===n)return c}return null}function un(e,t,n,r){let o=e[n],i=t.data;if(zw(o)){let s=o;s.resolving&&ND(xD(i[n]));let a=ki(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?we(s.injectImpl):null,l=pp(e,r,F.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&Bw(n,i[n],t)}finally{u!==null&&we(u),ki(a),s.resolving=!1,yp()}}return o}function Xw(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Tr)?e[Tr]:void 0;return typeof t=="number"?t>=0?t&Ip:eE:t}function Bf(e,t,n){let r=1<>Cp)]&r)}function Hf(e,t){return!(e&F.Self)&&!(e&F.Host&&t)}var Xt=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Tp(this._tNode,this._lView,t,ns(r),n)}};function eE(){return new Xt(ue(),x())}function Mu(e){return kr(()=>{let t=e.prototype.constructor,n=t[Ti]||ic(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Ti]||ic(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function ic(e){return Sh(e)?()=>{let t=ic(ce(e));return t&&t()}:tn(e)}function tE(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[_]&2048&&!(s[_]&512);){let a=_p(i,s,n,r|F.Self,Xe);if(a!==Xe)return a;let c=i.parent;if(!c){let u=s[Kh];if(u){let l=u.get(n,Xe,r);if(l!==Xe)return l}c=xp(s),s=s[Xn]}i=c}return o}function xp(e){let t=e[T],n=t.type;return n===2?t.declTNode:n===1?e[Ce]:null}function Su(e){return Kw(ue(),e)}function zf(e,t=null,n=null,r){let o=Np(e,t,n,r);return o.resolveInjectorInitializers(),o}function Np(e,t=null,n=null,r,o=new Set){let i=[n||de,aw(e)];return r=r||(typeof e=="object"?void 0:ve(e)),new Nr(i,t||hu(),r||null,o)}var xe=class e{static{this.THROW_IF_NOT_FOUND=_r}static{this.NULL=new Ni}static create(t,n){if(Array.isArray(t))return zf({name:""},n,t,"");{let r=t.name??"";return zf({name:r},t.parent,t.providers,r)}}static{this.\u0275prov=E({token:e,providedIn:"any",factory:()=>N(Fh)})}static{this.__NG_ELEMENT_ID__=-1}};var nE=new y("");nE.__NG_ELEMENT_ID__=e=>{let t=ue();if(t===null)throw new w(204,!1);if(t.type&2)return t.value;if(e&F.Optional)return null;throw new w(204,!1)};var rE="ngOriginalError";function Fa(e){return e[rE]}var Ap=!0,ps=(()=>{class e{static{this.__NG_ELEMENT_ID__=oE}static{this.__NG_ENV_ID__=n=>n}}return e})(),sc=class extends ps{constructor(t){super(),this._lView=t}onDestroy(t){return sp(this._lView,t),()=>Tw(this._lView,t)}};function oE(){return new sc(x())}var it=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ae(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=E({token:e,providedIn:"root",factory:()=>new e})}}return e})();var ac=class extends q{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,Qh()&&(this.destroyRef=g(ps,{optional:!0})??void 0,this.pendingTasks=g(it,{optional:!0})??void 0)}emit(t){let n=k(null);try{super.next(t)}finally{k(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof W&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},ne=ac;function ji(...e){}function Rp(e){let t,n;function r(){e=ji;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Gf(e){return queueMicrotask(()=>e()),()=>{e=ji}}var Tu="isAngularZone",Vi=Tu+"_ID",iE=0,Q=class e{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ne(!1),this.onMicrotaskEmpty=new ne(!1),this.onStable=new ne(!1),this.onError=new ne(!1);let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Ap}=t;if(typeof Zone>"u")throw new w(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,cE(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Tu)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new w(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new w(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,sE,ji,ji);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},sE={};function _u(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function aE(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Rp(()=>{e.callbackScheduled=!1,cc(e),e.isCheckStableRunning=!0,_u(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),cc(e)}function cE(e){let t=()=>{aE(e)},n=iE++;e._inner=e._inner.fork({name:"angular",properties:{[Tu]:!0,[Vi]:n,[Vi+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(uE(c))return r.invokeTask(i,s,a,c);try{return qf(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Wf(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return qf(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!lE(c)&&t(),Wf(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,cc(e),_u(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function cc(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function qf(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Wf(e){e._nesting--,_u(e)}var uc=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ne,this.onMicrotaskEmpty=new ne,this.onStable=new ne,this.onError=new ne}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function uE(e){return Op(e,"__ignore_ng_zone__")}function lE(e){return Op(e,"__scheduler_tick__")}function Op(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var rt=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Fa(t);for(;n&&Fa(n);)n=Fa(n);return n||null}},dE=new y("",{providedIn:"root",factory:()=>{let e=g(Q),t=g(rt);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function Zf(e,t){return Ch(e,t)}function fE(e){return Ch(Ih,e)}var FF=(Zf.required=fE,Zf);function hE(){return tr(ue(),x())}function tr(e,t){return new oe(Fe(e,t))}var oe=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=hE}}return e})();function Pp(e){return e instanceof oe?e.nativeElement:e}function pE(){return this._results[Symbol.iterator]()}var lc=class e{get changes(){return this._changes??=new ne}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let n=e.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=pE)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=$D(t);(this._changesDetected=!UD(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function Fp(e){return(e.flags&128)===128}var xu=new Map,gE=0;function mE(){return gE++}function vE(e){xu.set(e[Br],e)}function kp(e){return xu.get(e)||null}function dc(e){xu.delete(e[Br])}var fc=class{get lView(){return kp(this.lViewId)}constructor(t,n,r){this.lViewId=t,this.nodeIndex=n,this.native=r}};function Lp(e){let t=ka(e);if(t){if(pt(t)){let n=t,r,o,i;if(jp(e)){if(r=wE(n,e),r==-1)throw new Error("The provided component was not found in the application");o=e}else if(yE(e)){if(r=EE(n,e),r==-1)throw new Error("The provided directive was not found in the application");i=IE(r,n)}else if(r=Qf(n,e),r==-1)return null;let s=_e(n[r]),a=ka(s),c=a&&!Array.isArray(a)?a:Yf(n,r,s);if(o&&c.component===void 0&&(c.component=o,Re(c.component,c)),i&&c.directives===void 0){c.directives=i;for(let u=0;u=0){let a=_e(i[s]),c=Yf(i,s,a);Re(a,c),t=c;break}}}}return t||null}function Yf(e,t,n){return new fc(e[Br],t,n)}var hc="__ngContext__";function Re(e,t){pt(t)?(e[hc]=t[Br],vE(t)):e[hc]=t}function ka(e){let t=e[hc];return typeof t=="number"?kp(t):t||null}function jp(e){return e&&e.constructor&&e.constructor.\u0275cmp}function yE(e){return e&&e.constructor&&e.constructor.\u0275dir}function Qf(e,t){let n=e[T];for(let r=K;rCE}),CE="ng",Au=new y(""),st=new y("",{providedIn:"platform",factory:()=>"unknown"});var kF=new y(""),Ru=new y("",{providedIn:"root",factory:()=>Hp().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var bE="h",ME="b";var SE=()=>null;function Ou(e,t,n=!1){return SE(e,t,n)}var zp=!1,TE=new y("",{providedIn:"root",factory:()=>zp});var pi;function _E(){if(pi===void 0&&(pi=null,en.trustedTypes))try{pi=en.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return pi}function gs(e){return _E()?.createHTML(e)||e}var gi;function Gp(){if(gi===void 0&&(gi=null,en.trustedTypes))try{gi=en.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return gi}function Kf(e){return Gp()?.createHTML(e)||e}function Jf(e){return Gp()?.createScriptURL(e)||e}var yt=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Eh})`}},gc=class extends yt{getTypeName(){return"HTML"}},mc=class extends yt{getTypeName(){return"Style"}},vc=class extends yt{getTypeName(){return"Script"}},yc=class extends yt{getTypeName(){return"URL"}},Dc=class extends yt{getTypeName(){return"ResourceURL"}};function ke(e){return e instanceof yt?e.changingThisBreaksApplicationSecurity:e}function It(e,t){let n=xE(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Eh})`)}return n===t}function xE(e){return e instanceof yt&&e.getTypeName()||null}function qp(e){return new gc(e)}function Wp(e){return new mc(e)}function Zp(e){return new vc(e)}function Yp(e){return new yc(e)}function Qp(e){return new Dc(e)}function NE(e){let t=new Ec(e);return AE()?new wc(t):t}var wc=class{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let n=new window.DOMParser().parseFromString(gs(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},Ec=class{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=gs(t),n}};function AE(){try{return!!new window.DOMParser().parseFromString(gs(""),"text/html")}catch{return!1}}var RE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ms(e){return e=String(e),e.match(RE)?e:"unsafe:"+e}function Ct(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function zr(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var Kp=Ct("area,br,col,hr,img,wbr"),Jp=Ct("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Xp=Ct("rp,rt"),OE=zr(Xp,Jp),PE=zr(Jp,Ct("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),FE=zr(Xp,Ct("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Xf=zr(Kp,PE,FE,OE),eg=Ct("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),kE=Ct("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),LE=Ct("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),jE=zr(eg,kE,LE),VE=Ct("script,style,template"),Ic=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){o.push(n),n=BE(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=$E(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(t){let n=eh(t).toLowerCase();if(!Xf.hasOwnProperty(n))return this.sanitizedSomething=!0,!VE.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o"),!0}endElement(t){let n=eh(t).toLowerCase();Xf.hasOwnProperty(n)&&!Kp.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(th(t))}};function UE(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function $E(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw tg(t);return t}function BE(e){let t=e.firstChild;if(t&&UE(e,t))throw tg(t);return t}function eh(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function tg(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var HE=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,zE=/([^\#-~ |!])/g;function th(e){return e.replace(/&/g,"&").replace(HE,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(zE,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var mi;function Pu(e,t){let n=null;try{mi=mi||NE(e);let r=t?String(t):"";n=mi.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=mi.getInertBodyElement(r)}while(r!==i);let a=new Ic().sanitizeChildren(nh(n)||n);return gs(a)}finally{if(n){let r=nh(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function nh(e){return"content"in e&&GE(e)?e.content:null}function GE(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var Ge=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Ge||{});function ng(e){let t=Fu();return t?Kf(t.sanitize(Ge.HTML,e)||""):It(e,"HTML")?Kf(ke(e)):Pu(Hp(),jr(e))}function qE(e){let t=Fu();return t?t.sanitize(Ge.URL,e)||"":It(e,"URL")?ke(e):ms(jr(e))}function WE(e){let t=Fu();if(t)return Jf(t.sanitize(Ge.RESOURCE_URL,e)||"");if(It(e,"ResourceURL"))return Jf(ke(e));throw new w(904,!1)}function ZE(e,t){return t==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||t==="href"&&(e==="base"||e==="link")?WE:qE}function rg(e,t,n){return ZE(t,n)(e)}function Fu(){let e=x();return e&&e[tt].sanitizer}var YE=/^>|^->||--!>|)/g,KE="\u200B$1\u200B";function JE(e){return e.replace(YE,t=>t.replace(QE,KE))}function og(e){return e instanceof Function?e():e}function ig(e){return(e??g(xe)).get(st)==="browser"}var Dt=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Dt||{}),XE;function ku(e,t){return XE(e,t)}function Ln(e,t,n,r,o){if(r!=null){let i,s=!1;Et(r)?i=r:pt(r)&&(s=!0,r=r[ot]);let a=_e(r);e===0&&n!==null?o==null?lg(t,n,a):Ui(t,n,a,o||null,!0):e===1&&n!==null?Ui(t,n,a,o||null,!0):e===2?hI(t,a,s):e===3&&t.destroyNode(a),i!=null&&gI(t,e,i,n,o)}}function eI(e,t){return e.createText(t)}function tI(e,t,n){e.setValue(t,n)}function nI(e,t){return e.createComment(JE(t))}function sg(e,t,n){return e.createElement(t,n)}function rI(e,t){ag(e,t),t[ot]=null,t[Ce]=null}function oI(e,t,n,r,o,i){r[ot]=o,r[Ce]=t,Ds(e,r,n,1,o,i)}function ag(e,t){t[tt].changeDetectionScheduler?.notify(9),Ds(e,t,t[Z],2,null,null)}function iI(e){let t=e[Ar];if(!t)return La(e[T],e);for(;t;){let n=null;if(pt(t))n=t[Ar];else{let r=t[fe];r&&(n=r)}if(!n){for(;t&&!t[He]&&t!==e;)pt(t)&&La(t[T],t),t=t[he];t===null&&(t=e),pt(t)&&La(t[T],t),n=t&&t[He]}t=n}}function sI(e,t,n,r){let o=fe+r,i=n.length;r>0&&(n[o-1][He]=t),r0&&(e[n-1][He]=r[He]);let i=xi(e,fe+t);rI(r[T],r);let s=i[mt];s!==null&&s.detachView(i[T]),r[he]=null,r[He]=null,r[_]&=-129}return r}function vs(e,t){if(!(t[_]&256)){let n=t[Z];n.destroyNode&&Ds(e,t,n,3,null,null),iI(t)}}function La(e,t){if(t[_]&256)return;let n=k(null);try{t[_]&=-129,t[_]|=256,t[Oe]&&To(t[Oe]),cI(e,t),aI(e,t),t[T].type===1&&t[Z].destroy();let r=t[rn];if(r!==null&&Et(t[he])){r!==t[he]&&Lu(r,t);let o=t[mt];o!==null&&o.detachView(e)}dc(t)}finally{k(n)}}function aI(e,t){let n=e.cleanup,r=t[Ai];if(n!==null)for(let i=0;i=0?r[s]():r[-s].unsubscribe(),i+=2}else{let s=r[n[i+1]];n[i].call(s)}r!==null&&(t[Ai]=null);let o=t[Pt];if(o!==null){t[Pt]=null;for(let i=0;i-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===et.None||i===et.Emulated)return null}return Fe(r,n)}}function Ui(e,t,n,r,o){e.insertBefore(t,n,r,o)}function lg(e,t,n){e.appendChild(t,n)}function rh(e,t,n,r,o){r!==null?Ui(e,t,n,r,o):lg(e,t,n)}function dg(e,t){return e.parentNode(t)}function lI(e,t){return e.nextSibling(t)}function fg(e,t,n){return fI(e,t,n)}function dI(e,t,n){return e.type&40?Fe(e,n):null}var fI=dI,oh;function ys(e,t,n,r){let o=ug(e,r,t),i=t[Z],s=r.parent||t[Ce],a=fg(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;cK&&vg(e,t,K,!1),Je(s?2:0,o),n(r,o)}finally{an(i),Je(s?3:1,o)}}function Vu(e,t,n){if(mu(t)){let r=k(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function bI(e,t,n,r){let o=Tg(t);o.push(n),e.firstCreatePass&&_g(e).push(r,o.length-1)}function MI(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return up()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function ih(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,c=Ft.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let u=i;if(o!==null){if(!o.hasOwnProperty(i))continue;u=o[i]}e===0?sh(r,n,u,a,c):sh(r,n,u,a)}return r}function sh(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function SI(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],c=null,u=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function AI(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;is(n)&&jI(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||Li(n,t),Re(r,t);let s=n.initialInputs;for(let a=o;a{us(e.lView)},consumerOnSignalRead(){this.lView[Oe]=this}});function XI(e){let t=e[Oe]??Object.create(eC);return t.lView=e,t}var eC=H(D({},Cn),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=sn(e.lView);for(;t&&!Og(t[T]);)t=sn(t);t&&ip(t)},consumerOnSignalRead(){this.lView[Oe]=this}});function Og(e){return e.type!==2}var tC=100;function Pg(e,t=!0,n=0){let r=e[tt],o=r.rendererFactory,i=!1;i||o.begin?.();try{nC(e,n)}catch(s){throw t&&xg(e,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function nC(e,t){let n=dp();try{Uf(!0),Sc(e,t);let r=0;for(;cs(e);){if(r===tC)throw new w(103,!1);r++,Sc(e,1)}}finally{Uf(n)}}function rC(e,t,n,r){let o=t[_];if((o&256)===256)return;let i=!1,s=!1;!i&&t[tt].inlineEffectRunner?.flush(),Iu(t);let a=!0,c=null,u=null;i||(Og(e)?(u=YI(t),c=wr(u)):Md()===null?(a=!1,u=XI(t),c=wr(u)):t[Oe]&&(To(t[Oe]),t[Oe]=null));try{op(t),Fw(e.bindingStartIndex),n!==null&&Eg(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&Ii(t,f,null)}else{let f=e.preOrderHooks;f!==null&&Ci(t,f,0,null),Ra(t,0)}if(s||oC(t),Fg(t,0),e.contentQueries!==null&&Sg(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&Ii(t,f)}else{let f=e.contentHooks;f!==null&&Ci(t,f,1),Ra(t,1)}yI(e,t);let d=e.components;d!==null&&Lg(t,d,0);let h=e.viewQuery;if(h!==null&&Mc(2,h,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&Ii(t,f)}else{let f=e.viewHooks;f!==null&&Ci(t,f,2),Ra(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Ei]){for(let f of t[Ei])f();t[Ei]=null}i||(t[_]&=-73)}catch(l){throw i||us(t),l}finally{u!==null&&(Mo(u,c),a&&KI(u)),Cu()}}function Fg(e,t){for(let n=Vp(e);n!==null;n=Up(n))for(let r=fe;r-1&&(Rr(t,r),xi(n,r))}this._attachedToViewContainer=!1}vs(this._lView[T],this._lView)}onDestroy(t){sp(this._lView,t)}markForCheck(){qu(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[_]&=-129}reattach(){ec(this._lView),this._lView[_]|=128}detectChanges(){this._lView[_]|=1024,Pg(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new w(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Ja(this._lView),n=this._lView[rn];n!==null&&!t&&Lu(n,this._lView),ag(this._lView[T],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new w(902,!1);this._appRef=t;let n=Ja(this._lView),r=this._lView[rn];r!==null&&!n&&cg(r,this._lView),ec(this._lView)}},dn=(()=>{class e{static{this.__NG_ELEMENT_ID__=cC}}return e})(),sC=dn,aC=class extends sC{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=Gr(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new ln(o)}};function cC(){return Cs(ue(),x())}function Cs(e,t){return e.type&4?new aC(t,e,tr(e,t)):null}var VF=new RegExp(`^(\\d+)*(${ME}|${bE})*(.*)`);var uC=()=>null;function Wn(e,t){return uC(e,t)}var Zn=class{},bs=new y("",{providedIn:"root",factory:()=>!1});var jg=new y(""),Vg=new y(""),Tc=class{},Bi=class{};function lC(e){let t=Error(`No component factory found for ${ve(e)}.`);return t[dC]=e,t}var dC="ngComponent";var _c=class{resolveComponentFactory(t){throw lC(t)}},Yn=class{static{this.NULL=new _c}},Qn=class{},pn=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>fC()}}return e})();function fC(){let e=x(),t=ue(),n=nt(t.index,e);return(pt(n)?n:e)[Z]}var hC=(()=>{class e{static{this.\u0275prov=E({token:e,providedIn:"root",factory:()=>null})}}return e})();function Hi(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&gg(e,n,i.join(" "))}}function wC(e,t,n){let r=e.projection=[];for(let o=0;o{class e{static{this.__NG_ELEMENT_ID__=IC}}return e})();function IC(){let e=ue();return $g(e,x())}var CC=Le,Ug=class extends CC{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return tr(this._hostTNode,this._hostLView)}get injector(){return new Xt(this._hostTNode,this._hostLView)}get parentInjector(){let t=bu(this._hostTNode,this._hostLView);if(Ep(t)){let n=Fi(t,this._hostLView),r=Pi(t),o=n[T].data[r+8];return new Xt(o,n)}else return new Xt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=ch(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-fe}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Wn(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,qn(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!yw(t),a;if(s)a=n;else{let p=n||{};a=p.index,r=p.injector,o=p.projectableNodes,i=p.environmentInjector||p.ngModuleRef}let c=s?t:new Or(nn(t)),u=r||this.parentInjector;if(!i&&c.ngModule==null){let m=(s?u:this.parentInjector).get(Ee,null);m&&(i=m)}let l=nn(c.componentType??{}),d=Wn(this._lContainer,l?.id??null),h=d?.firstChild??null,f=c.create(u,o,h,i);return this.insertImpl(f.hostView,a,qn(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Mw(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[he],u=new Ug(c,c[Ce],c[he]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return qr(s,o,i,r),t.attachToViewContainerRef(),Ph(ja(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=ch(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Rr(this._lContainer,n);r&&(xi(ja(this._lContainer),n),vs(r[T],r))}detach(t){let n=this._adjustIndex(t,-1),r=Rr(this._lContainer,n);return r&&xi(ja(this._lContainer),n)!=null?new ln(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function ch(e){return e[Ri]}function ja(e){return e[Ri]||(e[Ri]=[])}function $g(e,t){let n,r=t[e.index];return Et(r)?n=r:(n=Mg(r,t,null,e),t[e.index]=n,Is(t,n)),MC(n,t,e,r),new Ug(n,e,t)}function bC(e,t){let n=e[Z],r=n.createComment(""),o=Fe(t,e),i=dg(n,o);return Ui(n,i,r,lI(n,o),!1),r}var MC=_C,SC=()=>!1;function TC(e,t,n){return SC(e,t,n)}function _C(e,t,n,r){if(e[on])return;let o;n.type&8?o=_e(r):o=bC(t,n),e[on]=o}var Nc=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Ac=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i0)r.push(s[a/2]);else{let u=i[a+1],l=t[-c];for(let d=fe;dt.trim())}function Gg(e,t,n){e.queries===null&&(e.queries=new Rc),e.queries.track(new Oc(t,n))}function FC(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t)}function Zu(e,t){return e.queries.getByIndex(t)}function qg(e,t){let n=e[T],r=Zu(n,t);return r.crossesNgTemplate?Pc(n,e,t,[]):Bg(n,e,r,t)}var uh=new Set;function We(e){uh.has(e)||(uh.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function kC(e){return typeof e=="function"&&e[Me]!==void 0}function LC(e,t){We("NgSignals");let n=kd(e),r=n[Me];return t?.equal&&(r.equal=t.equal),n.set=o=>No(r,o),n.update=o=>Ld(r,o),n.asReadonly=jC.bind(n),n}function jC(){let e=this[Me];if(e.readonlyFn===void 0){let t=()=>this();t[Me]=e,e.readonlyFn=t}return e.readonlyFn}function Wg(e){return kC(e)&&typeof e.set=="function"}function Zg(e,t){let n,r=ca(()=>{n._dirtyCounter();let o=BC(n,e);if(t&&o===void 0)throw new w(-951,!1);return o});return n=r[Me],n._dirtyCounter=LC(0),n._flatValue=void 0,r}function VC(){return Zg(!0,!1)}function UC(){return Zg(!0,!0)}function $C(e,t){let n=e[Me];n._lView=x(),n._queryIndex=t,n._queryList=Wu(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1))}function BC(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[_]&4)return t?void 0:de;let o=Wu(n,r),i=qg(n,r);return o.reset(i,Pp),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}function lh(e,t){return VC()}function HC(e,t){return UC()}var $F=(lh.required=HC,lh);function zC(e){return Object.getPrototypeOf(e.prototype).constructor}function GC(e){let t=zC(e.type),n=!0,r=[e];for(;t;){let o;if(vt(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new w(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=vi(e.inputs),s.inputTransforms=vi(e.inputTransforms),s.declaredInputs=vi(e.declaredInputs),s.outputs=vi(e.outputs);let a=o.hostBindings;a&&QC(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&ZC(e,c),u&&YC(e,u),qC(e,o),ID(e.outputs,o.outputs),vt(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=xr(o.hostAttrs,n=xr(n,o.hostAttrs))}}function vi(e){return e===gt?{}:e===de?[]:e}function ZC(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function YC(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function QC(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function BF(e){let t=n=>{let r=(Array.isArray(e)?e:e()).map(o=>typeof o=="function"?{directive:ce(o),inputs:gt,outputs:gt}:{directive:ce(o.directive),inputs:dh(o.inputs),outputs:dh(o.outputs)});n.hostDirectives===null?(n.findHostDirectiveDefs=Yg,n.hostDirectives=r):n.hostDirectives.unshift(...r)};return t.ngInherit=!0,t}function Yg(e,t,n){if(e.hostDirectives!==null)for(let r of e.hostDirectives){let o=du(r.directive);KC(o.declaredInputs,r.inputs),Yg(o,t,n),n.set(o,r),t.push(o)}}function dh(e){if(e===void 0||e.length===0)return gt;let t={};for(let n=0;nn()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Fc=class extends Pr{constructor(t){super(),this.moduleType=t}create(t){return new qi(this.moduleType,t,[])}};var Wi=class extends wt{constructor(t){super(),this.componentFactoryResolver=new zi(this),this.instance=null;let n=new Nr([...t.providers,{provide:wt,useValue:this},{provide:Yn,useValue:this.componentFactoryResolver}],t.parent||hu(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Yu(e,t,n=null){return new Wi({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function Kg(e){return Qu(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function JC(e,t){if(Array.isArray(e))for(let n=0;n{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=E({token:e,providedIn:"root",factory:()=>new e})}}return e})(),kc=class e{constructor(){this.ngZone=g(Q),this.scheduler=g(Zn),this.errorHandler=g(rt,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[jn.EarlyRead,jn.Write,jn.MixedReadWrite,jn.Read]}execute(){this.executing=!0;for(let t of e.PHASES)for(let n of this.sequences)if(!(n.erroredOrDestroyed||!n.hooks[t]))try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>n.hooks[t](n.pipelinedValue))}catch(r){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let t of this.sequences)t.afterRun(),t.once&&this.sequences.delete(t);for(let t of this.deferredRegistrations)this.sequences.add(t);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(t){this.executing?this.deferredRegistrations.add(t):(this.sequences.add(t),this.scheduler.notify(6))}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}static{this.\u0275prov=E({token:e,providedIn:"root",factory:()=>new e})}},Lc=class{constructor(t,n,r,o){this.impl=t,this.hooks=n,this.once=r,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function sb(e,t){!t?.injector&&pu(sb);let n=t?.injector??g(xe);return ig(n)?(We("NgAfterRender"),tm(e,n,t,!1)):nm}function em(e,t){!t?.injector&&pu(em);let n=t?.injector??g(xe);return ig(n)?(We("NgAfterNextRender"),tm(e,n,t,!0)):nm}function ab(e,t){if(e instanceof Function){let n=[void 0,void 0,void 0,void 0];return n[t]=e,n}else return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function tm(e,t,n,r){let o=t.get(Xg);o.impl??=t.get(kc);let i=n?.phase??jn.MixedReadWrite,s=n?.manualCleanup!==!0?t.get(ps):null,a=new Lc(o.impl,ab(e,i),r,s);return o.impl.register(a),a}var nm={destroy(){}};function gn(e,t,n,r){let o=x(),i=jt();if(Ie(o,i,t)){let s=Y(),a=Hr();VI(a,o,e,t,n,r)}return gn}function cb(e,t,n,r){return Ie(e,jt(),n)?t+jr(n)+r:qe}function yi(e,t){return e<<17|t<<2}function fn(e){return e>>17&32767}function ub(e){return(e&2)==2}function lb(e,t){return e&131071|t<<17}function jc(e){return e|2}function Kn(e){return(e&131068)>>2}function Va(e,t){return e&-131069|t<<2}function db(e){return(e&1)===1}function Vc(e){return e|1}function fb(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=fn(s),c=Kn(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Vr(d,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let h=fn(e[a+1]);e[r+1]=yi(h,a),h!==0&&(e[h+1]=Va(e[h+1],r)),e[a+1]=lb(e[a+1],r)}else e[r+1]=yi(a,0),a!==0&&(e[a+1]=Va(e[a+1],r)),a=r;else e[r+1]=yi(c,0),a===0?a=r:e[c+1]=Va(e[c+1],r),c=r;u&&(e[r+1]=jc(e[r+1])),fh(e,l,r,!0),fh(e,l,r,!1),hb(t,l,e,r,i),s=yi(a,c),i?t.classBindings=s:t.styleBindings=s}function hb(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Vr(i,t)>=0&&(n[r+1]=Vc(n[r+1]))}function fh(e,t,n,r){let o=e[n+1],i=t===null,s=r?fn(o):Kn(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];pb(c,t)&&(a=!0,e[s+1]=r?Vc(u):jc(u)),s=r?fn(u):Kn(u)}a&&(e[n+1]=r?jc(o):Vc(o))}function pb(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Vr(e,t)>=0:!1}var Be={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function gb(e){return e.substring(Be.key,Be.keyEnd)}function mb(e){return vb(e),rm(e,om(e,0,Be.textEnd))}function rm(e,t){let n=Be.textEnd;return n===t?-1:(t=Be.keyEnd=yb(e,Be.key=t,n),om(e,t,n))}function vb(e){Be.key=0,Be.keyEnd=0,Be.value=0,Be.valueEnd=0,Be.textEnd=e.length}function om(e,t,n){for(;t32;)t++;return t}function Db(e,t,n){let r=x(),o=jt();if(Ie(r,o,t)){let i=Y(),s=Hr();Es(i,s,r,e,t,r[Z],n,!1)}return Db}function Uc(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";zu(e,n,i[s],s,r)}function im(e,t,n){return sm(e,t,n,!1),im}function wb(e,t){return sm(e,t,null,!0),wb}function HF(e){Ib(_b,Eb,e,!0)}function Eb(e,t){for(let n=mb(t);n>=0;n=rm(t,n))uu(e,gb(t),!0)}function sm(e,t,n,r){let o=x(),i=Y(),s=fp(2);if(i.firstUpdatePass&&cm(i,e,s,r),t!==qe&&Ie(o,s,t)){let a=i.data[Vt()];um(i,a,o,o[Z],e,o[s+1]=Nb(t,n),r,s)}}function Ib(e,t,n,r){let o=Y(),i=fp(2);o.firstUpdatePass&&cm(o,null,i,r);let s=x();if(n!==qe&&Ie(s,i,n)){let a=o.data[Vt()];if(lm(a,r)&&!am(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=za(c,n||"")),Uc(o,a,s,n,r)}else xb(o,a,s,s[Z],s[i+1],s[i+1]=Tb(e,t,n),r,i)}}function am(e,t){return t>=e.expandoStartIndex}function cm(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Vt()],s=am(e,n);lm(i,r)&&t===null&&!s&&(t=!1),t=Cb(o,i,t,r),fb(o,i,t,n,s,r)}}function Cb(e,t,n,r){let o=hp(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Ua(null,e,t,n,r),n=Fr(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Ua(o,e,t,n,r),i===null){let c=bb(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Ua(null,e,t,c[1],r),c=Fr(c,t.attrs,r),Mb(e,t,r,c))}else i=Sb(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function bb(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Kn(r)!==0)return e[fn(r)]}function Mb(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[fn(o)]=r}function Sb(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,h=n[o+1];h===qe&&(h=d?de:void 0);let f=d?Na(h,r):l===r?h:void 0;if(u&&!Yi(f)&&(f=Na(c,r)),Yi(f)&&(a=f,s))return a;let p=e[o+1];o=s?fn(p):Kn(p)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Na(c,r))}return a}function Yi(e){return e!==void 0}function Nb(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=ve(ke(e)))),e}function lm(e,t){return(e.flags&(t?8:16))!==0}var $c=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function $a(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function Ab(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let c=t.length-1;for(;i<=s&&i<=c;){let u=e.at(i),l=t[i],d=$a(i,u,i,l,n);if(d!==0){d<0&&e.updateValue(i,l),i++;continue}let h=e.at(s),f=t[c],p=$a(s,h,c,f,n);if(p!==0){p<0&&e.updateValue(s,f),s--,c--;continue}let m=n(i,u),v=n(s,h),I=n(i,l);if(Object.is(I,v)){let V=n(c,f);Object.is(V,m)?(e.swap(i,s),e.updateValue(s,f),c--,s--):e.move(s,i),e.updateValue(i,l),i++;continue}if(r??=new Qi,o??=gh(e,i,s,n),Bc(e,r,i,I))e.updateValue(i,l),i++,s++;else if(o.has(I))r.set(m,e.detach(i)),s--;else{let V=e.create(i,t[i]);e.attach(i,V),i++,s++}}for(;i<=c;)ph(e,r,n,i,t[i]),i++}else if(t!=null){let c=t[Symbol.iterator](),u=c.next();for(;!u.done&&i<=s;){let l=e.at(i),d=u.value,h=$a(i,l,i,d,n);if(h!==0)h<0&&e.updateValue(i,d),i++,u=c.next();else{r??=new Qi,o??=gh(e,i,s,n);let f=n(i,d);if(Bc(e,r,i,f))e.updateValue(i,d),i++,s++,u=c.next();else if(!o.has(f))e.attach(i,e.create(i,d)),i++,s++,u=c.next();else{let p=n(i,l);r.set(p,e.detach(i)),s--}}}for(;!u.done;)ph(e,r,n,e.length,u.value),u=c.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(c=>{e.destroy(c)})}function Bc(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function ph(e,t,n,r,o){if(Bc(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function gh(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var Qi=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function zF(e,t){We("NgControlFlow");let n=x(),r=jt(),o=n[r]!==qe?n[r]:-1,i=o!==-1?Ki(n,K+o):void 0,s=0;if(Ie(n,r,e)){let a=k(null);try{if(i!==void 0&&Ag(i,s),e!==-1){let c=K+e,u=Ki(n,c),l=qc(n[T],c),d=Wn(u,l.tView.ssrId),h=Gr(n,l,t,{dehydratedView:d});qr(u,h,s,qn(l,d))}}finally{k(a)}}else if(i!==void 0){let a=Ng(i,s);a!==void 0&&(a[re]=t)}}var Hc=class{constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-fe}};function GF(e,t){return t}var zc=class{constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function qF(e,t,n,r,o,i,s,a,c,u,l,d,h){We("NgControlFlow");let f=x(),p=Y(),m=c!==void 0,v=x(),I=a?s.bind(v[Te][re]):s,V=new zc(m,I);v[K+e]=V,Zi(f,p,e+1,t,n,r,o,kt(p.consts,i)),m&&Zi(f,p,e+2,c,u,l,d,kt(p.consts,h))}var Gc=class extends $c{constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-fe}at(t){return this.getLView(t)[re].$implicit}attach(t,n){let r=n[Hn];this.needsIndexUpdate||=t!==this.length,qr(this.lContainer,n,t,qn(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,Rb(this.lContainer,t)}create(t,n){let r=Wn(this.lContainer,this.templateTNode.tView.ssrId),o=Gr(this.hostLView,this.templateTNode,new Hc(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){vs(t[T],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[re].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t(fs(!0),sg(r,o,$w()));function kb(e,t,n,r,o){let i=t.consts,s=kt(i,r),a=nr(t,e,8,"ng-container",s);s!==null&&Hi(a,s,!0);let c=kt(i,o);return Hu(t,n,a,c),t.queries!==null&&t.queries.elementStart(t,a),a}function hm(e,t,n){let r=x(),o=Y(),i=e+K,s=o.firstCreatePass?kb(i,o,r,t,n):o.data[i];hn(s,!0);let a=jb(o,r,s,e);return r[i]=a,ds()&&ys(o,r,a,s),Re(a,r),ss(s)&&(Uu(o,r,s),Vu(o,s,r)),n!=null&&$u(r,s),hm}function pm(){let e=ue(),t=Y();return Du()?wu():(e=e.parent,hn(e,!1)),t.firstCreatePass&&(hs(t,e),mu(e)&&t.queries.elementEnd(e)),pm}function Lb(e,t,n){return hm(e,t,n),pm(),Lb}var jb=(e,t,n,r)=>(fs(!0),nI(t[Z],""));function ZF(){return x()}function Ju(e,t,n){let r=x(),o=jt();if(Ie(r,o,t)){let i=Y(),s=Hr();Es(i,s,r,e,t,r[Z],n,!0)}return Ju}function Vb(e,t,n){let r=x(),o=jt();if(Ie(r,o,t)){let i=Y(),s=Hr(),a=hp(i.data),c=HI(a,s,r);Es(i,s,r,e,t,c,n,!0)}return Vb}var Ji="en-US";var Ub=Ji;function $b(e){typeof e=="string"&&(Ub=e.toLowerCase().replace(/_/g,"-"))}var Bb=(e,t,n)=>{};function Xu(e,t,n,r){let o=x(),i=Y(),s=ue();return gm(i,o,o[Z],s,e,t,r),Xu}function Hb(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;ic?a[c]:null}typeof s=="string"&&(i+=2)}return null}function gm(e,t,n,r,o,i,s){let a=ss(r),u=e.firstCreatePass&&_g(e),l=t[re],d=Tg(t),h=!0;if(r.type&3||s){let m=Fe(r,t),v=s?s(m):m,I=d.length,V=s?se=>s(_e(se[r.index])):r.index,U=null;if(!s&&a&&(U=Hb(e,t,o,r.index)),U!==null){let se=U.__ngLastListenerFn__||U;se.__ngNextListenerFn__=i,U.__ngLastListenerFn__=i,h=!1}else{i=vh(r,t,l,i),Bb(m,o,i);let se=n.listen(v,o,i);d.push(i,se),u&&u.push(o,V,I,I+1)}}else i=vh(r,t,l,i);let f=r.outputs,p;if(h&&f!==null&&(p=f[o])){let m=p.length;if(m)for(let v=0;v-1?nt(e.index,t):t;qu(s,5);let a=mh(t,n,r,i),c=o.__ngNextListenerFn__;for(;c;)a=mh(t,n,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function YF(e=1){return Uw(e)}function zb(e,t){let n=null,r=KD(e);for(let o=0;o=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function XF(e){let t=Pw();return as(t,K+e)}function ek(e,t=""){let n=x(),r=Y(),o=e+K,i=r.firstCreatePass?nr(r,o,1,t,null):r.data[o],s=Wb(r,n,i,t,e);n[o]=s,ds()&&ys(r,n,s,i),hn(i,!1)}var Wb=(e,t,n,r,o)=>(fs(!0),eI(t[Z],r));function Zb(e){return Em("",e,""),Zb}function Em(e,t,n){let r=x(),o=cb(r,e,t,n);return o!==qe&&zI(r,Vt(),o),Em}function Yb(e,t,n){Wg(t)&&(t=t());let r=x(),o=jt();if(Ie(r,o,t)){let i=Y(),s=Hr();Es(i,s,r,e,t,r[Z],n,!1)}return Yb}function tk(e,t){let n=Wg(e);return n&&e.set(t),n}function Qb(e,t){let n=x(),r=Y(),o=ue();return gm(r,n,n[Z],o,e,t),Qb}function Kb(e,t,n){let r=Y();if(r.firstCreatePass){let o=vt(e);Wc(n,r.data,r.blueprint,o,!0),Wc(t,r.data,r.blueprint,o,!1)}}function Wc(e,t,n,r,o){if(e=ce(e),Array.isArray(e))for(let i=0;i>20;if(Bn(e)||!e.multi){let f=new cn(u,o,j),p=Ha(c,t,o?l:l+h,d);p===-1?(oc(Li(a,s),i,c),Ba(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[p]=f,s[p]=f)}else{let f=Ha(c,t,l+h,d),p=Ha(c,t,l,l+h),m=f>=0&&n[f],v=p>=0&&n[p];if(o&&!v||!o&&!m){oc(Li(a,s),i,c);let I=eM(o?Xb:Jb,n.length,o,r,u);!o&&v&&(n[p].providerFactory=I),Ba(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(I),s.push(I)}else{let I=Im(n[o?p:f],u,!o&&r);Ba(i,e,f>-1?f:p,I)}!o&&r&&v&&n[p].componentProviders++}}}function Ba(e,t,n,r){let o=Bn(t),i=dw(t);if(o||i){let c=(i?ce(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c)}else u.push(n,c)}}}function Im(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Ha(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>Kb(r,o?o(e):e,t)}}var tM=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=qh(!1,n.type),o=r.length>0?Yu([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=E({token:e,providedIn:"environment",factory:()=>new e(N(Ee))})}}return e})();function Ut(e){We("NgStandalone"),e.getStandaloneInjector=t=>t.get(tM).getOrCreateStandaloneInjector(e)}function rk(e,t,n){let r=er()+e,o=x();return o[r]===qe?Ms(o,r,n?t.call(n):t()):XC(o,r)}function ok(e,t,n,r){return Cm(x(),er(),e,t,n,r)}function ik(e,t,n,r,o){return bm(x(),er(),e,t,n,r,o)}function el(e,t){let n=e[t];return n===qe?void 0:n}function Cm(e,t,n,r,o,i){let s=t+n;return Ie(e,s,o)?Ms(e,s+1,i?r.call(i,o):r(o)):el(e,s+1)}function bm(e,t,n,r,o,i,s){let a=t+n;return Jg(e,a,o,i)?Ms(e,a+2,s?r.call(s,o,i):r(o,i)):el(e,a+2)}function nM(e,t,n,r,o,i,s,a){let c=t+n;return eb(e,c,o,i,s)?Ms(e,c+3,a?r.call(a,o,i,s):r(o,i,s)):el(e,c+3)}function sk(e,t){let n=Y(),r,o=e+K;n.firstCreatePass?(r=rM(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=tn(r.type,!0)),s,a=we(j);try{let c=ki(!1),u=i();return ki(c),qb(n,x(),o,u),u}finally{we(a)}}function rM(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function ak(e,t,n){let r=e+K,o=x(),i=as(o,r);return tl(o,r)?Cm(o,er(),t,i.transform,n,i):i.transform(n)}function ck(e,t,n,r){let o=e+K,i=x(),s=as(i,o);return tl(i,o)?bm(i,er(),t,s.transform,n,r,s):s.transform(n,r)}function uk(e,t,n,r,o){let i=e+K,s=x(),a=as(s,i);return tl(s,i)?nM(s,er(),t,a.transform,n,r,o,a):a.transform(n,r,o)}function tl(e,t){return e[T].data[t].pure}function lk(e,t){return Cs(e,t)}var Ss=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();var Mm=new y("");function rr(e){return!!e&&typeof e.then=="function"}function nl(e){return!!e&&typeof e.subscribe=="function"}var Sm=new y(""),Tm=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=g(Sm,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=o();if(rr(i))n.push(i);else if(nl(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Ts=new y("");function oM(){Fd(()=>{throw new w(600,!1)})}function iM(e){return e.isBoundToModule}var sM=10;function aM(e,t,n){try{let r=n();return rr(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var at=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=g(dE),this.afterRenderManager=g(Xg),this.zonelessEnabled=g(bs),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new q,this.afterTick=new q,this.componentTypes=[],this.components=[],this.isStable=g(it).hasPendingTasks.pipe(A(n=>!n)),this._injector=g(Ee)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,r){let o=n instanceof Bi;if(!this._injector.get(Tm).done){let h=!o&&Bh(n),f=!1;throw new w(405,f)}let s;o?s=n:s=this._injector.get(Yn).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=iM(s)?void 0:this._injector.get(wt),c=r||s.selector,u=s.create(xe.NULL,[],c,a),l=u.location.nativeElement,d=u.injector.get(Mm,null);return d?.registerApplication(l),u.onDestroy(()=>{this.detachView(u.hostView),Mi(this.components,u),d?.unregisterApplication(l)}),this._loadComponent(u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new w(101,!1);let n=k(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,k(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(Qn,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++cs(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Mi(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(Ts,[]);[...this._bootstrapListeners,...r].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Mi(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new w(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Mi(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function cM(e,t,n,r){if(!n&&!cs(e))return;Pg(e,t,n&&!r?0:1)}var Yc=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},rl=(()=>{class e{compileModuleSync(n){return new Fc(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=Hh(n),i=og(o.declarations).reduce((s,a)=>{let c=nn(a);return c&&s.push(new Or(c)),s},[]);return new Yc(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var uM=(()=>{class e{constructor(){this.zone=g(Q),this.changeDetectionScheduler=g(Zn),this.applicationRef=g(at)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),lM=new y("",{factory:()=>!1});function _m({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new Q(H(D({},xm()),{scheduleInRootZone:n})),[{provide:Q,useFactory:e},{provide:$n,multi:!0,useFactory:()=>{let r=g(uM,{optional:!0});return()=>r.initialize()}},{provide:$n,multi:!0,useFactory:()=>{let r=g(dM);return()=>{r.initialize()}}},t===!0?{provide:jg,useValue:!0}:[],{provide:Vg,useValue:n??Ap}]}function dk(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=_m({ngZoneFactory:()=>{let o=xm(e);return o.scheduleInRootZone=n,o.shouldCoalesceEventChangeDetection&&We("NgZone_CoalesceEvent"),new Q(o)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return Jn([{provide:lM,useValue:!0},{provide:bs,useValue:!1},r])}function xm(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var dM=(()=>{class e{constructor(){this.subscription=new W,this.initialized=!1,this.zone=g(Q),this.pendingTasks=g(it)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Q.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Q.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var fM=(()=>{class e{constructor(){this.appRef=g(at),this.taskService=g(it),this.ngZone=g(Q),this.zonelessEnabled=g(bs),this.disableScheduling=g(jg,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new W,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Vi):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(g(Vg,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof uc||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?Gf:Rp;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Vi+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Gf(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function hM(){return typeof $localize<"u"&&$localize.locale||Ji}var ol=new y("",{providedIn:"root",factory:()=>g(ol,F.Optional|F.SkipSelf)||hM()});var Nm=new y("");function Di(e){return!!e.platformInjector}function pM(e){let t=Di(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Q);return n.run(()=>{Di(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(rt,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Di(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Nm);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else e.moduleRef.onDestroy(()=>{Mi(e.allPlatformModules,e.moduleRef),o.unsubscribe()});return aM(r,n,()=>{let i=t.get(Tm);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(ol,Ji);if($b(s||Ji),Di(e)){let a=t.get(at);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return gM(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function gM(e,t){let n=e.injector.get(at);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new w(-403,!1);t.push(e)}var Si=null;function mM(e=[],t){return xe.create({name:t,providers:[{provide:os,useValue:"platform"},{provide:Nm,useValue:new Set([()=>Si=null])},...e]})}function vM(e=[]){if(Si)return Si;let t=mM(e);return Si=t,oM(),yM(t),t}function yM(e){e.get(Au,null)?.forEach(n=>n())}function fk(){return!1}var $t=(()=>{class e{static{this.__NG_ELEMENT_ID__=DM}}return e})();function DM(e){return wM(ue(),x(),(e&16)===16)}function wM(e,t,n){if(is(e)&&!n){let r=nt(e.index,t);return new ln(r,r)}else if(e.type&175){let r=t[Te];return new ln(r,t)}return null}var Qc=class{constructor(){}supports(t){return Kg(t)}create(t){return new Kc(t)}},EM=(e,t)=>t,Kc=class{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||EM}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new Jc(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new Xi),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Xi),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},Jc=class{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},Xc=class{constructor(){this._head=null,this._tail=null}add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},Xi=class{constructor(){this.map=new Map}put(t){let n=t.trackById,r=this.map.get(n);r||(r=new Xc,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function yh(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{let i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;r!==null;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){let r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){let o=this._records.get(t);this._maybeAddToChanges(o,n);let i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}let r=new nu(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;t!==null;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;t!=null;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){this._additionsHead===null?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){this._changesHead===null?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}},nu=class{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}};function Dh(){return new il([new Qc])}var il=(()=>{class e{static{this.\u0275prov=E({token:e,providedIn:"root",factory:Dh})}constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Dh()),deps:[[e,new au,new rs]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new w(901,!1)}}return e})();function wh(){return new sl([new eu])}var sl=(()=>{class e{static{this.\u0275prov=E({token:e,providedIn:"root",factory:wh})}constructor(n){this.factories=n}static create(n,r){if(r){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||wh()),deps:[[e,new au,new rs]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r)return r;throw new w(901,!1)}}return e})();function Am(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=vM(r),i=[_m({}),{provide:Zn,useExisting:fM},...n||[]],s=new Wi({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return pM({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}}function Zr(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function al(e,t=NaN){return!isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}function hk(e,t){We("NgSignals");let n=ca(e);return t?.equal&&(n[Me].equal=t.equal),n}function cl(e){let t=k(null);try{return e()}finally{k(t)}}var IM=new y("",{providedIn:"root",factory:()=>g(CM)}),CM=(()=>{class e{static{this.\u0275prov=E({token:e,providedIn:"root",factory:()=>new ru})}}return e})(),ru=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=g(it),this.taskId=null}scheduleEffect(t){if(this.enqueue(t),this.taskId===null){let n=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(n),this.taskId=null})}}enqueue(t){let n=t.creationZone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}},ou=class{constructor(t,n,r,o,i,s){this.scheduler=t,this.effectFn=n,this.creationZone=r,this.injector=i,this.watcher=jd(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(n){this.injector.get(rt,null,{optional:!0})?.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function bM(e,t){We("NgSignals"),!t?.injector&&pu(bM);let n=t?.injector??g(xe),r=t?.manualCleanup!==!0?n.get(ps):null,o=new ou(n.get(IM),e,typeof Zone>"u"?null:Zone.current,r,n,t?.allowSignalWrites??!1),i=n.get($t,null,{optional:!0});return!i||!(i._lView[_]&8)?o.watcher.notify():(i._lView[Ei]??=[]).push(o.watcher.notify),o}var Vm=null;function or(){return Vm}function Um(e){Vm??=e}var _s=class{};var pe=new y(""),$m=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=E({token:e,factory:()=>g(SM),providedIn:"platform"})}}return e})();var SM=(()=>{class e extends $m{constructor(){super(),this._doc=g(pe),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return or().getBaseHref(this._doc)}onPopState(n){let r=or().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=or().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=E({token:e,factory:()=>new e,providedIn:"platform"})}}return e})();function Bm(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function Rm(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function mn(e){return e&&e[0]!=="?"?"?"+e:e}var sr=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=E({token:e,factory:()=>g(Hm),providedIn:"root"})}}return e})(),TM=new y(""),Hm=(()=>{class e extends sr{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??g(pe).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Bm(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+mn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+mn(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+mn(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static{this.\u0275fac=function(r){return new(r||e)(N($m),N(TM,8))}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Yr=(()=>{class e{constructor(n){this._subject=new ne,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=NM(Rm(Om(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+mn(r))}normalize(n){return e.stripTrailingSlash(xM(this._basePath,Om(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+mn(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+mn(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}static{this.normalizeQueryParams=mn}static{this.joinWithSlash=Bm}static{this.stripTrailingSlash=Rm}static{this.\u0275fac=function(r){return new(r||e)(N(sr))}}static{this.\u0275prov=E({token:e,factory:()=>_M(),providedIn:"root"})}}return e})();function _M(){return new Yr(N(sr))}function xM(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Om(e){return e.replace(/\/index.html$/,"")}function NM(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function xs(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var Pk=(()=>{class e{constructor(n){this._viewContainerRef=n,this.ngComponentOutlet=null,this._inputsUsed=new Map}_needToReCreateNgModuleInstance(n){return n.ngComponentOutletNgModule!==void 0||n.ngComponentOutletNgModuleFactory!==void 0}_needToReCreateComponentInstance(n){return n.ngComponentOutlet!==void 0||n.ngComponentOutletContent!==void 0||n.ngComponentOutletInjector!==void 0||this._needToReCreateNgModuleInstance(n)}ngOnChanges(n){if(this._needToReCreateComponentInstance(n)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){let r=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(n)&&(this._moduleRef?.destroy(),this.ngComponentOutletNgModule?this._moduleRef=Qg(this.ngComponentOutletNgModule,Pm(r)):this.ngComponentOutletNgModuleFactory?this._moduleRef=this.ngComponentOutletNgModuleFactory.create(Pm(r)):this._moduleRef=void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:r,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(let n of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(n,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(n){for(let[r,o]of this._inputsUsed)o?(n.setInput(r,this.ngComponentOutletInputs[r]),this._inputsUsed.set(r,!1)):(n.setInput(r,void 0),this._inputsUsed.delete(r))}static{this.\u0275fac=function(r){return new(r||e)(j(Le))}}static{this.\u0275dir=Pe({type:e,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[be]})}}return e})();function Pm(e){return e.get(wt).injector}var ul=class{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Fk=(()=>{class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new ul(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(i===null?void 0:i);else if(i!==null){let a=r.get(i);r.move(a,s),Fm(a,o)}});for(let o=0,i=r.length;o{let i=r.get(o.currentIndex);Fm(i,o)})}static ngTemplateContextGuard(n,r){return!0}static{this.\u0275fac=function(r){return new(r||e)(j(Le),j(dn),j(il))}}static{this.\u0275dir=Pe({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return e})();function Fm(e,t){e.context.$implicit=t.item}var kk=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new ll,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){km("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){km("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}static{this.\u0275fac=function(r){return new(r||e)(j(Le),j(dn))}}static{this.\u0275dir=Pe({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return e})(),ll=class{constructor(){this.$implicit=null,this.ngIf=null}};function km(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${ve(t)}'.`)}var Lk=(()=>{class e{constructor(n){this._viewContainerRef=n,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(n){if(this._shouldRecreateView(n)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):!1,get:(n,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}static{this.\u0275fac=function(r){return new(r||e)(j(Le))}}static{this.\u0275dir=Pe({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[be]})}}return e})();function AM(e,t){return new w(2100,!1)}var dl=class{createSubscription(t,n){return cl(()=>t.subscribe({next:n,error:r=>{throw r}}))}dispose(t){cl(()=>t.unsubscribe())}},fl=class{createSubscription(t,n){return t.then(n,r=>{throw r})}dispose(t){}},RM=new fl,OM=new dl,jk=(()=>{class e{constructor(n){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r))}_selectStrategy(n){if(rr(n))return RM;if(nl(n))return OM;throw AM(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.\u0275fac=function(r){return new(r||e)(j($t,16))}}static{this.\u0275pipe=$r({name:"async",type:e,pure:!1,standalone:!0})}}return e})();function PM(e,t){return{key:e,value:t}}var Vk=(()=>{class e{constructor(n){this.differs=n,this.keyValues=[],this.compareFn=Lm}transform(n,r=Lm){if(!n||!(n instanceof Map)&&typeof n!="object")return null;this.differ??=this.differs.find(n).create();let o=this.differ.diff(n),i=r!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(s=>{this.keyValues.push(PM(s.key,s.currentValue))})),(o||i)&&(this.keyValues.sort(r),this.compareFn=r),this.keyValues}static{this.\u0275fac=function(r){return new(r||e)(j(sl,16))}}static{this.\u0275pipe=$r({name:"keyvalue",type:e,pure:!1,standalone:!0})}}return e})();function Lm(e,t){let n=e.key,r=t.key;if(n===r)return 0;if(n===void 0)return 1;if(r===void 0)return-1;if(n===null)return 1;if(r===null)return-1;if(typeof n=="string"&&typeof r=="string")return n{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=Ur({type:e})}static{this.\u0275inj=Lr({})}}return e})(),gl="browser",kM="server";function LM(e){return e===gl}function Ns(e){return e===kM}var zm=(()=>{class e{static{this.\u0275prov=E({token:e,providedIn:"root",factory:()=>LM(g(st))?new hl(g(pe),window):new pl})}}return e})(),hl=class{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=t}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(t){this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){let n=jM(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){this.window.history.scrollRestoration=t}scrollToElement(t){let n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}};function jM(e,t){let n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),o=r.currentNode;for(;o;){let i=o.shadowRoot;if(i){let s=i.getElementById(t)||i.querySelector(`[name="${t}"]`);if(s)return s}o=r.nextNode()}}return null}var pl=class{setOffset(t){}getScrollPosition(){return[0,0]}scrollToPosition(t){}scrollToAnchor(t){}setHistoryScrollRestoration(t){}},ir=class{};var Kr=class{},Jr=class{},Mt=class e{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(` +`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.setHeaderEntries(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var vl=class{encodeKey(t){return qm(t)}encodeValue(t){return qm(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function VM(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var UM=/%(\d[a-f0-9])/gi,$M={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function qm(e){return encodeURIComponent(e).replace(UM,(t,n)=>$M[n]??t)}function As(e){return`${e}`}var Ht=class e{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new vl,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=VM(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(As):[As(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(As(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(As(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var yl=class{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function BM(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Wm(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Zm(e){return typeof Blob<"u"&&e instanceof Blob}function Ym(e){return typeof FormData<"u"&&e instanceof FormData}function HM(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Qr=class e{constructor(t,n,r,o){this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();let i;if(BM(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new Mt,this.context??=new yl,!this.params)this.params=new Ht,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),c=a===-1?"?":ah.set(f,t.setHeaders[f]),u)),t.setParams&&(l=Object.keys(t.setParams).reduce((h,f)=>h.set(f,t.setParams[f]),l)),new e(n,r,s,{params:l,headers:u,context:d,reportProgress:c,responseType:o,withCredentials:a,transferCache:i})}},zt=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(zt||{}),Xr=class{constructor(t,n=200,r="OK"){this.headers=t.headers||new Mt,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},Rs=class e extends Xr{constructor(t={}){super(t),this.type=zt.ResponseHeader}clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},vn=class e extends Xr{constructor(t={}){super(t),this.type=zt.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Bt=class extends Xr{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},ev=200,zM=204;function ml(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}var Il=(()=>{class e{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Qr)i=n;else{let c;o.headers instanceof Mt?c=o.headers:c=new Mt(o.headers);let u;o.params&&(o.params instanceof Ht?u=o.params:u=new Ht({fromObject:o.params})),i=new Qr(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let s=S(i).pipe(Nt(c=>this.handler.handle(c)));if(n instanceof Qr||o.observe==="events")return s;let a=s.pipe(me(c=>c instanceof vn));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(A(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(A(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(A(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return a.pipe(A(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new Ht().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,ml(o,r))}post(n,r,o={}){return this.request("POST",n,ml(o,r))}put(n,r,o={}){return this.request("PUT",n,ml(o,r))}static{this.\u0275fac=function(r){return new(r||e)(N(Kr))}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac})}}return e})(),GM=/^\)\]\}',?\n/,qM="X-Request-URL";function Qm(e){if(e.url)return e.url;let t=qM.toLocaleLowerCase();return e.headers.get(t)}var Dl=(()=>{class e{constructor(){this.fetchImpl=g(wl,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n)),this.ngZone=g(Q)}handle(n){return new O(r=>{let o=new AbortController;return this.doRequest(n,o.signal,r).then(El,i=>r.error(new Bt({error:i}))),()=>o.abort()})}doRequest(n,r,o){return In(this,null,function*(){let i=this.createRequestInit(n),s;try{let f=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,D({signal:r},i)));WM(f),o.next({type:zt.Sent}),s=yield f}catch(f){o.error(new Bt({error:f,status:f.status??0,statusText:f.statusText,url:n.urlWithParams,headers:f.headers}));return}let a=new Mt(s.headers),c=s.statusText,u=Qm(s)??n.urlWithParams,l=s.status,d=null;if(n.reportProgress&&o.next(new Rs({headers:a,status:l,statusText:c,url:u})),s.body){let f=s.headers.get("content-length"),p=[],m=s.body.getReader(),v=0,I,V,U=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>In(this,null,function*(){for(;;){let{done:ye,value:X}=yield m.read();if(ye)break;if(p.push(X),v+=X.length,n.reportProgress){V=n.responseType==="text"?(V??"")+(I??=new TextDecoder).decode(X,{stream:!0}):void 0;let lt=()=>o.next({type:zt.DownloadProgress,total:f?+f:void 0,loaded:v,partialText:V});U?U.run(lt):lt()}}}));let se=this.concatChunks(p,v);try{let ye=s.headers.get("Content-Type")??"";d=this.parseBody(n,se,ye)}catch(ye){o.error(new Bt({error:ye,headers:new Mt(s.headers),status:s.status,statusText:s.statusText,url:Qm(s)??n.urlWithParams}));return}}l===0&&(l=d?ev:0),l>=200&&l<300?(o.next(new vn({body:d,headers:a,status:l,statusText:c,url:u})),o.complete()):o.error(new Bt({error:d,headers:a,status:l,statusText:c,url:u}))})}parseBody(n,r,o){switch(n.responseType){case"json":let i=new TextDecoder().decode(r).replace(GM,"");return i===""?null:JSON.parse(i);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((i,s)=>r[i]=s.join(",")),n.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let i=n.detectContentTypeHeader();i!==null&&(r["Content-Type"]=i)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:o}}concatChunks(n,r){let o=new Uint8Array(r),i=0;for(let s of n)o.set(s,i),i+=s.length;return o}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac})}}return e})(),wl=class{};function El(){}function WM(e){e.then(El,El)}function tv(e,t){return t(e)}function ZM(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}function YM(e,t,n){return(r,o)=>ze(n,()=>t(r,i=>e(i,o)))}var QM=new y(""),Cl=new y(""),KM=new y(""),nv=new y("",{providedIn:"root",factory:()=>!0});function JM(){let e=null;return(t,n)=>{e===null&&(e=(g(QM,{optional:!0})??[]).reduceRight(ZM,tv));let r=g(it);if(g(nv)){let i=r.add();return e(t,n).pipe(Rt(()=>r.remove(i)))}else return e(t,n)}}var Km=(()=>{class e extends Kr{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=g(it),this.contributeToStability=g(nv)}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(Cl),...this.injector.get(KM,[])]));this.chain=r.reduceRight((o,i)=>YM(o,i,this.injector),tv)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Rt(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}static{this.\u0275fac=function(r){return new(r||e)(N(Jr),N(Ee))}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac})}}return e})();var XM=/^\)\]\}',?\n/;function eS(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}var Jm=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new w(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?z(r.\u0275loadImpl()):S(null)).pipe(le(()=>new O(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((m,v)=>s.setRequestHeader(m,v.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let m=n.detectContentTypeHeader();m!==null&&s.setRequestHeader("Content-Type",m)}if(n.responseType){let m=n.responseType.toLowerCase();s.responseType=m!=="json"?m:"text"}let a=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let m=s.statusText||"OK",v=new Mt(s.getAllResponseHeaders()),I=eS(s)||n.url;return c=new Rs({headers:v,status:s.status,statusText:m,url:I}),c},l=()=>{let{headers:m,status:v,statusText:I,url:V}=u(),U=null;v!==zM&&(U=typeof s.response>"u"?s.responseText:s.response),v===0&&(v=U?ev:0);let se=v>=200&&v<300;if(n.responseType==="json"&&typeof U=="string"){let ye=U;U=U.replace(XM,"");try{U=U!==""?JSON.parse(U):null}catch(X){U=ye,se&&(se=!1,U={error:X,text:U})}}se?(i.next(new vn({body:U,headers:m,status:v,statusText:I,url:V||void 0})),i.complete()):i.error(new Bt({error:U,headers:m,status:v,statusText:I,url:V||void 0}))},d=m=>{let{url:v}=u(),I=new Bt({error:m,status:s.status||0,statusText:s.statusText||"Unknown Error",url:v||void 0});i.error(I)},h=!1,f=m=>{h||(i.next(u()),h=!0);let v={type:zt.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(v.total=m.total),n.responseType==="text"&&s.responseText&&(v.partialText=s.responseText),i.next(v)},p=m=>{let v={type:zt.UploadProgress,loaded:m.loaded};m.lengthComputable&&(v.total=m.total),i.next(v)};return s.addEventListener("load",l),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",f),a!==null&&s.upload&&s.upload.addEventListener("progress",p)),s.send(a),i.next({type:zt.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",l),s.removeEventListener("timeout",d),n.reportProgress&&(s.removeEventListener("progress",f),a!==null&&s.upload&&s.upload.removeEventListener("progress",p)),s.readyState!==s.DONE&&s.abort()}})))}static{this.\u0275fac=function(r){return new(r||e)(N(ir))}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac})}}return e})(),rv=new y(""),tS="XSRF-TOKEN",nS=new y("",{providedIn:"root",factory:()=>tS}),rS="X-XSRF-TOKEN",oS=new y("",{providedIn:"root",factory:()=>rS}),Os=class{},iS=(()=>{class e{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=xs(n,this.cookieName),this.lastCookieString=n),this.lastToken}static{this.\u0275fac=function(r){return new(r||e)(N(pe),N(st),N(nS))}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac})}}return e})();function sS(e,t){let n=e.url.toLowerCase();if(!g(rv)||e.method==="GET"||e.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return t(e);let r=g(Os).getToken(),o=g(oS);return r!=null&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var bl=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(bl||{});function ov(e,t){return{\u0275kind:e,\u0275providers:t}}function Xk(...e){let t=[Il,Jm,Km,{provide:Kr,useExisting:Km},{provide:Jr,useFactory:()=>g(Dl,{optional:!0})??g(Jm)},{provide:Cl,useValue:sS,multi:!0},{provide:rv,useValue:!0},{provide:Os,useClass:iS}];for(let n of e)t.push(...n.\u0275providers);return Jn(t)}var Xm=new y("");function e1(){return ov(bl.LegacyInterceptors,[{provide:Xm,useFactory:JM},{provide:Cl,useExisting:Xm,multi:!0}])}function t1(){return ov(bl.Fetch,[Dl,{provide:Jr,useExisting:Dl}])}var Tl=class extends _s{constructor(){super(...arguments),this.supportsDOMEvents=!0}},_l=class e extends Tl{static makeCurrent(){Um(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=cS();return n==null?null:uS(n)}resetBaseElement(){eo=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return xs(document.cookie,t)}},eo=null;function cS(){return eo=eo||document.querySelector("base"),eo?eo.getAttribute("href"):null}function uS(e){return new URL(e,document.baseURI).pathname}var lS=(()=>{class e{build(){return new XMLHttpRequest}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac})}}return e})(),xl=new y(""),cv=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new w(5101,!1);return this._eventNameToPlugin.set(n,r),r}static{this.\u0275fac=function(r){return new(r||e)(N(xl),N(Q))}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac})}}return e})(),Ps=class{constructor(t){this._doc=t}},Ml="ng-app-id",uv=(()=>{class e{constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Ns(i),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Ml}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(o=>{o.textContent!=null&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){let o=this.styleRef;if(o.has(n)){let i=o.get(n);return i.usage+=r,i.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===n)return o.delete(r),i.removeAttribute(Ml),i;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(Ml,this.appId),n.appendChild(s),s}}addStyleToHost(n,r){let o=this.getStyleElement(n,r),i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}static{this.\u0275fac=function(r){return new(r||e)(N(pe),N(Nu),N(Ru,8),N(st))}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac})}}return e})(),Sl={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Al=/%COMP%/g,lv="%COMP%",dS=`_nghost-${lv}`,fS=`_ngcontent-${lv}`,hS=!0,pS=new y("",{providedIn:"root",factory:()=>hS});function gS(e){return fS.replace(Al,e)}function mS(e){return dS.replace(Al,e)}function dv(e,t){return t.map(n=>n.replace(Al,e))}var iv=(()=>{class e{constructor(n,r,o,i,s,a,c,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=Ns(a),this.defaultRenderer=new to(n,s,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===et.ShadowDom&&(r=H(D({},r),{encapsulation:et.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof Fs?o.applyToHost(n):o instanceof no&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case et.Emulated:i=new Fs(c,u,r,this.appId,l,s,a,d);break;case et.ShadowDom:return new Nl(c,u,n,r,s,a,this.nonce,d);default:i=new no(c,u,r,l,s,a,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(r){return new(r||e)(N(cv),N(uv),N(Nu),N(pS),N(pe),N(st),N(Q),N(Ru))}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac})}}return e})(),to=class{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(Sl[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(sv(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(sv(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new w(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=Sl[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=Sl[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(Dt.DashCase|Dt.Important)?t.style.setProperty(n,r,o&Dt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Dt.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if(typeof t=="string"&&(t=or().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function sv(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Nl=class extends to{constructor(t,n,r,o,i,s,a,c){super(t,i,s,c),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=dv(o.id,o.styles);for(let l of u){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},no=class extends to{constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=c?dv(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Fs=class extends no{constructor(t,n,r,o,i,s,a,c){let u=o+"-"+r.id;super(t,n,r,i,s,a,c,u),this.contentAttr=gS(u),this.hostAttr=mS(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},vS=(()=>{class e extends Ps{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}static{this.\u0275fac=function(r){return new(r||e)(N(pe))}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac})}}return e})(),av=["alt","control","meta","shift"],yS={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},DS={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},wS=(()=>{class e extends Ps{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o){let i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>or().onAndCancel(n,i.domEventName,s))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),av.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=yS[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),av.forEach(s=>{if(s!==o){let a=DS[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static{this.\u0275fac=function(r){return new(r||e)(N(pe))}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac})}}return e})();function w1(e,t){return Am(D({rootComponent:e},ES(t)))}function ES(e){return{appProviders:[...SS,...e?.providers??[]],platformProviders:MS}}function IS(){_l.makeCurrent()}function CS(){return new rt}function bS(){return Bp(document),document}var MS=[{provide:st,useValue:gl},{provide:Au,useValue:IS,multi:!0},{provide:pe,useFactory:bS,deps:[]}];var SS=[{provide:os,useValue:"root"},{provide:rt,useFactory:CS,deps:[]},{provide:xl,useClass:vS,multi:!0,deps:[pe,Q,st]},{provide:xl,useClass:wS,multi:!0,deps:[pe]},iv,uv,cv,{provide:Qn,useExisting:iv},{provide:ir,useClass:lS,deps:[]},[]];var fv=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static{this.\u0275fac=function(r){return new(r||e)(N(pe))}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Rl=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=E({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=N(TS),o},providedIn:"root"})}}return e})(),TS=(()=>{class e extends Rl{constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case Ge.NONE:return r;case Ge.HTML:return It(r,"HTML")?ke(r):Pu(this._doc,String(r)).toString();case Ge.STYLE:return It(r,"Style")?ke(r):r;case Ge.SCRIPT:if(It(r,"Script"))return ke(r);throw new w(5200,!1);case Ge.URL:return It(r,"URL")?ke(r):ms(String(r));case Ge.RESOURCE_URL:if(It(r,"ResourceURL"))return ke(r);throw new w(5201,!1);default:throw new w(5202,!1)}}bypassSecurityTrustHtml(n){return qp(n)}bypassSecurityTrustStyle(n){return Wp(n)}bypassSecurityTrustScript(n){return Zp(n)}bypassSecurityTrustUrl(n){return Yp(n)}bypassSecurityTrustResourceUrl(n){return Qp(n)}static{this.\u0275fac=function(r){return new(r||e)(N(pe))}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var R="primary",yo=Symbol("RouteTitle"),Ll=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function fr(e){return new Ll(e)}function _S(e,t,n){let r=n.path.split("/");if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.lengthr[i]===o)}else return e===t}function Cv(e){return e.length>0?e[e.length-1]:null}function qt(e){return Ia(e)?e:rr(e)?z(Promise.resolve(e)):S(e)}var NS={exact:Mv,subset:Sv},bv={exact:AS,subset:RS,ignored:()=>!0};function pv(e,t,n){return NS[n.paths](e.root,t.root,n.matrixParams)&&bv[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function AS(e,t){return ct(e,t)}function Mv(e,t,n){if(!Dn(e.segments,t.segments)||!js(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!Mv(e.children[r],t.children[r],n))return!1;return!0}function RS(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>Iv(e[n],t[n]))}function Sv(e,t,n){return Tv(e,t,t.segments,n)}function Tv(e,t,n,r){if(e.segments.length>n.length){let o=e.segments.slice(0,n.length);return!(!Dn(o,n)||t.hasChildren()||!js(o,n,r))}else if(e.segments.length===n.length){if(!Dn(e.segments,n)||!js(e.segments,n,r))return!1;for(let o in t.children)if(!e.children[o]||!Sv(e.children[o],t.children[o],r))return!1;return!0}else{let o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!Dn(e.segments,o)||!js(e.segments,o,r)||!e.children[R]?!1:Tv(e.children[R],t,i,r)}}function js(e,t,n){return t.every((r,o)=>bv[n](e[o].parameters,r.parameters))}var Tt=class{constructor(t=new $([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=fr(this.queryParams),this._queryParamMap}toString(){return FS.serialize(this)}},$=class{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Vs(this)}},yn=class{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=fr(this.parameters),this._parameterMap}toString(){return xv(this)}};function OS(e,t){return Dn(e,t)&&e.every((n,r)=>ct(n.parameters,t[r].parameters))}function Dn(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function PS(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===R&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==R&&(n=n.concat(t(o,r)))}),n}var Js=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=E({token:e,factory:()=>new uo,providedIn:"root"})}}return e})(),uo=class{parse(t){let n=new Ul(t);return new Tt(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${ro(t.root,!0)}`,r=jS(t.queryParams),o=typeof t.fragment=="string"?`#${kS(t.fragment)}`:"";return`${n}${r}${o}`}},FS=new uo;function Vs(e){return e.segments.map(t=>xv(t)).join("/")}function ro(e,t){if(!e.hasChildren())return Vs(e);if(t){let n=e.children[R]?ro(e.children[R],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==R&&r.push(`${o}:${ro(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=PS(e,(r,o)=>o===R?[ro(e.children[R],!1)]:[`${o}:${ro(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[R]!=null?`${Vs(e)}/${n[0]}`:`${Vs(e)}/(${n.join("//")})`}}function _v(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ks(e){return _v(e).replace(/%3B/gi,";")}function kS(e){return encodeURI(e)}function Vl(e){return _v(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Us(e){return decodeURIComponent(e)}function gv(e){return Us(e.replace(/\+/g,"%20"))}function xv(e){return`${Vl(e.path)}${LS(e.parameters)}`}function LS(e){return Object.entries(e).map(([t,n])=>`;${Vl(t)}=${Vl(n)}`).join("")}function jS(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${ks(n)}=${ks(o)}`).join("&"):`${ks(n)}=${ks(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var VS=/^[^\/()?;#]+/;function Ol(e){let t=e.match(VS);return t?t[0]:""}var US=/^[^\/()?;=#]+/;function $S(e){let t=e.match(US);return t?t[0]:""}var BS=/^[^=?&#]+/;function HS(e){let t=e.match(BS);return t?t[0]:""}var zS=/^[^&#]+/;function GS(e){let t=e.match(zS);return t?t[0]:""}var Ul=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new $([],{}):new $([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[R]=new $(t,n)),r}parseSegment(){let t=Ol(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(t),new yn(Us(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=$S(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=Ol(this.remaining);o&&(r=o,this.capture(r))}t[Us(n)]=Us(r)}parseQueryParam(t){let n=HS(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=GS(this.remaining);s&&(r=s,this.capture(r))}let o=gv(n),i=gv(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Ol(this.remaining),o=this.remaining[r.length];if(o!=="/"&&o!==")"&&o!==";")throw new w(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=R);let s=this.parseChildren();n[i]=Object.keys(s).length===1?s[R]:new $([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new w(4011,!1)}};function Nv(e){return e.segments.length>0?new $([],{[R]:e}):e}function Av(e){let t={};for(let[r,o]of Object.entries(e.children)){let i=Av(o);if(r===R&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}let n=new $(e.segments,t);return qS(n)}function qS(e){if(e.numberOfChildren===1&&e.children[R]){let t=e.children[R];return new $(e.segments.concat(t.segments),t.children)}return e}function wn(e){return e instanceof Tt}function WS(e,t,n=null,r=null){let o=Rv(e);return Ov(o,t,n,r)}function Rv(e){let t;function n(i){let s={};for(let c of i.children){let u=n(c);s[c.outlet]=u}let a=new $(i.url,s);return i===e&&(t=a),a}let r=n(e.root),o=Nv(r);return t??o}function Ov(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(t.length===0)return Pl(o,o,o,n,r);let i=ZS(t);if(i.toRoot())return Pl(o,o,new $([],{}),n,r);let s=YS(i,o,e),a=s.processChildren?so(s.segmentGroup,s.index,i.commands):Fv(s.segmentGroup,s.index,i.commands);return Pl(o,s.segmentGroup,a,n,r)}function $s(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function lo(e){return typeof e=="object"&&e!=null&&e.outlets}function Pl(e,t,n,r,o){let i={};r&&Object.entries(r).forEach(([c,u])=>{i[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;e===t?s=n:s=Pv(e,t,n);let a=Nv(Av(s));return new Tt(a,i,o)}function Pv(e,t,n){let r={};return Object.entries(e.children).forEach(([o,i])=>{i===t?r[o]=n:r[o]=Pv(i,t,n)}),new $(e.segments,r)}var Bs=class{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&$s(r[0]))throw new w(4003,!1);let o=r.find(lo);if(o&&o!==Cv(r))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function ZS(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Bs(!0,0,e);let t=0,n=!1,r=e.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let a={};return Object.entries(i.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?n=!0:a===".."?t++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new Bs(n,t,r)}var ur=class{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function YS(e,t,n){if(e.isAbsolute)return new ur(t,!0,0);if(!n)return new ur(t,!1,NaN);if(n.parent===null)return new ur(n,!0,0);let r=$s(e.commands[0])?0:1,o=n.segments.length-1+r;return QS(n,o,e.numberOfDoubleDots)}function QS(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new w(4005,!1);o=r.segments.length}return new ur(r,!1,o-i)}function KS(e){return lo(e[0])?e[0].outlets:{[R]:e}}function Fv(e,t,n){if(e??=new $([],{}),e.segments.length===0&&e.hasChildren())return so(e,t,n);let r=JS(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndexi!==R)&&e.children[R]&&e.numberOfChildren===1&&e.children[R].segments.length===0){let i=so(e.children[R],t,n);return new $(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=Fv(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new $(e.segments,o)}}function JS(e,t,n){let r=0,o=t,i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;let s=e.segments[o],a=n[r];if(lo(a))break;let c=`${a}`,u=r0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!vv(c,u,s))return i;r+=2}else{if(!vv(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function $l(e,t,n){let r=e.segments.slice(0,t),o=0;for(;o{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=$l(new $([],{}),0,r))}),t}function mv(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function vv(e,t,n){return e==n.path&&ct(t,n.parameters)}var ao="imperative",ie=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(ie||{}),je=class{constructor(t,n){this.id=t,this.url=n}},hr=class extends je{constructor(t,n,r="imperative",o=null){super(t,n),this.type=ie.NavigationStart,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},ut=class extends je{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=ie.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Ae=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(Ae||{}),Hs=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(Hs||{}),St=class extends je{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=ie.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Gt=class extends je{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=ie.NavigationSkipped}},fo=class extends je{constructor(t,n,r,o){super(t,n),this.error=r,this.target=o,this.type=ie.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},zs=class extends je{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=ie.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Bl=class extends je{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=ie.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Hl=class extends je{constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=ie.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},zl=class extends je{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=ie.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Gl=class extends je{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=ie.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ql=class{constructor(t){this.route=t,this.type=ie.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Wl=class{constructor(t){this.route=t,this.type=ie.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Zl=class{constructor(t){this.snapshot=t,this.type=ie.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Yl=class{constructor(t){this.snapshot=t,this.type=ie.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ql=class{constructor(t){this.snapshot=t,this.type=ie.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Kl=class{constructor(t){this.snapshot=t,this.type=ie.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Gs=class{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r,this.type=ie.Scroll}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}},ho=class{},pr=class{constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function e0(e,t){return e.providers&&!e._injector&&(e._injector=Yu(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Ze(e){return e.outlet||R}function t0(e,t){let n=e.filter(r=>Ze(r)===t);return n.push(...e.filter(r=>Ze(r)!==t)),n}function Do(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var Jl=class{get injector(){return Do(this.route?.snapshot)??this.rootInjector}set injector(t){}constructor(t){this.rootInjector=t,this.outlet=null,this.route=null,this.children=new Xs(this.rootInjector),this.attachRef=null}},Xs=(()=>{class e{constructor(n){this.rootInjector=n,this.contexts=new Map}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new Jl(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static{this.\u0275fac=function(r){return new(r||e)(N(Ee))}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),qs=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=Xl(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=Xl(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=ed(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return ed(t,this._root).map(n=>n.value)}};function Xl(e,t){if(e===t.value)return t;for(let n of t.children){let r=Xl(e,n);if(r)return r}return null}function ed(e,t){if(e===t.value)return[t];for(let n of t.children){let r=ed(e,n);if(r.length)return r.unshift(t),r}return[]}var Ne=class{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function cr(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var Ws=class extends qs{constructor(t,n){super(t),this.snapshot=n,ud(this,t)}toString(){return this.snapshot.toString()}};function kv(e){let t=n0(e),n=new ae([new yn("",{})]),r=new ae({}),o=new ae({}),i=new ae({}),s=new ae(""),a=new En(n,r,i,s,o,R,e,t.root);return a.snapshot=t.root,new Ws(new Ne(a,[]),t)}function n0(e){let t={},n={},r={},o="",i=new lr([],t,r,o,n,R,e,null,{});return new Ys("",new Ne(i,[]))}var En=class{constructor(t,n,r,o,i,s,a,c){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(A(u=>u[yo]))??S(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(A(t=>fr(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(A(t=>fr(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Zs(e,t,n="emptyOnly"){let r,{routeConfig:o}=e;return t!==null&&(n==="always"||o?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:D(D({},t.params),e.params),data:D(D({},t.data),e.data),resolve:D(D(D(D({},e.data),t.data),o?.data),e._resolvedData)}:r={params:D({},e.params),data:D({},e.data),resolve:D(D({},e.data),e._resolvedData??{})},o&&jv(o)&&(r.resolve[yo]=o.title),r}var lr=class{get title(){return this.data?.[yo]}constructor(t,n,r,o,i,s,a,c,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=fr(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=fr(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${n}')`}},Ys=class extends qs{constructor(t,n){super(n),this.url=t,ud(this,n)}toString(){return Lv(this._root)}};function ud(e,t){t.value._routerState=e,t.children.forEach(n=>ud(e,n))}function Lv(e){let t=e.children.length>0?` { ${e.children.map(Lv).join(", ")} } `:"";return`${e.value}${t}`}function Fl(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,ct(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),ct(t.params,n.params)||e.paramsSubject.next(n.params),xS(t.url,n.url)||e.urlSubject.next(n.url),ct(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function td(e,t){let n=ct(e.params,t.params)&&OS(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||td(e.parent,t.parent))}function jv(e){return typeof e.title=="string"||e.title===null}var r0=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=R,this.activateEvents=new ne,this.deactivateEvents=new ne,this.attachEvents=new ne,this.detachEvents=new ne,this.parentContexts=g(Xs),this.location=g(Le),this.changeDetector=g($t),this.inputBinder=g(ld,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new w(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new w(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new w(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new w(4013,!1);this._activatedRoute=n;let o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new nd(n,a,o.injector);this.activated=o.createComponent(s,{index:o.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=Pe({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[be]})}}return e})(),nd=class e{__ngOutletInjector(t){return new e(this.route,this.childContexts,t)}constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===En?this.route:t===Xs?this.childContexts:this.parent.get(t,n)}},ld=new y("");function o0(e,t,n){let r=po(e,t._root,n?n._root:void 0);return new Ws(r,t)}function po(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let o=i0(e,t,n);return new Ne(r,o)}else{if(e.shouldAttach(t.value)){let i=e.retrieve(t.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>po(e,a)),s}}let r=s0(t.value),o=t.children.map(i=>po(e,i));return new Ne(r,o)}}function i0(e,t,n){return t.children.map(r=>{for(let o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return po(e,r,o);return po(e,r)})}function s0(e){return new En(new ae(e.url),new ae(e.params),new ae(e.queryParams),new ae(e.fragment),new ae(e.data),e.outlet,e.component,e)}var go=class{constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},Vv="ngNavigationCancelingError";function Qs(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=wn(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=Uv(!1,Ae.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function Uv(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[Vv]=!0,n.cancellationCode=t,n}function a0(e){return $v(e)&&wn(e.url)}function $v(e){return!!e&&e[Vv]}var c0=(e,t,n,r)=>A(o=>(new rd(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)),rd=class{constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),Fl(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let o=cr(n);t.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(o===i)if(o.component){let s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=cr(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=cr(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let o=cr(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new Kl(i.value.snapshot))}),t.children.length&&this.forwardEvent(new Yl(t.value.snapshot))}activateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(Fl(o),o===i)if(o.component){let s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){let s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Fl(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},Ks=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},dr=class{constructor(t,n){this.component=t,this.route=n}};function u0(e,t,n){let r=e._root,o=t?t._root:null;return oo(r,o,n,[r.value])}function l0(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function mr(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!Th(e)?e:t.get(e):r}function oo(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=cr(t);return e.children.forEach(s=>{d0(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>co(a,n.getContext(s),o)),o}function d0(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=f0(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new Ks(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?oo(e,t,a?a.children:null,r,o):oo(e,t,n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new dr(a.outlet.component,s))}else s&&co(t,a,o),o.canActivateChecks.push(new Ks(r)),i.component?oo(e,null,a?a.children:null,r,o):oo(e,null,n,r,o);return o}function f0(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!Dn(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Dn(e.url,t.url)||!ct(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!td(e,t)||!ct(e.queryParams,t.queryParams);case"paramsChange":default:return!td(e,t)}}function co(e,t,n){let r=cr(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?t?co(s,t.children.getContext(i),n):co(s,null,n):co(s,t,n)}),o.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new dr(t.outlet.component,o)):n.canDeactivateChecks.push(new dr(null,o)):n.canDeactivateChecks.push(new dr(null,o))}function wo(e){return typeof e=="function"}function h0(e){return typeof e=="boolean"}function p0(e){return e&&wo(e.canLoad)}function g0(e){return e&&wo(e.canActivate)}function m0(e){return e&&wo(e.canActivateChild)}function v0(e){return e&&wo(e.canDeactivate)}function y0(e){return e&&wo(e.canMatch)}function Bv(e){return e instanceof ht||e?.name==="EmptyError"}var Ls=Symbol("INITIAL_VALUE");function gr(){return le(e=>ui(e.map(t=>t.pipe(Se(1),br(Ls)))).pipe(A(t=>{for(let n of t)if(n!==!0){if(n===Ls)return Ls;if(n===!1||D0(n))return n}return!0}),me(t=>t!==Ls),Se(1)))}function D0(e){return wn(e)||e instanceof go}function w0(e,t){return G(n=>{let{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return s.length===0&&i.length===0?S(H(D({},n),{guardsResult:!0})):E0(s,r,o,e).pipe(G(a=>a&&h0(a)?I0(r,i,e,t):S(a)),A(a=>H(D({},n),{guardsResult:a})))})}function E0(e,t,n,r){return z(e).pipe(G(o=>T0(o.component,o.route,n,t,r)),Ke(o=>o!==!0,!0))}function I0(e,t,n,r){return z(t).pipe(Nt(o=>xt(b0(o.route.parent,r),C0(o.route,r),S0(e,o.path,n),M0(e,o.route,n))),Ke(o=>o!==!0,!0))}function C0(e,t){return e!==null&&t&&t(new Ql(e)),S(!0)}function b0(e,t){return e!==null&&t&&t(new Zl(e)),S(!0)}function M0(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return S(!0);let o=r.map(i=>li(()=>{let s=Do(t)??n,a=mr(i,s),c=g0(a)?a.canActivate(t,e):ze(s,()=>a(t,e));return qt(c).pipe(Ke())}));return S(o).pipe(gr())}function S0(e,t,n){let r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>l0(s)).filter(s=>s!==null).map(s=>li(()=>{let a=s.guards.map(c=>{let u=Do(s.node)??n,l=mr(c,u),d=m0(l)?l.canActivateChild(r,e):ze(u,()=>l(r,e));return qt(d).pipe(Ke())});return S(a).pipe(gr())}));return S(i).pipe(gr())}function T0(e,t,n,r,o){let i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!i||i.length===0)return S(!0);let s=i.map(a=>{let c=Do(t)??o,u=mr(a,c),l=v0(u)?u.canDeactivate(e,t,n,r):ze(c,()=>u(e,t,n,r));return qt(l).pipe(Ke())});return S(s).pipe(gr())}function _0(e,t,n,r){let o=t.canLoad;if(o===void 0||o.length===0)return S(!0);let i=o.map(s=>{let a=mr(s,e),c=p0(a)?a.canLoad(t,n):ze(e,()=>a(t,n));return qt(c)});return S(i).pipe(gr(),Hv(r))}function Hv(e){return ga(J(t=>{if(typeof t!="boolean")throw Qs(e,t)}),A(t=>t===!0))}function x0(e,t,n,r){let o=t.canMatch;if(!o||o.length===0)return S(!0);let i=o.map(s=>{let a=mr(s,e),c=y0(a)?a.canMatch(t,n):ze(e,()=>a(t,n));return qt(c)});return S(i).pipe(gr(),Hv(r))}var mo=class{constructor(t){this.segmentGroup=t||null}},vo=class extends Error{constructor(t){super(),this.urlTree=t}};function ar(e){return Rn(new mo(e))}function N0(e){return Rn(new w(4e3,!1))}function A0(e){return Rn(Uv(!1,Ae.GuardRejected))}var od=class{constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),o.numberOfChildren===0)return S(r);if(o.numberOfChildren>1||!o.children[R])return N0(`${t.redirectTo}`);o=o.children[R]}}applyRedirectCommands(t,n,r,o,i){if(typeof n!="string"){let a=n,{queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,params:f,data:p,title:m}=o,v=ze(i,()=>a({params:f,data:p,queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,title:m}));if(v instanceof Tt)throw new vo(v);n=v}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n[0]==="/")throw new vo(s);return s}applyRedirectCreateUrlTree(t,n,r,o){let i=this.createSegmentGroup(t,n.root,r,o);return new Tt(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){let i=this.createSegments(t,n.segments,r,o),s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,r,o)}),new $(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path[0]===":"?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){let o=r[n.path.substring(1)];if(!o)throw new w(4001,!1);return o}findOrReturn(t,n){let r=0;for(let o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}},id={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function R0(e,t,n,r,o){let i=zv(e,t,n);return i.matched?(r=e0(t,r),x0(r,t,n,o).pipe(A(s=>s===!0?i:D({},id)))):S(i)}function zv(e,t,n){if(t.path==="**")return O0(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?D({},id):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(t.matcher||_S)(n,e,t);if(!o)return D({},id);let i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path});let s=o.consumed.length>0?D(D({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function O0(e){return{matched:!0,parameters:e.length>0?Cv(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function yv(e,t,n,r){return n.length>0&&k0(e,n,r)?{segmentGroup:new $(t,F0(r,new $(n,e.children))),slicedSegments:[]}:n.length===0&&L0(e,n,r)?{segmentGroup:new $(e.segments,P0(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new $(e.segments,e.children),slicedSegments:n}}function P0(e,t,n,r){let o={};for(let i of n)if(ea(e,t,i)&&!r[Ze(i)]){let s=new $([],{});o[Ze(i)]=s}return D(D({},r),o)}function F0(e,t){let n={};n[R]=t;for(let r of e)if(r.path===""&&Ze(r)!==R){let o=new $([],{});n[Ze(r)]=o}return n}function k0(e,t,n){return n.some(r=>ea(e,t,r)&&Ze(r)!==R)}function L0(e,t,n){return n.some(r=>ea(e,t,r))}function ea(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function j0(e,t,n){return t.length===0&&!e.children[n]}var sd=class{};function V0(e,t,n,r,o,i,s="emptyOnly"){return new ad(e,t,n,r,o,s,i).recognize()}var U0=31,ad=class{constructor(t,n,r,o,i,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new od(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new w(4002,`'${t.segmentGroup}'`)}recognize(){let t=yv(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(A(({children:n,rootSnapshot:r})=>{let o=new Ne(r,n),i=new Ys("",o),s=WS(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}))}match(t){let n=new lr([],Object.freeze({}),Object.freeze(D({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),R,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,R,n).pipe(A(r=>({children:r,rootSnapshot:n})),Ue(r=>{if(r instanceof vo)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof mo?this.noMatchError(r):r}))}processSegmentGroup(t,n,r,o,i){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,n,r,i):this.processSegment(t,n,r,r.segments,o,!0,i).pipe(A(s=>s instanceof Ne?[s]:[]))}processChildren(t,n,r,o){let i=[];for(let s of Object.keys(r.children))s==="primary"?i.unshift(s):i.push(s);return z(i).pipe(Nt(s=>{let a=r.children[s],c=t0(n,s);return this.processSegmentGroup(t,c,a,s,o)}),Ta((s,a)=>(s.push(...a),s)),At(null),Sa(),G(s=>{if(s===null)return ar(r);let a=Gv(s);return $0(a),S(a)}))}processSegment(t,n,r,o,i,s,a){return z(n).pipe(Nt(c=>this.processSegmentAgainstRoute(c._injector??t,n,c,r,o,i,s,a).pipe(Ue(u=>{if(u instanceof mo)return S(null);throw u}))),Ke(c=>!!c),Ue(c=>{if(Bv(c))return j0(r,o,i)?S(new sd):ar(r);throw c}))}processSegmentAgainstRoute(t,n,r,o,i,s,a,c){return Ze(r)!==s&&(s===R||!ea(o,i,r))?ar(o):r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,o,r,i,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s,c):ar(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:h}=zv(n,o,i);if(!c)return ar(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>U0&&(this.allowRedirects=!1));let f=new lr(i,u,Object.freeze(D({},this.urlTree.queryParams)),this.urlTree.fragment,Dv(o),Ze(o),o.component??o._loadedComponent??null,o,wv(o)),p=Zs(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(p.params),f.data=Object.freeze(p.data);let m=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,d,f,t);return this.applyRedirects.lineralizeSegments(o,m).pipe(G(v=>this.processSegment(t,r,n,v.concat(h),s,!1,a)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let a=R0(n,r,o,t,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(le(c=>c.matched?(t=r._injector??t,this.getChildConfig(t,r,o).pipe(le(({routes:u})=>{let l=r._loadedInjector??t,{parameters:d,consumedSegments:h,remainingSegments:f}=c,p=new lr(h,d,Object.freeze(D({},this.urlTree.queryParams)),this.urlTree.fragment,Dv(r),Ze(r),r.component??r._loadedComponent??null,r,wv(r)),m=Zs(p,s,this.paramsInheritanceStrategy);p.params=Object.freeze(m.params),p.data=Object.freeze(m.data);let{segmentGroup:v,slicedSegments:I}=yv(n,h,f,u);if(I.length===0&&v.hasChildren())return this.processChildren(l,u,v,p).pipe(A(U=>new Ne(p,U)));if(u.length===0&&I.length===0)return S(new Ne(p,[]));let V=Ze(r)===i;return this.processSegment(l,u,v,I,V?R:i,!0,p).pipe(A(U=>new Ne(p,U instanceof Ne?[U]:[])))}))):ar(n)))}getChildConfig(t,n,r){return n.children?S({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?S({routes:n._loadedRoutes,injector:n._loadedInjector}):_0(t,n,r,this.urlSerializer).pipe(G(o=>o?this.configLoader.loadChildren(t,n).pipe(J(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):A0(n))):S({routes:[],injector:t})}};function $0(e){e.sort((t,n)=>t.value.outlet===R?-1:n.value.outlet===R?1:t.value.outlet.localeCompare(n.value.outlet))}function B0(e){let t=e.value.routeConfig;return t&&t.path===""}function Gv(e){let t=[],n=new Set;for(let r of e){if(!B0(r)){t.push(r);continue}let o=t.find(i=>r.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...r.children),n.add(o)):t.push(r)}for(let r of n){let o=Gv(r.children);t.push(new Ne(r.value,o))}return t.filter(r=>!n.has(r))}function Dv(e){return e.data||{}}function wv(e){return e.resolve||{}}function H0(e,t,n,r,o,i){return G(s=>V0(e,t,n,r,s.extractedUrl,o,i).pipe(A(({state:a,tree:c})=>H(D({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function z0(e,t){return G(n=>{let{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return S(n);let i=new Set(o.map(c=>c.route)),s=new Set;for(let c of i)if(!s.has(c))for(let u of qv(c))s.add(u);let a=0;return z(s).pipe(Nt(c=>i.has(c)?G0(c,r,e,t):(c.data=Zs(c,c.parent,e).resolve,S(void 0))),J(()=>a++),Pn(1),G(c=>a===s.size?S(n):te))})}function qv(e){let t=e.children.map(n=>qv(n)).flat();return[e,...t]}function G0(e,t,n,r){let o=e.routeConfig,i=e._resolve;return o?.title!==void 0&&!jv(o)&&(i[yo]=o.title),q0(i,e,t,r).pipe(A(s=>(e._resolvedData=s,e.data=Zs(e,e.parent,n).resolve,null)))}function q0(e,t,n,r){let o=jl(e);if(o.length===0)return S({});let i={};return z(o).pipe(G(s=>W0(e[s],t,n,r).pipe(Ke(),J(a=>{if(a instanceof go)throw Qs(new uo,a);i[s]=a}))),Pn(1),Cr(i),Ue(s=>Bv(s)?te:Rn(s)))}function W0(e,t,n,r){let o=Do(t)??r,i=mr(e,o),s=i.resolve?i.resolve(t,n):ze(o,()=>i(t,n));return qt(s)}function kl(e){return le(t=>{let n=e(t);return n?z(n).pipe(A(()=>t)):S(t)})}var Wv=(()=>{class e{buildTitle(n){let r,o=n.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===R);return r}getResolvedTitleForRoute(n){return n.data[yo]}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=E({token:e,factory:()=>g(Z0),providedIn:"root"})}}return e})(),Z0=(()=>{class e extends Wv{constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static{this.\u0275fac=function(r){return new(r||e)(N(fv))}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),dd=new y("",{providedIn:"root",factory:()=>({})}),Y0=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Lt({type:e,selectors:[["ng-component"]],standalone:!0,features:[Ut],decls:1,vars:0,template:function(r,o){r&1&&Ku(0,"router-outlet")},dependencies:[r0],encapsulation:2})}}return e})();function fd(e){let t=e.children&&e.children.map(fd),n=t?H(D({},e),{children:t}):D({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==R&&(n.component=Y0),n}var hd=new y(""),Q0=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=g(rl)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return S(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=qt(n.loadComponent()).pipe(A(Zv),J(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),Rt(()=>{this.componentLoaders.delete(n)})),o=new xn(r,()=>new q).pipe(_n());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return S({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=K0(r,this.compiler,n,this.onLoadEndListener).pipe(Rt(()=>{this.childrenLoaders.delete(r)})),s=new xn(i,()=>new q).pipe(_n());return this.childrenLoaders.set(r,s),s}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function K0(e,t,n,r){return qt(e.loadChildren()).pipe(A(Zv),G(o=>o instanceof Pr||Array.isArray(o)?S(o):z(t.compileModuleAsync(o))),A(o=>{r&&r(e);let i,s,a=!1;return Array.isArray(o)?(s=o,a=!0):(i=o.create(n).injector,s=i.get(hd,[],{optional:!0,self:!0}).flat()),{routes:s.map(fd),injector:i}}))}function J0(e){return e&&typeof e=="object"&&"default"in e}function Zv(e){return J0(e)?e.default:e}var pd=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=E({token:e,factory:()=>g(X0),providedIn:"root"})}}return e})(),X0=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),eT=new y("");var tT=new y(""),Yv=(()=>{class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new q,this.transitionAbortSubject=new q,this.configLoader=g(Q0),this.environmentInjector=g(Ee),this.urlSerializer=g(Js),this.rootContexts=g(Xs),this.location=g(Yr),this.inputBindingEnabled=g(ld,{optional:!0})!==null,this.titleStrategy=g(Wv),this.options=g(dd,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=g(pd),this.createViewTransition=g(eT,{optional:!0}),this.navigationErrorHandler=g(tT,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>S(void 0),this.rootComponentType=null;let n=o=>this.events.next(new ql(o)),r=o=>this.events.next(new Wl(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(H(D(D({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,o){return this.transitions=new ae({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:ao,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(me(i=>i.id!==0),A(i=>H(D({},i),{extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),le(i=>{let s=!1,a=!1;return S(i).pipe(le(c=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",Ae.SupersededByNewNavigation),te;this.currentTransition=i,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,targetBrowserUrl:typeof c.extras.browserUrl=="string"?this.urlSerializer.parse(c.extras.browserUrl):c.extras.browserUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?H(D({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!u&&l!=="reload"){let d="";return this.events.next(new Gt(c.id,this.urlSerializer.serialize(c.rawUrl),d,Hs.IgnoredSameUrlNavigation)),c.resolve(!1),te}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return S(c).pipe(le(d=>{let h=this.transitions?.getValue();return this.events.next(new hr(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions?.getValue()?te:Promise.resolve(d)}),H0(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),J(d=>{i.targetSnapshot=d.targetSnapshot,i.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=H(D({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let h=new zs(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:d,extractedUrl:h,source:f,restoredState:p,extras:m}=c,v=new hr(d,this.urlSerializer.serialize(h),f,p);this.events.next(v);let I=kv(this.rootComponentType).snapshot;return this.currentTransition=i=H(D({},c),{targetSnapshot:I,urlAfterRedirects:h,extras:H(D({},m),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,S(i)}else{let d="";return this.events.next(new Gt(c.id,this.urlSerializer.serialize(c.extractedUrl),d,Hs.IgnoredByUrlHandlingStrategy)),c.resolve(!1),te}}),J(c=>{let u=new Bl(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),A(c=>(this.currentTransition=i=H(D({},c),{guards:u0(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),i)),w0(this.environmentInjector,c=>this.events.next(c)),J(c=>{if(i.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw Qs(this.urlSerializer,c.guardsResult);let u=new Hl(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(u)}),me(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",Ae.GuardRejected),!1)),kl(c=>{if(c.guards.canActivateChecks.length)return S(c).pipe(J(u=>{let l=new zl(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),le(u=>{let l=!1;return S(u).pipe(z0(this.paramsInheritanceStrategy,this.environmentInjector),J({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(u,"",Ae.NoDataFromResolver)}}))}),J(u=>{let l=new Gl(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}))}),kl(c=>{let u=l=>{let d=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(l.routeConfig).pipe(J(h=>{l.component=h}),A(()=>{})));for(let h of l.children)d.push(...u(h));return d};return ui(u(c.targetSnapshot.root)).pipe(At(null),Se(1))}),kl(()=>this.afterPreactivation()),le(()=>{let{currentSnapshot:c,targetSnapshot:u}=i,l=this.createViewTransition?.(this.environmentInjector,c.root,u.root);return l?z(l).pipe(A(()=>i)):S(i)}),A(c=>{let u=o0(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=i=H(D({},c),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,i}),J(()=>{this.events.next(new ho)}),c0(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),Se(1),J({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new ut(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),Mr(this.transitionAbortSubject.pipe(J(c=>{throw c}))),Rt(()=>{!s&&!a&&this.cancelNavigationTransition(i,"",Ae.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation=null,this.currentTransition=null)}),Ue(c=>{if(a=!0,$v(c))this.events.next(new St(i.id,this.urlSerializer.serialize(i.extractedUrl),c.message,c.cancellationCode)),a0(c)?this.events.next(new pr(c.url,c.navigationBehaviorOptions)):i.resolve(!1);else{let u=new fo(i.id,this.urlSerializer.serialize(i.extractedUrl),c,i.targetSnapshot??void 0);try{let l=ze(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(l instanceof go){let{message:d,cancellationCode:h}=Qs(this.urlSerializer,l);this.events.next(new St(i.id,this.urlSerializer.serialize(i.extractedUrl),d,h)),this.events.next(new pr(l.redirectTo,l.navigationBehaviorOptions))}else{this.events.next(u);let d=n.errorHandler(c);i.resolve(!!d)}}catch(l){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(l)}}return te}))}))}cancelNavigationTransition(n,r,o){let i=new St(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function nT(e){return e!==ao}var rT=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=E({token:e,factory:()=>g(oT),providedIn:"root"})}}return e})(),cd=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},oT=(()=>{class e extends cd{static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=Mu(e)))(o||e)}})()}static{this.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Qv=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=E({token:e,factory:()=>g(iT),providedIn:"root"})}}return e})(),iT=(()=>{class e extends Qv{constructor(){super(...arguments),this.location=g(Yr),this.urlSerializer=g(Js),this.options=g(dd,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=g(pd),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Tt,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=kv(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof hr)this.stateMemento=this.createStateMemento();else if(n instanceof Gt)this.rawUrlTree=r.initialUrl;else if(n instanceof zs){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??o,r)}}else n instanceof ho?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):n instanceof St&&(n.code===Ae.GuardRejected||n.code===Ae.NoDataFromResolver)?this.restoreHistory(r):n instanceof fo?this.restoreHistory(r,!0):n instanceof ut&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let o=n instanceof Tt?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){let i=this.browserPageId,s=D(D({},r.extras.state),this.generateNgRouterState(r.id,i));this.location.replaceState(o,"",s)}else{let i=D(D({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(o,"",i)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,i=this.currentPageId-o;i!==0?this.location.historyGo(i):this.currentUrlTree===n.finalUrl&&i===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=Mu(e)))(o||e)}})()}static{this.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),io=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(io||{});function sT(e,t){e.events.pipe(me(n=>n instanceof ut||n instanceof St||n instanceof fo||n instanceof Gt),A(n=>n instanceof ut||n instanceof Gt?io.COMPLETE:(n instanceof St?n.code===Ae.Redirect||n.code===Ae.SupersededByNewNavigation:!1)?io.REDIRECTING:io.FAILED),me(n=>n!==io.REDIRECTING),Se(1)).subscribe(()=>{t()})}function aT(e){throw e}var cT={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},uT={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},ta=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=g(Ss),this.stateManager=g(Qv),this.options=g(dd,{optional:!0})||{},this.pendingTasks=g(it),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=g(Yv),this.urlSerializer=g(Js),this.location=g(Yr),this.urlHandlingStrategy=g(pd),this._events=new q,this.errorHandler=this.options.errorHandler||aT,this.navigated=!1,this.routeReuseStrategy=g(rT),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=g(hd,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!g(ld,{optional:!0}),this.eventsSubscription=new W,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,i=this.navigationTransitions.currentNavigation;if(o!==null&&i!==null){if(this.stateManager.handleRouterEvent(r,i),r instanceof St&&r.code!==Ae.Redirect&&r.code!==Ae.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof ut)this.navigated=!0;else if(r instanceof pr){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c=D({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||nT(o.source)},s);this.scheduleNavigation(a,ao,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}dT(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ao,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,o){let i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){let c=D({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(i.state=c)}let a=this.parseUrl(n);this.scheduleNavigation(a,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(fd),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:s,l=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":l=D(D({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}l!==null&&(l=this.removeEmptyProps(l));let d;try{let h=o?o.snapshot:this.routerState.snapshot.root;d=Rv(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return Ov(d,n,l,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){let o=wn(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,ao,null,r)}navigate(n,r={skipLocationChange:!1}){return lT(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=D({},cT):r===!1?o=D({},uT):o=r,wn(n))return pv(this.currentUrlTree,n,o);let i=this.parseUrl(n);return pv(this.currentUrlTree,i,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,i])=>(i!=null&&(r[o]=i),r),{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((d,h)=>{a=d,c=h});let l=this.pendingTasks.add();return sT(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(d=>Promise.reject(d))}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function lT(e){for(let t=0;t{class e{constructor(n,r,o,i,s,a){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a,this.href=null,this.onChanges=new q,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=n.events.subscribe(u=>{u instanceof ut&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(wn(n)?this.routerLinkInput=n:this.routerLinkInput=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0"))}onClick(n,r,o,i,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(n!==0||r||o||i||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let r=this.href===null?null:rg(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(n,r){let o=this.renderer,i=this.el.nativeElement;r!==null?o.setAttribute(i,n,r):o.removeAttribute(i,n)}get urlTree(){return this.routerLinkInput===null?null:wn(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(r){return new(r||e)(j(ta),j(En),Su("tabindex"),j(pn),j(oe),j(sr))}}static{this.\u0275dir=Pe({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,o){r&1&&Xu("click",function(s){return o.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&gn("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Zr],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Zr],replaceUrl:[2,"replaceUrl","replaceUrl",Zr],routerLink:"routerLink"},standalone:!0,features:[Wr,be]})}}return e})(),$1=(()=>{class e{get isActive(){return this._isActive}constructor(n,r,o,i,s){this.router=n,this.element=r,this.renderer=o,this.cdr=i,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new ne,this.routerEventsSubscription=n.events.subscribe(a=>{a instanceof ut&&this.update()})}ngAfterContentInit(){S(this.links.changes,S(null)).pipe(_t()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=z(n).pipe(_t()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(n){let r=Array.isArray(n)?n:n.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this.classes.forEach(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),n&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.isActiveChange.emit(n))})}isLinkActive(n){let r=fT(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let i=o.urlTree;return i?n.isActive(i,r):!1}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}static{this.\u0275fac=function(r){return new(r||e)(j(ta),j(oe),j(pn),j($t),j(Ev,8))}}static{this.\u0275dir=Pe({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,o,i){if(r&1&&ym(i,Ev,5),r&2){let s;Dm(s=wm())&&(o.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[be]})}}return e})();function fT(e){return!!e.paths}var Kv=new y(""),hT=(()=>{class e{constructor(n,r,o,i,s={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=o,this.zone=i,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof hr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof ut?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof Gt&&n.code===Hs.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Gs&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Gs(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(r){yg()}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac})}}return e})();function B1(e,...t){return Jn([{provide:hd,multi:!0,useValue:e},[],{provide:En,useFactory:pT,deps:[ta]},{provide:Ts,multi:!0,useFactory:mT},t.map(n=>n.\u0275providers)])}function pT(e){return e.routerState.root}function gT(e,t){return{\u0275kind:e,\u0275providers:t}}function H1(e={}){return gT(4,[{provide:Kv,useFactory:()=>{let n=g(zm),r=g(Q),o=g(Yv),i=g(Js);return new hT(i,o,n,r,e)}}])}function mT(){let e=g(xe);return t=>{let n=e.get(at);if(t!==n.components[0])return;let r=e.get(ta),o=e.get(vT);e.get(yT)===1&&r.initialNavigation(),e.get(DT,null,F.Optional)?.setUpPreloading(),e.get(Kv,null,F.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var vT=new y("",{factory:()=>new q}),yT=new y("",{providedIn:"root",factory:()=>1});var DT=new y("");var ET=iu;function IT(e){return!!e[ET]}var CT=Symbol("__destroy"),ny=Symbol("__decoratorApplied");function ry(e){return typeof e=="string"?Symbol(`__destroy__${e}`):CT}function bT(e){e.prototype[ny]=!0}function oy(e,t){e[t]||(e[t]=new q)}function iy(e,t){e[t]&&(e[t].next(),e[t].complete(),e[t]=null)}function sy(e){e instanceof W&&e.unsubscribe()}function MT(e){Array.isArray(e)&&e.forEach(sy)}function ay(e,t){return function(){if(e&&e.call(this),iy(this,ry()),t.arrayName&&MT(this[t.arrayName]),t.checkProperties)for(let n in this)t.blackList?.includes(n)||sy(this[n])}}function ST(e,t){e.prototype.ngOnDestroy=ay(e.prototype.ngOnDestroy,t)}function TT(e,t){let n=e.\u0275pipe;n.onDestroy=ay(n.onDestroy,t)}function cy(e={}){return t=>{IT(t)?TT(t,e):ST(t,e),bT(t)}}var Xv=7,ey=Symbol("CheckerHasBeenSet");function _T(e,t){e[ey]||xT()||(ty(()=>z(Promise.resolve()).pipe(G(()=>{let n;try{n=Lp(e)}catch{n=null}let r=n?.lView;if(r==null)return te;let o=r[Xv]||(r[Xv]=[]),i=new q;return o.push(function(){ty(()=>{i.next(),i.complete()})}),i}),G(()=>Promise.resolve())).subscribe(()=>{(t.observed??t.observers.length>0)&&console.warn(NT(e))})),e[ey]=!0)}function xT(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"}function ty(e){let t=en.Zone;return!!t&&typeof t.root?.run=="function"?t.root.run(e):e()}function NT(e){return` + The ${e.constructor.name} still has subscriptions that haven't been unsubscribed. + This may happen if the class extends another class decorated with @UntilDestroy(). + The child class implements its own ngOnDestroy() method but doesn't call super.ngOnDestroy(). + Let's look at the following example: + @UntilDestroy() + @Directive() + export abstract class BaseDirective {} + @Component({ template: '' }) + export class ConcreteComponent extends BaseDirective implements OnDestroy { + constructor() { + super(); + someObservable$.pipe(untilDestroyed(this)).subscribe(); + } + ngOnDestroy(): void { + // Some logic here... + } + } + The BaseDirective.ngOnDestroy() will not be called since Angular will call ngOnDestroy() + on the ConcreteComponent, but not on the BaseDirective. + One of the solutions is to declare an empty ngOnDestroy method on the BaseDirective: + @UntilDestroy() + @Directive() + export abstract class BaseDirective { + ngOnDestroy(): void {} + } + @Component({ template: '' }) + export class ConcreteComponent extends BaseDirective implements OnDestroy { + constructor() { + super(); + someObservable$.pipe(untilDestroyed(this)).subscribe(); + } + ngOnDestroy(): void { + // Some logic here... + super.ngOnDestroy(); + } + } + `}var md=!1;function AT(e,t,n){let r=e[t];if(md&&typeof r!="function")throw new Error(`${e.constructor.name} is using untilDestroyed but doesn't implement ${t}`);oy(e,n),e[t]=function(){r.apply(this,arguments),iy(this,n),e[t]=r}}function uy(e,t){return n=>{let r=ry(t);typeof t=="string"?AT(e,t,r):(md&&RT(e),oy(e,r));let o=e[r];return md&&_T(e,o),n.pipe(Mr(o))}}function RT(e){let t=Object.getPrototypeOf(e);if(!(ny in t))throw new Error("untilDestroyed operator cannot be used inside directives or components or providers that are not decorated with UntilDestroy decorator")}var na=class e{constructor(){this.cache=new Map}static{this.TOKEN=Math.random().toString(36).slice(-8)}intercept(t,n){if(t.method!=="GET"||!t.params.has(e.TOKEN))return n.handle(t);let r=this.cache.get(t.url);if(r)return r;let o=t.clone({params:t.params.delete(e.TOKEN)}),i=n.handle(o).pipe(J({error:s=>{s instanceof vn&&this.cache.delete(s.url||"")}}),xa(1));return this.cache.set(t.url,i),i}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac})}};var ly=new y("NG_DOC_ASSETS_PATH"),tL=new y("NG_DOC_COMPONENT_CONTEXT"),dy=new y("NG_DOC_CUSTOM_ICONS_PATH");var fL=(()=>{class e{constructor(n,r){this.elementRef=n,this.httpClient=r,this.icon="",this.customIcon="",this.size=16,this.reload$=new q,this.assetsPath=g(ly,{optional:!0})??"",this.customIconsPath=g(dy,{optional:!0})??""}ngOnChanges(){this.reload$.next()}ngOnInit(){this.reload$.pipe(br(null),le(()=>this.httpClient.get(this.href,{responseType:"text",params:{[na.TOKEN]:"true"}}).pipe(Ue(n=>(console.error(n),S("")))))).subscribe(n=>this.elementRef.nativeElement.innerHTML=n)}get href(){return this.customIcon?`${this.customIconsPath}/${this.customIcon}.svg#${this.customIcon}`:`${this.assetsPath}/icons/${this.size}/${this.icon}.svg#${this.icon}`}static{this.\u0275fac=function(r){return new(r||e)(j(oe),j(Il))}}static{this.\u0275cmp=Lt({type:e,selectors:[["ng-doc-icon"]],hostVars:3,hostBindings:function(r,o){r&2&&gn("data-ng-doc-icon",o.icon)("data-ng-doc-custom-icon",o.customIcon)("data-ng-doc-size",o.size)},inputs:{icon:"icon",customIcon:"customIcon",size:[2,"size","size",al]},standalone:!0,features:[Wr,be,Ut],decls:0,vars:0,template:function(r,o){},styles:['[_nghost-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:var(--ng-doc-icon-width, 16px);height:var(--ng-doc-icon-height, 16px);color:var(--ng-doc-icon-color, var(--ng-doc-text));vertical-align:sub}[_nghost-%COMP%] svg[_ngcontent-%COMP%]{vertical-align:top}[data-ng-doc-size="24"][_nghost-%COMP%]{width:var(--ng-doc-icon-width, 24px);height:var(--ng-dpc-icon-height, 24px)}'],changeDetection:0})}}return e})();var pL=(()=>{class e{constructor(n){this.sanitizer=n}transform(n){return this.sanitizer.bypassSecurityTrustHtml(n)}static{this.\u0275fac=function(r){return new(r||e)(j(Rl,16))}}static{this.\u0275pipe=$r({name:"ngDocSanitizeHtml",type:e,pure:!0,standalone:!0})}}return e})();var hy=vr(ra(),1),DL=new y("NG_DOC_CONTEXT"),wL=new y("NG_DOC_MERMAID"),Dd=new y("NG_DOC_PAGE_PROCESSOR"),py=new y("NG_DOC_PAGE_CUSTOM_PROCESSOR");function EL(e){return(0,hy.asArray)(e).map(t=>({provide:Dd,useValue:t,multi:!0}))}var IL=new y("NG_DOC_PAGE_SKELETON"),CL=new y("NG_DOC_ROUTE_PREFIX"),bL=new y("NG_DOC_SHIKI_THEME"),ML=new y("NG_DOC_THEME"),SL=new y("NG_DOC_DEFAULT_THEME"),TL=new y("NG_DOC_TYPE_CONTROL");var gy=vr(ra(),1),my=vr(Ed(),1),jT=["ngDocPageProcessor",""],VT=["*"],LL=(()=>{class e{constructor(){this.html="",this.afterRender=new ne,this.processors=g(Dd,{optional:!0})??[],this.customProcessors=g(py,{optional:!0})??[],this.elementRef=g(oe),this.viewContainerRef=g(Le),this.applicationRef=g(at),this.injector=g(xe),this.renderer=g(pn)}ngOnChanges({html:n}){n&&Promise.resolve().then(()=>{(0,gy.asArray)(this.processors,this.customProcessors).forEach(this.process.bind(this)),this.applicationRef.tick(),this.afterRender.emit()})}process(n){Array.from(this.elementRef.nativeElement.querySelectorAll(n.selector)).forEach(r=>{if(r.parentNode){let o=(n.nodeToReplace&&n.nodeToReplace(r,this.injector))??r,i=n.extractOptions(r,this.elementRef.nativeElement),s=this.viewContainerRef.createComponent(n.component,{projectableNodes:i.content,injector:this.injector});i.inputs&&(0,my.objectKeys)(i.inputs).forEach(a=>i.inputs&&s.setInput(a,i.inputs[a])),o.parentNode?.replaceChild(s.location.nativeElement,o),s.changeDetectorRef.markForCheck()}})}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Lt({type:e,selectors:[["","ngDocPageProcessor",""]],hostVars:1,hostBindings:function(r,o){r&2&&Ju("innerHTML",o.html,ng)},inputs:{html:[0,"ngDocPageProcessor","html"]},outputs:{afterRender:"afterRender"},standalone:!0,features:[be,Ut],attrs:jT,ngContentSelectors:VT,decls:1,vars:0,template:function(r,o){r&1&&(mm(),vm(0))},encapsulation:2,changeDetection:0})}}return e})();var yy=vr(ra(),1),Dy=vr(Ed(),1);function VL(e,t,n){e.clear();let r=e.createComponent(t);n&&Object.entries(n).forEach(([o,i])=>{r.setInput(o,i)})}function UL(e){return In(this,null,function*(){return(yield import("./chunk-ICZRK4BH.js")).default.html(e.trim(),{wrap:50,markup:{forceIndent:!0}})})}function $L(e){let t=["h1","h2","h3","h4","h5","h6"],n=Array.from(e.querySelectorAll(t.join(", "))).filter(o=>o.id),r=(0,yy.asArray)(new Set(n.map(vy).sort()));return n.reduce((o,i)=>{let s=vy(i);return i.getAttribute("headingLink")==="true"&&o.push({title:i.textContent?.trim()??"",element:i,path:i.getAttribute("href")??"",hash:i.id,level:r.indexOf(s)+1}),o},[])}function vy(e){return Number(e.tagName.toLowerCase().replace(/[a-z]*/g,"")||1)}function BL(e){return(0,Dy.objectKeys)(e).includes("type")}Yo();var Id=(()=>{class e{constructor(){this.origins=new Set,this.selectedChange=new Qt}get selectedChange$(){return this.selectedChange.pipe(Ma())}addOrigin(n){this.origins.add(n)}removeOrigin(n){this.origins.delete(n),this.selected===n&&this.changeSelected(n,!1)}changeSelected(n,r){this.selected=this.selected===n||r?r?n:void 0:this.selected,this.selectedChange.next(this.selected?.elementRef?.nativeElement??void 0)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=Pe({type:e,selectors:[["","ngDocSelectionHost",""]],standalone:!0})}}return e})(),tj=(()=>{let e=class Cd{constructor(n,r){this.elementRef=n,this.selectionHost=r,this.align="bottom"}ngAfterViewInit(){this.selectionHost.selectedChange$.pipe(ba(0),uy(this)).subscribe(n=>this.setStyles(n))}setStyles(n){if(this.elementRef.nativeElement.style.visibility="hidden",n){let r=this.getPosition(n);this.align==="left"||this.align==="right"?this.elementRef.nativeElement.style.top=r.top:this.elementRef.nativeElement.style.left=r.left,this.elementRef.nativeElement.style.height=r.height,this.elementRef.nativeElement.style.width=r.width,this.elementRef.nativeElement.style.visibility="visible"}}getPosition(n){return{top:n?`${n.offsetTop||0}px`:"0",left:n?`${n.offsetLeft||0}px`:"0",width:n?`${n.offsetWidth||0}px`:"0",height:n?`${n.offsetHeight||0}px`:"0"}}static{this.\u0275fac=function(r){return new(r||Cd)(j(oe),j(Id))}}static{this.\u0275cmp=Lt({type:Cd,selectors:[["ng-doc-selection"]],hostVars:1,hostBindings:function(r,o){r&2&&gn("data-ng-doc-align",o.align)},inputs:{align:"align"},standalone:!0,features:[Ut],decls:0,vars:0,template:function(r,o){},styles:["[_nghost-%COMP%]{position:absolute;transition:var(--ng-doc-transition);pointer-events:none;background:var(--ng-doc-selection-background)}[data-ng-doc-align=left][_nghost-%COMP%]{left:0;border-left:var(--ng-doc-selection-border)}[data-ng-doc-align=right][_nghost-%COMP%]{right:0;border-right:var(--ng-doc-selection-border)}[data-ng-doc-align=bottom][_nghost-%COMP%]{bottom:0;border-bottom:var(--ng-doc-selection-border)}[data-ng-doc-align=top][_nghost-%COMP%]{top:0;border-top:var(--ng-doc-selection-border)}"],changeDetection:0})}};return e=Ho([cy(),zo("design:paramtypes",[oe,Id])],e),e})(),nj=(()=>{class e{constructor(n,r){this.elementRef=n,this.selectionHost=r,this.selected=!1,this.selectionHost.addOrigin(this)}ngOnChanges({selected:n}){n&&this.selectionHost.changeSelected(this,this.selected)}ngOnDestroy(){this.selectionHost.removeOrigin(this)}static{this.\u0275fac=function(r){return new(r||e)(j(oe),j(Id))}}static{this.\u0275dir=Pe({type:e,selectors:[["","ngDocSelectionOrigin",""]],inputs:{selected:[0,"ngDocSelectionOrigin","selected"]},standalone:!0,features:[be]})}}return e})();export{W as a,ga as b,O as c,q as d,ae as e,Qt as f,te as g,Ho as h,zo as i,By as j,Yo as k,z as l,S as m,A as n,ui as o,xt as p,oD as q,Ca as r,Jt as s,dD as t,fD as u,me as v,hD as w,Ue as x,ba as y,Se as z,Tf as A,Ma as B,mD as C,vD as D,fi as E,xa as F,yD as G,br as H,le as I,Mr as J,J as K,DD as L,w as M,Mh as N,E as O,Lr as P,y as Q,N as R,g as S,et as T,Lt as U,Ur as V,Pe as W,$r as X,Ee as Y,pu as Z,be as _,RF as $,OF as aa,PF as ba,Mu as ca,xe as da,ps as ea,ne as fa,Q as ga,FF as ha,oe as ia,lc as ja,st as ka,kF as la,Ru as ma,ng as na,qE as oa,LF as pa,j as qa,yg as ra,dn as sa,Yn as ta,Qn as ua,pn as va,Le as wa,We as xa,kC as ya,LC as za,$F as Aa,GC as Ba,BF as Ca,rb as Da,sb as Ea,em as Fa,gn as Ga,Db as Ha,im as Ia,wb as Ja,HF as Ka,zF as La,GF as Ma,qF as Na,WF as Oa,dm as Pa,fm as Qa,Ku as Ra,hm as Sa,pm as Ta,Lb as Ua,ZF as Va,Ju as Wa,Vb as Xa,Xu as Ya,YF as Za,mm as _a,vm as $a,ym as ab,QF as bb,Dm as cb,wm as db,KF as eb,JF as fb,XF as gb,ek as hb,Zb as ib,Em as jb,Yb as kb,tk as lb,Qb as mb,nk as nb,Ut as ob,rk as pb,ok as qb,ik as rb,sk as sb,ak as tb,ck as ub,uk as vb,lk as wb,rr as xb,Sm as yb,at as zb,dk as Ab,fk as Bb,$t as Cb,Zr as Db,hk as Eb,cl as Fb,bM as Gb,or as Hb,pe as Ib,Yr as Jb,Pk as Kb,Fk as Lb,kk as Mb,Lk as Nb,jk as Ob,Vk as Pb,FM as Qb,LM as Rb,zm as Sb,Il as Tb,QM as Ub,Xk as Vb,e1 as Wb,t1 as Xb,iv as Yb,w1 as Zb,Rl as _b,ut as $b,Gs as ac,En as bc,r0 as cc,ta as dc,Ev as ec,$1 as fc,B1 as gc,H1 as hc,fy as ic,Jv as jc,ra as kc,Ed as lc,cy as mc,uy as nc,na as oc,ly as pc,tL as qc,dy as rc,fL as sc,Id as tc,tj as uc,nj as vc,pL as wc,DL as xc,wL as yc,EL as zc,IL as Ac,CL as Bc,bL as Cc,LL as Dc,VL as Ec,UL as Fc,$L as Gc,BL as Hc}; diff --git a/chunk-FYJN25HH.js b/chunk-FYJN25HH.js new file mode 100644 index 0000000..eff36b8 --- /dev/null +++ b/chunk-FYJN25HH.js @@ -0,0 +1,257 @@ +import{$a as le,A as St,B as Et,C as oe,Fa as dt,Na as ce,b as Oe,c as Ve,cb as ue,d as Ut,e as Zt,eb as de,f as Qt,fb as fe,g as Jt,gb as he,h as ut,hb as me,ib as ke,j as Kt,jb as ye,kb as ge,mb as st,n as $t,o as xt,p as wt,q as _t,r as Dt,s as Ct,t as te,u as ee,v as ie,w as se,x as ne,y as re,z as ae}from"./chunk-2YKPSI5H.js";import{f as vt,h as lt}from"./chunk-TWZW5B45.js";var pe=vt((Mt,At)=>{"use strict";(function(t,i){typeof Mt=="object"&&typeof At<"u"?At.exports=i():typeof define=="function"&&define.amd?define(i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isoWeek=i()})(Mt,function(){"use strict";var t="day";return function(i,r,a){var s=function(_){return _.add(4-_.isoWeekday(),t)},f=r.prototype;f.isoWeekYear=function(){return s(this).year()},f.isoWeek=function(_){if(!this.$utils().u(_))return this.add(7*(_-this.isoWeek()),t);var x,A,C,F,H=s(this),P=(x=this.isoWeekYear(),A=this.$u,C=(A?a.utc:a)().year(x).startOf("year"),F=4-C.isoWeekday(),C.isoWeekday()>4&&(F+=7),C.add(F,t));return H.diff(P,"week")+1},f.isoWeekday=function(_){return this.$utils().u(_)?this.day()||7:this.day(this.day()%7?_:_-7)};var h=f.startOf;f.startOf=function(_,x){var A=this.$utils(),C=!!A.u(x)||x;return A.p(_)==="isoweek"?C?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):h.bind(this)(_,x)}}})});var Te=vt((Lt,It)=>{"use strict";(function(t,i){typeof Lt=="object"&&typeof It<"u"?It.exports=i():typeof define=="function"&&define.amd?define(i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_customParseFormat=i()})(Lt,function(){"use strict";var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,a=/\d\d/,s=/\d\d?/,f=/\d*[^-_:/,()\s\d]+/,h={},_=function(k){return(k=+k)+(k>68?1900:2e3)},x=function(k){return function(m){this[k]=+m}},A=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=function(m){if(!m||m==="Z")return 0;var M=m.match(/([+-]|\d\d)/g),L=60*M[1]+(+M[2]||0);return L===0?0:M[0]==="+"?-L:L}(k)}],C=function(k){var m=h[k];return m&&(m.indexOf?m:m.s.concat(m.f))},F=function(k,m){var M,L=h.meridiem;if(L){for(var N=1;N<=24;N+=1)if(k.indexOf(L(N,0,m))>-1){M=N>12;break}}else M=k===(m?"pm":"PM");return M},H={A:[f,function(k){this.afternoon=F(k,!1)}],a:[f,function(k){this.afternoon=F(k,!0)}],Q:[r,function(k){this.month=3*(k-1)+1}],S:[r,function(k){this.milliseconds=100*+k}],SS:[a,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[s,x("seconds")],ss:[s,x("seconds")],m:[s,x("minutes")],mm:[s,x("minutes")],H:[s,x("hours")],h:[s,x("hours")],HH:[s,x("hours")],hh:[s,x("hours")],D:[s,x("day")],DD:[a,x("day")],Do:[f,function(k){var m=h.ordinal,M=k.match(/\d+/);if(this.day=M[0],m)for(var L=1;L<=31;L+=1)m(L).replace(/\[|\]/g,"")===k&&(this.day=L)}],w:[s,x("week")],ww:[a,x("week")],M:[s,x("month")],MM:[a,x("month")],MMM:[f,function(k){var m=C("months"),M=(C("monthsShort")||m.map(function(L){return L.slice(0,3)})).indexOf(k)+1;if(M<1)throw new Error;this.month=M%12||M}],MMMM:[f,function(k){var m=C("months").indexOf(k)+1;if(m<1)throw new Error;this.month=m%12||m}],Y:[/[+-]?\d+/,x("year")],YY:[a,function(k){this.year=_(k)}],YYYY:[/\d{4}/,x("year")],Z:A,ZZ:A};function P(k){var m,M;m=k,M=h&&h.formats;for(var L=(k=m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(g,v,b){var y=b&&b.toUpperCase();return v||M[b]||t[b]||M[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(n,u,d){return u||d.slice(1)})})).match(i),N=L.length,R=0;R-1)return new Date((p==="X"?1e3:1)*o);var c=P(p)(o),l=c.year,T=c.month,I=c.day,D=c.hours,S=c.minutes,w=c.seconds,E=c.milliseconds,$=c.zone,tt=c.week,ot=new Date,ct=I||(l||T?1:ot.getDate()),O=l||ot.getFullYear(),q=0;l&&!T||(q=T>0?T-1:ot.getMonth());var V,it=D||0,Z=S||0,et=w||0,G=E||0;return $?new Date(Date.UTC(O,q,ct,it,Z,et,G+60*$.offset*1e3)):e?new Date(Date.UTC(O,q,ct,it,Z,et,G)):(V=new Date(O,q,ct,it,Z,et,G),tt&&(V=Y(V).week(tt).toDate()),V)}catch{return new Date("")}}(U,j,X,M),this.init(),y&&y!==!0&&(this.$L=this.locale(y).$L),b&&U!=this.format(j)&&(this.$d=new Date("")),h={}}else if(j instanceof Array)for(var n=j.length,u=1;u<=n;u+=1){B[1]=j[u-1];var d=M.apply(this,B);if(d.isValid()){this.$d=d.$d,this.$L=d.$L,this.init();break}u===n&&(this.$d=new Date(""))}else N.call(this,R)}}})});var be=vt((Yt,Ft)=>{"use strict";(function(t,i){typeof Yt=="object"&&typeof Ft<"u"?Ft.exports=i():typeof define=="function"&&define.amd?define(i):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_advancedFormat=i()})(Yt,function(){"use strict";return function(t,i){var r=i.prototype,a=r.format;r.format=function(s){var f=this,h=this.$locale();if(!this.isValid())return a.bind(this)(s);var _=this.$utils(),x=(s||"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(A){switch(A){case"Q":return Math.ceil((f.$M+1)/3);case"Do":return h.ordinal(f.$D);case"gggg":return f.weekYear();case"GGGG":return f.isoWeekYear();case"wo":return h.ordinal(f.week(),"W");case"w":case"ww":return _.s(f.week(),A==="w"?1:2,"0");case"W":case"WW":return _.s(f.isoWeek(),A==="W"?1:2,"0");case"k":case"kk":return _.s(String(f.$H===0?24:f.$H),A==="k"?1:2,"0");case"X":return Math.floor(f.$d.getTime()/1e3);case"x":return f.$d.getTime();case"z":return"["+f.offsetName()+"]";case"zzz":return"["+f.offsetName("long")+"]";default:return A}});return a.bind(this)(x)}}})});var we=lt(Ve(),1),z=lt(Oe(),1),_e=lt(pe(),1),De=lt(Te(),1),Ce=lt(be(),1);var Wt=function(){var t=function(y,n,u,d){for(u=u||{},d=y.length;d--;u[y[d]]=n);return u},i=[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],f=[1,28],h=[1,29],_=[1,30],x=[1,31],A=[1,9],C=[1,10],F=[1,11],H=[1,12],P=[1,13],k=[1,14],m=[1,15],M=[1,16],L=[1,18],N=[1,19],R=[1,20],U=[1,21],X=[1,22],B=[1,24],j=[1,32],g={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(n,u,d,o,p,e,Y){var c=e.length-1;switch(p){case 1:return e[c-1];case 2:this.$=[];break;case 3:e[c-1].push(e[c]),this.$=e[c-1];break;case 4:case 5:this.$=e[c];break;case 6:case 7:this.$=[];break;case 8:o.setWeekday("monday");break;case 9:o.setWeekday("tuesday");break;case 10:o.setWeekday("wednesday");break;case 11:o.setWeekday("thursday");break;case 12:o.setWeekday("friday");break;case 13:o.setWeekday("saturday");break;case 14:o.setWeekday("sunday");break;case 15:o.setDateFormat(e[c].substr(11)),this.$=e[c].substr(11);break;case 16:o.enableInclusiveEndDates(),this.$=e[c].substr(18);break;case 17:o.TopAxis(),this.$=e[c].substr(8);break;case 18:o.setAxisFormat(e[c].substr(11)),this.$=e[c].substr(11);break;case 19:o.setTickInterval(e[c].substr(13)),this.$=e[c].substr(13);break;case 20:o.setExcludes(e[c].substr(9)),this.$=e[c].substr(9);break;case 21:o.setIncludes(e[c].substr(9)),this.$=e[c].substr(9);break;case 22:o.setTodayMarker(e[c].substr(12)),this.$=e[c].substr(12);break;case 24:o.setDiagramTitle(e[c].substr(6)),this.$=e[c].substr(6);break;case 25:this.$=e[c].trim(),o.setAccTitle(this.$);break;case 26:case 27:this.$=e[c].trim(),o.setAccDescription(this.$);break;case 28:o.addSection(e[c].substr(8)),this.$=e[c].substr(8);break;case 30:o.addTask(e[c-1],e[c]),this.$="task";break;case 31:this.$=e[c-1],o.setClickEvent(e[c-1],e[c],null);break;case 32:this.$=e[c-2],o.setClickEvent(e[c-2],e[c-1],e[c]);break;case 33:this.$=e[c-2],o.setClickEvent(e[c-2],e[c-1],null),o.setLink(e[c-2],e[c]);break;case 34:this.$=e[c-3],o.setClickEvent(e[c-3],e[c-2],e[c-1]),o.setLink(e[c-3],e[c]);break;case 35:this.$=e[c-2],o.setClickEvent(e[c-2],e[c],null),o.setLink(e[c-2],e[c-1]);break;case 36:this.$=e[c-3],o.setClickEvent(e[c-3],e[c-1],e[c]),o.setLink(e[c-3],e[c-2]);break;case 37:this.$=e[c-1],o.setLink(e[c-1],e[c]);break;case 38:case 44:this.$=e[c-1]+" "+e[c];break;case 39:case 40:case 42:this.$=e[c-2]+" "+e[c-1]+" "+e[c];break;case 41:case 43:this.$=e[c-3]+" "+e[c-2]+" "+e[c-1]+" "+e[c];break}},table:[{3:1,4:[1,2]},{1:[3]},t(i,[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:f,16:h,17:_,18:x,19:A,20:C,21:F,22:H,23:P,24:k,25:m,26:M,27:L,28:N,30:R,32:U,33:X,34:23,35:B,37:j},t(i,[2,7],{1:[2,1]}),t(i,[2,3]),{9:33,11:17,12:r,13:a,14:s,15:f,16:h,17:_,18:x,19:A,20:C,21:F,22:H,23:P,24:k,25:m,26:M,27:L,28:N,30:R,32:U,33:X,34:23,35:B,37:j},t(i,[2,5]),t(i,[2,6]),t(i,[2,15]),t(i,[2,16]),t(i,[2,17]),t(i,[2,18]),t(i,[2,19]),t(i,[2,20]),t(i,[2,21]),t(i,[2,22]),t(i,[2,23]),t(i,[2,24]),{29:[1,34]},{31:[1,35]},t(i,[2,27]),t(i,[2,28]),t(i,[2,29]),{36:[1,36]},t(i,[2,8]),t(i,[2,9]),t(i,[2,10]),t(i,[2,11]),t(i,[2,12]),t(i,[2,13]),t(i,[2,14]),{38:[1,37],40:[1,38]},t(i,[2,4]),t(i,[2,25]),t(i,[2,26]),t(i,[2,30]),t(i,[2,31],{39:[1,39],40:[1,40]}),t(i,[2,37],{38:[1,41]}),t(i,[2,32],{40:[1,42]}),t(i,[2,33]),t(i,[2,35],{39:[1,43]}),t(i,[2,34]),t(i,[2,36])],defaultActions:{},parseError:function(n,u){if(u.recoverable)this.trace(n);else{var d=new Error(n);throw d.hash=u,d}},parse:function(n){var u=this,d=[0],o=[],p=[null],e=[],Y=this.table,c="",l=0,T=0,I=2,D=1,S=e.slice.call(arguments,1),w=Object.create(this.lexer),E={yy:{}};for(var $ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$)&&(E.yy[$]=this.yy[$]);w.setInput(n,E.yy),E.yy.lexer=w,E.yy.parser=this,typeof w.yylloc>"u"&&(w.yylloc={});var tt=w.yylloc;e.push(tt);var ot=w.options&&w.options.ranges;typeof E.yy.parseError=="function"?this.parseError=E.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ct(){var J;return J=o.pop()||w.lex()||D,typeof J!="number"&&(J instanceof Array&&(o=J,J=o.pop()),J=u.symbols_[J]||J),J}for(var O,q,V,it,Z={},et,G,Tt,kt;;){if(q=d[d.length-1],this.defaultActions[q]?V=this.defaultActions[q]:((O===null||typeof O>"u")&&(O=ct()),V=Y[q]&&Y[q][O]),typeof V>"u"||!V.length||!V[0]){var bt="";kt=[];for(et in Y[q])this.terminals_[et]&&et>I&&kt.push("'"+this.terminals_[et]+"'");w.showPosition?bt="Parse error on line "+(l+1)+`: +`+w.showPosition()+` +Expecting `+kt.join(", ")+", got '"+(this.terminals_[O]||O)+"'":bt="Parse error on line "+(l+1)+": Unexpected "+(O==D?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(bt,{text:w.match,token:this.terminals_[O]||O,line:w.yylineno,loc:tt,expected:kt})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+q+", token: "+O);switch(V[0]){case 1:d.push(O),p.push(w.yytext),e.push(w.yylloc),d.push(V[1]),O=null,T=w.yyleng,c=w.yytext,l=w.yylineno,tt=w.yylloc;break;case 2:if(G=this.productions_[V[1]][1],Z.$=p[p.length-G],Z._$={first_line:e[e.length-(G||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(G||1)].first_column,last_column:e[e.length-1].last_column},ot&&(Z._$.range=[e[e.length-(G||1)].range[0],e[e.length-1].range[1]]),it=this.performAction.apply(Z,[c,T,l,E.yy,V[1],p,e].concat(S)),typeof it<"u")return it;G&&(d=d.slice(0,-1*G*2),p=p.slice(0,-1*G),e=e.slice(0,-1*G)),d.push(this.productions_[V[1]][0]),p.push(Z.$),e.push(Z._$),Tt=Y[d[d.length-2]][d[d.length-1]],d.push(Tt);break;case 3:return!0}}return!0}},v=function(){var y={EOF:1,parseError:function(u,d){if(this.yy.parser)this.yy.parser.parseError(u,d);else throw new Error(u)},setInput:function(n,u){return this.yy=u||this.yy||{},this._input=n,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 n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var u=n.match(/(?:\r\n?|\n).*/g);return u?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var u=n.length,d=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var o=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),d.length-1&&(this.yylineno-=d.length-1);var p=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:d?(d.length===o.length?this.yylloc.first_column:0)+o[o.length-d.length].length-d[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-u]),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(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),u=new Array(n.length+1).join("-");return n+this.upcomingInput()+` +`+u+"^"},test_match:function(n,u){var d,o,p;if(this.options.backtrack_lexer&&(p={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&&(p.yylloc.range=this.yylloc.range.slice(0))),o=n[0].match(/(?:\r\n?|\n).*/g),o&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,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(n[0].length),this.matched+=n[0],d=this.performAction.call(this,this.yy,this,u,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),d)return d;if(this._backtrack){for(var e in p)this[e]=p[e];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,u,d,o;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),e=0;eu[0].length)){if(u=d,o=e,this.options.backtrack_lexer){if(n=this.test_match(d,p[e]),n!==!1)return n;if(this._backtrack){u=!1;continue}else return!1}else if(!this.options.flex)break}return u?(n=this.test_match(u,p[o]),n!==!1?n:!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 u=this.next();return u||this.lex()},begin:function(u){this.conditionStack.push(u)},popState:function(){var u=this.conditionStack.length-1;return u>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(u){return u=this.conditionStack.length-1-Math.abs(u||0),u>=0?this.conditionStack[u]:"INITIAL"},pushState:function(u){this.begin(u)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(u,d,o,p){switch(o){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 y}();g.lexer=v;function b(){this.yy={}}return b.prototype=g,g.Parser=b,new b}();Wt.parser=Wt;var Pe=Wt;z.default.extend(_e.default);z.default.extend(De.default);z.default.extend(Ce.default);var Q="",zt="",Nt,Rt="",ft=[],ht=[],Bt={},jt=[],pt=[],at="",Ht="",Se=["active","done","crit","milestone"],Gt=[],mt=!1,Xt=!1,qt="sunday",Ot=0,ze=function(){jt=[],pt=[],at="",Gt=[],yt=0,Pt=void 0,gt=void 0,W=[],Q="",zt="",Ht="",Nt=void 0,Rt="",ft=[],ht=[],mt=!1,Xt=!1,Ot=0,Bt={},de(),qt="sunday"},Ne=function(t){zt=t},Re=function(){return zt},Be=function(t){Nt=t},je=function(){return Nt},He=function(t){Rt=t},Ge=function(){return Rt},Xe=function(t){Q=t},qe=function(){mt=!0},Ue=function(){return mt},Ze=function(){Xt=!0},Qe=function(){return Xt},Je=function(t){Ht=t},Ke=function(){return Ht},$e=function(){return Q},ti=function(t){ft=t.toLowerCase().split(/[\s,]+/)},ei=function(){return ft},ii=function(t){ht=t.toLowerCase().split(/[\s,]+/)},si=function(){return ht},ni=function(){return Bt},ri=function(t){at=t,jt.push(t)},ai=function(){return jt},oi=function(){let t=ve(),i=10,r=0;for(;!t&&r=6&&r.includes("weekends")||r.includes(t.format("dddd").toLowerCase())?!0:r.includes(t.format(i.trim()))},ci=function(t){qt=t},li=function(){return qt},Me=function(t,i,r,a){if(!r.length||t.manualEndTime)return;let s;t.startTime instanceof Date?s=(0,z.default)(t.startTime):s=(0,z.default)(t.startTime,i,!0),s=s.add(1,"d");let f;t.endTime instanceof Date?f=(0,z.default)(t.endTime):f=(0,z.default)(t.endTime,i,!0);let[h,_]=ui(s,f,i,r,a);t.endTime=h.toDate(),t.renderEndTime=_},ui=function(t,i,r,a,s){let f=!1,h=null;for(;t<=i;)f||(h=i.toDate()),f=Ee(t,r,a,s),f&&(i=i.add(1,"d")),t=t.add(1,"d");return[i,h]},Vt=function(t,i,r){r=r.trim();let s=/^after\s+(?[\d\w- ]+)/.exec(r);if(s!==null){let h=null;for(let x of s.groups.ids.split(" ")){let A=nt(x);A!==void 0&&(!h||A.endTime>h.endTime)&&(h=A)}if(h)return h.endTime;let _=new Date;return _.setHours(0,0,0,0),_}let f=(0,z.default)(r,i.trim(),!0);if(f.isValid())return f.toDate();{dt.debug("Invalid date:"+r),dt.debug("With date format:"+i.trim());let 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}},Ae=function(t){let i=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return i!==null?[Number.parseFloat(i[1]),i[2]]:[NaN,"ms"]},Le=function(t,i,r,a=!1){r=r.trim();let f=/^until\s+(?[\d\w- ]+)/.exec(r);if(f!==null){let C=null;for(let H of f.groups.ids.split(" ")){let P=nt(H);P!==void 0&&(!C||P.startTime{window.open(r,"_self")}),Bt[a]=r)}),Ye(t,"clickable")},Ye=function(t,i){t.split(",").forEach(function(r){let a=nt(r);a!==void 0&&a.classes.push(i)})},yi=function(t,i,r){if(st().securityLevel!=="loose"||i===void 0)return;let a=[];if(typeof r=="string"){a=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let f=0;f{le.runFunc(i,...a)})},Fe=function(t,i){Gt.push(function(){let r=document.querySelector(`[id="${t}"]`);r!==null&&r.addEventListener("click",function(){i()})},function(){let r=document.querySelector(`[id="${t}-text"]`);r!==null&&r.addEventListener("click",function(){i()})})},gi=function(t,i,r){t.split(",").forEach(function(a){yi(a,i,r)}),Ye(t,"clickable")},pi=function(t){Gt.forEach(function(i){i(t)})},Ti={getConfig:()=>st().gantt,clear:ze,setDateFormat:Xe,getDateFormat:$e,enableInclusiveEndDates:qe,endDatesAreInclusive:Ue,enableTopAxis:Ze,topAxisEnabled:Qe,setAxisFormat:Ne,getAxisFormat:Re,setTickInterval:Be,getTickInterval:je,setTodayMarker:He,getTodayMarker:Ge,setAccTitle:fe,getAccTitle:he,setDiagramTitle:ye,getDiagramTitle:ge,setDisplayMode:Je,getDisplayMode:Ke,setAccDescription:me,getAccDescription:ke,addSection:ri,getSections:ai,getTasks:oi,addTask:hi,findTaskById:nt,addTaskOrg:mi,setIncludes:ti,getIncludes:ei,setExcludes:ii,getExcludes:si,setClickEvent:gi,setLink:ki,getLinks:ni,bindFunctions:pi,parseDuration:Ae,isInvalidDate:Ee,setWeekday:ci,getWeekday:li};function We(t,i,r){let a=!0;for(;a;)a=!1,r.forEach(function(s){let f="^\\s*"+s+"\\s*$",h=new RegExp(f);t[0].match(h)&&(i[s]=!0,t.shift(1),a=!0)})}var bi=function(){dt.debug("Something is calling, setConf, remove the call")},xe={monday:ee,tuesday:ie,wednesday:se,thursday:ne,friday:re,saturday:ae,sunday:te},vi=(t,i)=>{let r=[...t].map(()=>-1/0),a=[...t].sort((f,h)=>f.startTime-h.startTime||f.order-h.order),s=0;for(let f of a)for(let h=0;h=r[h]){r[h]=f.endTime,f.order=h+i,h>s&&(s=h);break}return s},K,xi=function(t,i,r,a){let s=st().gantt,f=st().securityLevel,h;f==="sandbox"&&(h=ut("#i"+i));let _=f==="sandbox"?ut(h.nodes()[0].contentDocument.body):ut("body"),x=f==="sandbox"?h.nodes()[0].contentDocument:document,A=x.getElementById(i);K=A.parentElement.offsetWidth,K===void 0&&(K=1200),s.useWidth!==void 0&&(K=s.useWidth);let C=a.db.getTasks(),F=[];for(let g of C)F.push(g.type);F=j(F);let H={},P=2*s.topPadding;if(a.db.getDisplayMode()==="compact"||s.displayMode==="compact"){let g={};for(let b of C)g[b.section]===void 0?g[b.section]=[b]:g[b.section].push(b);let v=0;for(let b of Object.keys(g)){let y=vi(g[b],v)+1;v+=y,P+=y*(s.barHeight+s.barGap),H[b]=y}}else{P+=C.length*(s.barHeight+s.barGap);for(let g of F)H[g]=C.filter(v=>v.type===g).length}A.setAttribute("viewBox","0 0 "+K+" "+P);let k=_.select(`[id="${i}"]`),m=oe().domain([Zt(C,function(g){return g.startTime}),Ut(C,function(g){return g.endTime})]).rangeRound([0,K-s.leftPadding-s.rightPadding]);function M(g,v){let b=g.startTime,y=v.startTime,n=0;return b>y?n=1:bl.order))].map(l=>g.find(T=>T.order===l));k.append("g").selectAll("rect").data(p).enter().append("rect").attr("x",0).attr("y",function(l,T){return T=l.order,T*v+b-2}).attr("width",function(){return d-s.rightPadding/2}).attr("height",v).attr("class",function(l){for(let[T,I]of F.entries())if(l.type===I)return"section section"+T%s.numberSectionStyles;return"section section0"});let e=k.append("g").selectAll("rect").data(g).enter(),Y=a.db.getLinks();if(e.append("rect").attr("id",function(l){return l.id}).attr("rx",3).attr("ry",3).attr("x",function(l){return l.milestone?m(l.startTime)+y+.5*(m(l.endTime)-m(l.startTime))-.5*n:m(l.startTime)+y}).attr("y",function(l,T){return T=l.order,T*v+b}).attr("width",function(l){return l.milestone?n:m(l.renderEndTime||l.endTime)-m(l.startTime)}).attr("height",n).attr("transform-origin",function(l,T){return T=l.order,(m(l.startTime)+y+.5*(m(l.endTime)-m(l.startTime))).toString()+"px "+(T*v+b+.5*n).toString()+"px"}).attr("class",function(l){let T="task",I="";l.classes.length>0&&(I=l.classes.join(" "));let D=0;for(let[w,E]of F.entries())l.type===E&&(D=w%s.numberSectionStyles);let S="";return l.active?l.crit?S+=" activeCrit":S=" active":l.done?l.crit?S=" doneCrit":S=" done":l.crit&&(S+=" crit"),S.length===0&&(S=" task"),l.milestone&&(S=" milestone "+S),S+=D,S+=" "+I,T+S}),e.append("text").attr("id",function(l){return l.id+"-text"}).text(function(l){return l.task}).attr("font-size",s.fontSize).attr("x",function(l){let T=m(l.startTime),I=m(l.renderEndTime||l.endTime);l.milestone&&(T+=.5*(m(l.endTime)-m(l.startTime))-.5*n),l.milestone&&(I=T+n);let D=this.getBBox().width;return D>I-T?I+D+1.5*s.leftPadding>d?T+y-5:I+y+5:(I-T)/2+T+y}).attr("y",function(l,T){return T=l.order,T*v+s.barHeight/2+(s.fontSize/2-2)+b}).attr("text-height",n).attr("class",function(l){let T=m(l.startTime),I=m(l.endTime);l.milestone&&(I=T+n);let D=this.getBBox().width,S="";l.classes.length>0&&(S=l.classes.join(" "));let w=0;for(let[$,tt]of F.entries())l.type===tt&&(w=$%s.numberSectionStyles);let E="";return l.active&&(l.crit?E="activeCritText"+w:E="activeText"+w),l.done?l.crit?E=E+" doneCritText"+w:E=E+" doneText"+w:l.crit&&(E=E+" critText"+w),l.milestone&&(E+=" milestoneText"),D>I-T?I+D+1.5*s.leftPadding>d?S+" taskTextOutsideLeft taskTextOutside"+w+" "+E:S+" taskTextOutsideRight taskTextOutside"+w+" "+E+" width-"+D:S+" taskText taskText"+w+" "+E+" width-"+D}),st().securityLevel==="sandbox"){let l;l=ut("#i"+i);let T=l.nodes()[0].contentDocument;e.filter(function(I){return Y[I.id]!==void 0}).each(function(I){var D=T.querySelector("#"+I.id),S=T.querySelector("#"+I.id+"-text");let w=D.parentNode;var E=T.createElement("a");E.setAttribute("xlink:href",Y[I.id]),E.setAttribute("target","_top"),w.appendChild(E),E.appendChild(D),E.appendChild(S)})}}function R(g,v,b,y,n,u,d,o){if(d.length===0&&o.length===0)return;let p,e;for(let{startTime:D,endTime:S}of u)(p===void 0||De)&&(e=S);if(!p||!e)return;if((0,z.default)(e).diff((0,z.default)(p),"year")>5){dt.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}let Y=a.db.getDateFormat(),c=[],l=null,T=(0,z.default)(p);for(;T.valueOf()<=e;)a.db.isInvalidDate(T,Y,d,o)?l?l.end=T:l={start:T,end:T}:l&&(c.push(l),l=null),T=T.add(1,"d");k.append("g").selectAll("rect").data(c).enter().append("rect").attr("id",function(D){return"exclude-"+D.start.format("YYYY-MM-DD")}).attr("x",function(D){return m(D.start)+b}).attr("y",s.gridLineStartPadding).attr("width",function(D){let S=D.end.add(1,"day");return m(S)-m(D.start)}).attr("height",n-v-s.gridLineStartPadding).attr("transform-origin",function(D,S){return(m(D.start)+b+.5*(m(D.end)-m(D.start))).toString()+"px "+(S*g+.5*n).toString()+"px"}).attr("class","exclude-range")}function U(g,v,b,y){let n=Jt(m).tickSize(-y+v+s.gridLineStartPadding).tickFormat(Et(a.db.getAxisFormat()||s.axisFormat||"%Y-%m-%d")),d=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(a.db.getTickInterval()||s.tickInterval);if(d!==null){let o=d[1],p=d[2],e=a.db.getWeekday()||s.weekday;switch(p){case"millisecond":n.ticks(xt.every(o));break;case"second":n.ticks(wt.every(o));break;case"minute":n.ticks(_t.every(o));break;case"hour":n.ticks(Dt.every(o));break;case"day":n.ticks(Ct.every(o));break;case"week":n.ticks(xe[e].every(o));break;case"month":n.ticks(St.every(o));break}}if(k.append("g").attr("class","grid").attr("transform","translate("+g+", "+(y-50)+")").call(n).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 o=Qt(m).tickSize(-y+v+s.gridLineStartPadding).tickFormat(Et(a.db.getAxisFormat()||s.axisFormat||"%Y-%m-%d"));if(d!==null){let p=d[1],e=d[2],Y=a.db.getWeekday()||s.weekday;switch(e){case"millisecond":o.ticks(xt.every(p));break;case"second":o.ticks(wt.every(p));break;case"minute":o.ticks(_t.every(p));break;case"hour":o.ticks(Dt.every(p));break;case"day":o.ticks(Ct.every(p));break;case"week":o.ticks(xe[Y].every(p));break;case"month":o.ticks(St.every(p));break}}k.append("g").attr("class","grid").attr("transform","translate("+g+", "+v+")").call(o).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function X(g,v){let b=0,y=Object.keys(H).map(n=>[n,H[n]]);k.append("g").selectAll("text").data(y).enter().append(function(n){let u=n[0].split(ce.lineBreakRegex),d=-(u.length-1)/2,o=x.createElementNS("http://www.w3.org/2000/svg","text");o.setAttribute("dy",d+"em");for(let[p,e]of u.entries()){let Y=x.createElementNS("http://www.w3.org/2000/svg","tspan");Y.setAttribute("alignment-baseline","central"),Y.setAttribute("x","10"),p>0&&Y.setAttribute("dy","1em"),Y.textContent=e,o.appendChild(Y)}return o}).attr("x",10).attr("y",function(n,u){if(u>0)for(let d=0;d` + .mermaid-main-font { + font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); + } + + .exclude-range { + fill: ${t.excludeBkgColor}; + } + + .section { + stroke: none; + opacity: 0.2; + } + + .section0 { + fill: ${t.sectionBkgColor}; + } + + .section2 { + fill: ${t.sectionBkgColor2}; + } + + .section1, + .section3 { + fill: ${t.altSectionBkgColor}; + opacity: 0.2; + } + + .sectionTitle0 { + fill: ${t.titleColor}; + } + + .sectionTitle1 { + fill: ${t.titleColor}; + } + + .sectionTitle2 { + fill: ${t.titleColor}; + } + + .sectionTitle3 { + fill: ${t.titleColor}; + } + + .sectionTitle { + text-anchor: start; + font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); + } + + + /* Grid and axis */ + + .grid .tick { + stroke: ${t.gridColor}; + opacity: 0.8; + shape-rendering: crispEdges; + } + + .grid .tick text { + font-family: ${t.fontFamily}; + fill: ${t.textColor}; + } + + .grid path { + stroke-width: 0; + } + + + /* Today line */ + + .today { + fill: none; + stroke: ${t.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: ${t.taskTextDarkColor}; + text-anchor: start; + font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); + } + + .taskTextOutsideLeft { + fill: ${t.taskTextDarkColor}; + text-anchor: end; + } + + + /* Special case clickable */ + + .task.clickable { + cursor: pointer; + } + + .taskText.clickable { + cursor: pointer; + fill: ${t.taskTextClickableColor} !important; + font-weight: bold; + } + + .taskTextOutsideLeft.clickable { + cursor: pointer; + fill: ${t.taskTextClickableColor} !important; + font-weight: bold; + } + + .taskTextOutsideRight.clickable { + cursor: pointer; + fill: ${t.taskTextClickableColor} !important; + font-weight: bold; + } + + + /* Specific task settings for the sections*/ + + .taskText0, + .taskText1, + .taskText2, + .taskText3 { + fill: ${t.taskTextColor}; + } + + .task0, + .task1, + .task2, + .task3 { + fill: ${t.taskBkgColor}; + stroke: ${t.taskBorderColor}; + } + + .taskTextOutside0, + .taskTextOutside2 + { + fill: ${t.taskTextOutsideColor}; + } + + .taskTextOutside1, + .taskTextOutside3 { + fill: ${t.taskTextOutsideColor}; + } + + + /* Active task */ + + .active0, + .active1, + .active2, + .active3 { + fill: ${t.activeTaskBkgColor}; + stroke: ${t.activeTaskBorderColor}; + } + + .activeText0, + .activeText1, + .activeText2, + .activeText3 { + fill: ${t.taskTextDarkColor} !important; + } + + + /* Completed task */ + + .done0, + .done1, + .done2, + .done3 { + stroke: ${t.doneTaskBorderColor}; + fill: ${t.doneTaskBkgColor}; + stroke-width: 2; + } + + .doneText0, + .doneText1, + .doneText2, + .doneText3 { + fill: ${t.taskTextDarkColor} !important; + } + + + /* Tasks on the critical line */ + + .crit0, + .crit1, + .crit2, + .crit3 { + stroke: ${t.critBorderColor}; + fill: ${t.critBkgColor}; + stroke-width: 2; + } + + .activeCrit0, + .activeCrit1, + .activeCrit2, + .activeCrit3 { + stroke: ${t.critBorderColor}; + fill: ${t.activeTaskBkgColor}; + stroke-width: 2; + } + + .doneCrit0, + .doneCrit1, + .doneCrit2, + .doneCrit3 { + stroke: ${t.critBorderColor}; + fill: ${t.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: ${t.taskTextDarkColor} !important; + } + + .activeCritText0, + .activeCritText1, + .activeCritText2, + .activeCritText3 { + fill: ${t.taskTextDarkColor} !important; + } + + .titleText { + text-anchor: middle; + font-size: 18px; + fill: ${t.titleColor||t.textColor}; + font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); + } +`,Di=_i,Ai={parser:Pe,db:Ti,renderer:wi,styles:Di};export{Ai as diagram}; diff --git a/chunk-GEICOQJ6.js b/chunk-GEICOQJ6.js new file mode 100644 index 0000000..e7dfea7 --- /dev/null +++ b/chunk-GEICOQJ6.js @@ -0,0 +1,207 @@ +import{Fa as k,Na as F,Ua as vt,eb as At,fb as Lt,gb as It,hb as Ot,ib as Nt,jb as Rt,kb as wt,mb as R}from"./chunk-2YKPSI5H.js";var gt=function(){var t=function(C,r,n,i){for(n=n||{},i=C.length;i--;n[C[i]]=r);return n},s=[1,2],a=[1,3],h=[1,4],f=[2,4],d=[1,9],y=[1,11],E=[1,15],u=[1,16],b=[1,17],T=[1,18],w=[1,30],j=[1,19],U=[1,20],z=[1,21],M=[1,22],H=[1,23],X=[1,25],K=[1,26],W=[1,27],J=[1,28],q=[1,29],Q=[1,32],Z=[1,33],tt=[1,34],et=[1,35],$=[1,31],c=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],st=[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],Dt=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],ht={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(r,n,i,o,p,e,B){var l=e.length-1;switch(p){case 3:return o.setRootDoc(e[l]),e[l];case 4:this.$=[];break;case 5:e[l]!="nl"&&(e[l-1].push(e[l]),this.$=e[l-1]);break;case 6:case 7:this.$=e[l];break;case 8:this.$="nl";break;case 11:this.$=e[l];break;case 12:let P=e[l-1];P.description=o.trimColon(e[l]),this.$=P;break;case 13:this.$={stmt:"relation",state1:e[l-2],state2:e[l]};break;case 14:let ft=o.trimColon(e[l]);this.$={stmt:"relation",state1:e[l-3],state2:e[l-1],description:ft};break;case 18:this.$={stmt:"state",id:e[l-3],type:"default",description:"",doc:e[l-1]};break;case 19:var v=e[l],O=e[l-2].trim();if(e[l].match(":")){var it=e[l].split(":");v=it[0],O=[O,it[1]]}this.$={stmt:"state",id:v,type:"default",description:O};break;case 20:this.$={stmt:"state",id:e[l-3],type:"default",description:e[l-5],doc:e[l-1]};break;case 21:this.$={stmt:"state",id:e[l],type:"fork"};break;case 22:this.$={stmt:"state",id:e[l],type:"join"};break;case 23:this.$={stmt:"state",id:e[l],type:"choice"};break;case 24:this.$={stmt:"state",id:o.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:e[l-1].trim(),note:{position:e[l-2].trim(),text:e[l].trim()}};break;case 28:this.$=e[l].trim(),o.setAccTitle(this.$);break;case 29:case 30:this.$=e[l].trim(),o.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:e[l-1].trim(),classes:e[l].trim()};break;case 33:this.$={stmt:"applyClass",id:e[l-1].trim(),styleClass:e[l].trim()};break;case 34:o.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:o.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:o.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:o.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:e[l].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break}},table:[{3:1,4:s,5:a,6:h},{1:[3]},{3:5,4:s,5:a,6:h},{3:6,4:s,5:a,6:h},t([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],f,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:E,16:u,18:b,21:T,23:w,24:j,25:U,26:z,27:M,28:H,31:24,32:X,34:K,36:W,37:J,41:q,44:Q,45:Z,46:tt,47:et,50:$},t(c,[2,5]),{9:36,10:12,11:13,12:14,15:E,16:u,18:b,21:T,23:w,24:j,25:U,26:z,27:M,28:H,31:24,32:X,34:K,36:W,37:J,41:q,44:Q,45:Z,46:tt,47:et,50:$},t(c,[2,7]),t(c,[2,8]),t(c,[2,9]),t(c,[2,10]),t(c,[2,11],{13:[1,37],14:[1,38]}),t(c,[2,15]),{17:[1,39]},t(c,[2,17],{19:[1,40]}),{22:[1,41]},t(c,[2,21]),t(c,[2,22]),t(c,[2,23]),t(c,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},t(c,[2,27]),{33:[1,46]},{35:[1,47]},t(c,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},t(st,[2,40],{51:[1,51]}),t(st,[2,41],{51:[1,52]}),t(c,[2,34]),t(c,[2,35]),t(c,[2,36]),t(c,[2,37]),t(c,[2,6]),t(c,[2,12]),{12:53,23:w,50:$},t(c,[2,16]),t(Dt,f,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},t(c,[2,28]),t(c,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},t(c,[2,13],{13:[1,63]}),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:E,16:u,18:b,20:[1,64],21:T,23:w,24:j,25:U,26:z,27:M,28:H,31:24,32:X,34:K,36:W,37:J,41:q,44:Q,45:Z,46:tt,47:et,50:$},t(c,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},t(c,[2,31]),t(c,[2,32]),t(c,[2,33]),t(st,[2,42]),t(st,[2,43]),t(c,[2,14]),t(c,[2,18]),t(Dt,f,{7:68}),t(c,[2,25]),t(c,[2,26]),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:E,16:u,18:b,20:[1,69],21:T,23:w,24:j,25:U,26:z,27:M,28:H,31:24,32:X,34:K,36:W,37:J,41:q,44:Q,45:Z,46:tt,47:et,50:$},t(c,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(r,n){if(n.recoverable)this.trace(r);else{var i=new Error(r);throw i.hash=n,i}},parse:function(r){var n=this,i=[0],o=[],p=[null],e=[],B=this.table,l="",v=0,O=0,it=2,P=1,ft=e.slice.call(arguments,1),S=Object.create(this.lexer),A={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(A.yy[dt]=this.yy[dt]);S.setInput(r,A.yy),A.yy.lexer=S,A.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var yt=S.yylloc;e.push(yt);var Wt=S.options&&S.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Jt(){var D;return D=o.pop()||S.lex()||P,typeof D!="number"&&(D instanceof Array&&(o=D,D=o.pop()),D=n.symbols_[D]||D),D}for(var _,L,m,pt,N={},rt,x,Ct,nt;;){if(L=i[i.length-1],this.defaultActions[L]?m=this.defaultActions[L]:((_===null||typeof _>"u")&&(_=Jt()),m=B[L]&&B[L][_]),typeof m>"u"||!m.length||!m[0]){var St="";nt=[];for(rt in B[L])this.terminals_[rt]&&rt>it&&nt.push("'"+this.terminals_[rt]+"'");S.showPosition?St="Parse error on line "+(v+1)+`: +`+S.showPosition()+` +Expecting `+nt.join(", ")+", got '"+(this.terminals_[_]||_)+"'":St="Parse error on line "+(v+1)+": Unexpected "+(_==P?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(St,{text:S.match,token:this.terminals_[_]||_,line:S.yylineno,loc:yt,expected:nt})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+_);switch(m[0]){case 1:i.push(_),p.push(S.yytext),e.push(S.yylloc),i.push(m[1]),_=null,O=S.yyleng,l=S.yytext,v=S.yylineno,yt=S.yylloc;break;case 2:if(x=this.productions_[m[1]][1],N.$=p[p.length-x],N._$={first_line:e[e.length-(x||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(x||1)].first_column,last_column:e[e.length-1].last_column},Wt&&(N._$.range=[e[e.length-(x||1)].range[0],e[e.length-1].range[1]]),pt=this.performAction.apply(N,[l,O,v,A.yy,m[1],p,e].concat(ft)),typeof pt<"u")return pt;x&&(i=i.slice(0,-1*x*2),p=p.slice(0,-1*x),e=e.slice(0,-1*x)),i.push(this.productions_[m[1]][0]),p.push(N.$),e.push(N._$),Ct=B[i[i.length-2]][i[i.length-1]],i.push(Ct);break;case 3:return!0}}return!0}},Kt=function(){var C={EOF:1,parseError:function(n,i){if(this.yy.parser)this.yy.parser.parseError(n,i);else throw new Error(n)},setInput:function(r,n){return this.yy=n||this.yy||{},this._input=r,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 r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var n=r.length,i=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var o=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),i.length-1&&(this.yylineno-=i.length-1);var p=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:i?(i.length===o.length?this.yylloc.first_column:0)+o[o.length-i.length].length-i[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-n]),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(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+` +`+n+"^"},test_match:function(r,n){var i,o,p;if(this.options.backtrack_lexer&&(p={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&&(p.yylloc.range=this.yylloc.range.slice(0))),o=r[0].match(/(?:\r\n?|\n).*/g),o&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,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(r[0].length),this.matched+=r[0],i=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var e in p)this[e]=p[e];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,n,i,o;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),e=0;en[0].length)){if(n=i,o=e,this.options.backtrack_lexer){if(r=this.test_match(i,p[e]),r!==!1)return r;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(r=this.test_match(n,p[o]),r!==!1?r:!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 n=this.next();return n||this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){var n=this.conditionStack.length-1;return n>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(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},pushState:function(n){this.begin(n)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(n,i,o,p){switch(o){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(),i.yytext=i.yytext.slice(0,-8).trim(),24;case 34:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),25;case 35:return this.popState(),i.yytext=i.yytext.slice(0,-10).trim(),26;case 36:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),24;case 37:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),i.yytext=i.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(),i.yytext=i.yytext.substr(2).trim(),30;case 64:return this.popState(),i.yytext=i.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 i.yytext=i.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,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*<>)/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 C}();ht.lexer=Kt;function ut(){this.yy={}}return ut.prototype=ht,ht.Parser=ut,new ut}();gt.parser=gt;var De=gt,qt="LR",Ce="TB",_t="state",Ft="relation",Qt="classDef",Zt="applyClass",Et="default",te="divider",bt="[*]",Vt="start",Yt=bt,Gt="end",$t="color",Bt="fill",ee="bgFill",se=",";function jt(){return{}}var Ut=qt,ct=[],V=jt(),zt=()=>({relations:[],states:{},documents:{}}),ot={root:zt()},g=ot.root,Y=0,Pt=0,ie={LINE:0,DOTTED_LINE:1},re={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},at=t=>JSON.parse(JSON.stringify(t)),ne=t=>{k.info("Setting root doc",t),ct=t},ae=()=>ct,lt=(t,s,a)=>{if(s.stmt===Ft)lt(t,s.state1,!0),lt(t,s.state2,!1);else if(s.stmt===_t&&(s.id==="[*]"?(s.id=a?t.id+"_start":t.id+"_end",s.start=a):s.id=s.id.trim()),s.doc){let h=[],f=[],d;for(d=0;d0&&f.length>0){let y={stmt:_t,id:vt(),type:"divider",doc:at(f)};h.push(at(y)),s.doc=h}s.doc.forEach(y=>lt(s,y,!0))}},le=()=>(lt({id:"root"},{id:"root",doc:ct},!0),{id:"root",doc:ct}),ce=t=>{let s;t.doc?s=t.doc:s=t,k.info(s),Mt(!0),k.info("Extract",s),s.forEach(a=>{switch(a.stmt){case _t:I(a.id.trim(),a.type,a.doc,a.description,a.note,a.classes,a.styles,a.textStyles);break;case Ft:Ht(a.state1,a.state2,a.description);break;case Qt:Xt(a.id.trim(),a.classes);break;case Zt:xt(a.id.trim(),a.styleClass);break}})},I=function(t,s=Et,a=null,h=null,f=null,d=null,y=null,E=null){let u=t?.trim();g.states[u]===void 0?(k.info("Adding state ",u,h),g.states[u]={id:u,descriptions:[],type:s,doc:a,note:f,classes:[],styles:[],textStyles:[]}):(g.states[u].doc||(g.states[u].doc=a),g.states[u].type||(g.states[u].type=s)),h&&(k.info("Setting state description",u,h),typeof h=="string"&&kt(u,h.trim()),typeof h=="object"&&h.forEach(b=>kt(u,b.trim()))),f&&(g.states[u].note=f,g.states[u].note.text=F.sanitizeText(g.states[u].note.text,R())),d&&(k.info("Setting state classes",u,d),(typeof d=="string"?[d]:d).forEach(T=>xt(u,T.trim()))),y&&(k.info("Setting state styles",u,y),(typeof y=="string"?[y]:y).forEach(T=>_e(u,T.trim()))),E&&(k.info("Setting state styles",u,y),(typeof E=="string"?[E]:E).forEach(T=>me(u,T.trim())))},Mt=function(t){ot={root:zt()},g=ot.root,Y=0,V=jt(),t||At()},G=function(t){return g.states[t]},oe=function(){return g.states},he=function(){k.info("Documents = ",ot)},ue=function(){return g.relations};function mt(t=""){let s=t;return t===bt&&(Y++,s=`${Vt}${Y}`),s}function Tt(t="",s=Et){return t===bt?Vt:s}function fe(t=""){let s=t;return t===Yt&&(Y++,s=`${Gt}${Y}`),s}function de(t="",s=Et){return t===Yt?Gt:s}function ye(t,s,a){let h=mt(t.id.trim()),f=Tt(t.id.trim(),t.type),d=mt(s.id.trim()),y=Tt(s.id.trim(),s.type);I(h,f,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),I(d,y,s.doc,s.description,s.note,s.classes,s.styles,s.textStyles),g.relations.push({id1:h,id2:d,relationTitle:F.sanitizeText(a,R())})}var Ht=function(t,s,a){if(typeof t=="object")ye(t,s,a);else{let h=mt(t.trim()),f=Tt(t),d=fe(s.trim()),y=de(s);I(h,f),I(d,y),g.relations.push({id1:h,id2:d,title:F.sanitizeText(a,R())})}},kt=function(t,s){let a=g.states[t],h=s.startsWith(":")?s.replace(":","").trim():s;a.descriptions.push(F.sanitizeText(h,R()))},pe=function(t){return t.substring(0,1)===":"?t.substr(2).trim():t.trim()},Se=()=>(Pt++,"divider-id-"+Pt),Xt=function(t,s=""){V[t]===void 0&&(V[t]={id:t,styles:[],textStyles:[]});let a=V[t];s?.split(se).forEach(h=>{let f=h.replace(/([^;]*);/,"$1").trim();if(h.match($t)){let y=f.replace(Bt,ee).replace($t,Bt);a.textStyles.push(y)}a.styles.push(f)})},ge=function(){return V},xt=function(t,s){t.split(",").forEach(function(a){let h=G(a);if(h===void 0){let f=a.trim();I(f),h=G(f)}h.classes.push(s)})},_e=function(t,s){let a=G(t);a!==void 0&&a.textStyles.push(s)},me=function(t,s){let a=G(t);a!==void 0&&a.textStyles.push(s)},Te=()=>Ut,ke=t=>{Ut=t},Ee=t=>t&&t[0]===":"?t.substr(1).trim():t.trim(),ve={getConfig:()=>R().state,addState:I,clear:Mt,getState:G,getStates:oe,getRelations:ue,getClasses:ge,getDirection:Te,addRelation:Ht,getDividerId:Se,setDirection:ke,cleanupLabel:pe,lineType:ie,relationType:re,logDocuments:he,getRootDoc:ae,setRootDoc:ne,getRootDocV2:le,extract:ce,trimColon:Ee,getAccTitle:It,setAccTitle:Lt,getAccDescription:Nt,setAccDescription:Ot,addStyleClass:Xt,setCssClass:xt,addDescription:kt,setDiagramTitle:Rt,getDiagramTitle:wt},be=t=>` +defs #statediagram-barbEnd { + fill: ${t.transitionColor}; + stroke: ${t.transitionColor}; + } +g.stateGroup text { + fill: ${t.nodeBorder}; + stroke: none; + font-size: 10px; +} +g.stateGroup text { + fill: ${t.textColor}; + stroke: none; + font-size: 10px; + +} +g.stateGroup .state-title { + font-weight: bolder; + fill: ${t.stateLabelColor}; +} + +g.stateGroup rect { + fill: ${t.mainBkg}; + stroke: ${t.nodeBorder}; +} + +g.stateGroup line { + stroke: ${t.lineColor}; + stroke-width: 1; +} + +.transition { + stroke: ${t.transitionColor}; + stroke-width: 1; + fill: none; +} + +.stateGroup .composit { + fill: ${t.background}; + border-bottom: 1px +} + +.stateGroup .alt-composit { + fill: #e0e0e0; + border-bottom: 1px +} + +.state-note { + stroke: ${t.noteBorderColor}; + fill: ${t.noteBkgColor}; + + text { + fill: ${t.noteTextColor}; + stroke: none; + font-size: 10px; + } +} + +.stateLabel .box { + stroke: none; + stroke-width: 0; + fill: ${t.mainBkg}; + opacity: 0.5; +} + +.edgeLabel .label rect { + fill: ${t.labelBackgroundColor}; + opacity: 0.5; +} +.edgeLabel .label text { + fill: ${t.transitionLabelColor||t.tertiaryTextColor}; +} +.label div .edgeLabel { + color: ${t.transitionLabelColor||t.tertiaryTextColor}; +} + +.stateLabel text { + fill: ${t.stateLabelColor}; + font-size: 10px; + font-weight: bold; +} + +.node circle.state-start { + fill: ${t.specialStateColor}; + stroke: ${t.specialStateColor}; +} + +.node .fork-join { + fill: ${t.specialStateColor}; + stroke: ${t.specialStateColor}; +} + +.node circle.state-end { + fill: ${t.innerEndBackground}; + stroke: ${t.background}; + stroke-width: 1.5 +} +.end-state-inner { + fill: ${t.compositeBackground||t.background}; + // stroke: ${t.background}; + stroke-width: 1.5 +} + +.node rect { + fill: ${t.stateBkg||t.mainBkg}; + stroke: ${t.stateBorder||t.nodeBorder}; + stroke-width: 1px; +} +.node polygon { + fill: ${t.mainBkg}; + stroke: ${t.stateBorder||t.nodeBorder};; + stroke-width: 1px; +} +#statediagram-barbEnd { + fill: ${t.lineColor}; +} + +.statediagram-cluster rect { + fill: ${t.compositeTitleBackground}; + stroke: ${t.stateBorder||t.nodeBorder}; + stroke-width: 1px; +} + +.cluster-label, .nodeLabel { + color: ${t.stateLabelColor}; +} + +.statediagram-cluster rect.outer { + rx: 5px; + ry: 5px; +} +.statediagram-state .divider { + stroke: ${t.stateBorder||t.nodeBorder}; +} + +.statediagram-state .title-state { + rx: 5px; + ry: 5px; +} +.statediagram-cluster.statediagram-cluster .inner { + fill: ${t.compositeBackground||t.background}; +} +.statediagram-cluster.statediagram-cluster-alt .inner { + fill: ${t.altBackground?t.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: ${t.altBackground?t.altBackground:"#efefef"}; +} + +.note-edge { + stroke-dasharray: 5; +} + +.statediagram-note rect { + fill: ${t.noteBkgColor}; + stroke: ${t.noteBorderColor}; + stroke-width: 1px; + rx: 0; + ry: 0; +} +.statediagram-note rect { + fill: ${t.noteBkgColor}; + stroke: ${t.noteBorderColor}; + stroke-width: 1px; + rx: 0; + ry: 0; +} + +.statediagram-note text { + fill: ${t.noteTextColor}; +} + +.statediagram-note .nodeLabel { + color: ${t.noteTextColor}; +} +.statediagram .edgeLabel { + color: red; // ${t.noteTextColor}; +} + +#dependencyStart, #dependencyEnd { + fill: ${t.lineColor}; + stroke: ${t.lineColor}; + stroke-width: 1; +} + +.statediagramTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${t.textColor}; +} +`,Ae=be;export{De as a,Ce as b,_t as c,Ft as d,Et as e,te as f,ve as g,Ae as h}; diff --git a/chunk-GZ2YEU3T.js b/chunk-GZ2YEU3T.js new file mode 100644 index 0000000..ac8ec05 --- /dev/null +++ b/chunk-GZ2YEU3T.js @@ -0,0 +1,10 @@ +import{a as de,f as fe}from"./chunk-4Q3LOV4K.js";import{Fa as Zt,Ha as $t,Na as Bt,Qa as pe,Wa as ye,Xa as te,Ya as At,b as Ye,c as Ie,cb as ge,fb as be,gb as _e,h as Dt,hb as xe,ib as me,mb as Ot}from"./chunk-2YKPSI5H.js";import{h as ue}from"./chunk-TWZW5B45.js";var ke=ue(Ie(),1);var B0=ue(Ye(),1);var It=function(){var e=function(bt,_,x,m){for(x=x||{},m=bt.length;m--;x[bt[m]]=_);return x},t=[1,24],a=[1,25],o=[1,26],l=[1,27],i=[1,28],s=[1,63],r=[1,64],n=[1,65],h=[1,66],f=[1,67],d=[1,68],p=[1,69],E=[1,29],O=[1,30],R=[1,31],S=[1,32],N=[1,33],Y=[1,34],Q=[1,35],H=[1,36],q=[1,37],G=[1,38],K=[1,39],J=[1,40],Z=[1,41],$=[1,42],tt=[1,43],et=[1,44],it=[1,45],nt=[1,46],st=[1,47],at=[1,48],rt=[1,50],lt=[1,51],ot=[1,52],ct=[1,53],ht=[1,54],ut=[1,55],dt=[1,56],ft=[1,57],pt=[1,58],yt=[1,59],gt=[1,60],Ct=[14,42],Xt=[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],Tt=[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],v=[1,82],k=[1,83],A=[1,84],C=[1,85],w=[12,14,42],le=[12,14,33,42],Mt=[12,14,33,42,76,77,79,80],mt=[12,33],Wt=[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],Qt={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(_,x,m,g,T,u,Rt){var y=u.length-1;switch(T){case 3:g.setDirection("TB");break;case 4:g.setDirection("BT");break;case 5:g.setDirection("RL");break;case 6:g.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:g.setC4Type(u[y-3]);break;case 19:g.setTitle(u[y].substring(6)),this.$=u[y].substring(6);break;case 20:g.setAccDescription(u[y].substring(15)),this.$=u[y].substring(15);break;case 21:this.$=u[y].trim(),g.setTitle(this.$);break;case 22:case 23:this.$=u[y].trim(),g.setAccDescription(this.$);break;case 28:case 29:u[y].splice(2,0,"ENTERPRISE"),g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 30:g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 31:u[y].splice(2,0,"CONTAINER"),g.addContainerBoundary(...u[y]),this.$=u[y];break;case 32:g.addDeploymentNode("node",...u[y]),this.$=u[y];break;case 33:g.addDeploymentNode("nodeL",...u[y]),this.$=u[y];break;case 34:g.addDeploymentNode("nodeR",...u[y]),this.$=u[y];break;case 35:g.popBoundaryParseStack();break;case 39:g.addPersonOrSystem("person",...u[y]),this.$=u[y];break;case 40:g.addPersonOrSystem("external_person",...u[y]),this.$=u[y];break;case 41:g.addPersonOrSystem("system",...u[y]),this.$=u[y];break;case 42:g.addPersonOrSystem("system_db",...u[y]),this.$=u[y];break;case 43:g.addPersonOrSystem("system_queue",...u[y]),this.$=u[y];break;case 44:g.addPersonOrSystem("external_system",...u[y]),this.$=u[y];break;case 45:g.addPersonOrSystem("external_system_db",...u[y]),this.$=u[y];break;case 46:g.addPersonOrSystem("external_system_queue",...u[y]),this.$=u[y];break;case 47:g.addContainer("container",...u[y]),this.$=u[y];break;case 48:g.addContainer("container_db",...u[y]),this.$=u[y];break;case 49:g.addContainer("container_queue",...u[y]),this.$=u[y];break;case 50:g.addContainer("external_container",...u[y]),this.$=u[y];break;case 51:g.addContainer("external_container_db",...u[y]),this.$=u[y];break;case 52:g.addContainer("external_container_queue",...u[y]),this.$=u[y];break;case 53:g.addComponent("component",...u[y]),this.$=u[y];break;case 54:g.addComponent("component_db",...u[y]),this.$=u[y];break;case 55:g.addComponent("component_queue",...u[y]),this.$=u[y];break;case 56:g.addComponent("external_component",...u[y]),this.$=u[y];break;case 57:g.addComponent("external_component_db",...u[y]),this.$=u[y];break;case 58:g.addComponent("external_component_queue",...u[y]),this.$=u[y];break;case 60:g.addRel("rel",...u[y]),this.$=u[y];break;case 61:g.addRel("birel",...u[y]),this.$=u[y];break;case 62:g.addRel("rel_u",...u[y]),this.$=u[y];break;case 63:g.addRel("rel_d",...u[y]),this.$=u[y];break;case 64:g.addRel("rel_l",...u[y]),this.$=u[y];break;case 65:g.addRel("rel_r",...u[y]),this.$=u[y];break;case 66:g.addRel("rel_b",...u[y]),this.$=u[y];break;case 67:u[y].splice(0,1),g.addRel("rel",...u[y]),this.$=u[y];break;case 68:g.updateElStyle("update_el_style",...u[y]),this.$=u[y];break;case 69:g.updateRelStyle("update_rel_style",...u[y]),this.$=u[y];break;case 70:g.updateLayoutConfig("update_layout_config",...u[y]),this.$=u[y];break;case 71:this.$=[u[y]];break;case 72:u[y].unshift(u[y-1]),this.$=u[y];break;case 73:case 75:this.$=u[y].trim();break;case 74:let Et={};Et[u[y-1].trim()]=u[y].trim(),this.$=Et;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:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:N,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:70,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:N,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:71,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:N,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:72,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:N,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:73,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:N,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{14:[1,74]},e(Ct,[2,13],{43:23,29:49,30:61,32:62,20:75,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:O,46:R,47:S,48:N,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt}),e(Ct,[2,14]),e(Xt,[2,16],{12:[1,76]}),e(Ct,[2,36],{12:[1,77]}),e(Tt,[2,19]),e(Tt,[2,20]),{25:[1,78]},{27:[1,79]},e(Tt,[2,23]),{35:80,75:81,76:v,77:k,79:A,80:C},{35:86,75:81,76:v,77:k,79:A,80:C},{35:87,75:81,76:v,77:k,79:A,80:C},{35:88,75:81,76:v,77:k,79:A,80:C},{35:89,75:81,76:v,77:k,79:A,80:C},{35:90,75:81,76:v,77:k,79:A,80:C},{35:91,75:81,76:v,77:k,79:A,80:C},{35:92,75:81,76:v,77:k,79:A,80:C},{35:93,75:81,76:v,77:k,79:A,80:C},{35:94,75:81,76:v,77:k,79:A,80:C},{35:95,75:81,76:v,77:k,79:A,80:C},{35:96,75:81,76:v,77:k,79:A,80:C},{35:97,75:81,76:v,77:k,79:A,80:C},{35:98,75:81,76:v,77:k,79:A,80:C},{35:99,75:81,76:v,77:k,79:A,80:C},{35:100,75:81,76:v,77:k,79:A,80:C},{35:101,75:81,76:v,77:k,79:A,80:C},{35:102,75:81,76:v,77:k,79:A,80:C},{35:103,75:81,76:v,77:k,79:A,80:C},{35:104,75:81,76:v,77:k,79:A,80:C},e(w,[2,59]),{35:105,75:81,76:v,77:k,79:A,80:C},{35:106,75:81,76:v,77:k,79:A,80:C},{35:107,75:81,76:v,77:k,79:A,80:C},{35:108,75:81,76:v,77:k,79:A,80:C},{35:109,75:81,76:v,77:k,79:A,80:C},{35:110,75:81,76:v,77:k,79:A,80:C},{35:111,75:81,76:v,77:k,79:A,80:C},{35:112,75:81,76:v,77:k,79:A,80:C},{35:113,75:81,76:v,77:k,79:A,80:C},{35:114,75:81,76:v,77:k,79:A,80:C},{35:115,75:81,76:v,77:k,79:A,80:C},{20:116,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:N,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{12:[1,118],33:[1,117]},{35:119,75:81,76:v,77:k,79:A,80:C},{35:120,75:81,76:v,77:k,79:A,80:C},{35:121,75:81,76:v,77:k,79:A,80:C},{35:122,75:81,76:v,77:k,79:A,80:C},{35:123,75:81,76:v,77:k,79:A,80:C},{35:124,75:81,76:v,77:k,79:A,80:C},{35:125,75:81,76:v,77:k,79:A,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ct,[2,15]),e(Xt,[2,17],{21:22,19:130,22:t,23:a,24:o,26:l,28:i}),e(Ct,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:a,24:o,26:l,28:i,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:O,46:R,47:S,48:N,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt}),e(Tt,[2,21]),e(Tt,[2,22]),e(w,[2,39]),e(le,[2,71],{75:81,35:132,76:v,77:k,79:A,80:C}),e(Mt,[2,73]),{78:[1,133]},e(Mt,[2,75]),e(Mt,[2,76]),e(w,[2,40]),e(w,[2,41]),e(w,[2,42]),e(w,[2,43]),e(w,[2,44]),e(w,[2,45]),e(w,[2,46]),e(w,[2,47]),e(w,[2,48]),e(w,[2,49]),e(w,[2,50]),e(w,[2,51]),e(w,[2,52]),e(w,[2,53]),e(w,[2,54]),e(w,[2,55]),e(w,[2,56]),e(w,[2,57]),e(w,[2,58]),e(w,[2,60]),e(w,[2,61]),e(w,[2,62]),e(w,[2,63]),e(w,[2,64]),e(w,[2,65]),e(w,[2,66]),e(w,[2,67]),e(w,[2,68]),e(w,[2,69]),e(w,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(mt,[2,28]),e(mt,[2,29]),e(mt,[2,30]),e(mt,[2,31]),e(mt,[2,32]),e(mt,[2,33]),e(mt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Xt,[2,18]),e(Ct,[2,38]),e(le,[2,72]),e(Mt,[2,74]),e(w,[2,24]),e(w,[2,35]),e(Wt,[2,25]),e(Wt,[2,26],{12:[1,138]}),e(Wt,[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(_,x){if(x.recoverable)this.trace(_);else{var m=new Error(_);throw m.hash=x,m}},parse:function(_){var x=this,m=[0],g=[],T=[null],u=[],Rt=this.table,y="",Et=0,oe=0,Me=2,ce=1,Le=u.slice.call(arguments,1),D=Object.create(this.lexer),vt={yy:{}};for(var qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,qt)&&(vt.yy[qt]=this.yy[qt]);D.setInput(_,vt.yy),vt.yy.lexer=D,vt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Gt=D.yylloc;u.push(Gt);var Ne=D.options&&D.options.ranges;typeof vt.yy.parseError=="function"?this.parseError=vt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Be(){var X;return X=g.pop()||D.lex()||ce,typeof X!="number"&&(X instanceof Array&&(g=X,X=g.pop()),X=x.symbols_[X]||X),X}for(var M,kt,B,Kt,wt={},Lt,z,he,Nt;;){if(kt=m[m.length-1],this.defaultActions[kt]?B=this.defaultActions[kt]:((M===null||typeof M>"u")&&(M=Be()),B=Rt[kt]&&Rt[kt][M]),typeof B>"u"||!B.length||!B[0]){var Jt="";Nt=[];for(Lt in Rt[kt])this.terminals_[Lt]&&Lt>Me&&Nt.push("'"+this.terminals_[Lt]+"'");D.showPosition?Jt="Parse error on line "+(Et+1)+`: +`+D.showPosition()+` +Expecting `+Nt.join(", ")+", got '"+(this.terminals_[M]||M)+"'":Jt="Parse error on line "+(Et+1)+": Unexpected "+(M==ce?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(Jt,{text:D.match,token:this.terminals_[M]||M,line:D.yylineno,loc:Gt,expected:Nt})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+kt+", token: "+M);switch(B[0]){case 1:m.push(M),T.push(D.yytext),u.push(D.yylloc),m.push(B[1]),M=null,oe=D.yyleng,y=D.yytext,Et=D.yylineno,Gt=D.yylloc;break;case 2:if(z=this.productions_[B[1]][1],wt.$=T[T.length-z],wt._$={first_line:u[u.length-(z||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(z||1)].first_column,last_column:u[u.length-1].last_column},Ne&&(wt._$.range=[u[u.length-(z||1)].range[0],u[u.length-1].range[1]]),Kt=this.performAction.apply(wt,[y,oe,Et,vt.yy,B[1],T,u].concat(Le)),typeof Kt<"u")return Kt;z&&(m=m.slice(0,-1*z*2),T=T.slice(0,-1*z),u=u.slice(0,-1*z)),m.push(this.productions_[B[1]][0]),T.push(wt.$),u.push(wt._$),he=Rt[m[m.length-2]][m[m.length-1]],m.push(he);break;case 3:return!0}}return!0}},Pe=function(){var bt={EOF:1,parseError:function(x,m){if(this.yy.parser)this.yy.parser.parseError(x,m);else throw new Error(x)},setInput:function(_,x){return this.yy=x||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 x=_.match(/(?:\r\n?|\n).*/g);return x?(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 x=_.length,m=_.split(/(?:\r\n?|\n)/g);this._input=_+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var g=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 T=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===g.length?this.yylloc.first_column:0)+g[g.length-m.length].length-m[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-x]),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(),x=new Array(_.length+1).join("-");return _+this.upcomingInput()+` +`+x+"^"},test_match:function(_,x){var m,g,T;if(this.options.backtrack_lexer&&(T={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&&(T.yylloc.range=this.yylloc.range.slice(0))),g=_[0].match(/(?:\r\n?|\n).*/g),g&&(this.yylineno+=g.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-g[g.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],m=this.performAction.call(this,this.yy,this,x,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),m)return m;if(this._backtrack){for(var u in T)this[u]=T[u];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var _,x,m,g;this._more||(this.yytext="",this.match="");for(var T=this._currentRules(),u=0;ux[0].length)){if(x=m,g=u,this.options.backtrack_lexer){if(_=this.test_match(m,T[u]),_!==!1)return _;if(this._backtrack){x=!1;continue}else return!1}else if(!this.options.flex)break}return x?(_=this.test_match(x,T[g]),_!==!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 x=this.next();return x||this.lex()},begin:function(x){this.conditionStack.push(x)},popState:function(){var x=this.conditionStack.length-1;return x>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(x){return x=this.conditionStack.length-1-Math.abs(x||0),x>=0?this.conditionStack[x]:"INITIAL"},pushState:function(x){this.begin(x)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(x,m,g,T){switch(g){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 bt}();Qt.lexer=Pe;function Ht(){this.yy={}}return Ht.prototype=Qt,Qt.Parser=Ht,new Ht}();It.parser=It;var je=It,U=[],_t=[""],P="global",j="",V=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],Pt=[],se="",ae=!1,jt=4,Ut=2,Ae,Ue=function(){return Ae},Fe=function(e){Ae=$t(e,Ot())},Ve=function(e,t,a,o,l,i,s,r,n){if(e==null||t===void 0||t===null||a===void 0||a===null||o===void 0||o===null)return;let h={},f=Pt.find(d=>d.from===t&&d.to===a);if(f?h=f:Pt.push(h),h.type=e,h.from=t,h.to=a,h.label={text:o},l==null)h.techn={text:""};else if(typeof l=="object"){let[d,p]=Object.entries(l)[0];h[d]={text:p}}else h.techn={text:l};if(i==null)h.descr={text:""};else if(typeof i=="object"){let[d,p]=Object.entries(i)[0];h[d]={text:p}}else h.descr={text:i};if(typeof s=="object"){let[d,p]=Object.entries(s)[0];h[d]=p}else h.sprite=s;if(typeof r=="object"){let[d,p]=Object.entries(r)[0];h[d]=p}else h.tags=r;if(typeof n=="object"){let[d,p]=Object.entries(n)[0];h[d]=p}else h.link=n;h.wrap=xt()},ze=function(e,t,a,o,l,i,s){if(t===null||a===null)return;let r={},n=U.find(h=>h.alias===t);if(n&&t===n.alias?r=n:(r.alias=t,U.push(r)),a==null?r.label={text:""}:r.label={text:a},o==null)r.descr={text:""};else if(typeof o=="object"){let[h,f]=Object.entries(o)[0];r[h]={text:f}}else r.descr={text:o};if(typeof l=="object"){let[h,f]=Object.entries(l)[0];r[h]=f}else r.sprite=l;if(typeof i=="object"){let[h,f]=Object.entries(i)[0];r[h]=f}else r.tags=i;if(typeof s=="object"){let[h,f]=Object.entries(s)[0];r[h]=f}else r.link=s;r.typeC4Shape={text:e},r.parentBoundary=P,r.wrap=xt()},Xe=function(e,t,a,o,l,i,s,r){if(t===null||a===null)return;let n={},h=U.find(f=>f.alias===t);if(h&&t===h.alias?n=h:(n.alias=t,U.push(n)),a==null?n.label={text:""}:n.label={text:a},o==null)n.techn={text:""};else if(typeof o=="object"){let[f,d]=Object.entries(o)[0];n[f]={text:d}}else n.techn={text:o};if(l==null)n.descr={text:""};else if(typeof l=="object"){let[f,d]=Object.entries(l)[0];n[f]={text:d}}else n.descr={text:l};if(typeof i=="object"){let[f,d]=Object.entries(i)[0];n[f]=d}else n.sprite=i;if(typeof s=="object"){let[f,d]=Object.entries(s)[0];n[f]=d}else n.tags=s;if(typeof r=="object"){let[f,d]=Object.entries(r)[0];n[f]=d}else n.link=r;n.wrap=xt(),n.typeC4Shape={text:e},n.parentBoundary=P},We=function(e,t,a,o,l,i,s,r){if(t===null||a===null)return;let n={},h=U.find(f=>f.alias===t);if(h&&t===h.alias?n=h:(n.alias=t,U.push(n)),a==null?n.label={text:""}:n.label={text:a},o==null)n.techn={text:""};else if(typeof o=="object"){let[f,d]=Object.entries(o)[0];n[f]={text:d}}else n.techn={text:o};if(l==null)n.descr={text:""};else if(typeof l=="object"){let[f,d]=Object.entries(l)[0];n[f]={text:d}}else n.descr={text:l};if(typeof i=="object"){let[f,d]=Object.entries(i)[0];n[f]=d}else n.sprite=i;if(typeof s=="object"){let[f,d]=Object.entries(s)[0];n[f]=d}else n.tags=s;if(typeof r=="object"){let[f,d]=Object.entries(r)[0];n[f]=d}else n.link=r;n.wrap=xt(),n.typeC4Shape={text:e},n.parentBoundary=P},Qe=function(e,t,a,o,l){if(e===null||t===null)return;let i={},s=V.find(r=>r.alias===e);if(s&&e===s.alias?i=s:(i.alias=e,V.push(i)),t==null?i.label={text:""}:i.label={text:t},a==null)i.type={text:"system"};else if(typeof a=="object"){let[r,n]=Object.entries(a)[0];i[r]={text:n}}else i.type={text:a};if(typeof o=="object"){let[r,n]=Object.entries(o)[0];i[r]=n}else i.tags=o;if(typeof l=="object"){let[r,n]=Object.entries(l)[0];i[r]=n}else i.link=l;i.parentBoundary=P,i.wrap=xt(),j=P,P=e,_t.push(j)},He=function(e,t,a,o,l){if(e===null||t===null)return;let i={},s=V.find(r=>r.alias===e);if(s&&e===s.alias?i=s:(i.alias=e,V.push(i)),t==null?i.label={text:""}:i.label={text:t},a==null)i.type={text:"container"};else if(typeof a=="object"){let[r,n]=Object.entries(a)[0];i[r]={text:n}}else i.type={text:a};if(typeof o=="object"){let[r,n]=Object.entries(o)[0];i[r]=n}else i.tags=o;if(typeof l=="object"){let[r,n]=Object.entries(l)[0];i[r]=n}else i.link=l;i.parentBoundary=P,i.wrap=xt(),j=P,P=e,_t.push(j)},qe=function(e,t,a,o,l,i,s,r){if(t===null||a===null)return;let n={},h=V.find(f=>f.alias===t);if(h&&t===h.alias?n=h:(n.alias=t,V.push(n)),a==null?n.label={text:""}:n.label={text:a},o==null)n.type={text:"node"};else if(typeof o=="object"){let[f,d]=Object.entries(o)[0];n[f]={text:d}}else n.type={text:o};if(l==null)n.descr={text:""};else if(typeof l=="object"){let[f,d]=Object.entries(l)[0];n[f]={text:d}}else n.descr={text:l};if(typeof s=="object"){let[f,d]=Object.entries(s)[0];n[f]=d}else n.tags=s;if(typeof r=="object"){let[f,d]=Object.entries(r)[0];n[f]=d}else n.link=r;n.nodeType=e,n.parentBoundary=P,n.wrap=xt(),j=P,P=t,_t.push(j)},Ge=function(){P=j,_t.pop(),j=_t.pop(),_t.push(j)},Ke=function(e,t,a,o,l,i,s,r,n,h,f){let d=U.find(p=>p.alias===t);if(!(d===void 0&&(d=V.find(p=>p.alias===t),d===void 0))){if(a!=null)if(typeof a=="object"){let[p,E]=Object.entries(a)[0];d[p]=E}else d.bgColor=a;if(o!=null)if(typeof o=="object"){let[p,E]=Object.entries(o)[0];d[p]=E}else d.fontColor=o;if(l!=null)if(typeof l=="object"){let[p,E]=Object.entries(l)[0];d[p]=E}else d.borderColor=l;if(i!=null)if(typeof i=="object"){let[p,E]=Object.entries(i)[0];d[p]=E}else d.shadowing=i;if(s!=null)if(typeof s=="object"){let[p,E]=Object.entries(s)[0];d[p]=E}else d.shape=s;if(r!=null)if(typeof r=="object"){let[p,E]=Object.entries(r)[0];d[p]=E}else d.sprite=r;if(n!=null)if(typeof n=="object"){let[p,E]=Object.entries(n)[0];d[p]=E}else d.techn=n;if(h!=null)if(typeof h=="object"){let[p,E]=Object.entries(h)[0];d[p]=E}else d.legendText=h;if(f!=null)if(typeof f=="object"){let[p,E]=Object.entries(f)[0];d[p]=E}else d.legendSprite=f}},Je=function(e,t,a,o,l,i,s){let r=Pt.find(n=>n.from===t&&n.to===a);if(r!==void 0){if(o!=null)if(typeof o=="object"){let[n,h]=Object.entries(o)[0];r[n]=h}else r.textColor=o;if(l!=null)if(typeof l=="object"){let[n,h]=Object.entries(l)[0];r[n]=h}else r.lineColor=l;if(i!=null)if(typeof i=="object"){let[n,h]=Object.entries(i)[0];r[n]=parseInt(h)}else r.offsetX=parseInt(i);if(s!=null)if(typeof s=="object"){let[n,h]=Object.entries(s)[0];r[n]=parseInt(h)}else r.offsetY=parseInt(s)}},Ze=function(e,t,a){let o=jt,l=Ut;if(typeof t=="object"){let i=Object.values(t)[0];o=parseInt(i)}else o=parseInt(t);if(typeof a=="object"){let i=Object.values(a)[0];l=parseInt(i)}else l=parseInt(a);o>=1&&(jt=o),l>=1&&(Ut=l)},$e=function(){return jt},t0=function(){return Ut},e0=function(){return P},i0=function(){return j},Ce=function(e){return e==null?U:U.filter(t=>t.parentBoundary===e)},n0=function(e){return U.find(t=>t.alias===e)},s0=function(e){return Object.keys(Ce(e))},we=function(e){return e==null?V:V.filter(t=>t.parentBoundary===e)},a0=we,r0=function(){return Pt},l0=function(){return se},o0=function(e){ae=e},xt=function(){return ae},c0=function(){U=[],V=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],j="",P="global",_t=[""],Pt=[],_t=[""],se="",ae=!1,jt=4,Ut=2},h0={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},u0={FILLED:0,OPEN:1},d0={LEFTOF:0,RIGHTOF:1,OVER:2},f0=function(e){se=$t(e,Ot())},ee={addPersonOrSystem:ze,addPersonOrSystemBoundary:Qe,addContainer:Xe,addContainerBoundary:He,addComponent:We,addDeploymentNode:qe,popBoundaryParseStack:Ge,addRel:Ve,updateElStyle:Ke,updateRelStyle:Je,updateLayoutConfig:Ze,autoWrap:xt,setWrap:o0,getC4ShapeArray:Ce,getC4Shape:n0,getC4ShapeKeys:s0,getBoundaries:we,getBoundarys:a0,getCurrentBoundaryParse:e0,getParentBoundaryParse:i0,getRels:r0,getTitle:l0,getC4Type:Ue,getC4ShapeInRow:$e,getC4BoundaryInRow:t0,setAccTitle:be,getAccTitle:_e,getAccDescription:me,setAccDescription:xe,getConfig:()=>Ot().c4,clear:c0,LINETYPE:h0,ARROWTYPE:u0,PLACEMENT:d0,setTitle:f0,setC4Type:Fe},re=function(e,t){return de(e,t)},Oe=function(e,t,a,o,l,i){let s=e.append("image");s.attr("width",t),s.attr("height",a),s.attr("x",o),s.attr("y",l);let r=i.startsWith("data:image/png;base64")?i:(0,ke.sanitizeUrl)(i);s.attr("xlink:href",r)},p0=(e,t,a)=>{let o=e.append("g"),l=0;for(let i of t){let s=i.textColor?i.textColor:"#444444",r=i.lineColor?i.lineColor:"#444444",n=i.offsetX?parseInt(i.offsetX):0,h=i.offsetY?parseInt(i.offsetY):0,f="";if(l===0){let p=o.append("line");p.attr("x1",i.startPoint.x),p.attr("y1",i.startPoint.y),p.attr("x2",i.endPoint.x),p.attr("y2",i.endPoint.y),p.attr("stroke-width","1"),p.attr("stroke",r),p.style("fill","none"),i.type!=="rel_b"&&p.attr("marker-end","url("+f+"#arrowhead)"),(i.type==="birel"||i.type==="rel_b")&&p.attr("marker-start","url("+f+"#arrowend)"),l=-1}else{let p=o.append("path");p.attr("fill","none").attr("stroke-width","1").attr("stroke",r).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",i.startPoint.x).replaceAll("starty",i.startPoint.y).replaceAll("controlx",i.startPoint.x+(i.endPoint.x-i.startPoint.x)/2-(i.endPoint.x-i.startPoint.x)/4).replaceAll("controly",i.startPoint.y+(i.endPoint.y-i.startPoint.y)/2).replaceAll("stopx",i.endPoint.x).replaceAll("stopy",i.endPoint.y)),i.type!=="rel_b"&&p.attr("marker-end","url("+f+"#arrowhead)"),(i.type==="birel"||i.type==="rel_b")&&p.attr("marker-start","url("+f+"#arrowend)")}let d=a.messageFont();W(a)(i.label.text,o,Math.min(i.startPoint.x,i.endPoint.x)+Math.abs(i.endPoint.x-i.startPoint.x)/2+n,Math.min(i.startPoint.y,i.endPoint.y)+Math.abs(i.endPoint.y-i.startPoint.y)/2+h,i.label.width,i.label.height,{fill:s},d),i.techn&&i.techn.text!==""&&(d=a.messageFont(),W(a)("["+i.techn.text+"]",o,Math.min(i.startPoint.x,i.endPoint.x)+Math.abs(i.endPoint.x-i.startPoint.x)/2+n,Math.min(i.startPoint.y,i.endPoint.y)+Math.abs(i.endPoint.y-i.startPoint.y)/2+a.messageFontSize+5+h,Math.max(i.label.width,i.techn.width),i.techn.height,{fill:s,"font-style":"italic"},d))}},y0=function(e,t,a){let o=e.append("g"),l=t.bgColor?t.bgColor:"none",i=t.borderColor?t.borderColor:"#444444",s=t.fontColor?t.fontColor:"black",r={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};t.nodeType&&(r={"stroke-width":1});let n={x:t.x,y:t.y,fill:l,stroke:i,width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:r};re(o,n);let h=a.boundaryFont();h.fontWeight="bold",h.fontSize=h.fontSize+2,h.fontColor=s,W(a)(t.label.text,o,t.x,t.y+t.label.Y,t.width,t.height,{fill:"#444444"},h),t.type&&t.type.text!==""&&(h=a.boundaryFont(),h.fontColor=s,W(a)(t.type.text,o,t.x,t.y+t.type.Y,t.width,t.height,{fill:"#444444"},h)),t.descr&&t.descr.text!==""&&(h=a.boundaryFont(),h.fontSize=h.fontSize-2,h.fontColor=s,W(a)(t.descr.text,o,t.x,t.y+t.descr.Y,t.width,t.height,{fill:"#444444"},h))},g0=function(e,t,a){var o;let l=t.bgColor?t.bgColor:a[t.typeC4Shape.text+"_bg_color"],i=t.borderColor?t.borderColor:a[t.typeC4Shape.text+"_border_color"],s=t.fontColor?t.fontColor:"#FFFFFF",r="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":r="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":r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";break}let n=e.append("g");n.attr("class","person-man");let h=fe();switch(t.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":h.x=t.x,h.y=t.y,h.fill=l,h.width=t.width,h.height=t.height,h.stroke=i,h.rx=2.5,h.ry=2.5,h.attrs={"stroke-width":.5},re(n,h);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":n.append("path").attr("fill",l).attr("stroke-width","0.5").attr("stroke",i).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)),n.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",i).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":n.append("path").attr("fill",l).attr("stroke-width","0.5").attr("stroke",i).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)),n.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",i).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 f=C0(a,t.typeC4Shape.text);switch(n.append("text").attr("fill",s).attr("font-family",f.fontFamily).attr("font-size",f.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":Oe(n,48,48,t.x+t.width/2-24,t.y+t.image.Y,r);break}let d=a[t.typeC4Shape.text+"Font"]();return d.fontWeight="bold",d.fontSize=d.fontSize+2,d.fontColor=s,W(a)(t.label.text,n,t.x,t.y+t.label.Y,t.width,t.height,{fill:s},d),d=a[t.typeC4Shape.text+"Font"](),d.fontColor=s,t.techn&&((o=t.techn)==null?void 0:o.text)!==""?W(a)(t.techn.text,n,t.x,t.y+t.techn.Y,t.width,t.height,{fill:s,"font-style":"italic"},d):t.type&&t.type.text!==""&&W(a)(t.type.text,n,t.x,t.y+t.type.Y,t.width,t.height,{fill:s,"font-style":"italic"},d),t.descr&&t.descr.text!==""&&(d=a.personFont(),d.fontColor=s,W(a)(t.descr.text,n,t.x,t.y+t.descr.Y,t.width,t.height,{fill:s},d)),t.height},b0=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")},_0=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")},x0=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")},m0=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")},E0=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")},v0=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")},k0=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)},A0=function(e){let a=e.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);a.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"),a.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")},C0=(e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),W=function(){function e(l,i,s,r,n,h,f){let d=i.append("text").attr("x",s+n/2).attr("y",r+h/2+5).style("text-anchor","middle").text(l);o(d,f)}function t(l,i,s,r,n,h,f,d){let{fontSize:p,fontFamily:E,fontWeight:O}=d,R=l.split(Bt.lineBreakRegex);for(let S=0;S=this.data.widthLimit||o>=this.data.widthLimit||this.nextData.cnt>Te)&&(a=this.nextData.startx+t.margin+b.nextLinePaddingX,l=this.nextData.stopy+t.margin*2,this.nextData.stopx=o=a+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=i=l+t.height,this.nextData.cnt=1),t.x=a,t.y=l,this.updateVal(this.data,"startx",a,Math.min),this.updateVal(this.data,"starty",l,Math.min),this.updateVal(this.data,"stopx",o,Math.max),this.updateVal(this.data,"stopy",i,Math.max),this.updateVal(this.nextData,"startx",a,Math.min),this.updateVal(this.nextData,"starty",l,Math.min),this.updateVal(this.nextData,"stopx",o,Math.max),this.updateVal(this.nextData,"stopy",i,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},ne(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}},ne=function(e){pe(b,e),e.fontFamily&&(b.personFontFamily=b.systemFontFamily=b.messageFontFamily=e.fontFamily),e.fontSize&&(b.personFontSize=b.systemFontSize=b.messageFontSize=e.fontSize),e.fontWeight&&(b.personFontWeight=b.systemFontWeight=b.messageFontWeight=e.fontWeight)},St=(e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),Yt=e=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),w0=e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight});function I(e,t,a,o,l){if(!t[e].width)if(a)t[e].text=ye(t[e].text,l,o),t[e].textLines=t[e].text.split(Bt.lineBreakRegex).length,t[e].width=l,t[e].height=te(t[e].text,o);else{let i=t[e].text.split(Bt.lineBreakRegex);t[e].textLines=i.length;let s=0;t[e].height=0,t[e].width=0;for(let r of i)t[e].width=Math.max(At(r,o),t[e].width),s=te(r,o),t[e].height=t[e].height+s}}var Re=function(e,t,a){t.x=a.data.startx,t.y=a.data.starty,t.width=a.data.stopx-a.data.startx,t.height=a.data.stopy-a.data.starty,t.label.y=b.c4ShapeMargin-35;let o=t.wrap&&b.wrap,l=Yt(b);l.fontSize=l.fontSize+2,l.fontWeight="bold";let i=At(t.label.text,l);I("label",t,o,l,i),F.drawBoundary(e,t,b)},De=function(e,t,a,o){let l=0;for(let i of o){l=0;let s=a[i],r=St(b,s.typeC4Shape.text);switch(r.fontSize=r.fontSize-2,s.typeC4Shape.width=At("\xAB"+s.typeC4Shape.text+"\xBB",r),s.typeC4Shape.height=r.fontSize+2,s.typeC4Shape.Y=b.c4ShapePadding,l=s.typeC4Shape.Y+s.typeC4Shape.height-4,s.image={width:0,height:0,Y:0},s.typeC4Shape.text){case"person":case"external_person":s.image.width=48,s.image.height=48,s.image.Y=l,l=s.image.Y+s.image.height;break}s.sprite&&(s.image.width=48,s.image.height=48,s.image.Y=l,l=s.image.Y+s.image.height);let n=s.wrap&&b.wrap,h=b.width-b.c4ShapePadding*2,f=St(b,s.typeC4Shape.text);if(f.fontSize=f.fontSize+2,f.fontWeight="bold",I("label",s,n,f,h),s.label.Y=l+8,l=s.label.Y+s.label.height,s.type&&s.type.text!==""){s.type.text="["+s.type.text+"]";let E=St(b,s.typeC4Shape.text);I("type",s,n,E,h),s.type.Y=l+5,l=s.type.Y+s.type.height}else if(s.techn&&s.techn.text!==""){s.techn.text="["+s.techn.text+"]";let E=St(b,s.techn.text);I("techn",s,n,E,h),s.techn.Y=l+5,l=s.techn.Y+s.techn.height}let d=l,p=s.label.width;if(s.descr&&s.descr.text!==""){let E=St(b,s.typeC4Shape.text);I("descr",s,n,E,h),s.descr.Y=l+20,l=s.descr.Y+s.descr.height,p=Math.max(s.label.width,s.descr.width),d=l-s.descr.textLines*5}p=p+b.c4ShapePadding,s.width=Math.max(s.width||b.width,p,b.width),s.height=Math.max(s.height||b.height,d,b.height),s.margin=s.margin||b.c4ShapeMargin,e.insert(s),F.drawC4Shape(t,s,b)}e.bumpLastMargin(b.c4ShapeMargin)},L=class{constructor(t,a){this.x=t,this.y=a}},Ee=function(e,t){let a=e.x,o=e.y,l=t.x,i=t.y,s=a+e.width/2,r=o+e.height/2,n=Math.abs(a-l),h=Math.abs(o-i),f=h/n,d=e.height/e.width,p=null;return o==i&&al?p=new L(a,r):a==l&&oi&&(p=new L(s,o)),a>l&&o=f?p=new L(a,r+f*e.width/2):p=new L(s-n/h*e.height/2,o+e.height):a=f?p=new L(a+e.width,r+f*e.width/2):p=new L(s+n/h*e.height/2,o+e.height):ai?d>=f?p=new L(a+e.width,r-f*e.width/2):p=new L(s+e.height/2*n/h,o):a>l&&o>i&&(d>=f?p=new L(a,r-e.width/2*f):p=new L(s-e.height/2*n/h,o)),p},O0=function(e,t){let a={x:0,y:0};a.x=t.x+t.width/2,a.y=t.y+t.height/2;let o=Ee(e,a);a.x=e.x+e.width/2,a.y=e.y+e.height/2;let l=Ee(t,a);return{startPoint:o,endPoint:l}},T0=function(e,t,a,o){let l=0;for(let i of t){l=l+1;let s=i.wrap&&b.wrap,r=w0(b);o.db.getC4Type()==="C4Dynamic"&&(i.label.text=l+": "+i.label.text);let h=At(i.label.text,r);I("label",i,s,r,h),i.techn&&i.techn.text!==""&&(h=At(i.techn.text,r),I("techn",i,s,r,h)),i.descr&&i.descr.text!==""&&(h=At(i.descr.text,r),I("descr",i,s,r,h));let f=a(i.from),d=a(i.to),p=O0(f,d);i.startPoint=p.startPoint,i.endPoint=p.endPoint}F.drawRels(e,t,b)};function Se(e,t,a,o,l){let i=new zt(l);i.data.widthLimit=a.data.widthLimit/Math.min(ie,o.length);for(let[s,r]of o.entries()){let n=0;r.image={width:0,height:0,Y:0},r.sprite&&(r.image.width=48,r.image.height=48,r.image.Y=n,n=r.image.Y+r.image.height);let h=r.wrap&&b.wrap,f=Yt(b);if(f.fontSize=f.fontSize+2,f.fontWeight="bold",I("label",r,h,f,i.data.widthLimit),r.label.Y=n+8,n=r.label.Y+r.label.height,r.type&&r.type.text!==""){r.type.text="["+r.type.text+"]";let O=Yt(b);I("type",r,h,O,i.data.widthLimit),r.type.Y=n+5,n=r.type.Y+r.type.height}if(r.descr&&r.descr.text!==""){let O=Yt(b);O.fontSize=O.fontSize-2,I("descr",r,h,O,i.data.widthLimit),r.descr.Y=n+20,n=r.descr.Y+r.descr.height}if(s==0||s%ie===0){let O=a.data.startx+b.diagramMarginX,R=a.data.stopy+b.diagramMarginY+n;i.setData(O,O,R,R)}else{let O=i.data.stopx!==i.data.startx?i.data.stopx+b.diagramMarginX:i.data.startx,R=i.data.starty;i.setData(O,O,R,R)}i.name=r.alias;let d=l.db.getC4ShapeArray(r.alias),p=l.db.getC4ShapeKeys(r.alias);p.length>0&&De(i,e,d,p),t=r.alias;let E=l.db.getBoundarys(t);E.length>0&&Se(e,t,i,E,l),r.alias!=="global"&&Re(e,r,i),a.data.stopy=Math.max(i.data.stopy+b.c4ShapeMargin,a.data.stopy),a.data.stopx=Math.max(i.data.stopx+b.c4ShapeMargin,a.data.stopx),Ft=Math.max(Ft,a.data.stopx),Vt=Math.max(Vt,a.data.stopy)}}var R0=function(e,t,a,o){b=Ot().c4;let l=Ot().securityLevel,i;l==="sandbox"&&(i=Dt("#i"+t));let s=l==="sandbox"?Dt(i.nodes()[0].contentDocument.body):Dt("body"),r=o.db;o.db.setWrap(b.wrap),Te=r.getC4ShapeInRow(),ie=r.getC4BoundaryInRow(),Zt.debug(`C:${JSON.stringify(b,null,2)}`);let n=l==="sandbox"?s.select(`[id="${t}"]`):Dt(`[id="${t}"]`);F.insertComputerIcon(n),F.insertDatabaseIcon(n),F.insertClockIcon(n);let h=new zt(o);h.setData(b.diagramMarginX,b.diagramMarginX,b.diagramMarginY,b.diagramMarginY),h.data.widthLimit=screen.availWidth,Ft=b.diagramMarginX,Vt=b.diagramMarginY;let f=o.db.getTitle(),d=o.db.getBoundarys("");Se(n,"",h,d,o),F.insertArrowHead(n),F.insertArrowEnd(n),F.insertArrowCrossHead(n),F.insertArrowFilledHead(n),T0(n,o.db.getRels(),o.db.getC4Shape,o),h.data.stopx=Ft,h.data.stopy=Vt;let p=h.data,O=p.stopy-p.starty+2*b.diagramMarginY,S=p.stopx-p.startx+2*b.diagramMarginX;f&&n.append("text").text(f).attr("x",(p.stopx-p.startx)/2-4*b.diagramMarginX).attr("y",p.starty+b.diagramMarginY),ge(n,O,S,b.useMaxWidth);let N=f?60:0;n.attr("viewBox",p.startx-b.diagramMarginX+" -"+(b.diagramMarginY+N)+" "+S+" "+(O+N)),Zt.debug("models:",p)},ve={drawPersonOrSystemArray:De,drawBoundary:Re,setConf:ne,draw:R0},D0=e=>`.person { + stroke: ${e.personBorder}; + fill: ${e.personBkg}; + } +`,S0=D0,I0={parser:je,db:ee,renderer:ve,styles:S0,init:({c4:e,wrap:t})=>{ve.setConf(e),ee.setWrap(t)}};export{I0 as diagram}; diff --git a/chunk-HJ2TSOSY.js b/chunk-HJ2TSOSY.js deleted file mode 100644 index 570dc28..0000000 --- a/chunk-HJ2TSOSY.js +++ /dev/null @@ -1,7 +0,0 @@ -var Wl=Object.defineProperty,zl=Object.defineProperties;var Gl=Object.getOwnPropertyDescriptors;var Li=Object.getOwnPropertySymbols;var Zl=Object.prototype.hasOwnProperty,Ql=Object.prototype.propertyIsEnumerable;var Fi=(e,t,n)=>t in e?Wl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pe=(e,t)=>{for(var n in t||={})Zl.call(t,n)&&Fi(e,n,t[n]);if(Li)for(var n of Li(t))Ql.call(t,n)&&Fi(e,n,t[n]);return e},he=(e,t)=>zl(e,Gl(t));function ji(e,t){return Object.is(e,t)}var A=null,Yt=!1,Jt=1,ge=Symbol("SIGNAL");function w(e){let t=A;return A=e,t}function Vi(){return A}var wt={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Xt(e){if(Yt)throw new Error("");if(A===null)return;A.consumerOnSignalRead(e);let t=A.nextProducerIndex++;if(nn(A),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function _r(e){nn(e);for(let t=0;t0}function nn(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function qi(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Wi(e){return e.producerNode!==void 0}function zi(e){let t=Object.create(Kl);t.computation=e;let n=()=>{if(Hi(t),Xt(t),t.value===Kt)throw t.error;return t.value};return n[ge]=t,n}var br=Symbol("UNSET"),Mr=Symbol("COMPUTING"),Kt=Symbol("ERRORED"),Kl=he(pe({},wt),{value:br,dirty:!0,error:null,equal:ji,producerMustRecompute(e){return e.value===br||e.value===Mr},producerRecomputeValue(e){if(e.value===Mr)throw new Error("Detected cycle in computations.");let t=e.value;e.value=Mr;let n=en(e),r;try{r=e.computation()}catch(o){r=Kt,e.error=o}finally{xr(e,n)}if(t!==br&&t!==Kt&&r!==Kt&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function Xl(){throw new Error}var Gi=Xl;function Zi(){Gi()}function Qi(e){Gi=e}var eu=null;function Yi(e){let t=Object.create(Nr);t.value=e;let n=()=>(Xt(t),t.value);return n[ge]=t,n}function rn(e,t){Bi()||Zi(),e.equal(e.value,t)||(e.value=t,tu(e))}function Ji(e,t){Bi()||Zi(),rn(e,t(e.value))}var Nr=he(pe({},wt),{equal:ji,value:void 0});function tu(e){e.version++,Yl(),$i(e),eu?.()}function m(e){return typeof e=="function"}function Qe(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var on=Qe(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: -${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=n});function Dt(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var P=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(m(r))try{r()}catch(i){t=i instanceof on?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Ki(i)}catch(s){t=t??[],s instanceof on?t=[...t,...s.errors]:t.push(s)}}if(t)throw new on(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Ki(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Dt(n,t)}remove(t){let{_finalizers:n}=this;n&&Dt(n,t),t instanceof e&&t._removeParent(this)}};P.EMPTY=(()=>{let e=new P;return e.closed=!0,e})();var Sr=P.EMPTY;function sn(e){return e instanceof P||e&&"closed"in e&&m(e.remove)&&m(e.add)&&m(e.unsubscribe)}function Ki(e){m(e)?e():e.unsubscribe()}var X={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ye={setTimeout(e,t,...n){let{delegate:r}=Ye;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Ye;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function an(e){Ye.setTimeout(()=>{let{onUnhandledError:t}=X;if(t)t(e);else throw e})}function Et(){}var Xi=Or("C",void 0,void 0);function es(e){return Or("E",void 0,e)}function ts(e){return Or("N",e,void 0)}function Or(e,t,n){return{kind:e,value:t,error:n}}var Pe=null;function Je(e){if(X.useDeprecatedSynchronousErrorHandling){let t=!Pe;if(t&&(Pe={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Pe;if(Pe=null,n)throw r}}else e()}function ns(e){X.useDeprecatedSynchronousErrorHandling&&Pe&&(Pe.errorThrown=!0,Pe.error=e)}var ke=class extends P{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,sn(t)&&t.add(this)):this.destination=ou}static create(t,n,r){return new Ke(t,n,r)}next(t){this.isStopped?Rr(ts(t),this):this._next(t)}error(t){this.isStopped?Rr(es(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Rr(Xi,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},nu=Function.prototype.bind;function Ar(e,t){return nu.call(e,t)}var Pr=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){cn(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){cn(r)}else cn(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){cn(n)}}},Ke=class extends ke{constructor(t,n,r){super();let o;if(m(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&X.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Ar(t.next,i),error:t.error&&Ar(t.error,i),complete:t.complete&&Ar(t.complete,i)}):o=t}this.destination=new Pr(o)}};function cn(e){X.useDeprecatedSynchronousErrorHandling?ns(e):an(e)}function ru(e){throw e}function Rr(e,t){let{onStoppedNotification:n}=X;n&&Ye.setTimeout(()=>n(e,t))}var ou={closed:!0,next:Et,error:ru,complete:Et};var Xe=typeof Symbol=="function"&&Symbol.observable||"@@observable";function U(e){return e}function iu(...e){return kr(e)}function kr(e){return e.length===0?U:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var x=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=au(n)?n:new Ke(n,r,o);return Je(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=rs(r),new r((o,i)=>{let s=new Ke({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Xe](){return this}pipe(...n){return kr(n)(this)}toPromise(n){return n=rs(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function rs(e){var t;return(t=e??X.Promise)!==null&&t!==void 0?t:Promise}function su(e){return e&&m(e.next)&&m(e.error)&&m(e.complete)}function au(e){return e&&e instanceof ke||su(e)&&sn(e)}function Lr(e){return m(e?.lift)}function E(e){return t=>{if(Lr(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function C(e,t,n,r,o){return new Fr(e,t,n,r,o)}var Fr=class extends ke{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function jr(){return E((e,t)=>{let n=null;e._refCount++;let r=C(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var Vr=class extends x{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Lr(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new P;let n=this.getSubject();t.add(this.source.subscribe(C(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=P.EMPTY)}return t}refCount(){return jr()(this)}};var os=Qe(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var we=(()=>{class e extends x{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new ln(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new os}next(n){Je(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Je(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Je(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?Sr:(this.currentObservers=null,i.push(n),new P(()=>{this.currentObservers=null,Dt(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new x;return n.source=this,n}}return e.create=(t,n)=>new ln(t,n),e})(),ln=class extends we{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Sr}};var Ct=class extends we{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var bt=new x(e=>e.complete());function is(e){return e&&m(e.schedule)}function ss(e){return e[e.length-1]}function as(e){return m(ss(e))?e.pop():void 0}function De(e){return is(ss(e))?e.pop():void 0}function ls(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function cs(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Le(e){return this instanceof Le?(this.v=e,this):new Le(e)}function us(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(h){return Promise.resolve(h).then(f,d)}}function a(f,h){r[f]&&(o[f]=function(y){return new Promise(function(O,N){i.push([f,y,O,N])>1||c(f,y)})},h&&(o[f]=h(o[f])))}function c(f,h){try{l(r[f](h))}catch(y){p(i[0][3],y)}}function l(f){f.value instanceof Le?Promise.resolve(f.value.v).then(u,d):p(i[0][2],f)}function u(f){c("next",f)}function d(f){c("throw",f)}function p(f,h){f(h),i.shift(),i.length&&c(i[0][0],i[0][1])}}function ds(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof cs=="function"?cs(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}}var un=e=>e&&typeof e.length=="number"&&typeof e!="function";function dn(e){return m(e?.then)}function fn(e){return m(e[Xe])}function pn(e){return Symbol.asyncIterator&&m(e?.[Symbol.asyncIterator])}function hn(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function cu(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var gn=cu();function mn(e){return m(e?.[gn])}function yn(e){return us(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Le(n.read());if(o)return yield Le(void 0);yield yield Le(r)}}finally{n.releaseLock()}})}function vn(e){return m(e?.getReader)}function k(e){if(e instanceof x)return e;if(e!=null){if(fn(e))return lu(e);if(un(e))return uu(e);if(dn(e))return du(e);if(pn(e))return fs(e);if(mn(e))return fu(e);if(vn(e))return pu(e)}throw hn(e)}function lu(e){return new x(t=>{let n=e[Xe]();if(m(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function uu(e){return new x(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,an)})}function fu(e){return new x(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function fs(e){return new x(t=>{hu(e,t).catch(n=>t.error(n))})}function pu(e){return fs(yn(e))}function hu(e,t){var n,r,o,i;return ls(this,void 0,void 0,function*(){try{for(n=ds(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function H(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function In(e,t=0){return E((n,r)=>{n.subscribe(C(r,o=>H(r,e,()=>r.next(o),t),()=>H(r,e,()=>r.complete(),t),o=>H(r,e,()=>r.error(o),t)))})}function wn(e,t=0){return E((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function ps(e,t){return k(e).pipe(wn(t),In(t))}function hs(e,t){return k(e).pipe(wn(t),In(t))}function gs(e,t){return new x(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function ms(e,t){return new x(n=>{let r;return H(n,t,()=>{r=e[gn](),H(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>m(r?.return)&&r.return()})}function Dn(e,t){if(!e)throw new Error("Iterable cannot be null");return new x(n=>{H(n,t,()=>{let r=e[Symbol.asyncIterator]();H(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function ys(e,t){return Dn(yn(e),t)}function vs(e,t){if(e!=null){if(fn(e))return ps(e,t);if(un(e))return gs(e,t);if(dn(e))return hs(e,t);if(pn(e))return Dn(e,t);if(mn(e))return ms(e,t);if(vn(e))return ys(e,t)}throw hn(e)}function Ee(e,t){return t?vs(e,t):k(e)}function gu(...e){let t=De(e);return Ee(e,t)}function mu(e,t){let n=m(e)?e:()=>e,r=o=>o.error(n());return new x(t?o=>t.schedule(r,0,o):r)}function yu(e){return!!e&&(e instanceof x||m(e.lift)&&m(e.subscribe))}var Fe=Qe(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function me(e,t){return E((n,r)=>{let o=0;n.subscribe(C(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:vu}=Array;function Iu(e,t){return vu(t)?e(...t):e(t)}function Is(e){return me(t=>Iu(e,t))}var{isArray:wu}=Array,{getPrototypeOf:Du,prototype:Eu,keys:Cu}=Object;function ws(e){if(e.length===1){let t=e[0];if(wu(t))return{args:t,keys:null};if(bu(t)){let n=Cu(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function bu(e){return e&&typeof e=="object"&&Du(e)===Eu}function Ds(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Mu(...e){let t=De(e),n=as(e),{args:r,keys:o}=ws(e);if(r.length===0)return Ee([],t);let i=new x(xu(r,t,o?s=>Ds(o,s):U));return n?i.pipe(Is(n)):i}function xu(e,t,n=U){return r=>{Es(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c{let l=Ee(e[c],t),u=!1;l.subscribe(C(r,d=>{i[c]=d,u||(u=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Es(e,t,n){e?H(n,e,t):t()}function Cs(e,t,n,r,o,i,s,a){let c=[],l=0,u=0,d=!1,p=()=>{d&&!c.length&&!l&&t.complete()},f=y=>l{i&&t.next(y),l++;let O=!1;k(n(y,u++)).subscribe(C(t,N=>{o?.(N),i?f(N):t.next(N)},()=>{O=!0},void 0,()=>{if(O)try{for(l--;c.length&&lh(N)):h(N)}p()}catch(N){t.error(N)}}))};return e.subscribe(C(t,f,()=>{d=!0,p()})),()=>{a?.()}}function je(e,t,n=1/0){return m(t)?je((r,o)=>me((i,s)=>t(r,i,o,s))(k(e(r,o))),n):(typeof t=="number"&&(n=t),E((r,o)=>Cs(r,o,e,n)))}function Hr(e=1/0){return je(U,e)}function bs(){return Hr(1)}function En(...e){return bs()(Ee(e,De(e)))}function _u(e){return new x(t=>{k(e()).subscribe(t)})}function Mt(e,t){return E((n,r)=>{let o=0;n.subscribe(C(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Ms(e){return E((t,n)=>{let r=null,o=!1,i;r=t.subscribe(C(n,void 0,void 0,s=>{i=k(e(s,Ms(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function xs(e,t,n,r,o){return(i,s)=>{let a=n,c=t,l=0;i.subscribe(C(s,u=>{let d=l++;c=a?e(c,u,d):(a=!0,u),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function Tu(e,t){return m(t)?je(e,t,1):je(e,1)}function xt(e){return E((t,n)=>{let r=!1;t.subscribe(C(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function $r(e){return e<=0?()=>bt:E((t,n)=>{let r=0;t.subscribe(C(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Nu(e){return me(()=>e)}function Cn(e=Su){return E((t,n)=>{let r=!1;t.subscribe(C(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function Su(){return new Fe}function Ou(e){return E((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function _s(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Mt((o,i)=>e(o,i,r)):U,$r(1),n?xt(t):Cn(()=>new Fe))}function Br(e){return e<=0?()=>bt:E((t,n)=>{let r=[];t.subscribe(C(n,o=>{r.push(o),e{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Au(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Mt((o,i)=>e(o,i,r)):U,Br(1),n?xt(t):Cn(()=>new Fe))}function Ru(e,t){return E(xs(e,t,arguments.length>=2,!0))}function Pu(...e){let t=De(e);return E((n,r)=>{(t?En(e,n,t):En(e,n)).subscribe(r)})}function ku(e,t){return E((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(C(r,c=>{o?.unsubscribe();let l=0,u=i++;k(e(c,u)).subscribe(o=C(r,d=>r.next(t?t(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Lu(e){return E((t,n)=>{k(e).subscribe(C(n,()=>n.complete(),Et)),!n.closed&&t.subscribe(n)})}function Fu(e,t,n){let r=m(e)||t||n?{next:e,error:t,complete:n}:e;return r?E((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(C(i,c=>{var l;(l=r.next)===null||l===void 0||l.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var l;a=!1,(l=r.error)===null||l===void 0||l.call(r,c),i.error(c)},()=>{var c,l;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(l=r.finalize)===null||l===void 0||l.call(r)}))}):U}var ga="https://g.co/ng/security#xss",b=class extends Error{constructor(t,n){super(ju(t,n)),this.code=t}};function ju(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}var ma=Symbol("InputSignalNode#UNSET"),Vu=he(pe({},Nr),{transformFn:void 0,applyValueToInputSignal(e,t){rn(e,t)}});function ya(e,t){let n=Object.create(Vu);n.value=e,n.transformFn=t?.transform;function r(){if(Xt(n),n.value===ma)throw new b(-950,!1);return n.value}return r[ge]=n,r}function $t(e){return{toString:e}.toString()}var bn="__parameters__";function Hu(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function va(e,t,n){return $t(()=>{let r=Hu(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,l,u){let d=c.hasOwnProperty(bn)?c[bn]:Object.defineProperty(c,bn,{value:[]})[bn];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var kn=globalThis;function _(e){for(let t in e)if(e[t]===_)return t;throw Error("Could not find renamed property on target object.")}function W(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(W).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` -`);return n===-1?t:t.substring(0,n)}function to(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var $u=_({__forward_ref__:_});function Ia(e){return e.__forward_ref__=Ia,e.toString=function(){return W(this())},e}function Z(e){return wa(e)?e():e}function wa(e){return typeof e=="function"&&e.hasOwnProperty($u)&&e.__forward_ref__===Ia}function $(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ZD(e){return{providers:e.providers||[],imports:e.imports||[]}}function sr(e){return Ts(e,Da)||Ts(e,Ea)}function QD(e){return sr(e)!==null}function Ts(e,t){return e.hasOwnProperty(t)?e[t]:null}function Bu(e){let t=e&&(e[Da]||e[Ea]);return t||null}function Ns(e){return e&&(e.hasOwnProperty(Ss)||e.hasOwnProperty(Uu))?e[Ss]:null}var Da=_({\u0275prov:_}),Ss=_({\u0275inj:_}),Ea=_({ngInjectableDef:_}),Uu=_({ngInjectorDef:_}),S=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=$({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Ca(e){return e&&!!e.\u0275providers}var qu=_({\u0275cmp:_}),Wu=_({\u0275dir:_}),zu=_({\u0275pipe:_}),Gu=_({\u0275mod:_}),Ln=_({\u0275fac:_}),Tt=_({__NG_ELEMENT_ID__:_}),Os=_({__NG_ENV_ID__:_});function Bt(e){return typeof e=="string"?e:e==null?"":String(e)}function Zu(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Bt(e)}function Qu(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new b(-200,e)}function Ko(e,t){throw new b(-201,!1)}var I=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(I||{}),no;function ba(){return no}function G(e){let t=no;return no=e,t}function Ma(e,t,n){let r=sr(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&I.Optional)return null;if(t!==void 0)return t;Ko(e,"Injector")}var Yu={},Nt=Yu,ro="__NG_DI_FLAG__",Fn="ngTempTokenPath",Ju="ngTokenPath",Ku=/\n/gm,Xu="\u0275",As="__source",ot;function ed(){return ot}function Ce(e){let t=ot;return ot=e,t}function td(e,t=I.Default){if(ot===void 0)throw new b(-203,!1);return ot===null?Ma(e,void 0,t):ot.get(e,t&I.Optional?null:void 0,t)}function _e(e,t=I.Default){return(ba()||td)(Z(e),t)}function M(e,t=I.Default){return _e(e,ar(t))}function ar(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function oo(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):W(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(Ku,` - `)}`}var YD=xa(va("Optional"),8);var JD=xa(va("SkipSelf"),4);function st(e,t){let n=e.hasOwnProperty(Ln);return n?e[Ln]:null}function Xo(e,t){e.forEach(n=>Array.isArray(n)?Xo(n,t):t(n))}function _a(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function jn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function id(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function ei(e,t,n){let r=Ut(e,t);return r>=0?e[r|1]=n:(r=~r,id(e,r,t,n)),r}function Ur(e,t){let n=Ut(e,t);if(n>=0)return e[n|1]}function Ut(e,t){return sd(e,t,1)}function sd(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<t){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[u+1].toLowerCase(),r&2&&l!==d){if(ee(r))return!1;s=!0}}}}return ee(r)||s}function ee(e){return(e&1)===0}function fd(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!ee(s)&&(t+=Ps(i,o),o=""),r=s,i=i||!ee(r);n++}return o!==""&&(t+=Ps(i,o)),t}function yd(e){return e.map(md).join(",")}function vd(e){let t=[],n=[],r=1,o=2;for(;r{let t=Fa(e),n=he(pe({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Sa.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ot.Emulated,styles:e.styles||q,_:null,schemas:e.schemas||null,tView:null,id:""});ja(n);let r=e.dependencies;return n.directiveDefs=Ls(r,!1),n.pipeDefs=Ls(r,!0),n.id=Ed(n),n})}function Id(e){return Ne(e)||Pa(e)}function wd(e){return e!==null}function KD(e){return $t(()=>({type:e.type,bootstrap:e.bootstrap||q,declarations:e.declarations||q,imports:e.imports||q,exports:e.exports||q,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function ks(e,t){if(e==null)return St;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=Te.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==Te.None?[r,a]:r,t[i]=s):n[i]=r}return n}function XD(e){return $t(()=>{let t=Fa(e);return ja(t),t})}function Ne(e){return e[qu]||null}function Pa(e){return e[Wu]||null}function ka(e){return e[zu]||null}function Dd(e){let t=Ne(e)||Pa(e)||ka(e);return t!==null?t.standalone:!1}function La(e,t){let n=e[Gu]||null;if(!n&&t===!0)throw new Error(`Type ${W(e)} does not have '\u0275mod' property.`);return n}function Fa(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||St,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||q,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:ks(e.inputs,t),outputs:ks(e.outputs),debugInfo:null}}function ja(e){e.features?.forEach(t=>t(e))}function Ls(e,t){if(!e)return null;let n=t?ka:Id;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(wd)}function Ed(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function Cd(e){return{\u0275providers:e}}function bd(...e){return{\u0275providers:Va(!0,e),\u0275fromNgModule:!0}}function Va(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Xo(t,s=>{let a=s;so(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Ha(o,i),n}function Ha(e,t){for(let n=0;n{t(i,r)})}}function so(e,t,n,r){if(e=Z(e),!e)return!1;let o=null,i=Ns(e),s=!i&&Ne(e);if(!i&&!s){let c=e.ngModule;if(i=Ns(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)so(l,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;try{Xo(i.imports,u=>{so(u,t,n,r)&&(l||=[],l.push(u))})}finally{}l!==void 0&&Ha(l,t)}if(!a){let l=st(o)||(()=>new o);t({provide:o,useFactory:l,deps:q},o),t({provide:Na,useValue:o,multi:!0},o),t({provide:Vn,useValue:()=>_e(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=e;ri(c,u=>{t(u,l)})}}else return!1;return o!==e&&e.providers!==void 0}function ri(e,t){for(let n of e)Ca(n)&&(n=n.\u0275providers),Array.isArray(n)?ri(n,t):t(n)}var Md=_({provide:String,useValue:_});function $a(e){return e!==null&&typeof e=="object"&&Md in e}function xd(e){return!!(e&&e.useExisting)}function _d(e){return!!(e&&e.useFactory)}function ao(e){return typeof e=="function"}var Ba=new S(""),Sn={},Td={},qr;function oi(){return qr===void 0&&(qr=new Hn),qr}var Se=class{},At=class extends Se{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,lo(t,s=>this.processProvider(s)),this.records.set(Ta,et(void 0,this)),o.has("environment")&&this.records.set(Se,et(void 0,this));let i=this.records.get(Ba);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Na,q,I.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=w(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),w(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=Ce(this),r=G(void 0),o;try{return t()}finally{Ce(n),G(r)}}get(t,n=Nt,r=I.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Os))return t[Os](this);r=ar(r);let o,i=Ce(this),s=G(void 0);try{if(!(r&I.SkipSelf)){let c=this.records.get(t);if(c===void 0){let l=Pd(t)&&sr(t);l&&this.injectableDefInScope(l)?c=et(co(t),Sn):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&I.Self?oi():this.parent;return n=r&I.Optional&&n===Nt?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Fn]=a[Fn]||[]).unshift(W(t)),i)throw a;return rd(a,t,"R3InjectorError",this.source)}else throw a}finally{G(s),Ce(i)}}resolveInjectorInitializers(){let t=w(null),n=Ce(this),r=G(void 0),o;try{let i=this.get(Vn,q,I.Self);for(let s of i)s()}finally{Ce(n),G(r),w(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(W(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new b(205,!1)}processProvider(t){t=Z(t);let n=ao(t)?t:Z(t&&t.provide),r=Sd(t);if(!ao(t)&&t.multi===!0){let o=this.records.get(n);o||(o=et(void 0,Sn,!0),o.factory=()=>oo(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=w(null);try{return n.value===Sn&&(n.value=Td,n.value=n.factory()),typeof n.value=="object"&&n.value&&Rd(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{w(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Z(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function co(e){let t=sr(e),n=t!==null?t.factory:st(e);if(n!==null)return n;if(e instanceof S)throw new b(204,!1);if(e instanceof Function)return Nd(e);throw new b(204,!1)}function Nd(e){if(e.length>0)throw new b(204,!1);let n=Bu(e);return n!==null?()=>n.factory(e):()=>new e}function Sd(e){if($a(e))return et(void 0,e.useValue);{let t=Od(e);return et(t,Sn)}}function Od(e,t,n){let r;if(ao(e)){let o=Z(e);return st(o)||co(o)}else if($a(e))r=()=>Z(e.useValue);else if(_d(e))r=()=>e.useFactory(...oo(e.deps||[]));else if(xd(e))r=()=>_e(Z(e.useExisting));else{let o=Z(e&&(e.useClass||e.provide));if(Ad(e))r=()=>new o(...oo(e.deps));else return st(o)||co(o)}return r}function et(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Ad(e){return!!e.deps}function Rd(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Pd(e){return typeof e=="function"||typeof e=="object"&&e instanceof S}function lo(e,t){for(let n of e)Array.isArray(n)?lo(n,t):n&&Ca(n)?lo(n.\u0275providers,t):t(n)}function eE(e,t){e instanceof At&&e.assertNotDestroyed();let n,r=Ce(e),o=G(void 0);try{return t()}finally{Ce(r),G(o)}}function Ua(){return ba()!==void 0||ed()!=null}function kd(e){if(!Ua())throw new b(-203,!1)}function Ld(e){return typeof e=="function"}var ye=0,v=1,g=2,V=3,ne=4,ie=5,Rt=6,$n=7,F=8,at=9,le=10,L=11,Pt=12,Fs=13,vt=14,re=15,ct=16,tt=17,lt=18,cr=19,qa=20,Me=21,Wr=22,Q=23,oe=25,Wa=1;var He=7,Bn=8,Un=9,j=10,qn=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(qn||{});function xe(e){return Array.isArray(e)&&typeof e[Wa]=="object"}function ve(e){return Array.isArray(e)&&e[Wa]===!0}function za(e){return(e.flags&4)!==0}function lr(e){return e.componentOffset>-1}function ii(e){return(e.flags&1)===1}function qt(e){return!!e.template}function uo(e){return(e[g]&512)!==0}var fo=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Ga(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function Fd(){return Za}function Za(e){return e.type.prototype.ngOnChanges&&(e.setInput=Vd),jd}Fd.ngInherit=!0;function jd(){let e=Ya(this),t=e?.current;if(t){let n=e.previous;if(n===St)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Vd(e,t,n,r,o){let i=this.declaredInputs[r],s=Ya(e)||Hd(e,{previous:St,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new fo(l&&l.currentValue,n,c===St),Ga(e,t,o,n)}var Qa="__ngSimpleChanges__";function Ya(e){return e[Qa]||null}function Hd(e,t){return e[Qa]=t}var js=null;var ae=function(e,t,n){js?.(e,t,n)},$d="svg",Bd="math";function ue(e){for(;Array.isArray(e);)e=e[ye];return e}function Ja(e,t){return ue(t[e])}function Y(e,t){return ue(t[e.index])}function si(e,t){return e.data[t]}function Oe(e,t){let n=t[e];return xe(n)?n:n[ye]}function ai(e){return(e[g]&128)===128}function Ud(e){return ve(e[V])}function ut(e,t){return t==null?null:e[t]}function Ka(e){e[tt]=0}function Xa(e){e[g]&1024||(e[g]|=1024,ai(e)&&dr(e))}function qd(e,t){for(;e>0;)t=t[vt],e--;return t}function ur(e){return!!(e[g]&9216||e[Q]?.dirty)}function po(e){e[le].changeDetectionScheduler?.notify(8),e[g]&64&&(e[g]|=1024),ur(e)&&dr(e)}function dr(e){e[le].changeDetectionScheduler?.notify(0);let t=$e(e);for(;t!==null&&!(t[g]&8192||(t[g]|=8192,!ai(t)));)t=$e(t)}function ec(e,t){if((e[g]&256)===256)throw new b(911,!1);e[Me]===null&&(e[Me]=[]),e[Me].push(t)}function Wd(e,t){if(e[Me]===null)return;let n=e[Me].indexOf(t);n!==-1&&e[Me].splice(n,1)}function $e(e){let t=e[V];return ve(t)?t[V]:t}var D={lFrame:uc(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var tc=!1;function zd(){return D.lFrame.elementDepthCount}function Gd(){D.lFrame.elementDepthCount++}function Zd(){D.lFrame.elementDepthCount--}function nc(){return D.bindingsEnabled}function Qd(){return D.skipHydrationRootTNode!==null}function Yd(e){return D.skipHydrationRootTNode===e}function Jd(){D.skipHydrationRootTNode=null}function T(){return D.lFrame.lView}function se(){return D.lFrame.tView}function J(){let e=rc();for(;e!==null&&e.type===64;)e=e.parent;return e}function rc(){return D.lFrame.currentTNode}function Kd(){let e=D.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Wt(e,t){let n=D.lFrame;n.currentTNode=e,n.isParent=t}function oc(){return D.lFrame.isParent}function Xd(){D.lFrame.isParent=!1}function ic(){return tc}function Vs(e){tc=e}function ef(){let e=D.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function tf(e){return D.lFrame.bindingIndex=e}function zt(){return D.lFrame.bindingIndex++}function sc(e){let t=D.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function nf(){return D.lFrame.inI18n}function rf(e,t){let n=D.lFrame;n.bindingIndex=n.bindingRootIndex=e,ho(t)}function of(){return D.lFrame.currentDirectiveIndex}function ho(e){D.lFrame.currentDirectiveIndex=e}function sf(e){let t=D.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function ac(e){D.lFrame.currentQueryIndex=e}function af(e){let t=e[v];return t.type===2?t.declTNode:t.type===1?e[ie]:null}function cc(e,t,n){if(n&I.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&I.Host);)if(o=af(i),o===null||(i=i[vt],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=D.lFrame=lc();return r.currentTNode=t,r.lView=e,!0}function ci(e){let t=lc(),n=e[v];D.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function lc(){let e=D.lFrame,t=e===null?null:e.child;return t===null?uc(e):t}function uc(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function dc(){let e=D.lFrame;return D.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var fc=dc;function li(){let e=dc();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function cf(e){return(D.lFrame.contextLView=qd(e,D.lFrame.contextLView))[F]}function Ae(){return D.lFrame.selectedIndex}function Be(e){D.lFrame.selectedIndex=e}function pc(){let e=D.lFrame;return si(e.tView,e.selectedIndex)}function lf(){return D.lFrame.currentNamespace}var hc=!0;function ui(){return hc}function di(e){hc=e}function uf(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Za(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function fi(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[tt]+=65536),(a>14>16&&(e[g]&3)===t&&(e[g]+=16384,Hs(a,i)):Hs(a,i)}var it=-1,kt=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function ff(e){return e instanceof kt}function pf(e){return(e.flags&8)!==0}function hf(e){return(e.flags&16)!==0}var Gr={},go=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=ar(r);let o=this.injector.get(t,Gr,r);return o!==Gr||n===Gr?o:this.parentInjector.get(t,n,r)}};function mc(e){return e!==it}function Wn(e){return e&32767}function gf(e){return e>>16}function zn(e,t){let n=gf(e),r=t;for(;n>0;)r=r[vt],n--;return r}var mo=!0;function $s(e){let t=mo;return mo=e,t}var mf=256,yc=mf-1,vc=5,yf=0,ce={};function vf(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Tt)&&(r=n[Tt]),r==null&&(r=n[Tt]=yf++);let o=r&yc,i=1<>vc)]|=i}function Ic(e,t){let n=wc(e,t);if(n!==-1)return n;let r=t[v];r.firstCreatePass&&(e.injectorIndex=t.length,Zr(r.data,e),Zr(t,null),Zr(r.blueprint,null));let o=pi(e,t),i=e.injectorIndex;if(mc(o)){let s=Wn(o),a=zn(o,t),c=a[v].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|c[s+l]}return t[i+8]=o,i}function Zr(e,t){e.push(0,0,0,0,0,0,0,0,t)}function wc(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function pi(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=Mc(o),r===null)return it;if(n++,o=o[vt],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return it}function If(e,t,n){vf(e,t,n)}function wf(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o>20,d=r?a:a+u,p=o?a+u:l;for(let f=d;f=c&&h.type===n)return f}if(o){let f=s[c];if(f&&qt(f)&&f.type===n)return c}return null}function Lt(e,t,n,r){let o=e[n],i=t.data;if(ff(o)){let s=o;s.resolving&&Qu(Zu(i[n]));let a=$s(s.canSeeViewProviders);s.resolving=!0;let c,l=s.injectImpl?G(s.injectImpl):null,u=cc(e,r,I.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&uf(n,i[n],t)}finally{l!==null&&G(l),$s(a),s.resolving=!1,fc()}}return o}function Cf(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Tt)?e[Tt]:void 0;return typeof t=="number"?t>=0?t&yc:bf:t}function Bs(e,t,n){let r=1<>vc)]&r)}function Us(e,t){return!(e&I.Self)&&!(e&I.Host&&t)}var Ve=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Cc(this._tNode,this._lView,t,ar(r),n)}};function bf(){return new Ve(J(),T())}function tE(e){return $t(()=>{let t=e.prototype.constructor,n=t[Ln]||yo(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Ln]||yo(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function yo(e){return wa(e)?()=>{let t=yo(Z(e));return t&&t()}:st(e)}function Mf(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[g]&2048&&!(s[g]&512);){let a=bc(i,s,n,r|I.Self,ce);if(a!==ce)return a;let c=i.parent;if(!c){let l=s[qa];if(l){let u=l.get(n,ce,r);if(u!==ce)return u}c=Mc(s),s=s[vt]}i=c}return o}function Mc(e){let t=e[v],n=t.type;return n===2?t.declTNode:n===1?e[ie]:null}function nE(e){return wf(J(),e)}function qs(e,t=null,n=null,r){let o=xc(e,t,n,r);return o.resolveInjectorInitializers(),o}function xc(e,t=null,n=null,r,o=new Set){let i=[n||q,bd(e)];return r=r||(typeof e=="object"?void 0:W(e)),new At(i,t||oi(),r||null,o)}var dt=class e{static{this.THROW_IF_NOT_FOUND=Nt}static{this.NULL=new Hn}static create(t,n){if(Array.isArray(t))return qs({name:""},n,t,"");{let r=t.name??"";return qs({name:r},t.parent,t.providers,r)}}static{this.\u0275prov=$({token:e,providedIn:"any",factory:()=>_e(Ta)})}static{this.__NG_ELEMENT_ID__=-1}};var xf=new S("");xf.__NG_ELEMENT_ID__=e=>{let t=J();if(t===null)throw new b(204,!1);if(t.type&2)return t.value;if(e&I.Optional)return null;throw new b(204,!1)};var _f="ngOriginalError";function Qr(e){return e[_f]}var _c=!0,hi=(()=>{class e{static{this.__NG_ELEMENT_ID__=Tf}static{this.__NG_ENV_ID__=n=>n}}return e})(),vo=class extends hi{constructor(t){super(),this._lView=t}onDestroy(t){return ec(this._lView,t),()=>Wd(this._lView,t)}};function Tf(){return new vo(T())}var fr=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Ct(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=$({token:e,providedIn:"root",factory:()=>new e})}}return e})();var Io=class extends we{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,Ua()&&(this.destroyRef=M(hi,{optional:!0})??void 0,this.pendingTasks=M(fr,{optional:!0})??void 0)}emit(t){let n=w(null);try{super.next(t)}finally{w(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof P&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},be=Io;function Gn(...e){}function Tc(e){let t,n;function r(){e=Gn;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Ws(e){return queueMicrotask(()=>e()),()=>{e=Gn}}var gi="isAngularZone",Zn=gi+"_ID",Nf=0,z=class e{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new be(!1),this.onMicrotaskEmpty=new be(!1),this.onStable=new be(!1),this.onError=new be(!1);let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=_c}=t;if(typeof Zone>"u")throw new b(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,Af(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(gi)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new b(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new b(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Sf,Gn,Gn);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Sf={};function mi(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Of(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Tc(()=>{e.callbackScheduled=!1,wo(e),e.isCheckStableRunning=!0,mi(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),wo(e)}function Af(e){let t=()=>{Of(e)},n=Nf++;e._inner=e._inner.fork({name:"angular",properties:{[gi]:!0,[Zn]:n,[Zn+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(Rf(c))return r.invokeTask(i,s,a,c);try{return zs(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Gs(e)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return zs(e),r.invoke(i,s,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Pf(c)&&t(),Gs(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,wo(e),mi(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function wo(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function zs(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Gs(e){e._nesting--,mi(e)}var Do=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new be,this.onMicrotaskEmpty=new be,this.onStable=new be,this.onError=new be}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function Rf(e){return Nc(e,"__ignore_ng_zone__")}function Pf(e){return Nc(e,"__scheduler_tick__")}function Nc(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var ft=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Qr(t);for(;n&&Qr(n);)n=Qr(n);return n||null}},kf=new S("",{providedIn:"root",factory:()=>{let e=M(z),t=M(ft);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function Zs(e,t){return ya(e,t)}function Lf(e){return ya(ma,e)}var Gt=(Zs.required=Lf,Zs);function Ff(){return yi(J(),T())}function yi(e,t){return new jf(Y(e,t))}var jf=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=Ff}}return e})();function Sc(e){return(e.flags&128)===128}var Oc=new Map,Vf=0;function Hf(){return Vf++}function $f(e){Oc.set(e[cr],e)}function Eo(e){Oc.delete(e[cr])}var Qs="__ngContext__";function Ue(e,t){xe(t)?(e[Qs]=t[cr],$f(t)):e[Qs]=t}function Ac(e){return Pc(e[Pt])}function Rc(e){return Pc(e[ne])}function Pc(e){for(;e!==null&&!ve(e);)e=e[ne];return e}var Co;function rE(e){Co=e}function kc(){if(Co!==void 0)return Co;if(typeof document<"u")return document;throw new b(210,!1)}var oE=new S("",{providedIn:"root",factory:()=>Bf}),Bf="ng",Uf=new S(""),qf=new S("",{providedIn:"platform",factory:()=>"unknown"});var iE=new S("",{providedIn:"root",factory:()=>kc().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Wf="h",zf="b";var Gf=()=>null;function vi(e,t,n=!1){return Gf(e,t,n)}var Lc=!1,Zf=new S("",{providedIn:"root",factory:()=>Lc});var Mn;function Qf(){if(Mn===void 0&&(Mn=null,kn.trustedTypes))try{Mn=kn.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Mn}function pr(e){return Qf()?.createHTML(e)||e}var xn;function Fc(){if(xn===void 0&&(xn=null,kn.trustedTypes))try{xn=kn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return xn}function Ys(e){return Fc()?.createHTML(e)||e}function Js(e){return Fc()?.createScriptURL(e)||e}var Qn=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ga})`}};function Zt(e){return e instanceof Qn?e.changingThisBreaksApplicationSecurity:e}function Ii(e,t){let n=Yf(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${ga})`)}return n===t}function Yf(e){return e instanceof Qn&&e.getTypeName()||null}function Jf(e){let t=new Mo(e);return Kf()?new bo(t):t}var bo=class{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let n=new window.DOMParser().parseFromString(pr(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},Mo=class{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=pr(t),n}};function Kf(){try{return!!new window.DOMParser().parseFromString(pr(""),"text/html")}catch{return!1}}var Xf=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function jc(e){return e=String(e),e.match(Xf)?e:"unsafe:"+e}function Ie(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Qt(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var Vc=Ie("area,br,col,hr,img,wbr"),Hc=Ie("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),$c=Ie("rp,rt"),ep=Qt($c,Hc),tp=Qt(Hc,Ie("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),np=Qt($c,Ie("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ks=Qt(Vc,tp,np,ep),Bc=Ie("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),rp=Ie("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),op=Ie("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),ip=Qt(Bc,rp,op),sp=Ie("script,style,template"),xo=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){o.push(n),n=lp(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=cp(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(t){let n=Xs(t).toLowerCase();if(!Ks.hasOwnProperty(n))return this.sanitizedSomething=!0,!sp.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o"),!0}endElement(t){let n=Xs(t).toLowerCase();Ks.hasOwnProperty(n)&&!Vc.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(ea(t))}};function ap(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function cp(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Uc(t);return t}function lp(e){let t=e.firstChild;if(t&&ap(e,t))throw Uc(t);return t}function Xs(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Uc(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var up=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,dp=/([^\#-~ |!])/g;function ea(e){return e.replace(/&/g,"&").replace(up,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(dp,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var _n;function fp(e,t){let n=null;try{_n=_n||Jf(e);let r=t?String(t):"";n=_n.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=_n.getInertBodyElement(r)}while(r!==i);let a=new xo().sanitizeChildren(ta(n)||n);return pr(a)}finally{if(n){let r=ta(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function ta(e){return"content"in e&&pp(e)?e.content:null}function pp(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var hr=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(hr||{});function sE(e){let t=Di();return t?Ys(t.sanitize(hr.HTML,e)||""):Ii(e,"HTML")?Ys(Zt(e)):fp(kc(),Bt(e))}function wi(e){let t=Di();return t?t.sanitize(hr.URL,e)||"":Ii(e,"URL")?Zt(e):jc(Bt(e))}function hp(e){let t=Di();if(t)return Js(t.sanitize(hr.RESOURCE_URL,e)||"");if(Ii(e,"ResourceURL"))return Js(Zt(e));throw new b(904,!1)}function gp(e,t){return t==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||t==="href"&&(e==="base"||e==="link")?hp:wi}function aE(e,t,n){return gp(t,n)(e)}function Di(){let e=T();return e&&e[le].sanitizer}function qc(e){return e instanceof Function?e():e}function mp(e){return(e??M(dt)).get(qf)==="browser"}var _o=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(_o||{}),yp;function Ei(e,t){return yp(e,t)}function nt(e,t,n,r,o){if(r!=null){let i,s=!1;ve(r)?i=r:xe(r)&&(s=!0,r=r[ye]);let a=ue(r);e===0&&n!==null?o==null?Zc(t,n,a):Yn(t,n,a,o||null,!0):e===1&&n!==null?Yn(t,n,a,o||null,!0):e===2?Ap(t,a,s):e===3&&t.destroyNode(a),i!=null&&Pp(t,e,i,n,o)}}function vp(e,t){return e.createText(t)}function Ip(e,t,n){e.setValue(t,n)}function Wc(e,t,n){return e.createElement(t,n)}function wp(e,t){zc(e,t),t[ye]=null,t[ie]=null}function Dp(e,t,n,r,o,i){r[ye]=o,r[ie]=t,mr(e,r,n,1,o,i)}function zc(e,t){t[le].changeDetectionScheduler?.notify(9),mr(e,t,t[L],2,null,null)}function Ep(e){let t=e[Pt];if(!t)return Yr(e[v],e);for(;t;){let n=null;if(xe(t))n=t[Pt];else{let r=t[j];r&&(n=r)}if(!n){for(;t&&!t[ne]&&t!==e;)xe(t)&&Yr(t[v],t),t=t[V];t===null&&(t=e),xe(t)&&Yr(t[v],t),n=t&&t[ne]}t=n}}function Cp(e,t,n,r){let o=j+r,i=n.length;r>0&&(n[o-1][ne]=t),r0&&(e[n-1][ne]=r[ne]);let i=jn(e,j+t);wp(r[v],r);let s=i[lt];s!==null&&s.detachView(i[v]),r[V]=null,r[ne]=null,r[g]&=-129}return r}function gr(e,t){if(!(t[g]&256)){let n=t[L];n.destroyNode&&mr(e,t,n,3,null,null),Ep(t)}}function Yr(e,t){if(t[g]&256)return;let n=w(null);try{t[g]&=-129,t[g]|=256,t[Q]&&Tr(t[Q]),Mp(e,t),bp(e,t),t[v].type===1&&t[L].destroy();let r=t[ct];if(r!==null&&ve(t[V])){r!==t[V]&&Ci(r,t);let o=t[lt];o!==null&&o.detachView(e)}Eo(t)}finally{w(n)}}function bp(e,t){let n=e.cleanup,r=t[$n];if(n!==null)for(let i=0;i=0?r[s]():r[-s].unsubscribe(),i+=2}else{let s=r[n[i+1]];n[i].call(s)}r!==null&&(t[$n]=null);let o=t[Me];if(o!==null){t[Me]=null;for(let i=0;i-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===Ot.None||i===Ot.Emulated)return null}return Y(r,n)}}function Yn(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Zc(e,t,n){e.appendChild(t,n)}function na(e,t,n,r,o){r!==null?Yn(e,t,n,r,o):Zc(e,t,n)}function Qc(e,t){return e.parentNode(t)}function Tp(e,t){return e.nextSibling(t)}function Np(e,t,n){return Op(e,t,n)}function Sp(e,t,n){return e.type&40?Y(e,n):null}var Op=Sp,ra;function bi(e,t,n,r){let o=xp(e,r,t),i=t[L],s=r.parent||t[ie],a=Np(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;coe&&Xc(e,t,oe,!1),ae(s?2:0,o),n(r,o)}finally{Be(i),ae(s?3:1,o)}}function rl(e,t,n){if(za(t)){let r=w(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function qp(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Qd()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function oa(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,c=Te.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let l=i;if(o!==null){if(!o.hasOwnProperty(i))continue;l=o[i]}e===0?ia(r,n,l,a,c):ia(r,n,l,a)}return r}function ia(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function Wp(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],c=null,l=null;for(let u=r;u0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Jp(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;lr(n)&&oh(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||Ic(n,t),Ue(r,t);let s=n.initialInputs;for(let a=o;a{dr(e.lView)},consumerOnSignalRead(){this.lView[Q]=this}});function wh(e){let t=e[Q]??Object.create(Dh);return t.lView=e,t}var Dh=he(pe({},wt),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=$e(e.lView);for(;t&&!ml(t[v]);)t=$e(t);t&&Xa(t)},consumerOnSignalRead(){this.lView[Q]=this}});function ml(e){return e.type!==2}var Eh=100;function yl(e,t=!0,n=0){let r=e[le],o=r.rendererFactory,i=!1;i||o.begin?.();try{Ch(e,n)}catch(s){throw t&&fl(e,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function Ch(e,t){let n=ic();try{Vs(!0),Oo(e,t);let r=0;for(;ur(e);){if(r===Eh)throw new b(103,!1);r++,Oo(e,1)}}finally{Vs(n)}}function bh(e,t,n,r){let o=t[g];if((o&256)===256)return;let i=!1,s=!1;!i&&t[le].inlineEffectRunner?.flush(),ci(t);let a=!0,c=null,l=null;i||(ml(e)?(l=mh(t),c=en(l)):Vi()===null?(a=!1,l=wh(t),c=en(l)):t[Q]&&(Tr(t[Q]),t[Q]=null));try{Ka(t),tf(e.bindingStartIndex),n!==null&&nl(e,t,n,2,r);let u=(o&3)===3;if(!i)if(u){let f=e.preOrderCheckHooks;f!==null&&On(t,f,null)}else{let f=e.preOrderHooks;f!==null&&An(t,f,0,null),zr(t,0)}if(s||Mh(t),vl(t,0),e.contentQueries!==null&&dl(e,t),!i)if(u){let f=e.contentCheckHooks;f!==null&&On(t,f)}else{let f=e.contentHooks;f!==null&&An(t,f,1),zr(t,1)}jp(e,t);let d=e.components;d!==null&&wl(t,d,0);let p=e.viewQuery;if(p!==null&&So(2,p,r),!i)if(u){let f=e.viewCheckHooks;f!==null&&On(t,f)}else{let f=e.viewHooks;f!==null&&An(t,f,2),zr(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Wr]){for(let f of t[Wr])f();t[Wr]=null}i||(t[g]&=-73)}catch(u){throw i||dr(t),u}finally{l!==null&&(xr(l,c),a&&vh(l)),li()}}function vl(e,t){for(let n=Ac(e);n!==null;n=Rc(n))for(let r=j;r-1&&(Ft(t,r),jn(n,r))}this._attachedToViewContainer=!1}gr(this._lView[v],this._lView)}onDestroy(t){ec(this._lView,t)}markForCheck(){Si(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[g]&=-129}reattach(){po(this._lView),this._lView[g]|=128}detectChanges(){this._lView[g]|=1024,yl(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new b(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=uo(this._lView),n=this._lView[ct];n!==null&&!t&&Ci(n,this._lView),zc(this._lView[v],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new b(902,!1);this._appRef=t;let n=uo(this._lView),r=this._lView[ct];r!==null&&!n&&Gc(r,this._lView),po(this._lView)}};var uE=new RegExp(`^(\\d+)*(${zf}|${Wf})*(.*)`);var _h=()=>null;function Vt(e,t){return _h(e,t)}var ht=class{},Oi=new S("",{providedIn:"root",factory:()=>!1});var Dl=new S(""),El=new S(""),Ao=class{},Kn=class{};function Th(e){let t=Error(`No component factory found for ${W(e)}.`);return t[Nh]=e,t}var Nh="ngComponent";var Ro=class{resolveComponentFactory(t){throw Th(t)}},gt=class{static{this.NULL=new Ro}},Xn=class{},dE=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>Sh()}}return e})();function Sh(){let e=T(),t=J(),n=Oe(t.index,e);return(xe(n)?n:e)[L]}var Oh=(()=>{class e{static{this.\u0275prov=$({token:e,providedIn:"root",factory:()=>null})}}return e})();function Po(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&Jc(e,n,i.join(" "))}}function jh(e,t,n){let r=e.projection=[];for(let o=0;o{class e{static{this.__NG_ELEMENT_ID__=$h}}return e})();function $h(){let e=J();return Uh(e,T())}var Bh=Hh,Cl=class extends Bh{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return yi(this._hostTNode,this._hostLView)}get injector(){return new Ve(this._hostTNode,this._hostLView)}get parentInjector(){let t=pi(this._hostTNode,this._hostLView);if(mc(t)){let n=zn(t,this._hostLView),r=Wn(t),o=n[v].data[r+8];return new Ve(o,n)}else return new Ve(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=aa(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-j}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Vt(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,jt(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!Ld(t),a;if(s)a=n;else{let h=n||{};a=h.index,r=h.injector,o=h.projectableNodes,i=h.environmentInjector||h.ngModuleRef}let c=s?t:new mt(Ne(t)),l=r||this.parentInjector;if(!i&&c.ngModule==null){let y=(s?l:this.parentInjector).get(Se,null);y&&(i=y)}let u=Ne(c.componentType??{}),d=Vt(this._lContainer,u?.id??null),p=d?.firstChild??null,f=c.create(l,o,p,i);return this.insertImpl(f.hostView,a,jt(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Ud(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[V],l=new Cl(c,c[ie],c[V]);l.detach(l.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return wr(s,o,i,r),t.attachToViewContainerRef(),_a(Jr(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=aa(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Ft(this._lContainer,n);r&&(jn(Jr(this._lContainer),n),gr(r[v],r))}detach(t){let n=this._adjustIndex(t,-1),r=Ft(this._lContainer,n);return r&&jn(Jr(this._lContainer),n)!=null?new pt(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function aa(e){return e[Bn]}function Jr(e){return e[Bn]||(e[Bn]=[])}function Uh(e,t){let n,r=t[e.index];return ve(r)?n=r:(n=ul(r,t,null,e),t[e.index]=n,Ir(t,n)),Wh(n,t,e,r),new Cl(n,e,t)}function qh(e,t){let n=e[L],r=n.createComment(""),o=Y(t,e),i=Qc(n,o);return Yn(n,i,r,Tp(n,o),!1),r}var Wh=Zh,zh=()=>!1;function Gh(e,t,n){return zh(e,t,n)}function Zh(e,t,n,r){if(e[He])return;let o;n.type&8?o=ue(r):o=qh(t,n),e[He]=o}var ca=new Set;function ze(e){ca.has(e)||(ca.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function pE(e,t){ze("NgSignals");let n=Yi(e),r=n[ge];return t?.equal&&(r.equal=t.equal),n.set=o=>rn(r,o),n.update=o=>Ji(r,o),n.asReadonly=Qh.bind(n),n}function Qh(){let e=this[ge];if(e.readonlyFn===void 0){let t=()=>this();t[ge]=e,e.readonlyFn=t}return e.readonlyFn}function hE(e){let t=e.inputConfig,n={};for(let r in t)if(t.hasOwnProperty(r)){let o=t[r];Array.isArray(o)&&o[3]&&(n[r]=o[3])}e.inputTransforms=n}var qe=class{},Lo=class{};var Fo=class extends qe{constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new er(this);let i=La(t);this._bootstrapComponents=qc(i.bootstrap),this._r3Injector=xc(t,n,[{provide:qe,useValue:this},{provide:gt,useValue:this.componentFactoryResolver},...r],W(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},jo=class extends Lo{constructor(t){super(),this.moduleType=t}create(t){return new Fo(this.moduleType,t,[])}};var tr=class extends qe{constructor(t){super(),this.componentFactoryResolver=new er(this),this.instance=null;let n=new At([...t.providers,{provide:qe,useValue:this},{provide:gt,useValue:this.componentFactoryResolver}],t.parent||oi(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Yh(e,t,n=null){return new tr({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function Jh(e,t,n){return e[t]=n}function Re(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Kh(e){return(e.flags&32)===32}function Xh(e,t,n,r,o,i,s,a,c){let l=t.consts,u=vr(t,e,4,s||null,a||null);al(t,n,u,ut(l,c)),fi(t,u);let d=u.tView=xi(2,u,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l,null);return t.queries!==null&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}function Vo(e,t,n,r,o,i,s,a,c,l){let u=n+oe,d=t.firstCreatePass?Xh(u,t,e,r,o,i,s,a,c):t.data[u];Wt(d,!1);let p=eg(t,e,d,n);ui()&&bi(t,e,p,d),Ue(p,e);let f=ul(p,e,p,d);return e[u]=f,Ir(e,f),Gh(f,d,e),ii(d)&&ol(t,e,d),c!=null&&il(e,d,l),d}function Ai(e,t,n,r,o,i,s,a){let c=T(),l=se(),u=ut(l.consts,i);return Vo(c,l,e,t,n,r,o,u,s,a),Ai}var eg=tg;function tg(e,t,n,r){return di(!0),t[L].createComment("")}var rt=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(rt||{}),bl=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=$({token:e,providedIn:"root",factory:()=>new e})}}return e})(),Ho=class e{constructor(){this.ngZone=M(z),this.scheduler=M(ht),this.errorHandler=M(ft,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[rt.EarlyRead,rt.Write,rt.MixedReadWrite,rt.Read]}execute(){this.executing=!0;for(let t of e.PHASES)for(let n of this.sequences)if(!(n.erroredOrDestroyed||!n.hooks[t]))try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>n.hooks[t](n.pipelinedValue))}catch(r){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let t of this.sequences)t.afterRun(),t.once&&this.sequences.delete(t);for(let t of this.deferredRegistrations)this.sequences.add(t);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(t){this.executing?this.deferredRegistrations.add(t):(this.sequences.add(t),this.scheduler.notify(6))}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}static{this.\u0275prov=$({token:e,providedIn:"root",factory:()=>new e})}},$o=class{constructor(t,n,r,o){this.impl=t,this.hooks=n,this.once=r,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function ng(e,t){!t?.injector&&kd(ng);let n=t?.injector??M(dt);return mp(n)?(ze("NgAfterNextRender"),og(e,n,t,!0)):ig}function rg(e,t){if(e instanceof Function){let n=[void 0,void 0,void 0,void 0];return n[t]=e,n}else return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function og(e,t,n,r){let o=t.get(bl);o.impl??=t.get(Ho);let i=n?.phase??rt.MixedReadWrite,s=n?.manualCleanup!==!0?t.get(hi):null,a=new $o(o.impl,rg(e,i),r,s);return o.impl.register(a),a}var ig={destroy(){}};function sg(e,t,n,r){let o=T(),i=zt();if(Re(o,i,t)){let s=se(),a=pc();ih(a,o,e,t,n,r)}return sg}function ag(e,t,n,r){return Re(e,zt(),n)?t+Bt(n)+r:de}function Tn(e,t){return e<<17|t<<2}function We(e){return e>>17&32767}function cg(e){return(e&2)==2}function lg(e,t){return e&131071|t<<17}function Bo(e){return e|2}function yt(e){return(e&131068)>>2}function Kr(e,t){return e&-131069|t<<2}function ug(e){return(e&1)===1}function Uo(e){return e|1}function dg(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=We(s),c=yt(s);e[r]=n;let l=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||Ut(d,u)>0)&&(l=!0)}else u=n;if(o)if(c!==0){let p=We(e[a+1]);e[r+1]=Tn(p,a),p!==0&&(e[p+1]=Kr(e[p+1],r)),e[a+1]=lg(e[a+1],r)}else e[r+1]=Tn(a,0),a!==0&&(e[a+1]=Kr(e[a+1],r)),a=r;else e[r+1]=Tn(c,0),a===0?a=r:e[c+1]=Kr(e[c+1],r),c=r;l&&(e[r+1]=Bo(e[r+1])),la(e,u,r,!0),la(e,u,r,!1),fg(t,u,e,r,i),s=Tn(a,c),i?t.classBindings=s:t.styleBindings=s}function fg(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Ut(i,t)>=0&&(n[r+1]=Uo(n[r+1]))}function la(e,t,n,r){let o=e[n+1],i=t===null,s=r?We(o):yt(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],l=e[s+1];pg(c,t)&&(a=!0,e[s+1]=r?Uo(l):Bo(l)),s=r?We(l):yt(l)}a&&(e[n+1]=r?Bo(o):Uo(o))}function pg(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Ut(e,t)>=0:!1}var te={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function hg(e){return e.substring(te.key,te.keyEnd)}function gg(e){return mg(e),Ml(e,xl(e,0,te.textEnd))}function Ml(e,t){let n=te.textEnd;return n===t?-1:(t=te.keyEnd=yg(e,te.key=t,n),xl(e,t,n))}function mg(e){te.key=0,te.keyEnd=0,te.value=0,te.valueEnd=0,te.textEnd=e.length}function xl(e,t,n){for(;t32;)t++;return t}function Ri(e,t,n){let r=T(),o=zt();if(Re(r,o,t)){let i=se(),s=pc();Gp(i,s,r,e,t,r[L],n,!1)}return Ri}function qo(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";_i(e,n,i[s],s,r)}function Pi(e,t,n){return Ig(e,t,n,!1),Pi}function gE(e){wg(xg,vg,e,!0)}function vg(e,t){for(let n=gg(t);n>=0;n=Ml(t,n))ei(e,hg(t),!0)}function Ig(e,t,n,r){let o=T(),i=se(),s=sc(2);if(i.firstUpdatePass&&Tl(i,e,s,r),t!==de&&Re(o,s,t)){let a=i.data[Ae()];Nl(i,a,o,o[L],e,o[s+1]=Tg(t,n),r,s)}}function wg(e,t,n,r){let o=se(),i=sc(2);o.firstUpdatePass&&Tl(o,null,i,r);let s=T();if(n!==de&&Re(s,i,n)){let a=o.data[Ae()];if(Sl(a,r)&&!_l(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=to(c,n||"")),qo(o,a,s,n,r)}else _g(o,a,s,s[L],s[i+1],s[i+1]=Mg(e,t,n),r,i)}}function _l(e,t){return t>=e.expandoStartIndex}function Tl(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Ae()],s=_l(e,n);Sl(i,r)&&t===null&&!s&&(t=!1),t=Dg(o,i,t,r),dg(o,i,t,n,s,r)}}function Dg(e,t,n,r){let o=sf(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Xr(null,e,t,n,r),n=Ht(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Xr(o,e,t,n,r),i===null){let c=Eg(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Xr(null,e,t,c[1],r),c=Ht(c,t.attrs,r),Cg(e,t,r,c))}else i=bg(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function Eg(e,t,n){let r=n?t.classBindings:t.styleBindings;if(yt(r)!==0)return e[We(r)]}function Cg(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[We(o)]=r}function bg(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let c=e[o],l=Array.isArray(c),u=l?c[1]:c,d=u===null,p=n[o+1];p===de&&(p=d?q:void 0);let f=d?Ur(p,r):u===r?p:void 0;if(l&&!nr(f)&&(f=Ur(c,r)),nr(f)&&(a=f,s))return a;let h=e[o+1];o=s?We(h):yt(h)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Ur(c,r))}return a}function nr(e){return e!==void 0}function Tg(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=W(Zt(e)))),e}function Sl(e,t){return(e.flags&(t?8:16))!==0}var Wo=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function eo(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function Ng(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let c=t.length-1;for(;i<=s&&i<=c;){let l=e.at(i),u=t[i],d=eo(i,l,i,u,n);if(d!==0){d<0&&e.updateValue(i,u),i++;continue}let p=e.at(s),f=t[c],h=eo(s,p,c,f,n);if(h!==0){h<0&&e.updateValue(s,f),s--,c--;continue}let y=n(i,l),O=n(s,p),N=n(i,u);if(Object.is(N,O)){let R=n(c,f);Object.is(R,y)?(e.swap(i,s),e.updateValue(s,f),c--,s--):e.move(s,i),e.updateValue(i,u),i++;continue}if(r??=new rr,o??=fa(e,i,s,n),zo(e,r,i,N))e.updateValue(i,u),i++,s++;else if(o.has(N))r.set(y,e.detach(i)),s--;else{let R=e.create(i,t[i]);e.attach(i,R),i++,s++}}for(;i<=c;)da(e,r,n,i,t[i]),i++}else if(t!=null){let c=t[Symbol.iterator](),l=c.next();for(;!l.done&&i<=s;){let u=e.at(i),d=l.value,p=eo(i,u,i,d,n);if(p!==0)p<0&&e.updateValue(i,d),i++,l=c.next();else{r??=new rr,o??=fa(e,i,s,n);let f=n(i,d);if(zo(e,r,i,f))e.updateValue(i,d),i++,s++,l=c.next();else if(!o.has(f))e.attach(i,e.create(i,d)),i++,s++,l=c.next();else{let h=n(i,u);r.set(h,e.detach(i)),s--}}}for(;!l.done;)da(e,r,n,e.length,l.value),l=c.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(c=>{e.destroy(c)})}function zo(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function da(e,t,n,r,o){if(zo(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function fa(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var rr=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function Ol(e,t){ze("NgControlFlow");let n=T(),r=zt(),o=n[r]!==de?n[r]:-1,i=o!==-1?or(n,oe+o):void 0,s=0;if(Re(n,r,e)){let a=w(null);try{if(i!==void 0&&hl(i,s),e!==-1){let c=oe+e,l=or(n,c),u=Yo(n[v],c),d=Vt(l,u.tView.ssrId),p=Ni(n,u,t,{dehydratedView:d});wr(l,p,s,jt(u,d))}}finally{w(a)}}else if(i!==void 0){let a=pl(i,s);a!==void 0&&(a[F]=t)}}var Go=class{constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-j}};function mE(e){return e}var Zo=class{constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function yE(e,t,n,r,o,i,s,a,c,l,u,d,p){ze("NgControlFlow");let f=T(),h=se(),y=c!==void 0,O=T(),N=a?s.bind(O[re][F]):s,R=new Zo(y,N);O[oe+e]=R,Vo(f,h,e+1,t,n,r,o,ut(h.consts,i)),y&&Vo(f,h,e+2,c,l,u,d,ut(h.consts,p))}var Qo=class extends Wo{constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-j}at(t){return this.getLView(t)[F].$implicit}attach(t,n){let r=n[Rt];this.needsIndexUpdate||=t!==this.length,wr(this.lContainer,n,t,jt(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,Sg(this.lContainer,t)}create(t,n){let r=Vt(this.lContainer,this.templateTNode.tView.ssrId),o=Ni(this.hostLView,this.templateTNode,new Go(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){gr(t[v],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[F].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t(di(!0),Wc(r,o,lf()));var ir="en-US";var Pg=ir;function kg(e){typeof e=="string"&&(Pg=e.toLowerCase().replace(/_/g,"-"))}var Lg=(e,t,n)=>{};function Fg(e,t,n,r){let o=T(),i=se(),s=J();return Vg(i,o,o[L],s,e,t,r),Fg}function jg(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;ic?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Vg(e,t,n,r,o,i,s){let a=ii(r),l=e.firstCreatePass&&uh(e),u=t[F],d=lh(t),p=!0;if(r.type&3||s){let y=Y(r,t),O=s?s(y):y,N=d.length,R=s?K=>s(ue(K[r.index])):r.index,fe=null;if(!s&&a&&(fe=jg(e,t,o,r.index)),fe!==null){let K=fe.__ngLastListenerFn__||fe;K.__ngNextListenerFn__=i,fe.__ngLastListenerFn__=i,p=!1}else{i=ha(r,t,u,i),Lg(y,o,i);let K=n.listen(O,o,i);d.push(i,K),l&&l.push(o,R,N,N+1)}}else i=ha(r,t,u,i);let f=r.outputs,h;if(p&&f!==null&&(h=f[o])){let y=h.length;if(y)for(let O=0;O-1?Oe(e.index,t):t;Si(s,5);let a=pa(t,n,r,i),c=o.__ngNextListenerFn__;for(;c;)a=pa(t,n,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function Pl(e=1){return cf(e)}function kl(e,t=""){let n=T(),r=se(),o=e+oe,i=r.firstCreatePass?vr(r,o,1,t,null):r.data[o],s=Hg(r,n,i,t,e);n[o]=s,ui()&&bi(r,n,s,i),Wt(i,!1)}var Hg=(e,t,n,r,o)=>(di(!0),vp(t[L],r));function $g(e){return Dr("",e,""),$g}function Dr(e,t,n){let r=T(),o=ag(r,e,t,n);return o!==de&&dh(r,Ae(),o),Dr}var Bg=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Va(!1,n.type),o=r.length>0?Yh([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=$({token:e,providedIn:"environment",factory:()=>new e(_e(Se))})}}return e})();function Ll(e){ze("NgStandalone"),e.getStandaloneInjector=t=>t.get(Bg).getOrCreateStandaloneInjector(e)}function IE(e,t,n,r){return qg(T(),ef(),e,t,n,r)}function Ug(e,t){let n=e[t];return n===de?void 0:n}function qg(e,t,n,r,o,i){let s=t+n;return Re(e,s,o)?Jh(e,s+1,i?r.call(i,o):r(o)):Ug(e,s+1)}var wE=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();var Wg=new S("");function Fl(e){return!!e&&typeof e.then=="function"}function zg(e){return!!e&&typeof e.subscribe=="function"}var Gg=new S(""),jl=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=M(Gg,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=o();if(Fl(i))n.push(i);else if(zg(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Zg=new S("");function Qg(){Qi(()=>{throw new b(600,!1)})}function Yg(e){return e.isBoundToModule}var Jg=10;function Kg(e,t,n){try{let r=n();return Fl(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Er=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=M(kf),this.afterRenderManager=M(bl),this.zonelessEnabled=M(Oi),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new we,this.afterTick=new we,this.componentTypes=[],this.components=[],this.isStable=M(fr).hasPendingTasks.pipe(me(n=>!n)),this._injector=M(Se)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,r){let o=n instanceof Kn;if(!this._injector.get(jl).done){let p=!o&&Dd(n),f=!1;throw new b(405,f)}let s;o?s=n:s=this._injector.get(gt).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=Yg(s)?void 0:this._injector.get(qe),c=r||s.selector,l=s.create(dt.NULL,[],c,a),u=l.location.nativeElement,d=l.injector.get(Wg,null);return d?.registerApplication(u),l.onDestroy(()=>{this.detachView(l.hostView),Rn(this.components,l),d?.unregisterApplication(u)}),this._loadComponent(l),l}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new b(101,!1);let n=w(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,w(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(Xn,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++ur(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Rn(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(Zg,[]);[...this._bootstrapListeners,...r].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Rn(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new b(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Rn(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Xg(e,t,n,r){if(!n&&!ur(e))return;yl(e,t,n&&!r?0:1)}var Jo=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},DE=(()=>{class e{compileModuleSync(n){return new jo(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=La(n),i=qc(o.declarations).reduce((s,a)=>{let c=Ne(a);return c&&s.push(new mt(c)),s},[]);return new Jo(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var em=(()=>{class e{constructor(){this.zone=M(z),this.changeDetectionScheduler=M(ht),this.applicationRef=M(Er)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),tm=new S("",{factory:()=>!1});function Vl({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new z(he(pe({},Hl()),{scheduleInRootZone:n})),[{provide:z,useFactory:e},{provide:Vn,multi:!0,useFactory:()=>{let r=M(em,{optional:!0});return()=>r.initialize()}},{provide:Vn,multi:!0,useFactory:()=>{let r=M(nm);return()=>{r.initialize()}}},t===!0?{provide:Dl,useValue:!0}:[],{provide:El,useValue:n??_c}]}function EE(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=Vl({ngZoneFactory:()=>{let o=Hl(e);return o.scheduleInRootZone=n,o.shouldCoalesceEventChangeDetection&&ze("NgZone_CoalesceEvent"),new z(o)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return Cd([{provide:tm,useValue:!0},{provide:Oi,useValue:!1},r])}function Hl(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var nm=(()=>{class e{constructor(){this.subscription=new P,this.initialized=!1,this.zone=M(z),this.pendingTasks=M(fr)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{z.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{z.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var rm=(()=>{class e{constructor(){this.appRef=M(Er),this.taskService=M(fr),this.ngZone=M(z),this.zonelessEnabled=M(Oi),this.disableScheduling=M(Dl,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new P,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Zn):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(M(El,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Do||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?Ws:Tc;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Zn+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Ws(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function om(){return typeof $localize<"u"&&$localize.locale||ir}var $l=new S("",{providedIn:"root",factory:()=>M($l,I.Optional|I.SkipSelf)||om()});var Bl=new S("");function Nn(e){return!!e.platformInjector}function im(e){let t=Nn(e)?e.r3Injector:e.moduleRef.injector,n=t.get(z);return n.run(()=>{Nn(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(ft,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Nn(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Bl);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else e.moduleRef.onDestroy(()=>{Rn(e.allPlatformModules,e.moduleRef),o.unsubscribe()});return Kg(r,n,()=>{let i=t.get(jl);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get($l,ir);if(kg(s||ir),Nn(e)){let a=t.get(Er);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return sm(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function sm(e,t){let n=e.injector.get(Er);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new b(-403,!1);t.push(e)}var Pn=null;function am(e=[],t){return dt.create({name:t,providers:[{provide:Ba,useValue:"platform"},{provide:Bl,useValue:new Set([()=>Pn=null])},...e]})}function cm(e=[]){if(Pn)return Pn;let t=am(e);return Pn=t,Qg(),lm(t),t}function lm(e){e.get(Uf,null)?.forEach(n=>n())}var CE=(()=>{class e{static{this.__NG_ELEMENT_ID__=um}}return e})();function um(e){return dm(J(),T(),(e&16)===16)}function dm(e,t,n){if(lr(e)&&!n){let r=Oe(e.index,t);return new pt(r,r)}else if(e.type&175){let r=t[re];return new pt(r,t)}return null}function bE(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=cm(r),i=[Vl({}),{provide:ht,useExisting:rm},...n||[]],s=new tr({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return im({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}}function ME(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function xE(e,t){ze("NgSignals");let n=zi(e);return t?.equal&&(n[ge].equal=t.equal),n}function _E(e){let t=Ne(e);if(!t)return null;let n=new mt(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}function pm(e,t){e&1&&kl(0),e&2&&Dr(" ",t," ")}function hm(e,t){if(e&1&&ki(0,"img",1),e&2){let n=Pl();Pi("width",n.size())("height",n.size()),Ri("src",n.iconsPath+n.svg()+".svg",wi)("alt",n.alt())}}var Ul=class e{name=Gt();alt=Gt("icon");svg=Gt();size=Gt("1.5rem");iconsPath="icons/";static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Ra({type:e,selectors:[["lib-icon"]],hostAttrs:[1,"material-symbols-outlined"],inputs:{name:[1,"name"],alt:[1,"alt"],svg:[1,"svg"],size:[1,"size"]},standalone:!0,features:[Ll],decls:2,vars:1,consts:[[3,"src","width","height","alt"],[3,"src","alt"]],template:function(n,r){if(n&1&&Ai(0,pm,1,1)(1,hm,1,6,"img",0),n&2){let o;Ol((o=r.name())?0:r.svg()?1:-1,o)}},encapsulation:2,changeDetection:0})};export{pe as a,he as b,P as c,iu as d,jr as e,Vr as f,we as g,Ct as h,bt as i,Ee as j,gu as k,mu as l,yu as m,Fe as n,me as o,Mu as p,je as q,Hr as r,En as s,_u as t,Mt as u,Ms as v,Tu as w,xt as x,$r as y,Nu as z,Ou as A,_s as B,Br as C,Au as D,Ru as E,Pu as F,ku as G,Lu as H,Fu as I,b as J,$ as K,ZD as L,QD as M,S as N,I as O,_e as P,M as Q,YD as R,JD as S,Ot as T,Ra as U,KD as V,XD as W,Cd as X,Ba as Y,Se as Z,eE as _,Fd as $,tE as aa,nE as ba,dt as ca,fr as da,be as ea,z as fa,ft as ga,Gt as ha,jf as ia,rE as ja,oE as ka,Uf as la,qf as ma,iE as na,sE as oa,aE as pa,_o as qa,cE as ra,Fp as sa,lE as ta,Xn as ua,dE as va,Hh as wa,pE as xa,hE as ya,Lo as za,Yh as Aa,Ai as Ba,ng as Ca,sg as Da,Ri as Ea,gE as Fa,Ol as Ga,mE as Ha,yE as Ia,vE as Ja,Al as Ka,Rl as La,ki as Ma,Fg as Na,Pl as Oa,kl as Pa,$g as Qa,Dr as Ra,Ll as Sa,IE as Ta,wE as Ua,Fl as Va,Gg as Wa,Zg as Xa,Er as Ya,DE as Za,EE as _a,CE as $a,bE as ab,ME as bb,xE as cb,_E as db,Ul as eb}; diff --git a/chunk-I23XA5NM.js b/chunk-I23XA5NM.js new file mode 100644 index 0000000..c95c7a5 --- /dev/null +++ b/chunk-I23XA5NM.js @@ -0,0 +1 @@ +import{a as c}from"./chunk-WEP4G4BU.js";import{Ha as r,Ra as p,U as t,ob as g}from"./chunk-FUUZABHH.js";import"./chunk-TWZW5B45.js";var i='

Changelog

',a=class o{routes=d[0].children;headerContent=i;pageType="guide";hasBreadcrumb=!0;static \u0275fac=function(e){return new(e||o)};static \u0275cmp=t({type:o,selectors:[["ng-doc-page-wrapper-w7stdypd"]],standalone:!0,features:[g],decls:1,vars:4,consts:[[3,"routes","headerContent","hasBreadcrumb","pageType"]],template:function(e,n){e&1&&p(0,"ng-doc-page-wrapper",0),e&2&&r("routes",n.routes)("headerContent",n.headerContent)("hasBreadcrumb",n.hasBreadcrumb)("pageType",n.pageType)},dependencies:[c],encapsulation:2,changeDetection:0})},d=[{path:"",component:a,title:"Changelog",children:[{path:"",loadChildren:()=>import("./chunk-JRRIW6GX.js"),title:"Changelog",data:{icon:""}}]}],u=d;export{a as PageWrapperComponent,u as default}; diff --git a/chunk-IA3G3QUZ.js b/chunk-IA3G3QUZ.js deleted file mode 100644 index 78d4155..0000000 --- a/chunk-IA3G3QUZ.js +++ /dev/null @@ -1 +0,0 @@ -import{Ka as n,La as o,Ma as i,Pa as e,Sa as l,U as s,eb as r}from"./chunk-HJ2TSOSY.js";var m=class a{static \u0275fac=function(t){return new(t||a)};static \u0275cmp=s({type:a,selectors:[["lib-home-page"]],hostAttrs:[1,"flex","flex-col","gap-6","items-center","justify-center","bg-slate-100","p-16","rounded-2xl","shadow-xl"],standalone:!0,features:[l],decls:7,vars:0,consts:[[1,"text-7xl","font-semibold","text-center","text-primary-700"],[1,"text-2xl","text-accent-300"],["svg","logo","alt","Website logo","size","150px"]],template:function(t,p){t&1&&(n(0,"h1",0),e(1," Greetings, "),i(2,"br"),e(3," friend. "),o(),n(4,"p",1),e(5,"Let's start building some UI \u{1F3A8}"),o(),i(6,"lib-icon",2))},dependencies:[r],encapsulation:2,changeDetection:0})};export{m as HomePage}; diff --git a/chunk-ICZRK4BH.js b/chunk-ICZRK4BH.js new file mode 100644 index 0000000..d5a06d6 --- /dev/null +++ b/chunk-ICZRK4BH.js @@ -0,0 +1,6 @@ +import"./chunk-TWZW5B45.js";var d="",Se='"',Je=",",Ce="'",se=" ",ee=` +`,sn=`\r +`;function ot(e){switch(e){case"text":return"Plain Text";case"html":return"HTML";case"liquid":return"Liquid";case"xml":return"XML";case"json":return"JSON";case"jsx":return"JSX";case"tsx":return"TSX";case"typescript":return"TypeScript";case"javascript":return"JavaScript";case"less":return"LESS";case"scss":return"SCSS";case"sass":return"SASS";case"css":return"CSS"}}function Le(e){switch(e){case"text":return"ignore";case"auto":return"auto";case"markup":case"html":case"liquid":case"xml":return"markup";case"json":case"jsx":case"tsx":case"typescript":case"javascript":return"script";case"less":case"scss":case"sass":case"css":return"style"}}function qt(e){switch(e){case"auto":return 5;case"markup":case"html":case"liquid":case"xml":return 1;case"json":case"jsx":case"tsx":case"typescript":case"javascript":return 2;case"less":case"scss":case"sass":case"css":return 3}return 4}function Lt(e,a){let i={lexer:a,language:ot(e),chars:0,time:""},p=Date.now();return x=>{let l=+(Date.now()-p).toFixed(0);return i.time=l>1e3?`${l}s`:`${l}ms`,i.chars=x,i}}function _t(...e){return e.join(ee)}function ft(e,a=se){if(e<=0)return a;let i=d,p=1;do i+=a;while(p++a in e}function Ae(e){return Ke.call(e).slice(8,-1)==="Array"}function Ot(e){return Ke.call(e).slice(8,-1)==="Object"}function Ct(e){return Ke.call(e).slice(8,-1)==="String"}function st(e){return Ke.call(e).slice(8,-1)==="Boolean"}function ht(e){return Ke.call(e).slice(8,-1)==="Number"}function Ue(e){return Ke.call(e).slice(8,-1)==="Undefined"}function $t(e){let a=r.count,i=r.stack.index,p=0,x=0,l=0,j=0,s=0,n=0,h=0,o=!0,{count:L}=r,k=r.stack.token,O=r.stack.index,c=r.lineOffset,f=e.lexer[L]==="style",b=f&&k==="global",Y=f?[";","separator"]:[",","separator"],u=[],G={begin:[],ender:[],lexer:[],lines:[],stack:[],token:[],types:[]};function B(q,E){let I=q[0],ie=E[0];if(e.types[I]==="comment"){do I=I+1;while(Ie.token[ie].toLowerCase()?1:-1}j=a;do{if(e.begin[a]===i||b&&a-1)return;if(e.token[a]===Y[0]||f===!0&&t(e.token[a],125)&&F(e.token[a+1],59)?(o=!0,s=a+1):f===!0&&t(e.token[a-1],125)&&(o=!0,s=a),s===0&&e.types[0]==="comment")do s=s+1;while(e.types[s]==="comment");else e.types[s]==="comment"&&e.lines[s]<2&&(s=s+1);o===!0&&(e.token[a]===Y[0]||f===!0&&t(e.token[a-1],125))&&s<=j&&((f===!0&&"};".indexOf(e.token[j])<0||f===!1&&F(e.token[j],44))&&(j=j+1),u.push([s,j]),f===!0&&t(e.token[s],125)?j=s:j=s-1)}a=a-1}while(a>i);if(u.length>0&&u[u.length-1][0]>a+1){if(p=u[u.length-1][0]-1,e.types[p]==="comment"&&e.lines[p]>1){do p=p-1;while(p>0&&e.types[p]==="comment");u[u.length-1][0]=p+1}if(e.types[a+1]==="comment"&&a===-1)do a=a+1;while(e.types[a+1]==="comment");u.push([a+1,p])}if(u.length>1&&(f===!0||r.language==="json"||t(e.token[a-1],61)||t(e.token[a-1],58)||t(e.token[a-1],40)||t(e.token[a-1],91)||t(e.token[a-1],44)||e.types[a-1]==="word"||a===0)){u.sort(B),h=u.length,o=!1,i=0;do{if(n=u[i][1],f===!0&&(l=n,e.types[l]==="comment"&&(l=l-1),t(e.token[l],125)?(n=n+1,Y[0]="}",Y[1]="end"):(Y[0]=";",Y[1]="separator")),p=u[i][0],f===!0&&e.types[n-1]!=="end"&&e.types[n]==="comment"&&e.types[n+1]!=="comment"&&i0&&G.types[p]==="comment");p=p+1,r.splice({data:G,howmany:0,index:p,record:{begin:O,stack:b?"global":k,ender:r.count,lexer:G.lexer[p-1],lines:0,token:Y[0],types:Y[1]}}),x=x+1}i=i+1}while(i0&&x.types[i].indexOf("attribute")>-1&&x.types[i].indexOf("end")<0&&x.types[i-1].indexOf("start")<0&&x.types[i-1].indexOf("attribute")<0&&x.lexer[i]==="markup"&&j.push(i-1),i>0&&x.types[i-1].indexOf("attribute")>-1&&x.types[i].indexOf("attribute")<0&&x.lexer[j[j.length-1]]==="markup"&&x.types[j[j.length-1]].indexOf("start")<0&&j.pop(),x.begin[i]!==j[j.length-1]&&(x.begin[i]=j.length>0?j[j.length-1]:-1),x.types[i].indexOf("else")>-1&&(j.length>0?j[j.length-1]=i:j.push(i)),x.types[i].indexOf("end")>-1&&j.pop(),x.types[i].indexOf("start")>-1&&j.push(i),i=i+1;while(i-1&&(l.push(i),p=p+1),x.ender[i]=p>-1?l[p]:-1,x.types[i].indexOf("start")>-1&&(l.pop(),p=p-1);while(i>e)}function Ut(e){let a=0,i=e.length,p=e,x=p.map(s=>s[1]),l=()=>{let s=0,n=p.length;if(s{let n=a,h=0,o=0,L=0,k=[],O=p[a];if(n{let j=p.length,s=0;if(s{let s=a,n=0,h=0,o=0,L=p[a],k=[],O=d,c=typeof L;if(sL||O>c?(L=p[s],k=[s]):p[s]===L&&k.push(s),s=s+1;while(s{let l=0,j=a.length;if(l{let j=0,s=[],n=a.length;if(j0?(i.push(s[0]),x(s[0])):(this.recursive===!0&&p(),e=a)};return x(this.array[0]),e}function an(e={embedded:{schema:[{language:"json"}],style:[{language:"css"}],stylesheet:[{language:"css"},{language:"scss",argument:/['"]scss['"]/}],javascript:[{language:"javascript"}]},tags:["form","paginate","capture","case","comment","for","if","raw","tablerow","unless","schema","style","script","stylesheet","javascript"],control:["if","unless","case"],else:["else","elsif","when"],singletons:["include","layout","section","assign","liquid","break","continue","cycle","decrement","echo","increment","render"]}){let a=new Set(e.else),i=new Set(e.control),p=new Set(e.tags),x=new Set(e.singletons),l={};return j(e.embedded),{get grammar(){return e},get tags(){return p},get control(){return i},get else(){return a},get singleton(){return x},get embed(){return l},extend(s){for(let n in s)if(Ae(s[n]))for(let h of s[n])n==="tags"&&p.has(h)===!1?(e.tags.push(h),p.add(h)):n==="else"&&a.has(h)===!1?(e.else.push(h),a.add(h)):n==="control"&&i.has(h)?(e.control.push(h),i.add(h)):n==="singletons"&&x.has(h)===!1&&(e.singletons.push(h),x.add(h));else n==="embedded"&&typeof s[n]=="object"&&j(s[n])}};function j(s){for(let n in s)for(let{language:h,argument:o=null}of s[n])if(n in l||(l[n]={tag:n,language:h,args:new Map([[new Set,{tag:n,language:h}]])}),o){for(let[L]of l[n].args)if(L!==null)if(Ae(o))for(let k of o)L.has(k)||L.add(k);else{let k=new RegExp(o);if(L.size>0)for(let O of L)O instanceof RegExp&&O.source!==k.source&&L.add(k);else L.add(k)}}}}function ln(e={tags:["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"]}){let a=new Set(e.tags);return{get grammar(){return e},get tags(){return a},extend(i){for(let p in i)if(Ae(i[p]))for(let x of i[p])p==="tags"&&a.has(x)===!1&&(e.tags.push(x),a.add(x))}}}function un(e={embedded:{script:[{language:"javascript"},{language:"json",attribute:{type:["application/json","application/ld+json"]}},{language:"jsx",attribute:{type:["text/jsx","application/jsx"]}}],style:[{language:"css"}]},voids:["area","base","br","col","command","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],tags:["a","abbr","acronym","address","applet","article","aside","audio","b","basefont","bdi","bdo","big","blockquote","body","button","canvas","caption","center","cite","code","colgroup","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","fieldset","figcaption","figure","figure","font","footer","form","frame","frameset","h1","h6","head","header","html","i","iframe","ins","isindex","kbd","label","legend","fieldset","li","main","map","mark","marquee","menu","meter","nav","noframes","frame","noscript","object","ol","optgroup","option","output","p","object","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","picture","video","audio","span","strike","strong","style","sub","summary","details","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","audio","video","tt","u","ul","var","video"]}){let a=new Set(e.tags),i=new Set(e.voids),p={};return x(e.embedded),{get grammar(){return e},get tags(){return a},get voids(){return i},get embed(){return p},extend(l){for(let j in l)if(Ae(l[j]))for(let s of l[j])j==="tags"&&a.has(s)===!1?(e.tags.push(s),a.add(s)):j==="voids"&&i.has(s)===!1&&(e.voids.push(s),i.add(s));else j==="embedded"&&typeof l[j]=="object"&&x(l[j])}};function x(l){for(let j in l){j in p||(p[j]={tag:j,attr:new Map});for(let{language:s,attribute:n}of l[j])if("language"in p[j]||(p[j].language=s),p[j].attr.has(s)||p[j].attr.set(s,{tag:j,language:s,attr:new Map}),n){let h=p[j].attr.get(s);for(let o in n){h.attr.has(o)||h.attr.set(o,{tag:j,language:s,attr:o,value:new Set});let L=p[j].attr.get(s).attr.get(o);if(Ae(n[o]))for(let k of n[o])L.value.has(k)||L.value.add(k);else{let k=new RegExp(n[o]);if(L.value.size>0)for(let O of L.value)O instanceof RegExp&&O.source!==k.source&&L.value.add(k);else L.value.add(k)}}}}}}function cn(e={units:["%","cap","ch","cm","deg","dpcm","dpi","dppx","em","ex","fr","grad","Hz","ic","in","kHz","lh","mm","ms","mS","pc","pt","px","Q","rad","rem","rlh","s","turn","vb","vh","vi","vmax","vmin","vw"],atrules:["@charset","@color-profile","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@supports"],webkit:{classes:["webkit-any","webkit-any-link*","webkit-autofill"],elements:["webkit-file-upload-button","webkit-inner-spin-button","webkit-input-placeholder","webkit-meter-bar","webkit-meter-even-less-good-value","webkit-meter-inner-element","webkit-meter-optimum-value","webkit-meter-suboptimum-value","webkit-outer-spin-button","webkit-progress-bar","webkit-progress-inner-element","webkit-progress-value","webkit-search-cancel-button","webkit-search-results-button","webkit-slider-runnable-track","webkit-slider-thumb"]},pseudo:{classes:["active","any-link","checked","default","defined","disabled","empty","enabled","first","first-child","first-of-type","fullscreen","focus","focus-visible","focus-within","host","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","modal","not","nth-child","nth-col","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","picture-in-picture","placeholder-shown","paused","playing","read-only","read-write","required","right","root","scope","target","valid","visited","where"],elements:["after","backdrop","before","cue","cue-region","first-letter","first-line","file-selector-button","marker","part","placeholder","selection","slotted"],functions:["after","before","first-letter","first-line","host","host-context","part","slotted","lang","not","nth-child","nth-col","nth-last-child","nth-last-of-type","nth-of-type","where"]}}){let a=new Set(e.units),i=new Set(e.atrules),p=new Set(e.pseudo.classes),x=new Set(e.pseudo.elements),l=new Set(e.pseudo.functions),j=new Set(e.webkit.elements),s=new Set(e.webkit.classes);return{get grammar(){return e},get units(){return a},get pseudoClasses(){return p},get pseudoElements(){return x},get pseudoFunctions(){return l},get webkitElements(){return j},get webkitClasses(){return s},atrules(n){return i.has(n.slice(0,n.indexOf("(")).trim())},extend(n){for(let h in n){if(Ae(n[h]))for(let o of n[h])h==="units"&&!a.has(o)?(e[h].push(o),a.add(o)):h==="atrules"&&!i.has(o)&&(e[h].push(o),i.add(o));if(typeof n[h]=="object"){for(let o in n[h])if(Ae(n[h][o]))for(let L of n[h][o])h==="webkit"?o==="elements"?(e[h][o].push(L),j.add(L)):o==="classes"&&(e[h][o].push(L),s.add(L)):h==="pseudo"&&(o==="elements"?(e[h][o].push(L),x.add(L)):o==="classes"?(e[h][o].push(L),p.add(L)):o==="functions"&&(e[h][o].push(L),l.add(L)))}}}}}function pn(e={keywords:["ActiveXObject","ArrayBuffer","AudioContext","Canvas","CustomAnimation","DOMParser","DataView","Date","Error","EvalError","FadeAnimation","FileReader","Flash","Float32Array","Float64Array","FormField","Frame","Generator","HotKey","Image","Iterator","Intl","Int16Array","Int32Array","Int8Array","InternalError","Loader","Map","MenuItem","MoveAnimation","Notification","ParallelArray","Point","Promise","Proxy","RangeError","Rectangle","ReferenceError","Reflect","RegExp","ResizeAnimation","RotateAnimation","Set","SQLite","ScrollBar","Set","Shadow","StopIteration","Symbol","SyntaxError","Text","TextArea","Timer","TypeError","URL","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","URIError","WeakMap","WeakSet","Web","Window","XMLHttpRequest"]}){let a=new Set(e.keywords);return{get grammar(){return e},get keywords(){return a},extend(i){for(let p in i)if(Ae(i[p]))for(let x of i[p])p==="keywords"&&!a.has(x)&&(e[p].push(x),a.add(x))}}}var je=function(){let e=cn(),a=an(),i=pn(),p=un(),x=ln();return{html:p,liquid:a,js:i,css:e,svg:x,extend(l){if(typeof l=="object")for(let j in l)j==="liquid"?a.extend(l.liquid):j==="html"?p.extend(l.html):j==="css"?e.extend(l.css):(j==="js"||j==="svg")&&i.extend(l.js);return{get html(){return p.grammar},get liquid(){return a.grammar},get js(){return i.grammar},get css(){return e.grammar},get svg(){return e.grammar}}}}}();function Ee(e,a=NaN,i){if(Ct(e)===!1)return d;if(F(e,60)&&F(e,123))return i||e;if(t(e,60)){let x=e.search(/[\s>]/),l=e.slice(t(e[1],47)?2:1,x);return t(l,63)&&Me(l,63)?"xml":isNaN(a)?l:l.slice(a)}let p=(t(e[2],45)?e.slice(3).trimStart():e.slice(2).trimStart()).split(/\s|-?[%}]}/).shift();return isNaN(a)?p:p.slice(a)}function Ft(e){return(a,i,p)=>{let x=e,l=e;return t(p[i-1],92)&&(x=a[0]),t(a[a.length-2],92)&&(l=a[a.length-1]),x+a.slice(1,-1)+l}}var ze={version:"0.5.5-beta.1",env:typeof process<"u"&&process.versions!=null?"node":"browser",lastUpdate:new Date().toDateString(),cwd:null,reportStats:!0,editorConfig:!1,throwErrors:!0,persistRules:!0,logLevel:2,logColors:!0,resolveConfig:"package.json"};function Ge(e,a,i){i||(i=Ee(a));let p=Kt(e,i,r.lineNumber);p.language=ot(r.language),r.error=_t(p.message,ee,fn(),ee,p.details,ee,`Language: ${ot(r.language)} `,`Location: ${r.lineNumber}:${r.lineColumn}`,`\xC6sthetic: Parse Failed (Code: ${p})`)}function Qt(e,a,i){i||(i=Ee(a.token));let p=Kt(e,i,a.line);p.language=ot(r.language),r.error=_t(p.message,ee,dn(a),ee,p.details,ee,Oe(`Language: ${ot(r.language)}`),Oe(`Location: ${a.line}`),Oe(`\xC6sthetic: Parse Failed (Code: ${e})`))}function _e(e){return _t(`Rule Error: ${e.message}`,ee,`Definition: ${e.option}`,`Provided: ${e.provided} `,`Expected: ${e.expected.join(", ")} `)}var zt=e=>`\x1B[93m${"^".repeat(e)}\x1B[39m`;function dn(e){let a=e.line-r.get(e.index).lines,i=0,p="",x=r.source.split(ee).slice(a,e.line),l=`${e.line+1}`.length,j=[],{indentSize:s,indentChar:n}=r.rules;do{let h=`${a+1}`,o=l-h.length>0?` \x1B[90m${h} |`:`\x1B[90m${h} |`;if(p=x[i],i===0){if(Ue(x[i])){j.push(`${o} \x1B[31m${e.token}\x1B[39m`);break}p=x[i].trimStart(),j.push(`${o} \x1B[31m${p}\x1B[39m`)}else{let L=p.match(/^\s*/);L!==null&&L[0].length>s?(p=n.repeat(s)+p.trimStart(),j.push(`${o} \x1B[31m${p}\x1B[39m`)):j.push(`${o} \x1B[31m${p}\x1B[39m`)}i=i+1,a=a+1}while(i2&&(l=p-3),i.length===2&&(l=p-2);do{let s=`${l+1}`,n=x-s.length>0?` \x1B[90m${s} |`:`\x1B[90m${s} |`,h=i[l].trim();if(l>p)break;if(!h){a.push(`${n} \x1B[90m${h||"\u2424"}`),l=l+1;continue}l===p-1?h.length===0?a.push(`${" ".repeat(x+2)} ${zt(j.length)}`):(a.push(`${n} \x1B[31m${h}\x1B[39m`),a.push(`${" ".repeat(x+2)} ${zt(h.length)}`)):a.push(`${n} \x1B[90m${h||"\u2424"}`),l=l+1,j=h}while(l" tag type has an incomplete HTML syntactic structure resulting in a parse error.`,`To resolve the issue check that you have a closing "" tag. For more information`,"see: https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags")},112:{code:e,message:Oe(`Syntax Error (line ${i}): Missing Liquid "end${a}" tag`),details:Oe(`The Liquid "${a}" is a tag block type which requires an end tag be provided.`,"For more information, see: https://shopify.dev/api/liquid/tags")},104:{code:e,message:Oe(`Syntax Error (line ${i}): Missing HTML start "${a}" tag`),details:Oe("There is an incorrect placement or an incomplete structure resulting in a parse error.",`To resolve the issue, you may need to provide a start \`<${a}>\` tag type or correct the placement. `)},110:{code:e,message:Oe(`Syntax Error (line ${i}): Missing Liquid start "${a}" tag`),details:Oe("The Liquid tag has incorrect placement or an incomplete structure resulting in a parse error.","To resolve the issue, you may need to provide a start tag type or correct the placement. ")},111:{code:e,message:Oe(`Syntax Error (line ${i}): Missing Close Delimiter "%}" or "}}" on liquid tag`),details:Oe("The Liquid tag is missing its closing delimiter resulting in malformed syntax.")},106:{code:e,message:Oe(`Syntax Error (line ${i}): Missing HTML ">" delimiter on end tag`),details:Oe("The HTML tag is missing its closing delimiter resulting in malformed syntax.",'You can have Esthetic autofix syntax errors like this by setting the markup rule "correct" to true.')},107:{code:e,message:Oe(`Illegal Syntax (line ${i}): Invalid HTML Comment Attribute`),details:Oe("HTML comments are not allowed inside tags, start or end, at all.","To resolve the issue, remove the comment or place it above the tag.","For more information see: https://html.spec.whatwg.org/multipage/syntax.html#start-tags")},103:{code:e,message:Oe(`Syntax Error (line ${i}): Invalid quotation character`),details:Oe(`Bad quotation character (\u201C, “) provided. Only single ' or double "`,"quotations characters are valid in HTML (markup) languages. For more information see:","https://html.spec.whatwg.org/multipage/parsing.html#attribute-value-(double-quoted)-state")},108:{code:e,message:Oe(`Syntax Error (line ${i}): Invalid CDATA Termination Sequence`),details:Oe("The CDATA bracket state sequence provided is invalid resulting in a parse error.","For more information see: https://html.spec.whatwg.org/multipage/parsing.html#cdata-section-bracket-state")},114:{code:e,message:Oe(`Syntax Error (line ${i}): Invalid character sequence in "${a}" token`),details:Oe("An invalid sequence of characters defined")},101:{code:e,message:Oe(`Syntax Error (line ${i}): Unterminated String`),details:Oe("There is an unterminated string sequence resulting in a parse error.")}}[e]}var lt=/\S/,Re=/^\s+$/,tt=/\s+/g,pt=/^\s+/,Fe=/\s+$/,He=/^[\t\v\f\r \u00a0\u2000-\u200b\u2028-\u2029\u3000]+/,Mt=/[\t\v\f \u00a0\u2000-\u200b\u2028-\u2029\u3000]+$/,hn=/[\t\v\r \u00a0\u2000-\u200b\u2028-\u2029\u3000]+/g,Et=/^\n+/,gn=/({%-?\s*(?:comment\s*-?%}|#)|$/,bn=/{%-?|-?%}/g,yn=/^{%-?\s*#/,Wt=/(\/|\\|\||\*|\[|\]|\{|\})/g;function At(e){let{rules:a}=r,i=[],p=[],x=e.begin.replace(Wt,Nt),l=t(e.begin[0],123)&&t(e.begin[1],37),j=new RegExp(`^(${x}\\s*esthetic-ignore-start)`),s=new RegExp(`(${x}\\s*)`),n=l?new RegExp(`\\s*${e.ender.replace(bn,g=>t(g,123)?"{%-?\\s*":"\\s*-?%}")}$`):new RegExp(e.ender.replace(Wt,Nt)),h=e.start,o=0,L=0,k=0,O=0,c=[],f=d,b=d,Y=!1,u=!1,G=!1,B=d,q=e.ender.length-1,E=e.ender.charAt(q),I=0;function ie(){if(Re.test(c[o+1])||c[o+1]===d)do o=o+1;while(oe.start);if(e.begin==="/*"&&t(e.chars[o],42)?g="*/":e.begin!=="/*"&&(g=e.ender),q=g.length-1,E=g.charAt(q),g!==ee||e.chars[h]!==ee)do{if(i.push(e.chars[h]),g===ee&&e.chars[h+1]===ee||e.chars[h]===E&&e.chars.slice(h-q,h+1).join(d)===g)break;h=h+1}while(h0&&B.replace(ee,d).indexOf(ee)>0&&/\n(?!(\s*\*))/.test(B)===!1)return[B,h];if(o=e.start,o>0&&F(e.chars[o-1],10)&&ue(e.chars[o-1]))do o=o-1;while(o>0&&F(e.chars[o-1],10)&&ue(e.chars[o-1]));f=e.chars.slice(o,e.start).join(d);let S=new RegExp(ee+f,"g");c=B.replace(/\r\n/g,ee).replace(S,ee).split(ee),O=c.length,c[0]=c[0].replace(s,d),c[O-1]=c[O-1].replace(n,d),O<2&&(c=c[0].split(se)),c[0]===d?c[0]=e.begin:c.splice(0,0,e.begin),O=c.length,o=0;do{if(b=oa.wrap&&c[o].replace(He,d).indexOf(se)>a.wrap)c[o]=c[o].replace(He,d),L=c[o].indexOf(se),p.push(c[o].slice(0,L)),c[o]=c[o].slice(L+1),o=o-1;else{if(I=o<1?a.wrap-e.begin.length+1:a.wrap,c[o]=(e.begin==="/*"&&c[o].indexOf("/*")!==0?" ":d)+c[o].replace(He,d).replace(Mt,d).replace(tt,se),k=c[o].replace(He,d).indexOf(se),L=c[o].length,L>I&&k>0&&k0);/^\s*\d+\.\s/.test(c[o])===!0&&/^\s*\d+\.\s/.test(c[o+1])===!1&&c.splice(o+1,0,"1. "),Re.test(c[o+1])===!0||c[o+1]===d?(p.push(c[o].slice(0,L)),c[o]=c[o].slice(L+1),Y=!0,o=o-1):/^\s*[*-]\s/.test(c[o+1])?(p.push(c[o].slice(0,L)),c[o]=c[o].slice(L+1),u=!0,o=o-1):/^\s*\d+\.\s/.test(c[o+1])?(p.push(c[o].slice(0,L)),c[o]=c[o].slice(L+1),G=!0,o=o-1):c[o].replace(He,d).indexOf(se)a.wrap?c[o].slice(L+1)+r.crlf+c[o+1]:c[o].slice(L+1)+se+c[o+1]),Y===!1&&u===!1&&G===!1&&(c[o]=c[o].slice(0,L))}else c[o+1]!==void 0&&(c[o].length+b.indexOf(se)>a.wrap&&b.indexOf(se)>0||c[o].length+b.length>a.wrap&&b.indexOf(se)<0)?(p.push(c[o]),o=o+1):(c[o+1]!==void 0&&Re.test(c[o+1])===!1&&c[o+1]!==d&&/^\s*(?:[*-]|\d+\.)\s/.test(c[o+1]),p.push(c[o]),Y=!0);u=!1,G=!1}o=o+1}while(o0?(p[p.length-1].length>a.wrap-(e.ender.length+1)||c.length-1>p.length&&c.slice(p.length+1).forEach(g=>{g===d&&p.push(g)}),p.push(e.ender),B=p.join(r.crlf)):(c[c.length-1]=c[c.length-1]+e.ender,B=c.join(r.crlf)),[B,h]}function Rt(e){let{wrap:a}=r.rules,{preserveComment:i}=r.rules[r.lexer],p=e.start,x=0,l=d,j=[];function s(){let h=d;do if(x=x+1,t(e.chars[x+1],10))return;while(x-1?(o.begin=r.stack.index,o.stack=r.stack.token,o.token=r.data.token[r.count]):(o.begin=-1,o.stack="global",o.token=d);let L=0,k=0;if(l=l.replace(/\s+/g,se).replace(Fe,d),k=l.length,!(a>k)){do{if(L=a,F(l[L],32)){do L=L-1;while(L>0&&F(l[L],32));if(L<3){L=a;do L=L+1;while(Le.start&&t(e.chars[x-1],47)&&(t(e.chars[x],42)||t(e.chars[x],47)));if(t(e.chars[x],42)&&(h="*/"),h!==ee||F(e.chars[p],10))do{if(j.push(e.chars[p]),h===ee&&t(e.chars[p+1],10))break;p=p+1}while(p delimiter character breaks itself onto a new line",default:"inline",type:"choice",values:[{rule:"inline",description:"Inline the ending delimiter"},{rule:"force",description:"Force the ending delimiter onto its own line"},{rule:"adapt",description:"adapt the delimiter in accordance with structure"}],preset:{default:"inline",prettier:"force",recommended:"adapt",strict:"adapt",warrington:"adapt"}},forceAttribute:{default:!1,description:"If all markup attributes should be indented each onto their own line. This option accepts either a boolean or number value, depending on your preferences you can either force attributes based a count limit, disable forcing or always enable enforcing.",type:{number:"Optionally define an attribute force threshold. When the number of attributes exceeds this limit then they will be forced, otherwise they will be left intact.",boolean:"Whether or not to enforce the rule. A value of true will always force attributes, whereas a value of false will never force attributes."},preset:{default:!1,prettier:1,recommended:2,strict:2,warrington:2}},forceIndent:{default:!1,description:"Will force indentation upon all content and tags without regard for the creation of new text nodes.",type:"boolean",preset:{default:!1,prettier:!0,recommended:!0,strict:!0,warrington:!0}},ignoreJS:{default:!0,description:"Whether to ignore embedded regions of tags identified to contain JavaScript",type:"boolean",preset:{default:!0,prettier:!0,recommended:!0,strict:!1,warrington:!1}},ignoreCSS:{default:!1,description:"Whether to ignore embedded regions of tags identified to contain CSS",type:"boolean",preset:{default:!1,prettier:!0,recommended:!1,strict:!1,warrington:!1}},ignoreJSON:{default:!1,description:"Whether HTML ngx-lib - Handy angular components and Service @@ -10,9 +16,9 @@ - - + + - + diff --git a/main-6OGE6FQE.js b/main-6OGE6FQE.js deleted file mode 100644 index 76ca23e..0000000 --- a/main-6OGE6FQE.js +++ /dev/null @@ -1 +0,0 @@ -import{$ as vt,$a as $e,A as pt,Aa as bn,B as se,Ba as An,C as hn,Ca as ei,D as Br,Da as ti,E as $r,Ea as oe,F as jr,Fa as Rn,G as B,Ga as In,H as zr,Ha as ni,I as R,Ia as St,J as S,Ja as Et,K as m,Ka as H,L as gt,La as V,M as Hr,Ma as P,N as w,Na as ri,O as fn,Oa as ii,P as D,Pa as Be,Q as l,Qa as bt,R as pn,Ra as si,S as Vr,Sa as x,T as xe,Ta as oi,U as N,Ua as At,V as mt,Va as Fn,W as Dt,Wa as Mn,X as gn,Xa as Tn,Y as Gr,Ya as _n,Z as ke,Za as Rt,_ as z,_a as ai,a as h,aa as mn,ab as ui,b as A,ba as Dn,bb as je,c as Lr,ca as yt,cb as On,d as Nr,da as qr,db as ci,e as an,ea as le,eb as li,f as un,fa as Y,g as re,ga as vn,h as L,ha as Ue,i as ie,ia as Ct,j as M,ja as Wr,k as p,ka as yn,l as Pe,la as Yr,m as Pr,ma as de,n as xr,na as Cn,o as y,oa as wn,p as ft,pa as Zr,q as T,qa as ye,r as cn,ra as Z,s as kr,sa as he,t as ln,ta as Kr,u as ce,ua as Xr,v as me,va as wt,w as De,wa as Sn,x as dn,xa as Qr,y as ve,ya as En,z as Ur,za as Jr}from"./chunk-HJ2TSOSY.js";var pi=null;function Ce(){return pi}function gi(t){pi??=t}var It=class{};var F=new w(""),Pn=(()=>{class t{historyGo(e){throw new Error("")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:()=>l(_s),providedIn:"platform"})}}return t})(),mi=new w(""),_s=(()=>{class t extends Pn{constructor(){super(),this._doc=l(F),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Ce().getBaseHref(this._doc)}onPopState(e){let n=Ce().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){let n=Ce().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,n,i){this._history.pushState(e,n,i)}replaceState(e,n,i){this._history.replaceState(e,n,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:()=>new t,providedIn:"platform"})}}return t})();function xn(t,r){if(t.length==0)return r;if(r.length==0)return t;let e=0;return t.endsWith("/")&&e++,r.startsWith("/")&&e++,e==2?t+r.substring(1):e==1?t+r:t+"/"+r}function di(t){let r=t.match(/#|\?|$/),e=r&&r.index||t.length,n=e-(t[e-1]==="/"?1:0);return t.slice(0,n)+t.slice(e)}function K(t){return t&&t[0]!=="?"?"?"+t:t}var Q=(()=>{class t{historyGo(e){throw new Error("")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:()=>l(kn),providedIn:"root"})}}return t})(),Di=new w(""),kn=(()=>{class t extends Q{constructor(e,n){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??l(F).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return xn(this._baseHref,e)}path(e=!1){let n=this._platformLocation.pathname+K(this._platformLocation.search),i=this._platformLocation.hash;return i&&e?`${n}${i}`:n}pushState(e,n,i,s){let o=this.prepareExternalUrl(i+K(s));this._platformLocation.pushState(e,n,o)}replaceState(e,n,i,s){let o=this.prepareExternalUrl(i+K(s));this._platformLocation.replaceState(e,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(n){return new(n||t)(D(Pn),D(Di,8))}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),vi=(()=>{class t extends Q{constructor(e,n){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(e){let n=xn(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,i,s){let o=this.prepareExternalUrl(i+K(s));o.length==0&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,n,o)}replaceState(e,n,i,s){let o=this.prepareExternalUrl(i+K(s));o.length==0&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(n){return new(n||t)(D(Pn),D(Di,8))}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})(),we=(()=>{class t{constructor(e){this._subject=new le,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;let n=this._locationStrategy.getBaseHref();this._basePath=Ns(di(hi(n))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+K(n))}normalize(e){return t.stripTrailingSlash(Ls(this._basePath,hi(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",i=null){this._locationStrategy.pushState(i,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+K(n)),i)}replaceState(e,n="",i=null){this._locationStrategy.replaceState(i,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+K(n)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(i=>i(e,n))}subscribe(e,n,i){return this._subject.subscribe({next:e,error:n,complete:i})}static{this.normalizeQueryParams=K}static{this.joinWithSlash=xn}static{this.stripTrailingSlash=di}static{this.\u0275fac=function(n){return new(n||t)(D(Q))}}static{this.\u0275prov=m({token:t,factory:()=>Os(),providedIn:"root"})}}return t})();function Os(){return new we(D(Q))}function Ls(t,r){if(!t||!r.startsWith(t))return r;let e=r.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:r}function hi(t){return t.replace(/\/index.html$/,"")}function Ns(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}function yi(t,r){r=encodeURIComponent(r);for(let e of t.split(";")){let n=e.indexOf("="),[i,s]=n==-1?[e,""]:[e.slice(0,n),e.slice(n+1)];if(i.trim()===r)return decodeURIComponent(s)}return null}var Un="browser",Ps="server";function xs(t){return t===Un}function Bn(t){return t===Ps}var Ci=(()=>{class t{static{this.\u0275prov=m({token:t,providedIn:"root",factory:()=>xs(l(de))?new Ln(l(F),window):new Nn})}}return t})(),Ln=class{constructor(r,e){this.document=r,this.window=e,this.offset=()=>[0,0]}setOffset(r){Array.isArray(r)?this.offset=()=>r:this.offset=r}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(r){this.window.scrollTo(r[0],r[1])}scrollToAnchor(r){let e=ks(this.document,r);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(r){this.window.history.scrollRestoration=r}scrollToElement(r){let e=r.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],i-s[1])}};function ks(t,r){let e=t.getElementById(r)||t.getElementsByName(r)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),i=n.currentNode;for(;i;){let s=i.shadowRoot;if(s){let o=s.getElementById(r)||s.querySelector(`[name="${r}"]`);if(o)return o}i=n.nextNode()}}return null}var Nn=class{setOffset(r){}getScrollPosition(){return[0,0]}scrollToPosition(r){}scrollToAnchor(r){}setHistoryScrollRestoration(r){}},Ft=class{};var zn=class extends It{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Hn=class t extends zn{static makeCurrent(){gi(new t)}onAndCancel(r,e,n){return r.addEventListener(e,n),()=>{r.removeEventListener(e,n)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.remove()}createElement(r,e){return e=e||this.getDefaultDocument(),e.createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return e==="window"?window:e==="document"?r:e==="body"?r.body:null}getBaseHref(r){let e=$s();return e==null?null:js(e)}resetBaseElement(){ze=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return yi(document.cookie,r)}},ze=null;function $s(){return ze=ze||document.querySelector("base"),ze?ze.getAttribute("href"):null}function js(t){return new URL(t,document.baseURI).pathname}var zs=(()=>{class t{build(){return new XMLHttpRequest}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})(),Vn=new w(""),bi=(()=>{class t{constructor(e,n){this._zone=n,this._eventNameToPlugin=new Map,e.forEach(i=>{i.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,n,i){return this._findPluginFor(n).addEventListener(e,n,i)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(s=>s.supports(e)),!n)throw new S(5101,!1);return this._eventNameToPlugin.set(e,n),n}static{this.\u0275fac=function(n){return new(n||t)(D(Vn),D(Y))}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})(),Mt=class{constructor(r){this._doc=r}},$n="ng-app-id",Ai=(()=>{class t{constructor(e,n,i,s={}){this.doc=e,this.appId=n,this.nonce=i,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Bn(s),this.resetHostNodes()}addStyles(e){for(let n of e)this.changeUsageCount(n,1)===1&&this.onStyleAdded(n)}removeStyles(e){for(let n of e)this.changeUsageCount(n,-1)<=0&&this.onStyleRemoved(n)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(n=>n.remove()),e.clear());for(let n of this.getAllStyles())this.onStyleRemoved(n);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let n of this.getAllStyles())this.addStyleToHost(e,n)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let n of this.hostNodes)this.addStyleToHost(n,e)}onStyleRemoved(e){let n=this.styleRef;n.get(e)?.elements?.forEach(i=>i.remove()),n.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${$n}="${this.appId}"]`);if(e?.length){let n=new Map;return e.forEach(i=>{i.textContent!=null&&n.set(i.textContent,i)}),n}return null}changeUsageCount(e,n){let i=this.styleRef;if(i.has(e)){let s=i.get(e);return s.usage+=n,s.usage}return i.set(e,{usage:n,elements:[]}),n}getStyleElement(e,n){let i=this.styleNodesInDOM,s=i?.get(n);if(s?.parentNode===e)return i.delete(n),s.removeAttribute($n),s;{let o=this.doc.createElement("style");return this.nonce&&o.setAttribute("nonce",this.nonce),o.textContent=n,this.platformIsServer&&o.setAttribute($n,this.appId),e.appendChild(o),o}}addStyleToHost(e,n){let i=this.getStyleElement(e,n),s=this.styleRef,o=s.get(n)?.elements;o?o.push(i):s.set(n,{elements:[i],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.\u0275fac=function(n){return new(n||t)(D(F),D(yn),D(Cn,8),D(de))}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})(),jn={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},qn=/%COMP%/g,Ri="%COMP%",Hs=`_nghost-${Ri}`,Vs=`_ngcontent-${Ri}`,Gs=!0,qs=new w("",{providedIn:"root",factory:()=>Gs});function Ws(t){return Vs.replace(qn,t)}function Ys(t){return Hs.replace(qn,t)}function Ii(t,r){return r.map(e=>e.replace(qn,t))}var wi=(()=>{class t{constructor(e,n,i,s,o,u,a,c=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=i,this.removeStylesOnCompDestroy=s,this.doc=o,this.platformId=u,this.ngZone=a,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=Bn(u),this.defaultRenderer=new He(e,o,a,this.platformIsServer)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===xe.ShadowDom&&(n=A(h({},n),{encapsulation:xe.Emulated}));let i=this.getOrCreateRenderer(e,n);return i instanceof Tt?i.applyToHost(e):i instanceof Ve&&i.applyStyles(),i}getOrCreateRenderer(e,n){let i=this.rendererByCompId,s=i.get(n.id);if(!s){let o=this.doc,u=this.ngZone,a=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(n.encapsulation){case xe.Emulated:s=new Tt(a,c,n,this.appId,d,o,u,f);break;case xe.ShadowDom:return new Gn(a,c,e,n,o,u,this.nonce,f);default:s=new Ve(a,c,n,d,o,u,f);break}i.set(n.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(n){return new(n||t)(D(bi),D(Ai),D(yn),D(qs),D(F),D(de),D(Y),D(Cn))}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})(),He=class{constructor(r,e,n,i){this.eventManager=r,this.doc=e,this.ngZone=n,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(r,e){return e?this.doc.createElementNS(jn[e]||e,r):this.doc.createElement(r)}createComment(r){return this.doc.createComment(r)}createText(r){return this.doc.createTextNode(r)}appendChild(r,e){(Si(r)?r.content:r).appendChild(e)}insertBefore(r,e,n){r&&(Si(r)?r.content:r).insertBefore(e,n)}removeChild(r,e){e.remove()}selectRootElement(r,e){let n=typeof r=="string"?this.doc.querySelector(r):r;if(!n)throw new S(-5104,!1);return e||(n.textContent=""),n}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,n,i){if(i){e=i+":"+e;let s=jn[i];s?r.setAttributeNS(s,e,n):r.setAttribute(e,n)}else r.setAttribute(e,n)}removeAttribute(r,e,n){if(n){let i=jn[n];i?r.removeAttributeNS(i,e):r.removeAttribute(`${n}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,n,i){i&(ye.DashCase|ye.Important)?r.style.setProperty(e,n,i&ye.Important?"important":""):r.style[e]=n}removeStyle(r,e,n){n&ye.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,n){r!=null&&(r[e]=n)}setValue(r,e){r.nodeValue=e}listen(r,e,n){if(typeof r=="string"&&(r=Ce().getGlobalEventTarget(this.doc,r),!r))throw new Error(`Unsupported event target ${r} for event ${e}`);return this.eventManager.addEventListener(r,e,this.decoratePreventDefault(n))}decoratePreventDefault(r){return e=>{if(e==="__ngUnwrap__")return r;(this.platformIsServer?this.ngZone.runGuarded(()=>r(e)):r(e))===!1&&e.preventDefault()}}};function Si(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Gn=class extends He{constructor(r,e,n,i,s,o,u,a){super(r,s,o,a),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=Ii(i.id,i.styles);for(let d of c){let f=document.createElement("style");u&&f.setAttribute("nonce",u),f.textContent=d,this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(r){return r===this.hostEl?this.shadowRoot:r}appendChild(r,e){return super.appendChild(this.nodeOrShadowRoot(r),e)}insertBefore(r,e,n){return super.insertBefore(this.nodeOrShadowRoot(r),e,n)}removeChild(r,e){return super.removeChild(null,e)}parentNode(r){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(r)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Ve=class extends He{constructor(r,e,n,i,s,o,u,a){super(r,s,o,u),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i,this.styles=a?Ii(a,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Tt=class extends Ve{constructor(r,e,n,i,s,o,u,a){let c=i+"-"+n.id;super(r,e,n,s,o,u,a,c),this.contentAttr=Ws(c),this.hostAttr=Ys(c)}applyToHost(r){this.applyStyles(),this.setAttribute(r,this.hostAttr,"")}createElement(r,e){let n=super.createElement(r,e);return super.setAttribute(n,this.contentAttr,""),n}},Zs=(()=>{class t extends Mt{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,i){return e.addEventListener(n,i,!1),()=>this.removeEventListener(e,n,i)}removeEventListener(e,n,i){return e.removeEventListener(n,i)}static{this.\u0275fac=function(n){return new(n||t)(D(F))}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})(),Ei=["alt","control","meta","shift"],Ks={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Xs={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},Qs=(()=>{class t extends Mt{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,n,i){let s=t.parseEventName(n),o=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ce().onAndCancel(e,s.domEventName,o))}static parseEventName(e){let n=e.toLowerCase().split("."),i=n.shift();if(n.length===0||!(i==="keydown"||i==="keyup"))return null;let s=t._normalizeKey(n.pop()),o="",u=n.indexOf("code");if(u>-1&&(n.splice(u,1),o="code."),Ei.forEach(c=>{let d=n.indexOf(c);d>-1&&(n.splice(d,1),o+=c+".")}),o+=s,n.length!=0||s.length===0)return null;let a={};return a.domEventName=i,a.fullKey=o,a}static matchEventFullKeyCode(e,n){let i=Ks[e.key]||e.key,s="";return n.indexOf("code.")>-1&&(i=e.code,s="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),Ei.forEach(o=>{if(o!==i){let u=Xs[o];u(e)&&(s+=o+".")}}),s+=i,s===n)}static eventCallback(e,n,i){return s=>{t.matchEventFullKeyCode(s,e)&&i.runGuarded(()=>n(s))}}static _normalizeKey(e){return e==="esc"?"escape":e}static{this.\u0275fac=function(n){return new(n||t)(D(F))}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})();function Fi(t,r){return ui(h({rootComponent:t},Js(r)))}function Js(t){return{appProviders:[...io,...t?.providers??[]],platformProviders:ro}}function eo(){Hn.makeCurrent()}function to(){return new vn}function no(){return Wr(document),document}var ro=[{provide:de,useValue:Un},{provide:Yr,useValue:eo,multi:!0},{provide:F,useFactory:no,deps:[]}];var io=[{provide:Gr,useValue:"root"},{provide:vn,useFactory:to,deps:[]},{provide:Vn,useClass:Zs,multi:!0,deps:[F,Y,de]},{provide:Vn,useClass:Qs,multi:!0,deps:[F]},wi,Ai,bi,{provide:Xr,useExisting:wi},{provide:Ft,useClass:zs,deps:[]},[]];var Mi=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static{this.\u0275fac=function(n){return new(n||t)(D(F))}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var g="primary",st=Symbol("RouteTitle"),Xn=class{constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function Ie(t){return new Xn(t)}function oo(t,r,e){let n=e.path.split("/");if(n.length>t.length||e.pathMatch==="full"&&(r.hasChildren()||n.lengthn[s]===i)}else return t===r}function ji(t){return t.length>0?t[t.length-1]:null}function ue(t){return Pr(t)?t:Fn(t)?M(Promise.resolve(t)):p(t)}var uo={exact:Hi,subset:Vi},zi={exact:co,subset:lo,ignored:()=>!0};function Ti(t,r,e){return uo[e.paths](t.root,r.root,e.matrixParams)&&zi[e.queryParams](t.queryParams,r.queryParams)&&!(e.fragment==="exact"&&t.fragment!==r.fragment)}function co(t,r){return G(t,r)}function Hi(t,r,e){if(!pe(t.segments,r.segments)||!Lt(t.segments,r.segments,e)||t.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!t.children[n]||!Hi(t.children[n],r.children[n],e))return!1;return!0}function lo(t,r){return Object.keys(r).length<=Object.keys(t).length&&Object.keys(r).every(e=>$i(t[e],r[e]))}function Vi(t,r,e){return Gi(t,r,r.segments,e)}function Gi(t,r,e,n){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!pe(i,e)||r.hasChildren()||!Lt(i,e,n))}else if(t.segments.length===e.length){if(!pe(t.segments,e)||!Lt(t.segments,e,n))return!1;for(let i in r.children)if(!t.children[i]||!Vi(t.children[i],r.children[i],n))return!1;return!0}else{let i=e.slice(0,t.segments.length),s=e.slice(t.segments.length);return!pe(t.segments,i)||!Lt(t.segments,i,n)||!t.children[g]?!1:Gi(t.children[g],r,s,n)}}function Lt(t,r,e){return r.every((n,i)=>zi[e](t[i].parameters,n.parameters))}var ee=class{constructor(r=new v([],{}),e={},n=null){this.root=r,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Ie(this.queryParams),this._queryParamMap}toString(){return po.serialize(this)}},v=class{constructor(r,e){this.segments=r,this.children=e,this.parent=null,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Nt(this)}},fe=class{constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap??=Ie(this.parameters),this._parameterMap}toString(){return Wi(this)}};function ho(t,r){return pe(t,r)&&t.every((e,n)=>G(e.parameters,r[n].parameters))}function pe(t,r){return t.length!==r.length?!1:t.every((e,n)=>e.path===r[n].path)}function fo(t,r){let e=[];return Object.entries(t.children).forEach(([n,i])=>{n===g&&(e=e.concat(r(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==g&&(e=e.concat(r(i,n)))}),e}var ot=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:()=>new Fe,providedIn:"root"})}}return t})(),Fe=class{parse(r){let e=new er(r);return new ee(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){let e=`/${Ge(r.root,!0)}`,n=Do(r.queryParams),i=typeof r.fragment=="string"?`#${go(r.fragment)}`:"";return`${e}${n}${i}`}},po=new Fe;function Nt(t){return t.segments.map(r=>Wi(r)).join("/")}function Ge(t,r){if(!t.hasChildren())return Nt(t);if(r){let e=t.children[g]?Ge(t.children[g],!1):"",n=[];return Object.entries(t.children).forEach(([i,s])=>{i!==g&&n.push(`${i}:${Ge(s,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=fo(t,(n,i)=>i===g?[Ge(t.children[g],!1)]:[`${i}:${Ge(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[g]!=null?`${Nt(t)}/${e[0]}`:`${Nt(t)}/(${e.join("//")})`}}function qi(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function _t(t){return qi(t).replace(/%3B/gi,";")}function go(t){return encodeURI(t)}function Jn(t){return qi(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Pt(t){return decodeURIComponent(t)}function _i(t){return Pt(t.replace(/\+/g,"%20"))}function Wi(t){return`${Jn(t.path)}${mo(t.parameters)}`}function mo(t){return Object.entries(t).map(([r,e])=>`;${Jn(r)}=${Jn(e)}`).join("")}function Do(t){let r=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(i=>`${_t(e)}=${_t(i)}`).join("&"):`${_t(e)}=${_t(n)}`).filter(e=>e);return r.length?`?${r.join("&")}`:""}var vo=/^[^\/()?;#]+/;function Wn(t){let r=t.match(vo);return r?r[0]:""}var yo=/^[^\/()?;=#]+/;function Co(t){let r=t.match(yo);return r?r[0]:""}var wo=/^[^=?&#]+/;function So(t){let r=t.match(wo);return r?r[0]:""}var Eo=/^[^&#]+/;function bo(t){let r=t.match(Eo);return r?r[0]:""}var er=class{constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(n[g]=new v(r,e)),n}parseSegment(){let r=Wn(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new S(4009,!1);return this.capture(r),new fe(Pt(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let e=Co(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let i=Wn(this.remaining);i&&(n=i,this.capture(n))}r[Pt(e)]=Pt(n)}parseQueryParam(r){let e=So(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let o=bo(this.remaining);o&&(n=o,this.capture(n))}let i=_i(e),s=_i(n);if(r.hasOwnProperty(i)){let o=r[i];Array.isArray(o)||(o=[o],r[i]=o),o.push(s)}else r[i]=s}parseParens(r){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Wn(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new S(4010,!1);let s;n.indexOf(":")>-1?(s=n.slice(0,n.indexOf(":")),this.capture(s),this.capture(":")):r&&(s=g);let o=this.parseChildren();e[s]=Object.keys(o).length===1?o[g]:new v([],o),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return this.peekStartsWith(r)?(this.remaining=this.remaining.substring(r.length),!0):!1}capture(r){if(!this.consumeOptional(r))throw new S(4011,!1)}};function Yi(t){return t.segments.length>0?new v([],{[g]:t}):t}function Zi(t){let r={};for(let[n,i]of Object.entries(t.children)){let s=Zi(i);if(n===g&&s.segments.length===0&&s.hasChildren())for(let[o,u]of Object.entries(s.children))r[o]=u;else(s.segments.length>0||s.hasChildren())&&(r[n]=s)}let e=new v(t.segments,r);return Ao(e)}function Ao(t){if(t.numberOfChildren===1&&t.children[g]){let r=t.children[g];return new v(t.segments.concat(r.segments),r.children)}return t}function ge(t){return t instanceof ee}function Ro(t,r,e=null,n=null){let i=Ki(t);return Xi(i,r,e,n)}function Ki(t){let r;function e(s){let o={};for(let a of s.children){let c=e(a);o[a.outlet]=c}let u=new v(s.url,o);return s===t&&(r=u),u}let n=e(t.root),i=Yi(n);return r??i}function Xi(t,r,e,n){let i=t;for(;i.parent;)i=i.parent;if(r.length===0)return Yn(i,i,i,e,n);let s=Io(r);if(s.toRoot())return Yn(i,i,new v([],{}),e,n);let o=Fo(s,i,t),u=o.processChildren?Ye(o.segmentGroup,o.index,s.commands):Ji(o.segmentGroup,o.index,s.commands);return Yn(i,o.segmentGroup,u,e,n)}function xt(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Xe(t){return typeof t=="object"&&t!=null&&t.outlets}function Yn(t,r,e,n,i){let s={};n&&Object.entries(n).forEach(([a,c])=>{s[a]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`});let o;t===r?o=e:o=Qi(t,r,e);let u=Yi(Zi(o));return new ee(u,s,i)}function Qi(t,r,e){let n={};return Object.entries(t.children).forEach(([i,s])=>{s===r?n[i]=e:n[i]=Qi(s,r,e)}),new v(t.segments,n)}var kt=class{constructor(r,e,n){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=n,r&&n.length>0&&xt(n[0]))throw new S(4003,!1);let i=n.find(Xe);if(i&&i!==ji(n))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Io(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new kt(!0,0,t);let r=0,e=!1,n=t.reduce((i,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let u={};return Object.entries(s.outlets).forEach(([a,c])=>{u[a]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:u}]}if(s.segmentPath)return[...i,s.segmentPath]}return typeof s!="string"?[...i,s]:o===0?(s.split("/").forEach((u,a)=>{a==0&&u==="."||(a==0&&u===""?e=!0:u===".."?r++:u!=""&&i.push(u))}),i):[...i,s]},[]);return new kt(e,r,n)}var be=class{constructor(r,e,n){this.segmentGroup=r,this.processChildren=e,this.index=n}};function Fo(t,r,e){if(t.isAbsolute)return new be(r,!0,0);if(!e)return new be(r,!1,NaN);if(e.parent===null)return new be(e,!0,0);let n=xt(t.commands[0])?0:1,i=e.segments.length-1+n;return Mo(e,i,t.numberOfDoubleDots)}function Mo(t,r,e){let n=t,i=r,s=e;for(;s>i;){if(s-=i,n=n.parent,!n)throw new S(4005,!1);i=n.segments.length}return new be(n,!1,i-s)}function To(t){return Xe(t[0])?t[0].outlets:{[g]:t}}function Ji(t,r,e){if(t??=new v([],{}),t.segments.length===0&&t.hasChildren())return Ye(t,r,e);let n=_o(t,r,e),i=e.slice(n.commandIndex);if(n.match&&n.pathIndexs!==g)&&t.children[g]&&t.numberOfChildren===1&&t.children[g].segments.length===0){let s=Ye(t.children[g],r,e);return new v(t.segments,s.children)}return Object.entries(n).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(i[s]=Ji(t.children[s],r,o))}),Object.entries(t.children).forEach(([s,o])=>{n[s]===void 0&&(i[s]=o)}),new v(t.segments,i)}}function _o(t,r,e){let n=0,i=r,s={match:!1,pathIndex:0,commandIndex:0};for(;i=e.length)return s;let o=t.segments[i],u=e[n];if(Xe(u))break;let a=`${u}`,c=n0&&a===void 0)break;if(a&&c&&typeof c=="object"&&c.outlets===void 0){if(!Li(a,c,o))return s;n+=2}else{if(!Li(a,{},o))return s;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function tr(t,r,e){let n=t.segments.slice(0,r),i=0;for(;i{typeof n=="string"&&(n=[n]),n!==null&&(r[e]=tr(new v([],{}),0,n))}),r}function Oi(t){let r={};return Object.entries(t).forEach(([e,n])=>r[e]=`${n}`),r}function Li(t,r,e){return t==e.path&&G(r,e.parameters)}var Ze="imperative",E=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(E||{}),k=class{constructor(r,e){this.id=r,this.url=e}},Me=class extends k{constructor(r,e,n="imperative",i=null){super(r,e),this.type=E.NavigationStart,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},q=class extends k{constructor(r,e,n){super(r,e),this.urlAfterRedirects=n,this.type=E.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},O=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(O||{}),Ut=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Ut||{}),J=class extends k{constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i,this.type=E.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},ae=class extends k{constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i,this.type=E.NavigationSkipped}},Qe=class extends k{constructor(r,e,n,i){super(r,e),this.error=n,this.target=i,this.type=E.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Bt=class extends k{constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i,this.type=E.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},nr=class extends k{constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i,this.type=E.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},rr=class extends k{constructor(r,e,n,i,s){super(r,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s,this.type=E.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},ir=class extends k{constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i,this.type=E.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},sr=class extends k{constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i,this.type=E.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},or=class{constructor(r){this.route=r,this.type=E.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},ar=class{constructor(r){this.route=r,this.type=E.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},ur=class{constructor(r){this.snapshot=r,this.type=E.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},cr=class{constructor(r){this.snapshot=r,this.type=E.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},lr=class{constructor(r){this.snapshot=r,this.type=E.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},dr=class{constructor(r){this.snapshot=r,this.type=E.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},$t=class{constructor(r,e,n){this.routerEvent=r,this.position=e,this.anchor=n,this.type=E.Scroll}toString(){let r=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${r}')`}},Je=class{},Te=class{constructor(r,e){this.url=r,this.navigationBehaviorOptions=e}};function Lo(t,r){return t.providers&&!t._injector&&(t._injector=bn(t.providers,r,`Route: ${t.path}`)),t._injector??r}function $(t){return t.outlet||g}function No(t,r){let e=t.filter(n=>$(n)===r);return e.push(...t.filter(n=>$(n)!==r)),e}function at(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let r=t.parent;r;r=r.parent){let e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var hr=class{get injector(){return at(this.route?.snapshot)??this.rootInjector}set injector(r){}constructor(r){this.rootInjector=r,this.outlet=null,this.route=null,this.children=new ut(this.rootInjector),this.attachRef=null}},ut=(()=>{class t{constructor(e){this.rootInjector=e,this.contexts=new Map}onChildOutletCreated(e,n){let i=this.getOrCreateContext(e);i.outlet=n,this.contexts.set(e,i)}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new hr(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static{this.\u0275fac=function(n){return new(n||t)(D(ke))}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),jt=class{constructor(r){this._root=r}get root(){return this._root.value}parent(r){let e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){let e=fr(r,this._root);return e?e.children.map(n=>n.value):[]}firstChild(r){let e=fr(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){let e=pr(r,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return pr(r,this._root).map(e=>e.value)}};function fr(t,r){if(t===r.value)return r;for(let e of r.children){let n=fr(t,e);if(n)return n}return null}function pr(t,r){if(t===r.value)return[r];for(let e of r.children){let n=pr(t,e);if(n.length)return n.unshift(r),n}return[]}var _=class{constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}};function Ee(t){let r={};return t&&t.children.forEach(e=>r[e.value.outlet]=e),r}var zt=class extends jt{constructor(r,e){super(r),this.snapshot=e,Er(this,r)}toString(){return this.snapshot.toString()}};function es(t){let r=Po(t),e=new L([new fe("",{})]),n=new L({}),i=new L({}),s=new L({}),o=new L(""),u=new W(e,n,s,o,i,g,t,r.root);return u.snapshot=r.root,new zt(new _(u,[]),r)}function Po(t){let r={},e={},n={},i="",s=new Ae([],r,n,i,e,g,t,null,{});return new Vt("",new _(s,[]))}var W=class{constructor(r,e,n,i,s,o,u,a){this.urlSubject=r,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=s,this.outlet=o,this.component=u,this._futureSnapshot=a,this.title=this.dataSubject?.pipe(y(c=>c[st]))??p(void 0),this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(y(r=>Ie(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(y(r=>Ie(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Ht(t,r,e="emptyOnly"){let n,{routeConfig:i}=t;return r!==null&&(e==="always"||i?.path===""||!r.component&&!r.routeConfig?.loadComponent)?n={params:h(h({},r.params),t.params),data:h(h({},r.data),t.data),resolve:h(h(h(h({},t.data),r.data),i?.data),t._resolvedData)}:n={params:h({},t.params),data:h({},t.data),resolve:h(h({},t.data),t._resolvedData??{})},i&&ns(i)&&(n.resolve[st]=i.title),n}var Ae=class{get title(){return this.data?.[st]}constructor(r,e,n,i,s,o,u,a,c){this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=o,this.component=u,this.routeConfig=a,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Ie(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Ie(this.queryParams),this._queryParamMap}toString(){let r=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${e}')`}},Vt=class extends jt{constructor(r,e){super(e),this.url=r,Er(this,e)}toString(){return ts(this._root)}};function Er(t,r){r.value._routerState=t,r.children.forEach(e=>Er(t,e))}function ts(t){let r=t.children.length>0?` { ${t.children.map(ts).join(", ")} } `:"";return`${t.value}${r}`}function Zn(t){if(t.snapshot){let r=t.snapshot,e=t._futureSnapshot;t.snapshot=e,G(r.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),r.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),G(r.params,e.params)||t.paramsSubject.next(e.params),ao(r.url,e.url)||t.urlSubject.next(e.url),G(r.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function gr(t,r){let e=G(t.params,r.params)&&ho(t.url,r.url),n=!t.parent!=!r.parent;return e&&!n&&(!t.parent||gr(t.parent,r.parent))}function ns(t){return typeof t.title=="string"||t.title===null}var br=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=g,this.activateEvents=new le,this.deactivateEvents=new le,this.attachEvents=new le,this.detachEvents=new le,this.parentContexts=l(ut),this.location=l(Sn),this.changeDetector=l($e),this.inputBinder=l(Yt,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:i}=e.name;if(n)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new S(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new S(4013,!1);this._activatedRoute=e;let i=this.location,o=e.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,a=new mr(e,u,i.injector);this.activated=i.createComponent(o,{index:i.length,injector:a,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=Dt({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[vt]})}}return t})(),mr=class t{__ngOutletInjector(r){return new t(this.route,this.childContexts,r)}constructor(r,e,n){this.route=r,this.childContexts=e,this.parent=n}get(r,e){return r===W?this.route:r===ut?this.childContexts:this.parent.get(r,e)}},Yt=new w(""),Ni=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:n}=e,i=ft([n.queryParams,n.params,n.data]).pipe(B(([s,o,u],a)=>(u=h(h(h({},s),o),u),a===0?p(u):Promise.resolve(u)))).subscribe(s=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let o=ci(n.component);if(!o){this.unsubscribeFromRouteData(e);return}for(let{templateName:u}of o.inputs)e.activatedComponentRef.setInput(u,s[u])});this.outletDataSubscriptions.set(e,i)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})();function xo(t,r,e){let n=et(t,r._root,e?e._root:void 0);return new zt(n,r)}function et(t,r,e){if(e&&t.shouldReuseRoute(r.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=r.value;let i=ko(t,r,e);return new _(n,i)}else{if(t.shouldAttach(r.value)){let s=t.retrieve(r.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=r.value,o.children=r.children.map(u=>et(t,u)),o}}let n=Uo(r.value),i=r.children.map(s=>et(t,s));return new _(n,i)}}function ko(t,r,e){return r.children.map(n=>{for(let i of e.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return et(t,n,i);return et(t,n)})}function Uo(t){return new W(new L(t.url),new L(t.params),new L(t.queryParams),new L(t.fragment),new L(t.data),t.outlet,t.component,t)}var tt=class{constructor(r,e){this.redirectTo=r,this.navigationBehaviorOptions=e}},rs="ngNavigationCancelingError";function Gt(t,r){let{redirectTo:e,navigationBehaviorOptions:n}=ge(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=is(!1,O.Redirect);return i.url=e,i.navigationBehaviorOptions=n,i}function is(t,r){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[rs]=!0,e.cancellationCode=r,e}function Bo(t){return ss(t)&&ge(t.url)}function ss(t){return!!t&&t[rs]}var $o=(t,r,e,n)=>y(i=>(new Dr(r,i.targetRouterState,i.currentRouterState,e,n).activate(t),i)),Dr=class{constructor(r,e,n,i,s){this.routeReuseStrategy=r,this.futureState=e,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=s}activate(r){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,r),Zn(this.futureState.root),this.activateChildRoutes(e,n,r)}deactivateChildRoutes(r,e,n){let i=Ee(e);r.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,i[o],n),delete i[o]}),Object.values(i).forEach(s=>{this.deactivateRouteAndItsChildren(s,n)})}deactivateRoutes(r,e,n){let i=r.value,s=e?e.value:null;if(i===s)if(i.component){let o=n.getContext(i.outlet);o&&this.deactivateChildRoutes(r,e,o.children)}else this.deactivateChildRoutes(r,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,s=Ee(r);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);if(n&&n.outlet){let o=n.outlet.detach(),u=n.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:o,route:r,contexts:u})}}deactivateRouteAndOutlet(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,s=Ee(r);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(r,e,n){let i=Ee(e);r.children.forEach(s=>{this.activateRoutes(s,i[s.value.outlet],n),this.forwardEvent(new dr(s.value.snapshot))}),r.children.length&&this.forwardEvent(new cr(r.value.snapshot))}activateRoutes(r,e,n){let i=r.value,s=e?e.value:null;if(Zn(i),i===s)if(i.component){let o=n.getOrCreateContext(i.outlet);this.activateChildRoutes(r,e,o.children)}else this.activateChildRoutes(r,e,n);else if(i.component){let o=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let u=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),o.children.onOutletReAttached(u.contexts),o.attachRef=u.componentRef,o.route=u.route.value,o.outlet&&o.outlet.attach(u.componentRef,u.route.value),Zn(u.route.value),this.activateChildRoutes(r,null,o.children)}else o.attachRef=null,o.route=i,o.outlet&&o.outlet.activateWith(i,o.injector),this.activateChildRoutes(r,null,o.children)}else this.activateChildRoutes(r,null,n)}},qt=class{constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},Re=class{constructor(r,e){this.component=r,this.route=e}};function jo(t,r,e){let n=t._root,i=r?r._root:null;return qe(n,i,e,[n.value])}function zo(t){let r=t.routeConfig?t.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:t,guards:r}}function Oe(t,r){let e=Symbol(),n=r.get(t,e);return n===e?typeof t=="function"&&!Hr(t)?t:r.get(t):n}function qe(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=Ee(r);return t.children.forEach(o=>{Ho(o,s[o.value.outlet],e,n.concat([o.value]),i),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,u])=>Ke(u,e.getContext(o),i)),i}function Ho(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=t.value,o=r?r.value:null,u=e?e.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let a=Vo(o,s,s.routeConfig.runGuardsAndResolvers);a?i.canActivateChecks.push(new qt(n)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?qe(t,r,u?u.children:null,n,i):qe(t,r,e,n,i),a&&u&&u.outlet&&u.outlet.isActivated&&i.canDeactivateChecks.push(new Re(u.outlet.component,o))}else o&&Ke(r,u,i),i.canActivateChecks.push(new qt(n)),s.component?qe(t,null,u?u.children:null,n,i):qe(t,null,e,n,i);return i}function Vo(t,r,e){if(typeof e=="function")return e(t,r);switch(e){case"pathParamsChange":return!pe(t.url,r.url);case"pathParamsOrQueryParamsChange":return!pe(t.url,r.url)||!G(t.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!gr(t,r)||!G(t.queryParams,r.queryParams);case"paramsChange":default:return!gr(t,r)}}function Ke(t,r,e){let n=Ee(t),i=t.value;Object.entries(n).forEach(([s,o])=>{i.component?r?Ke(o,r.children.getContext(s),e):Ke(o,null,e):Ke(o,r,e)}),i.component?r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new Re(r.outlet.component,i)):e.canDeactivateChecks.push(new Re(null,i)):e.canDeactivateChecks.push(new Re(null,i))}function ct(t){return typeof t=="function"}function Go(t){return typeof t=="boolean"}function qo(t){return t&&ct(t.canLoad)}function Wo(t){return t&&ct(t.canActivate)}function Yo(t){return t&&ct(t.canActivateChild)}function Zo(t){return t&&ct(t.canDeactivate)}function Ko(t){return t&&ct(t.canMatch)}function os(t){return t instanceof xr||t?.name==="EmptyError"}var Ot=Symbol("INITIAL_VALUE");function _e(){return B(t=>ft(t.map(r=>r.pipe(ve(1),jr(Ot)))).pipe(y(r=>{for(let e of r)if(e!==!0){if(e===Ot)return Ot;if(e===!1||Xo(e))return e}return!0}),ce(r=>r!==Ot),ve(1)))}function Xo(t){return ge(t)||t instanceof tt}function Qo(t,r){return T(e=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:o}}=e;return o.length===0&&s.length===0?p(A(h({},e),{guardsResult:!0})):Jo(o,n,i,t).pipe(T(u=>u&&Go(u)?ea(n,s,t,r):p(u)),y(u=>A(h({},e),{guardsResult:u})))})}function Jo(t,r,e,n){return M(t).pipe(T(i=>sa(i.component,i.route,e,r,n)),se(i=>i!==!0,!0))}function ea(t,r,e,n){return M(r).pipe(De(i=>kr(na(i.route.parent,n),ta(i.route,n),ia(t,i.path,e),ra(t,i.route,e))),se(i=>i!==!0,!0))}function ta(t,r){return t!==null&&r&&r(new lr(t)),p(!0)}function na(t,r){return t!==null&&r&&r(new ur(t)),p(!0)}function ra(t,r,e){let n=r.routeConfig?r.routeConfig.canActivate:null;if(!n||n.length===0)return p(!0);let i=n.map(s=>ln(()=>{let o=at(r)??e,u=Oe(s,o),a=Wo(u)?u.canActivate(r,t):z(o,()=>u(r,t));return ue(a).pipe(se())}));return p(i).pipe(_e())}function ia(t,r,e){let n=r[r.length-1],s=r.slice(0,r.length-1).reverse().map(o=>zo(o)).filter(o=>o!==null).map(o=>ln(()=>{let u=o.guards.map(a=>{let c=at(o.node)??e,d=Oe(a,c),f=Yo(d)?d.canActivateChild(n,t):z(c,()=>d(n,t));return ue(f).pipe(se())});return p(u).pipe(_e())}));return p(s).pipe(_e())}function sa(t,r,e,n,i){let s=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!s||s.length===0)return p(!0);let o=s.map(u=>{let a=at(r)??i,c=Oe(u,a),d=Zo(c)?c.canDeactivate(t,r,e,n):z(a,()=>c(t,r,e,n));return ue(d).pipe(se())});return p(o).pipe(_e())}function oa(t,r,e,n){let i=r.canLoad;if(i===void 0||i.length===0)return p(!0);let s=i.map(o=>{let u=Oe(o,t),a=qo(u)?u.canLoad(r,e):z(t,()=>u(r,e));return ue(a)});return p(s).pipe(_e(),as(n))}function as(t){return Nr(R(r=>{if(typeof r!="boolean")throw Gt(t,r)}),y(r=>r===!0))}function aa(t,r,e,n){let i=r.canMatch;if(!i||i.length===0)return p(!0);let s=i.map(o=>{let u=Oe(o,t),a=Ko(u)?u.canMatch(r,e):z(t,()=>u(r,e));return ue(a)});return p(s).pipe(_e(),as(n))}var nt=class{constructor(r){this.segmentGroup=r||null}},rt=class extends Error{constructor(r){super(),this.urlTree=r}};function Se(t){return Pe(new nt(t))}function ua(t){return Pe(new S(4e3,!1))}function ca(t){return Pe(is(!1,O.GuardRejected))}var vr=class{constructor(r,e){this.urlSerializer=r,this.urlTree=e}lineralizeSegments(r,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return p(n);if(i.numberOfChildren>1||!i.children[g])return ua(`${r.redirectTo}`);i=i.children[g]}}applyRedirectCommands(r,e,n,i,s){if(typeof e!="string"){let u=e,{queryParams:a,fragment:c,routeConfig:d,url:f,outlet:C,params:j,data:I,title:ne}=i,U=z(s,()=>u({params:j,data:I,queryParams:a,fragment:c,routeConfig:d,url:f,outlet:C,title:ne}));if(U instanceof ee)throw new rt(U);e=U}let o=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,n);if(e[0]==="/")throw new rt(o);return o}applyRedirectCreateUrlTree(r,e,n,i){let s=this.createSegmentGroup(r,e.root,n,i);return new ee(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){let n={};return Object.entries(r).forEach(([i,s])=>{if(typeof s=="string"&&s[0]===":"){let u=s.substring(1);n[i]=e[u]}else n[i]=s}),n}createSegmentGroup(r,e,n,i){let s=this.createSegments(r,e.segments,n,i),o={};return Object.entries(e.children).forEach(([u,a])=>{o[u]=this.createSegmentGroup(r,a,n,i)}),new v(s,o)}createSegments(r,e,n,i){return e.map(s=>s.path[0]===":"?this.findPosParam(r,s,i):this.findOrReturn(s,n))}findPosParam(r,e,n){let i=n[e.path.substring(1)];if(!i)throw new S(4001,!1);return i}findOrReturn(r,e){let n=0;for(let i of e){if(i.path===r.path)return e.splice(n),i;n++}return r}},yr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function la(t,r,e,n,i){let s=us(t,r,e);return s.matched?(n=Lo(r,n),aa(n,r,e,i).pipe(y(o=>o===!0?s:h({},yr)))):p(s)}function us(t,r,e){if(r.path==="**")return da(e);if(r.path==="")return r.pathMatch==="full"&&(t.hasChildren()||e.length>0)?h({},yr):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(r.matcher||oo)(e,t,r);if(!i)return h({},yr);let s={};Object.entries(i.posParams??{}).forEach(([u,a])=>{s[u]=a.path});let o=i.consumed.length>0?h(h({},s),i.consumed[i.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:o,positionalParamSegments:i.posParams??{}}}function da(t){return{matched:!0,parameters:t.length>0?ji(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function Pi(t,r,e,n){return e.length>0&&pa(t,e,n)?{segmentGroup:new v(r,fa(n,new v(e,t.children))),slicedSegments:[]}:e.length===0&&ga(t,e,n)?{segmentGroup:new v(t.segments,ha(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new v(t.segments,t.children),slicedSegments:e}}function ha(t,r,e,n){let i={};for(let s of e)if(Zt(t,r,s)&&!n[$(s)]){let o=new v([],{});i[$(s)]=o}return h(h({},n),i)}function fa(t,r){let e={};e[g]=r;for(let n of t)if(n.path===""&&$(n)!==g){let i=new v([],{});e[$(n)]=i}return e}function pa(t,r,e){return e.some(n=>Zt(t,r,n)&&$(n)!==g)}function ga(t,r,e){return e.some(n=>Zt(t,r,n))}function Zt(t,r,e){return(t.hasChildren()||r.length>0)&&e.pathMatch==="full"?!1:e.path===""}function ma(t,r,e){return r.length===0&&!t.children[e]}var Cr=class{};function Da(t,r,e,n,i,s,o="emptyOnly"){return new wr(t,r,e,n,i,o,s).recognize()}var va=31,wr=class{constructor(r,e,n,i,s,o,u){this.injector=r,this.configLoader=e,this.rootComponentType=n,this.config=i,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=u,this.applyRedirects=new vr(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(r){return new S(4002,`'${r.segmentGroup}'`)}recognize(){let r=Pi(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(r).pipe(y(({children:e,rootSnapshot:n})=>{let i=new _(n,e),s=new Vt("",i),o=Ro(n,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),{state:s,tree:o}}))}match(r){let e=new Ae([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),g,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,r,g,e).pipe(y(n=>({children:n,rootSnapshot:e})),me(n=>{if(n instanceof rt)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof nt?this.noMatchError(n):n}))}processSegmentGroup(r,e,n,i,s){return n.segments.length===0&&n.hasChildren()?this.processChildren(r,e,n,s):this.processSegment(r,e,n,n.segments,i,!0,s).pipe(y(o=>o instanceof _?[o]:[]))}processChildren(r,e,n,i){let s=[];for(let o of Object.keys(n.children))o==="primary"?s.unshift(o):s.push(o);return M(s).pipe(De(o=>{let u=n.children[o],a=No(e,o);return this.processSegmentGroup(r,a,u,o,i)}),$r((o,u)=>(o.push(...u),o)),dn(null),Br(),T(o=>{if(o===null)return Se(n);let u=cs(o);return ya(u),p(u)}))}processSegment(r,e,n,i,s,o,u){return M(e).pipe(De(a=>this.processSegmentAgainstRoute(a._injector??r,e,a,n,i,s,o,u).pipe(me(c=>{if(c instanceof nt)return p(null);throw c}))),se(a=>!!a),me(a=>{if(os(a))return ma(n,i,s)?p(new Cr):Se(n);throw a}))}processSegmentAgainstRoute(r,e,n,i,s,o,u,a){return $(n)!==o&&(o===g||!Zt(i,s,n))?Se(i):n.redirectTo===void 0?this.matchSegmentAgainstRoute(r,i,n,s,o,a):this.allowRedirects&&u?this.expandSegmentAgainstRouteUsingRedirect(r,i,e,n,s,o,a):Se(i)}expandSegmentAgainstRouteUsingRedirect(r,e,n,i,s,o,u){let{matched:a,parameters:c,consumedSegments:d,positionalParamSegments:f,remainingSegments:C}=us(e,i,s);if(!a)return Se(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>va&&(this.allowRedirects=!1));let j=new Ae(s,c,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,xi(i),$(i),i.component??i._loadedComponent??null,i,ki(i)),I=Ht(j,u,this.paramsInheritanceStrategy);j.params=Object.freeze(I.params),j.data=Object.freeze(I.data);let ne=this.applyRedirects.applyRedirectCommands(d,i.redirectTo,f,j,r);return this.applyRedirects.lineralizeSegments(i,ne).pipe(T(U=>this.processSegment(r,n,e,U.concat(C),o,!1,u)))}matchSegmentAgainstRoute(r,e,n,i,s,o){let u=la(e,n,i,r,this.urlSerializer);return n.path==="**"&&(e.children={}),u.pipe(B(a=>a.matched?(r=n._injector??r,this.getChildConfig(r,n,i).pipe(B(({routes:c})=>{let d=n._loadedInjector??r,{parameters:f,consumedSegments:C,remainingSegments:j}=a,I=new Ae(C,f,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,xi(n),$(n),n.component??n._loadedComponent??null,n,ki(n)),ne=Ht(I,o,this.paramsInheritanceStrategy);I.params=Object.freeze(ne.params),I.data=Object.freeze(ne.data);let{segmentGroup:U,slicedSegments:Ne}=Pi(e,C,j,c);if(Ne.length===0&&U.hasChildren())return this.processChildren(d,c,U,I).pipe(y(ht=>new _(I,ht)));if(c.length===0&&Ne.length===0)return p(new _(I,[]));let Fs=$(n)===s;return this.processSegment(d,c,U,Ne,Fs?g:s,!0,I).pipe(y(ht=>new _(I,ht instanceof _?[ht]:[])))}))):Se(e)))}getChildConfig(r,e,n){return e.children?p({routes:e.children,injector:r}):e.loadChildren?e._loadedRoutes!==void 0?p({routes:e._loadedRoutes,injector:e._loadedInjector}):oa(r,e,n,this.urlSerializer).pipe(T(i=>i?this.configLoader.loadChildren(r,e).pipe(R(s=>{e._loadedRoutes=s.routes,e._loadedInjector=s.injector})):ca(e))):p({routes:[],injector:r})}};function ya(t){t.sort((r,e)=>r.value.outlet===g?-1:e.value.outlet===g?1:r.value.outlet.localeCompare(e.value.outlet))}function Ca(t){let r=t.value.routeConfig;return r&&r.path===""}function cs(t){let r=[],e=new Set;for(let n of t){if(!Ca(n)){r.push(n);continue}let i=r.find(s=>n.value.routeConfig===s.value.routeConfig);i!==void 0?(i.children.push(...n.children),e.add(i)):r.push(n)}for(let n of e){let i=cs(n.children);r.push(new _(n.value,i))}return r.filter(n=>!e.has(n))}function xi(t){return t.data||{}}function ki(t){return t.resolve||{}}function wa(t,r,e,n,i,s){return T(o=>Da(t,r,e,n,o.extractedUrl,i,s).pipe(y(({state:u,tree:a})=>A(h({},o),{targetSnapshot:u,urlAfterRedirects:a}))))}function Sa(t,r){return T(e=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=e;if(!i.length)return p(e);let s=new Set(i.map(a=>a.route)),o=new Set;for(let a of s)if(!o.has(a))for(let c of ls(a))o.add(c);let u=0;return M(o).pipe(De(a=>s.has(a)?Ea(a,n,t,r):(a.data=Ht(a,a.parent,t).resolve,p(void 0))),R(()=>u++),hn(1),T(a=>u===o.size?p(e):ie))})}function ls(t){let r=t.children.map(e=>ls(e)).flat();return[t,...r]}function Ea(t,r,e,n){let i=t.routeConfig,s=t._resolve;return i?.title!==void 0&&!ns(i)&&(s[st]=i.title),ba(s,t,r,n).pipe(y(o=>(t._resolvedData=o,t.data=Ht(t,t.parent,e).resolve,null)))}function ba(t,r,e,n){let i=Qn(t);if(i.length===0)return p({});let s={};return M(i).pipe(T(o=>Aa(t[o],r,e,n).pipe(se(),R(u=>{if(u instanceof tt)throw Gt(new Fe,u);s[o]=u}))),hn(1),Ur(s),me(o=>os(o)?ie:Pe(o)))}function Aa(t,r,e,n){let i=at(r)??n,s=Oe(t,i),o=s.resolve?s.resolve(r,e):z(i,()=>s(r,e));return ue(o)}function Kn(t){return B(r=>{let e=t(r);return e?M(e).pipe(y(()=>r)):p(r)})}var ds=(()=>{class t{buildTitle(e){let n,i=e.root;for(;i!==void 0;)n=this.getResolvedTitleForRoute(i)??n,i=i.children.find(s=>s.outlet===g);return n}getResolvedTitleForRoute(e){return e.data[st]}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:()=>l(Ra),providedIn:"root"})}}return t})(),Ra=(()=>{class t extends ds{constructor(e){super(),this.title=e}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n)}static{this.\u0275fac=function(n){return new(n||t)(D(Mi))}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),lt=new w("",{providedIn:"root",factory:()=>({})}),Ia=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=N({type:t,selectors:[["ng-component"]],standalone:!0,features:[x],decls:1,vars:0,template:function(n,i){n&1&&P(0,"router-outlet")},dependencies:[br],encapsulation:2})}}return t})();function Ar(t){let r=t.children&&t.children.map(Ar),e=r?A(h({},t),{children:r}):h({},t);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==g&&(e.component=Ia),e}var it=new w(""),Rr=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=l(Rt)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return p(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let n=ue(e.loadComponent()).pipe(y(hs),R(s=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=s}),pt(()=>{this.componentLoaders.delete(e)})),i=new un(n,()=>new re).pipe(an());return this.componentLoaders.set(e,i),i}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return p({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let s=Fa(n,this.compiler,e,this.onLoadEndListener).pipe(pt(()=>{this.childrenLoaders.delete(n)})),o=new un(s,()=>new re).pipe(an());return this.childrenLoaders.set(n,o),o}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Fa(t,r,e,n){return ue(t.loadChildren()).pipe(y(hs),T(i=>i instanceof Jr||Array.isArray(i)?p(i):M(r.compileModuleAsync(i))),y(i=>{n&&n(t);let s,o,u=!1;return Array.isArray(i)?(o=i,u=!0):(s=i.create(e).injector,o=s.get(it,[],{optional:!0,self:!0}).flat()),{routes:o.map(Ar),injector:s}}))}function Ma(t){return t&&typeof t=="object"&&"default"in t}function hs(t){return Ma(t)?t.default:t}var Ir=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:()=>l(Ta),providedIn:"root"})}}return t})(),Ta=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),fs=new w(""),ps=new w("");function _a(t,r,e){let n=t.get(ps),i=t.get(F);return t.get(Y).runOutsideAngular(()=>{if(!i.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(c=>setTimeout(c));let s,o=new Promise(c=>{s=c}),u=i.startViewTransition(()=>(s(),Oa(t))),{onViewTransitionCreated:a}=n;return a&&z(t,()=>a({transition:u,from:r,to:e})),o})}function Oa(t){return new Promise(r=>{ei({read:()=>setTimeout(r)},{injector:t})})}var La=new w(""),Fr=(()=>{class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new re,this.transitionAbortSubject=new re,this.configLoader=l(Rr),this.environmentInjector=l(ke),this.urlSerializer=l(ot),this.rootContexts=l(ut),this.location=l(we),this.inputBindingEnabled=l(Yt,{optional:!0})!==null,this.titleStrategy=l(ds),this.options=l(lt,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=l(Ir),this.createViewTransition=l(fs,{optional:!0}),this.navigationErrorHandler=l(La,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>p(void 0),this.rootComponentType=null;let e=i=>this.events.next(new or(i)),n=i=>this.events.next(new ar(i));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let n=++this.navigationId;this.transitions?.next(A(h(h({},this.transitions.value),e),{id:n}))}setupNavigations(e,n,i){return this.transitions=new L({id:0,currentUrlTree:n,currentRawUrl:n,extractedUrl:this.urlHandlingStrategy.extract(n),urlAfterRedirects:this.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Ze,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ce(s=>s.id!==0),y(s=>A(h({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),B(s=>{let o=!1,u=!1;return p(s).pipe(B(a=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",O.SupersededByNewNavigation),ie;this.currentTransition=s,this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?A(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!c&&d!=="reload"){let f="";return this.events.next(new ae(a.id,this.urlSerializer.serialize(a.rawUrl),f,Ut.IgnoredSameUrlNavigation)),a.resolve(!1),ie}if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return p(a).pipe(B(f=>{let C=this.transitions?.getValue();return this.events.next(new Me(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),C!==this.transitions?.getValue()?ie:Promise.resolve(f)}),wa(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),R(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=A(h({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let C=new Bt(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(C)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:f,extractedUrl:C,source:j,restoredState:I,extras:ne}=a,U=new Me(f,this.urlSerializer.serialize(C),j,I);this.events.next(U);let Ne=es(this.rootComponentType).snapshot;return this.currentTransition=s=A(h({},a),{targetSnapshot:Ne,urlAfterRedirects:C,extras:A(h({},ne),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=C,p(s)}else{let f="";return this.events.next(new ae(a.id,this.urlSerializer.serialize(a.extractedUrl),f,Ut.IgnoredByUrlHandlingStrategy)),a.resolve(!1),ie}}),R(a=>{let c=new nr(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}),y(a=>(this.currentTransition=s=A(h({},a),{guards:jo(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),s)),Qo(this.environmentInjector,a=>this.events.next(a)),R(a=>{if(s.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw Gt(this.urlSerializer,a.guardsResult);let c=new rr(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(c)}),ce(a=>a.guardsResult?!0:(this.cancelNavigationTransition(a,"",O.GuardRejected),!1)),Kn(a=>{if(a.guards.canActivateChecks.length)return p(a).pipe(R(c=>{let d=new ir(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}),B(c=>{let d=!1;return p(c).pipe(Sa(this.paramsInheritanceStrategy,this.environmentInjector),R({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(c,"",O.NoDataFromResolver)}}))}),R(c=>{let d=new sr(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}))}),Kn(a=>{let c=d=>{let f=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(d.routeConfig).pipe(R(C=>{d.component=C}),y(()=>{})));for(let C of d.children)f.push(...c(C));return f};return ft(c(a.targetSnapshot.root)).pipe(dn(null),ve(1))}),Kn(()=>this.afterPreactivation()),B(()=>{let{currentSnapshot:a,targetSnapshot:c}=s,d=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return d?M(d).pipe(y(()=>s)):p(s)}),y(a=>{let c=xo(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=s=A(h({},a),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,s}),R(()=>{this.events.next(new Je)}),$o(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),ve(1),R({next:a=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new q(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{o=!0}}),zr(this.transitionAbortSubject.pipe(R(a=>{throw a}))),pt(()=>{!o&&!u&&this.cancelNavigationTransition(s,"",O.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),me(a=>{if(u=!0,ss(a))this.events.next(new J(s.id,this.urlSerializer.serialize(s.extractedUrl),a.message,a.cancellationCode)),Bo(a)?this.events.next(new Te(a.url,a.navigationBehaviorOptions)):s.resolve(!1);else{let c=new Qe(s.id,this.urlSerializer.serialize(s.extractedUrl),a,s.targetSnapshot??void 0);try{let d=z(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(d instanceof tt){let{message:f,cancellationCode:C}=Gt(this.urlSerializer,d);this.events.next(new J(s.id,this.urlSerializer.serialize(s.extractedUrl),f,C)),this.events.next(new Te(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(c);let f=e.errorHandler(a);s.resolve(!!f)}}catch(d){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(d)}}return ie}))}))}cancelNavigationTransition(e,n,i){let s=new J(e.id,this.urlSerializer.serialize(e.extractedUrl),n,i);this.events.next(s),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==n?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Na(t){return t!==Ze}var Pa=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:()=>l(xa),providedIn:"root"})}}return t})(),Sr=class{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}},xa=(()=>{class t extends Sr{static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=mn(t)))(i||t)}})()}static{this.\u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),gs=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:()=>l(ka),providedIn:"root"})}}return t})(),ka=(()=>{class t extends gs{constructor(){super(...arguments),this.location=l(we),this.urlSerializer=l(ot),this.options=l(lt,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=l(Ir),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new ee,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=es(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type==="popstate"&&e(n.url,n.state)})}handleRouterEvent(e,n){if(e instanceof Me)this.stateMemento=this.createStateMemento();else if(e instanceof ae)this.rawUrlTree=n.initialUrl;else if(e instanceof Bt){if(this.urlUpdateStrategy==="eager"&&!n.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl);this.setBrowserUrl(n.targetBrowserUrl??i,n)}}else e instanceof Je?(this.currentUrlTree=n.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl),this.routerState=n.targetRouterState,this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(n.targetBrowserUrl??this.rawUrlTree,n)):e instanceof J&&(e.code===O.GuardRejected||e.code===O.NoDataFromResolver)?this.restoreHistory(n):e instanceof Qe?this.restoreHistory(n,!0):e instanceof q&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,n){let i=e instanceof ee?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(i)||n.extras.replaceUrl){let s=this.browserPageId,o=h(h({},n.extras.state),this.generateNgRouterState(n.id,s));this.location.replaceState(i,"",o)}else{let s=h(h({},n.extras.state),this.generateNgRouterState(n.id,this.browserPageId+1));this.location.go(i,"",s)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,s=this.currentPageId-i;s!==0?this.location.historyGo(s):this.currentUrlTree===e.finalUrl&&s===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=mn(t)))(i||t)}})()}static{this.\u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),We=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(We||{});function ms(t,r){t.events.pipe(ce(e=>e instanceof q||e instanceof J||e instanceof Qe||e instanceof ae),y(e=>e instanceof q||e instanceof ae?We.COMPLETE:(e instanceof J?e.code===O.Redirect||e.code===O.SupersededByNewNavigation:!1)?We.REDIRECTING:We.FAILED),ce(e=>e!==We.REDIRECTING),ve(1)).subscribe(()=>{r()})}function Ua(t){throw t}var Ba={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},$a={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},te=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=l(At),this.stateManager=l(gs),this.options=l(lt,{optional:!0})||{},this.pendingTasks=l(qr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=l(Fr),this.urlSerializer=l(ot),this.location=l(we),this.urlHandlingStrategy=l(Ir),this._events=new re,this.errorHandler=this.options.errorHandler||Ua,this.navigated=!1,this.routeReuseStrategy=l(Pa),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=l(it,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!l(Yt,{optional:!0}),this.eventsSubscription=new Lr,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let i=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(i!==null&&s!==null){if(this.stateManager.handleRouterEvent(n,s),n instanceof J&&n.code!==O.Redirect&&n.code!==O.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof q)this.navigated=!0;else if(n instanceof Te){let o=n.navigationBehaviorOptions,u=this.urlHandlingStrategy.merge(n.url,i.currentRawUrl),a=h({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Na(i.source)},o);this.scheduleNavigation(u,Ze,null,a,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}za(n)&&this._events.next(n)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ze,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",n)},0)})}navigateToSyncWithBrowser(e,n,i){let s={replaceUrl:!0},o=i?.navigationId?i:null;if(i){let a=h({},i);delete a.navigationId,delete a.\u0275routerPageId,Object.keys(a).length!==0&&(s.state=a)}let u=this.parseUrl(e);this.scheduleNavigation(u,n,o,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Ar),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){let{relativeTo:i,queryParams:s,fragment:o,queryParamsHandling:u,preserveFragment:a}=n,c=a?this.currentUrlTree.fragment:o,d=null;switch(u??this.options.defaultQueryParamsHandling){case"merge":d=h(h({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let C=i?i.snapshot:this.routerState.snapshot.root;f=Ki(C)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),f=this.currentUrlTree.root}return Xi(f,e,d,c??null)}navigateByUrl(e,n={skipLocationChange:!1}){let i=ge(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(s,Ze,null,n)}navigate(e,n={skipLocationChange:!1}){return ja(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,n){let i;if(n===!0?i=h({},Ba):n===!1?i=h({},$a):i=n,ge(e))return Ti(this.currentUrlTree,e,i);let s=this.parseUrl(e);return Ti(this.currentUrlTree,s,i)}removeEmptyProps(e){return Object.entries(e).reduce((n,[i,s])=>(s!=null&&(n[i]=s),n),{})}scheduleNavigation(e,n,i,s,o){if(this.disposed)return Promise.resolve(!1);let u,a,c;o?(u=o.resolve,a=o.reject,c=o.promise):c=new Promise((f,C)=>{u=f,a=C});let d=this.pendingTasks.add();return ms(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:s,resolve:u,reject:a,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(f=>Promise.reject(f))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function ja(t){for(let r=0;r{class t{constructor(e,n,i,s,o,u){this.router=e,this.route=n,this.tabIndexAttribute=i,this.renderer=s,this.el=o,this.locationStrategy=u,this.href=null,this.onChanges=new re,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let a=o.nativeElement.tagName?.toLowerCase();this.isAnchorElement=a==="a"||a==="area",this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof q&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(ge(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,n,i,s,o){let u=this.urlTree;if(u===null||this.isAnchorElement&&(e!==0||n||i||s||o||typeof this.target=="string"&&this.target!="_self"))return!0;let a={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(u,a),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let n=this.href===null?null:Zr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(e,n){let i=this.renderer,s=this.el.nativeElement;n!==null?i.setAttribute(s,e,n):i.removeAttribute(s,e)}get urlTree(){return this.routerLinkInput===null?null:ge(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(n){return new(n||t)(he(te),he(W),Dn("tabindex"),he(wt),he(Ct),he(Q))}}static{this.\u0275dir=Dt({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,i){n&1&&ri("click",function(o){return i.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),n&2&&ti("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",je],skipLocationChange:[2,"skipLocationChange","skipLocationChange",je],replaceUrl:[2,"replaceUrl","replaceUrl",je],routerLink:"routerLink"},standalone:!0,features:[En,vt]})}}return t})();var Wt=class{};var Ha=(()=>{class t{constructor(e,n,i,s,o){this.router=e,this.injector=i,this.preloadingStrategy=s,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(ce(e=>e instanceof q),De(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,n){let i=[];for(let s of n){s.providers&&!s._injector&&(s._injector=bn(s.providers,e,`Route: ${s.path}`));let o=s._injector??e,u=s._loadedInjector??o;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&i.push(this.preloadConfig(o,s)),(s.children||s._loadedRoutes)&&i.push(this.processRoutes(u,s.children??s._loadedRoutes))}return M(i).pipe(cn())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{let i;n.loadChildren&&n.canLoad===void 0?i=this.loader.loadChildren(e,n):i=p(null);let s=i.pipe(T(o=>o===null?p(void 0):(n._loadedRoutes=o.routes,n._loadedInjector=o.injector,this.processRoutes(o.injector??e,o.routes))));if(n.loadComponent&&!n._loadedComponent){let o=this.loader.loadComponent(n);return M([s,o]).pipe(cn())}else return s})}static{this.\u0275fac=function(n){return new(n||t)(D(te),D(Rt),D(ke),D(Wt),D(Rr))}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),vs=new w(""),Va=(()=>{class t{constructor(e,n,i,s,o={}){this.urlSerializer=e,this.transitions=n,this.viewportScroller=i,this.zone=s,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration||="disabled",o.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Me?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof q?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof ae&&e.code===Ut.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof $t&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,n){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new $t(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(n){Kr()}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac})}}return t})();function ys(t,...r){return gn([{provide:it,multi:!0,useValue:t},[],{provide:W,useFactory:Cs,deps:[te]},{provide:Tn,multi:!0,useFactory:ws},r.map(e=>e.\u0275providers)])}function Cs(t){return t.routerState.root}function dt(t,r){return{\u0275kind:t,\u0275providers:r}}function ws(){let t=l(yt);return r=>{let e=t.get(_n);if(r!==e.components[0])return;let n=t.get(te),i=t.get(Ss);t.get(Mr)===1&&n.initialNavigation(),t.get(Es,null,fn.Optional)?.setUpPreloading(),t.get(vs,null,fn.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Ss=new w("",{factory:()=>new re}),Mr=new w("",{providedIn:"root",factory:()=>1});function Ga(){return dt(2,[{provide:Mr,useValue:0},{provide:Mn,multi:!0,deps:[yt],useFactory:r=>{let e=r.get(mi,Promise.resolve());return()=>e.then(()=>new Promise(n=>{let i=r.get(te),s=r.get(Ss);ms(i,()=>{n(!0)}),r.get(Fr).afterPreactivation=()=>(n(!0),s.closed?p(void 0):s),i.initialNavigation()}))}}])}function qa(){return dt(3,[{provide:Mn,multi:!0,useFactory:()=>{let r=l(te);return()=>{r.setUpLocationChangeListener()}}},{provide:Mr,useValue:2}])}var Es=new w("");function Wa(t){return dt(0,[{provide:Es,useExisting:Ha},{provide:Wt,useExisting:t}])}function Ya(){return dt(8,[Ni,{provide:Yt,useExisting:Ni}])}function Za(t){let r=[{provide:fs,useValue:_a},{provide:ps,useValue:h({skipNextTransition:!!t?.skipInitialTransition},t)}];return dt(9,r)}var Ui=new w("ROUTER_FORROOT_GUARD"),Ka=[we,{provide:ot,useClass:Fe},te,ut,{provide:W,useFactory:Cs,deps:[te]},Rr,[]],bs=(()=>{class t{constructor(e){}static forRoot(e,n){return{ngModule:t,providers:[Ka,[],{provide:it,multi:!0,useValue:e},{provide:Ui,useFactory:eu,deps:[[te,new pn,new Vr]]},{provide:lt,useValue:n||{}},n?.useHash?Qa():Ja(),Xa(),n?.preloadingStrategy?Wa(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?tu(n):[],n?.bindToComponentInputs?Ya().\u0275providers:[],n?.enableViewTransitions?Za().\u0275providers:[],nu()]}}static forChild(e){return{ngModule:t,providers:[{provide:it,multi:!0,useValue:e}]}}static{this.\u0275fac=function(n){return new(n||t)(D(Ui,8))}}static{this.\u0275mod=mt({type:t})}static{this.\u0275inj=gt({})}}return t})();function Xa(){return{provide:vs,useFactory:()=>{let t=l(Ci),r=l(Y),e=l(lt),n=l(Fr),i=l(ot);return e.scrollOffset&&t.setOffset(e.scrollOffset),new Va(i,n,t,r,e)}}}function Qa(){return{provide:Q,useClass:vi}}function Ja(){return{provide:Q,useClass:kn}}function eu(t){return"guarded"}function tu(t){return[t.initialNavigation==="disabled"?qa().\u0275providers:[],t.initialNavigation==="enabledBlocking"?Ga().\u0275providers:[]]}var Bi=new w("");function nu(){return[{provide:Bi,useFactory:ws},{provide:Tn,multi:!0,useExisting:Bi}]}var Kt=class t{copyright="Make with \u2764\uFE0F by louiiuol";static \u0275fac=function(e){return new(e||t)};static \u0275cmp=N({type:t,selectors:[["lib-footer"]],hostAttrs:[1,"w-full","flex","items-center","justify-center"],standalone:!0,features:[x],decls:2,vars:1,template:function(e,n){e&1&&(H(0,"p"),Be(1),V()),e&2&&(Z(),bt(n.copyright))},encapsulation:2,changeDetection:0})};function iu(t,r){if(t&1&&(H(0,"a",2),Be(1),V()),t&2){let e=r.$implicit;oe("routerLink",e.path),Z(),si(" ",e.label," ")}}var Qt=class t{activateRouter=l(W);routes=[{label:"home",path:"/"},{label:"components",path:"/components"},{label:"modules",path:"/modules"},{label:"services",path:"/services"}];appName="ngx lib";static \u0275fac=function(e){return new(e||t)};static \u0275cmp=N({type:t,selectors:[["lib-header"]],hostAttrs:[1,"py-6","px-12","flex","justify-between","items-center","gap-12","bg-white"],standalone:!0,features:[x],decls:5,vars:1,consts:[[1,"text-2xl","text-primary-500"],[1,"flex-1","justify-end","items-center","gap-3","hidden"],[1,"mr-4",3,"routerLink"]],template:function(e,n){e&1&&(H(0,"strong",0),Be(1),V(),H(2,"nav",1),St(3,iu,2,2,"a",2,ni),V()),e&2&&(Z(),bt(n.appName),Z(2),Et(n.routes))},dependencies:[bs,Ds],encapsulation:2,changeDetection:0})};var Jt={info:{icon:"info",color:"bg-blue-100 border-blue-500 text-blue-900"},note:{icon:"lightbulb",color:"bg-indigo-100 border-indigo-500 text-indigo-900"},warn:{icon:"warning",color:"bg-orange-100 border-orange-500 text-orange-900"},error:{icon:"error",color:"bg-red-100 border-red-500 text-red-900"},success:{icon:"done",color:"bg-teal-100 border-teal-500 text-teal-900"}};var su=t=>({"font-bold":t});function ou(t,r){if(t&1&&P(0,"lib-icon",0),t&2){let e=ii();oe("name",e.messageIcon())}}function au(t,r){t&1&&P(0,"span",3),t&2&&oe("innerHTML",r,wn)}var en=class t{summary=Ue.required();severity=Ue("info");details=Ue();showIcon=Ue(!0);messageIcon=On(()=>Jt[this.severity()].icon??"info");messageColor=On(()=>Jt[this.severity()].color??Jt.info.color);static \u0275fac=function(e){return new(e||t)};static \u0275cmp=N({type:t,selectors:[["lib-message"]],hostAttrs:[1,"flex","items-center","justify-between","gap-3","border-l-4","rounded-r","px-4","py-2","shadow-md"],hostVars:2,hostBindings:function(e,n){e&2&&Rn(n.messageColor())},inputs:{summary:[1,"summary"],severity:[1,"severity"],details:[1,"details"],showIcon:[1,"showIcon"]},standalone:!0,features:[x],decls:4,vars:7,consts:[[1,"my-1","!mx-0",3,"name"],[1,"p-1","flex","flex-col"],[3,"innerHTML"],[1,"text-sm",3,"innerHTML"]],template:function(e,n){if(e&1&&(An(0,ou,1,1,"lib-icon",0),H(1,"div",1),P(2,"span",2),An(3,au,1,1,"span",3),V()),e&2){let i;In(n.showIcon()?0:-1),Z(2),Rn(oi(5,su,!!n.details)),oe("innerHTML",n.summary(),wn),Z(),In((i=n.details())?3:-1,i)}},dependencies:[li],encapsulation:2,changeDetection:0})};var tn=class t{get(r){let e=localStorage.getItem(r);return e?JSON.parse(e):null}set({key:r,value:e}){typeof e=="object"&&(e=JSON.stringify(e)),localStorage.setItem(r,e)}remove(r){localStorage.removeItem(r)}check(r){return localStorage.getItem(r)!==null}static \u0275fac=function(e){return new(e||t)};static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})};var b=[];for(nn=0;nn<256;++nn)b.push((nn+256).toString(16).slice(1));var nn;function As(t,r=0){return(b[t[r+0]]+b[t[r+1]]+b[t[r+2]]+b[t[r+3]]+"-"+b[t[r+4]]+b[t[r+5]]+"-"+b[t[r+6]]+b[t[r+7]]+"-"+b[t[r+8]]+b[t[r+9]]+"-"+b[t[r+10]]+b[t[r+11]]+b[t[r+12]]+b[t[r+13]]+b[t[r+14]]+b[t[r+15]]).toLowerCase()}var rn,uu=new Uint8Array(16);function Tr(){if(!rn&&(rn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!rn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return rn(uu)}var cu=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),_r={randomUUID:cu};function lu(t,r,e){if(_r.randomUUID&&!r&&!t)return _r.randomUUID();t=t||{};var n=t.random||(t.rng||Tr)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,r){e=e||0;for(var i=0;i<16;++i)r[e+i]=n[i];return r}return As(n)}var Or=lu;var Le=class t{storage=l(tn);localStorageKey="notifications-center";notifications=Qr(this.getLocalNotifications());notify(r,e,n="info",i=4e3){let s=Or();this.notifications().push({uuid:s,severity:n,summary:r,details:e,date:new Date}),this.storage.set({key:this.localStorageKey,value:this.notifications()}),setTimeout(()=>this.removeNotification(s),i)}success=(r,e)=>this.notify(r,e,"success");error=(r,e)=>this.notify(r,e,"error");getNotifications(){return this.notifications}clearAllNotifications(){this.notifications.set([]),this.storage.remove(this.localStorageKey)}removeNotification(r){let e=this.notifications().filter(n=>n.uuid!==r);this.notifications.set(e),this.storage.set({key:this.localStorageKey,value:e})}getLocalNotifications(){let r=this.storage.get(this.localStorageKey);return r||[]}static \u0275fac=function(e){return new(e||t)};static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})};var du=(t,r)=>r.uuid;function hu(t,r){if(t&1&&P(0,"lib-message",0),t&2){let e=r.$implicit;oe("summary",e.summary)("details",e.details)("severity",e.severity)}}var sn=class t{notifications=l(Le).getNotifications();static \u0275fac=function(e){return new(e||t)};static \u0275cmp=N({type:t,selectors:[["lib-notification-center"]],hostAttrs:[1,"absolute","right-2","top-16","z-50","flex","flex-col","justify-end","gap-3"],standalone:!0,features:[x],decls:2,vars:0,consts:[[3,"summary","details","severity"]],template:function(e,n){e&1&&St(0,hu,1,3,"lib-message",0,du),e&2&&Et(n.notifications())},dependencies:[en],encapsulation:2,changeDetection:0})};var on=class t{notifier=l(Le);ngAfterViewChecked(){this.notifier.notify("Welcome","Welcome to the application!")}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=N({type:t,selectors:[["lib-root"]],hostAttrs:[1,"flex","flex-col","h-screen","bg-primary-100"],standalone:!0,features:[x],decls:5,vars:0,consts:[[1,"py-8","px-12","flex-1","flex","items-center","justify-center","flex-col","gap-8"]],template:function(e,n){e&1&&(P(0,"lib-notification-center")(1,"lib-header"),H(2,"main",0),P(3,"router-outlet"),V(),P(4,"lib-footer"))},dependencies:[br,Qt,Kt,sn],encapsulation:2,changeDetection:0})};var Rs=[{path:"",loadComponent:()=>import("./chunk-IA3G3QUZ.js").then(t=>t.HomePage)}];var Is={providers:[ai({eventCoalescing:!0}),ys(Rs)]};Fi(on,Is).catch(t=>console.error(t)); diff --git a/main-7W3F7FRZ.js b/main-7W3F7FRZ.js new file mode 100644 index 0000000..e78f78f --- /dev/null +++ b/main-7W3F7FRZ.js @@ -0,0 +1,7 @@ +import{a as ut}from"./chunk-NQCIMNAB.js";import{a as Ks}from"./chunk-P7EN3UH4.js";import{a as bs,b as ws,c as Os,d as Ms,e as ht,f as ks,g as Wn,h as Bs,i as js,j as Vs,k as Us,l as $t,m as qs,n as Ws,p as $s}from"./chunk-ZCY2UNJH.js";import{Ca as Hs,G as ns,H as os,I as is,J as rs,L as ss,P as Kl,V as as,X as Qe,Y as cs,_ as ls,a as Rn,aa as ds,b as Gr,ba as us,c as Qr,ca as ps,d as Yr,ea as gs,fa as ot,g as Fn,ga as qe,h as $,ha as fs,i as nt,ia as ms,j as Zr,ja as Wt,k as wt,l as Lo,la as Cs,m as Xr,ma as zn,n as Me,na as Bn,o as Jr,p as zo,q as qt,qa as Ds,r as Bo,ra as Ss,s as Ln,sa as jn,ta as Vn,ua as Ye,v as es,va as Ts,wa as xs,x as ts,ya as Is}from"./chunk-FNBE65Q7.js";import{$ as we,$a as oe,$b as An,Aa as Dr,Ab as Ar,Ac as Fs,B as wn,Ba as Sr,Bc as Ls,C as lr,Cb as he,Cc as zs,Da as T,E as dr,Eb as Mn,F as En,Fa as Ft,G as ur,Ga as ne,H as Dt,Ha as y,I as Ke,Ia as Lt,Ib as Ue,J as dn,Ja as Pn,Jb as Fo,K as un,Ka as zt,Kb as In,La as Ne,Lb as Oe,M as H,Ma as Tr,Mb as ye,N as pr,Na as xr,Nb as jt,O as De,Oa as wr,Ob as kn,Pa as C,Qa as D,Qb as Vt,R as St,Ra as P,Rb as Rr,S as B,Sa as K,Sb as Fr,Ta as G,U as A,Ua as Ve,Ub as Lr,Va as Re,Vb as zr,W as xe,Wb as Br,X as gr,Xa as Er,Xb as jr,Ya as Z,Yb as Vr,Za as x,Zb as Ur,_ as fr,_a as me,aa as Ee,ab as Nr,ba as mr,bb as dt,cb as Je,cc as qr,d as or,da as hr,db as et,dc as Ut,e as xn,ea as yr,eb as Pr,ec as mt,fa as Nn,fb as Or,fc as Wr,ga as Se,gb as Q,gc as $r,h as ce,ha as lt,hb as j,hc as Hr,i as de,ia as ue,ib as Pe,ja as Io,jb as ge,jc as Hl,k as He,ka as _r,kb as Mr,kc as fn,l as Mo,la as ko,lb as Ir,lc as Kr,mb as kr,mc as pe,n as je,na as pn,nb as Bt,nc as Ie,o as ir,oa as vr,ob as R,oc as hs,pa as b,pb as xt,pc as ys,qa as ee,qb as On,qc as _s,r as be,rc as vs,sa as Ao,sb as ie,sc as re,t as rr,tb as tt,tc as Es,u as sr,ua as br,ub as Fe,uc as Ns,v as Ce,va as Tt,vb as gn,vc as Ps,wb as te,wc as Un,xa as Cr,xc as qn,y as ar,yb as Ro,yc as As,z as cr,za as Ge,zc as Rs}from"./chunk-FUUZABHH.js";import{a as J,b as Ct,d as nr,h as ct,j as S}from"./chunk-TWZW5B45.js";var yt=class{};var uc=ct(fn(),1),pc=ct(Kr(),1);var Gs={arabic:"ar",armenian:"am",bulgarian:"bg",danish:"dk",dutch:"nl",english:"en",finnish:"fi",french:"fr",german:"de",greek:"gr",hungarian:"hu",indian:"in",indonesian:"id",irish:"ie",italian:"it",lithuanian:"lt",nepali:"np",norwegian:"no",portuguese:"pt",romanian:"ro",russian:"ru",serbian:"rs",slovenian:"ru",spanish:"es",swedish:"se",tamil:"ta",turkish:"tr",ukrainian:"uk",sanskrit:"sk"},Qs={dutch:/[^A-Za-zàèÊÃŦÃ˛ÃŗÚ0-9_'-]+/gim,english:/[^A-Za-zàèÊÃŦÃ˛ÃŗÚ0-9_'-]+/gim,french:/[^a-z0-9äÃĸàÊèÃĢÃĒïÎÃļôÚÃŧÃģύ-]+/gim,italian:/[^A-Za-zàèÊÃŦÃ˛ÃŗÚ0-9_'-]+/gim,norwegian:/[^a-z0-9_ÃĻøÃĨÆØÅäÄÃļÖÃŧÜ]+/gim,portuguese:/[^a-z0-9à-ÃēÀ-Ú]/gim,russian:/[^a-z0-9Đ°-ŅĐ-Đ¯Ņ‘Ё]+/gim,spanish:/[^a-z0-9A-ZÃĄ-ÃēÁ-ÃšÃąÃ‘ÃŧÜ]+/gim,swedish:/[^a-z0-9_ÃĨÅäÄÃļÖÃŧÜ-]+/gim,german:/[^a-z0-9A-ZäÃļÃŧÄÖÜß]+/gim,finnish:/[^a-z0-9äÃļÄÖ]+/gim,danish:/[^a-z0-9ÃĻøÃĨÆØÅ]+/gim,hungarian:/[^a-z0-9ÃĄÃŠÃ­ÃŗÃļőÃēÃŧÅąÃÃ‰ÃÃ“Ã–ÅÃšÃœÅ°]+/gim,romanian:/[^a-z0-9ăÃĸÃŽČ™Č›Ä‚Ã‚ÃŽČ˜Čš]+/gim,serbian:/[^a-z0-9ÄÄ‡ÅžÅĄÄ‘ÄŒÄ†ÅŊŠĐ]+/gim,turkish:/[^a-z0-9Ã§Ã‡ÄŸÄžÄąÄ°ÃļÖşŞÃŧÜ]+/gim,lithuanian:/[^a-z0-9Ä…ÄÄ™Ä—Ä¯ÅĄÅŗÅĢÅžÄ„ÄŒÄ˜Ä–ÄŽÅ Å˛ÅĒÅŊ]+/gim,arabic:/[^a-z0-9ØŖ-ŲŠ]+/gim,nepali:/[^a-z0-9ā¤…-ā¤š]+/gim,irish:/[^a-z0-9ÃĄÃŠÃ­ÃŗÃēÁÉÍÓÚ]+/gim,indian:/[^a-z0-9ā¤…-ā¤š]+/gim,armenian:/[^a-z0-9ÕĄ-ֆ]+/gim,greek:/[^a-z0-9Îą-Ī‰ÎŦ-ĪŽ]+/gim,indonesian:/[^a-z0-9]+/gim,ukrainian:/[^a-z0-9Đ°-ŅĐ-Đ¯Ņ–Ņ—Ņ”ІЇЄ]+/gim,slovenian:/[^a-z0-9ÄÅžÅĄÄŒÅŊÅ ]+/gim,bulgarian:/[^a-z0-9Đ°-ŅĐ-Đ¯]+/gim,tamil:/[^a-z0-9āŽ…-āŽš]+/gim,sanskrit:/[^a-z0-9A-ZāÄĢÅĢṛḷṃṁá¸ĨśášŖáš­á¸áš‡áš…Ãąá¸ģḚ᚝]+/gim},mn=Object.keys(Gs);function Ys(e){return e!==void 0&&mn.includes(e)?Gs[e]:void 0}var Gl=Date.now().toString().slice(5),Ql=0;var Zs=BigInt(1e3),Xs=BigInt(1e6),Js=BigInt(1e9);var jo=65535;function X(e,n){if(n.length\d+)\$)?(?-?\d*\.?\d*)(?[dfs])/g,function(...t){let o=t[t.length-1],{width:i,type:r,position:s}=o,a=s?n[Number.parseInt(s)-1]:n.shift(),c=i===""?0:Number.parseInt(i);switch(r){case"d":return a.toString().padStart(c,"0");case"f":{let l=a,[u,d]=i.split(".").map(g=>Number.parseFloat(g));return typeof d=="number"&&d>=0&&(l=l.toFixed(d)),typeof u=="number"&&u>=0?l.toString().padStart(c,"0"):l.toString()}case"s":return c<0?a.toString().padEnd(-c," "):a.toString().padStart(c," ");default:return a}})}function Yl(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function Zl(){return typeof process<"u"&&process.release&&process.release.name==="node"}function ea(){return BigInt(Math.floor(performance.now()*1e6))}function Ht(e){return S(this,null,function*(){return typeof e=="number"&&(e=BigInt(e)),e{let o=n.get(t);return o!==void 0&&n.set(t,0),o===e.length})}function Hn(e,n){return S(this,null,function*(){let t={},o=n.length;for(let i=0;iCt(J({},t),{document:J(J({},t.document),n.reduce((o,i)=>{let r=i.split("."),s=r.pop(),a=o;for(let c of r)a[c]=a[c]??{},a=a[c];return a[s]=null,o},t.document))}))}var Jl=mn.join(` + - `),ed={NO_LANGUAGE_WITH_CUSTOM_TOKENIZER:"Do not pass the language option to create when using a custom tokenizer.",LANGUAGE_NOT_SUPPORTED:`Language "%s" is not supported. +Supported languages are: + - ${Jl}`,INVALID_STEMMER_FUNCTION_TYPE:"config.stemmer property must be a function.",MISSING_STEMMER:'As of version 1.0.0 @orama/orama does not ship non English stemmers by default. To solve this, please explicitly import and specify the "%s" stemmer from the package @orama/stemmers. See https://docs.oramasearch.com/open-source/text-analysis/stemming for more information.',CUSTOM_STOP_WORDS_MUST_BE_FUNCTION_OR_ARRAY:"Custom stop words array must only contain strings.",UNSUPPORTED_COMPONENT:'Unsupported component "%s".',COMPONENT_MUST_BE_FUNCTION:'The component "%s" must be a function.',COMPONENT_MUST_BE_FUNCTION_OR_ARRAY_FUNCTIONS:'The component "%s" must be a function or an array of functions.',INVALID_SCHEMA_TYPE:'Unsupported schema type "%s" at "%s". Expected "string", "boolean" or "number" or array of them.',DOCUMENT_ID_MUST_BE_STRING:'Document id must be of type "string". Got "%s" instead.',DOCUMENT_ALREADY_EXISTS:'A document with id "%s" already exists.',DOCUMENT_DOES_NOT_EXIST:'A document with id "%s" does not exists.',MISSING_DOCUMENT_PROPERTY:'Missing searchable property "%s".',INVALID_DOCUMENT_PROPERTY:'Invalid document property "%s": expected "%s", got "%s"',UNKNOWN_INDEX:'Invalid property name "%s". Expected a wildcard string ("*") or array containing one of the following properties: %s',INVALID_BOOST_VALUE:"Boost value must be a number greater than, or less than 0.",INVALID_FILTER_OPERATION:"You can only use one operation per filter, you requested %d.",SCHEMA_VALIDATION_FAILURE:'Cannot insert document due schema validation failure on "%s" property.',INVALID_SORT_SCHEMA_TYPE:'Unsupported sort schema type "%s" at "%s". Expected "string" or "number".',CANNOT_SORT_BY_ARRAY:'Cannot configure sort for "%s" because it is an array (%s).',UNABLE_TO_SORT_ON_UNKNOWN_FIELD:'Unable to sort on unknown field "%s". Allowed fields: %s',SORT_DISABLED:"Sort is disabled. Please read the documentation at https://docs.oramasearch for more information.",UNKNOWN_GROUP_BY_PROPERTY:'Unknown groupBy property "%s".',INVALID_GROUP_BY_PROPERTY:'Invalid groupBy property "%s". Allowed types: "%s", but given "%s".',UNKNOWN_FILTER_PROPERTY:'Unknown filter property "%s".',INVALID_VECTOR_SIZE:'Vector size must be a number greater than 0. Got "%s" instead.',INVALID_VECTOR_VALUE:'Vector value must be a number greater than 0. Got "%s" instead.',INVALID_INPUT_VECTOR:`Property "%s" was declared as a %s-dimensional vector, but got a %s-dimensional vector instead. +Input vectors must be of the size declared in the schema, as calculating similarity between vectors of different sizes can lead to unexpected results.`,WRONG_SEARCH_PROPERTY_TYPE:'Property "%s" is not searchable. Only "string" properties are searchable.',FACET_NOT_SUPPORTED:`Facet doens't support the type "%s".`,INVALID_DISTANCE_SUFFIX:'Invalid distance suffix "%s". Valid suffixes are: cm, m, km, mi, yd, ft.',INVALID_SEARCH_MODE:'Invalid search mode "%s". Valid modes are: "fulltext", "vector", "hybrid".',MISSING_VECTOR_AND_SECURE_PROXY:"No vector was provided and no secure proxy was configured. Please provide a vector or configure an Orama Secure Proxy to perform hybrid search.",MISSING_TERM:'"term" is a required parameter when performing hybrid search. Please provide a search term.',INVALID_VECTOR_INPUT:'Invalid "vector" property. Expected an object with "value" and "property" properties, but got "%s" instead.',PLUGIN_CRASHED:"A plugin crashed during initialization. Please check the error message for more information:"};function k(e,...n){let t=new Error(ta(ed[e]??`Unsupported Orama Error code: ${e}`,...n));return t.code=e,"captureStackTrace"in Error.prototype&&Error.captureStackTrace(t),t}function ia(e){return S(this,null,function*(){return{raw:Number(e),formatted:yield Ht(e)}})}function ra(e){return S(this,null,function*(){if(e.id){if(typeof e.id!="string")throw k("DOCUMENT_ID_MUST_BE_STRING",typeof e.id);return e.id}return yield $n()})}function Vo(e,n){return S(this,null,function*(){for(let[t,o]of Object.entries(n)){let i=e[t];if(!(typeof i>"u")&&!(o==="geopoint"&&typeof i=="object"&&typeof i.lon=="number"&&typeof i.lat=="number")&&!(o==="enum"&&(typeof i=="string"||typeof i=="number"))){if(o==="enum[]"&&Array.isArray(i)){let r=i.length;for(let s=0;se.internalIdToId.length?se(e,n.toString()):n}function Et(e,n){if(e.internalIdToId.length"u"?!1:(delete e.docs[t],e.count--,!0)})}function ud(e){return S(this,null,function*(){return e.count})}function pd(e,n){return S(this,null,function*(){let t=n;return{docs:t.docs,count:t.count,sharedInternalDocumentStore:e}})}function gd(e){return S(this,null,function*(){return{docs:e.docs,count:e.count}})}function ca(){return S(this,null,function*(){return{create:rd,get:sd,getMultiple:ad,getAll:cd,store:ld,remove:dd,count:ud,load:pd,save:gd}})}var la=["beforeInsert","afterInsert","beforeRemove","afterRemove","beforeUpdate","afterUpdate","beforeSearch","afterSearch","beforeInsertMultiple","afterInsertMultiple","beforeRemoveMultiple","afterRemoveMultiple","beforeUpdateMultiple","afterUpdateMultiple","beforeLoad","afterLoad","afterCreate"];function da(e,n){return S(this,null,function*(){var t;let o=[],i=(t=e.plugins)===null||t===void 0?void 0:t.length;if(!i)return o;for(let r=0;r=n&&r.k<=t&&X(o,r.v),t>r.k&&i(r.r))}return i(e.root),o}function Qo(e,n,t=!1){let o=[];if(e===null)return o;let i=[e.root];for(;i.length>0;){let r=i.pop();r&&(t&&r.k>=n&&X(o,r.v),!t&&r.k>n&&X(o,r.v),i.push(r.r),i.push(r.l))}return o}function Yo(e,n,t=!1){let o=[];if(e===null)return o;let i=[e.root];for(;i.length>0;){let r=i.pop();r&&(t&&r.k<=n&&X(o,r.v),!t&&r.ke.k)e=e.r;else return e;return null}function ma(e,n){return{root:{k:e,v:n,l:null,r:null,h:0}}}function ha(e,n,t){function o(i,r,s){if(i===null)return{k:r,v:s,l:null,r:null,h:0};if(ri.k)i.r=o(i.r,r,s);else{for(let c of s)i.v.push(c);return i}i.h=1+Math.max(We(i.l),We(i.r));let a=We(i.l)-We(i.r);return a>1&&ri.r.k?Ko(i):a>1&&r>i.l.k?(i.l=Ko(i.l),Go(i)):a<-1&&r{if(t.l===null&&t.r===null)o===null?e.root=null:o.l===t?o.l=null:o.r=null;else if(t.l!=null&&t.r!=null){let r=t.r,s=t;for(;r.l!=null;)s=r,r=r.l;t.k=r.k,s===t?s.r=r.r:s.l=r.r}else{let r=t.l!=null?t.l:t.r;o===null?e.root=r:o.l===t?o.l=r:o.r=r}})()}function _a(e,n,t){let o=fa(e.root,t);if(o){if(o.v.length===1){fd(e,t);return}o.v.splice(o.v.indexOf(n),1)}}function va(){return{numberToDocumentId:new Map}}function ba(e,n,t){return e.numberToDocumentId.has(n)?(e.numberToDocumentId.get(n).push(t),e):(e.numberToDocumentId.set(n,[t]),e)}function Ca(e,n,t){var o,i;e?.numberToDocumentId.set(t,((o=e?.numberToDocumentId.get(t))===null||o===void 0?void 0:o.filter(r=>r!==n))??[]),((i=e?.numberToDocumentId.get(t))===null||i===void 0?void 0:i.length)===0&&e?.numberToDocumentId.delete(t)}function Da(e,n){let t=Object.keys(n);if(t.length!==1)throw new Error("Invalid operation");let o=t[0];switch(o){case"eq":{let i=n[o];return e.numberToDocumentId.get(i)??[]}case"in":{let i=n[o],r=[];for(let s of i){let a=e.numberToDocumentId.get(s);a!=null&&X(r,a)}return r}case"nin":{let i=n[o],r=[],s=e.numberToDocumentId.keys();for(let a of s){if(i.includes(a))continue;let c=e.numberToDocumentId.get(a);c!=null&&X(r,c)}return r}}throw new Error("Invalid operation")}function Sa(e,n){let t=Object.keys(n);if(t.length!==1)throw new Error("Invalid operation");let o=t[0];switch(o){case"containsAll":{let r=n[o].map(s=>e.numberToDocumentId.get(s)??[]);return Gt(r)}}throw new Error("Invalid operation")}function Ta(e,n,t){if(e===n)return 0;let o=e;e.length>n.length&&(e=n,n=o);let i=e.length,r=n.length,s=0;for(;s0&&e.charCodeAt(~-i)===n.charCodeAt(~-r);)i--,r--;if(!i)return r>t?-1:r;if(i-=s,r-=s,i<=t&&r<=t)return i>r?i:r;let a=r-i;if(t>r)t=r;else if(a>t)return-1;let c=0,l=[],u=[];for(;cd?1:0,f+=ft)return-1}return m<=t?m:-1}function Zo(e,n,t){return S(this,null,function*(){let o=Ta(e,n,t);return{distance:o,isBounded:o>=0}})}function Xo(e,n,t){let o=Ta(e,n,t);return{distance:o,isBounded:o>=0}}var Jo=class{constructor(n,t,o){this.k=n,this.s=t,this.e=o}c={};d=[];w="";toJSON(){return{w:this.w,s:this.s,c:this.c,d:this.d,e:this.e}}};function Jt(e,n){e.w=n.w+e.s}function Gn(e,n){e.d.push(n)}function md(e,n){let t=e.d.indexOf(n);return t===-1?!1:(e.d.splice(t,1),!0)}function ei(e,n,t,o,i){if(e.e){let{w:r,d:s}=e;if(o&&r!==t)return{};if(Kt(n,r)==null&&(i?Math.abs(t.length-r.length)<=i&&Xo(t,r,i).isBounded&&(n[r]=[]):n[r]=[]),Kt(n,r)!=null&&s.length>0){let a=new Set(n[r]),c=s.length;for(let l=0;l0)){let c=new Set(r[s]),l=a.length;for(let u=0;u=n.length)){n[t]in e.c&&hn(e.c[n[t]],n,t+1,o,i,r),hn(e,n,t+1,o-1,i,r);for(let s in e.c)hn(e.c[s],n,t,o-1,i,r);for(let s in e.c)s!==n[t]&&hn(e.c[s],n,t+1,o-1,i,r)}}}function ti(e,{term:n,exact:t,tolerance:o}){if(o&&!t){let i={};return o=o||0,hn(e,n,0,o||0,o,i),i}else{let i=n.length;for(let s=0;s-1){var c;(c=o.docIDs)===null||c===void 0||c.splice(u,1),(o.docIDs==null||o.docIDs.length===0)&&(r!=null?s==="left"?r.left=o.left!==null?o.left:o.right:s==="right"&&(r.right=o.right!==null?o.right:o.left):e.root=o.left!==null?o.left:o.right);return}}let l=i%2;r=o,l===0?n.lon0;){let{node:l,depth:u}=a.pop();if(l===null)continue;let d=s(n,l.point);(o?d<=t:d>t)&&c.push({point:l.point,docIDs:l.docIDs??[]}),l.left!=null&&a.push({node:l.left,depth:u+1}),l.right!=null&&a.push({node:l.right,depth:u+1})}return i&&c.sort((l,u)=>{let d=s(n,l.point),g=s(n,u.point);return i.toLowerCase()==="asc"?d-g:g-d}),c}function Ia(e,n,t=!0,o=null,i=!1){let r=[{node:e,depth:0}],s=[];for(;r.length>0;){let c=r.pop();if(c==null||c.node==null)continue;let{node:l,depth:u}=c,d=u+1;l.left!=null&&r.push({node:l.left,depth:d}),l.right!=null&&r.push({node:l.right,depth:d});let g=yd(n,l.point);g&&t?s.push({point:l.point,docIDs:l.docIDs??[]}):!g&&!t&&s.push({point:l.point,docIDs:l.docIDs??[]})}let a=hd(n);if(o){let c=i?Aa:ka;s.sort((l,u)=>{let d=c(a,l.point),g=c(a,u.point);return o.toLowerCase()==="asc"?d-g:g-d})}return s}function hd(e){let n=0,t=0,o=0,i=e.length;for(let s=0,a=i-1;si!=d>i&&o<(u-c)*(i-l)/(d-l)+c&&(t=!t)}return t}function ka(e,n){let t=Math.PI/180,o=e.lat*t,i=n.lat*t,r=(n.lat-e.lat)*t,s=(n.lon-e.lon)*t,a=Math.sin(r/2)*Math.sin(r/2)+Math.cos(o)*Math.cos(i)*Math.sin(s/2)*Math.sin(s/2);return 6371e3*(2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a)))}function Aa(e,n){let o=.0033528106647474805,i=(1-o)*6378137,r=Math.PI/180,s=e.lat*r,a=n.lat*r,c=(n.lon-e.lon)*r,l=Math.atan((1-o)*Math.tan(s)),u=Math.atan((1-o)*Math.tan(a)),d=Math.sin(l),g=Math.cos(l),p=Math.sin(u),f=Math.cos(u),m=c,_,h=1e3,v,w,N,z,F;do{let Y=Math.sin(m),Te=Math.cos(m);N=Math.sqrt(f*Y*(f*Y)+(g*p-d*f*Te)*(g*p-d*f*Te)),z=d*p+g*f*Te,F=Math.atan2(N,z),v=g*f*Y/N,w=1-v*v;let ke=z-2*d*p/w,at=o/16*w*(4+o*(4-3*w));_=m,m=c+(1-at)*o*v*(F+at*N*(ke+at*z*(-1+2*ke*ke)))}while(Math.abs(m-_)>1e-12&&--h>0);let E=w*(6378137*6378137-i*i)/(i*i),L=1+E/16384*(4096+E*(-768+E*(320-175*E))),V=E/1024*(256+E*(-128+E*(74-47*E))),W=V*N*(z-2*d*p/w+V/4*(z*(-1+2*N*N)-V/6*F*(-3+4*N*N)*(-3+4*F*F)));return i*L*(F-W)}function Qn(e,n,t=1,o){if(n===0)throw k("INVALID_BOOST_VALUE");let i=new Map,r=e.length;for(let h=0;hv[1]-h[1]);if(t===1)return l;let u=l.length,d=[];for(let h of i.entries())d.push([h[0],h[1][0],h[1][1]]);let g=d.sort((h,v)=>h[2]>v[2]?-1:h[2]v[1]?-1:h[1]"u"){if(t===0)return[];p=0}let f=g.length,m=new Array(f);for(let h=0;h=o&&r.push([s,u])}return r.sort((s,a)=>a[1]-s[1])}function _d(e,n,t,o,i){return S(this,null,function*(){let r=se(e.sharedInternalDocumentStore,t);e.avgFieldLength[n]=((e.avgFieldLength[n]??0)*(i-1)+o.length)/i,e.fieldLengths[n][r]=o.length,e.frequencies[n][r]={}})}function vd(e,n,t,o,i){return S(this,null,function*(){let r=0;for(let c of o)c===i&&r++;let s=se(e.sharedInternalDocumentStore,t),a=r/o.length;e.frequencies[n][s][i]=a,i in e.tokenOccurrences[n]||(e.tokenOccurrences[n][i]=0),e.tokenOccurrences[n][i]=(e.tokenOccurrences[n][i]??0)+1})}function bd(e,n,t,o){return S(this,null,function*(){let i=se(e.sharedInternalDocumentStore,t);e.avgFieldLength[n]=(e.avgFieldLength[n]*o-e.fieldLengths[n][i])/(o-1),e.fieldLengths[n][i]=void 0,e.frequencies[n][i]=void 0})}function Cd(e,n,t){return S(this,null,function*(){e.tokenOccurrences[n][t]--})}function Dd(e,n,t,o,i){return S(this,null,function*(){let r=Array.from(i),s=n.avgFieldLength[t],a=n.fieldLengths[t],c=n.tokenOccurrences[t],l=n.frequencies[t],u=typeof c[o]=="number"?c[o]??0:0,d=[],g=r.length;for(let f=0;fS(this,null,function*(){let c=se(n.sharedInternalDocumentStore,o),{type:l,node:u}=n.indexes[t];switch(l){case"Bool":{u[a?"true":"false"].push(c);break}case"AVL":{ha(u,a,[c]);break}case"Radix":{let d=yield r.tokenize(a,i,t);yield e.insertDocumentScoreParameters(n,t,c,d,s);for(let g of d)yield e.insertTokenScoreParameters(n,t,c,d,g),wa(u,g,c);break}case"Flat":{ba(u,a,c);break}case"BKD":{Pa(u,a,[c]);break}}})}function Td(e,n,t,o,i,r,s,a,c){return S(this,null,function*(){if(pt(r))return xd(n,t,i,o);let l=Sd(e,n,t,o,s,a,c);if(!Yt(r))return l(i);let u=i,d=u.length;for(let g=0;gJ({[a]:[]},s),{});for(let s of o){let a=t[s];if(typeof n.indexes[s]>"u")throw k("UNKNOWN_FILTER_PROPERTY",s);let{node:c,type:l,isArray:u}=n.indexes[s];if(l==="Bool"){let p=c[a.toString()];X(i[s],p);continue}if(l==="BKD"){let g;if("radius"in a)g="radius";else if("polygon"in a)g="polygon";else throw new Error(`Invalid operation ${a}`);if(g==="radius"){let{value:p,coordinates:f,unit:m="m",inside:_=!0,highPrecision:h=!1}=a[g],v=oa(p,m),w=Ma(c.root,f,v,_,void 0,h);X(i[s],w.map(({docIDs:N})=>N).flat())}else{let{coordinates:p,inside:f=!0,highPrecision:m=!1}=a[g],_=Ia(c.root,p,f,void 0,m);X(i[s],_.map(({docIDs:h})=>h).flat())}continue}if(l==="Radix"&&(typeof a=="string"||Array.isArray(a))){for(let g of[a].flat()){let p=yield e.tokenizer.tokenize(g,e.language,s);for(let f of p){let m=ti(c,{term:f,exact:!0});X(i[s],Object.values(m).flat())}}continue}let d=Object.keys(a);if(d.length>1)throw k("INVALID_FILTER_OPERATION",d.length);if(l==="Flat"){u?X(i[s],Sa(c,a)):X(i[s],Da(c,a));continue}if(l==="AVL"){let g=d[0],p=a[g],f=[];switch(g){case"gt":{f=Qo(c,p,!1);break}case"gte":{f=Qo(c,p,!0);break}case"lt":{f=Yo(c,p,!1);break}case"lte":{f=Yo(c,p,!0);break}case"eq":{f=ya(c,p)??[];break}case"between":{let[m,_]=p;f=ga(c,m,_);break}}X(i[s],f)}}return Gt(Object.values(i))})}function Pd(e){return S(this,null,function*(){return e.searchableProperties})}function Od(e){return S(this,null,function*(){return e.searchablePropertiesWithTypes})}function za(e){let n=Nt(e.e,e.s,e.k);n.d=e.d,n.w=e.w;for(let t of Object.keys(e.c))n.c[t]=za(e.c[t]);return n}function Md(e){return{numberToDocumentId:new Map(e)}}function Id(e){return Array.from(e.numberToDocumentId.entries())}function kd(e,n){return S(this,null,function*(){let{indexes:t,vectorIndexes:o,searchableProperties:i,searchablePropertiesWithTypes:r,frequencies:s,tokenOccurrences:a,avgFieldLength:c,fieldLengths:l}=n,u={},d={};for(let g of Object.keys(t)){let{node:p,type:f,isArray:m}=t[g];switch(f){case"Radix":u[g]={type:"Radix",node:za(p),isArray:m};break;case"Flat":u[g]={type:"Flat",node:Md(p),isArray:m};break;default:u[g]=t[g]}}for(let g of Object.keys(o)){let p=o[g].vectors;for(let f in p)p[f]=[p[f][0],new Float32Array(p[f][1])];d[g]={size:o[g].size,vectors:p}}return{sharedInternalDocumentStore:e,indexes:u,vectorIndexes:d,searchableProperties:i,searchablePropertiesWithTypes:r,frequencies:s,tokenOccurrences:a,avgFieldLength:c,fieldLengths:l}})}function Ad(e){return S(this,null,function*(){let{indexes:n,vectorIndexes:t,searchableProperties:o,searchablePropertiesWithTypes:i,frequencies:r,tokenOccurrences:s,avgFieldLength:a,fieldLengths:c}=e,l={};for(let d of Object.keys(t)){let g=t[d].vectors;for(let p in g)g[p]=[g[p][0],Array.from(g[p][1])];l[d]={size:t[d].size,vectors:g}}let u={};for(let d of Object.keys(n)){let{type:g,node:p,isArray:f}=n[d];if(g!=="Flat"){u[d]=n[d];continue}u[d]={type:"Flat",node:Id(p),isArray:f}}return{indexes:u,vectorIndexes:l,searchableProperties:o,searchablePropertiesWithTypes:i,frequencies:r,tokenOccurrences:s,avgFieldLength:a,fieldLengths:c}})}function Ba(){return S(this,null,function*(){return{create:La,insert:Td,remove:wd,insertDocumentScoreParameters:_d,insertTokenScoreParameters:vd,removeDocumentScoreParameters:bd,removeTokenScoreParameters:Cd,calculateResultScores:Dd,search:Ed,searchByWhereClause:Nd,getSearchableProperties:Pd,getSearchablePropertiesWithTypes:Od,load:kd,save:Ad}})}function ja(e,n,t,o,i){let r={language:e.tokenizer.language,sharedInternalDocumentStore:n,enabled:!0,isSorted:!0,sortableProperties:[],sortablePropertiesWithTypes:{},sorts:{}};for(let[s,a]of Object.entries(t)){let c=`${i}${i?".":""}${s}`;if(!o.includes(c)){if(typeof a=="object"&&!Array.isArray(a)){let l=ja(e,n,a,o,c);X(r.sortableProperties,l.sortableProperties),r.sorts=J(J({},r.sorts),l.sorts),r.sortablePropertiesWithTypes=J(J({},r.sortablePropertiesWithTypes),l.sortablePropertiesWithTypes);continue}if(!pt(a))switch(a){case"boolean":case"number":case"string":r.sortableProperties.push(c),r.sortablePropertiesWithTypes[c]=a,r.sorts[c]={docs:new Map,orderedDocsToRemove:new Map,orderedDocs:[],type:a};break;case"geopoint":case"enum":continue;case"enum[]":case"boolean[]":case"number[]":case"string[]":continue;default:throw k("INVALID_SORT_SCHEMA_TYPE",Array.isArray(a)?"array":a,c)}}}return r}function Rd(e,n,t,o){return S(this,null,function*(){return o?.enabled!==!1?ja(e,n,t,(o||{}).unsortableProperties||[],""):{disabled:!0}})}function Fd(e,n,t,o){return S(this,null,function*(){if(!e.enabled)return;e.isSorted=!1;let i=se(e.sharedInternalDocumentStore,t),r=e.sorts[n];r.orderedDocsToRemove.has(i)&&oi(e,n),r.docs.set(i,r.orderedDocs.length),r.orderedDocs.push([i,o])})}function Va(e){if(e.isSorted||!e.enabled)return;let n=Object.keys(e.sorts);for(let t of n)jd(e,t);e.isSorted=!0}function Ld(e,n,t){return n[1].localeCompare(t[1],Ys(e))}function zd(e,n){return e[1]-n[1]}function Bd(e,n){return n[1]?-1:1}function jd(e,n){let t=e.sorts[n],o;switch(t.type){case"string":o=Ld.bind(null,e.language);break;case"number":o=zd.bind(null);break;case"boolean":o=Bd.bind(null);break}t.orderedDocs.sort(o);let i=t.orderedDocs.length;for(let r=0;r!t.orderedDocsToRemove.has(o[0])),t.orderedDocsToRemove.clear())}function Ud(e,n,t){return S(this,null,function*(){if(!e.enabled)return;let o=e.sorts[n],i=se(e.sharedInternalDocumentStore,t);o.docs.get(i)&&(o.docs.delete(i),o.orderedDocsToRemove.set(i,!0))})}function qd(e,n,t){return S(this,null,function*(){if(!e.enabled)throw k("SORT_DISABLED");let o=t.property,i=t.order==="DESC",r=e.sorts[o];if(!r)throw k("UNABLE_TO_SORT_ON_UNKNOWN_FIELD",o,e.sortableProperties.join(", "));return oi(e,o),Va(e),n.sort((s,a)=>{let c=r.docs.get(se(e.sharedInternalDocumentStore,s[0])),l=r.docs.get(se(e.sharedInternalDocumentStore,a[0])),u=typeof c<"u",d=typeof l<"u";return!u&&!d?0:u?d?i?l-c:c-l:-1:1}),n})}function Wd(e){return S(this,null,function*(){return e.enabled?e.sortableProperties:[]})}function $d(e){return S(this,null,function*(){return e.enabled?e.sortablePropertiesWithTypes:{}})}function Hd(e,n){return S(this,null,function*(){let t=n;if(!t.enabled)return{enabled:!1};let o=Object.keys(t.sorts).reduce((i,r)=>{let{docs:s,orderedDocs:a,type:c}=t.sorts[r];return i[r]={docs:new Map(Object.entries(s).map(([l,u])=>[+l,u])),orderedDocsToRemove:new Map,orderedDocs:a,type:c},i},{});return{sharedInternalDocumentStore:e,language:t.language,sortableProperties:t.sortableProperties,sortablePropertiesWithTypes:t.sortablePropertiesWithTypes,sorts:o,enabled:!0,isSorted:t.isSorted}})}function Kd(e){return S(this,null,function*(){if(!e.enabled)return{enabled:!1};Vd(e),Va(e);let n=Object.keys(e.sorts).reduce((t,o)=>{let{docs:i,orderedDocs:r,type:s}=e.sorts[o];return t[o]={docs:Object.fromEntries(i.entries()),orderedDocs:r,type:s},t},{});return{language:e.language,sortableProperties:e.sortableProperties,sortablePropertiesWithTypes:e.sortablePropertiesWithTypes,sorts:n,enabled:e.enabled,isSorted:e.isSorted}})}function Ua(){return S(this,null,function*(){return{create:Rd,insert:Fd,remove:Ud,save:Kd,load:Hd,sortBy:qd,getSortableProperties:Wd,getSortablePropertiesWithTypes:$d}})}var Gd=[65,65,65,65,65,65,65,67,69,69,69,69,73,73,73,73,69,78,79,79,79,79,79,null,79,85,85,85,85,89,80,115,97,97,97,97,97,97,97,99,101,101,101,101,105,105,105,105,101,110,111,111,111,111,111,null,111,117,117,117,117,121,112,121,65,97,65,97,65,97,67,99,67,99,67,99,67,99,68,100,68,100,69,101,69,101,69,101,69,101,69,101,71,103,71,103,71,103,71,103,72,104,72,104,73,105,73,105,73,105,73,105,73,105,73,105,74,106,75,107,107,76,108,76,108,76,108,76,108,76,108,78,110,78,110,78,110,110,78,110,79,111,79,111,79,111,79,111,82,114,82,114,82,114,83,115,83,115,83,115,83,115,84,116,84,116,84,116,85,117,85,117,85,117,85,117,85,117,85,117,87,119,89,121,89,90,122,90,122,90,122,115];function Qd(e){return e<192||e>383?e:Gd[e-192]||e}function qa(e){let n=[];for(let t=0;t{e[_t]=void 0}),e[_t]=0),e[_t]>1e3?(iu("Orama's insert operation is synchronous. Please avoid inserting a large number of document in a single operation in order not to block the main thread or, in alternative, please use insertMultiple.",{code:"ORAMA0001"}),e[_t]=-1):e[_t]>=0&&e[_t]++}function Qa(e,n,t,o){return S(this,null,function*(){let i=yield e.validateSchema(n,e.schema);if(i)throw k("SCHEMA_VALIDATION_FAILURE",i);return au(e,n,t,o)})}var ru=new Set(["enum","enum[]"]),su=new Set(["string","number"]);function au(e,n,t,o){return S(this,null,function*(){let{index:i,docs:r}=e.data,s=yield e.getDocumentIndexId(n);if(typeof s!="string")throw k("DOCUMENT_ID_MUST_BE_STRING",typeof s);if(!(yield e.documentsStore.store(r,s,n)))throw k("DOCUMENT_ALREADY_EXISTS",s);let a=yield e.documentsStore.count(r);o||(yield $o(e.beforeInsert,e,s,n));let c=yield e.index.getSearchableProperties(i),l=yield e.index.getSearchablePropertiesWithTypes(i),u=yield e.getDocumentProperties(n,c);for(let[v,w]of Object.entries(u)){if(typeof w>"u")continue;let N=typeof w,z=l[v];if(!(sa(z)&&typeof w=="object"&&typeof w.lon=="number"&&typeof w.lat=="number")&&!(pt(z)&&Array.isArray(w))&&!(Yt(z)&&Array.isArray(w))&&!(ru.has(z)&&su.has(N))&&N!==z)throw k("INVALID_DOCUMENT_PROPERTY",v,z,N)}for(let v of c){var d,g,p,f;let w=u[v];if(typeof w>"u")continue;let N=l[v];yield(g=(d=e.index).beforeInsert)===null||g===void 0?void 0:g.call(d,e.data.index,v,s,w,N,t,e.tokenizer,a),yield e.index.insert(e.index,e.data.index,v,s,w,N,t,e.tokenizer,a),yield(f=(p=e.index).afterInsert)===null||f===void 0?void 0:f.call(p,e.data.index,v,s,w,N,t,e.tokenizer,a)}let m=yield e.sorter.getSortableProperties(e.data.sorting),_=yield e.sorter.getSortablePropertiesWithTypes(e.data.sorting),h=yield e.getDocumentProperties(n,m);for(let v of m){let w=h[v];if(typeof w>"u")continue;let N=_[v];yield e.sorter.insert(e.data.sorting,v,s,w,N,t)}return o||(yield $o(e.afterInsert,e,s,n)),Ga(e),s})}function ci(e,n,t,o,i,r){return S(this,null,function*(){i||(yield Ho(e.beforeInsertMultiple,e,n));let s=n.length,a=e.schema;for(let c=0;c{let l=0;function u(){return S(this,null,function*(){let d=n.slice(l*t,++l*t);if(!d.length)return a();for(let g of d)try{let p=yield Qa(e,g,o,i);s.push(p)}catch(p){c(p)}setTimeout(u,r)})}setTimeout(u,r)}),i||(yield Ho(e.afterInsertMultiple,e,n)),s})}var li="fulltext",Ya="hybrid",Za="vector";function en(e,n){let t=new Map,o=[];for(let i of e)t.set(i,!0);for(let i of n){let[r]=i;t.has(r)&&(o.push(i),t.delete(r))}return o}function lu(e,n){return e[1]-n[1]}function du(e,n){return n[1]-e[1]}function uu(e="desc"){return e.toLowerCase()==="asc"?lu:du}function tn(e,n,t){return S(this,null,function*(){let o={},i=n.map(([l])=>l),r=yield e.documentsStore.getMultiple(e.data.docs,i),s=Object.keys(t),a=yield e.index.getSearchablePropertiesWithTypes(e.data.index);for(let l of s){let u;if(a[l]==="number"){let{ranges:d}=t[l],g=d.length,p=Array.from({length:g});for(let f=0;f{for(let i of e){let r=`${i.from}-${i.to}`;t?.has(r)||o>=i.from&&o<=i.to&&(n[r]===void 0?n[r]=1:(n[r]++,t?.add(r)))}}}function Ja(e,n,t){let o=n==="boolean"?"false":"";return i=>{let r=i?.toString()??o;t?.has(r)||(e[r]=(e[r]??0)+1,t?.add(r))}}var pu={reducer:(e,n,t,o)=>(n[o]=t,n),getInitialValue:e=>Array.from({length:e})},ec=["string","number","boolean"];function nn(e,n,t){return S(this,null,function*(){let o=t.properties,i=o.length,r=yield e.index.getSearchablePropertiesWithTypes(e.data.index);for(let h=0;h"u")throw k("UNKNOWN_GROUP_BY_PROPERTY",v);if(!ec.includes(r[v]))throw k("INVALID_GROUP_BY_PROPERTY",v,ec.join(", "),r[v])}let s=n.map(([h])=>Et(e.internalDocumentIDStore,h)),a=yield e.documentsStore.getMultiple(e.data.docs,s),c=a.length,l=t.maxResult||Number.MAX_SAFE_INTEGER,u=[],d={};for(let h=0;h"u")continue;let L=typeof E!="boolean"?E:""+E,V=w.perValue[L]??{indexes:[],count:0};V.count>=l||(V.indexes.push(z),V.count++,w.perValue[L]=V,N.add(E))}u.push(Array.from(N)),d[v]=w}let g=tc(u),p=g.length,f=[];for(let h=0;hF-E),N.indexes.length!==0&&f.push(N)}let m=f.length,_=Array.from({length:m});for(let h=0;h({id:s[L],score:n[L][1],document:a[L]})),z=w.reducer.bind(null,v.values),F=w.getInitialValue(v.indexes.length),E=N.reduce(z,F);_[h]={values:v.values,result:E}}return _})}function tc(e,n=0){if(n+1===e.length)return e[n].map(r=>[r]);let t=e[n],o=tc(e,n+1),i=[];for(let r of t)for(let s of o){let a=[r];X(a,s),i.push(a)}return i}function nc(e,n,t){return S(this,null,function*(){let o=yield it();e.beforeSearch&&(yield Xt(e.beforeSearch,e,n,t)),n.relevance=Object.assign(Jn,n.relevance??{});let i=Object.keys(e.data.index.vectorIndexes),r=n.facets&&Object.keys(n.facets).length>0,{limit:s=10,offset:a=0,term:c,properties:l,threshold:u=1,distinctOn:d,includeVectors:g=!1}=n,p=n.preflight===!0,{index:f,docs:m}=e.data,_=yield e.tokenizer.tokenize(c??"",t),h=e.caches.propertiesToSearch;if(!h){let W=yield e.index.getSearchablePropertiesWithTypes(f);h=yield e.index.getSearchableProperties(f),h=h.filter(fe=>W[fe].startsWith("string")),e.caches.propertiesToSearch=h}if(l&&l!=="*"){for(let W of l)if(!h.includes(W))throw k("UNKNOWN_INDEX",W,h.join(", "));h=h.filter(W=>l.includes(W))}let v=yield Pt(e.tokenizer,e.index,e.documentsStore,t,n,h,_,yield e.documentsStore.count(m),o),w=Object.keys(n.where??{}).length>0,N=[];w&&(N=yield e.index.searchByWhereClause(v,f,n.where));let z=_.length;if(z||l&&l.length>0){let W=h.length;for(let fe=0;fe[W,0]));let E=Object.entries(v.uniqueDocsIDs).map(([W,fe])=>[+W,fe]);if(w&&(E=en(N,E)),n.sortBy)if(typeof n.sortBy=="function"){let W=E.map(([Te])=>Te),Y=(yield e.documentsStore.getMultiple(e.data.docs,W)).map((Te,ke)=>[E[ke][0],E[ke][1],Te]);Y.sort(n.sortBy),E=Y.map(([Te,ke])=>[Te,ke])}else E=yield e.sorter.sortBy(e.data.sorting,E,n.sortBy).then(W=>W.map(([fe,Y])=>[se(e.internalDocumentIDStore,fe),Y]));else E=E.sort(na);let L;p||(L=yield d?oc(e,E,a,s,d):eo(e,E,a,s));let V={elapsed:{formatted:"",raw:0},hits:[],count:E.length};if(typeof L<"u"&&(V.hits=L.filter(Boolean),g||Kn(V,i)),r){let W=yield tn(e,E,n.facets);V.facets=W}return n.groupBy&&(V.groups=yield nn(e,E,n.groupBy)),e.afterSearch&&(yield Zt(e.afterSearch,e,n,t,V)),V.elapsed=yield e.formatElapsedTime((yield it())-v.timeStart),V})}function ic(e,n,t="english"){return S(this,null,function*(){let o=yield it();e.beforeSearch&&(yield Xt(e.beforeSearch,e,n,t));let{vector:i}=n;if(i&&(!("value"in i)||!("property"in i)))throw k("INVALID_VECTOR_INPUT",Object.keys(i).join(", "));let{limit:r=10,offset:s=0,includeVectors:a=!1}=n,c=e.data.index.vectorIndexes[i.property],l=c.size,u=c.vectors,d=n.facets&&Object.keys(n.facets).length>0,g=Object.keys(n.where??{}).length>0,{index:p,docs:f}=e.data;if(i?.value.length!==l)throw k("INVALID_INPUT_VECTOR",i?.property,l,i?.value.length);i instanceof Float32Array||(i.value=new Float32Array(i.value));let m=Yn(i.value,u,l,n.similarity).map(([V,W])=>[se(e.internalDocumentIDStore,V),W]),_=e.caches.propertiesToSearch;if(!_){let V=yield e.index.getSearchablePropertiesWithTypes(p);_=yield e.index.getSearchableProperties(p),_=_.filter(W=>V[W].startsWith("string")),e.caches.propertiesToSearch=_}let h=[],v=yield Pt(e.tokenizer,e.index,e.documentsStore,t,n,_,h,yield e.documentsStore.count(f),o),w=[];g&&(w=yield e.index.searchByWhereClause(v,p,n.where),m=en(w,m));let N=[];d&&(N=yield tn(e,m,n.facets));let z=Array.from({length:r});for(let V=0;V0,[c,l]=yield Promise.all([gu(e,n,t),fu(e,n)]),{index:u,docs:d}=e.data,g=n.hybridWeights,p=hu(c,l,n.term??"",g),f=yield e.tokenizer.tokenize(n.term??"",t),m=e.caches.propertiesToSearch;if(!m){let L=yield e.index.getSearchablePropertiesWithTypes(u);m=yield e.index.getSearchableProperties(u),m=m.filter(V=>L[V].startsWith("string")),e.caches.propertiesToSearch=m}if(n.properties&&n.properties!=="*"){for(let L of n.properties)if(!m.includes(L))throw k("UNKNOWN_INDEX",L,m.join(", "));m=m.filter(L=>n.properties.includes(L))}let _=yield Pt(e.tokenizer,e.index,e.documentsStore,t,n,m,f,yield e.documentsStore.count(d),o),h=Object.keys(n.where??{}).length>0,v=[];h&&(v=yield e.index.searchByWhereClause(_,u,n.where),p=en(v,p).slice(i,i+r));let w;a&&(w=yield tn(e,p,n.facets));let N;n.groupBy&&(N=yield nn(e,p,n.groupBy));let z=(yield eo(e,p,i,r)).filter(Boolean);e.afterSearch&&(yield Zt(e.afterSearch,e,n,t,z));let F=yield it(),E=J(J({count:p.length,elapsed:{raw:Number(F-o),formatted:yield Ht(F-o)},hits:z},w?{facets:w}:{}),N?{groups:N}:{});if(!s){let L=Object.keys(e.data.index.vectorIndexes);Kn(E,L)}return E})}function gu(e,n,t){return S(this,null,function*(){let o=yield it();n.relevance=Object.assign(Jn,n.relevance??{});let{term:i="",properties:r,threshold:s=1}=n,{index:a,docs:c}=e.data,l=yield e.tokenizer.tokenize(i,t),u=e.caches.propertiesToSearch;if(!u){let m=yield e.index.getSearchablePropertiesWithTypes(a);u=yield e.index.getSearchableProperties(a),u=u.filter(_=>m[_].startsWith("string")),e.caches.propertiesToSearch=u}if(r&&r!=="*"){let m=new Set(u),_=new Set(r);for(let h of r)if(!m.has(h))throw k("UNKNOWN_INDEX",h,u.join(", "));u=u.filter(h=>_.has(h))}let d=yield Pt(e.tokenizer,e.index,e.documentsStore,t,n,u,l,yield e.documentsStore.count(c),o),g=l.length;if(g||r&&r.length>0){let m=u.length;for(let _=0;_[m,0]));let f=Object.entries(d.uniqueDocsIDs).map(([m,_])=>[+m,_]).sort((m,_)=>_[1]-m[1]);return ac(f)})}function fu(e,n){return S(this,null,function*(){let t=n.vector,o=e.data.index.vectorIndexes[t?.property],i=o.size,r=o.vectors;if(t&&(!t.value||!t.property))throw k("INVALID_VECTOR_INPUT",Object.keys(t).join(", "));if(t.value.length!==i)throw k("INVALID_INPUT_VECTOR",t.property,i,t.value.length);t instanceof Float32Array||(t.value=new Float32Array(t.value));let s=Yn(t.value,r,i,n.similarity).map(([a,c])=>[se(e.internalDocumentIDStore,a),c]);return ac(s)})}function di([,e]){return e}function ac(e){let n=Math.max.apply(Math,e.map(di));return e.map(([t,o])=>[t,o/n])}function rc(e,n){return e/n}function mu(e,n){return(t,o)=>t*e+o*n}function hu(e,n,t,o){let i=Math.max.apply(Math,e.map(di)),r=Math.max.apply(Math,n.map(di)),s=o&&o.text&&o.vector,{text:a,vector:c}=s?o:yu(t),l=new Map,u=e.length,d=mu(a,c);for(let p=0;pf[1]-p[1])}function yu(e){return{text:.5,vector:.5}}var Jn={k:1.2,b:.75,d:.5};function Pt(e,n,t,o,i,r,s,a,c){return S(this,null,function*(){let l={},u={};for(let d of r){let g={};for(let p of s)g[p]=[];l[d]=g,u[d]=[]}return{timeStart:c,tokenizer:e,index:n,documentsStore:t,language:o,params:i,docsCount:a,uniqueDocsIDs:{},indexMap:l,docsIntersection:u}})}function ui(e,n,t){return S(this,null,function*(){let o=n.mode??li;if(o===li)return nc(e,n,t);if(o===Za)return ic(e,n);if(o===Ya)return sc(e,n);throw k("INVALID_SEARCH_MODE",o)})}function oc(e,n,t,o,i){return S(this,null,function*(){let r=e.data.docs,s=new Map,a=[],c=new Set,l=n.length,u=0;for(let d=0;d"u")continue;let[p,f]=g;if(c.has(p))continue;let m=yield e.documentsStore.get(r,p),_=yield Qt(m,i);if(!(typeof _>"u"||s.has(_))&&(s.set(_,!0),u++,!(u<=t)&&(a.push({id:Et(e.internalDocumentIDStore,p),score:f,document:m}),c.add(p),u>=t+o)))break}return a})}function eo(e,n,t,o){return S(this,null,function*(){let i=e.data.docs,r=Array.from({length:o}),s=new Set;for(let a=t;a"u")break;let[l,u]=c;if(!s.has(l)){let d=yield e.documentsStore.get(i,l);r[a]={id:Et(e.internalDocumentIDStore,l),score:u,document:d},s.add(l)}}return r})}function cc(e,n){return S(this,null,function*(){"positions"in e.data||Object.assign(e.data,{positions:{}}),yield lc(e,yield e.documentsStore.get(e.data.docs,n),n)})}var vu=/[\p{L}0-9_'-]+/gimu;function lc(r,s,a){return S(this,arguments,function*(e,n,t,o="",i=e.schema){e.data.positions[t]=Object.create(null);for(let c of Object.keys(n)){let l=typeof n[c]=="object",u=typeof i[c]=="object",d=`${o}${String(c)}`;if(l&&c in i&&u&&lc(e,n[c],t,d+".",i[c]),!(typeof n[c]=="string"&&c in i&&!u))continue;e.data.positions[t][d]=Object.create(null);let g=n[c],p;for(;(p=vu.exec(g))!==null;){let f=p[0].toLowerCase(),m=`${e.tokenizer.language}:${f}`,_;e.tokenizer.normalizationCache.has(m)?_=e.tokenizer.normalizationCache.get(m):([_]=yield e.tokenizer.tokenize(f),e.tokenizer.normalizationCache.set(m,_)),Array.isArray(e.data.positions[t][d][_])||(e.data.positions[t][d][_]=[]);let h=p.index,v=p[0].length;e.data.positions[t][d][_].push({start:h,length:v})}}})}function dc(e,n,t){return S(this,null,function*(){let o=yield ui(e,n,t),i=yield e.tokenizer.tokenize(n.term??"",t),r=[];for(let s of o.hits){let a=Object.entries(e.data.positions[s.id]),c=[];for(let[l,u]of a){let d=[],g=Object.entries(u);for(let p of g){let[f]=p;for(let m of i)if(n.tolerance){if((yield Zo(f,m,n.tolerance)).isBounded){d.push(p);break}}else if(f.startsWith(m)){d.push(p);break}}c.push([l,Object.fromEntries(d)])}r.push(Object.assign(s,{positions:Object.fromEntries(c)}))}return o.hits=r,o})}var to=class extends yt{constructor(n){super(),this.options=n,this.db$=Mo(si({schema:{title:"string",section:"string",content:"string"},plugins:[{name:"highlight",afterInsert:cc}],components:{tokenizer:{stemmer:n?.stemmer}}})).pipe(Ke(t=>this.request("assets/ng-doc/indexes.json").pipe(Ke(o=>ci(t,o)),je(()=>t))),En(1))}search(n){return this.db$.pipe(Ke(t=>dc(t,{term:n,boost:{title:4,section:2},threshold:.3,properties:["title","section","content"],tolerance:this.options?.tolerance,exact:this.options?.exact,limit:this.options?.limit??10})),je(t=>t.hits.map(o=>{let i=(0,pc.objectKeys)(o.positions);return{index:o.document,positions:i.reduce((r,s)=>(r[s]=[...(0,uc.asArray)(r[s]),...Object.values(o.positions[s]).flat()],r),{})}})))}request(n){return Mo(fetch(n)).pipe(Ke(t=>t.json()))}};var bu=["ng-doc-blockquote",""],Cu=["*"];function Du(e,n){if(e&1&&P(0,"ng-doc-icon",2),e&2){let t=x(2);y("icon",t.icon)}}function Su(e,n){e&1&&P(0,"ng-doc-icon",3)}function Tu(e,n){e&1&&P(0,"ng-doc-icon",4)}function xu(e,n){e&1&&P(0,"ng-doc-icon",5)}function wu(e,n){e&1&&P(0,"ng-doc-icon",6)}function Eu(e,n){if(e&1&&T(0,Su,1,0,"ng-doc-icon",3)(1,Tu,1,0,"ng-doc-icon",4)(2,xu,1,0,"ng-doc-icon",5)(3,wu,1,0,"ng-doc-icon",6),e&2){let t,o=x(2);Ne((t=o.type)==="note"?0:t==="warning"?1:t==="success"?2:t==="alert"?3:-1)}}function Nu(e,n){if(e&1&&(C(0,"div",0),T(1,Du,1,1,"ng-doc-icon",2)(2,Eu,4,1),D()),e&2){let t=x();b(),Ne(t.icon?1:2)}}var gc=(()=>{class e{constructor(){this.type="default"}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=A({type:e,selectors:[["blockquote","ng-doc-blockquote",""]],hostVars:1,hostBindings:function(o,i){o&2&&ne("data-ng-doc-type",i.type)},inputs:{type:"type",icon:"icon"},standalone:!0,features:[R],attrs:bu,ngContentSelectors:Cu,decls:3,vars:1,consts:[[1,"ng-doc-blockquote-icon"],[1,"ng-doc-blockquote"],["size","24",3,"icon"],["icon","info","size","24"],["icon","alert-triangle","size","24"],["icon","check","size","24"],["icon","alert-circle","size","24"]],template:function(o,i){o&1&&(me(),T(0,Nu,3,1,"div",0),C(1,"div",1),oe(2),D()),o&2&&Ne(i.type!=="default"?0:-1)},dependencies:[re],styles:["[_nghost-%COMP%]{font-family:var(--ng-doc-font-family);font-variant:no-contextual;color:var(--ng-doc-text);line-height:var(--ng-doc-line-height);font-size:var(--ng-doc-font-size);font-weight:var(--ng-doc-font-weight);position:relative;display:flex;padding:calc(var(--ng-doc-base-gutter) * 2);border-radius:var(--ng-doc-base-gutter);margin:var(--ng-doc-blockquote-margin);background:color-mix(in srgb,var(--ng-doc-blockquote-background, var(--ng-doc-base-9)),transparent 90%);border:1px solid color-mix(in srgb,var(--ng-doc-blockquote-border-color, var(--ng-doc-base-9)),transparent 80%);overflow:hidden;--ng-doc-code-margin: var(--ng-doc-base-gutter) 0}[data-ng-doc-type=note][_nghost-%COMP%]{--ng-doc-blockquote-background: var(--ng-doc-info);--ng-doc-blockquote-border-color: var(--ng-doc-info);--ng-doc-icon-color: var(--ng-doc-info)}[data-ng-doc-type=warning][_nghost-%COMP%]{--ng-doc-blockquote-background: var(--ng-doc-warning);--ng-doc-blockquote-border-color: var(--ng-doc-warning);--ng-doc-icon-color: var(--ng-doc-warning)}[data-ng-doc-type=alert][_nghost-%COMP%]{--ng-doc-blockquote-background: var(--ng-doc-alert);--ng-doc-blockquote-border-color: var(--ng-doc-alert);--ng-doc-icon-color: var(--ng-doc-alert)}[data-ng-doc-type=success][_nghost-%COMP%]{--ng-doc-blockquote-background: var(--ng-doc-success);--ng-doc-blockquote-border-color: var(--ng-doc-success);--ng-doc-icon-color: var(--ng-doc-success)}[_nghost-%COMP%] .ng-doc-blockquote-icon[_ngcontent-%COMP%]{display:flex;margin-right:calc(var(--ng-doc-base-gutter) * 2)}[_nghost-%COMP%] .ng-doc-blockquote[_ngcontent-%COMP%]{text-decoration:none}[_nghost-%COMP%] p{margin:0}"],changeDetection:0})}}return e})();He();var fc=ct(fn(),1);function Pu(e,n){if(e&1&&(K(0),j(1),G()),e&2){let t=n.polymorpheusOutlet;b(),ge(" ",t," ")}}function Ou(e,n){if(e&1&&(C(0,"ng-doc-option",3),T(1,Pu,2,1,"ng-container",4),D()),e&2){let t=n.$implicit,o=x(2);y("value",o.defineValueFn(t))("disabled",o.itemDisabledFn(t)),b(),y("polymorpheusOutlet",o.itemContent)("polymorpheusOutletContext",o.getContext(t))}}function Mu(e,n){if(e&1&&(K(0),T(1,Ou,2,4,"ng-doc-option",2),G()),e&2){let t=x();b(),y("ngForOf",t.items)("ngForTrackBy",t.trackByFn)}}function Iu(e,n){if(e&1&&(K(0),j(1),G()),e&2){let t=n.polymorpheusOutlet;b(),ge(" ",t," ")}}function ku(e,n){if(e&1&&(K(0),T(1,Iu,2,1,"ng-container",7),G()),e&2){let t=x(2);b(),y("polymorpheusOutlet",t.emptyContent)}}function Au(e,n){if(e&1&&(C(0,"div",5),T(1,ku,2,1,"ng-container",6),D()),e&2){let t=x();b(),y("ngIf",t.emptyContent)}}var mc=(()=>{class e{constructor(){this.autofocus=!0,this.items=[],this.itemContent=({$implicit:t})=>ps(t),this.emptyContent="",this.itemDisabledFn=ds,this.defineValueFn=us,this.trackByFn=(t,o)=>o}getContext(t){return{$implicit:t}}getItems(){return(0,fc.asArray)(this.items)}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=A({type:e,selectors:[["ng-doc-data-list"]],inputs:{autofocus:"autofocus",items:"items",itemContent:"itemContent",emptyContent:"emptyContent",itemDisabledFn:"itemDisabledFn",defineValueFn:"defineValueFn",trackByFn:"trackByFn"},standalone:!0,features:[R],decls:4,vars:2,consts:[["emptyTemplate",""],[4,"ngIf","ngIfElse"],[3,"value","disabled",4,"ngFor","ngForOf","ngForTrackBy"],[3,"value","disabled"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],["ng-doc-text","",1,"ng-doc-empty-message"],[4,"ngIf"],[4,"polymorpheusOutlet"]],template:function(o,i){if(o&1&&(C(0,"ng-doc-list"),T(1,Mu,2,2,"ng-container",1)(2,Au,2,1,"ng-template",null,0,te),D()),o&2){let r=Q(3);b(),y("ngIf",i.items&&i.items.length)("ngIfElse",r)}},dependencies:[Ds,ye,Oe,Ss,qe,ot,Ye],styles:["[_nghost-%COMP%]{display:block;height:100%;overflow:auto;max-height:var(--ng-doc-list-size)}.ng-doc-empty-message[_ngcontent-%COMP%]{padding:var(--ng-doc-base-gutter) calc(var(--ng-doc-base-gutter) * 2);--ng-doc-font-size: 14px;--ng-doc-line-height: 22px}ng-doc-checkbox[_ngcontent-%COMP%]{pointer-events:none}"],changeDetection:0})}}return ce([Cs,de("design:type",Function),de("design:paramtypes",[Object]),de("design:returntype",Object)],e.prototype,"getContext",null),e})();var pi=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=A({type:e,selectors:[["ng-doc-dot"]],hostVars:2,hostBindings:function(o,i){o&2&&ne("data-ng-doc-color",i.color)("data-ng-doc-size",i.size)},inputs:{color:"color",size:"size"},standalone:!0,features:[R],decls:0,vars:0,template:function(o,i){},styles:["[_nghost-%COMP%]{display:inline;width:var(--ng-doc-dot-size);height:var(--ng-doc-dot-size);border-radius:var(--ng-doc-dot-size);line-height:var(--ng-doc-line-height);background-color:var(--ng-doc-dot-background);transition:var(--ng-doc-transition)}[data-ng-doc-size=small][_nghost-%COMP%]{--ng-doc-dot-size: calc(var(--ng-doc-base-gutter) / 2)}[data-ng-doc-size=medium][_nghost-%COMP%]{--ng-doc-dot-size: var(--ng-doc-base-gutter)}[data-ng-doc-size=large][_nghost-%COMP%]{--ng-doc-dot-size: calc(var(--ng-doc-base-gutter) * 2)}"],changeDetection:0})}}return e})();var Ru=["*"];function Fu(e){return e instanceof MouseEvent}function Lu(e){return e instanceof WheelEvent}var hc=(()=>{class e{constructor(){this.x=Ge(0),this.y=Ge(0),this.scale=Ge(1),this.drag=Ge(!1),this.document=B(Ue),this.element=B(ue).nativeElement,this.ngZone=B(Se),this.destroyRef=B(yr),this.transform=Mn(()=>{let t=this.scale(),o=this.x(),i=this.y();return`matrix(${t}, 0, 0, ${t}, ${o*t}, ${i*t})`})}ngOnInit(){be(this.element,"mousedown").pipe(Ke(t=>(t.preventDefault(),this.drag.set(!0),be(this.document,"mousemove").pipe(Ce(Fu),dn(be(this.document,"mouseup")),un({complete:()=>this.drag.set(!1)})))),ut(this.destroyRef)).subscribe(t=>{this.x.update(o=>o+t.movementX/this.scale()),this.y.update(o=>o+t.movementY/this.scale())}),be(this.element,"wheel").pipe(Ce(Lu),ut(this.destroyRef)).subscribe(t=>{t.preventDefault(),this.scale.update(o=>Math.max(o*(1+t.deltaY/1e3),1))})}incrementX(t){this.x.update(o=>o+t/this.scale())}incrementY(t){this.y.update(o=>o+t/this.scale())}zoom(t){this.scale.update(o=>Math.max(o*(1+t/1e3),1))}reset(){this.x.set(0),this.y.set(0),this.scale.set(1)}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=A({type:e,selectors:[["ng-doc-magnifier"]],hostVars:1,hostBindings:function(o,i){o&2&&ne("data-drag",i.drag())},standalone:!0,features:[R],ngContentSelectors:Ru,decls:2,vars:2,consts:[[1,"ng-doc-magnifier-container"]],template:function(o,i){o&1&&(me(),C(0,"div",0),oe(1),D()),o&2&&Lt("transform",i.transform())},styles:["[_nghost-%COMP%]{display:block;overflow:hidden;cursor:default}[data-drag=true][_nghost-%COMP%]{cursor:move}"],changeDetection:0})}}return e})();var yc=(()=>{class e{constructor(){this.magnifier=lt.required()}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=A({type:e,selectors:[["ng-doc-magnifier-controller"]],inputs:{magnifier:[1,"magnifier"]},standalone:!0,features:[R],decls:17,vars:7,consts:[[1,"ng-doc-controls-row"],["ng-doc-button-icon-raised","",1,"ng-doc-button-up",3,"click","rounded"],["icon","chevron-right"],["ng-doc-button-icon-raised","",1,"ng-doc-button-zoom-in",3,"click","rounded"],["icon","zoom-in"],["ng-doc-button-icon-raised","",1,"ng-doc-button-left",3,"click","rounded"],["ng-doc-button-icon-raised","",1,"ng-doc-button-center",3,"click","rounded"],["icon","maximize"],["ng-doc-button-icon-raised","",1,"ng-doc-button-right",3,"click","rounded"],["ng-doc-button-icon-raised","",1,"ng-doc-button-down",3,"click","rounded"],["ng-doc-button-icon-raised","",1,"ng-doc-button-zoom-out",3,"click","rounded"],["icon","zoom-out"]],template:function(o,i){o&1&&(C(0,"div",0)(1,"button",1),Z("click",function(){return i.magnifier().incrementY(50)}),P(2,"ng-doc-icon",2),D(),C(3,"button",3),Z("click",function(){return i.magnifier().zoom(200)}),P(4,"ng-doc-icon",4),D()(),C(5,"div",0)(6,"button",5),Z("click",function(){return i.magnifier().incrementX(50)}),P(7,"ng-doc-icon",2),D(),C(8,"button",6),Z("click",function(){return i.magnifier().reset()}),P(9,"ng-doc-icon",7),D(),C(10,"button",8),Z("click",function(){return i.magnifier().incrementX(-50)}),P(11,"ng-doc-icon",2),D()(),C(12,"div",0)(13,"button",9),Z("click",function(){return i.magnifier().incrementY(-50)}),P(14,"ng-doc-icon",2),D(),C(15,"button",10),Z("click",function(){return i.magnifier().zoom(-200)}),P(16,"ng-doc-icon",11),D()()),o&2&&(b(),y("rounded",!1),b(2),y("rounded",!1),b(3),y("rounded",!1),b(2),y("rounded",!1),b(2),y("rounded",!1),b(3),y("rounded",!1),b(2),y("rounded",!1))},dependencies:[Wt,re],styles:["[_nghost-%COMP%]{display:inline-flex;flex-direction:column;gap:var(--ng-doc-base-gutter)}[_nghost-%COMP%] .ng-doc-controls-row[_ngcontent-%COMP%]{display:flex;gap:var(--ng-doc-base-gutter);justify-content:center}[_nghost-%COMP%] .ng-doc-controls-row[_ngcontent-%COMP%]:first-child, [_nghost-%COMP%] .ng-doc-controls-row[_ngcontent-%COMP%]:last-child{justify-content:flex-end}[_nghost-%COMP%] button.ng-doc-button-up[_ngcontent-%COMP%] ng-doc-icon[icon=chevron-right][_ngcontent-%COMP%]{transform:rotate(270deg)}[_nghost-%COMP%] button.ng-doc-button-down[_ngcontent-%COMP%] ng-doc-icon[icon=chevron-right][_ngcontent-%COMP%]{transform:rotate(90deg)}[_nghost-%COMP%] button.ng-doc-button-left[_ngcontent-%COMP%] ng-doc-icon[icon=chevron-right][_ngcontent-%COMP%]{transform:rotate(180deg)}"],changeDetection:0})}}return e})();He();var zu=["resizer"],Bu=[[["","ngDocPaneBack",""]],[["","ngDocPaneFront",""]]],ju=["[ngDocPaneBack]","[ngDocPaneFront]"],_c=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275dir=xe({type:e,selectors:[["","ngDocPaneFront",""]],standalone:!0})}}return e})(),vc=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275dir=xe({type:e,selectors:[["","ngDocPaneBack",""]],standalone:!0})}}return e})(),bc=(()=>{let e=class gi{constructor(t,o,i,r){this.document=t,this.changeDetectorRef=o,this.elementRef=i,this.ngZone=r,this.expanded=!1,this.width="0%",this.dragging=!1,Ft(()=>{if(this.resizer){let s=be(this.resizer.nativeElement,"mousedown").pipe(un(()=>{this.dragging=!0,this.changeDetectorRef.markForCheck()})),a=be(this.document,"mouseup").pipe(un(()=>{this.dragging=!1,this.changeDetectorRef.markForCheck()})),c=be(this.document,"mousemove").pipe(je(l=>l.clientX),lr(),je(([l,u])=>u-l));s.pipe(Ke(()=>{let l=c.pipe(dn(a)),u=a.pipe(je(()=>null),dn(c),cr(1));return rr(l,u)}),Ce(l=>l!==0),Qe(this.ngZone),Ie(this)).subscribe(l=>{l===null?this.toggle():this.addDelta(l)})}be(window,"resize").pipe(ar(100),Ie(this),Qe(this.ngZone)).subscribe(()=>this.addDelta(0))}),this.addDelta(0)}ngOnChanges({expanded:t}){t&&(t.currentValue?this.addDelta(this.elementRef.nativeElement.offsetWidth):this.addDelta(-this.elementRef.nativeElement.offsetWidth))}toggle(){if(this.resizer){let t=this.elementRef.nativeElement.offsetWidth/2;this.resizer.nativeElement.offsetLeft{class e{constructor(t){this.elementRef=t,this.selectAll=!1}ngOnInit(){let t=this.elementRef.nativeElement;ls.isNativeKeyboardFocusable(t)&&t.focus(),this.selectAll&&t instanceof HTMLInputElement&&Promise.resolve().then(()=>t.select())}static{this.\u0275fac=function(o){return new(o||e)(ee(ue))}}static{this.\u0275dir=xe({type:e,selectors:[["","ngDocAutofocus",""]],inputs:{selectAll:"selectAll"},standalone:!0})}}return e})();var Dc=(()=>{class e extends ss{constructor(t){super(t),this.origin=t}static{this.\u0275fac=function(o){return new(o||e)(ee(ue))}}static{this.\u0275dir=xe({type:e,selectors:[["","ngDocDropdownOrigin",""]],exportAs:["ngDocDropdownOrigin"],standalone:!0,features:[Bt([{provide:os,useExisting:e}]),Sr]})}}return e})();He();var Sc=ct(Kl(),1),Tc=ct(Kr(),1);var xc=(()=>{let e=class fi{constructor(t){this.ngZone=t,this.callback=new Nn,Ft(()=>{be(document,"keyup").pipe(Ce(Sc.isKeyboardEvent),Ce(o=>(0,Tc.objectKeys)(this.hotkey??{}).every(i=>this.hotkey&&this.hotkey[i]===o[i])),Ce(o=>o.target instanceof HTMLElement?!["input","textarea","select"].includes(o.target.tagName.toLowerCase()):!0),Qe(this.ngZone),Ie(this)).subscribe(o=>{o.preventDefault(),this.callback.emit()})})}static{this.\u0275fac=function(o){return new(o||fi)(ee(Se))}}static{this.\u0275dir=xe({type:fi,selectors:[["","ngDocHotkey",""]],inputs:{hotkey:[0,"ngDocHotkey","hotkey"]},outputs:{callback:"ngDocHotkey"},standalone:!0})}};return e=ce([pe(),de("design:paramtypes",[Se])],e),e})();var wc=(()=>{class e{constructor(){this.rotated=!1,this.from=0,this.to=90}get transform(){return`rotateZ(${this.rotated?this.to:this.from}deg)`}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275dir=xe({type:e,selectors:[["","ngDocRotator",""]],hostVars:2,hostBindings:function(o,i){o&2&&Lt("transform",i.transform)},inputs:{rotated:[0,"ngDocRotator","rotated"],from:"from",to:"to"},standalone:!0})}}return e})();var Ec=(()=>{class e{constructor(t,o){this.document=t,this.viewportRuler=o,this.scrollStrategy=new rs(this.viewportRuler,this.document)}block(){this.scrollStrategy.enable()}unblock(){this.scrollStrategy.disable()}static{this.\u0275fac=function(o){return new(o||e)(St(Ue),St(is))}}static{this.\u0275prov=De({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Vu=["*"];function Uu(e,n){e&1&&Ve(0)}function qu(e,n){if(e&1){let t=Re();C(0,"div",5),Z("click",function(){we(t);let i=x();return Ee(i.closeEvent.emit())}),D()}e&2&&y("@backdropFade",void 0)}var mi=(()=>{class e{constructor(){this.sidebar="",this.opened=!0,this.hasBackdrop=!0,this.closeEvent=new Nn}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=A({type:e,selectors:[["ng-doc-sidenav"]],hostVars:2,hostBindings:function(o,i){o&2&&ne("data-ng-doc-sidebar",!!i.sidebar)("data-ng-doc-opened",i.opened)},inputs:{sidebar:"sidebar",opened:"opened",hasBackdrop:"hasBackdrop"},outputs:{closeEvent:"closeEvent"},standalone:!0,features:[R],ngContentSelectors:Vu,decls:6,vars:2,consts:[[1,"ng-doc-sidenav-wrapper"],[1,"ng-doc-sidenav"],[4,"polymorpheusOutlet"],[1,"ng-doc-sidenav-content"],[1,"ng-doc-backdrop"],[1,"ng-doc-backdrop",3,"click"]],template:function(o,i){o&1&&(me(),C(0,"div",0)(1,"div",1),T(2,Uu,1,0,"ng-container",2),D(),C(3,"div",3),T(4,qu,1,1,"div",4),oe(5),D()()),o&2&&(b(2),y("polymorpheusOutlet",i.sidebar),b(2),Ne(i.opened&&i.hasBackdrop?4:-1))},dependencies:[qe,ot],styles:["[_nghost-%COMP%]{width:100%}[data-ng-doc-sidebar=false][_nghost-%COMP%] .ng-doc-sidenav-content[_ngcontent-%COMP%]{margin-left:0;width:100%}[_nghost-%COMP%] .ng-doc-sidenav-wrapper[_ngcontent-%COMP%]{position:relative;display:flex;width:100%}[_nghost-%COMP%] .ng-doc-sidenav[_ngcontent-%COMP%]{position:fixed;top:var(--ng-doc-navbar-height);width:var(--ng-doc-sidenav-width);flex-shrink:0;z-index:10;transition:left var(--ng-doc-transition)}[_nghost-%COMP%] .ng-doc-sidenav-content[_ngcontent-%COMP%]{margin-left:var(--ng-doc-sidenav-width);width:calc(100% - var(--ng-doc-sidenav-width));padding:var(--ng-doc-sidenav-content-padding);transition:margin-left var(--ng-doc-transition)}[_nghost-%COMP%] .ng-doc-backdrop[_ngcontent-%COMP%]{position:fixed!important;left:0;top:0;width:100%;height:100%;z-index:9}[_nghost-%COMP%] .ng-doc-backdrop[_ngcontent-%COMP%]:not(nothing){background:color-mix(in srgb,rgba(0,0,0,.2) 60%,transparent);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}@supports not ((-webkit-backdrop-filter: none) or (backdrop-filter: none)){[_nghost-%COMP%] .ng-doc-backdrop[_ngcontent-%COMP%]{background-color:#0003}}[_nghost-%COMP%] .ng-doc-backdropnothing[_ngcontent-%COMP%]{background-color:#0003}@media (max-width: 1024px){[data-ng-doc-opened=true][_nghost-%COMP%] .ng-doc-sidenav[_ngcontent-%COMP%]{right:0;transition:right var(--ng-doc-transition);--ng-doc-sidebar-shadow: var(--ng-doc-shadow-color) -5px 5px 20px -5px}[_nghost-%COMP%] .ng-doc-sidenav[_ngcontent-%COMP%]{transition:unset;left:unset;right:calc(var(--ng-doc-sidenav-width) * -1);top:var(--ng-doc-navbar-height)}[_nghost-%COMP%] .ng-doc-sidenav-content[_ngcontent-%COMP%]{margin-left:0;width:100%}}"],data:{animation:[Zr("backdropFade",[Jr(":enter",[Me({opacity:0}),wt("220ms cubic-bezier(0.25, 0.8, 0.25, 1)",Me({opacity:1}))])])]},changeDetection:0})}}return e})();var oo=(()=>{class e{constructor(){this.size="medium"}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=A({type:e,selectors:[["ng-doc-spinner"]],hostVars:1,hostBindings:function(o,i){o&2&&ne("data-ng-doc-size",i.size)},inputs:{size:"size"},standalone:!0,features:[R],decls:2,vars:0,consts:[["viewBox","0 0 50 50",1,"ng-doc-spinner"],["cx","25","cy","25","r","20","fill","none","stroke-width","5",1,"ng-doc-spinner-path"]],template:function(o,i){o&1&&(mr(),C(0,"svg",0),P(1,"circle",1),D())},styles:["[_nghost-%COMP%]{display:inline-block}[data-ng-doc-size=small][_nghost-%COMP%]{width:calc(var(--ng-doc-base-gutter) * 3);height:calc(var(--ng-doc-base-gutter) * 3)}[data-ng-doc-size=medium][_nghost-%COMP%]{width:calc(var(--ng-doc-base-gutter) * 5);height:calc(var(--ng-doc-base-gutter) * 5)}[data-ng-doc-size=large][_nghost-%COMP%]{width:calc(var(--ng-doc-base-gutter) * 8);height:calc(var(--ng-doc-base-gutter) * 8)}[_nghost-%COMP%] .ng-doc-spinner[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_rotate 2s linear infinite}[_nghost-%COMP%] .ng-doc-spinner[_ngcontent-%COMP%] .ng-doc-spinner-path[_ngcontent-%COMP%]{stroke:var(--ng-doc-spinner-color, var(--ng-doc-primary));stroke-linecap:round;animation:_ngcontent-%COMP%_dash 1.5s ease-in-out infinite}@keyframes _ngcontent-%COMP%_rotate{to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}"],changeDetection:0})}}return e})();He();var Wu=["headerTab"],Nc=()=>({});function $u(e,n){if(e&1&&(K(0),j(1),G()),e&2){let t=x().$implicit;b(),Pe(t.label)}}function Hu(e,n){if(e&1){let t=Re();C(0,"div",6,0),Z("click",function(){let i=we(t).$implicit,r=x();return Ee(r.selectTab(i))}),C(2,"div",7),T(3,$u,2,1,"ng-container",5),D()()}if(e&2){let t=n.$implicit,o=x();Pn("selected",t===o.selectedTab),y("ngDocSelectionOrigin",t===o.selectedTab),b(3),y("polymorpheusOutlet",t.label)("polymorpheusOutletContext",xt(5,Nc))}}function Ku(e,n){if(e&1&&(C(0,"div"),j(1),D()),e&2){let t=n.polymorpheusOutlet;y("@tabFadeAnimation",void 0),b(),ge(" ",t," ")}}var Ot=(()=>{class e{constructor(){this.label="",this.id=0,this.content=""}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=A({type:e,selectors:[["ng-doc-tab"],["a","ng-doc-tab",""]],inputs:{label:"label",id:"id",content:"content"},standalone:!0,features:[R],decls:0,vars:0,template:function(o,i){},changeDetection:0})}}return e})(),on=(()=>{let e=class hi{constructor(t){this.changeDetectorRef=t,this.tabElements=new Io,this.tabs=new Io}ngAfterContentInit(){this.tabs.changes.pipe(Dt(this.tabs),Ie(this)).subscribe(()=>{let t=this.openedTab?this.tabs.find(o=>o.id===this.openedTab):this.tabs.get(0);t&&this.selectTab(t),this.changeDetectorRef.markForCheck()})}ngAfterViewInit(){this.tabElements.changes.pipe(Dt(this.tabElements),Ie(this)).subscribe(()=>this.changeDetectorRef.detectChanges())}get selectedIndex(){return this.selectedTab?this.tabs.toArray().indexOf(this.selectedTab):-1}get selectedHeaderTab(){return this.selectedTab?this.tabElements.get(this.selectedIndex)??null:null}selectTab(t){this.selectedTab=t}static{this.\u0275fac=function(o){return new(o||hi)(ee(he))}}static{this.\u0275cmp=A({type:hi,selectors:[["ng-doc-tab-group"]],contentQueries:function(o,i,r){if(o&1&&Nr(r,Ot,4),o&2){let s;Je(s=et())&&(i.tabs=s)}},viewQuery:function(o,i){if(o&1&&dt(Wu,5),o&2){let r;Je(r=et())&&(i.tabElements=r)}},inputs:{openedTab:"openedTab"},standalone:!0,features:[R],decls:6,vars:5,consts:[["headerTab",""],["ngDocSelectionHost","",1,"ng-doc-tabs-wrapper"],["class","ng-doc-tab",3,"selected","ngDocSelectionOrigin","click",4,"ngFor","ngForOf"],[1,"ng-doc-body-wrapper"],[3,"trigger"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"ng-doc-tab",3,"click","ngDocSelectionOrigin"],[1,"ng-doc-tab-text"]],template:function(o,i){if(o&1&&(C(0,"div",1),P(1,"ng-doc-selection"),T(2,Hu,4,6,"div",2),D(),C(3,"div",3)(4,"ng-doc-smooth-resize",4),T(5,Ku,2,2,"div",5),D()()),o&2){let r,s;b(2),y("ngForOf",i.tabs),b(2),y("trigger",(r=i.selectedTab==null?null:i.selectedTab.content)!==null&&r!==void 0?r:""),b(),y("polymorpheusOutlet",(s=i.selectedTab==null?null:i.selectedTab.content)!==null&&s!==void 0?s:"")("polymorpheusOutletContext",xt(4,Nc))}},dependencies:[Es,Ns,Oe,Ps,qe,ot,Os],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;background:var(--ng-doc-tab-group-header-background, var(--ng-doc-tab-group-background));border-radius:var(--ng-doc-tab-group-border-radius);border:var(--ng-doc-tab-group-border);overflow:hidden}[_nghost-%COMP%] .ng-doc-tabs-wrapper[_ngcontent-%COMP%]{font-family:var(--ng-doc-font-family);font-variant:no-contextual;color:var(--ng-doc-text);line-height:var(--ng-doc-line-height);font-size:var(--ng-doc-font-size);font-weight:var(--ng-doc-font-weight);position:relative;width:100%;display:inline-flex;overflow-x:auto;line-height:18px;font-size:14px;flex-shrink:0;background:var(--ng-doc-tab-group-tabs-background)}[_nghost-%COMP%] .ng-doc-tabs-wrapper[_ngcontent-%COMP%] .ng-doc-tab[_ngcontent-%COMP%]{position:relative;padding:var(--ng-doc-base-gutter) calc(var(--ng-doc-base-gutter) * 2);cursor:pointer;white-space:nowrap}[_nghost-%COMP%] .ng-doc-tabs-wrapper[_ngcontent-%COMP%] .ng-doc-tab[_ngcontent-%COMP%] .ng-doc-tab-text[_ngcontent-%COMP%]{font-family:var(--ng-doc-font-family);font-variant:no-contextual;color:var(--ng-doc-text);line-height:var(--ng-doc-line-height);font-size:var(--ng-doc-font-size);font-weight:var(--ng-doc-font-weight);position:relative;--ng-doc-font-size: 13px;--ng-doc-font-weight: 500}[_nghost-%COMP%] .ng-doc-body-wrapper[_ngcontent-%COMP%]{position:relative;background-color:var(--ng-doc-tab-group-background);height:100%;overflow:hidden;border-top:1px solid var(--ng-doc-border-color)}"],data:{animation:[ts]},changeDetection:0})}};return e=ce([pe(),de("design:paramtypes",[he])],e),e})();var Gu=["*"],rn=(()=>{class e{constructor(){this.color="primary",this.size="medium",this.mod="default"}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=A({type:e,selectors:[["ng-doc-tag"]],hostVars:3,hostBindings:function(o,i){o&2&&ne("data-ng-doc-color",i.color)("data-ng-doc-size",i.size)("data-ng-doc-mod",i.mod)},inputs:{color:"color",size:"size",mod:"mod"},standalone:!0,features:[R],ngContentSelectors:Gu,decls:1,vars:0,template:function(o,i){o&1&&(me(),oe(0))},styles:["[_nghost-%COMP%]{font-family:var(--ng-doc-font-family);font-variant:no-contextual;color:var(--ng-doc-text);line-height:var(--ng-doc-line-height);font-size:var(--ng-doc-font-size);font-weight:var(--ng-doc-font-weight);display:inline-block;padding:0 var(--ng-doc-base-gutter);border-radius:calc(var(--ng-doc-base-gutter) / 2);border:var(--ng-doc-tag-border);color:var(--ng-doc-tag-color);background:color-mix(in srgb,var(--ng-doc-tag-background) var(--ng-doc-tag-background-opacity, 100%),transparent);--ng-doc-icon-color: var(--ng-doc-tag-color);--ng-doc-font-size: 14px}[data-ng-doc-size=small][_nghost-%COMP%]{padding:0 calc(var(--ng-doc-base-gutter) / 2);border-radius:6px;--ng-doc-font-size: 10px;--ng-doc-line-height: calc(var(--ng-doc-base-gutter) * 2)}[data-ng-doc-color=info][_nghost-%COMP%]{--ng-doc-tag-background: var(--ng-doc-info);--ng-doc-tag-color: var(--ng-doc-info-text)}[data-ng-doc-color=warning][_nghost-%COMP%]{--ng-doc-tag-background: var(--ng-doc-warning);--ng-doc-tag-color: var(--ng-doc-warning-text)}[data-ng-doc-color=alert][_nghost-%COMP%]{--ng-doc-tag-background: var(--ng-doc-alert);--ng-doc-tag-color: var(--ng-doc-alert-text)}[data-ng-doc-color=link][_nghost-%COMP%]{--ng-doc-tag-background: var(--ng-doc-link-color);--ng-doc-tag-color: var(--ng-doc-primary-text)}[data-ng-doc-color=success][_nghost-%COMP%]{--ng-doc-tag-background: var(--ng-doc-success);--ng-doc-tag-color: var(--ng-doc-success-text)}[data-ng-doc-mod=light][_nghost-%COMP%]{--ng-doc-tag-background-opacity: 15%}[data-ng-doc-mod=light][data-ng-doc-color=primary][_nghost-%COMP%]{--ng-doc-tag-color: var(--ng-doc-primary)}[data-ng-doc-mod=light][data-ng-doc-color=info][_nghost-%COMP%]{--ng-doc-tag-color: var(--ng-doc-info)}[data-ng-doc-mod=light][data-ng-doc-color=warning][_nghost-%COMP%]{--ng-doc-tag-color: var(--ng-doc-warning)}[data-ng-doc-mod=light][data-ng-doc-color=alert][_nghost-%COMP%]{--ng-doc-tag-color: var(--ng-doc-alert)}[data-ng-doc-mod=light][data-ng-doc-color=link][_nghost-%COMP%]{--ng-doc-tag-color: var(--ng-doc-link-color)}[data-ng-doc-mod=light][data-ng-doc-color=success][_nghost-%COMP%]{--ng-doc-tag-color: var(--ng-doc-success)}"],changeDetection:0})}}return e})();var Pc=(()=>{class e{transform(t,o){return o.sort((i,r)=>r.start-i.start).forEach(i=>{let{start:r,length:s}=i,a=r+s;t=`${t.slice(0,r)}${t.slice(r,a)}${t.slice(a)}`}),t}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275pipe=gr({name:"ngDocHighlighterPipe",type:e,pure:!0,standalone:!0})}}return e})();function Oc(e){return[{provide:ys,useValue:e?.assetsPath??"assets/ng-doc/ui-kit"},{provide:vs,useValue:e?.customIconsPath??"assets/icons"},{provide:Lr,useClass:hs,multi:!0}]}var io=class extends gs{constructor(n,t){super(n),this.component=n,this.injectorRef=t}createInjector(n,t){return hr.create({parent:this.injectorRef||n,providers:[{provide:_s,useValue:t}]})}};He();var sn=(()=>{let e=class ro{constructor(){this.expanded=new xn(!1),this.document=B(Ue),this.window=B(Wn),this.router=B(Ut),this.scroll=B(Ec);let t=be(this.window,"resize").pipe(ut(),Dt(null),dr());t.pipe(Ce(()=>this.expanded.value&&this.isMobile),Qe(),ut()).subscribe(()=>this.hide()),t.pipe(Ce(()=>!this.expanded.value&&!this.isMobile),Qe(),ut()).subscribe(()=>this.show()),t.pipe(Ce(()=>this.expanded.value&&!this.isMobile),Qe(),ut()).subscribe(()=>this.scroll.unblock()),this.router.events.pipe(Ce(o=>o instanceof An&&this.expanded.value&&this.isMobile),ut()).subscribe(()=>this.hide())}get isMobile(){return this.window.innerWidth<1024}isExpanded(){return this.expanded.asObservable()}show(){this.expanded.value||(this.expanded.next(!0),this.isMobile&&this.scroll.block())}hide(){this.expanded.value&&(this.expanded.next(!1),this.isMobile&&this.scroll.unblock())}toggle(){this.expanded.value?this.hide():this.show()}static{this.\u0275fac=function(o){return new(o||ro)}}static{this.\u0275prov=De({token:ro,factory:ro.\u0275fac,providedIn:"root"})}};return e=ce([pe(),de("design:paramtypes",[])],e),e})();var Qu=e=>String(e),Mc=(()=>{class e{constructor(){this.localStorage=B(Bs)}set(t,o,i=Qu){return this.localStorage.setItem(t,i(o))}get(t,o){return o?o(this.localStorage.getItem(t)):this.localStorage.getItem(t)}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275prov=De({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var so=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=A({type:e,selectors:[["ng-doc-fullscreen-button"]],inputs:{route:"route"},standalone:!0,features:[R],decls:4,vars:1,consts:[["ng-doc-button-text","","target","_blank",3,"routerLink"],["ng-doc-text",""],["icon","external-link","ngDocTextRight",""]],template:function(o,i){o&1&&(C(0,"a",0)(1,"span",1),j(2," Open demo in a new tab "),P(3,"ng-doc-icon",2),D()()),o&2&&y("routerLink",i.route)},dependencies:[mt,Ye,re,Vn,bs],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:center;padding:calc(var(--ng-doc-base-gutter) * 2) calc(var(--ng-doc-base-gutter) * 2)}"],changeDetection:0})}}return e})();var Ic=ct(fn(),1);function Zu(e,n){e&1&&Ve(0)}function Xu(e,n){if(e&1&&P(0,"ng-doc-code",9),e&2){let t=n.$implicit;y("html",t.code)}}function Ju(e,n){if(e&1&&(K(0),T(1,Xu,1,1,"ng-doc-code",8),G()),e&2){let t=x(3);b(),y("ngForOf",t.assets)}}function ep(e,n){if(e&1&&P(0,"ng-doc-icon",14),e&2){let t=x(2).$implicit;y("customIcon",t.icon)}}function tp(e,n){if(e&1&&(T(0,ep,1,1,"ng-doc-icon",13),j(1)),e&2){let t=x().$implicit;y("ngIf",t.icon),b(),ge(" ",t.title," ")}}function np(e,n){if(e&1&&P(0,"ng-doc-code",9),e&2){let t=x().$implicit;y("html",t.code)}}function op(e,n){if(e&1&&(C(0,"ng-doc-tab",12),T(1,tp,2,2,"ng-template",null,2,te)(3,np,1,1,"ng-template",null,3,te),D()),e&2){let t=n.$implicit,o=Q(2),i=Q(4);y("id",t.title)("label",o)("content",i)}}function ip(e,n){if(e&1&&(K(0),C(1,"ng-doc-tab-group",10),ie(2,"execute"),T(3,op,5,3,"ng-doc-tab",11),D(),G()),e&2){let t,o=x(3);b(),y("openedTab",(t=Fe(2,2,o.getOpenedAssetId,o.assets))!==null&&t!==void 0?t:o.options.defaultTab),b(2),y("ngForOf",o.assets)}}function rp(e,n){if(e&1&&T(0,Ju,2,1,"ng-container",7)(1,ip,4,5,"ng-container",7),e&2){let t=x(2);y("ngIf",t.assets.length===1),b(),y("ngIf",t.assets.length>1)}}function sp(e,n){if(e&1&&(K(0),C(1,"ng-doc-demo-displayer",5),T(2,Zu,1,0,"ng-container",6)(3,rp,2,2,"ng-template",null,1,te),D(),G()),e&2){let t=Q(4),o=x(),i=Q(2);b(),y("codeContent",t)("expanded",!!o.options.expanded),b(),y("ngTemplateOutlet",i)}}function ap(e,n){if(e&1&&P(0,"ng-doc-fullscreen-button",15),e&2){let t=x(2);y("route",t.options.fullscreenRoute)}}function cp(e,n){e&1&&Ve(0)}function lp(e,n){if(e&1&&T(0,cp,1,0,"ng-container",16),e&2){let t=x(2);y("ngComponentOutlet",t.demo)("ngComponentOutletInputs",t.options.inputs)}}function dp(e,n){if(e&1&&T(0,ap,1,1,"ng-doc-fullscreen-button",15)(1,lp,1,2,"ng-container"),e&2){let t=x();Ne(t.options.fullscreenRoute?0:t.demo?1:-1)}}var kc=(()=>{class e{constructor(t){this.rootPage=t,this.options={},this.assets=[]}get classes(){return this.options.class??""}ngOnInit(){this.demo=this.getDemo(),this.assets=this.getAssets()}getOpenedAssetId(t){return t.find(o=>o.opened)?.title}getDemo(){if(this.componentName)return this.rootPage.page?.demos&&this.rootPage.page.demos[this.componentName]}getAssets(){return this.componentName?((this.rootPage.demoAssets&&this.rootPage.demoAssets[this.componentName])??[]).filter(t=>!this.options.tabs?.length||(0,Ic.asArray)(this.options.tabs).includes(t.title)):[]}static{this.\u0275fac=function(o){return new(o||e)(ee(Rn))}}static{this.\u0275cmp=A({type:e,selectors:[["ng-doc-demo"]],hostVars:2,hostBindings:function(o,i){o&2&&zt(i.classes)},inputs:{componentName:"componentName",options:"options"},standalone:!0,features:[R],decls:3,vars:2,consts:[["demoTemplate",""],["codeContent",""],["label",""],["assetContent",""],[4,"ngIf","ngIfElse"],[3,"codeContent","expanded"],[4,"ngTemplateOutlet"],[4,"ngIf"],[3,"html",4,"ngFor","ngForOf"],[3,"html"],[3,"openedTab"],[3,"id","label","content",4,"ngFor","ngForOf"],[3,"id","label","content"],[3,"customIcon",4,"ngIf"],[3,"customIcon"],[3,"route"],[4,"ngComponentOutlet","ngComponentOutletInputs"]],template:function(o,i){if(o&1&&T(0,sp,5,3,"ng-container",4)(1,dp,2,1,"ng-template",null,0,te),o&2){let r,s=Q(2);y("ngIf",(r=i.options.container)!==null&&r!==void 0?r:!0)("ngIfElse",s)}},dependencies:[ye,Ws,jt,Oe,$t,on,Ot,re,ht,so,In],styles:["[_nghost-%COMP%]{display:block;margin:var(--ng-doc-demo-margin);--ng-doc-tab-group-background: var(--ng-doc-code-background);--ng-doc-tab-group-tabs-background: var(--ng-doc-base-2);--ng-doc-tab-group-border-radius: 0;--ng-doc-tab-group-border: none;--ng-doc-code-border-radius: 0;--ng-doc-code-border: none}[_nghost-%COMP%] .ng-doc-example[_ngcontent-%COMP%]{padding:calc(var(--ng-doc-base-gutter) * 3)}[_nghost-%COMP%] ng-doc-icon[_ngcontent-%COMP%]{margin-right:calc(var(--ng-doc-base-gutter) / 2)}[_nghost-%COMP%] ng-doc-tab-group[_ngcontent-%COMP%]{border-top:1px solid var(--ng-doc-border-color)}"],changeDetection:0})}}return e})();var Ac=ct(fn(),1);function up(e,n){e&1&&Ve(0,6)}function pp(e,n){e&1&&Ve(0,7)}function gp(e,n){if(e&1&&P(0,"ng-doc-fullscreen-button",8),e&2){let t=x(2);y("route",t.options.fullscreenRoute)}}function fp(e,n){e&1&&Ve(0)}function mp(e,n){if(e&1&&T(0,fp,1,0,"ng-container",9),e&2){let t=x(2);y("ngComponentOutlet",t.demo)("ngComponentOutletInputs",t.options.inputs)}}function hp(e,n){if(e&1&&T(0,gp,1,1,"ng-doc-fullscreen-button",8)(1,mp,1,2,"ng-container"),e&2){let t=x();Ne(t.options.fullscreenRoute?0:t.demo?1:-1)}}function yp(e,n){if(e&1&&P(0,"ng-doc-code",12),e&2){let t=n.$implicit;y("html",t.code)}}function _p(e,n){if(e&1&&(K(0),T(1,yp,1,1,"ng-doc-code",11),G()),e&2){let t=x(2);b(),y("ngForOf",t.assets)}}function vp(e,n){if(e&1&&P(0,"ng-doc-code",12),e&2){let t=x().$implicit;y("html",t.code)}}function bp(e,n){if(e&1&&(C(0,"ng-doc-tab",15),T(1,vp,1,1,"ng-template",null,2,te),D()),e&2){let t=n.$implicit,o=Q(2);y("id",t.title)("label",t.title)("content",o)}}function Cp(e,n){if(e&1&&(K(0),C(1,"ng-doc-tab-group",13),T(2,bp,3,3,"ng-doc-tab",14),D(),G()),e&2){let t=x(2);b(),y("openedTab",t.options.defaultTab),b(),y("ngForOf",t.assets)}}function Dp(e,n){if(e&1&&T(0,_p,2,1,"ng-container",10)(1,Cp,3,2,"ng-container",10),e&2){let t=x();y("ngIf",t.assets.length===1),b(),y("ngIf",t.assets.length>1)}}var Rc=(()=>{class e{constructor(t){this.rootPage=t,this.options={},this.assets=[]}get classes(){return this.options.class??""}ngOnInit(){this.demo=this.getDemo(),this.assets=this.getAssets()}getDemo(){if(this.componentName)return this.rootPage.page?.demos&&this.rootPage.page.demos[this.componentName]}getAssets(){return this.componentName?((this.rootPage.demoAssets&&this.rootPage.demoAssets[this.componentName])??[]).filter(t=>!this.options.tabs?.length||(0,Ac.asArray)(this.options.tabs).includes(t.title)):[]}static{this.\u0275fac=function(o){return new(o||e)(ee(Rn))}}static{this.\u0275cmp=A({type:e,selectors:[["ng-doc-demo-pane"]],hostVars:2,hostBindings:function(o,i){o&2&&zt(i.classes)},inputs:{componentName:"componentName",options:"options"},standalone:!0,features:[R],decls:7,vars:3,consts:[["demoTemplate",""],["codeContent",""],["assetContent",""],[3,"expanded"],["ngDocPaneBack","",4,"ngTemplateOutlet"],["ngDocPaneFront","",4,"ngTemplateOutlet"],["ngDocPaneBack",""],["ngDocPaneFront",""],[3,"route"],[4,"ngComponentOutlet","ngComponentOutletInputs"],[4,"ngIf"],[3,"html",4,"ngFor","ngForOf"],[3,"html"],[3,"openedTab"],[3,"id","label","content",4,"ngFor","ngForOf"],[3,"id","label","content"]],template:function(o,i){if(o&1&&(C(0,"ng-doc-pane",3),T(1,up,1,0,"ng-container",4)(2,pp,1,0,"ng-container",5),D(),T(3,hp,2,1,"ng-template",null,0,te)(5,Dp,2,2,"ng-template",null,1,te)),o&2){let r,s=Q(4),a=Q(6);y("expanded",(r=i.options.expanded)!==null&&r!==void 0?r:!1),b(),y("ngTemplateOutlet",a),b(),y("ngTemplateOutlet",s)}},dependencies:[bc,jt,vc,_c,ye,Oe,$t,on,Ot,so,In],styles:["[_nghost-%COMP%]{display:block;height:var(--ng-doc-demo-pane-height);margin:var(--ng-doc-demo-pane-margin);--ng-doc-code-margin: 0;--ng-doc-code-border-radius: 0;--ng-doc-code-border: none;--ng-doc-smooth-resize-height: var(--ng-doc-demo-pane-height);--ng-doc-smooth-resize-max-height: 100%;--ng-doc-tab-group-tabs-background: var(--ng-doc-base-2);--ng-doc-tab-group-border: none;--ng-doc-tab-group-border-radius: 0}[_nghost-%COMP%] ng-doc-tab-group[_ngcontent-%COMP%], [_nghost-%COMP%] ng-doc-code[_ngcontent-%COMP%], [_nghost-%COMP%] ng-doc-pane[_ngcontent-%COMP%]{width:100%;height:100%}"],changeDetection:0})}}return e})();var Fc=(()=>{class e{constructor(){this.classes=[],this.location=B(js)}get href(){let{origin:t,pathname:o}=this.location;return`${t}${o}#${this.anchor}`}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=A({type:e,selectors:[["ng-doc-heading-anchor"]],hostVars:2,hostBindings:function(o,i){o&2&&zt(i.classes)},inputs:{anchor:"anchor",classes:"classes"},standalone:!0,features:[R],decls:2,vars:1,consts:[[3,"text"],["icon","link-2"]],template:function(o,i){o&1&&(C(0,"ng-doc-copy-button",0),P(1,"ng-doc-icon",1),D()),o&2&&y("text",i.href)},dependencies:[re,ks],changeDetection:0})}}return e})();var Sp=["image"],Tp=["*"];function xp(e,n){if(e&1){let t=Re();C(0,"div",1),Z("click",function(){we(t);let i=x();return Ee(i.overlayRef==null?null:i.overlayRef.close())}),P(1,"img",2),D()}if(e&2){let t=x();b(),y("src",t.src(),vr)("alt",t.alt())}}var Lc=(()=>{class e{constructor(){this.src=lt.required(),this.alt=lt.required(),this.image=Dr("image",{read:Ao}),this.overlay=B(ms),this.element=B(ue).nativeElement,this.changeDetectorRef=B(he)}clickEvent(){this.overlayRef?.close();let{width:t,height:o,top:i,left:r}=this.element.getBoundingClientRect(),s=window.innerWidth,a=window.innerHeight,c=Math.min(s/t,a/o),l=t*c,u=o*c;this.overlayRef=this.overlay.open(this.image(),{overlayContainer:fs,positionStrategy:this.overlay.globalPositionStrategy().centerHorizontally().centerVertically(),scrollStrategy:this.overlay.scrollStrategy().block(),hasBackdrop:!0,backdropClass:"ng-doc-blur-backdrop",openAnimation:[Me({position:"fixed",width:t,height:o,top:i,left:r,transform:"translate(0%, 0)"}),Lo([wt("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",Me({width:`${l}px`,height:`${u}px`,top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),zo(".ng-doc-image-container",[Me({padding:0}),wt("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",Me({padding:"16px"}))])])],closeAnimation:[Me({position:"fixed",width:`${l}px`,height:`${u}px`,top:"50%",left:"50%",transform:"translate(-50%, -50%)"}),Lo([wt("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",Me({width:t,height:o,top:i,left:r,transform:"translate(0%, 0)"})),zo(".ng-doc-image-container",wt("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",Me({padding:0})))])]}),this.overlayRef.afterClose().subscribe(()=>{this.overlayRef=void 0,this.changeDetectorRef.markForCheck()})}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=A({type:e,selectors:[["ng-doc-image-viewer"]],viewQuery:function(o,i){o&1&&Pr(i.image,Sp,5,Ao),o&2&&Or()},hostVars:1,hostBindings:function(o,i){o&1&&Z("click",function(){return i.clickEvent()}),o&2&&ne("data-opened",!!i.overlayRef)},inputs:{src:[1,"src"],alt:[1,"alt"]},standalone:!0,features:[R],ngContentSelectors:Tp,decls:3,vars:0,consts:[["image",""],[1,"ng-doc-image-container",3,"click"],[1,"ng-doc-scaled-image",3,"src","alt"]],template:function(o,i){o&1&&(me(),oe(0),T(1,xp,2,2,"ng-template",null,0,te))},styles:["[_nghost-%COMP%]{display:inline-block;cursor:zoom-in;transition:var(--ng-doc-transition)}[data-opened=true][_nghost-%COMP%] > img{opacity:0}[_nghost-%COMP%] > img{max-width:100%;vertical-align:middle;border-radius:var(--ng-doc-base-gutter);overflow:hidden}.ng-doc-image-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:calc(var(--ng-doc-base-gutter) * 2);width:100%;height:100%}.ng-doc-image-container[_ngcontent-%COMP%] .ng-doc-scaled-image[_ngcontent-%COMP%]{cursor:zoom-out;width:100%;height:100%}"],changeDetection:0})}}return e})();He();var zc="ng-doc-theme-id";var Bc=(()=>{let e=class ao{constructor(){this.document=B(Ue),this.store=B(Mc),this.change$=new or,this.documentElement=this.document.documentElement}get currentTheme(){return document.documentElement.getAttribute("data-theme")}themeChanges(){return this.change$.asObservable()}set(t){t?this.documentElement.setAttribute("data-theme",t):this.documentElement.removeAttribute("data-theme"),this.store.set(zc,t??""),this.change$.next(t??null)}static{this.\u0275fac=function(o){return new(o||ao)}}static{this.\u0275prov=De({token:ao,factory:ao.\u0275fac,providedIn:"root"})}};return e=ce([pe()],e),e})();function wp(e,n){e&1&&(C(0,"div",1),P(1,"ng-doc-spinner"),D())}function Ep(e,n){if(e&1&&(C(0,"div",2),j(1),D()),e&2){let t=x();b(),Pe(t.error())}}function Np(e,n){if(e&1&&(C(0,"ng-doc-magnifier",null,0),P(2,"div",3),ie(3,"ngDocSanitizeHtml"),D(),P(4,"ng-doc-magnifier-controller",4)),e&2){let t=Q(1),o=x();b(2),y("innerHTML",tt(3,2,o.html()),pn),b(2),y("magnifier",t)}}var Pp=0,jc=(()=>{class e{constructor(){this.graph=lt.required(),this.html=Ge(""),this.pending=Ge(!0),this.error=Ge(null),this.changeDetectorRef=B(he),this.platform=B(_r),this.id=`ng-doc-mermaid-viewer-${Pp++}`;let t=B(As,{optional:!0});if(!t)throw new Error('Mermaid is not provided. Make sure that you provided mermaid using "provideMermaid" function.');this.mermaid=t,B(Bc).themeChanges().subscribe(()=>S(this,null,function*(){let{svg:o}=yield this.mermaid.render(this.id,this.graph());this.html.set(o)}))}ngOnInit(){return S(this,null,function*(){if(Rr(this.platform))try{let{svg:t}=yield this.mermaid.render(this.id,this.graph());this.html.set(t),this.pending.set(!1)}catch(t){this.error.set(t),this.pending.set(!1)}})}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=A({type:e,selectors:[["ng-doc-mermaid-viewer"]],inputs:{graph:[1,"graph"]},standalone:!0,features:[R],decls:3,vars:1,consts:[["magnifier",""],[1,"ng-doc-mermaid-preloader"],[1,"ng-doc-mermaid-error"],[1,"ng-doc-mermaid-container",3,"innerHTML"],[3,"magnifier"]],template:function(o,i){o&1&&T(0,wp,2,0,"div",1)(1,Ep,2,1,"div",2)(2,Np,5,4),o&2&&Ne(i.pending()?0:i.error()?1:2)},dependencies:[hc,yc,Un,oo],styles:["[_nghost-%COMP%]{position:relative;display:block;border:var(--ng-doc-mermaid-viewer-border, 1px solid var(--ng-doc-border-color));margin:var(--ng-doc-mermaid-viewer-margin, var(--ng-doc-page-block-margin));background:var(--ng-doc-mermaid-viewer-background, var(--ng-doc-base-8));border-radius:var(--ng-doc-mermaid-viewer-border-radius, var(--ng-doc-base-gutter));min-height:150px}[_nghost-%COMP%] ng-doc-magnifier-controller[_ngcontent-%COMP%]{position:absolute;bottom:calc(var(--ng-doc-base-gutter) * 2);right:calc(var(--ng-doc-base-gutter) * 2)}[_nghost-%COMP%] .ng-doc-mermaid-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:calc(var(--ng-doc-base-gutter) * 2)}[_nghost-%COMP%] .ng-doc-mermaid-preloader[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:100%;height:120px}[_nghost-%COMP%] .ng-doc-mermaid-error[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:120px;color:var(--ng-doc-alert)}"],changeDetection:0})}}return e})();He();He();var Op=["inputElement"],Mp=["resultContent"],Ip=()=>[];function kp(e,n){e&1&&(C(0,"span",18)(1,"b"),j(2,"\u2022"),D()())}function Ap(e,n){if(e&1&&(K(0),C(1,"span"),j(2),D(),T(3,kp,3,0,"span",17),G()),e&2){let t=n.$implicit,o=n.index,i=x().$implicit;b(2),Pe(t),b(),y("ngIf",o!==i.index.breadcrumbs.length-1)}}function Rp(e,n){if(e&1&&(P(0,"div",19),ie(1,"execute"),ie(2,"ngDocHighlighterPipe"),ie(3,"ngDocSanitizeHtml")),e&2){let t=x().$implicit,o=x(2);y("innerHTML",tt(3,8,Fe(2,5,t.index.content,gn(1,1,o.getPositions,"content",t))),pn)}}function Fp(e,n){if(e&1){let t=Re();C(0,"a",10),Z("click",function(){we(t);let i=x(2);return Ee(i.overlayRef.close())}),C(1,"div",11)(2,"ng-doc-tag",12),j(3),D(),C(4,"span",13),T(5,Ap,4,2,"ng-container",14),D()(),P(6,"h5",15),ie(7,"execute"),ie(8,"ngDocHighlighterPipe"),ie(9,"ngDocSanitizeHtml"),T(10,Rp,4,10,"div",16),D()}if(e&2){let t=n.$implicit,o=x(2);y("routerLink",t.index.route)("fragment",t.index.fragment),b(2),ne("data-ng-doc-page-type",t.index.pageType),b(),ge(" ",t.index.pageType," "),b(2),y("ngForOf",t.index.breadcrumbs),b(),y("innerHTML",tt(9,14,Fe(8,11,t.index.section,gn(7,7,o.getPositions,"section",t)))||t.index.title,pn),b(4),y("ngIf",t.index.content)}}function Lp(e,n){e&1&&(K(0),j(1,"Nothing found"),G())}function zp(e,n){e&1&&(K(0),j(1,"Please enter your search query "),G())}function Bp(e,n){if(e&1&&(K(0),C(1,"div",21),T(2,Lp,2,0,"ng-container",20)(3,zp,2,0,"ng-container",20),D(),G()),e&2){let t=x(3);b(2),y("ngIf",t.searchTerm.length),b(),y("ngIf",!t.searchTerm.length)}}function jp(e,n){e&1&&(K(0),C(1,"div",22),P(2,"ng-doc-spinner",12),j(3," Searching... "),D(),G())}function Vp(e,n){if(e&1&&T(0,Bp,4,2,"ng-container",20)(1,jp,4,0,"ng-container",20),e&2){let t=x().ngIf;y("ngIf",!(t!=null&&t.pending)),b(),y("ngIf",t==null?null:t.pending)}}function Up(e,n){if(e&1&&(C(0,"div",8,1)(2,"ng-doc-data-list",9),T(3,Fp,11,16,"ng-template",null,2,te)(5,Vp,2,2,"ng-template",null,3,te),D()()),e&2){let t,o=n.ngIf,i=Q(4),r=Q(6);b(2),y("items",(t=o==null?null:o.result)!==null&&t!==void 0?t:xt(3,Ip))("itemContent",i)("emptyContent",r)}}var Uc=(()=>{class e{constructor(){this.searchTerm="",this.elementRef=B(ue),this.overlayRef=B(cs),this.data=B(Ts),this.searchTerm=this.data.term}search(t){this.data.search(t),this.resultContent&&(this.resultContent.nativeElement.scrollTop=0)}getPositions(t,o){return o.positions[t]??[]}get listHostOrigin(){return this.inputElement??this.elementRef}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=A({type:e,selectors:[["ng-doc-search-dialog"]],viewQuery:function(o,i){if(o&1&&(dt(Op,5,ue),dt(Mp,5,ue)),o&2){let r;Je(r=et())&&(i.inputElement=r.first),Je(r=et())&&(i.resultContent=r.first)}},hostVars:1,hostBindings:function(o,i){o&2&&Er("@popupAnimation",!0)},standalone:!0,features:[Bt([{provide:ns,useExisting:pr(()=>e)}]),R],decls:7,vars:5,consts:[["inputElement",""],["resultContent",""],["itemContent",""],["emptyContent",""],[1,"ng-doc-search-dialog-container"],["icon","search","ngDocInputWrapperLeft",""],["ngDocInputString","","ngDocAutofocus","","placeholder","Find or ask anything...",3,"ngModelChange","selectAll","ngModel"],["class","ng-doc-search-result-content",4,"ngIf"],[1,"ng-doc-search-result-content"],[3,"items","itemContent","emptyContent"],[1,"ng-doc-search-option",3,"click","routerLink","fragment"],[1,"ng-doc-search-option-header"],["size","small"],["ng-doc-text","",1,"ng-doc-search-option-breadcrumbs"],[4,"ngFor","ngForOf"],["ng-doc-text","",1,"ng-doc-search-section-title",3,"innerHTML"],["class","ng-doc-search-content","ng-doc-text","",3,"innerHTML",4,"ngIf"],["class","ng-doc-search-option-breadcrumb-divider",4,"ngIf"],[1,"ng-doc-search-option-breadcrumb-divider"],["ng-doc-text","",1,"ng-doc-search-content",3,"innerHTML"],[4,"ngIf"],[1,"ng-doc-search-empty"],[1,"ng-doc-search-progress"]],template:function(o,i){if(o&1){let r=Re();C(0,"div",4)(1,"ng-doc-input-wrapper"),P(2,"ng-doc-icon",5),C(3,"input",6,0),kr("ngModelChange",function(a){return we(r),Ir(i.searchTerm,a)||(i.searchTerm=a),Ee(a)}),Z("ngModelChange",function(a){return we(r),Ee(i.search(a))}),D()(),T(5,Up,7,4,"div",7),ie(6,"async"),D()}o&2&&(b(3),y("selectAll",!0),Mr("ngModel",i.searchTerm),b(2),y("ngIf",tt(6,3,i.data.searchResults)))},dependencies:[Vt,Oe,ye,kn,zn,Bn,Cc,re,mc,mt,rn,Ye,Pc,Un,oo,ht,Fn,Gr,Qr,Yr],styles:["[_nghost-%COMP%]{display:block;width:800px;max-width:100%;--ng-doc-search-border-radius: var(--ng-doc-floated-border-radius);--ng-doc-input-height: calc(var(--ng-doc-base-gutter) * 7);--ng-doc-input-border: 1px solid var(--ng-doc-base-1);--ng-doc-input-border-hover: 1px solid var(--ng-doc-base-1);--ng-doc-floated-focus-border-color: transparent}@media (max-width: 1024px){[_nghost-%COMP%]{padding:calc(var(--ng-doc-base-gutter) * 5)}}@media (max-width: 768px){[_nghost-%COMP%]{padding:calc(var(--ng-doc-base-gutter) * 2)}}[_nghost-%COMP%] ng-doc-icon[icon=search][_ngcontent-%COMP%]{--ng-doc-icon-width: calc(var(--ng-doc-base-gutter) * 6)}[_nghost-%COMP%] ng-doc-input-wrapper[_ngcontent-%COMP%]:not(:last-child){--ng-doc-floated-border-radius: var(--ng-doc-search-border-radius) var(--ng-doc-search-border-radius) 0 0}[_nghost-%COMP%] .ng-doc-search-dialog-container[_ngcontent-%COMP%]{box-shadow:#0000 0 0,#0000 0 0,#00000040 0 25px 50px -12px}[_nghost-%COMP%] .ng-doc-search-result-content[_ngcontent-%COMP%]{max-height:70vh;overflow:auto;background-color:var(--ng-doc-background);border-radius:0 0 var(--ng-doc-search-border-radius) var(--ng-doc-search-border-radius);--ng-doc-option-padding: 0}[_nghost-%COMP%] .ng-doc-search-result-content[data-ng-doc-mod=icon][_ngcontent-%COMP%] .ng-doc-search-wrapper[_ngcontent-%COMP%]{padding:calc(var(--ng-doc-base-gutter) * 2) 0}[_nghost-%COMP%] .ng-doc-search-result-content[data-ng-doc-mod=icon][_ngcontent-%COMP%] .ng-doc-search-option[_ngcontent-%COMP%]{padding:12px 16px}[_nghost-%COMP%] .ng-doc-search-option[_ngcontent-%COMP%]{display:block;padding:12px 36px;text-decoration:none}[_nghost-%COMP%] .ng-doc-search-option[_ngcontent-%COMP%] .ng-doc-search-option-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:calc(var(--ng-doc-base-gutter) / 2)}[_nghost-%COMP%] .ng-doc-search-option[_ngcontent-%COMP%] .ng-doc-search-option-header[_ngcontent-%COMP%] ng-doc-tag[_ngcontent-%COMP%]{text-transform:uppercase;margin-right:var(--ng-doc-base-gutter);--ng-doc-font-weight: 500}[_nghost-%COMP%] .ng-doc-search-option[_ngcontent-%COMP%] .ng-doc-search-option-header[_ngcontent-%COMP%] ng-doc-tag[data-ng-doc-page-type=guide][_ngcontent-%COMP%]{--ng-doc-tag-color: var(--ng-doc-guide-tag-color);--ng-doc-tag-background: var(--ng-doc-guide-tag-background)}[_nghost-%COMP%] .ng-doc-search-option[_ngcontent-%COMP%] .ng-doc-search-option-header[_ngcontent-%COMP%] ng-doc-tag[data-ng-doc-page-type=api][_ngcontent-%COMP%]{--ng-doc-tag-color: var(--ng-doc-api-tag-color);--ng-doc-tag-background: var(--ng-doc-api-tag-background)}[_nghost-%COMP%] .ng-doc-search-option[_ngcontent-%COMP%] .ng-doc-search-option-header[_ngcontent-%COMP%] .ng-doc-search-option-breadcrumbs[_ngcontent-%COMP%]{--ng-doc-text: var(--ng-doc-text-muted);--ng-doc-font-size: 12px;--ng-doc-line-height: 16px}[_nghost-%COMP%] .ng-doc-search-option[_ngcontent-%COMP%] .ng-doc-search-option-header[_ngcontent-%COMP%] .ng-doc-search-option-breadcrumbs[_ngcontent-%COMP%] .ng-doc-search-option-breadcrumb-divider[_ngcontent-%COMP%]{margin:0 6px}[_nghost-%COMP%] .ng-doc-search-option[_ngcontent-%COMP%] .ng-doc-search-section-title[_ngcontent-%COMP%]{display:block;color:var(--ng-doc-search-result-header-color, var(--ng-doc-text));--ng-doc-line-height: 20px;margin:4px 0}[_nghost-%COMP%] .ng-doc-search-option[_ngcontent-%COMP%] .ng-doc-search-content[_ngcontent-%COMP%]{display:block;color:var(--ng-doc-search-result-color, var(--ng-doc-text));--ng-doc-font-size: 14px;--ng-doc-line-height: 19px}[_nghost-%COMP%] .ng-doc-search-empty[_ngcontent-%COMP%]{padding:0 22px}[_nghost-%COMP%] .ng-doc-search-progress[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] .ng-doc-search-progress[_ngcontent-%COMP%] ng-doc-spinner[_ngcontent-%COMP%]{margin-right:var(--ng-doc-base-gutter)}"],data:{animation:[es]},changeDetection:0})}}return e})();var qp=()=>({ctrlKey:!1,altKey:!1,shiftKey:!1,code:"Slash"}),qc=(()=>{let e=class yi{constructor(){if(this.query=new xn(""),this.dialog=B(xs),this.searchEngine=B(yt,{optional:!0}),!this.searchEngine)throw new Error(`NgDoc: Search engine is not provided, + please check this article: https://ng-doc.com/docs/getting-started/installation#configuring-application + to learn how to provide it.`);this.searchResults=this.query.pipe(ur(1),Ke(t=>this.searchEngine?.search(t).pipe(as())??sr),En(1),Ie(this))}open(){this.dialog.open(new io(Uc),{hasBackdrop:!0,backdropClass:"ng-doc-blur-backdrop",panelClass:"ng-doc-transparent-dialog",positionStrategy:this.dialog.positionStrategy().centerHorizontally().top("5vh"),data:{term:this.query.value,search:t=>this.query.next(t),searchResults:this.searchResults}})}static{this.\u0275fac=function(o){return new(o||yi)}}static{this.\u0275cmp=A({type:yi,selectors:[["ng-doc-search"]],standalone:!0,features:[R],decls:8,vars:3,consts:[[3,"ngDocHotkey"],["ng-doc-button-icon","","size","large","ngDocDropdownOrigin","",3,"click"],["icon","search",3,"size"],["ngDocDropdownOrigin",""],["icon","search","ngDocInputWrapperLeft",""],["ngDocInputString","","readonly","","placeholder","Search...",3,"click"],["ngDocInputWrapperRight","",1,"search-hotkey"]],template:function(o,i){o&1&&(K(0,0),Z("ngDocHotkey",function(){return i.open()}),C(1,"button",1),Z("click",function(){return i.open()}),P(2,"ng-doc-icon",2),D(),C(3,"ng-doc-input-wrapper",3),P(4,"ng-doc-icon",4),C(5,"input",5),Z("click",function(){return i.open()}),D(),C(6,"ng-doc-tag",6),j(7,"/"),D()(),G()),o&2&&(y("ngDocHotkey",xt(2,qp)),b(2),y("size",24))},dependencies:[Wt,Dc,re,zn,Bn,Fn,xc,rn],styles:["[_nghost-%COMP%]{--ng-doc-floated-border-radius: var(--ng-doc-base-gutter);--ng-doc-input-background-color: var(--ng-doc-base-1);--ng-doc-input-border: none;--ng-doc-input-border-hover: none;--ng-doc-icon-color: var(--ng-doc-base-7)}[_nghost-%COMP%] ng-doc-input-wrapper[_ngcontent-%COMP%]{cursor:pointer}[_nghost-%COMP%] ng-doc-input-wrapper[_ngcontent-%COMP%] ng-doc-icon[_ngcontent-%COMP%], [_nghost-%COMP%] ng-doc-input-wrapper[_ngcontent-%COMP%] ng-doc-tag[_ngcontent-%COMP%]{cursor:pointer}@media (max-width: 1024px){[_nghost-%COMP%] ng-doc-input-wrapper[_ngcontent-%COMP%]{display:none}}@media (min-width: 1024px){[_nghost-%COMP%]{width:240px}[_nghost-%COMP%] button[ng-doc-button-icon][_ngcontent-%COMP%]{display:none}}.search-hotkey[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:calc(var(--ng-doc-base-gutter) * 3);height:calc(var(--ng-doc-base-gutter) * 3);margin-right:var(--ng-doc-base-gutter);--ng-doc-tag-border: 1px solid var(--ng-doc-base-6);--ng-doc-tag-color: var(--ng-doc-base-6);--ng-doc-tag-background: transparent}"],changeDetection:0})}};return e=ce([pe(),de("design:paramtypes",[])],e),e})();var Wp=[[["","ngDocNavbarLeft",""]],[["","ngDocNavbarRight",""]]],$p=["[ngDocNavbarLeft]","[ngDocNavbarRight]"];function Hp(e,n){e&1&&P(0,"ng-doc-search")}var Wc=(()=>{let e=class _i{constructor(t,o,i,r){this.window=t,this.ngZone=o,this.changeDetectorRef=i,this.sidebarService=r,this.search=!0,this.hamburger=!0,this.glassEffect=!0,this.hasBorder=!1,Ft(()=>{ir([be(this.window,"scroll").pipe(je(s=>(s.target?.scrollingElement?.scrollTop??0)>0),wn(),Dt(!1),Qe(this.ngZone)),this.sidebarService.isExpanded()]).pipe(je(([s,a])=>s||a&&this.sidebarService.isMobile),Ie(this)).subscribe(s=>{this.hasBorder=s,this.changeDetectorRef.markForCheck()})})}static{this.\u0275fac=function(o){return new(o||_i)(ee(Wn),ee(Se),ee(he),ee(sn))}}static{this.\u0275cmp=A({type:_i,selectors:[["ng-doc-navbar"]],hostVars:3,hostBindings:function(o,i){o&2&&(ne("data-glass-effect",i.glassEffect),Pn("has-border",i.hasBorder))},inputs:{search:"search",hamburger:"hamburger",glassEffect:"glassEffect"},standalone:!0,features:[R],ngContentSelectors:$p,decls:8,vars:2,consts:[[1,"navbar-container"],[1,"ng-doc-navbar-left"],[1,"ng-doc-navbar-right"],["ng-doc-button-icon","","size","large",1,"ng-doc-menu",3,"click"],["icon","menu",3,"size"]],template:function(o,i){o&1&&(me(Wp),C(0,"div",0)(1,"div",1),oe(2),D(),C(3,"div",2),T(4,Hp,1,0,"ng-doc-search"),oe(5,1),C(6,"button",3),Z("click",function(){return i.sidebarService.toggle()}),P(7,"ng-doc-icon",4),D()()()),o&2&&(b(4),Ne(i.search?4:-1),b(3),y("size",24))},dependencies:[qe,qc,Wt,re],styles:["[_nghost-%COMP%]{position:relative;display:flex;justify-content:center;height:100%;border-bottom:1px solid transparent;transition:var(--ng-doc-transition) border}[_nghost-%COMP%]:not([data-glass-effect=false]){background:color-mix(in srgb,var(--ng-doc-navbar-background) 60%,transparent);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}@supports not ((-webkit-backdrop-filter: none) or (backdrop-filter: none)){[_nghost-%COMP%]{background-color:var(--ng-doc-navbar-background)}}[data-glass-effect=false][_nghost-%COMP%]{background-color:var(--ng-doc-navbar-background)}.has-border[_nghost-%COMP%]{border-bottom:var(--ng-doc-navbar-border, );box-shadow:var(--ng-doc-shadow-color) 0 5px 20px -5px}[_nghost-%COMP%] .navbar-container[_ngcontent-%COMP%]{display:flex;height:100%;width:100%;padding:0 var(--ng-doc-navbar-horizontal-padding);z-index:10;max-width:var(--ng-doc-app-max-width)}[_nghost-%COMP%] .ng-doc-navbar-left[_ngcontent-%COMP%], [_nghost-%COMP%] .ng-doc-navbar-right[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] .ng-doc-navbar-left[_ngcontent-%COMP%]{justify-content:flex-start;width:100%;max-width:var(--ng-doc-navbar-left-width)}[_nghost-%COMP%] .ng-doc-navbar-right[_ngcontent-%COMP%]{justify-content:flex-end;margin-left:auto}[_nghost-%COMP%] .ng-doc-menu[_ngcontent-%COMP%]{margin-left:calc(var(--ng-doc-base-gutter) * 2)}@media (min-width: 1024px){[_nghost-%COMP%] .ng-doc-menu[_ngcontent-%COMP%]{display:none}}"],changeDetection:0})}};return e=ce([pe(),de("design:paramtypes",[Window,Se,he,sn])],e),e})();var Hc=ct(Hl(),1);function Kp(e,n){if(e&1&&P(0,"ng-doc-icon",7),e&2){let t=x(2).$implicit;y("customIcon",t.icon)}}function Gp(e,n){if(e&1&&(T(0,Kp,1,1,"ng-doc-icon",6),j(1)),e&2){let t=x().$implicit;y("ngIf",t.icon),b(),ge(" ",t.title," ")}}function Qp(e,n){if(e&1&&(C(0,"div",null,2),j(2),ie(3,"execute"),D()),e&2){let t=Q(1),o=x().$implicit,i=x();b(2),ge(" ",gn(3,1,i.appendElement,o.content,t)," ")}}function Yp(e,n){if(e&1&&(C(0,"ng-doc-tab",5),T(1,Gp,2,2,"ng-template",null,0,te)(3,Qp,4,5,"ng-template",null,1,te),D()),e&2){let t=n.index,o=Q(2),i=Q(4);y("label",o)("content",i)("id",t)}}var $c=(()=>{class e{constructor(){this.tabs=[]}getActiveIndex(t){return Math.max(t.findIndex(o=>o.active),0)}appendElement(t,o){o.appendChild(t)}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=A({type:e,selectors:[["ng-doc-tabs"]],inputs:{tabs:"tabs"},standalone:!0,features:[R],decls:3,vars:5,consts:[["label",""],["content",""],["element",""],[3,"openedTab"],[3,"label","content","id",4,"ngFor","ngForOf"],[3,"label","content","id"],[3,"customIcon",4,"ngIf"],[3,"customIcon"]],template:function(o,i){o&1&&(C(0,"ng-doc-tab-group",3),ie(1,"execute"),T(2,Yp,5,3,"ng-doc-tab",4),D()),o&2&&(y("openedTab",Fe(1,2,i.getActiveIndex,i.tabs)),b(2),y("ngForOf",i.tabs))},dependencies:[Vt,Oe,ye,on,Ot,ht,re],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--ng-doc-tabs-border-radius);border:var(--ng-doc-tabs-border);margin:var(--ng-doc-tabs-margin);overflow:hidden;--ng-doc-code-margin: 0;--ng-doc-code-border-radius: 0;--ng-doc-code-border: none;--ng-doc-tab-group-header-background: var(--ng-doc-base-2)}[_nghost-%COMP%] ng-doc-icon[_ngcontent-%COMP%]{margin-right:calc(var(--ng-doc-base-gutter) / 2)}"],changeDetection:0})}}return e})();var Kc={component:gc,selector:"ng-doc-blockquote",extractOptions:e=>({content:[Array.from(e.childNodes)],inputs:{type:e.getAttribute("type")||"default",icon:e.getAttribute("icon")??void 0}})},Gc={component:$t,selector:"pre code",nodeToReplace:e=>e.closest("pre")??e,extractOptions:e=>({inputs:{name:e.parentElement?.getAttribute("name")||void 0,icon:e.parentElement?.getAttribute("icon")||void 0},content:[[e.closest("pre")??e]]})},Qc={component:kc,selector:"ng-doc-demo",extractOptions:e=>({inputs:{componentName:e.getAttribute("componentName")||void 0,options:JSON.parse(e.querySelector("#options")?.textContent??"{}")}})},Yc={component:Rc,selector:"ng-doc-demo-pane",extractOptions:e=>({inputs:{componentName:e.getAttribute("componentName")||void 0,options:JSON.parse(e.querySelector("#options")?.textContent??"")||{}}})},Zc={component:Fc,selector:"ng-doc-heading-anchor",extractOptions:e=>({inputs:{classes:e.getAttribute("class")?.split(" ")||[],anchor:e.getAttribute("anchor")||""}})},Xc={component:re,selector:"ng-doc-icon",extractOptions:e=>({inputs:{icon:e.getAttribute("icon")??"",size:Number(e.getAttribute("size"))||16}})},Jc={component:Lc,selector:'img:not([zoom="false"])',nodeToReplace:(e,n)=>{let o=n.get(Tt).createElement("div");return e.parentNode?.insertBefore(o,e)??e},extractOptions:e=>({inputs:{src:e.getAttribute("src")??"",alt:e.getAttribute("alt")??""},content:[[e]]})},el={component:jc,selector:"pre.mermaid",extractOptions:e=>({inputs:{graph:e.textContent??""}})},tl={component:$s,selector:"ng-doc-playground",extractOptions:e=>({inputs:{id:e.getAttribute("id")||void 0,properties:JSON.parse(e.querySelector("#data")?.textContent?.replace(/\n/g,"\\n")??"")||void 0,pipeName:e.querySelector("#pipeName")?.textContent||void 0,selectors:(e.querySelector("#selectors")?.textContent||"").split(",").map(n=>n.trim()).filter(Hc.isPresent),options:JSON.parse(e.querySelector("#options")?.textContent??"")||{}}})},nl={component:$c,selector:"ng-doc-tab",nodeToReplace:(e,n)=>{let o=n.get(Tt).createElement("div");return e.parentNode?.insertBefore(o,e)??e},extractOptions:(e,n)=>{let t=e.getAttribute("group")??"",o=Array.from(n.querySelectorAll(`ng-doc-tab[group="${t}"]`)),i=o.map(r=>({title:r.getAttribute("name")??"",content:r,icon:r.getAttribute("icon")||void 0,active:r.hasAttribute("active")}));return o.forEach(r=>r.remove()),{inputs:{tabs:i}}}};function Zp(e,n){if(e&1&&(C(0,"a",3)(1,"div",4),P(2,"ng-doc-icon",5),j(3," Previous "),D(),C(4,"div",6),j(5),D()()),e&2){let t=x();y("routerLink",t.prevPage.route),b(5),Pe(t.prevPage.title)}}function Xp(e,n){if(e&1&&(C(0,"a",7)(1,"div",4),j(2," Next "),P(3,"ng-doc-icon",8),D(),C(4,"div",6),j(5),D()()),e&2){let t=x();y("routerLink",t.nextPage.route),b(5),Pe(t.nextPage.title)}}var ol=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=A({type:e,selectors:[["ng-doc-page-navigation"]],inputs:{prevPage:"prevPage",nextPage:"nextPage"},standalone:!0,features:[R],decls:3,vars:2,consts:[[1,"ng-doc-navigation-controls"],["class","ng-doc-prev-page",3,"routerLink",4,"ngIf"],["class","ng-doc-next-page",3,"routerLink",4,"ngIf"],[1,"ng-doc-prev-page",3,"routerLink"],["ng-doc-text","","size","small",1,"ng-doc-navigation-page-label"],["icon","arrow-left","ngDocTextLeft",""],["ng-doc-text","",1,"ng-doc-navigation-page-title"],[1,"ng-doc-next-page",3,"routerLink"],["icon","arrow-right","ngDocTextRight",""]],template:function(o,i){o&1&&(C(0,"div",0),T(1,Zp,6,2,"a",1)(2,Xp,6,2,"a",2),D()),o&2&&(b(),y("ngIf",i.prevPage),b(),y("ngIf",i.nextPage))},dependencies:[Vt,ye,re,Ye,jn,Vn,mt],styles:["[_nghost-%COMP%] .ng-doc-navigation-controls[_ngcontent-%COMP%]{display:flex;margin-top:calc(var(--ng-doc-base-gutter) * 12);border-top:1px solid var(--ng-doc-base-2);padding-top:calc(var(--ng-doc-base-gutter) * 2)}[_nghost-%COMP%] .ng-doc-navigation-controls[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:flex;flex-direction:column;text-decoration:unset;transition:var(--ng-doc-transition);--ng-doc-button-hover-background: var(--ng-doc-base-1);--ng-doc-button-active-background: var(--ng-doc-base-2);--ng-doc-text: var(--ng-doc-base-9);--ng-doc-icon-color: var(--ng-doc-text)}[_nghost-%COMP%] .ng-doc-navigation-controls[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{opacity:.6}[_nghost-%COMP%] .ng-doc-navigation-controls[_ngcontent-%COMP%] a.ng-doc-next-page[_ngcontent-%COMP%]{margin-left:auto}[_nghost-%COMP%] .ng-doc-navigation-controls[_ngcontent-%COMP%] a.ng-doc-prev-page[_ngcontent-%COMP%]{align-items:flex-start}[_nghost-%COMP%] .ng-doc-navigation-controls[_ngcontent-%COMP%] a.ng-doc-next-page[_ngcontent-%COMP%]{align-items:flex-end}[_nghost-%COMP%] .ng-doc-navigation-controls[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .ng-doc-navigation-page-title[_ngcontent-%COMP%]{--ng-doc-text: var(--ng-doc-link-color)}"],changeDetection:0})}}return e})();He();var Jp=[[["ng-doc-navbar"]],[["","ngDocCustomNavbar",""]],"*",[["ng-doc-sidebar"]],[["","ngDocCustomSidebar",""]]],eg=["ng-doc-navbar","[ngDocCustomNavbar]","*","ng-doc-sidebar","[ngDocCustomSidebar]"];function tg(e,n){e&1&&(oe(0,3),oe(1,4))}function ng(e,n){if(e&1&&(K(0),j(1),G()),e&2){let t=n.polymorpheusOutlet;b(),ge(" ",t,"")}}function og(e,n){if(e&1&&(C(0,"footer"),T(1,ng,2,1,"ng-container",5),D()),e&2){let t=x();b(),y("polymorpheusOutlet",t.footerContent)}}var il=(()=>{let e=class vi{constructor(){this.sidebar=!0,this.footerContent="",this.noWidthLimit=!1,this.sidebarService=B(sn)}static{this.\u0275fac=function(o){return new(o||vi)}}static{this.\u0275cmp=A({type:vi,selectors:[["ng-doc-root"]],viewQuery:function(o,i){if(o&1&&dt(mi,5),o&2){let r;Je(r=et())&&(i.sidenav=r.first)}},hostVars:1,hostBindings:function(o,i){o&2&&ne("data-ng-doc-no-width-limit",i.noWidthLimit)},inputs:{sidebar:"sidebar",footerContent:"footerContent",noWidthLimit:"noWidthLimit"},standalone:!0,features:[Bt([]),R],ngContentSelectors:eg,decls:12,vars:6,consts:[["sidebarContent",""],[1,"ng-doc-root-wrapper"],[1,"ng-doc-header"],[3,"closeEvent","sidebar","opened","hasBackdrop"],[4,"ngIf"],[4,"polymorpheusOutlet"]],template:function(o,i){if(o&1){let r=Re();me(Jp),K(0),C(1,"div",1)(2,"div",2),oe(3),oe(4,1),D(),C(5,"main")(6,"ng-doc-sidenav",3),ie(7,"async"),Z("closeEvent",function(){return we(r),Ee(i.sidebarService.hide())}),T(8,tg,2,0,"ng-template",null,0,te),oe(10,2),D()(),T(11,og,2,1,"footer",4),D(),G()}if(o&2){let r,s=Q(9);b(6),y("sidebar",i.sidebar?s:null)("opened",(r=tt(7,4,i.sidebarService.isExpanded()))!==null&&r!==void 0?r:!0)("hasBackdrop",i.sidebarService.isMobile),b(5),y("ngIf",i.footerContent)}},dependencies:[mi,ye,qe,ot,kn],styles:["[data-ng-doc-no-width-limit=true][_nghost-%COMP%] .ng-doc-root-wrapper[_ngcontent-%COMP%] main[_ngcontent-%COMP%]{max-width:none}[_nghost-%COMP%] .ng-doc-root-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}[_nghost-%COMP%] .ng-doc-root-wrapper[_ngcontent-%COMP%] main[_ngcontent-%COMP%]{display:flex;width:100%;margin-left:auto;margin-right:auto;max-width:var(--ng-doc-app-max-width);padding:var(--ng-doc-main-padding);--ng-doc-sidenav-top: var(--ng-doc-navbar-height);--ng-doc-sidenav-width: var(--ng-doc-sidebar-width);--ng-doc-sidenav-content-padding: var(--ng-doc-page-padding)}[_nghost-%COMP%] .ng-doc-root-wrapper[_ngcontent-%COMP%] footer[_ngcontent-%COMP%]{margin-top:auto}[_nghost-%COMP%] .ng-doc-root-wrapper[_ngcontent-%COMP%] .ng-doc-header[_ngcontent-%COMP%]{position:fixed;top:0;height:var(--ng-doc-navbar-height);width:100%;z-index:15}"],changeDetection:0})}};return e=ce([pe()],e),e})();He();He();var bi=ct(fn(),1);var rl=(()=>{let e=class Ci{constructor(t,o,i){this.elementRef=t,this.router=o,this.renderer=i,this.link="",this.activeClass=[],this.matchOptions={fragment:"exact",paths:"subset",queryParams:"exact",matrixParams:"exact"},this.router.events.pipe(Ce(r=>r instanceof An),je(()=>this.router.isActive(this.link,this.matchOptions)),wn(),Ie(this)).subscribe(r=>{r?(0,bi.asArray)(this.activeClass).forEach(s=>this.renderer.addClass(this.elementRef.nativeElement,s)):(0,bi.asArray)(this.activeClass).forEach(s=>this.renderer.removeClass(this.elementRef.nativeElement,s))})}static{this.\u0275fac=function(o){return new(o||Ci)(ee(ue),ee(Ut),ee(Tt))}}static{this.\u0275dir=xe({type:Ci,selectors:[["","ngDocRouteActive",""]],inputs:{link:[0,"ngDocRouteActive","link"],activeClass:"activeClass",matchOptions:"matchOptions"},standalone:!0})}};return e=ce([pe(),de("design:paramtypes",[ue,Ut,Tt])],e),e})();var ig=["*"];function rg(e,n){e&1&&P(0,"ng-doc-dot")}function sg(e,n){if(e&1&&P(0,"ng-doc-icon",8),e&2){let t=x();y("ngDocRotator",t.expanded)}}function ag(e,n){if(e&1&&(K(0),j(1),G()),e&2){let t=n.polymorpheusOutlet;b(),Pe(t)}}function cg(e,n){if(e&1&&(C(0,"div",9),oe(1),T(2,ag,2,1,"ng-container",10),D()),e&2){let t=x();b(2),y("polymorpheusOutlet",t.content)}}var lg=e=>[e];function dg(e,n){if(e&1&&(C(0,"ng-doc-tag",2),j(1),D()),e&2){let t=n.$implicit;y("color",t.type||"success"),b(),Pe(t.text)}}var ug=e=>({item:e,root:!0}),pg=e=>({item:e,root:!1});function gg(e,n){e&1&&Ve(0)}function fg(e,n){if(e&1&&(K(0),T(1,gg,1,0,"ng-container",5),G()),e&2){let t=n.$implicit;x();let o=Q(5);b(),y("ngTemplateOutlet",o)("ngTemplateOutletContext",On(2,ug,t))}}function mg(e,n){if(e&1&&(P(0,"ng-doc-sidebar-category",8),ie(1,"bind"),ie(2,"execute")),e&2){x();let t=Q(3),o=x(),i=o.item,r=o.root,s=x();y("category",i)("expandable",!!(i!=null&&i.expandable))("expanded",!!(i!=null&&i.expanded)||!(i!=null&&i.expandable)||Fe(2,8,Fe(1,5,s.matchRoute,s),i.route))("isRoot",!!r)("content",t)}}function hg(e,n){e&1&&Ve(0)}function yg(e,n){if(e&1&&(K(0),T(1,hg,1,0,"ng-container",5),G()),e&2){let t=n.$implicit;x(4);let o=Q(5);b(),y("ngTemplateOutlet",o)("ngTemplateOutletContext",On(2,pg,t))}}function _g(e,n){if(e&1&&(T(0,yg,2,4,"ng-container",4),ie(1,"bind"),ie(2,"execute")),e&2){let t=x(2).item,o=x();y("ngForOf",Fe(2,4,Fe(1,1,o.getNavigation,o),t))}}function vg(e,n){if(e&1&&(K(0),T(1,mg,3,11,"ng-doc-sidebar-category",7)(2,_g,3,7,"ng-template",null,2,te),G()),e&2){let t=x().item;b(),y("ngIf",!t.hidden)}}function bg(e,n){if(e&1&&P(0,"ng-doc-sidebar-item",10),e&2){let t=x(2).item;y("item",t)}}function Cg(e,n){if(e&1&&T(0,bg,1,1,"ng-doc-sidebar-item",9),e&2){let t=x().item;y("ngIf",!t.hidden)}}function Dg(e,n){if(e&1&&T(0,vg,4,1,"ng-container",6)(1,Cg,1,1,"ng-template",null,1,te),e&2){let t=n.item,o=Q(2);y("ngIf",t.children==null?null:t.children.length)("ngIfElse",o)}}var Sg=(()=>{let e=class Di{constructor(){this.isRoot=!1,this.content="",this.expandable=!0,this.expanded=!0,this.location=B(Fo),this.changeDetectorRef=B(he),this.location.onUrlChange(()=>{this.location.path().includes(this.category.route??"",0)&&this.expand()})}toggle(){this.expanded?this.collapse():this.expand()}expand(){this.category?.expandable&&(this.expanded=!0,this.changeDetectorRef.markForCheck())}collapse(){this.category?.expandable&&(this.expanded=!1,this.changeDetectorRef.markForCheck())}static{this.\u0275fac=function(o){return new(o||Di)}}static{this.\u0275cmp=A({type:Di,selectors:[["ng-doc-sidebar-category"]],hostVars:2,hostBindings:function(o,i){o&2&&ne("data-ng-doc-is-root",i.isRoot)("data-ng-doc-expandable",i.expandable)},inputs:{category:"category",isRoot:"isRoot",content:"content",expandable:"expandable",expanded:"expanded"},standalone:!0,features:[R],ngContentSelectors:ig,decls:10,vars:6,consts:[["contentTemplate",""],[1,"ng-doc-sidebar-category-wrapper"],[1,"ng-doc-sidebar-category-button",3,"click"],["activeClass","active",1,"ng-doc-sidebar-category",3,"ngDocRouteActive"],[4,"ngIf"],["ng-doc-text",""],["icon","chevron-right","ngDocTextLeft","",3,"ngDocRotator",4,"ngIf"],[3,"expanded","content"],["icon","chevron-right","ngDocTextLeft","",3,"ngDocRotator"],[1,"ng-doc-sidebar-category-children"],[4,"polymorpheusOutlet"]],template:function(o,i){if(o&1){let r=Re();me(),C(0,"div",1)(1,"div",2),Z("click",function(){return we(r),Ee(i.toggle())}),C(2,"div",3),T(3,rg,1,0,"ng-doc-dot",4),C(4,"span",5),T(5,sg,1,1,"ng-doc-icon",6),j(6),D()()(),P(7,"ng-doc-expander",7),T(8,cg,3,1,"ng-template",null,0,te),D()}if(o&2){let r=Q(9);b(2),y("ngDocRouteActive",i.category.route),b(),y("ngIf",!i.expandable),b(2),y("ngIf",i.category.expandable),b(),ge(" ",i.category.title," "),b(),y("expanded",i.expanded)("content",r)}},dependencies:[rl,ye,pi,Ye,re,jn,wc,ws,qe,ot],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;--ng-doc-sidebar-category-indent: calc( var(--ng-doc-sidebar-item-indent) + calc(var(--ng-doc-base-gutter) * 2) );--ng-doc-icon-color: var(--ng-doc-text)}[data-ng-doc-expandable=false][_nghost-%COMP%] .ng-doc-sidebar-category-button[_ngcontent-%COMP%]{padding:var(--ng-doc-sidebar-vetical-padding) var(--ng-doc-base-gutter) var(--ng-doc-sidebar-vetical-padding) var(--ng-doc-sidebar-item-indent)}[data-ng-doc-expandable=true][_nghost-%COMP%] .ng-doc-sidebar-category-button[_ngcontent-%COMP%]{padding:var(--ng-doc-sidebar-vetical-padding) var(--ng-doc-base-gutter) var(--ng-doc-sidebar-vetical-padding) var(--ng-doc-sidebar-item-indent);cursor:pointer;border-radius:var(--ng-doc-base-gutter)}[data-ng-doc-expandable=true][_nghost-%COMP%] .ng-doc-sidebar-category-button[_ngcontent-%COMP%]:hover{background-color:var(--ng-doc-base-1)}[_nghost-%COMP%] .ng-doc-sidebar-category-button[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] .ng-doc-sidebar-category-button[_ngcontent-%COMP%] .ng-doc-sidebar-category[_ngcontent-%COMP%]{display:flex;align-items:center;--ng-doc-dot-background: var(--ng-doc-base-4);--ng-doc-text: var(--ng-doc-heading-color)}[_nghost-%COMP%] .ng-doc-sidebar-category-button[_ngcontent-%COMP%] .ng-doc-sidebar-category[_ngcontent-%COMP%] ng-doc-dot[_ngcontent-%COMP%]{margin-right:calc(var(--ng-doc-base-gutter) * 2)}[_nghost-%COMP%] .ng-doc-sidebar-category-button[_ngcontent-%COMP%] .ng-doc-sidebar-category.active[_ngcontent-%COMP%]{--ng-doc-font-weight: 600;--ng-doc-dot-background: var(--ng-doc-primary)}[_nghost-%COMP%] .ng-doc-sidebar-category-button[_ngcontent-%COMP%] span[ng-doc-text][_ngcontent-%COMP%]{flex-shrink:0;margin-right:var(--ng-doc-base-gutter)}[_nghost-%COMP%] .ng-doc-sidebar-category-children[_ngcontent-%COMP%]{padding-bottom:calc(var(--ng-doc-base-gutter) * 2);--ng-doc-sidebar-item-indent: var(--ng-doc-sidebar-category-indent)}"],changeDetection:0})}};return e=ce([pe(),de("design:paramtypes",[])],e),e})(),Tg=(()=>{class e{constructor(){this.item=lt.required(),this.statuses=Mn(()=>(this.item().metadata?.tags.status??[]).map(o=>{let[i,r]=o.split(/\s+(.+)/);return{type:i.replace(/^:/,""),text:r}}))}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=A({type:e,selectors:[["ng-doc-sidebar-item"]],inputs:{item:[1,"item"]},standalone:!0,features:[R],decls:6,vars:5,consts:[["routerLinkActive","active",1,"ng-doc-sidebar-link",3,"routerLink"],["ng-doc-text","",3,"absoluteContent"],["size","small","mod","light",3,"color"]],template:function(o,i){o&1&&(C(0,"a",0),P(1,"ng-doc-dot"),C(2,"span",1),j(3),xr(4,dg,2,2,"ng-doc-tag",2,Tr),D()()),o&2&&(y("routerLink",On(3,lg,i.item().route)),b(2),y("absoluteContent",!0),b(),ge(" ",i.item().title," "),b(),wr(i.statuses()))},dependencies:[Wr,mt,pi,Ye,rn],styles:["[_nghost-%COMP%]{display:block}.ng-doc-sidebar-link[_ngcontent-%COMP%]{font-family:var(--ng-doc-heading-font-family);font-variant:no-contextual;color:var(--ng-doc-text);line-height:var(--ng-doc-line-height);font-size:var(--ng-doc-font-size);font-weight:var(--ng-doc-font-weight);display:flex;align-items:center;gap:var(--ng-doc-base-gutter);padding:var(--ng-doc-sidebar-vetical-padding) var(--ng-doc-sidebar-horizontal-padding) var(--ng-doc-sidebar-vetical-padding) var(--ng-doc-sidebar-item-indent);text-decoration:inherit;cursor:pointer;border-radius:var(--ng-doc-base-gutter);--ng-doc-icon-color: var(--ng-doc-text);--ng-doc-dot-background: var(--ng-doc-base-4);--ng-doc-font-weight: 400}.ng-doc-sidebar-link[_ngcontent-%COMP%] ng-doc-dot[_ngcontent-%COMP%]{margin-right:var(--ng-doc-base-gutter);z-index:1}.ng-doc-sidebar-link[_ngcontent-%COMP%]:hover:not(.active){background:var(--ng-doc-base-1)}.ng-doc-sidebar-link.active[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--ng-doc-primary) 7%,transparent);--ng-doc-text: var(--ng-doc-primary);--ng-doc-dot-background: var(--ng-doc-primary)}.ng-doc-sidebar-link.active[_ngcontent-%COMP%] ng-doc-dot[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_animation .5s ease-out}@keyframes _ngcontent-%COMP%_animation{0%{transform:scale(1)}50%{transform:scale(2)}to{transform:scale(1)}}.ng-doc-sidebar-link[_ngcontent-%COMP%] ng-doc-tag[_ngcontent-%COMP%]{vertical-align:middle;margin-left:var(--ng-doc-base-gutter);font-weight:600}"],changeDetection:0})}}return e})(),sl=(()=>{class e{constructor(){this.location=B(Fo),this.context=B(qn)}getNavigation(t){return t?t.children??[]:this.context.navigation}matchRoute(t){return this.location.path().includes(t??"",0)}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=A({type:e,selectors:[["ng-doc-sidebar"]],standalone:!0,features:[R],decls:6,vars:6,consts:[["sidebarTemplate",""],["itemTemplate",""],["categoryContent",""],[1,"ng-doc-side-bar-wrapper"],[4,"ngFor","ngForOf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf","ngIfElse"],[3,"category","expandable","expanded","isRoot","content",4,"ngIf"],[3,"category","expandable","expanded","isRoot","content"],[3,"item",4,"ngIf"],[3,"item"]],template:function(o,i){o&1&&(C(0,"div",3),T(1,fg,2,4,"ng-container",4),ie(2,"bind"),ie(3,"execute"),T(4,Dg,3,2,"ng-template",null,0,te),D()),o&2&&(b(),y("ngForOf",tt(3,4,Fe(2,1,i.getNavigation,i))))},dependencies:[Oe,jt,ye,Sg,Tg,ht,Ms],styles:["[_nghost-%COMP%]{display:block;height:calc(100vh - var(--ng-doc-navbar-height));width:100%;overflow:hidden;padding:var(--ng-doc-sidebar-padding) 0;background:var(--ng-doc-sidebar-background);box-shadow:var(--ng-doc-sidebar-shadow);--ng-doc-sidebar-category-indent: var(--ng-doc-sidebar-horizontal-padding);--ng-doc-sidebar-item-indent: var(--ng-doc-sidebar-horizontal-padding)}[_nghost-%COMP%] .ng-doc-side-bar-wrapper[_ngcontent-%COMP%]{position:relative;overflow:auto;max-height:100%}"],changeDetection:0})}}return e})();var al=[Vs,Xc,Zc,Kc,Us,el,Gc,Qc,Yc,tl,nl,Jc];var cl={breadcrumbs:Is,navigation:ol,toc:Hs};function ll(e){return[{provide:Ro,multi:!0,deps:[Fr],useFactory:n=>()=>n.setOffset([0,120])},{provide:Ro,multi:!0,useFactory:()=>{let n=B(qs);return()=>n.initialize(e?.shiki)}},...Oc(e?.uiKit)]}function dl(e){return[{provide:Fs,useValue:e}]}function ul(e,...n){return{provide:yt,useFactory:()=>new e(...n)}}var co=class e{copyright="Made with \u2764\uFE0F by louiiuol";static \u0275fac=function(t){return new(t||e)};static \u0275cmp=A({type:e,selectors:[["lib-footer"]],hostAttrs:[1,"w-full","flex","items-center","justify-center","bg-white","text-blue-800","px-12","py-8"],standalone:!0,features:[R],decls:2,vars:1,template:function(t,o){t&1&&(C(0,"p"),j(1),D()),t&2&&(b(),Pe(o.copyright))},encapsulation:2,changeDetection:0})};var an=class e{get(n){let t=localStorage.getItem(n);return t?JSON.parse(t):null}set({key:n,value:t}){typeof t=="object"&&(t=JSON.stringify(t)),localStorage.setItem(n,t)}remove(n){localStorage.removeItem(n)}check(n){return localStorage.getItem(n)!==null}static \u0275fac=function(t){return new(t||e)};static \u0275prov=De({token:e,factory:e.\u0275fac,providedIn:"root"})};var _e=[];for(lo=0;lo<256;++lo)_e.push((lo+256).toString(16).slice(1));var lo;function pl(e,n=0){return(_e[e[n+0]]+_e[e[n+1]]+_e[e[n+2]]+_e[e[n+3]]+"-"+_e[e[n+4]]+_e[e[n+5]]+"-"+_e[e[n+6]]+_e[e[n+7]]+"-"+_e[e[n+8]]+_e[e[n+9]]+"-"+_e[e[n+10]]+_e[e[n+11]]+_e[e[n+12]]+_e[e[n+13]]+_e[e[n+14]]+_e[e[n+15]]).toLowerCase()}var uo,wg=new Uint8Array(16);function Si(){if(!uo&&(uo=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!uo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return uo(wg)}var Eg=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ti={randomUUID:Eg};function Ng(e,n,t){if(Ti.randomUUID&&!n&&!e)return Ti.randomUUID();e=e||{};var o=e.random||(e.rng||Si)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,n){t=t||0;for(var i=0;i<16;++i)n[t+i]=o[i];return n}return pl(o)}var xi=Ng;var po=class e{storage=B(an);localStorageKey="notifications-center";notifications=Ge(this.getLocalNotifications());notify({summary:n,details:t,severity:o="info",life:i=4e3}){let r=xi();this.notifications().push({uuid:r,severity:o,summary:n,details:t,seen:!1,date:new Date}),this.storage.set({key:this.localStorageKey,value:this.notifications()}),setTimeout(()=>this.removeNotification(r),i)}success=n=>this.notify(Ct(J({},n),{severity:"success"}));error=n=>this.notify(Ct(J({},n),{severity:"error"}));warn=n=>this.notify(Ct(J({},n),{severity:"warn"}));getNotifications(){return this.notifications}seenNotification(n){let t=this.notifications().map(o=>(o.uuid===n&&(o.seen=!0),o));this.notifications.set(t),this.storage.set({key:this.localStorageKey,value:t})}clearAllNotifications(){confirm("Are you sure you want to delete all notifications?")&&(this.notifications.set([]),this.storage.remove(this.localStorageKey))}removeNotification(n){let t=this.notifications().filter(o=>o.uuid!==n);this.notifications.set(t),this.storage.set({key:this.localStorageKey,value:t})}getLocalNotifications(){let n=this.storage.get(this.localStorageKey);return n||[]}static \u0275fac=function(t){return new(t||e)};static \u0275prov=De({token:e,factory:e.\u0275fac,providedIn:"root"})};var go=class e{notifier=B(po);storage=B(an);appName="ngx lib";ngAfterViewChecked(){this.greetings()}greetings(){this.storage.check("onboarded")||(this.notifier.notify({summary:"Welcome !",details:"Welcome to this library! Hope it will help you in your project. Enjoy !\u2728"}),this.storage.set({key:"onboarded",value:String(!0)}))}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=A({type:e,selectors:[["lib-root"]],hostAttrs:[1,"bg-primary-100"],standalone:!0,features:[R],decls:8,vars:1,consts:[["ngDocNavbarLeft","",1,"text-2xl","text-primary-500","flex","items-center","gap-2"],["name","construction",1,"cursor-pointer"]],template:function(t,o){t&1&&(C(0,"ng-doc-root")(1,"ng-doc-navbar")(2,"h3",0),P(3,"lib-icon-material",1),j(4),D()(),P(5,"ng-doc-sidebar")(6,"router-outlet")(7,"lib-footer"),D()),t&2&&(b(4),ge(" ",o.appName," "))},dependencies:[qr,il,Wc,sl,Ks,co],encapsulation:2,changeDetection:0})};function gl(e){return new H(3e3,!1)}function Pg(){return new H(3100,!1)}function Og(){return new H(3101,!1)}function Mg(e){return new H(3001,!1)}function Ig(e){return new H(3003,!1)}function kg(e){return new H(3004,!1)}function Ag(e,n){return new H(3005,!1)}function Rg(){return new H(3006,!1)}function Fg(){return new H(3007,!1)}function Lg(e,n){return new H(3008,!1)}function zg(e){return new H(3002,!1)}function Bg(e,n,t,o,i){return new H(3010,!1)}function jg(){return new H(3011,!1)}function Vg(){return new H(3012,!1)}function Ug(){return new H(3200,!1)}function qg(){return new H(3202,!1)}function Wg(){return new H(3013,!1)}function $g(e){return new H(3014,!1)}function Hg(e){return new H(3015,!1)}function Kg(e){return new H(3016,!1)}function Gg(e,n){return new H(3404,!1)}function Qg(e){return new H(3502,!1)}function Yg(e){return new H(3503,!1)}function Zg(){return new H(3300,!1)}function Xg(e){return new H(3504,!1)}function Jg(e){return new H(3301,!1)}function ef(e,n){return new H(3302,!1)}function tf(e){return new H(3303,!1)}function nf(e,n){return new H(3400,!1)}function of(e){return new H(3401,!1)}function rf(e){return new H(3402,!1)}function sf(e,n){return new H(3505,!1)}function vt(e){switch(e.length){case 0:return new qt;case 1:return e[0];default:return new Bo(e)}}function El(e,n,t=new Map,o=new Map){let i=[],r=[],s=-1,a=null;if(n.forEach(c=>{let l=c.get("offset"),u=l==s,d=u&&a||new Map;c.forEach((g,p)=>{let f=p,m=g;if(p!=="offset")switch(f=e.normalizePropertyName(f,i),m){case Ln:m=t.get(p);break;case nt:m=o.get(p);break;default:m=e.normalizeStyleValue(p,f,m,i);break}d.set(f,m)}),u||r.push(d),a=d,s=l}),i.length)throw Qg(i);return r}function Gi(e,n,t,o){switch(n){case"start":e.onStart(()=>o(t&&wi(t,"start",e)));break;case"done":e.onDone(()=>o(t&&wi(t,"done",e)));break;case"destroy":e.onDestroy(()=>o(t&&wi(t,"destroy",e)));break}}function wi(e,n,t){let o=t.totalTime,i=!!t.disabled,r=Qi(e.element,e.triggerName,e.fromState,e.toState,n||e.phaseName,o??e.totalTime,i),s=e._data;return s!=null&&(r._data=s),r}function Qi(e,n,t,o,i="",r=0,s){return{element:e,triggerName:n,fromState:t,toState:o,phaseName:i,totalTime:r,disabled:!!s}}function ze(e,n,t){let o=e.get(n);return o||e.set(n,o=t),o}function fl(e){let n=e.indexOf(":"),t=e.substring(1,n),o=e.slice(n+1);return[t,o]}var af=typeof document>"u"?null:document.documentElement;function Yi(e){let n=e.parentNode||e.host||null;return n===af?null:n}function cf(e){return e.substring(1,6)=="ebkit"}var Mt=null,ml=!1;function lf(e){Mt||(Mt=df()||{},ml=Mt.style?"WebkitAppearance"in Mt.style:!1);let n=!0;return Mt.style&&!cf(e)&&(n=e in Mt.style,!n&&ml&&(n="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in Mt.style)),n}function df(){return typeof document<"u"?document.body:null}function Nl(e,n){for(;n;){if(n===e)return!0;n=Yi(n)}return!1}function Pl(e,n,t){if(t)return Array.from(e.querySelectorAll(n));let o=e.querySelector(n);return o?[o]:[]}var Zi=(()=>{class e{validateStyleProperty(t){return lf(t)}containsElement(t,o){return Nl(t,o)}getParentElement(t){return Yi(t)}query(t,o,i){return Pl(t,o,i)}computeStyle(t,o,i){return i||""}animate(t,o,i,r,s,a=[],c){return new qt(i,r)}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275prov=De({token:e,factory:e.\u0275fac})}}return e})(),At=class{static{this.NOOP=new Zi}},Rt=class{};var uf=1e3,Ol="{{",pf="}}",Ml="ng-enter",Ii="ng-leave",fo="ng-trigger",vo=".ng-trigger",hl="ng-animating",ki=".ng-animating";function gt(e){if(typeof e=="number")return e;let n=e.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:Ai(parseFloat(n[1]),n[2])}function Ai(e,n){switch(n){case"s":return e*uf;default:return e}}function bo(e,n,t){return e.hasOwnProperty("duration")?e:gf(e,n,t)}function gf(e,n,t){let o=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,r=0,s="";if(typeof e=="string"){let a=e.match(o);if(a===null)return n.push(gl(e)),{duration:0,delay:0,easing:""};i=Ai(parseFloat(a[1]),a[2]);let c=a[3];c!=null&&(r=Ai(parseFloat(c),a[4]));let l=a[5];l&&(s=l)}else i=e;if(!t){let a=!1,c=n.length;i<0&&(n.push(Pg()),a=!0),r<0&&(n.push(Og()),a=!0),a&&n.splice(c,0,gl(e))}return{duration:i,delay:r,easing:s}}function ff(e){return e.length?e[0]instanceof Map?e:e.map(n=>new Map(Object.entries(n))):[]}function st(e,n,t){n.forEach((o,i)=>{let r=Xi(i);t&&!t.has(i)&&t.set(i,e.style[r]),e.style[r]=o})}function kt(e,n){n.forEach((t,o)=>{let i=Xi(o);e.style[i]=""})}function _n(e){return Array.isArray(e)?e.length==1?e[0]:Xr(e):e}function mf(e,n,t){let o=n.params||{},i=Il(e);i.length&&i.forEach(r=>{o.hasOwnProperty(r)||t.push(Mg(r))})}var Ri=new RegExp(`${Ol}\\s*(.+?)\\s*${pf}`,"g");function Il(e){let n=[];if(typeof e=="string"){let t;for(;t=Ri.exec(e);)n.push(t[1]);Ri.lastIndex=0}return n}function bn(e,n,t){let o=`${e}`,i=o.replace(Ri,(r,s)=>{let a=n[s];return a==null&&(t.push(Ig(s)),a=""),a.toString()});return i==o?e:i}var hf=/-+([a-z0-9])/g;function Xi(e){return e.replace(hf,(...n)=>n[1].toUpperCase())}function yf(e,n){return e===0||n===0}function _f(e,n,t){if(t.size&&n.length){let o=n[0],i=[];if(t.forEach((r,s)=>{o.has(s)||i.push(s),o.set(s,r)}),i.length)for(let r=1;rs.set(a,Ji(e,a)))}}return n}function Le(e,n,t){switch(n.type){case $.Trigger:return e.visitTrigger(n,t);case $.State:return e.visitState(n,t);case $.Transition:return e.visitTransition(n,t);case $.Sequence:return e.visitSequence(n,t);case $.Group:return e.visitGroup(n,t);case $.Animate:return e.visitAnimate(n,t);case $.Keyframes:return e.visitKeyframes(n,t);case $.Style:return e.visitStyle(n,t);case $.Reference:return e.visitReference(n,t);case $.AnimateChild:return e.visitAnimateChild(n,t);case $.AnimateRef:return e.visitAnimateRef(n,t);case $.Query:return e.visitQuery(n,t);case $.Stagger:return e.visitStagger(n,t);default:throw kg(n.type)}}function Ji(e,n){return window.getComputedStyle(e)[n]}var vf=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Co=class extends Rt{normalizePropertyName(n,t){return Xi(n)}normalizeStyleValue(n,t,o,i){let r="",s=o.toString().trim();if(vf.has(t)&&o!==0&&o!=="0")if(typeof o=="number")r="px";else{let a=o.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&i.push(Ag(n,o))}return s+r}};var Do="*";function bf(e,n){let t=[];return typeof e=="string"?e.split(/\s*,\s*/).forEach(o=>Cf(o,t,n)):t.push(e),t}function Cf(e,n,t){if(e[0]==":"){let c=Df(e,t);if(typeof c=="function"){n.push(c);return}e=c}let o=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(o==null||o.length<4)return t.push(Hg(e)),n;let i=o[1],r=o[2],s=o[3];n.push(yl(i,s));let a=i==Do&&s==Do;r[0]=="<"&&!a&&n.push(yl(s,i))}function Df(e,n){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,o)=>parseFloat(o)>parseFloat(t);case":decrement":return(t,o)=>parseFloat(o) *"}}var mo=new Set(["true","1"]),ho=new Set(["false","0"]);function yl(e,n){let t=mo.has(e)||ho.has(e),o=mo.has(n)||ho.has(n);return(i,r)=>{let s=e==Do||e==i,a=n==Do||n==r;return!s&&t&&typeof i=="boolean"&&(s=i?mo.has(e):ho.has(e)),!a&&o&&typeof r=="boolean"&&(a=r?mo.has(n):ho.has(n)),s&&a}}var kl=":self",Sf=new RegExp(`s*${kl}s*,?`,"g");function Al(e,n,t,o){return new Fi(e).build(n,t,o)}var _l="",Fi=class{constructor(n){this._driver=n}build(n,t,o){let i=new Li(t);return this._resetContextStyleTimingState(i),Le(this,_n(n),i)}_resetContextStyleTimingState(n){n.currentQuerySelector=_l,n.collectedStyles=new Map,n.collectedStyles.set(_l,new Map),n.currentTime=0}visitTrigger(n,t){let o=t.queryCount=0,i=t.depCount=0,r=[],s=[];return n.name.charAt(0)=="@"&&t.errors.push(Rg()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==$.State){let c=a,l=c.name;l.toString().split(/\s*,\s*/).forEach(u=>{c.name=u,r.push(this.visitState(c,t))}),c.name=l}else if(a.type==$.Transition){let c=this.visitTransition(a,t);o+=c.queryCount,i+=c.depCount,s.push(c)}else t.errors.push(Fg())}),{type:$.Trigger,name:n.name,states:r,transitions:s,queryCount:o,depCount:i,options:null}}visitState(n,t){let o=this.visitStyle(n.styles,t),i=n.options&&n.options.params||null;if(o.containsDynamicStyles){let r=new Set,s=i||{};o.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{Il(c).forEach(l=>{s.hasOwnProperty(l)||r.add(l)})})}),r.size&&t.errors.push(Lg(n.name,[...r.values()]))}return{type:$.State,name:n.name,style:o,options:i?{params:i}:null}}visitTransition(n,t){t.queryCount=0,t.depCount=0;let o=Le(this,_n(n.animation),t),i=bf(n.expr,t.errors);return{type:$.Transition,matchers:i,animation:o,queryCount:t.queryCount,depCount:t.depCount,options:It(n.options)}}visitSequence(n,t){return{type:$.Sequence,steps:n.steps.map(o=>Le(this,o,t)),options:It(n.options)}}visitGroup(n,t){let o=t.currentTime,i=0,r=n.steps.map(s=>{t.currentTime=o;let a=Le(this,s,t);return i=Math.max(i,t.currentTime),a});return t.currentTime=i,{type:$.Group,steps:r,options:It(n.options)}}visitAnimate(n,t){let o=Ef(n.timings,t.errors);t.currentAnimateTimings=o;let i,r=n.styles?n.styles:Me({});if(r.type==$.Keyframes)i=this.visitKeyframes(r,t);else{let s=n.styles,a=!1;if(!s){a=!0;let l={};o.easing&&(l.easing=o.easing),s=Me(l)}t.currentTime+=o.duration+o.delay;let c=this.visitStyle(s,t);c.isEmptyStep=a,i=c}return t.currentAnimateTimings=null,{type:$.Animate,timings:o,style:i,options:null}}visitStyle(n,t){let o=this._makeStyleAst(n,t);return this._validateStyleAst(o,t),o}_makeStyleAst(n,t){let o=[],i=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of i)typeof a=="string"?a===nt?o.push(a):t.errors.push(zg(a)):o.push(new Map(Object.entries(a)));let r=!1,s=null;return o.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!r)){for(let c of a.values())if(c.toString().indexOf(Ol)>=0){r=!0;break}}}),{type:$.Style,styles:o,easing:s,offset:n.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(n,t){let o=t.currentAnimateTimings,i=t.currentTime,r=t.currentTime;o&&r>0&&(r-=o.duration+o.delay),n.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,c)=>{let l=t.collectedStyles.get(t.currentQuerySelector),u=l.get(c),d=!0;u&&(r!=i&&r>=u.startTime&&i<=u.endTime&&(t.errors.push(Bg(c,u.startTime,u.endTime,r,i)),d=!1),r=u.startTime),d&&l.set(c,{startTime:r,endTime:i}),t.options&&mf(a,t.options,t.errors)})})}visitKeyframes(n,t){let o={type:$.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(jg()),o;let i=1,r=0,s=[],a=!1,c=!1,l=0,u=n.steps.map(h=>{let v=this._makeStyleAst(h,t),w=v.offset!=null?v.offset:wf(v.styles),N=0;return w!=null&&(r++,N=v.offset=w),c=c||N<0||N>1,a=a||N0&&r{let w=g>0?v==p?1:g*v:s[v],N=w*_;t.currentTime=f+m.delay+N,m.duration=N,this._validateStyleAst(h,t),h.offset=w,o.styles.push(h)}),o}visitReference(n,t){return{type:$.Reference,animation:Le(this,_n(n.animation),t),options:It(n.options)}}visitAnimateChild(n,t){return t.depCount++,{type:$.AnimateChild,options:It(n.options)}}visitAnimateRef(n,t){return{type:$.AnimateRef,animation:this.visitReference(n.animation,t),options:It(n.options)}}visitQuery(n,t){let o=t.currentQuerySelector,i=n.options||{};t.queryCount++,t.currentQuery=n;let[r,s]=Tf(n.selector);t.currentQuerySelector=o.length?o+" "+r:r,ze(t.collectedStyles,t.currentQuerySelector,new Map);let a=Le(this,_n(n.animation),t);return t.currentQuery=null,t.currentQuerySelector=o,{type:$.Query,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:It(n.options)}}visitStagger(n,t){t.currentQuery||t.errors.push(Wg());let o=n.timings==="full"?{duration:0,delay:0,easing:"full"}:bo(n.timings,t.errors,!0);return{type:$.Stagger,animation:Le(this,_n(n.animation),t),timings:o,options:null}}};function Tf(e){let n=!!e.split(/\s*,\s*/).find(t=>t==kl);return n&&(e=e.replace(Sf,"")),e=e.replace(/@\*/g,vo).replace(/@\w+/g,t=>vo+"-"+t.slice(1)).replace(/:animating/g,ki),[e,n]}function xf(e){return e?J({},e):null}var Li=class{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function wf(e){if(typeof e=="string")return null;let n=null;if(Array.isArray(e))e.forEach(t=>{if(t instanceof Map&&t.has("offset")){let o=t;n=parseFloat(o.get("offset")),o.delete("offset")}});else if(e instanceof Map&&e.has("offset")){let t=e;n=parseFloat(t.get("offset")),t.delete("offset")}return n}function Ef(e,n){if(e.hasOwnProperty("duration"))return e;if(typeof e=="number"){let r=bo(e,n).duration;return Ei(r,0,"")}let t=e;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=Ei(0,0,"");return r.dynamic=!0,r.strValue=t,r}let i=bo(t,n);return Ei(i.duration,i.delay,i.easing)}function It(e){return e?(e=J({},e),e.params&&(e.params=xf(e.params))):e={},e}function Ei(e,n,t){return{duration:e,delay:n,easing:t}}function er(e,n,t,o,i,r,s=null,a=!1){return{type:1,element:e,keyframes:n,preStyleProps:t,postStyleProps:o,duration:i,delay:r,totalTime:i+r,easing:s,subTimeline:a}}var Cn=class{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,t){let o=this._map.get(n);o||this._map.set(n,o=[]),o.push(...t)}has(n){return this._map.has(n)}clear(){this._map.clear()}},Nf=1,Pf=":enter",Of=new RegExp(Pf,"g"),Mf=":leave",If=new RegExp(Mf,"g");function Rl(e,n,t,o,i,r=new Map,s=new Map,a,c,l=[]){return new zi().buildKeyframes(e,n,t,o,i,r,s,a,c,l)}var zi=class{buildKeyframes(n,t,o,i,r,s,a,c,l,u=[]){l=l||new Cn;let d=new Bi(n,t,l,i,r,u,[]);d.options=c;let g=c.delay?gt(c.delay):0;d.currentTimeline.delayNextStep(g),d.currentTimeline.setStyles([s],null,d.errors,c),Le(this,o,d);let p=d.timelines.filter(f=>f.containsAnimation());if(p.length&&a.size){let f;for(let m=p.length-1;m>=0;m--){let _=p[m];if(_.element===t){f=_;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,d.errors,c)}return p.length?p.map(f=>f.buildKeyframes()):[er(t,[],[],[],0,g,"",!1)]}visitTrigger(n,t){}visitState(n,t){}visitTransition(n,t){}visitAnimateChild(n,t){let o=t.subInstructions.get(t.element);if(o){let i=t.createSubContext(n.options),r=t.currentTimeline.currentTime,s=this._visitSubInstructions(o,i,i.options);r!=s&&t.transformIntoNewTimeline(s)}t.previousNode=n}visitAnimateRef(n,t){let o=t.createSubContext(n.options);o.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],t,o),this.visitReference(n.animation,o),t.transformIntoNewTimeline(o.currentTimeline.currentTime),t.previousNode=n}_applyAnimationRefDelays(n,t,o){for(let i of n){let r=i?.delay;if(r){let s=typeof r=="number"?r:gt(bn(r,i?.params??{},t.errors));o.delayNextStep(s)}}}_visitSubInstructions(n,t,o){let r=t.currentTimeline.currentTime,s=o.duration!=null?gt(o.duration):null,a=o.delay!=null?gt(o.delay):null;return s!==0&&n.forEach(c=>{let l=t.appendInstructionToTimeline(c,s,a);r=Math.max(r,l.duration+l.delay)}),r}visitReference(n,t){t.updateOptions(n.options,!0),Le(this,n.animation,t),t.previousNode=n}visitSequence(n,t){let o=t.subContextCount,i=t,r=n.options;if(r&&(r.params||r.delay)&&(i=t.createSubContext(r),i.transformIntoNewTimeline(),r.delay!=null)){i.previousNode.type==$.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=So);let s=gt(r.delay);i.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>Le(this,s,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>o&&i.transformIntoNewTimeline()),t.previousNode=n}visitGroup(n,t){let o=[],i=t.currentTimeline.currentTime,r=n.options&&n.options.delay?gt(n.options.delay):0;n.steps.forEach(s=>{let a=t.createSubContext(n.options);r&&a.delayNextStep(r),Le(this,s,a),i=Math.max(i,a.currentTimeline.currentTime),o.push(a.currentTimeline)}),o.forEach(s=>t.currentTimeline.mergeTimelineCollectedStyles(s)),t.transformIntoNewTimeline(i),t.previousNode=n}_visitTiming(n,t){if(n.dynamic){let o=n.strValue,i=t.params?bn(o,t.params,t.errors):o;return bo(i,t.errors)}else return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,t){let o=t.currentAnimateTimings=this._visitTiming(n.timings,t),i=t.currentTimeline;o.delay&&(t.incrementTime(o.delay),i.snapshotCurrentStyles());let r=n.style;r.type==$.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(o.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=n}visitStyle(n,t){let o=t.currentTimeline,i=t.currentAnimateTimings;!i&&o.hasCurrentStyleProperties()&&o.forwardFrame();let r=i&&i.easing||n.easing;n.isEmptyStep?o.applyEmptyStep(r):o.setStyles(n.styles,r,t.errors,t.options),t.previousNode=n}visitKeyframes(n,t){let o=t.currentAnimateTimings,i=t.currentTimeline.duration,r=o.duration,a=t.createSubContext().currentTimeline;a.easing=o.easing,n.styles.forEach(c=>{let l=c.offset||0;a.forwardTime(l*r),a.setStyles(c.styles,c.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(i+r),t.previousNode=n}visitQuery(n,t){let o=t.currentTimeline.currentTime,i=n.options||{},r=i.delay?gt(i.delay):0;r&&(t.previousNode.type===$.Style||o==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=So);let s=o,a=t.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;let c=null;a.forEach((l,u)=>{t.currentQueryIndex=u;let d=t.createSubContext(n.options,l);r&&d.delayNextStep(r),l===t.element&&(c=d.currentTimeline),Le(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe();let g=d.currentTimeline.currentTime;s=Math.max(s,g)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),c&&(t.currentTimeline.mergeTimelineCollectedStyles(c),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=n}visitStagger(n,t){let o=t.parentContext,i=t.currentTimeline,r=n.timings,s=Math.abs(r.duration),a=s*(t.currentQueryTotal-1),c=s*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":c=a-c;break;case"full":c=o.currentStaggerTime;break}let u=t.currentTimeline;c&&u.delayNextStep(c);let d=u.currentTime;Le(this,n.animation,t),t.previousNode=n,o.currentStaggerTime=i.currentTime-d+(i.startTime-o.currentTimeline.startTime)}},So={},Bi=class e{constructor(n,t,o,i,r,s,a,c){this._driver=n,this.element=t,this.subInstructions=o,this._enterClassName=i,this._leaveClassName=r,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=So,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new To(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,t){if(!n)return;let o=n,i=this.options;o.duration!=null&&(i.duration=gt(o.duration)),o.delay!=null&&(i.delay=gt(o.delay));let r=o.params;if(r){let s=i.params;s||(s=this.options.params={}),Object.keys(r).forEach(a=>{(!t||!s.hasOwnProperty(a))&&(s[a]=bn(r[a],s,this.errors))})}}_copyOptions(){let n={};if(this.options){let t=this.options.params;if(t){let o=n.params={};Object.keys(t).forEach(i=>{o[i]=t[i]})}}return n}createSubContext(n=null,t,o){let i=t||this.element,r=new e(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,o||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(n),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(n){return this.previousNode=So,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,t,o){let i={duration:t??n.duration,delay:this.currentTimeline.currentTime+(o??0)+n.delay,easing:""},r=new ji(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,i,n.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,t,o,i,r,s){let a=[];if(i&&a.push(this.element),n.length>0){n=n.replace(Of,"."+this._enterClassName),n=n.replace(If,"."+this._leaveClassName);let c=o!=1,l=this._driver.query(this.element,n,c);o!==0&&(l=o<0?l.slice(l.length+o,l.length):l.slice(0,o)),a.push(...l)}return!r&&a.length==0&&s.push($g(t)),a}},To=class e{constructor(n,t,o,i){this._driver=n,this.element=t,this.startTime=o,this._elementTimelineStylesLookup=i,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+n),t&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,t){return this.applyStylesToKeyframe(),new e(this._driver,n,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Nf,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,t){this._localTimelineStyles.set(n,t),this._globalTimelineStyles.set(n,t),this._styleSummary.set(n,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[t,o]of this._globalTimelineStyles)this._backFill.set(t,o||nt),this._currentKeyframe.set(t,nt);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,t,o,i){t&&this._previousKeyframe.set("easing",t);let r=i&&i.params||{},s=kf(n,this._globalTimelineStyles);for(let[a,c]of s){let l=bn(c,r,o);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??nt),this._updateStyle(a,l)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((n,t)=>{this._currentKeyframe.set(t,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,n)}))}snapshotCurrentStyles(){for(let[n,t]of this._localTimelineStyles)this._pendingStyles.set(n,t),this._updateStyle(n,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let n=[];for(let t in this._currentKeyframe)n.push(t);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((t,o)=>{let i=this._styleSummary.get(o);(!i||t.time>i.time)&&this._updateStyle(o,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let n=new Set,t=new Set,o=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((a,c)=>{let l=new Map([...this._backFill,...a]);l.forEach((u,d)=>{u===Ln?n.add(d):u===nt&&t.add(d)}),o||l.set("offset",c/this.duration),i.push(l)});let r=[...n.values()],s=[...t.values()];if(o){let a=i[0],c=new Map(a);a.set("offset",0),c.set("offset",1),i=[a,c]}return er(this.element,i,r,s,this.duration,this.startTime,this.easing,!1)}},ji=class extends To{constructor(n,t,o,i,r,s,a=!1){super(n,t,s.delay),this.keyframes=o,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:t,duration:o,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],s=o+t,a=t/s,c=new Map(n[0]);c.set("offset",0),r.push(c);let l=new Map(n[0]);l.set("offset",vl(a)),r.push(l);let u=n.length-1;for(let d=1;d<=u;d++){let g=new Map(n[d]),p=g.get("offset"),f=t+p*o;g.set("offset",vl(f/s)),r.push(g)}o=s,t=0,i="",n=r}return er(this.element,n,this.preStyleProps,this.postStyleProps,o,t,i,!0)}};function vl(e,n=3){let t=Math.pow(10,n-1);return Math.round(e*t)/t}function kf(e,n){let t=new Map,o;return e.forEach(i=>{if(i==="*"){o??=n.keys();for(let r of o)t.set(r,nt)}else for(let[r,s]of i)t.set(r,s)}),t}function bl(e,n,t,o,i,r,s,a,c,l,u,d,g){return{type:0,element:e,triggerName:n,isRemovalTransition:i,fromState:t,fromStyles:r,toState:o,toStyles:s,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:d,errors:g}}var Ni={},xo=class{constructor(n,t,o){this._triggerName=n,this.ast=t,this._stateStyles=o}match(n,t,o,i){return Af(this.ast.matchers,n,t,o,i)}buildStyles(n,t,o){let i=this._stateStyles.get("*");return n!==void 0&&(i=this._stateStyles.get(n?.toString())||i),i?i.buildStyles(t,o):new Map}build(n,t,o,i,r,s,a,c,l,u){let d=[],g=this.ast.options&&this.ast.options.params||Ni,p=a&&a.params||Ni,f=this.buildStyles(o,p,d),m=c&&c.params||Ni,_=this.buildStyles(i,m,d),h=new Set,v=new Map,w=new Map,N=i==="void",z={params:Fl(m,g),delay:this.ast.options?.delay},F=u?[]:Rl(n,t,this.ast.animation,r,s,f,_,z,l,d),E=0;return F.forEach(L=>{E=Math.max(L.duration+L.delay,E)}),d.length?bl(t,this._triggerName,o,i,N,f,_,[],[],v,w,E,d):(F.forEach(L=>{let V=L.element,W=ze(v,V,new Set);L.preStyleProps.forEach(Y=>W.add(Y));let fe=ze(w,V,new Set);L.postStyleProps.forEach(Y=>fe.add(Y)),V!==t&&h.add(V)}),bl(t,this._triggerName,o,i,N,f,_,F,[...h.values()],v,w,E))}};function Af(e,n,t,o,i){return e.some(r=>r(n,t,o,i))}function Fl(e,n){let t=J({},n);return Object.entries(e).forEach(([o,i])=>{i!=null&&(t[o]=i)}),t}var Vi=class{constructor(n,t,o){this.styles=n,this.defaultParams=t,this.normalizer=o}buildStyles(n,t){let o=new Map,i=Fl(n,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((s,a)=>{s&&(s=bn(s,i,t));let c=this.normalizer.normalizePropertyName(a,t);s=this.normalizer.normalizeStyleValue(a,c,s,t),o.set(a,s)})}),o}};function Rf(e,n,t){return new Ui(e,n,t)}var Ui=class{constructor(n,t,o){this.name=n,this.ast=t,this._normalizer=o,this.transitionFactories=[],this.states=new Map,t.states.forEach(i=>{let r=i.options&&i.options.params||{};this.states.set(i.name,new Vi(i.style,r,o))}),Cl(this.states,"true","1"),Cl(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new xo(n,i,this.states))}),this.fallbackTransition=Ff(n,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,t,o,i){return this.transitionFactories.find(s=>s.match(n,t,o,i))||null}matchStyles(n,t,o){return this.fallbackTransition.buildStyles(n,t,o)}};function Ff(e,n,t){let o=[(s,a)=>!0],i={type:$.Sequence,steps:[],options:null},r={type:$.Transition,animation:i,matchers:o,options:null,queryCount:0,depCount:0};return new xo(e,r,n)}function Cl(e,n,t){e.has(n)?e.has(t)||e.set(t,e.get(n)):e.has(t)&&e.set(n,e.get(t))}var Lf=new Cn,qi=class{constructor(n,t,o){this.bodyNode=n,this._driver=t,this._normalizer=o,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,t){let o=[],i=[],r=Al(this._driver,t,o,i);if(o.length)throw Yg(o);i.length&&void 0,this._animations.set(n,r)}_buildPlayer(n,t,o){let i=n.element,r=El(this._normalizer,n.keyframes,t,o);return this._driver.animate(i,r,n.duration,n.delay,n.easing,[],!0)}create(n,t,o={}){let i=[],r=this._animations.get(n),s,a=new Map;if(r?(s=Rl(this._driver,t,r,Ml,Ii,new Map,new Map,o,Lf,i),s.forEach(u=>{let d=ze(a,u.element,new Map);u.postStyleProps.forEach(g=>d.set(g,null))})):(i.push(Zg()),s=[]),i.length)throw Xg(i);a.forEach((u,d)=>{u.forEach((g,p)=>{u.set(p,this._driver.computeStyle(d,p,nt))})});let c=s.map(u=>{let d=a.get(u.element);return this._buildPlayer(u,new Map,d)}),l=vt(c);return this._playersById.set(n,l),l.onDestroy(()=>this.destroy(n)),this.players.push(l),l}destroy(n){let t=this._getPlayer(n);t.destroy(),this._playersById.delete(n);let o=this.players.indexOf(t);o>=0&&this.players.splice(o,1)}_getPlayer(n){let t=this._playersById.get(n);if(!t)throw Jg(n);return t}listen(n,t,o,i){let r=Qi(t,"","","");return Gi(this._getPlayer(n),o,r,i),()=>{}}command(n,t,o,i){if(o=="register"){this.register(n,i[0]);return}if(o=="create"){let s=i[0]||{};this.create(n,t,s);return}let r=this._getPlayer(n);switch(o){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(n);break}}},Dl="ng-animate-queued",zf=".ng-animate-queued",Pi="ng-animate-disabled",Bf=".ng-animate-disabled",jf="ng-star-inserted",Vf=".ng-star-inserted",Uf=[],Ll={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},qf={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ze="__ng_removed",Dn=class{get params(){return this.options.params}constructor(n,t=""){this.namespaceId=t;let o=n&&n.hasOwnProperty("value"),i=o?n.value:n;if(this.value=$f(i),o){let r=n,{value:s}=r,a=nr(r,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){let t=n.params;if(t){let o=this.options.params;Object.keys(t).forEach(i=>{o[i]==null&&(o[i]=t[i])})}}},vn="void",Oi=new Dn(vn),Wi=class{constructor(n,t,o){this.id=n,this.hostElement=t,this._engine=o,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,$e(t,this._hostClassName)}listen(n,t,o,i){if(!this._triggers.has(t))throw ef(o,t);if(o==null||o.length==0)throw tf(t);if(!Hf(o))throw nf(o,t);let r=ze(this._elementListeners,n,[]),s={name:t,phase:o,callback:i};r.push(s);let a=ze(this._engine.statesByElement,n,new Map);return a.has(t)||($e(n,fo),$e(n,fo+"-"+t),a.set(t,Oi)),()=>{this._engine.afterFlush(()=>{let c=r.indexOf(s);c>=0&&r.splice(c,1),this._triggers.has(t)||a.delete(t)})}}register(n,t){return this._triggers.has(n)?!1:(this._triggers.set(n,t),!0)}_getTrigger(n){let t=this._triggers.get(n);if(!t)throw of(n);return t}trigger(n,t,o,i=!0){let r=this._getTrigger(t),s=new Sn(this.id,t,n),a=this._engine.statesByElement.get(n);a||($e(n,fo),$e(n,fo+"-"+t),this._engine.statesByElement.set(n,a=new Map));let c=a.get(t),l=new Dn(o,this.id);if(!(o&&o.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a.set(t,l),c||(c=Oi),!(l.value===vn)&&c.value===l.value){if(!Qf(c.params,l.params)){let m=[],_=r.matchStyles(c.value,c.params,m),h=r.matchStyles(l.value,l.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{kt(n,_),st(n,h)})}return}let g=ze(this._engine.playersByElement,n,[]);g.forEach(m=>{m.namespaceId==this.id&&m.triggerName==t&&m.queued&&m.destroy()});let p=r.matchTransition(c.value,l.value,n,l.params),f=!1;if(!p){if(!i)return;p=r.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:t,transition:p,fromState:c,toState:l,player:s,isFallbackTransition:f}),f||($e(n,Dl),s.onStart(()=>{cn(n,Dl)})),s.onDone(()=>{let m=this.players.indexOf(s);m>=0&&this.players.splice(m,1);let _=this._engine.playersByElement.get(n);if(_){let h=_.indexOf(s);h>=0&&_.splice(h,1)}}),this.players.push(s),g.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(t=>t.delete(n)),this._elementListeners.forEach((t,o)=>{this._elementListeners.set(o,t.filter(i=>i.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);let t=this._engine.playersByElement.get(n);t&&(t.forEach(o=>o.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,t){let o=this._engine.driver.query(n,vo,!0);o.forEach(i=>{if(i[Ze])return;let r=this._engine.fetchNamespacesByElement(i);r.size?r.forEach(s=>s.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>o.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(n,t,o,i){let r=this._engine.statesByElement.get(n),s=new Map;if(r){let a=[];if(r.forEach((c,l)=>{if(s.set(l,c.value),this._triggers.has(l)){let u=this.trigger(n,l,vn,i);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,t,s),o&&vt(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){let t=this._elementListeners.get(n),o=this._engine.statesByElement.get(n);if(t&&o){let i=new Set;t.forEach(r=>{let s=r.name;if(i.has(s))return;i.add(s);let c=this._triggers.get(s).fallbackTransition,l=o.get(s)||Oi,u=new Dn(vn),d=new Sn(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:c,fromState:l,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,t){let o=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,t),this.triggerLeaveAnimation(n,t,!0))return;let i=!1;if(o.totalAnimations){let r=o.players.length?o.playersByQueriedElement.get(n):[];if(r&&r.length)i=!0;else{let s=n;for(;s=s.parentNode;)if(o.statesByElement.get(s)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(n),i)o.markElementAsRemoved(this.id,n,!1,t);else{let r=n[Ze];(!r||r===Ll)&&(o.afterFlush(()=>this.clearElementCache(n)),o.destroyInnerAnimations(n),o._onRemovalComplete(n,t))}}insertNode(n,t){$e(n,this._hostClassName)}drainQueuedTransitions(n){let t=[];return this._queue.forEach(o=>{let i=o.player;if(i.destroyed)return;let r=o.element,s=this._elementListeners.get(r);s&&s.forEach(a=>{if(a.name==o.triggerName){let c=Qi(r,o.triggerName,o.fromState.value,o.toState.value);c._data=n,Gi(o.player,a.phase,c,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(o)}),this._queue=[],t.sort((o,i)=>{let r=o.transition.ast.depCount,s=i.transition.ast.depCount;return r==0||s==0?r-s:this._engine.driver.containsElement(o.element,i.element)?1:-1})}destroy(n){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}},$i=class{_onRemovalComplete(n,t){this.onRemovalComplete(n,t)}constructor(n,t,o){this.bodyNode=n,this.driver=t,this._normalizer=o,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(i,r)=>{}}get queuedPlayers(){let n=[];return this._namespaceList.forEach(t=>{t.players.forEach(o=>{o.queued&&n.push(o)})}),n}createNamespace(n,t){let o=new Wi(n,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(o,t):(this.newHostElements.set(t,o),this.collectEnterElement(t)),this._namespaceLookup[n]=o}_balanceNamespaceList(n,t){let o=this._namespaceList,i=this.namespacesByHostElement;if(o.length-1>=0){let s=!1,a=this.driver.getParentElement(t);for(;a;){let c=i.get(a);if(c){let l=o.indexOf(c);o.splice(l+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||o.unshift(n)}else o.push(n);return i.set(t,n),n}register(n,t){let o=this._namespaceLookup[n];return o||(o=this.createNamespace(n,t)),o}registerTrigger(n,t,o){let i=this._namespaceLookup[n];i&&i.register(t,o)&&this.totalAnimations++}destroy(n,t){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let o=this._fetchNamespace(n);this.namespacesByHostElement.delete(o.hostElement);let i=this._namespaceList.indexOf(o);i>=0&&this._namespaceList.splice(i,1),o.destroy(t),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){let t=new Set,o=this.statesByElement.get(n);if(o){for(let i of o.values())if(i.namespaceId){let r=this._fetchNamespace(i.namespaceId);r&&t.add(r)}}return t}trigger(n,t,o,i){if(yo(t)){let r=this._fetchNamespace(n);if(r)return r.trigger(t,o,i),!0}return!1}insertNode(n,t,o,i){if(!yo(t))return;let r=t[Ze];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let s=this.collectedLeaveElements.indexOf(t);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){let s=this._fetchNamespace(n);s&&s.insertNode(t,o)}i&&this.collectEnterElement(t)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,t){t?this.disabledNodes.has(n)||(this.disabledNodes.add(n),$e(n,Pi)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),cn(n,Pi))}removeNode(n,t,o){if(yo(t)){let i=n?this._fetchNamespace(n):null;i?i.removeNode(t,o):this.markElementAsRemoved(n,t,!1,o);let r=this.namespacesByHostElement.get(t);r&&r.id!==n&&r.removeNode(t,o)}else this._onRemovalComplete(t,o)}markElementAsRemoved(n,t,o,i,r){this.collectedLeaveElements.push(t),t[Ze]={namespaceId:n,setForRemoval:i,hasAnimation:o,removedBeforeQueried:!1,previousTriggersValues:r}}listen(n,t,o,i,r){return yo(t)?this._fetchNamespace(n).listen(t,o,i,r):()=>{}}_buildInstruction(n,t,o,i,r){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,o,i,n.fromState.options,n.toState.options,t,r)}destroyInnerAnimations(n){let t=this.driver.query(n,vo,!0);t.forEach(o=>this.destroyActiveAnimationsForElement(o)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(n,ki,!0),t.forEach(o=>this.finishActiveQueriedAnimationOnElement(o)))}destroyActiveAnimationsForElement(n){let t=this.playersByElement.get(n);t&&t.forEach(o=>{o.queued?o.markedForDestroy=!0:o.destroy()})}finishActiveQueriedAnimationOnElement(n){let t=this.playersByQueriedElement.get(n);t&&t.forEach(o=>o.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return vt(this.players).onDone(()=>n());n()})}processLeaveNode(n){let t=n[Ze];if(t&&t.setForRemoval){if(n[Ze]=Ll,t.namespaceId){this.destroyInnerAnimations(n);let o=this._fetchNamespace(t.namespaceId);o&&o.clearElementCache(n)}this._onRemovalComplete(n,t.setForRemoval)}n.classList?.contains(Pi)&&this.markElementAsDisabled(n,!1),this.driver.query(n,Bf,!0).forEach(o=>{this.markElementAsDisabled(o,!1)})}flush(n=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((o,i)=>this._balanceNamespaceList(o,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let o=0;oo()),this._flushFns=[],this._whenQuietFns.length){let o=this._whenQuietFns;this._whenQuietFns=[],t.length?vt(t).onDone(()=>{o.forEach(i=>i())}):o.forEach(i=>i())}}reportError(n){throw rf(n)}_flushAnimations(n,t){let o=new Cn,i=[],r=new Map,s=[],a=new Map,c=new Map,l=new Map,u=new Set;this.disabledNodes.forEach(O=>{u.add(O);let M=this.driver.query(O,zf,!0);for(let I=0;I{let I=Ml+m++;f.set(M,I),O.forEach(U=>$e(U,I))});let _=[],h=new Set,v=new Set;for(let O=0;Oh.add(U)):v.add(M))}let w=new Map,N=xl(g,Array.from(h));N.forEach((O,M)=>{let I=Ii+m++;w.set(M,I),O.forEach(U=>$e(U,I))}),n.push(()=>{p.forEach((O,M)=>{let I=f.get(M);O.forEach(U=>cn(U,I))}),N.forEach((O,M)=>{let I=w.get(M);O.forEach(U=>cn(U,I))}),_.forEach(O=>{this.processLeaveNode(O)})});let z=[],F=[];for(let O=this._namespaceList.length-1;O>=0;O--)this._namespaceList[O].drainQueuedTransitions(t).forEach(I=>{let U=I.player,le=I.element;if(z.push(U),this.collectedEnterElements.length){let ve=le[Ze];if(ve&&ve.setForMove){if(ve.previousTriggersValues&&ve.previousTriggersValues.has(I.triggerName)){let bt=ve.previousTriggersValues.get(I.triggerName),Be=this.statesByElement.get(I.element);if(Be&&Be.has(I.triggerName)){let Tn=Be.get(I.triggerName);Tn.value=bt,Be.set(I.triggerName,Tn)}}U.destroy();return}}let Xe=!d||!this.driver.containsElement(d,le),Ae=w.get(le),ft=f.get(le),ae=this._buildInstruction(I,o,ft,Ae,Xe);if(ae.errors&&ae.errors.length){F.push(ae);return}if(Xe){U.onStart(()=>kt(le,ae.fromStyles)),U.onDestroy(()=>st(le,ae.toStyles)),i.push(U);return}if(I.isFallbackTransition){U.onStart(()=>kt(le,ae.fromStyles)),U.onDestroy(()=>st(le,ae.toStyles)),i.push(U);return}let tr=[];ae.timelines.forEach(ve=>{ve.stretchStartingKeyframe=!0,this.disabledNodes.has(ve.element)||tr.push(ve)}),ae.timelines=tr,o.append(le,ae.timelines);let $l={instruction:ae,player:U,element:le};s.push($l),ae.queriedElements.forEach(ve=>ze(a,ve,[]).push(U)),ae.preStyleProps.forEach((ve,bt)=>{if(ve.size){let Be=c.get(bt);Be||c.set(bt,Be=new Set),ve.forEach((Tn,Oo)=>Be.add(Oo))}}),ae.postStyleProps.forEach((ve,bt)=>{let Be=l.get(bt);Be||l.set(bt,Be=new Set),ve.forEach((Tn,Oo)=>Be.add(Oo))})});if(F.length){let O=[];F.forEach(M=>{O.push(sf(M.triggerName,M.errors))}),z.forEach(M=>M.destroy()),this.reportError(O)}let E=new Map,L=new Map;s.forEach(O=>{let M=O.element;o.has(M)&&(L.set(M,M),this._beforeAnimationBuild(O.player.namespaceId,O.instruction,E))}),i.forEach(O=>{let M=O.element;this._getPreviousPlayers(M,!1,O.namespaceId,O.triggerName,null).forEach(U=>{ze(E,M,[]).push(U),U.destroy()})});let V=_.filter(O=>wl(O,c,l)),W=new Map;Tl(W,this.driver,v,l,nt).forEach(O=>{wl(O,c,l)&&V.push(O)});let Y=new Map;p.forEach((O,M)=>{Tl(Y,this.driver,new Set(O),c,Ln)}),V.forEach(O=>{let M=W.get(O),I=Y.get(O);W.set(O,new Map([...M?.entries()??[],...I?.entries()??[]]))});let Te=[],ke=[],at={};s.forEach(O=>{let{element:M,player:I,instruction:U}=O;if(o.has(M)){if(u.has(M)){I.onDestroy(()=>st(M,U.toStyles)),I.disabled=!0,I.overrideTotalTime(U.totalTime),i.push(I);return}let le=at;if(L.size>1){let Ae=M,ft=[];for(;Ae=Ae.parentNode;){let ae=L.get(Ae);if(ae){le=ae;break}ft.push(Ae)}ft.forEach(ae=>L.set(ae,le))}let Xe=this._buildAnimation(I.namespaceId,U,E,r,Y,W);if(I.setRealPlayer(Xe),le===at)Te.push(I);else{let Ae=this.playersByElement.get(le);Ae&&Ae.length&&(I.parentPlayer=vt(Ae)),i.push(I)}}else kt(M,U.fromStyles),I.onDestroy(()=>st(M,U.toStyles)),ke.push(I),u.has(M)&&i.push(I)}),ke.forEach(O=>{let M=r.get(O.element);if(M&&M.length){let I=vt(M);O.setRealPlayer(I)}}),i.forEach(O=>{O.parentPlayer?O.syncPlayerEvents(O.parentPlayer):O.destroy()});for(let O=0;O<_.length;O++){let M=_[O],I=M[Ze];if(cn(M,Ii),I&&I.hasAnimation)continue;let U=[];if(a.size){let Xe=a.get(M);Xe&&Xe.length&&U.push(...Xe);let Ae=this.driver.query(M,ki,!0);for(let ft=0;ft!Xe.destroyed);le.length?Kf(this,M,le):this.processLeaveNode(M)}return _.length=0,Te.forEach(O=>{this.players.push(O),O.onDone(()=>{O.destroy();let M=this.players.indexOf(O);this.players.splice(M,1)}),O.play()}),Te}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,t,o,i,r){let s=[];if(t){let a=this.playersByQueriedElement.get(n);a&&(s=a)}else{let a=this.playersByElement.get(n);if(a){let c=!r||r==vn;a.forEach(l=>{l.queued||!c&&l.triggerName!=i||s.push(l)})}}return(o||i)&&(s=s.filter(a=>!(o&&o!=a.namespaceId||i&&i!=a.triggerName))),s}_beforeAnimationBuild(n,t,o){let i=t.triggerName,r=t.element,s=t.isRemovalTransition?void 0:n,a=t.isRemovalTransition?void 0:i;for(let c of t.timelines){let l=c.element,u=l!==r,d=ze(o,l,[]);this._getPreviousPlayers(l,u,s,a,t.toState).forEach(p=>{let f=p.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),p.destroy(),d.push(p)})}kt(r,t.fromStyles)}_buildAnimation(n,t,o,i,r,s){let a=t.triggerName,c=t.element,l=[],u=new Set,d=new Set,g=t.timelines.map(f=>{let m=f.element;u.add(m);let _=m[Ze];if(_&&_.removedBeforeQueried)return new qt(f.duration,f.delay);let h=m!==c,v=Gf((o.get(m)||Uf).map(E=>E.getRealPlayer())).filter(E=>{let L=E;return L.element?L.element===m:!1}),w=r.get(m),N=s.get(m),z=El(this._normalizer,f.keyframes,w,N),F=this._buildPlayer(f,z,v);if(f.subTimeline&&i&&d.add(m),h){let E=new Sn(n,a,m);E.setRealPlayer(F),l.push(E)}return F});l.forEach(f=>{ze(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>Wf(this.playersByQueriedElement,f.element,f))}),u.forEach(f=>$e(f,hl));let p=vt(g);return p.onDestroy(()=>{u.forEach(f=>cn(f,hl)),st(c,t.toStyles)}),d.forEach(f=>{ze(i,f,[]).push(p)}),p}_buildPlayer(n,t,o){return t.length>0?this.driver.animate(n.element,t,n.duration,n.delay,n.easing,o):new qt(n.duration,n.delay)}},Sn=class{constructor(n,t,o){this.namespaceId=n,this.triggerName=t,this.element=o,this._player=new qt,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((t,o)=>{t.forEach(i=>Gi(n,o,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){let t=this._player;t.triggerCallback&&n.onStart(()=>t.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,t){ze(this._queuedCallbacks,n,[]).push(t)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){let t=this._player;t.triggerCallback&&t.triggerCallback(n)}};function Wf(e,n,t){let o=e.get(n);if(o){if(o.length){let i=o.indexOf(t);o.splice(i,1)}o.length==0&&e.delete(n)}return o}function $f(e){return e??null}function yo(e){return e&&e.nodeType===1}function Hf(e){return e=="start"||e=="done"}function Sl(e,n){let t=e.style.display;return e.style.display=n??"none",t}function Tl(e,n,t,o,i){let r=[];t.forEach(c=>r.push(Sl(c)));let s=[];o.forEach((c,l)=>{let u=new Map;c.forEach(d=>{let g=n.computeStyle(l,d,i);u.set(d,g),(!g||g.length==0)&&(l[Ze]=qf,s.push(l))}),e.set(l,u)});let a=0;return t.forEach(c=>Sl(c,r[a++])),s}function xl(e,n){let t=new Map;if(e.forEach(a=>t.set(a,[])),n.length==0)return t;let o=1,i=new Set(n),r=new Map;function s(a){if(!a)return o;let c=r.get(a);if(c)return c;let l=a.parentNode;return t.has(l)?c=l:i.has(l)?c=o:c=s(l),r.set(a,c),c}return n.forEach(a=>{let c=s(a);c!==o&&t.get(c).push(a)}),t}function $e(e,n){e.classList?.add(n)}function cn(e,n){e.classList?.remove(n)}function Kf(e,n,t){vt(t).onDone(()=>e.processLeaveNode(n))}function Gf(e){let n=[];return zl(e,n),n}function zl(e,n){for(let t=0;ti.add(r)):n.set(e,o),t.delete(e),!0}var ln=class{constructor(n,t,o){this._driver=t,this._normalizer=o,this._triggerCache={},this.onRemovalComplete=(i,r)=>{},this._transitionEngine=new $i(n.body,t,o),this._timelineEngine=new qi(n.body,t,o),this._transitionEngine.onRemovalComplete=(i,r)=>this.onRemovalComplete(i,r)}registerTrigger(n,t,o,i,r){let s=n+"-"+i,a=this._triggerCache[s];if(!a){let c=[],l=[],u=Al(this._driver,r,c,l);if(c.length)throw Gg(i,c);l.length&&void 0,a=Rf(i,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(t,i,a)}register(n,t){this._transitionEngine.register(n,t)}destroy(n,t){this._transitionEngine.destroy(n,t)}onInsert(n,t,o,i){this._transitionEngine.insertNode(n,t,o,i)}onRemove(n,t,o){this._transitionEngine.removeNode(n,t,o)}disableAnimations(n,t){this._transitionEngine.markElementAsDisabled(n,t)}process(n,t,o,i){if(o.charAt(0)=="@"){let[r,s]=fl(o),a=i;this._timelineEngine.command(r,t,s,a)}else this._transitionEngine.trigger(n,t,o,i)}listen(n,t,o,i,r){if(o.charAt(0)=="@"){let[s,a]=fl(o);return this._timelineEngine.listen(s,t,a,r)}return this._transitionEngine.listen(n,t,o,i,r)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}};function Yf(e,n){let t=null,o=null;return Array.isArray(n)&&n.length?(t=Mi(n[0]),n.length>1&&(o=Mi(n[n.length-1]))):n instanceof Map&&(t=Mi(n)),t||o?new Hi(e,t,o):null}var Hi=class e{static{this.initialStylesByElement=new WeakMap}constructor(n,t,o){this._element=n,this._startStyles=t,this._endStyles=o,this._state=0;let i=e.initialStylesByElement.get(n);i||e.initialStylesByElement.set(n,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&st(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(st(this._element,this._initialStyles),this._endStyles&&(st(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(kt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(kt(this._element,this._endStyles),this._endStyles=null),st(this._element,this._initialStyles),this._state=3)}};function Mi(e){let n=null;return e.forEach((t,o)=>{Zf(o)&&(n=n||new Map,n.set(o,t))}),n}function Zf(e){return e==="display"||e==="position"}var wo=class{constructor(n,t,o,i){this.element=n,this.keyframes=t,this.options=o,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=o.duration,this._delay=o.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){let t=[];return n.forEach(o=>{t.push(Object.fromEntries(o))}),t}_triggerWebAnimation(n,t,o){return n.animate(this._convertKeyframesToObject(t),o)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((o,i)=>{i!=="offset"&&n.set(i,this._finished?o:Ji(this.element,i))}),this.currentSnapshot=n}triggerCallback(n){let t=n==="start"?this._onStartFns:this._onDoneFns;t.forEach(o=>o()),t.length=0}},Eo=class{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}containsElement(n,t){return Nl(n,t)}getParentElement(n){return Yi(n)}query(n,t,o){return Pl(n,t,o)}computeStyle(n,t,o){return Ji(n,t)}animate(n,t,o,i,r,s=[]){let a=i==0?"both":"forwards",c={duration:o,delay:i,fill:a};r&&(c.easing=r);let l=new Map,u=s.filter(p=>p instanceof wo);yf(o,i)&&u.forEach(p=>{p.currentSnapshot.forEach((f,m)=>l.set(m,f))});let d=ff(t).map(p=>new Map(p));d=_f(n,d,l);let g=Yf(n,d);return new wo(n,d,c,g)}};var _o="@",Bl="@.disabled",No=class{constructor(n,t,o,i){this.namespaceId=n,this.delegate=t,this.engine=o,this._onDestroy=i,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,t){return this.delegate.createElement(n,t)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,t){this.delegate.appendChild(n,t),this.engine.onInsert(this.namespaceId,t,n,!1)}insertBefore(n,t,o,i=!0){this.delegate.insertBefore(n,t,o),this.engine.onInsert(this.namespaceId,t,n,i)}removeChild(n,t,o){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(n,t){return this.delegate.selectRootElement(n,t)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,t,o,i){this.delegate.setAttribute(n,t,o,i)}removeAttribute(n,t,o){this.delegate.removeAttribute(n,t,o)}addClass(n,t){this.delegate.addClass(n,t)}removeClass(n,t){this.delegate.removeClass(n,t)}setStyle(n,t,o,i){this.delegate.setStyle(n,t,o,i)}removeStyle(n,t,o){this.delegate.removeStyle(n,t,o)}setProperty(n,t,o){t.charAt(0)==_o&&t==Bl?this.disableAnimations(n,!!o):this.delegate.setProperty(n,t,o)}setValue(n,t){this.delegate.setValue(n,t)}listen(n,t,o){return this.delegate.listen(n,t,o)}disableAnimations(n,t){this.engine.disableAnimations(n,t)}},Ki=class extends No{constructor(n,t,o,i,r){super(t,o,i,r),this.factory=n,this.namespaceId=t}setProperty(n,t,o){t.charAt(0)==_o?t.charAt(1)=="."&&t==Bl?(o=o===void 0?!0:!!o,this.disableAnimations(n,o)):this.engine.process(this.namespaceId,n,t.slice(1),o):this.delegate.setProperty(n,t,o)}listen(n,t,o){if(t.charAt(0)==_o){let i=Xf(n),r=t.slice(1),s="";return r.charAt(0)!=_o&&([r,s]=Jf(r)),this.engine.listen(this.namespaceId,i,r,s,a=>{let c=a._data||-1;this.factory.scheduleListenerCallback(c,o,a)})}return this.delegate.listen(n,t,o)}};function Xf(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}function Jf(e){let n=e.indexOf("."),t=e.substring(0,n),o=e.slice(n+1);return[t,o]}var Po=class{constructor(n,t,o){this.delegate=n,this.engine=t,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(i,r)=>{r?.removeChild(null,i)}}createRenderer(n,t){let o="",i=this.delegate.createRenderer(n,t);if(!n||!t?.data?.animation){let l=this._rendererCache,u=l.get(i);if(!u){let d=()=>l.delete(i);u=new No(o,i,this.engine,d),l.set(i,u)}return u}let r=t.id,s=t.id+"-"+this._currentId;this._currentId++,this.engine.register(s,n);let a=l=>{Array.isArray(l)?l.forEach(a):this.engine.registerTrigger(r,s,n,l.name,l)};return t.data.animation.forEach(a),new Ki(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,t,o){if(n>=0&&nt(o));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(r=>{let[s,a]=r;s(a)}),this._animationCallbacksBuffer=[]})}),i.push([t,o])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var tm=(()=>{class e extends ln{constructor(t,o,i){super(t,o,i)}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(o){return new(o||e)(St(Ue),St(At),St(Rt))}}static{this.\u0275prov=De({token:e,factory:e.\u0275fac})}}return e})();function nm(){return new Co}function om(e,n,t){return new Po(e,n,t)}var jl=[{provide:Rt,useFactory:nm},{provide:ln,useClass:tm},{provide:br,useFactory:om,deps:[Vr,ln,Se]}],im=[{provide:At,useFactory:()=>new Eo},{provide:ko,useValue:"BrowserAnimations"},...jl],aS=[{provide:At,useClass:Zi},{provide:ko,useValue:"NoopAnimations"},...jl];function Vl(){return Cr("NgEagerAnimations"),[...im]}function Ul(){return[{provide:qn,useValue:{navigation:[{title:"Changelog",route:"/changelog",hidden:!1,metadata:{description:"",tags:{}}},{title:"Components",route:"/components",expandable:!0,expanded:!1,hidden:!1,metadata:{description:"",tags:{}},children:[{title:"Button",route:"/components/button",hidden:!1,metadata:{description:"",tags:{}}},{title:"Icon",route:"/components/icon",hidden:!1,metadata:{description:"",tags:{}}},{title:"Icon Material",route:"/components/icon-material",hidden:!1,metadata:{description:"",tags:{}}}]},{title:"Todo",route:"/todo",hidden:!1,metadata:{description:"",tags:{}}},{title:"Welcome",route:"/get-started",hidden:!1,metadata:{description:"",tags:{}}}]}},{provide:Ls,useValue:""},{provide:zs,useValue:{light:"",dark:""}}]}var ql=[{path:"todo",title:"Todo",loadChildren:()=>import("./chunk-D3UNDUCH.js")},{path:"changelog",title:"Changelog",loadChildren:()=>import("./chunk-I23XA5NM.js")},{path:"get-started",title:"Welcome",loadChildren:()=>import("./chunk-2IUJ2XCY.js")},{path:"components",title:"Components",children:[{path:"",redirectTo:"icon",pathMatch:"full"},{path:"icon",title:"Icon",loadChildren:()=>import("./chunk-Z7QK36IY.js")},{path:"button",title:"Button",loadChildren:()=>import("./chunk-STJ4XM2I.js")},{path:"icon-material",title:"Icon Material",loadChildren:()=>import("./chunk-FPANO7T4.js")}]}];var Wl={providers:[Ar({eventCoalescing:!0}),Vl(),$r([...ql,{path:"",redirectTo:"get-started",pathMatch:"full"},{path:"**",redirectTo:"get-started"}],Hr({scrollPositionRestoration:"enabled",anchorScrolling:"enabled"})),zr(Br(),jr()),Ul(),ll(),ul(to),dl(cl),Rs(al)]};Ur(go,Wl).catch(e=>console.error(e)); diff --git a/styles-LBY3Y2W6.css b/styles-LBY3Y2W6.css deleted file mode 100644 index 284f5ba..0000000 --- a/styles-LBY3Y2W6.css +++ /dev/null @@ -1 +0,0 @@ -*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:Poppins,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.absolute{position:absolute}.right-2{right:.5rem}.top-16{top:4rem}.z-50{z-index:50}.\!mx-0{margin-left:0!important;margin-right:0!important}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mr-4{margin-right:1rem}.inline{display:inline}.flex{display:flex}.hidden{display:none}.h-screen{height:100vh}.w-full{width:100%}.flex-1{flex:1 1 0%}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-12{gap:3rem}.gap-3{gap:.75rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.rounded-2xl{border-radius:1rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.border-l-4{border-left-width:4px}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.border-indigo-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.border-orange-500{--tw-border-opacity: 1;border-color:rgb(249 115 22 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.border-teal-500{--tw-border-opacity: 1;border-color:rgb(20 184 166 / var(--tw-border-opacity))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(224 231 255 / var(--tw-bg-opacity))}.bg-orange-100{--tw-bg-opacity: 1;background-color:rgb(255 237 213 / var(--tw-bg-opacity))}.bg-primary-100{--tw-bg-opacity: 1;background-color:rgb(255 230 213 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.bg-teal-100{--tw-bg-opacity: 1;background-color:rgb(204 251 241 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-1{padding:.25rem}.p-16{padding:4rem}.px-12{padding-left:3rem;padding-right:3rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-7xl{font-size:4.5rem;line-height:1}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.text-accent-300{--tw-text-opacity: 1;color:rgb(244 173 181 / var(--tw-text-opacity))}.text-blue-900{--tw-text-opacity: 1;color:rgb(30 58 138 / var(--tw-text-opacity))}.text-indigo-900{--tw-text-opacity: 1;color:rgb(49 46 129 / var(--tw-text-opacity))}.text-orange-900{--tw-text-opacity: 1;color:rgb(124 45 18 / var(--tw-text-opacity))}.text-primary-200{--tw-text-opacity: 1;color:rgb(254 190 153 / var(--tw-text-opacity))}.text-primary-500{--tw-text-opacity: 1;color:rgb(249 77 22 / var(--tw-text-opacity))}.text-primary-700{--tw-text-opacity: 1;color:rgb(194 34 12 / var(--tw-text-opacity))}.text-red-900{--tw-text-opacity: 1;color:rgb(127 29 29 / var(--tw-text-opacity))}.text-teal-900{--tw-text-opacity: 1;color:rgb(19 78 74 / var(--tw-text-opacity))}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.material-symbols-outlined{font-variation-settings:"FILL" 0,"wght" 400,"GRAD" 0,"opsz" 24} diff --git a/styles-Y7NPLXIU.css b/styles-Y7NPLXIU.css new file mode 100644 index 0000000..903a851 --- /dev/null +++ b/styles-Y7NPLXIU.css @@ -0,0 +1 @@ +.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}.cdk-overlay-dark-backdrop{background:#00000052}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}body{--ng-doc-code-margin: var(--ng-doc-page-block-margin);--ng-doc-blockquote-margin: var(--ng-doc-page-block-margin);--ng-doc-tabs-margin: var(--ng-doc-page-block-margin);--ng-doc-demo-margin: var(--ng-doc-page-block-margin);--ng-doc-demo-pane-margin: var(--ng-doc-page-block-margin);--ng-doc-playground-margin: var(--ng-doc-page-block-margin)}html{-webkit-font-smoothing:antialiased}iframe.ngde{border:0}p.ngde{line-height:calc(var(--ng-doc-base-gutter) * 3);margin:calc(var(--ng-doc-base-gutter) * 2) 0}ul.ngde,ol.ngde{margin:var(--ng-doc-page-block-margin)}ul li.ngde,ol li.ngde{line-height:1.5rem;margin-bottom:calc(var(--ng-doc-base-gutter) + var(--ng-doc-base-gutter) / 2)}ul ul.ngde,ol ul.ngde,ul ol.ngde,ol ol.ngde{margin-top:calc(var(--ng-doc-base-gutter) * 2);margin-bottom:0}blockquote.ngde{line-height:1.5rem;margin:var(--ng-doc-page-block-margin)}h1.ngde,h2.ngde,h3.ngde,h4.ngde,h5.ngde,h6.ngde{font-family:var(--ng-doc-heading-font-family);font-variant:no-contextual;color:var(--ng-doc-text);line-height:var(--ng-doc-line-height);font-size:var(--ng-doc-font-size);font-weight:var(--ng-doc-font-weight);margin:calc(var(--ng-doc-base-gutter) * 7) 0 0;--ng-doc-line-height: 1.5rem;--ng-doc-font-weight: 600;overflow-wrap:anywhere;color:var(--ng-doc-heading-color)}h1.ngde.ng-doc-secondary-heading,h2.ngde.ng-doc-secondary-heading,h3.ngde.ng-doc-secondary-heading,h4.ngde.ng-doc-secondary-heading,h5.ngde.ng-doc-secondary-heading,h6.ngde.ng-doc-secondary-heading{color:var(--ng-doc-text)}h1.ngde+h1.ngde,h1.ngde+h2.ngde,h1.ngde+h3.ngde,h1.ngde+h4.ngde,h1.ngde+h5.ngde,h1.ngde+h6.ngde,h2.ngde+h1.ngde,h2.ngde+h2.ngde,h2.ngde+h3.ngde,h2.ngde+h4.ngde,h2.ngde+h5.ngde,h2.ngde+h6.ngde,h3.ngde+h1.ngde,h3.ngde+h2.ngde,h3.ngde+h3.ngde,h3.ngde+h4.ngde,h3.ngde+h5.ngde,h3.ngde+h6.ngde,h4.ngde+h1.ngde,h4.ngde+h2.ngde,h4.ngde+h3.ngde,h4.ngde+h4.ngde,h4.ngde+h5.ngde,h4.ngde+h6.ngde,h5.ngde+h1.ngde,h5.ngde+h2.ngde,h5.ngde+h3.ngde,h5.ngde+h4.ngde,h5.ngde+h5.ngde,h5.ngde+h6.ngde,h6.ngde+h1.ngde,h6.ngde+h2.ngde,h6.ngde+h3.ngde,h6.ngde+h4.ngde,h6.ngde+h5.ngde,h6.ngde+h6.ngde{margin-top:calc(var(--ng-doc-base-gutter) * 2)}h1.ngde{--ng-doc-font-size: 36px;--ng-doc-line-height: calc(var(--ng-doc-base-gutter) * 4)}h2.ngde{--ng-doc-font-size: 26px;--ng-doc-line-height: calc(var(--ng-doc-base-gutter) * 4)}h3.ngde{--ng-doc-font-size: 20px;--ng-doc-line-height: calc(var(--ng-doc-base-gutter) * 3)}h4.ngde{--ng-doc-font-size: 18px;--ng-doc-line-height: calc(var(--ng-doc-base-gutter) * 2);margin:calc(var(--ng-doc-base-gutter) * 2) 0}h5.ngde,h6.ngde{--ng-doc-font-size: 15px;--ng-doc-line-height: calc(var(--ng-doc-base-gutter) * 2);margin:calc(var(--ng-doc-base-gutter) * 2) 0}pre.shiki{margin:var(--ng-doc-page-block-margin)}pre.shiki code{position:relative;white-space:unset;box-shadow:var(--ng-doc-code-shadow);font-family:var(--ng-doc-code-font);font-size:var(--ng-doc-code-font-size);font-weight:var(--ng-doc-code-font-weight);line-height:var(--ng-doc-code-line-height);border:var(--ng-doc-code-border);background-color:var(--ng-doc-code-background, inherit)!important;-webkit-font-smoothing:auto}pre.shiki code span{background-color:var(--ng-doc-code-background, inherit)!important}*:not(pre)>code.ngde{vertical-align:bottom;border-radius:calc(var(--ng-doc-base-gutter) / 2);color:var(--ng-doc-inline-code-color);padding:calc(var(--ng-doc-base-gutter) / 4) var(--ng-doc-base-gutter);font-family:var(--ng-doc-code-font);font-size:14px;font-weight:var(--ng-doc-code-font-weight);line-height:var(--ng-doc-code-line-height, var(--ng-doc-line-height));background:color-mix(in srgb,var(--ng-doc-inline-code-background) 15%,transparent);white-space:nowrap}.ng-doc-table-wrapper{overflow-x:auto}table.ngde{width:100%;border-spacing:0}table.ngde thead tr th{padding:calc(var(--ng-doc-base-gutter) * 1.5);background-color:var(--ng-doc-base-1);text-align:left}table.ngde thead tr th:first-child{border-top-left-radius:var(--ng-doc-base-gutter);padding-left:calc(var(--ng-doc-base-gutter) * 3)}table.ngde thead tr th:last-child{padding-right:calc(var(--ng-doc-base-gutter) * 3);border-top-right-radius:var(--ng-doc-base-gutter)}table.ngde thead tr th h1.ngde,table.ngde thead tr th h2.ngde,table.ngde thead tr th h3.ngde,table.ngde thead tr th h4.ngde,table.ngde thead tr th h5.ngde,table.ngde thead tr th h6.ngde{margin-top:0;margin-bottom:0}table.ngde tbody tr td{padding:calc(var(--ng-doc-base-gutter) * 2);vertical-align:top;border-bottom:1px solid var(--ng-doc-base-2);background-color:var(--ng-doc-background)}table.ngde tbody tr td:first-child{padding-left:calc(var(--ng-doc-base-gutter) * 3)}table.ngde tbody tr td:last-child{padding-right:calc(var(--ng-doc-base-gutter) * 3)}table.ngde tbody tr td table{margin:calc(var(--ng-doc-base-gutter) * 2) 0}table.ngde h1.ngde,table.ngde h2.ngde,table.ngde h3.ngde,table.ngde h4.ngde,table.ngde h5.ngde,table.ngde h6.ngde{margin:0 0 var(--ng-doc-base-gutter)}a.ngde{text-decoration:none;color:var(--ng-doc-link-color)}a.ngde:hover{text-decoration:underline}mark.ng-doc-mark{background-color:var(--ng-doc-mark-background);color:var(--ng-doc-mark-color, inherit)}:root{--ng-doc-base-gutter: 8px;--ng-doc-transition: .2s;--ng-doc-text-selection: rgba(21, 88, 214, .15);--ng-doc-white: #fff;--ng-doc-black: #000;--ng-doc-base-rgb: 0 0 0;--ng-doc-base-0: var(--ng-doc-white);--ng-doc-base-1: #f6f6f6;--ng-doc-base-2: #ebebeb;--ng-doc-base-3: #dedede;--ng-doc-base-4: #d1d1d1;--ng-doc-base-5: #b8b8b8;--ng-doc-base-6: #ababab;--ng-doc-base-7: #9e9e9e;--ng-doc-base-8: #919191;--ng-doc-base-9: #858585;--ng-doc-base-10: #6e6e6e;--ng-doc-primary: #1558d6;--ng-doc-primary-text: var(--ng-doc-white);--ng-doc-alert: #ff5959;--ng-doc-alert-text: var(--ng-doc-white);--ng-doc-warning: #ff9f1a;--ng-doc-warning-text: var(--ng-doc-white);--ng-doc-info: #3f68b5;--ng-doc-info-text: var(--ng-doc-white);--ng-doc-success: #00b74a;--ng-doc-success-text: var(--ng-doc-white);--ng-doc-background: var(--ng-doc-base-0);--ng-doc-hover-background: rgba(110, 110, 110, .09);--ng-doc-border-size: 1px;--ng-doc-border-color: var(--ng-doc-base-3);--ng-doc-border-hover-color: var(--ng-doc-base-5);--ng-doc-shadow-color: rgba(0, 0, 0, .15);--ng-doc-font-system: 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";--ng-doc-font-system-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--ng-doc-heading-font-family: var(--ng-doc-font-system);--ng-doc-heading-color: #111111;--ng-doc-font-family: var(--ng-doc-font-system);--ng-doc-font-size: calc(var(--ng-doc-base-gutter) * 2);--ng-doc-line-height: calc(var(--ng-doc-base-gutter) * 3);--ng-doc-font-weight: 400;--ng-doc-code-font: var(--ng-doc-font-system-mono);--ng-doc-code-font-size: 14px;--ng-doc-code-line-height: 20px;--ng-doc-code-font-weight: 400;--ng-doc-text: rgb(78 78 78);--ng-doc-text-muted: var(--ng-doc-base-8);--ng-doc-mark-background: rgba(255, 222, 0, .3);--ng-doc-link-color: var(--ng-doc-primary);--ng-doc-inline-code-background: var(--ng-doc-base-9);--ng-doc-inline-code-color: var(--ng-doc-text);--ng-doc-button-background: trasparent;--ng-doc-button-background-opacity: 0;--ng-doc-button-color: var(--ng-doc-text);--ng-doc-button-hover-background: var(--ng-doc-base-2);--ng-doc-button-hover-color: var(--ng-doc-button-color);--ng-doc-button-active-background: var(--ng-doc-base-3);--ng-doc-button-active-color: var(--ng-doc-button-hover-color);--ng-doc-floated-border-color: transparent;--ng-doc-floated-border: 2px solid var(--ng-doc-floated-border-color);--ng-doc-floated-border-shadow-color: 0 1px 2px rgba(16, 24, 40, .05), 0 0 0 4px transparent;--ng-doc-floated-border-radius: var(--ng-doc-base-gutter);--ng-doc-checkbox-color: var(--ng-doc-primary);--ng-doc-checkbox-color-text: var(--ng-doc-primary-text);--ng-doc-checkbox-border: var(--ng-doc-border-size) solid var(--ng-doc-border-color);--ng-doc-checkbox-border-hover: var(--ng-doc-border-size) solid var(--ng-doc-border-hover-color);--ng-doc-input-text-align: left;--ng-doc-input-width: 100%;--ng-doc-input-height: 40px;--ng-doc-input-border: var(--ng-doc-border-size) solid var(--ng-doc-border-color);--ng-doc-input-border-hover: var(--ng-doc-border-size) solid var(--ng-doc-border-hover-color);--ng-doc-input-background-color: var(--ng-doc-base-0);--ng-doc-input-cursor: auto;--ng-doc-tag-background: var(--ng-doc-primary);--ng-doc-tag-color: var(--ng-doc-primary-text);--ng-doc-selection-border: 2px solid var(--ng-doc-primary);--ng-doc-selection-background: transparent;--ng-doc-dot-size: calc(var(--ng-doc-base-gutter) / 2);--ng-doc-dot-background: var(--ng-doc-primary);--ng-doc-sidenav-width: 300px;--ng-doc-tab-group-border-radius: var(--ng-doc-base-gutter);--ng-doc-tab-group-border: 1px solid var(--ng-doc-border-color)}.ng-doc-tooltip{--ng-doc-overlay-background: var(--ng-doc-tooltip-background, var(--ng-doc-base-10));--ng-doc-overlay-border: var(--ng-doc-tooltip-border, var(--ng-doc-base-10));--ng-doc-overlay-border-radius: calc(var(--ng-doc-base-gutter) / 2)}.ng-doc-tooltip .ng-doc-overlay-content{font-family:var(--ng-doc-font-family);font-variant:no-contextual;color:var(--ng-doc-text);line-height:var(--ng-doc-line-height);font-size:var(--ng-doc-font-size);font-weight:var(--ng-doc-font-weight);padding:var(--ng-doc-base-gutter) calc(var(--ng-doc-base-gutter) * 2);max-width:400px;max-height:50vh;white-space:pre-line;overflow-y:auto;--ng-doc-text: var(--ng-doc-base-0)}.ng-doc-tooltip .ng-doc-overlay-content p{margin:0}.ng-doc-notify{--ng-doc-overlay-background: var(--ng-doc-base-10);--ng-doc-overlay-border: var(--ng-doc-base-10);--ng-doc-overlay-border-radius: calc(var(--ng-doc-base-gutter) / 2)}.ng-doc-notify .ng-doc-overlay-content{font-family:var(--ng-doc-font-family);font-variant:no-contextual;color:var(--ng-doc-text);line-height:var(--ng-doc-line-height);font-size:var(--ng-doc-font-size);font-weight:var(--ng-doc-font-weight);padding:var(--ng-doc-base-gutter) calc(var(--ng-doc-base-gutter) * 2);max-width:576px;max-height:50vh;white-space:pre-line;overflow-y:auto;--ng-doc-text: var(--ng-doc-base-0)}.ng-doc-dialog{background:var(--ng-doc-background)}.ng-doc-transparent-dialog{background:transparent}:root{--ng-doc-app-max-width: 1450px;--ng-doc-app-horizontal-padding: calc(var(--ng-doc-base-gutter) * 3);--ng-doc-code-background: var(--ng-doc-base-1);--ng-doc-page-padding: calc(var(--ng-doc-base-gutter) * 3) var(--ng-doc-app-horizontal-padding);--ng-doc-main-padding: var(--ng-doc-navbar-height) 0 0 0;--ng-doc-page-block-margin: calc(var(--ng-doc-base-gutter) * 3) 0;--ng-doc-page-wrapper-tabs-height: calc(var(--ng-doc-base-gutter) * 6);--ng-doc-class-color: #fff;--ng-doc-class-background: #e74c3c;--ng-doc-interface-color: #fff;--ng-doc-interface-background: #3498db;--ng-doc-enum-color: #fff;--ng-doc-enum-background: #2ecc71;--ng-doc-variable-color: #fff;--ng-doc-variable-background: #f1c40f;--ng-doc-function-color: #fff;--ng-doc-function-background: #27bd09;--ng-doc-type-alias-color: #fff;--ng-doc-type-alias-background: #3e69c5;--ng-doc-selector-color: #fff;--ng-doc-selector-background: #25ac5f;--ng-doc-string-color: #fff;--ng-doc-string-background: #ff1150;--ng-doc-number-color: #fff;--ng-doc-number-background: #3498db;--ng-doc-boolean-color: #fff;--ng-doc-boolean-background: #2ecc71;--ng-doc-null-color: #fff;--ng-doc-null-background: #95a5a6;--ng-doc-undefined-color: #fff;--ng-doc-undefined-background: #bdc3c7;--ng-doc-object-color: #fff;--ng-doc-object-background: #f39c12;--ng-doc-component-decorator-color: #fff;--ng-doc-component-decorator-background: #1abc9c;--ng-doc-directive-decorator-color: #fff;--ng-doc-directive-decorator-background: #e67e22;--ng-doc-injectable-decorator-color: #fff;--ng-doc-injectable-decorator-background: #9b59b6;--ng-doc-pipe-decorator-color: #fff;--ng-doc-pipe-decorator-background: #c0392b;--ng-doc-ng-module-decorator-color: #fff;--ng-doc-ng-module-decorator-background: #27ae60;--ng-doc-input-decorator-color: #fff;--ng-doc-input-decorator-background: #13a2da;--ng-doc-output-decorator-color: #fff;--ng-doc-output-decorator-background: #daa213;--ng-doc-abstract-background: #ff5f1a;--ng-doc-abstract-color: #fff;--ng-doc-async-background: #0de311;--ng-doc-async-color: #fff;--ng-doc-protected-background: var(--ng-doc-base-7);--ng-doc-protected-color: #fff;--ng-doc-static-background: #e30dbf;--ng-doc-static-color: #fff;--ng-doc-overriden-background: #0d78e3;--ng-doc-overriden-color: #fff;--ng-doc-readonly-background: #ff2020;--ng-doc-readonly-color: #fff;--ng-doc-get-background: #2ecc3b;--ng-doc-get-color: #fff;--ng-doc-set-background: #e30dbf;--ng-doc-set-color: #fff;--ng-doc-navbar-background: var(--ng-doc-base-0);--ng-doc-navbar-height: calc(var(--ng-doc-base-gutter) * 7);--ng-doc-navbar-horizontal-padding: var(--ng-doc-app-horizontal-padding);--ng-doc-navbar-left-width: calc( var(--ng-doc-sidebar-width) - var(--ng-doc-navbar-horizontal-padding) );--ng-doc-navbar-border: 1px solid var(--ng-doc-base-3);--ng-doc-sidebar-width: 310px;--ng-doc-sidebar-background: var(--ng-doc-base-0);--ng-doc-sidebar-padding: calc(var(--ng-doc-base-gutter) * 2);--ng-doc-sidebar-vetical-padding: var(--ng-doc-base-gutter);--ng-doc-sidebar-horizontal-padding: var(--ng-doc-app-horizontal-padding);--ng-doc-demo-displayer-border: 1px solid var(--ng-doc-border-color);--ng-doc-demo-displayer-border-radius: var(--ng-doc-base-gutter);--ng-doc-code-max-height: 400px;--ng-doc-code-highlight-color: var(--ng-doc-primary);--ng-doc-toc-width: 280px;--ng-doc-toc-indent: var(--ng-doc-base-gutter);--ng-doc-toc-top-padding: calc(var(--ng-doc-base-gutter) * 3);--ng-doc-search-result-color: #454545;--ng-doc-api-tag-color: #ff1111;--ng-doc-api-tag-background: rgba(255, 17, 17, .15);--ng-doc-guide-tag-color: #0086ff;--ng-doc-guide-tag-background: rgba(0, 134, 255, .15);--ng-doc-tabs-margin: calc(var(--ng-doc-base-gutter) * 4) 0px;--ng-doc-tabs-border-radius: var(--ng-doc-base-gutter)}article header.ngde .ng-doc-page-tags{display:flex;align-items:flex-start;flex-wrap:wrap;margin-bottom:calc(var(--ng-doc-base-gutter) * 2);line-height:22px}article header.ngde h1{margin-right:var(--ng-doc-base-gutter)}article header.ngde .ng-doc-header-details{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:var(--ng-doc-base-gutter);margin-top:var(--ng-doc-base-gutter);line-height:18px}article header.ngde .ng-doc-header-details code{--ng-doc-line-height: 18px}article header.ngde .ng-doc-header-details .ng-doc-header-details-label{font-size:11px;font-weight:600;line-height:18px;margin-left:calc(var(--ng-doc-base-gutter) * 2);opacity:.5}article header.ngde .ng-doc-header-details .ng-doc-header-details-label:first-child{margin-left:0}.ng-doc-tags-wrapper{line-height:22px}.ng-doc-tag{display:inline-block;padding:0 var(--ng-doc-base-gutter);font-size:14px;border-radius:var(--ng-doc-base-gutter);background-color:color-mix(in srgb,var(--ng-doc-css-tag-background) var(--ng-doc-css-tag-background-opacity, 15%),transparent);vertical-align:middle;white-space:nowrap;color:var(--ng-doc-css-tag-background)}.ng-doc-tag+.ng-doc-tag{margin-left:var(--ng-doc-base-gutter)}.ng-doc-tag[data-content=ng-doc-scope]{padding:0;background-color:transparent;color:var(--ng-doc-text)}.ng-doc-tag[data-content=Class]{--ng-doc-css-tag-background: var(--ng-doc-class-background)}.ng-doc-tag[data-content=Interface]{--ng-doc-css-tag-background: var(--ng-doc-interface-background)}.ng-doc-tag[data-content=Enum]{--ng-doc-css-tag-background: var(--ng-doc-enum-background)}.ng-doc-tag[data-content=Variable]{--ng-doc-css-tag-background: var(--ng-doc-variable-background)}.ng-doc-tag[data-content=Function]{--ng-doc-css-tag-background: var(--ng-doc-function-background)}.ng-doc-tag[data-content=TypeAlias]{--ng-doc-css-tag-background: var(--ng-doc-type-alias-background)}.ng-doc-tag[data-content=Component]{--ng-doc-css-tag-background: var(--ng-doc-component-decorator-background)}.ng-doc-tag[data-content=Directive]{--ng-doc-css-tag-background: var(--ng-doc-directive-decorator-background)}.ng-doc-tag[data-content=Injectable]{--ng-doc-css-tag-background: var(--ng-doc-injectable-decorator-background)}.ng-doc-tag[data-content=Pipe]{--ng-doc-css-tag-background: var(--ng-doc-pipe-decorator-background)}.ng-doc-tag[data-content=NgModule]{--ng-doc-css-tag-background: var(--ng-doc-ng-module-decorator-background)}.ng-doc-tag[data-content=ng-doc-tag-selector]{--ng-doc-css-tag-background: var(--ng-doc-selector-background)}.ng-doc-decorators-group{display:flex;gap:var(--ng-doc-base-gutter);margin-bottom:calc(var(--ng-doc-base-gutter) / 2)}.ng-doc-decorators-group code{--ng-doc-line-height: 18px}.ng-doc-decorators-group.column{flex-direction:column;align-items:flex-start;gap:calc(var(--ng-doc-base-gutter) / 2);margin-bottom:0}.ng-doc-decorators-group.column code{margin:0}.ng-doc-modifiers-wrapper{line-height:18px}.ng-doc-modifier{font-size:14px;color:var(--ng-doc-text);font-family:var(--ng-doc-heading-font-family);white-space:nowrap;font-weight:800}.ng-doc-modifier[data-content=protected]{color:var(--ng-doc-protected-background)}.ng-doc-modifier[data-content=abstract]{color:var(--ng-doc-abstract-background)}.ng-doc-modifier[data-content=static]{color:var(--ng-doc-static-background)}.ng-doc-modifier[data-content=async]{color:var(--ng-doc-async-background)}.ng-doc-modifier[data-content=overriden]{color:var(--ng-doc-overriden-background)}.ng-doc-modifier[data-content=readonly]{color:var(--ng-doc-readonly-background)}.ng-doc-modifier[data-content=get]{font-size:16px;color:var(--ng-doc-get-background)}.ng-doc-modifier[data-content=set]{font-size:16px;color:var(--ng-doc-set-background)}.ng-doc-node-details{font-family:var(--ng-doc-font-family);font-variant:no-contextual;color:var(--ng-doc-text);line-height:var(--ng-doc-line-height);font-size:var(--ng-doc-font-size);font-weight:var(--ng-doc-font-weight);--ng-doc-code-line-height: var(--ng-doc-line-height);--ng-doc-font-size: 14px;--ng-doc-text: var(--ng-doc-text-muted);--ng-doc-font-weight: 400;--ng-doc-line-height: 22px}.ng-doc-node-details code.ng-doc-code-with-link{--ng-doc-inline-code-background: transparent !important;padding:0;--ng-doc-code-font-size: var(--ng-doc-font-size)}.ng-doc-badge-wrapper{display:inline-flex;margin-right:var(--ng-doc-base-gutter);vertical-align:middle}.ng-doc-badge-wrapper .ng-doc-badge:first-child{border-top-left-radius:var(--ng-doc-base-gutter);border-bottom-left-radius:var(--ng-doc-base-gutter)}.ng-doc-badge-wrapper .ng-doc-badge:last-child{border-top-right-radius:var(--ng-doc-base-gutter);border-bottom-right-radius:var(--ng-doc-base-gutter)}.ng-doc-badge{display:inline-flex;align-items:center;justify-content:center;width:calc(var(--ng-doc-base-gutter) * 2);height:calc(var(--ng-doc-base-gutter) * 2);font-family:var(--ng-doc-heading-font-family);font-size:10px;color:var(--ng-doc-white);white-space:nowrap;font-weight:900;background-color:var(--ng-doc-text);text-transform:capitalize}.ng-doc-badge[data-content=protected]{background-color:var(--ng-doc-protected-background);color:var(--ng-doc-protected-color)}.ng-doc-badge[data-content=abstract]{background-color:var(--ng-doc-abstract-background);color:var(--ng-doc-abstract-color)}.ng-doc-badge[data-content=static]{background-color:var(--ng-doc-static-background);color:var(--ng-doc-static-color)}.ng-doc-badge[data-content=async]{background-color:var(--ng-doc-async-background);color:var(--ng-doc-async-color)}.ng-doc-badge[data-content=overriden]{background-color:var(--ng-doc-overriden-background);color:var(--ng-doc-overriden-color)}.ng-doc-badge[data-content=readonly]{background-color:var(--ng-doc-readonly-background);color:var(--ng-doc-readonly-color)}.ng-doc-see-also li{margin:var(--ng-doc-base-gutter) 0}.ng-doc-see-also li p{margin:0}.ng-doc-table-wrapper{overflow:auto;margin:var(--ng-doc-page-block-margin)}.ng-doc-table-wrapper:last-child{margin-bottom:0}table.ng-doc-api-table{overflow:scroll}table.ng-doc-api-table.no-full-width{width:unset}table.ng-doc-api-table.no-padding tbody tr td,table.ng-doc-api-table.no-padding thead tr th{padding:var(--ng-doc-base-gutter)}table.ng-doc-api-table.no-padding tbody tr td:first-child,table.ng-doc-api-table.no-padding thead tr th:first-child{padding-left:0}table.ng-doc-api-table.sticky tr th:first-child,table.ng-doc-api-table.sticky tr td:first-child{position:sticky;left:0;z-index:1}table.ng-doc-api-table.first-colum-highlighted tr td:first-child{color:var(--ng-doc-heading-color)}table.ng-doc-api-table tr th.ng-doc-api-table-name,table.ng-doc-api-table tr th.ng-doc-api-table-type{width:25%}table.ng-doc-api-table tr th.ng-doc-api-table-description{min-width:300px}table.ng-doc-api-table tr td>*:not(:last-child){margin-right:var(--ng-doc-base-gutter)}table.ng-doc-overload-table thead tr th{background:color-mix(in srgb,var(--ng-doc-warning) 10%,transparent)}.ng-doc-no-content{color:var(--ng-doc-text-muted);font-style:italic;font-size:14px}code.ng-doc-code-with-link{--ng-doc-inline-code-background: var(--ng-doc-link-color)}article h1:hover .ng-doc-anchor,article h2:hover .ng-doc-anchor,article h3:hover .ng-doc-anchor,article h4:hover .ng-doc-anchor,article h5:hover .ng-doc-anchor,article h6:hover .ng-doc-anchor{opacity:1}article h1 .ng-doc-anchor,article h2 .ng-doc-anchor,article h3 .ng-doc-anchor,article h4 .ng-doc-anchor,article h5 .ng-doc-anchor,article h6 .ng-doc-anchor{margin-left:var(--ng-doc-base-gutter);opacity:0;transition:var(--ng-doc-transition)}article .ng-doc-page-wrapper>h1:first-child,article .ng-doc-page-wrapper>h2:first-child,article .ng-doc-page-wrapper>h3:first-child,article .ng-doc-page-wrapper>h4:first-child,article .ng-doc-page-wrapper>h5:first-child,article .ng-doc-page-wrapper>h6:first-child{margin-top:0}article section.ngde{margin-bottom:calc(var(--ng-doc-base-gutter) * 5)}article header.ngde .ng-doc-declaration-details{list-style:none;padding:0}article header.ngde .ng-doc-page-tags{display:inline-flex;flex-wrap:wrap;align-items:flex-start;gap:var(--ng-doc-base-gutter);margin-bottom:calc(var(--ng-doc-base-gutter) * 2);line-height:22px}article header.ngde h1.ngde{margin:0;margin-right:var(--ng-doc-base-gutter)}article th h5.ngde+p.ngde,article th p.ngde:first-of-type,article td h5.ngde+p.ngde,article td p.ngde:first-of-type{margin-top:0}article th p.ngde:last-of-type,article td p.ngde:last-of-type{margin-bottom:0}article .ng-doc-inline-header{display:flex;align-items:center}article .ng-doc-inline-header h1,article .ng-doc-inline-header h2,article .ng-doc-inline-header h3,article .ng-doc-inline-header h4,article .ng-doc-inline-header h5,article .ng-doc-inline-header h6{margin-right:var(--ng-doc-base-gutter)}article .ng-doc-inline-delimiter{font-weight:700;font-size:14px;opacity:.2}article .ng-doc-header-link{display:inline-flex;margin-left:var(--ng-doc-base-gutter);vertical-align:middle}article pre code .ng-doc-code-anchor{color:inherit}article tr[data-slugtype=member]:has(+tr:not([data-slugtype])) td{border-bottom:none}.ng-doc-deprecated{text-decoration:line-through}.ng-doc-deprecated:hover{text-decoration:auto}.ng-doc-api-status{display:inline-block;width:100%}.ng-doc-api-status>*:first-child{margin-top:0!important}.ng-doc-api-status:empty{display:none}.ng-doc-deprecated-notes{color:var(--ng-doc-warning-text)}.ng-doc-returns{display:flex;align-items:start;gap:calc(var(--ng-doc-base-gutter) * 1.5);margin:var(--ng-doc-page-block-margin)}.ng-doc-returns p:first-of-type{margin-top:0}.ng-doc-returns p:last-of-type{margin-bottom:0}html{overflow-y:scroll;overflow-x:hidden}html,body{font-family:var(--ng-doc-font-family);font-variant:no-contextual;color:var(--ng-doc-text);line-height:var(--ng-doc-line-height);font-weight:var(--ng-doc-font-weight);font-size:var(--ng-doc-font-size);background-color:var(--ng-doc-background);margin:0;height:100%}.ng-doc-blur-backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background-color:#0000008f}.ng-doc-global-scrollblock{position:relative;overflow:hidden;padding-right:var(--ng-doc-base-gutter)}*,*:before,*:after{box-sizing:border-box}::selection{background:var(--ng-doc-text-selection)}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:Poppins,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.absolute{position:absolute}.right-2{right:.5rem}.top-16{top:4rem}.z-50{z-index:50}.\!mx-0{margin-left:0!important;margin-right:0!important}.my-1{margin-top:.25rem;margin-bottom:.25rem}.inline{display:inline}.flex{display:flex}.hidden{display:none}.w-full{width:100%}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.rounded{border-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.border-l-4{border-left-width:4px}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.border-indigo-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.border-orange-500{--tw-border-opacity: 1;border-color:rgb(249 115 22 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.border-teal-500{--tw-border-opacity: 1;border-color:rgb(20 184 166 / var(--tw-border-opacity))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(224 231 255 / var(--tw-bg-opacity))}.bg-orange-100{--tw-bg-opacity: 1;background-color:rgb(255 237 213 / var(--tw-bg-opacity))}.bg-primary-100{--tw-bg-opacity: 1;background-color:rgb(255 230 213 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-teal-100{--tw-bg-opacity: 1;background-color:rgb(204 251 241 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-1{padding:.25rem}.px-12{padding-left:3rem;padding-right:3rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity))}.text-blue-900{--tw-text-opacity: 1;color:rgb(30 58 138 / var(--tw-text-opacity))}.text-indigo-900{--tw-text-opacity: 1;color:rgb(49 46 129 / var(--tw-text-opacity))}.text-orange-900{--tw-text-opacity: 1;color:rgb(124 45 18 / var(--tw-text-opacity))}.text-primary-500{--tw-text-opacity: 1;color:rgb(249 77 22 / var(--tw-text-opacity))}.text-red-900{--tw-text-opacity: 1;color:rgb(127 29 29 / var(--tw-text-opacity))}.text-teal-900{--tw-text-opacity: 1;color:rgb(19 78 74 / var(--tw-text-opacity))}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.material-symbols-outlined{font-variation-settings:"FILL" 0,"wght" 400,"GRAD" 0,"opsz" 24}