From ce08b8914f4269502cd4e47f03c19837252cc7e4 Mon Sep 17 00:00:00 2001 From: piotrpekala7 <31202938+piotrpekala7@users.noreply.github.com> Date: Wed, 10 Nov 2021 00:14:25 +0100 Subject: [PATCH] Release web UI 2.2.27 fixed version --- .../static/web-ui/157.b944b783466b8859.js | 1 - .../static/web-ui/26.85045f210dd0225cbaad.js | 1 + gns3server/static/web-ui/3rdpartylicenses.txt | 48 ++++++++++++++++++ ...ialIcons-Regular.4674f8ded773cb03e824.eot} | Bin ...ialIcons-Regular.5e7382c63da0098d634a.ttf} | Bin ...alIcons-Regular.83bebaf37c09c7e1c3ee.woff} | Bin ...lIcons-Regular.cff684e59ffb052d72cb.woff2} | Bin ...=> NotoSans-Bold.18ef6a21171328dc11a9.svg} | 0 ...> NotoSans-Bold.364158e7b3016f83790a.woff} | Bin ... NotoSans-Bold.3ea2282022a16bb2827b.woff2} | Bin ...=> NotoSans-Bold.82b1a58ddf26951345dc.ttf} | Bin ...=> NotoSans-Bold.fe2c3263802c4469728b.eot} | Bin ...oSans-BoldItalic.7930d6e32b12448fc0ae.svg} | 0 ...oSans-BoldItalic.9e49c91c40231a024afb.ttf} | Bin ...oSans-BoldItalic.b40d78b2f9e2490108d0.eot} | Bin ...Sans-BoldItalic.ed8d2295c0b2e0a854d8.woff} | Bin ...ans-BoldItalic.f2639d17cfb5c6e74edd.woff2} | Bin ... NotoSans-Italic.08690ed789a5532ed7be.ttf} | Bin ... NotoSans-Italic.1506cb93f574152bda3d.eot} | Bin ...NotoSans-Italic.8a08f0f08e448e4f522e.woff} | Bin ...otoSans-Italic.ca985d172a576d01c77e.woff2} | Bin ... NotoSans-Italic.cecaa17f122ac96a50f8.svg} | 0 ...otoSans-Regular.22c53c8686edcaecdf66.woff} | Bin ...toSans-Regular.730e73a4d4556fa0efe8.woff2} | Bin ...NotoSans-Regular.8142e5b2e99a1cccafb7.svg} | 0 ...NotoSans-Regular.e962f548522aa99bb8f9.ttf} | Bin ...NotoSans-Regular.f55982ed9f2bc3af6185.eot} | Bin gns3server/static/web-ui/index.html | 4 +- .../static/web-ui/main.13bda60ce561ce91.js | 1 - .../web-ui/main.7d1b537c34b9425ec8c8.js | 1 + .../polyfills-es5.4eb1fdd946638b823036.js | 1 + .../web-ui/polyfills.519e27ac94450b1b7e67.js | 1 + .../web-ui/polyfills.76674d1e750c8482.js | 1 - ...oboto-latin-100.a45108d3b34af91f9113.woff} | Bin ...boto-latin-100.c2aa4ab115bf9c6057cb.woff2} | Bin ...latin-100italic.451d4e559d6f57cdf6a1.woff} | Bin ...atin-100italic.7f839a8652da29745ce4.woff2} | Bin ...boto-latin-300.37a7069dc30fc663c878.woff2} | Bin ...oboto-latin-300.865f928cbabcc9f8f2b5.woff} | Bin ...latin-300italic.bd5b7a13f2c52b531a2a.woff} | Bin ...atin-300italic.c64e7e354c88e613c77c.woff2} | Bin ...boto-latin-400.176f8f5bd5f02b3abfcf.woff2} | Bin ...oboto-latin-400.49ae34d4cc6b98c00c69.woff} | Bin ...latin-400italic.b1d9d9904bfca8802a63.woff} | Bin ...atin-400italic.d022bc70dc1bf7b3425d.woff2} | Bin ...oboto-latin-500.cea99d3e3e13a3a599a0.woff} | Bin ...boto-latin-500.f5b74d7ffcdf85b9dd60.woff2} | Bin ...atin-500italic.0d8bb5b3ee5f5dac9e44.woff2} | Bin ...latin-500italic.18d00f739ff1e1c52db1.woff} | Bin ...oboto-latin-700.2267169ee7270a22a963.woff} | Bin ...boto-latin-700.c18ee39fb002ad58b6dc.woff2} | Bin ...atin-700italic.7d8125ff7f707231fd89.woff2} | Bin ...latin-700italic.9360531f9bb817f917f0.woff} | Bin ...boto-latin-900.870c8c1486f76054301a.woff2} | Bin ...oboto-latin-900.bac8362e7a6ea60b6983.woff} | Bin ...latin-900italic.c20d916c1a1b094c1cec.woff} | Bin ...atin-900italic.cb5ad999740e9d8a8bd1.woff2} | Bin .../static/web-ui/runtime.78f7797c0ae936fe.js | 1 - .../web-ui/runtime.8e6e40ddbc153287073b.js | 1 + .../static/web-ui/styles.cf688421eca41c25.css | 6 --- .../web-ui/styles.f8555f2eecf8cf87f666.css | 11 ++++ 61 files changed, 66 insertions(+), 12 deletions(-) delete mode 100644 gns3server/static/web-ui/157.b944b783466b8859.js create mode 100644 gns3server/static/web-ui/26.85045f210dd0225cbaad.js rename gns3server/static/web-ui/{MaterialIcons-Regular.1e50f5c2ffa6aba4.eot => MaterialIcons-Regular.4674f8ded773cb03e824.eot} (100%) rename gns3server/static/web-ui/{MaterialIcons-Regular.196fa4a92dd6fa73.ttf => MaterialIcons-Regular.5e7382c63da0098d634a.ttf} (100%) rename gns3server/static/web-ui/{MaterialIcons-Regular.db852539204b1a34.woff => MaterialIcons-Regular.83bebaf37c09c7e1c3ee.woff} (100%) rename gns3server/static/web-ui/{MaterialIcons-Regular.7ea2023eeca07427.woff2 => MaterialIcons-Regular.cff684e59ffb052d72cb.woff2} (100%) rename gns3server/static/web-ui/{NotoSans-Bold.57c5fa3ce3ea736c.svg => NotoSans-Bold.18ef6a21171328dc11a9.svg} (100%) rename gns3server/static/web-ui/{NotoSans-Bold.bf7f7fcd222ca9bc.woff => NotoSans-Bold.364158e7b3016f83790a.woff} (100%) rename gns3server/static/web-ui/{NotoSans-Bold.bb7ed3cb4bc27baa.woff2 => NotoSans-Bold.3ea2282022a16bb2827b.woff2} (100%) rename gns3server/static/web-ui/{NotoSans-Bold.34719cace3ef62a2.ttf => NotoSans-Bold.82b1a58ddf26951345dc.ttf} (100%) rename gns3server/static/web-ui/{NotoSans-Bold.7e9e455225ad3d5f.eot => NotoSans-Bold.fe2c3263802c4469728b.eot} (100%) rename gns3server/static/web-ui/{NotoSans-BoldItalic.44f1cf4f0e78a3a4.svg => NotoSans-BoldItalic.7930d6e32b12448fc0ae.svg} (100%) rename gns3server/static/web-ui/{NotoSans-BoldItalic.da602ebb32f0c6ac.ttf => NotoSans-BoldItalic.9e49c91c40231a024afb.ttf} (100%) rename gns3server/static/web-ui/{NotoSans-BoldItalic.c4df60a61a10e0e2.eot => NotoSans-BoldItalic.b40d78b2f9e2490108d0.eot} (100%) rename gns3server/static/web-ui/{NotoSans-BoldItalic.f99dd773fd73392d.woff => NotoSans-BoldItalic.ed8d2295c0b2e0a854d8.woff} (100%) rename gns3server/static/web-ui/{NotoSans-BoldItalic.ddf7c771010e73d3.woff2 => NotoSans-BoldItalic.f2639d17cfb5c6e74edd.woff2} (100%) rename gns3server/static/web-ui/{NotoSans-Italic.edf9dad3a9df7f36.ttf => NotoSans-Italic.08690ed789a5532ed7be.ttf} (100%) rename gns3server/static/web-ui/{NotoSans-Italic.985d3cebb7facaaf.eot => NotoSans-Italic.1506cb93f574152bda3d.eot} (100%) rename gns3server/static/web-ui/{NotoSans-Italic.366bf02025f63b83.woff => NotoSans-Italic.8a08f0f08e448e4f522e.woff} (100%) rename gns3server/static/web-ui/{NotoSans-Italic.1a8c878b5303cbe6.woff2 => NotoSans-Italic.ca985d172a576d01c77e.woff2} (100%) rename gns3server/static/web-ui/{NotoSans-Italic.92e7c8bbab5c5179.svg => NotoSans-Italic.cecaa17f122ac96a50f8.svg} (100%) rename gns3server/static/web-ui/{NotoSans-Regular.51f325c21ca117eb.woff => NotoSans-Regular.22c53c8686edcaecdf66.woff} (100%) rename gns3server/static/web-ui/{NotoSans-Regular.393a17b8205d596d.woff2 => NotoSans-Regular.730e73a4d4556fa0efe8.woff2} (100%) rename gns3server/static/web-ui/{NotoSans-Regular.dfbb04edb508d096.svg => NotoSans-Regular.8142e5b2e99a1cccafb7.svg} (100%) rename gns3server/static/web-ui/{NotoSans-Regular.cb40f90b6ce4a698.ttf => NotoSans-Regular.e962f548522aa99bb8f9.ttf} (100%) rename gns3server/static/web-ui/{NotoSans-Regular.8df2e2a555d0110f.eot => NotoSans-Regular.f55982ed9f2bc3af6185.eot} (100%) delete mode 100644 gns3server/static/web-ui/main.13bda60ce561ce91.js create mode 100644 gns3server/static/web-ui/main.7d1b537c34b9425ec8c8.js create mode 100644 gns3server/static/web-ui/polyfills-es5.4eb1fdd946638b823036.js create mode 100644 gns3server/static/web-ui/polyfills.519e27ac94450b1b7e67.js delete mode 100644 gns3server/static/web-ui/polyfills.76674d1e750c8482.js rename gns3server/static/web-ui/{roboto-latin-100.5ba994dac3e79ea8.woff => roboto-latin-100.a45108d3b34af91f9113.woff} (100%) rename gns3server/static/web-ui/{roboto-latin-100.539f0a96b40596f7.woff2 => roboto-latin-100.c2aa4ab115bf9c6057cb.woff2} (100%) rename gns3server/static/web-ui/{roboto-latin-100italic.d61e7e8b07c0638c.woff => roboto-latin-100italic.451d4e559d6f57cdf6a1.woff} (100%) rename gns3server/static/web-ui/{roboto-latin-100italic.41ba64219cb743c9.woff2 => roboto-latin-100italic.7f839a8652da29745ce4.woff2} (100%) rename gns3server/static/web-ui/{roboto-latin-300.4d8f8086236bad80.woff2 => roboto-latin-300.37a7069dc30fc663c878.woff2} (100%) rename gns3server/static/web-ui/{roboto-latin-300.6c1bc461047e61f5.woff => roboto-latin-300.865f928cbabcc9f8f2b5.woff} (100%) rename gns3server/static/web-ui/{roboto-latin-300italic.3a529751a590d3c1.woff => roboto-latin-300italic.bd5b7a13f2c52b531a2a.woff} (100%) rename gns3server/static/web-ui/{roboto-latin-300italic.45164643b3bd5824.woff2 => roboto-latin-300italic.c64e7e354c88e613c77c.woff2} (100%) rename gns3server/static/web-ui/{roboto-latin-400.1e2d4d3a272629cd.woff2 => roboto-latin-400.176f8f5bd5f02b3abfcf.woff2} (100%) rename gns3server/static/web-ui/{roboto-latin-400.7e4a045b9373d9c1.woff => roboto-latin-400.49ae34d4cc6b98c00c69.woff} (100%) rename gns3server/static/web-ui/{roboto-latin-400italic.68431199e5b90ea8.woff => roboto-latin-400italic.b1d9d9904bfca8802a63.woff} (100%) rename gns3server/static/web-ui/{roboto-latin-400italic.bb3c6955c4334c8a.woff2 => roboto-latin-400italic.d022bc70dc1bf7b3425d.woff2} (100%) rename gns3server/static/web-ui/{roboto-latin-500.e21fe97fd2329ff7.woff => roboto-latin-500.cea99d3e3e13a3a599a0.woff} (100%) rename gns3server/static/web-ui/{roboto-latin-500.1dfbc3dbf815e3f3.woff2 => roboto-latin-500.f5b74d7ffcdf85b9dd60.woff2} (100%) rename gns3server/static/web-ui/{roboto-latin-500italic.7543a42b12b1452f.woff2 => roboto-latin-500italic.0d8bb5b3ee5f5dac9e44.woff2} (100%) rename gns3server/static/web-ui/{roboto-latin-500italic.aaff6867154023d3.woff => roboto-latin-500italic.18d00f739ff1e1c52db1.woff} (100%) rename gns3server/static/web-ui/{roboto-latin-700.02633003129d1e63.woff => roboto-latin-700.2267169ee7270a22a963.woff} (100%) rename gns3server/static/web-ui/{roboto-latin-700.12893bfc0762b0f3.woff2 => roboto-latin-700.c18ee39fb002ad58b6dc.woff2} (100%) rename gns3server/static/web-ui/{roboto-latin-700italic.bc7179e004e40113.woff2 => roboto-latin-700italic.7d8125ff7f707231fd89.woff2} (100%) rename gns3server/static/web-ui/{roboto-latin-700italic.e53062e27c63fafb.woff => roboto-latin-700italic.9360531f9bb817f917f0.woff} (100%) rename gns3server/static/web-ui/{roboto-latin-900.282ba77fda1349f3.woff2 => roboto-latin-900.870c8c1486f76054301a.woff2} (100%) rename gns3server/static/web-ui/{roboto-latin-900.4962e810cbb4d3e5.woff => roboto-latin-900.bac8362e7a6ea60b6983.woff} (100%) rename gns3server/static/web-ui/{roboto-latin-900italic.2394134a78bbaef8.woff => roboto-latin-900italic.c20d916c1a1b094c1cec.woff} (100%) rename gns3server/static/web-ui/{roboto-latin-900italic.9c1f80840351fa12.woff2 => roboto-latin-900italic.cb5ad999740e9d8a8bd1.woff2} (100%) delete mode 100644 gns3server/static/web-ui/runtime.78f7797c0ae936fe.js create mode 100644 gns3server/static/web-ui/runtime.8e6e40ddbc153287073b.js delete mode 100644 gns3server/static/web-ui/styles.cf688421eca41c25.css create mode 100644 gns3server/static/web-ui/styles.f8555f2eecf8cf87f666.css diff --git a/gns3server/static/web-ui/157.b944b783466b8859.js b/gns3server/static/web-ui/157.b944b783466b8859.js deleted file mode 100644 index 7019a26c..00000000 --- a/gns3server/static/web-ui/157.b944b783466b8859.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkgns3_web_ui=self.webpackChunkgns3_web_ui||[]).push([[157],{21157:function(J,g,l){l.r(g),l.d(g,{TopologySummaryComponent:function(){return R}});var m=l(18967),h=l(14105),e=l(83668),v=l(52094),f=l(81856),y=l(64097),C=l(41999),T=l(2856),u=l(86019),x=l(58939),d=l(12605),S=l(16400),_=l(6731),b=l(85694);function E(s,a){if(1&s){var o=e.EpF();e.TgZ(0,"div",2),e.NdJ("mousemove",function(i){return e.CHM(o),e.oxw().dragWidget(i)},!1,e.evT)("mouseup",function(){return e.CHM(o),e.oxw().toggleDragging(!1)},!1,e.evT),e.qZA()}}function Z(s,a){1&s&&(e.O4$(),e.TgZ(0,"svg",28),e._UZ(1,"rect",29),e.qZA())}function O(s,a){1&s&&(e.O4$(),e.TgZ(0,"svg",28),e._UZ(1,"rect",30),e.qZA())}function M(s,a){1&s&&(e.O4$(),e.TgZ(0,"svg",28),e._UZ(1,"rect",31),e.qZA())}function P(s,a){if(1&s&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&s){var o=e.oxw().$implicit;e.xp6(1),e.lnq(" ",o.console_type," ",o.console_host,":",o.console," ")}}function w(s,a){1&s&&(e.TgZ(0,"div"),e._uU(1," none "),e.qZA())}function A(s,a){if(1&s&&(e.TgZ(0,"div",25),e.TgZ(1,"div"),e.YNc(2,Z,2,0,"svg",26),e.YNc(3,O,2,0,"svg",26),e.YNc(4,M,2,0,"svg",26),e._uU(5),e.qZA(),e.YNc(6,P,2,3,"div",27),e.YNc(7,w,2,0,"div",27),e.qZA()),2&s){var o=a.$implicit;e.xp6(2),e.Q6J("ngIf","started"===o.status),e.xp6(1),e.Q6J("ngIf","suspended"===o.status),e.xp6(1),e.Q6J("ngIf","stopped"===o.status),e.xp6(1),e.hij(" ",o.name," "),e.xp6(1),e.Q6J("ngIf",null!=o.console&&null!=o.console&&"none"!=o.console_type),e.xp6(1),e.Q6J("ngIf",null==o.console||"none"===o.console_type)}}function D(s,a){1&s&&(e.O4$(),e.TgZ(0,"svg",28),e._UZ(1,"rect",29),e.qZA())}function F(s,a){1&s&&(e.O4$(),e.TgZ(0,"svg",28),e._UZ(1,"rect",31),e.qZA())}function k(s,a){if(1&s&&(e.TgZ(0,"div",25),e.TgZ(1,"div"),e.YNc(2,D,2,0,"svg",26),e.YNc(3,F,2,0,"svg",26),e._uU(4),e.qZA(),e.TgZ(5,"div"),e._uU(6),e.qZA(),e.TgZ(7,"div"),e._uU(8),e.qZA(),e.qZA()),2&s){var o=a.$implicit,t=e.oxw(2);e.xp6(2),e.Q6J("ngIf",o.connected),e.xp6(1),e.Q6J("ngIf",!o.connected),e.xp6(1),e.hij(" ",o.name," "),e.xp6(2),e.hij(" ",o.host," "),e.xp6(2),e.hij(" ",t.server.location," ")}}var N=function(a){return{lightTheme:a}},U=function(){return{right:!0,left:!0,bottom:!0,top:!0}};function I(s,a){if(1&s){var o=e.EpF();e.TgZ(0,"div",3),e.NdJ("mousedown",function(){return e.CHM(o),e.oxw().toggleDragging(!0)})("resizeStart",function(){return e.CHM(o),e.oxw().toggleDragging(!1)})("resizeEnd",function(n){return e.CHM(o),e.oxw().onResizeEnd(n)}),e.TgZ(1,"div",4),e.TgZ(2,"mat-tab-group"),e.TgZ(3,"mat-tab",5),e.NdJ("click",function(){return e.CHM(o),e.oxw().toggleTopologyVisibility(!0)}),e.TgZ(4,"div",6),e.TgZ(5,"div",7),e.TgZ(6,"mat-select",8),e.TgZ(7,"mat-optgroup",9),e.TgZ(8,"mat-option",10),e.NdJ("onSelectionChange",function(){return e.CHM(o),e.oxw().applyStatusFilter("started")}),e._uU(9,"started"),e.qZA(),e.TgZ(10,"mat-option",11),e.NdJ("onSelectionChange",function(){return e.CHM(o),e.oxw().applyStatusFilter("suspended")}),e._uU(11,"suspended"),e.qZA(),e.TgZ(12,"mat-option",12),e.NdJ("onSelectionChange",function(){return e.CHM(o),e.oxw().applyStatusFilter("stopped")}),e._uU(13,"stopped"),e.qZA(),e.qZA(),e.TgZ(14,"mat-optgroup",13),e.TgZ(15,"mat-option",14),e.NdJ("onSelectionChange",function(){return e.CHM(o),e.oxw().applyCaptureFilter("capture")}),e._uU(16,"active capture(s)"),e.qZA(),e.TgZ(17,"mat-option",15),e.NdJ("onSelectionChange",function(){return e.CHM(o),e.oxw().applyCaptureFilter("packet")}),e._uU(18,"active packet captures"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",16),e.TgZ(20,"mat-select",17),e.NdJ("selectionChange",function(){return e.CHM(o),e.oxw().setSortingOrder()})("valueChange",function(n){return e.CHM(o),e.oxw().sortingOrder=n}),e.TgZ(21,"mat-option",18),e._uU(22,"sort by name ascending"),e.qZA(),e.TgZ(23,"mat-option",19),e._uU(24,"sort by name descending"),e.qZA(),e.qZA(),e.qZA(),e._UZ(25,"mat-divider",20),e.TgZ(26,"div",21),e.YNc(27,A,8,6,"div",22),e.qZA(),e.qZA(),e.qZA(),e.TgZ(28,"mat-tab",23),e.NdJ("click",function(){return e.CHM(o),e.oxw().toggleTopologyVisibility(!1)}),e.TgZ(29,"div",6),e.TgZ(30,"div",24),e.YNc(31,k,9,5,"div",22),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&s){var t=e.oxw();e.Q6J("ngStyle",t.style)("ngClass",e.VKq(9,N,t.isLightThemeEnabled))("validateResize",t.validate)("resizeEdges",e.DdM(11,U))("enableGhostResize",!0),e.xp6(20),e.Q6J("value",t.sortingOrder),e.xp6(6),e.Q6J("ngStyle",t.styleInside),e.xp6(1),e.Q6J("ngForOf",t.filteredNodes),e.xp6(4),e.Q6J("ngForOf",t.computes)}}var R=function(){var s=function(){function a(o,t,i,n,c){(0,m.Z)(this,a),this.nodesDataSource=o,this.projectService=t,this.computeService=i,this.linksDataSource=n,this.themeService=c,this.closeTopologySummary=new e.vpe,this.style={},this.styleInside={height:"280px"},this.subscriptions=[],this.nodes=[],this.filteredNodes=[],this.sortingOrder="asc",this.startedStatusFilterEnabled=!1,this.suspendedStatusFilterEnabled=!1,this.stoppedStatusFilterEnabled=!1,this.captureFilterEnabled=!1,this.packetFilterEnabled=!1,this.computes=[],this.isTopologyVisible=!0,this.isDraggingEnabled=!1,this.isLightThemeEnabled=!1}return(0,h.Z)(a,[{key:"ngOnInit",value:function(){var t=this;this.isLightThemeEnabled="light"===this.themeService.getActualTheme(),this.subscriptions.push(this.nodesDataSource.changes.subscribe(function(i){t.nodes=i,t.nodes.forEach(function(n){("0.0.0.0"===n.console_host||"0:0:0:0:0:0:0:0"===n.console_host||"::"===n.console_host)&&(n.console_host=t.server.host)}),t.filteredNodes=i.sort("asc"===t.sortingOrder?t.compareAsc:t.compareDesc)})),this.projectService.getStatistics(this.server,this.project.project_id).subscribe(function(i){t.projectsStatistics=i}),this.computeService.getComputes(this.server).subscribe(function(i){t.computes=i}),this.style={top:"60px",right:"0px",width:"320px",height:"400px"}}},{key:"toggleDragging",value:function(t){this.isDraggingEnabled=t}},{key:"dragWidget",value:function(t){var i=Number(t.movementX),n=Number(t.movementY),c=Number(this.style.width.split("px")[0]),r=Number(this.style.height.split("px")[0]),p=Number(this.style.top.split("px")[0])+n;if(this.style.left){var z=Number(this.style.left.split("px")[0])+i;this.style={position:"fixed",left:"".concat(z,"px"),top:"".concat(p,"px"),width:"".concat(c,"px"),height:"".concat(r,"px")}}else{var q=Number(this.style.right.split("px")[0])-i;this.style={position:"fixed",right:"".concat(q,"px"),top:"".concat(p,"px"),width:"".concat(c,"px"),height:"".concat(r,"px")}}}},{key:"validate",value:function(t){return!(t.rectangle.width&&t.rectangle.height&&(t.rectangle.width<290||t.rectangle.height<260))}},{key:"onResizeEnd",value:function(t){this.style={position:"fixed",left:"".concat(t.rectangle.left,"px"),top:"".concat(t.rectangle.top,"px"),width:"".concat(t.rectangle.width,"px"),height:"".concat(t.rectangle.height,"px")},this.styleInside={height:"".concat(t.rectangle.height-120,"px")}}},{key:"toggleTopologyVisibility",value:function(t){this.isTopologyVisible=t}},{key:"compareAsc",value:function(t,i){return t.name - + @@ -46,6 +46,6 @@ gtag('config', 'G-5D6FZL9923'); - + \ No newline at end of file diff --git a/gns3server/static/web-ui/main.13bda60ce561ce91.js b/gns3server/static/web-ui/main.13bda60ce561ce91.js deleted file mode 100644 index 33a7a9db..00000000 --- a/gns3server/static/web-ui/main.13bda60ce561ce91.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkgns3_web_ui=self.webpackChunkgns3_web_ui||[]).push([[179],{82908:function(ue){ue.exports=function(f,B){(null==B||B>f.length)&&(B=f.length);for(var U=0,V=new Array(B);U=0;ge--)(Ce=K[ge])&&(oe=(de<3?Ce(oe):de>3?Ce(fe,ce,oe):Ce(fe,ce))||oe);return de>3&&oe&&Object.defineProperty(fe,ce,oe),oe}function R(K,fe){return function(ce,he){fe(ce,he,K)}}function b(K,fe){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(K,fe)}function E(K,fe,ce,he){return new(ce||(ce=Promise))(function(oe,Ce){function ge(Qe){try{De(he.next(Qe))}catch(et){Ce(et)}}function qe(Qe){try{De(he.throw(Qe))}catch(et){Ce(et)}}function De(Qe){Qe.done?oe(Qe.value):function(oe){return oe instanceof ce?oe:new ce(function(Ce){Ce(oe)})}(Qe.value).then(ge,qe)}De((he=he.apply(K,fe||[])).next())})}f.d(j,{gn:function(){return w},fM:function(){return R},w6:function(){return b},mG:function(){return E}})},66604:function(ue,j,f){"use strict";f.d(j,{R:function(){return V}});var B=f(26986),U={};function V(){return(0,B.KV)()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:U}},26986:function(ue,j,f){"use strict";function B(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function U(L,w){return L.require(w)}f.d(j,{KV:function(){return B},l$:function(){return U}}),ue=f.hmd(ue)},76865:function(ue,j,f){"use strict";f.d(j,{yW:function(){return E},ph:function(){return x}});var B=f(66604),U=f(26986);ue=f.hmd(ue);var V={nowSeconds:function(){return Date.now()/1e3}},R=(0,U.KV)()?function(){try{return(0,U.l$)(ue,"perf_hooks").performance}catch(v){return}}():function(){var D=(0,B.R)().performance;if(D&&D.now)return{now:function(){return D.now()},timeOrigin:Date.now()-D.now()}}(),b=void 0===R?V:{nowSeconds:function(){return(R.timeOrigin+R.now())/1e3}},E=V.nowSeconds.bind(V),x=b.nowSeconds.bind(b);!function(){var D=(0,B.R)().performance;if(D&&D.now){var v=36e5,g=D.now(),M=Date.now(),k=D.timeOrigin?Math.abs(D.timeOrigin+g-M):v,S=k0||navigator.msMaxTouchPoints>0);function X(st,tt){var Zt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,Tt=Math.abs(st-tt);return Tt=Zt.top&&tt<=Zt.bottom}function K(st){var tt=st.clientX,Zt=st.rect;return tt>=Zt.left&&tt<=Zt.right}function fe(st){var tt=st.clientX,Zt=st.clientY,mt=st.allowedEdges,Yt=st.cursorPrecision,un=st.elm.nativeElement.getBoundingClientRect(),Ut={};return mt.left&&X(tt,un.left,Yt)&&ae({clientY:Zt,rect:un})&&(Ut.left=!0),mt.right&&X(tt,un.right,Yt)&&ae({clientY:Zt,rect:un})&&(Ut.right=!0),mt.top&&X(Zt,un.top,Yt)&&K({clientX:tt,rect:un})&&(Ut.top=!0),mt.bottom&&X(Zt,un.bottom,Yt)&&K({clientX:tt,rect:un})&&(Ut.bottom=!0),Ut}var ce=Object.freeze({topLeft:"nw-resize",topRight:"ne-resize",bottomLeft:"sw-resize",bottomRight:"se-resize",leftOrRight:"col-resize",topOrBottom:"row-resize"});function he(st,tt){return st.left&&st.top?tt.topLeft:st.right&&st.top?tt.topRight:st.left&&st.bottom?tt.bottomLeft:st.right&&st.bottom?tt.bottomRight:st.left||st.right?tt.leftOrRight:st.top||st.bottom?tt.topOrBottom:""}function de(st){var Zt=st.initialRectangle,Tt=st.newRectangle,mt={};return Object.keys(st.edges).forEach(function(Yt){mt[Yt]=(Tt[Yt]||0)-(Zt[Yt]||0)}),mt}var oe="resize-active",bt=function(){var st=function(){function tt(Zt,Tt,mt,Yt){(0,U.Z)(this,tt),this.platformId=Zt,this.renderer=Tt,this.elm=mt,this.zone=Yt,this.resizeEdges={},this.enableGhostResize=!1,this.resizeSnapGrid={},this.resizeCursors=ce,this.resizeCursorPrecision=3,this.ghostElementPositioning="fixed",this.allowNegativeResizes=!1,this.mouseMoveThrottleMS=50,this.resizeStart=new w.vpe,this.resizing=new w.vpe,this.resizeEnd=new w.vpe,this.mouseup=new R.xQ,this.mousedown=new R.xQ,this.mousemove=new R.xQ,this.destroy$=new R.xQ,this.resizeEdges$=new R.xQ,this.pointerEventListeners=_e.getInstance(Tt,Yt)}return(0,V.Z)(tt,[{key:"ngOnInit",value:function(){var Ut,Tt=this,mt=(0,b.T)(this.pointerEventListeners.pointerDown,this.mousedown),Yt=(0,b.T)(this.pointerEventListeners.pointerMove,this.mousemove).pipe((0,O.b)(function(Zn){var Vn=Zn.event;if(Ut)try{Vn.preventDefault()}catch(zn){}}),(0,y.B)()),un=(0,b.T)(this.pointerEventListeners.pointerUp,this.mouseup),Mn=function(){Ut&&Ut.clonedNode&&(Tt.elm.nativeElement.parentElement.removeChild(Ut.clonedNode),Tt.renderer.setStyle(Tt.elm.nativeElement,"visibility","inherit"))},On=function(){return Object.assign({},ce,Tt.resizeCursors)};this.resizeEdges$.pipe((0,T.O)(this.resizeEdges),(0,D.U)(function(){return Tt.resizeEdges&&Object.keys(Tt.resizeEdges).some(function(Zn){return!!Tt.resizeEdges[Zn]})}),(0,v.w)(function(Zn){return Zn?Yt:E.E}),(0,g.e)(this.mouseMoveThrottleMS),(0,M.R)(this.destroy$)).subscribe(function(Zn){var Wn=fe({clientX:Zn.clientX,clientY:Zn.clientY,elm:Tt.elm,allowedEdges:Tt.resizeEdges,cursorPrecision:Tt.resizeCursorPrecision}),nr=On();if(!Ut){var ar=he(Wn,nr);Tt.renderer.setStyle(Tt.elm.nativeElement,"cursor",ar)}Tt.setElementClass(Tt.elm,"resize-left-hover",!0===Wn.left),Tt.setElementClass(Tt.elm,"resize-right-hover",!0===Wn.right),Tt.setElementClass(Tt.elm,"resize-top-hover",!0===Wn.top),Tt.setElementClass(Tt.elm,"resize-bottom-hover",!0===Wn.bottom)}),mt.pipe((0,k.zg)(function(Zn){function Vn(nr){return{clientX:nr.clientX-Zn.clientX,clientY:nr.clientY-Zn.clientY}}var zn=function(){var ar={x:1,y:1};return Ut&&(Tt.resizeSnapGrid.left&&Ut.edges.left?ar.x=+Tt.resizeSnapGrid.left:Tt.resizeSnapGrid.right&&Ut.edges.right&&(ar.x=+Tt.resizeSnapGrid.right),Tt.resizeSnapGrid.top&&Ut.edges.top?ar.y=+Tt.resizeSnapGrid.top:Tt.resizeSnapGrid.bottom&&Ut.edges.bottom&&(ar.y=+Tt.resizeSnapGrid.bottom)),ar};function Wn(nr,ar){return{x:Math.ceil(nr.clientX/ar.x),y:Math.ceil(nr.clientY/ar.y)}}return(0,b.T)(Yt.pipe((0,S.q)(1)).pipe((0,D.U)(function(nr){return[,nr]})),Yt.pipe((0,I.G)())).pipe((0,D.U)(function(nr){var ar=(0,B.Z)(nr,2),Sr=ar[0],Qn=ar[1];return[Sr&&Vn(Sr),Vn(Qn)]})).pipe((0,F.h)(function(nr){var ar=(0,B.Z)(nr,2),Sr=ar[0],Qn=ar[1];if(!Sr)return!0;var rn=zn(),_n=Wn(Sr,rn),kt=Wn(Qn,rn);return _n.x!==kt.x||_n.y!==kt.y})).pipe((0,D.U)(function(nr){var Sr=(0,B.Z)(nr,2)[1],Qn=zn();return{clientX:Math.round(Sr.clientX/Qn.x)*Qn.x,clientY:Math.round(Sr.clientY/Qn.y)*Qn.y}})).pipe((0,M.R)((0,b.T)(un,mt)))})).pipe((0,F.h)(function(){return!!Ut})).pipe((0,D.U)(function(Zn){return W(Ut.startingRect,Ut.edges,Zn.clientX,Zn.clientY)})).pipe((0,F.h)(function(Zn){return Tt.allowNegativeResizes||!!(Zn.height&&Zn.width&&Zn.height>0&&Zn.width>0)})).pipe((0,F.h)(function(Zn){return!Tt.validateResize||Tt.validateResize({rectangle:Zn,edges:de({edges:Ut.edges,initialRectangle:Ut.startingRect,newRectangle:Zn})})}),(0,M.R)(this.destroy$)).subscribe(function(Zn){Ut&&Ut.clonedNode&&(Tt.renderer.setStyle(Ut.clonedNode,"height","".concat(Zn.height,"px")),Tt.renderer.setStyle(Ut.clonedNode,"width","".concat(Zn.width,"px")),Tt.renderer.setStyle(Ut.clonedNode,"top","".concat(Zn.top,"px")),Tt.renderer.setStyle(Ut.clonedNode,"left","".concat(Zn.left,"px"))),Tt.resizing.observers.length>0&&Tt.zone.run(function(){Tt.resizing.emit({edges:de({edges:Ut.edges,initialRectangle:Ut.startingRect,newRectangle:Zn}),rectangle:Zn})}),Ut.currentRect=Zn}),mt.pipe((0,D.U)(function(Zn){return Zn.edges||fe({clientX:Zn.clientX,clientY:Zn.clientY,elm:Tt.elm,allowedEdges:Tt.resizeEdges,cursorPrecision:Tt.resizeCursorPrecision})})).pipe((0,F.h)(function(Zn){return Object.keys(Zn).length>0}),(0,M.R)(this.destroy$)).subscribe(function(Zn){Ut&&Mn();var Vn=function(st,tt){var Zt=0,Tt=0,mt=st.nativeElement.style,un=["transform","-ms-transform","-moz-transform","-o-transform"].map(function(Mn){return mt[Mn]}).find(function(Mn){return!!Mn});if(un&&un.includes("translate")&&(Zt=un.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$1"),Tt=un.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$2")),"absolute"===tt)return{height:st.nativeElement.offsetHeight,width:st.nativeElement.offsetWidth,top:st.nativeElement.offsetTop-Tt,bottom:st.nativeElement.offsetHeight+st.nativeElement.offsetTop-Tt,left:st.nativeElement.offsetLeft-Zt,right:st.nativeElement.offsetWidth+st.nativeElement.offsetLeft-Zt};var Ut=st.nativeElement.getBoundingClientRect();return{height:Ut.height,width:Ut.width,top:Ut.top-Tt,bottom:Ut.bottom-Tt,left:Ut.left-Zt,right:Ut.right-Zt,scrollTop:st.nativeElement.scrollTop,scrollLeft:st.nativeElement.scrollLeft}}(Tt.elm,Tt.ghostElementPositioning);Ut={edges:Zn,startingRect:Vn,currentRect:Vn};var zn=On(),Wn=he(Ut.edges,zn);Tt.renderer.setStyle(document.body,"cursor",Wn),Tt.setElementClass(Tt.elm,oe,!0),Tt.enableGhostResize&&(Ut.clonedNode=Tt.elm.nativeElement.cloneNode(!0),Tt.elm.nativeElement.parentElement.appendChild(Ut.clonedNode),Tt.renderer.setStyle(Tt.elm.nativeElement,"visibility","hidden"),Tt.renderer.setStyle(Ut.clonedNode,"position",Tt.ghostElementPositioning),Tt.renderer.setStyle(Ut.clonedNode,"left","".concat(Ut.startingRect.left,"px")),Tt.renderer.setStyle(Ut.clonedNode,"top","".concat(Ut.startingRect.top,"px")),Tt.renderer.setStyle(Ut.clonedNode,"height","".concat(Ut.startingRect.height,"px")),Tt.renderer.setStyle(Ut.clonedNode,"width","".concat(Ut.startingRect.width,"px")),Tt.renderer.setStyle(Ut.clonedNode,"cursor",he(Ut.edges,zn)),Tt.renderer.addClass(Ut.clonedNode,"resize-ghost-element"),Ut.clonedNode.scrollTop=Ut.startingRect.scrollTop,Ut.clonedNode.scrollLeft=Ut.startingRect.scrollLeft),Tt.resizeStart.observers.length>0&&Tt.zone.run(function(){Tt.resizeStart.emit({edges:de({edges:Zn,initialRectangle:Vn,newRectangle:Vn}),rectangle:W(Vn,{},0,0)})})}),un.pipe((0,M.R)(this.destroy$)).subscribe(function(){Ut&&(Tt.renderer.removeClass(Tt.elm.nativeElement,oe),Tt.renderer.setStyle(document.body,"cursor",""),Tt.renderer.setStyle(Tt.elm.nativeElement,"cursor",""),Tt.resizeEnd.observers.length>0&&Tt.zone.run(function(){Tt.resizeEnd.emit({edges:de({edges:Ut.edges,initialRectangle:Ut.startingRect,newRectangle:Ut.currentRect}),rectangle:Ut.currentRect})}),Mn(),Ut=null)})}},{key:"ngOnChanges",value:function(Tt){Tt.resizeEdges&&this.resizeEdges$.next(this.resizeEdges)}},{key:"ngOnDestroy",value:function(){(0,L.NF)(this.platformId)&&this.renderer.setStyle(document.body,"cursor",""),this.mousedown.complete(),this.mouseup.complete(),this.mousemove.complete(),this.resizeEdges$.complete(),this.destroy$.next()}},{key:"setElementClass",value:function(Tt,mt,Yt){Yt?this.renderer.addClass(Tt.nativeElement,mt):this.renderer.removeClass(Tt.nativeElement,mt)}}]),tt}();return st.\u0275fac=function(Zt){return new(Zt||st)(w.Y36(w.Lbi),w.Y36(w.Qsj),w.Y36(w.SBq),w.Y36(w.R0b))},st.\u0275dir=w.lG2({type:st,selectors:[["","mwlResizable",""]],inputs:{resizeEdges:"resizeEdges",enableGhostResize:"enableGhostResize",resizeSnapGrid:"resizeSnapGrid",resizeCursors:"resizeCursors",resizeCursorPrecision:"resizeCursorPrecision",ghostElementPositioning:"ghostElementPositioning",allowNegativeResizes:"allowNegativeResizes",mouseMoveThrottleMS:"mouseMoveThrottleMS",validateResize:"validateResize"},outputs:{resizeStart:"resizeStart",resizing:"resizing",resizeEnd:"resizeEnd"},exportAs:["mwlResizable"],features:[w.TTD]}),st}(),_e=function(){function st(tt,Zt){(0,U.Z)(this,st),this.pointerDown=new x.y(function(Tt){var mt,Yt;return Zt.runOutsideAngular(function(){mt=tt.listen("document","mousedown",function(un){Tt.next({clientX:un.clientX,clientY:un.clientY,event:un})}),G&&(Yt=tt.listen("document","touchstart",function(un){Tt.next({clientX:un.touches[0].clientX,clientY:un.touches[0].clientY,event:un})}))}),function(){mt(),G&&Yt()}}).pipe((0,y.B)()),this.pointerMove=new x.y(function(Tt){var mt,Yt;return Zt.runOutsideAngular(function(){mt=tt.listen("document","mousemove",function(un){Tt.next({clientX:un.clientX,clientY:un.clientY,event:un})}),G&&(Yt=tt.listen("document","touchmove",function(un){Tt.next({clientX:un.targetTouches[0].clientX,clientY:un.targetTouches[0].clientY,event:un})}))}),function(){mt(),G&&Yt()}}).pipe((0,y.B)()),this.pointerUp=new x.y(function(Tt){var mt,Yt,un;return Zt.runOutsideAngular(function(){mt=tt.listen("document","mouseup",function(Ut){Tt.next({clientX:Ut.clientX,clientY:Ut.clientY,event:Ut})}),G&&(Yt=tt.listen("document","touchend",function(Ut){Tt.next({clientX:Ut.changedTouches[0].clientX,clientY:Ut.changedTouches[0].clientY,event:Ut})}),un=tt.listen("document","touchcancel",function(Ut){Tt.next({clientX:Ut.changedTouches[0].clientX,clientY:Ut.changedTouches[0].clientY,event:Ut})}))}),function(){mt(),G&&(Yt(),un())}}).pipe((0,y.B)())}return(0,V.Z)(st,null,[{key:"getInstance",value:function(Zt,Tt){return st.instance||(st.instance=new st(Zt,Tt)),st.instance}}]),st}(),He=function(){var st=function tt(){(0,U.Z)(this,tt)};return st.\u0275fac=function(Zt){return new(Zt||st)},st.\u0275mod=w.oAB({type:st}),st.\u0275inj=w.cJS({}),st}()},87124:function(ue,j,f){var B=f(94518),U=f(23050),V=f(99262),L=f(44900),w=/^\s*\|\s*/;function b(Z,O){var y={};for(var T in Z)y[T]=Z[T].syntax||Z[T];for(var D in O)D in Z?O[D].syntax?y[D]=w.test(O[D].syntax)?y[D]+" "+O[D].syntax.trim():O[D].syntax:delete y[D]:O[D].syntax&&(y[D]=O[D].syntax.replace(w,""));return y}function E(Z){var O={};for(var y in Z)O[y]=Z[y].syntax;return O}ue.exports={types:b(V,L.syntaxes),atrules:function(Z,O){var y={};for(var T in Z){var D=O[T]&&O[T].descriptors||null;y[T]={prelude:T in O&&"prelude"in O[T]?O[T].prelude:Z[T].prelude||null,descriptors:Z[T].descriptors?b(Z[T].descriptors,D||{}):D&&E(D)}}for(var v in O)hasOwnProperty.call(Z,v)||(y[v]={prelude:O[v].prelude||null,descriptors:O[v].descriptors&&E(O[v].descriptors)});return y}(function(Z){var O=Object.create(null);for(var y in Z){var T=Z[y],D=null;if(T.descriptors)for(var v in D=Object.create(null),T.descriptors)D[v]=T.descriptors[v].syntax;O[y.substr(1)]={prelude:T.syntax.trim().match(/^@\S+\s+([^;\{]*)/)[1].trim()||null,descriptors:D}}return O}(B),L.atrules),properties:b(U,L.properties)}},40174:function(ue){function j(L){return{prev:null,next:null,data:L}}function f(L,w,R){var b;return null!==U?(b=U,U=U.cursor,b.prev=w,b.next=R,b.cursor=L.cursor):b={prev:w,next:R,cursor:L.cursor},L.cursor=b,b}function B(L){var w=L.cursor;L.cursor=w.cursor,w.prev=null,w.next=null,w.cursor=U,U=w}var U=null,V=function(){this.cursor=null,this.head=null,this.tail=null};V.createItem=j,V.prototype.createItem=j,V.prototype.updateCursors=function(L,w,R,b){for(var E=this.cursor;null!==E;)E.prev===L&&(E.prev=w),E.next===R&&(E.next=b),E=E.cursor},V.prototype.getSize=function(){for(var L=0,w=this.head;w;)L++,w=w.next;return L},V.prototype.fromArray=function(L){var w=null;this.head=null;for(var R=0;R0?U(x.charCodeAt(0)):0;g100&&(g=y-60+3,y=58);for(var M=T;M<=D;M++)M>=0&&M0&&Z[M].length>g?"\u2026":"")+Z[M].substr(g,98)+(Z[M].length>g+100-1?"\u2026":""));return[x(T,O),new Array(y+v+2).join("-")+"^",x(O,D)].filter(Boolean).join("\n")}ue.exports=function(E,x,Z,O,y){var T=B("SyntaxError",E);return T.source=x,T.offset=Z,T.line=O,T.column=y,T.sourceFragment=function(D){return w(T,isNaN(D)?0:D)},Object.defineProperty(T,"formattedMessage",{get:function(){return"Parse error: "+T.message+"\n"+w(T,2)}}),T.parseError={offset:Z,line:O,column:y},T}},26922:function(ue,j,f){var B=f(74715),U=B.TYPE,V=B.NAME,w=f(22390).cmpStr,R=U.EOF,b=U.WhiteSpace,E=U.Comment,x=16777215,Z=24,O=function(){this.offsetAndType=null,this.balance=null,this.reset()};O.prototype={reset:function(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset},lookupType:function(T){return(T+=this.tokenIndex)>Z:R},lookupOffset:function(T){return(T+=this.tokenIndex)0?T>Z,this.source,M)){case 1:break e;case 2:v++;break e;default:this.balance[g]===v&&(v=g),M=this.offsetAndType[v]&x}return v-this.tokenIndex},isBalanceEdge:function(T){return this.balance[this.tokenIndex]>Z===b;T++,D++);D>0&&this.skip(D)},skipSC:function(){for(;this.tokenType===b||this.tokenType===E;)this.next()},skip:function(T){var D=this.tokenIndex+T;D>Z,this.tokenEnd=D&x):(this.tokenIndex=this.tokenCount,this.next())},next:function(){var T=this.tokenIndex+1;T>Z,this.tokenEnd=T&x):(this.tokenIndex=this.tokenCount,this.eof=!0,this.tokenType=R,this.tokenStart=this.tokenEnd=this.source.length)},forEachToken:function(T){for(var D=0,v=this.firstCharOffset;D>Z,g,k,D)}},dump:function(){var T=this,D=new Array(this.tokenCount);return this.forEachToken(function(v,g,M,k){D[k]={idx:k,type:V[v],chunk:T.source.substring(g,M),balance:T.balance[k]}}),D}},ue.exports=O},16418:function(ue){var f="undefined"!=typeof Uint32Array?Uint32Array:Array;ue.exports=function(U,V){return null===U||U.length";break;case"Property":E="<'"+L.name+"'>";break;case"Keyword":E=L.name;break;case"AtKeyword":E="@"+L.name;break;case"Function":E=L.name+"(";break;case"String":case"Token":E=L.value;break;case"Comma":E=",";break;default:throw new Error("Unknown node type `"+L.type+"`")}return w(E,L)}ue.exports=function(L,w){var R=j,b=!1,E=!1;return"function"==typeof w?R=w:w&&(b=Boolean(w.forceBraces),E=Boolean(w.compact),"function"==typeof w.decorate&&(R=w.decorate)),V(L,R,b,E)}},27355:function(ue,j,f){ue.exports={SyntaxError:f(89033),parse:f(90200),generate:f(68018),walk:f(399)}},90200:function(ue,j,f){var B=f(510),X=123,K=function(mt){for(var Yt="function"==typeof Uint32Array?new Uint32Array(128):new Array(128),un=0;un<128;un++)Yt[un]=mt(String.fromCharCode(un))?1:0;return Yt}(function(mt){return/[a-zA-Z0-9\-]/.test(mt)}),fe={" ":1,"&&":2,"||":3,"|":4};function he(mt){return mt.substringToPos(mt.findWsEnd(mt.pos))}function de(mt){for(var Yt=mt.pos;Yt=128||0===K[un])break}return mt.pos===Yt&&mt.error("Expect a keyword"),mt.substringToPos(Yt)}function oe(mt){for(var Yt=mt.pos;Yt57)break}return mt.pos===Yt&&mt.error("Expect a number"),mt.substringToPos(Yt)}function Ce(mt){var Yt=mt.str.indexOf("'",mt.pos+1);return-1===Yt&&(mt.pos=mt.str.length,mt.error("Expect an apostrophe")),mt.substringToPos(Yt+1)}function ge(mt){var Yt,un=null;return mt.eat(X),Yt=oe(mt),44===mt.charCode()?(mt.pos++,125!==mt.charCode()&&(un=oe(mt))):un=Yt,mt.eat(125),{min:Number(Yt),max:un?Number(un):0}}function De(mt,Yt){var un=function(mt){var Yt=null,un=!1;switch(mt.charCode()){case 42:mt.pos++,Yt={min:0,max:0};break;case 43:mt.pos++,Yt={min:1,max:0};break;case 63:mt.pos++,Yt={min:0,max:1};break;case 35:mt.pos++,un=!0,Yt=mt.charCode()===X?ge(mt):{min:1,max:0};break;case X:Yt=ge(mt);break;default:return null}return{type:"Multiplier",comma:un,min:Yt.min,max:Yt.max,term:null}}(mt);return null!==un?(un.term=Yt,un):Yt}function Qe(mt){var Yt=mt.peek();return""===Yt?null:{type:"Token",value:Yt}}function He(mt,Yt){function un(Zn,Vn){return{type:"Group",terms:Zn,combinator:Vn,disallowEmpty:!1,explicit:!1}}for(Yt=Object.keys(Yt).sort(function(Zn,Vn){return fe[Zn]-fe[Vn]});Yt.length>0;){for(var Ut=Yt.shift(),Mn=0,On=0;Mn1&&(mt.splice(On,Mn-On,un(mt.slice(On,Mn),Ut)),Mn=On+1),On=-1))}-1!==On&&Yt.length&&mt.splice(On,Mn-On,un(mt.slice(On,Mn),Ut))}return Ut}function st(mt){for(var Ut,Yt=[],un={},Mn=null,On=mt.pos;Ut=Zt(mt);)"Spaces"!==Ut.type&&("Combinator"===Ut.type?((null===Mn||"Combinator"===Mn.type)&&(mt.pos=On,mt.error("Unexpected combinator")),un[Ut.value]=!0):null!==Mn&&"Combinator"!==Mn.type&&(un[" "]=!0,Yt.push({type:"Combinator",value:" "})),Yt.push(Ut),Mn=Ut,On=mt.pos);return null!==Mn&&"Combinator"===Mn.type&&(mt.pos-=On,mt.error("Unexpected combinator")),{type:"Group",terms:Yt,combinator:He(Yt,un)||" ",disallowEmpty:!1,explicit:!1}}function Zt(mt){var Yt=mt.charCode();if(Yt<128&&1===K[Yt])return function(mt){var Yt;return Yt=de(mt),40===mt.charCode()?(mt.pos++,{type:"Function",name:Yt}):De(mt,{type:"Keyword",name:Yt})}(mt);switch(Yt){case 93:case 42:case 43:case 63:case 35:case 33:break;case 91:return De(mt,function(mt){var Yt;return mt.eat(91),Yt=st(mt),mt.eat(93),Yt.explicit=!0,33===mt.charCode()&&(mt.pos++,Yt.disallowEmpty=!0),Yt}(mt));case 60:return 39===mt.nextCharCode()?function(mt){var Yt;return mt.eat(60),mt.eat(39),Yt=de(mt),mt.eat(39),mt.eat(62),De(mt,{type:"Property",name:Yt})}(mt):function(mt){var Yt,un=null;return mt.eat(60),Yt=de(mt),40===mt.charCode()&&41===mt.nextCharCode()&&(mt.pos+=2,Yt+="()"),91===mt.charCodeAt(mt.findWsEnd(mt.pos))&&(he(mt),un=function(mt){var Yt=null,un=null,Ut=1;return mt.eat(91),45===mt.charCode()&&(mt.peek(),Ut=-1),-1==Ut&&8734===mt.charCode()?mt.peek():Yt=Ut*Number(oe(mt)),he(mt),mt.eat(44),he(mt),8734===mt.charCode()?mt.peek():(Ut=1,45===mt.charCode()&&(mt.peek(),Ut=-1),un=Ut*Number(oe(mt))),mt.eat(93),null===Yt&&null===un?null:{type:"Range",min:Yt,max:un}}(mt)),mt.eat(62),De(mt,{type:"Type",name:Yt,opts:un})}(mt);case 124:return{type:"Combinator",value:mt.substringToPos(124===mt.nextCharCode()?mt.pos+2:mt.pos+1)};case 38:return mt.pos++,mt.eat(38),{type:"Combinator",value:"&&"};case 44:return mt.pos++,{type:"Comma"};case 39:return De(mt,{type:"String",value:Ce(mt)});case 32:case 9:case 10:case 13:case 12:return{type:"Spaces",value:he(mt)};case 64:return(Yt=mt.nextCharCode())<128&&1===K[Yt]?(mt.pos++,{type:"AtKeyword",name:de(mt)}):Qe(mt);case X:if((Yt=mt.nextCharCode())<48||Yt>57)return Qe(mt);break;default:return Qe(mt)}}function Tt(mt){var Yt=new B(mt),un=st(Yt);return Yt.pos!==mt.length&&Yt.error("Unexpected input"),1===un.terms.length&&"Group"===un.terms[0].type&&(un=un.terms[0]),un}Tt("[a&&#|<'c'>*||e() f{2} /,(% g#{1,2} h{2,})]!"),ue.exports=Tt},510:function(ue,j,f){var B=f(89033),b=function(x){this.str=x,this.pos=0};b.prototype={charCodeAt:function(x){return x");function M(X,W,Y){var ae={};for(var K in X)X[K].syntax&&(ae[K]=Y?X[K].syntax:b(X[K].syntax,{compact:W}));return ae}function k(X,W,Y){for(var ae={},K=0,fe=Object.entries(X);K3&&void 0!==arguments[3]?arguments[3]:null,fe={type:Y,name:ae},ce={type:Y,name:ae,parent:K,syntax:null,match:null};return"function"==typeof W?ce.match=Z(W,fe):("string"==typeof W?Object.defineProperty(ce,"syntax",{get:function(){return Object.defineProperty(ce,"syntax",{value:R(W)}),ce.syntax}}):ce.syntax=W,Object.defineProperty(ce,"match",{get:function(){return Object.defineProperty(ce,"match",{value:Z(ce.syntax,fe)}),ce.match}})),ce},addAtrule_:function(W,Y){var ae=this;!Y||(this.atrules[W]={type:"Atrule",name:W,prelude:Y.prelude?this.createDescriptor(Y.prelude,"AtrulePrelude",W):null,descriptors:Y.descriptors?Object.keys(Y.descriptors).reduce(function(K,fe){return K[fe]=ae.createDescriptor(Y.descriptors[fe],"AtruleDescriptor",fe,W),K},{}):null})},addProperty_:function(W,Y){!Y||(this.properties[W]=this.createDescriptor(Y,"Property",W))},addType_:function(W,Y){!Y||(this.types[W]=this.createDescriptor(Y,"Type",W),Y===w["-ms-legacy-expression"]&&(this.valueCommonSyntax=g))},checkAtruleName:function(W){if(!this.getAtrule(W))return new U("Unknown at-rule","@"+W)},checkAtrulePrelude:function(W,Y){var ae=this.checkAtruleName(W);if(ae)return ae;var K=this.getAtrule(W);return!K.prelude&&Y?new SyntaxError("At-rule `@"+W+"` should not contain a prelude"):K.prelude&&!Y?new SyntaxError("At-rule `@"+W+"` should contain a prelude"):void 0},checkAtruleDescriptorName:function(W,Y){var ae=this.checkAtruleName(W);if(ae)return ae;var K=this.getAtrule(W),fe=L.keyword(Y);return K.descriptors?K.descriptors[fe.name]||K.descriptors[fe.basename]?void 0:new U("Unknown at-rule descriptor",Y):new SyntaxError("At-rule `@"+W+"` has no known descriptors")},checkPropertyName:function(W){return L.property(W).custom?new Error("Lexer matching doesn't applicable for custom properties"):this.getProperty(W)?void 0:new U("Unknown property",W)},matchAtrulePrelude:function(W,Y){var ae=this.checkAtrulePrelude(W,Y);return ae?I(null,ae):Y?F(this,this.getAtrule(W).prelude,Y,!1):I(null,null)},matchAtruleDescriptor:function(W,Y,ae){var K=this.checkAtruleDescriptorName(W,Y);if(K)return I(null,K);var fe=this.getAtrule(W),ce=L.keyword(Y);return F(this,fe.descriptors[ce.name]||fe.descriptors[ce.basename],ae,!1)},matchDeclaration:function(W){return"Declaration"!==W.type?I(null,new Error("Not a Declaration node")):this.matchProperty(W.property,W.value)},matchProperty:function(W,Y){var ae=this.checkPropertyName(W);return ae?I(null,ae):F(this,this.getProperty(W),Y,!0)},matchType:function(W,Y){var ae=this.getType(W);return ae?F(this,ae,Y,!1):I(null,new U("Unknown type",W))},match:function(W,Y){return"string"==typeof W||W&&W.type?(("string"==typeof W||!W.match)&&(W=this.createDescriptor(W,"Type","anonymous")),F(this,W,Y,!1)):I(null,new U("Bad syntax"))},findValueFragments:function(W,Y,ae,K){return T.matchFragments(this,Y,this.matchProperty(W,Y),ae,K)},findDeclarationValueFragments:function(W,Y,ae){return T.matchFragments(this,W.value,this.matchDeclaration(W),Y,ae)},findAllFragments:function(W,Y,ae){var K=[];return this.syntax.walk(W,{visit:"Declaration",enter:function(fe){K.push.apply(K,this.findDeclarationValueFragments(fe,Y,ae))}.bind(this)}),K},getAtrule:function(W){var Y=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],ae=L.keyword(W),K=ae.vendor&&Y?this.atrules[ae.name]||this.atrules[ae.basename]:this.atrules[ae.name];return K||null},getAtrulePrelude:function(W){var Y=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],ae=this.getAtrule(W,Y);return ae&&ae.prelude||null},getAtruleDescriptor:function(W,Y){return this.atrules.hasOwnProperty(W)&&this.atrules.declarators&&this.atrules[W].declarators[Y]||null},getProperty:function(W){var Y=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],ae=L.property(W),K=ae.vendor&&Y?this.properties[ae.name]||this.properties[ae.basename]:this.properties[ae.name];return K||null},getType:function(W){return this.types.hasOwnProperty(W)?this.types[W]:null},validate:function(){function W(fe,ce,he,de){if(he.hasOwnProperty(ce))return he[ce];he[ce]=!1,null!==de.syntax&&E(de.syntax,function(oe){if("Type"===oe.type||"Property"===oe.type){var Ce="Type"===oe.type?fe.types:fe.properties,ge="Type"===oe.type?Y:ae;(!Ce.hasOwnProperty(oe.name)||W(fe,oe.name,ge,Ce[oe.name]))&&(he[ce]=!0)}},this)}var Y={},ae={};for(var K in this.types)W(this,K,Y,this.types[K]);for(var K in this.properties)W(this,K,ae,this.properties[K]);return Y=Object.keys(Y).filter(function(fe){return Y[fe]}),ae=Object.keys(ae).filter(function(fe){return ae[fe]}),Y.length||ae.length?{types:Y,properties:ae}:null},dump:function(W,Y){return{generic:this.generic,types:M(this.types,!Y,W),properties:M(this.properties,!Y,W),atrules:k(this.atrules,!Y,W)}},toString:function(){return JSON.stringify(this.dump())}},ue.exports=G},28317:function(ue,j,f){var B=f(61122),U=f(68018),V={offset:0,line:1,column:1};function w(x,Z){var O=x&&x.loc&&x.loc[Z];return O?"line"in O?R(O):O:null}function R(x,Z){var D={offset:x.offset,line:x.line,column:x.column};if(Z){var v=Z.split(/\n|\r\n?|\f/);D.offset+=Z.length,D.line+=v.length-1,D.column=1===v.length?D.column+Z.length:v.pop().length+1}return D}ue.exports={SyntaxReferenceError:function(Z,O){var y=B("SyntaxReferenceError",Z+(O?" `"+O+"`":""));return y.reference=O,y},SyntaxMatchError:function(Z,O,y,T){var D=B("SyntaxMatchError",Z),v=function(x,Z){for(var S,I,O=x.tokens,y=x.longestMatch,T=y1?(S=w(D||Z,"end")||R(V,k),I=R(S)):(S=w(D,"start")||R(w(Z,"start")||V,k.slice(0,v)),I=w(D,"end")||R(S,k.substr(v,g))),{css:k,mismatchOffset:v,mismatchLength:g,start:S,end:I}}(T,y),g=v.css,M=v.mismatchOffset,k=v.mismatchLength,S=v.start,I=v.end;return D.rawMessage=Z,D.syntax=O?U(O):"",D.css=g,D.mismatchOffset=M,D.mismatchLength=k,D.message=Z+"\n syntax: "+D.syntax+"\n value: "+(g||"")+"\n --------"+new Array(D.mismatchOffset+1).join("-")+"^",Object.assign(D,S),D.loc={source:y&&y.loc&&y.loc.source||"",start:S,end:I},D}}},13207:function(ue,j,f){var B=f(32347).isDigit,U=f(32347).cmpChar,V=f(32347).TYPE,L=V.Delim,w=V.WhiteSpace,R=V.Comment,b=V.Ident,E=V.Number,x=V.Dimension,O=45,T=!0;function v(S,I){return null!==S&&S.type===L&&S.value.charCodeAt(0)===I}function g(S,I,F){for(;null!==S&&(S.type===w||S.type===R);)S=F(++I);return I}function M(S,I,F,G){if(!S)return 0;var X=S.value.charCodeAt(I);if(43===X||X===O){if(F)return 0;I++}for(;I0?6:0;if(!B(F)||++I>6)return 0}return I}function v(g,M,k){if(!g)return 0;for(;y(k(M),63);){if(++g>6)return 0;M++}return M}ue.exports=function(M,k){var S=0;if(null===M||M.type!==L||!U(M.value,0,117)||null===(M=k(++S)))return 0;if(y(M,43))return null===(M=k(++S))?0:M.type===L?v(D(M,0,!0),++S,k):y(M,63)?v(1,++S,k):0;if(M.type===R){if(!T(M,43))return 0;var I=D(M,1,!0);return 0===I?0:null===(M=k(++S))?S:M.type===b||M.type===R?T(M,45)&&D(M,1,!1)?S+1:0:v(I,S,k)}return M.type===b&&T(M,43)?v(D(M,1,!0),++S,k):0}},50430:function(ue,j,f){var B=f(32347),U=B.isIdentifierStart,V=B.isHexDigit,L=B.isDigit,w=B.cmpStr,R=B.consumeNumber,b=B.TYPE,E=f(13207),x=f(2868),Z=["unset","initial","inherit"],O=["calc(","-moz-calc(","-webkit-calc("];function I(_e,xe){return xe<_e.length?_e.charCodeAt(xe):0}function F(_e,xe){return w(_e,0,_e.length,xe)}function G(_e,xe){for(var He=0;He_e.max)return!0}return!1}function Y(_e,xe){var He=_e.index,st=0;do{if(st++,_e.balance<=He)break}while(_e=xe(st));return st}function ae(_e){return function(xe,He,st){return null===xe?0:xe.type===b.Function&&G(xe.value,O)?Y(xe,He):_e(xe,He,st)}}function K(_e){return function(xe){return null===xe||xe.type!==_e?0:1}}function qe(_e){return function(xe,He,st){if(null===xe||xe.type!==b.Dimension)return 0;var tt=R(xe.value,0);if(null!==_e){var Zt=xe.value.indexOf("\\",tt),Tt=-1!==Zt&&X(xe.value,Zt)?xe.value.substring(tt,Zt):xe.value.substr(tt);if(!1===_e.hasOwnProperty(Tt.toLowerCase()))return 0}return W(st,xe.value,tt)?0:1}}function Qe(_e){return"function"!=typeof _e&&(_e=function(){return 0}),function(xe,He,st){return null!==xe&&xe.type===b.Number&&0===Number(xe.value)?1:_e(xe,He,st)}}ue.exports={"ident-token":K(b.Ident),"function-token":K(b.Function),"at-keyword-token":K(b.AtKeyword),"hash-token":K(b.Hash),"string-token":K(b.String),"bad-string-token":K(b.BadString),"url-token":K(b.Url),"bad-url-token":K(b.BadUrl),"delim-token":K(b.Delim),"number-token":K(b.Number),"percentage-token":K(b.Percentage),"dimension-token":K(b.Dimension),"whitespace-token":K(b.WhiteSpace),"CDO-token":K(b.CDO),"CDC-token":K(b.CDC),"colon-token":K(b.Colon),"semicolon-token":K(b.Semicolon),"comma-token":K(b.Comma),"[-token":K(b.LeftSquareBracket),"]-token":K(b.RightSquareBracket),"(-token":K(b.LeftParenthesis),")-token":K(b.RightParenthesis),"{-token":K(b.LeftCurlyBracket),"}-token":K(b.RightCurlyBracket),string:K(b.String),ident:K(b.Ident),"custom-ident":function(_e){if(null===_e||_e.type!==b.Ident)return 0;var xe=_e.value.toLowerCase();return G(xe,Z)||F(xe,"default")?0:1},"custom-property-name":function(_e){return null===_e||_e.type!==b.Ident||45!==I(_e.value,0)||45!==I(_e.value,1)?0:1},"hex-color":function(_e){if(null===_e||_e.type!==b.Hash)return 0;var xe=_e.value.length;if(4!==xe&&5!==xe&&7!==xe&&9!==xe)return 0;for(var He=1;He_e.index||_e.balance_e.index||_e.balance2&&40===T.charCodeAt(T.length-2)&&41===T.charCodeAt(T.length-1)}function x(T){return"Keyword"===T.type||"AtKeyword"===T.type||"Function"===T.type||"Type"===T.type&&E(T.name)}function Z(T,D,v){switch(T){case" ":for(var g=U,M=D.length-1;M>=0;M--)g=b(k=D[M],g,V);return g;case"|":g=V;var S=null;for(M=D.length-1;M>=0;M--){if(x(k=D[M])&&(null===S&&M>0&&x(D[M-1])&&(g=b({type:"Enum",map:S=Object.create(null)},U,g)),null!==S)){var I=(E(k.name)?k.name.slice(0,-1):k.name).toLowerCase();if(!(I in S)){S[I]=k;continue}}S=null,g=b(k,U,g)}return g;case"&&":if(D.length>5)return{type:"MatchOnce",terms:D,all:!0};for(g=V,M=D.length-1;M>=0;M--){var k=D[M];F=D.length>1?Z(T,D.filter(function(W){return W!==k}),!1):U,g=b(k,F,g)}return g;case"||":if(D.length>5)return{type:"MatchOnce",terms:D,all:!1};for(g=v?U:V,M=D.length-1;M>=0;M--){var F;k=D[M],F=D.length>1?Z(T,D.filter(function(Y){return Y!==k}),!0):U,g=b(k,F,g)}return g}}function y(T){if("function"==typeof T)return{type:"Generic",fn:T};switch(T.type){case"Group":var D=Z(T.combinator,T.terms.map(y),!1);return T.disallowEmpty&&(D=b(D,L,V)),D;case"Multiplier":return function(T){var D=U,v=y(T.term);if(0===T.max)v=b(v,L,V),(D=b(v,null,V)).then=b(U,U,D),T.comma&&(D.then.else=b({type:"Comma",syntax:T},D,V));else for(var g=T.min||1;g<=T.max;g++)T.comma&&D!==U&&(D=b({type:"Comma",syntax:T},D,V)),D=b(v,b(U,U,D),V);if(0===T.min)D=b(U,U,D);else for(g=0;g=65&&K<=90&&(K|=32),K!==Y.charCodeAt(ae))return!1}return!0}function S(W){return null===W||W.type===R.Comma||W.type===R.Function||W.type===R.LeftParenthesis||W.type===R.LeftSquareBracket||W.type===R.LeftCurlyBracket||function(W){return W.type===R.Delim&&"?"!==W.value}(W)}function I(W){return null===W||W.type===R.RightParenthesis||W.type===R.RightSquareBracket||W.type===R.RightCurlyBracket||W.type===R.Delim}function F(W,Y,ae){function K(){do{He++,xe=Hest&&(st=He)}function ge(){tt=2===tt.type?tt.prev:{type:3,syntax:qe.syntax,token:tt.token,prev:tt},qe=qe.prev}var qe=null,De=null,Qe=null,et=null,bt=0,_e=null,xe=null,He=-1,st=0,tt={type:0,syntax:null,token:null,prev:null};for(K();null===_e&&++bt<15e3;)switch(Y.type){case"Match":if(null===De){if(null!==xe&&(He!==W.length-1||"\\0"!==xe.value&&"\\9"!==xe.value)){Y=L;break}_e=O;break}if((Y=De.nextState)===w){if(De.matchStack===tt){Y=L;break}Y=V}for(;De.syntaxStack!==qe;)ge();De=De.prev;break;case"Mismatch":if(null!==et&&!1!==et)(null===Qe||He>Qe.tokenIndex)&&(Qe=et,et=!1);else if(null===Qe){_e="Mismatch";break}Y=Qe.nextState,De=Qe.thenStack,qe=Qe.syntaxStack,tt=Qe.matchStack,xe=(He=Qe.tokenIndex)He){for(;He":"<'"+Y.name+"'>"));if(!1!==et&&null!==xe&&"Type"===Y.type&&("custom-ident"===Y.name&&xe.type===R.Ident||"length"===Y.name&&"0"===xe.value)){null===et&&(et=ce(Y,Qe)),Y=L;break}qe={syntax:Y.syntax,opts:Y.syntax.opts||null!==qe&&qe.opts||null,prev:qe},tt={type:2,syntax:Y.syntax,token:tt.token,prev:tt},Y=Ut.match;break;case"Keyword":var On=Y.name;if(null!==xe){var Fn=xe.value;if(-1!==Fn.indexOf("\\")&&(Fn=Fn.replace(/\\[09].*$/,"")),M(Fn,On)){oe(),Y=V;break}}Y=L;break;case"AtKeyword":case"Function":if(null!==xe&&M(xe.value,Y.name)){oe(),Y=V;break}Y=L;break;case"Token":if(null!==xe&&xe.value===Y.value){oe(),Y=V;break}Y=L;break;case"Comma":null!==xe&&xe.type===R.Comma?S(tt.token)?Y=L:(oe(),Y=I(xe)?L:V):Y=S(tt.token)||I(xe)?V:L;break;case"String":var Zn="";for(Yt=He;Yt=0}function L(b){return Boolean(b)&&V(b.offset)&&V(b.line)&&V(b.column)}function w(b,E){return function(Z,O){if(!Z||Z.constructor!==Object)return O(Z,"Type of node should be an Object");for(var y in Z){var T=!0;if(!1!==U.call(Z,y)){if("type"===y)Z.type!==b&&O(Z,"Wrong node type `"+Z.type+"`, expected `"+b+"`");else if("loc"===y){if(null===Z.loc)continue;if(Z.loc&&Z.loc.constructor===Object)if("string"!=typeof Z.loc.source)y+=".source";else if(L(Z.loc.start)){if(L(Z.loc.end))continue;y+=".end"}else y+=".start";T=!1}else if(E.hasOwnProperty(y)){var D=0;for(T=!1;!T&&D");else{if(!Array.isArray(g))throw new Error("Wrong value `"+g+"` in `"+b+"."+y+"` structure definition");T.push("List")}}O[y]=T.join(" | ")}return{docs:O,check:w(b,Z)}}ue.exports={getStructureFromConfig:function(E){var x={};if(E.node)for(var Z in E.node)if(U.call(E.node,Z)){var O=E.node[Z];if(!O.structure)throw new Error("Missed `structure` field in `"+Z+"` node type definition");x[Z]=R(Z,O)}return x}}},20392:function(ue){function j(L){function w(E){return null!==E&&("Type"===E.type||"Property"===E.type||"Keyword"===E.type)}var b=null;return null!==this.matched&&function R(E){if(Array.isArray(E.match)){for(var x=0;x",needPositions:!1,onParseError:O,onParseErrorThrow:!1,parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:Z,createList:function(){return new L},createSingleNodeList:function(de){return(new L).appendData(de)},getFirstListNode:function(de){return de&&de.first()},getLastListNode:function(de){return de.last()},parseWithFallback:function(de,oe){var Ce=this.scanner.tokenIndex;try{return de.call(this)}catch(qe){if(this.onParseErrorThrow)throw qe;var ge=oe.call(this,Ce);return this.onParseErrorThrow=!0,this.onParseError(qe,ge),this.onParseErrorThrow=!1,ge}},lookupNonWSType:function(de){do{var oe=this.scanner.lookupType(de++);if(oe!==D)return oe}while(0!==oe);return 0},eat:function(de){if(this.scanner.tokenType!==de){var oe=this.scanner.tokenStart,Ce=T[de]+" is expected";switch(de){case g:this.scanner.tokenType===M||this.scanner.tokenType===k?(oe=this.scanner.tokenEnd-1,Ce="Identifier is expected but function found"):Ce="Identifier is expected";break;case S:this.scanner.isDelim(35)&&(this.scanner.next(),oe++,Ce="Name is expected");break;case I:this.scanner.tokenType===F&&(oe=this.scanner.tokenEnd,Ce="Percent sign is expected");break;default:this.scanner.source.charCodeAt(this.scanner.tokenStart)===de&&(oe+=1)}this.error(Ce,oe)}this.scanner.next()},consume:function(de){var oe=this.scanner.getTokenValue();return this.eat(de),oe},consumeFunctionName:function(){var de=this.scanner.source.substring(this.scanner.tokenStart,this.scanner.tokenEnd-1);return this.eat(M),de},getLocation:function(de,oe){return this.needPositions?this.locationMap.getLocationRange(de,oe,this.filename):null},getLocationFromList:function(de){if(this.needPositions){var oe=this.getFirstListNode(de),Ce=this.getLastListNode(de);return this.locationMap.getLocationRange(null!==oe?oe.loc.start.offset-this.locationMap.startOffset:this.scanner.tokenStart,null!==Ce?Ce.loc.end.offset-this.locationMap.startOffset:this.scanner.tokenStart,this.filename)}return null},error:function(de,oe){var Ce=this.locationMap.getLocation(void 0!==oe&&oe",fe.needPositions=Boolean(de.positions),fe.onParseError="function"==typeof de.onParseError?de.onParseError:O,fe.onParseErrorThrow=!1,fe.parseAtrulePrelude=!("parseAtrulePrelude"in de)||Boolean(de.parseAtrulePrelude),fe.parseRulePrelude=!("parseRulePrelude"in de)||Boolean(de.parseRulePrelude),fe.parseValue=!("parseValue"in de)||Boolean(de.parseValue),fe.parseCustomProperty="parseCustomProperty"in de&&Boolean(de.parseCustomProperty),!fe.context.hasOwnProperty(oe))throw new Error("Unknown context `"+oe+"`");return"function"==typeof Ce&&fe.scanner.forEachToken(function(qe,De,Qe){if(qe===v){var et=fe.getLocation(De,Qe),bt=x(he,Qe-2,Qe,"*/")?he.slice(De+2,Qe-2):he.slice(De+2,Qe);Ce(bt,et)}}),ge=fe.context[oe].call(fe,de),fe.scanner.eof||fe.error(),ge}}},8481:function(ue,j,f){var B=f(32347).TYPE,U=B.WhiteSpace,V=B.Comment;ue.exports=function(w){var R=this.createList(),b=null,E={recognizer:w,space:null,ignoreWS:!1,ignoreWSAfter:!1};for(this.scanner.skipSC();!this.scanner.eof;){switch(this.scanner.tokenType){case V:this.scanner.next();continue;case U:E.ignoreWS?this.scanner.next():E.space=this.WhiteSpace();continue}if(void 0===(b=w.getNode.call(this,E)))break;null!==E.space&&(R.push(E.space),E.space=null),R.push(b),E.ignoreWSAfter?(E.ignoreWSAfter=!1,E.ignoreWS=!0):E.ignoreWS=!1}return R}},62640:function(ue){ue.exports={parse:{prelude:null,block:function(){return this.Block(!0)}}}},1649:function(ue,j,f){var B=f(32347).TYPE,U=B.String,V=B.Ident,L=B.Url,w=B.Function,R=B.LeftParenthesis;ue.exports={parse:{prelude:function(){var E=this.createList();switch(this.scanner.skipSC(),this.scanner.tokenType){case U:E.push(this.String());break;case L:case w:E.push(this.Url());break;default:this.error("String or url() is expected")}return(this.lookupNonWSType(0)===V||this.lookupNonWSType(0)===R)&&(E.push(this.WhiteSpace()),E.push(this.MediaQueryList())),E},block:null}}},97236:function(ue,j,f){ue.exports={"font-face":f(62640),import:f(1649),media:f(54678),page:f(62186),supports:f(39990)}},54678:function(ue){ue.exports={parse:{prelude:function(){return this.createSingleNodeList(this.MediaQueryList())},block:function(){return this.Block(!1)}}}},62186:function(ue){ue.exports={parse:{prelude:function(){return this.createSingleNodeList(this.SelectorList())},block:function(){return this.Block(!0)}}}},39990:function(ue,j,f){var B=f(32347).TYPE,U=B.WhiteSpace,V=B.Comment,L=B.Ident,w=B.Function,R=B.Colon,b=B.LeftParenthesis;function E(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,!1))}function x(){return this.scanner.skipSC(),this.scanner.tokenType===L&&this.lookupNonWSType(1)===R?this.createSingleNodeList(this.Declaration()):Z.call(this)}function Z(){var T,O=this.createList(),y=null;this.scanner.skipSC();e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case U:y=this.WhiteSpace();continue;case V:this.scanner.next();continue;case w:T=this.Function(E,this.scope.AtrulePrelude);break;case L:T=this.Identifier();break;case b:T=this.Parentheses(x,this.scope.AtrulePrelude);break;default:break e}null!==y&&(O.push(y),y=null),O.push(T)}return O}ue.exports={parse:{prelude:function(){var y=Z.call(this);return null===this.getFirstListNode(y)&&this.error("Condition is expected"),y},block:function(){return this.Block(!1)}}}},55837:function(ue,j,f){var B=f(87124);ue.exports={generic:!0,types:B.types,atrules:B.atrules,properties:B.properties,node:f(41088)}},15286:function(ue,j,f){var B=f(6326).default,U=Object.prototype.hasOwnProperty,V={generic:!0,types:x,atrules:{prelude:Z,descriptors:Z},properties:x,parseContext:function(y,T){return Object.assign(y,T)},scope:function b(y,T){for(var D in T)U.call(T,D)&&(L(y[D])?b(y[D],w(T[D])):y[D]=w(T[D]));return y},atrule:["parse"],pseudo:["parse"],node:["name","structure","parse","generate","walkContext"]};function L(y){return y&&y.constructor===Object}function w(y){return L(y)?Object.assign({},y):y}function E(y,T){return"string"==typeof T&&/^\s*\|/.test(T)?"string"==typeof y?y+T:T.replace(/^\s*\|\s*/,""):T||null}function x(y,T){if("string"==typeof T)return E(y,T);var D=Object.assign({},y);for(var v in T)U.call(T,v)&&(D[v]=E(U.call(y,v)?y[v]:void 0,T[v]));return D}function Z(y,T){var D=x(y,T);return!L(D)||Object.keys(D).length?D:null}function O(y,T,D){for(var v in D)if(!1!==U.call(D,v))if(!0===D[v])v in T&&U.call(T,v)&&(y[v]=w(T[v]));else if(D[v])if("function"==typeof D[v]){var g=D[v];y[v]=g({},y[v]),y[v]=g(y[v]||{},T[v])}else if(L(D[v])){var M={};for(var k in y[v])M[k]=O({},y[v][k],D[v]);for(var S in T[v])M[S]=O(M[S]||{},T[v][S],D[v]);y[v]=M}else if(Array.isArray(D[v])){for(var I={},F=D[v].reduce(function(fe,ce){return fe[ce]=!0,fe},{}),G=0,X=Object.entries(y[v]||{});G0&&this.scanner.skip(k),0===S&&(I=this.scanner.source.charCodeAt(this.scanner.tokenStart))!==x&&I!==Z&&this.error("Number sign is expected"),v.call(this,0!==S),S===Z?"-"+this.consume(b):this.consume(b)}ue.exports={name:"AnPlusB",structure:{a:[String,null],b:[String,null]},parse:function(){var S=this.scanner.tokenStart,I=null,F=null;if(this.scanner.tokenType===b)v.call(this,!1),F=this.consume(b);else if(this.scanner.tokenType===R&&B(this.scanner.source,this.scanner.tokenStart,Z))switch(I="-1",g.call(this,1,O),this.scanner.getTokenLength()){case 2:this.scanner.next(),F=M.call(this);break;case 3:g.call(this,2,Z),this.scanner.next(),this.scanner.skipSC(),v.call(this,y),F="-"+this.consume(b);break;default:g.call(this,2,Z),D.call(this,3,y),this.scanner.next(),F=this.scanner.substrToCursor(S+2)}else if(this.scanner.tokenType===R||this.scanner.isDelim(x)&&this.scanner.lookupType(1)===R){var G=0;switch(I="1",this.scanner.isDelim(x)&&(G=1,this.scanner.next()),g.call(this,0,O),this.scanner.getTokenLength()){case 1:this.scanner.next(),F=M.call(this);break;case 2:g.call(this,1,Z),this.scanner.next(),this.scanner.skipSC(),v.call(this,y),F="-"+this.consume(b);break;default:g.call(this,1,Z),D.call(this,2,y),this.scanner.next(),F=this.scanner.substrToCursor(S+G+1)}}else if(this.scanner.tokenType===E){for(var X=this.scanner.source.charCodeAt(this.scanner.tokenStart),W=this.scanner.tokenStart+(G=X===x||X===Z);W=2&&42===this.scanner.source.charCodeAt(b-2)&&47===this.scanner.source.charCodeAt(b-1)&&(b-=2),{type:"Comment",loc:this.getLocation(R,this.scanner.tokenStart),value:this.scanner.source.substring(R+2,b)}},generate:function(R){this.chunk("/*"),this.chunk(R.value),this.chunk("*/")}}},96137:function(ue,j,f){var B=f(60213).isCustomProperty,U=f(32347).TYPE,V=f(89246).mode,L=U.Ident,w=U.Hash,R=U.Colon,b=U.Semicolon,E=U.Delim,x=U.WhiteSpace;function M(G){return this.Raw(G,V.exclamationMarkOrSemicolon,!0)}function k(G){return this.Raw(G,V.exclamationMarkOrSemicolon,!1)}function S(){var G=this.scanner.tokenIndex,X=this.Value();return"Raw"!==X.type&&!1===this.scanner.eof&&this.scanner.tokenType!==b&&!1===this.scanner.isDelim(33)&&!1===this.scanner.isBalanceEdge(G)&&this.error(),X}function I(){var G=this.scanner.tokenStart;if(this.scanner.tokenType===E)switch(this.scanner.source.charCodeAt(this.scanner.tokenStart)){case 42:case 36:case 43:case 35:case 38:this.scanner.next();break;case 47:this.scanner.next(),this.scanner.isDelim(47)&&this.scanner.next()}return this.eat(this.scanner.tokenType===w?w:L),this.scanner.substrToCursor(G)}function F(){this.eat(E),this.scanner.skipSC();var G=this.consume(L);return"important"===G||G}ue.exports={name:"Declaration",structure:{important:[Boolean,String],property:String,value:["Value","Raw"]},parse:function(){var he,X=this.scanner.tokenStart,W=this.scanner.tokenIndex,Y=I.call(this),ae=B(Y),K=ae?this.parseCustomProperty:this.parseValue,fe=ae?k:M,ce=!1;this.scanner.skipSC(),this.eat(R);var de=this.scanner.tokenIndex;if(ae||this.scanner.skipSC(),he=K?this.parseWithFallback(S,fe):fe.call(this,this.scanner.tokenIndex),ae&&"Value"===he.type&&he.children.isEmpty())for(var oe=de-this.scanner.tokenIndex;oe<=0;oe++)if(this.scanner.lookupType(oe)===x){he.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}return this.scanner.isDelim(33)&&(ce=F.call(this),this.scanner.skipSC()),!1===this.scanner.eof&&this.scanner.tokenType!==b&&!1===this.scanner.isBalanceEdge(W)&&this.error(),{type:"Declaration",loc:this.getLocation(X,this.scanner.tokenStart),important:ce,property:Y,value:he}},generate:function(X){this.chunk(X.property),this.chunk(":"),this.node(X.value),X.important&&this.chunk(!0===X.important?"!important":"!"+X.important)},walkContext:"declaration"}},30118:function(ue,j,f){var B=f(32347).TYPE,U=f(89246).mode,V=B.WhiteSpace,L=B.Comment,w=B.Semicolon;function R(b){return this.Raw(b,U.semicolonIncluded,!0)}ue.exports={name:"DeclarationList",structure:{children:[["Declaration"]]},parse:function(){for(var E=this.createList();!this.scanner.eof;)switch(this.scanner.tokenType){case V:case L:case w:this.scanner.next();break;default:E.push(this.parseWithFallback(this.Declaration,R))}return{type:"DeclarationList",loc:this.getLocationFromList(E),children:E}},generate:function(E){this.children(E,function(x){"Declaration"===x.type&&this.chunk(";")})}}},17937:function(ue,j,f){var B=f(22390).consumeNumber,V=f(32347).TYPE.Dimension;ue.exports={name:"Dimension",structure:{value:String,unit:String},parse:function(){var w=this.scanner.tokenStart,R=B(this.scanner.source,w);return this.eat(V),{type:"Dimension",loc:this.getLocation(w,this.scanner.tokenStart),value:this.scanner.source.substring(w,R),unit:this.scanner.source.substring(R,this.scanner.tokenStart)}},generate:function(w){this.chunk(w.value),this.chunk(w.unit)}}},61511:function(ue,j,f){var U=f(32347).TYPE.RightParenthesis;ue.exports={name:"Function",structure:{name:String,children:[[]]},parse:function(L,w){var x,R=this.scanner.tokenStart,b=this.consumeFunctionName(),E=b.toLowerCase();return x=w.hasOwnProperty(E)?w[E].call(this,w):L.call(this,w),this.scanner.eof||this.eat(U),{type:"Function",loc:this.getLocation(R,this.scanner.tokenStart),name:b,children:x}},generate:function(L){this.chunk(L.name),this.chunk("("),this.children(L),this.chunk(")")},walkContext:"function"}},26805:function(ue,j,f){var U=f(32347).TYPE.Hash;ue.exports={name:"Hash",structure:{value:String},parse:function(){var L=this.scanner.tokenStart;return this.eat(U),{type:"Hash",loc:this.getLocation(L,this.scanner.tokenStart),value:this.scanner.substrToCursor(L+1)}},generate:function(L){this.chunk("#"),this.chunk(L.value)}}},21683:function(ue,j,f){var U=f(32347).TYPE.Hash;ue.exports={name:"IdSelector",structure:{name:String},parse:function(){var L=this.scanner.tokenStart;return this.eat(U),{type:"IdSelector",loc:this.getLocation(L,this.scanner.tokenStart),name:this.scanner.substrToCursor(L+1)}},generate:function(L){this.chunk("#"),this.chunk(L.name)}}},13046:function(ue,j,f){var U=f(32347).TYPE.Ident;ue.exports={name:"Identifier",structure:{name:String},parse:function(){return{type:"Identifier",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),name:this.consume(U)}},generate:function(L){this.chunk(L.name)}}},72396:function(ue,j,f){var B=f(32347).TYPE,U=B.Ident,V=B.Number,L=B.Dimension,w=B.LeftParenthesis,R=B.RightParenthesis,b=B.Colon,E=B.Delim;ue.exports={name:"MediaFeature",structure:{name:String,value:["Identifier","Number","Dimension","Ratio",null]},parse:function(){var O,Z=this.scanner.tokenStart,y=null;if(this.eat(w),this.scanner.skipSC(),O=this.consume(U),this.scanner.skipSC(),this.scanner.tokenType!==R){switch(this.eat(b),this.scanner.skipSC(),this.scanner.tokenType){case V:y=this.lookupNonWSType(1)===E?this.Ratio():this.Number();break;case L:y=this.Dimension();break;case U:y=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.scanner.skipSC()}return this.eat(R),{type:"MediaFeature",loc:this.getLocation(Z,this.scanner.tokenStart),name:O,value:y}},generate:function(Z){this.chunk("("),this.chunk(Z.name),null!==Z.value&&(this.chunk(":"),this.node(Z.value)),this.chunk(")")}}},86052:function(ue,j,f){var B=f(32347).TYPE,U=B.WhiteSpace,V=B.Comment,L=B.Ident,w=B.LeftParenthesis;ue.exports={name:"MediaQuery",structure:{children:[["Identifier","MediaFeature","WhiteSpace"]]},parse:function(){this.scanner.skipSC();var b=this.createList(),E=null,x=null;e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case V:this.scanner.next();continue;case U:x=this.WhiteSpace();continue;case L:E=this.Identifier();break;case w:E=this.MediaFeature();break;default:break e}null!==x&&(b.push(x),x=null),b.push(E)}return null===E&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(b),children:b}},generate:function(b){this.children(b)}}},21833:function(ue,j,f){var B=f(32347).TYPE.Comma;ue.exports={name:"MediaQueryList",structure:{children:[["MediaQuery"]]},parse:function(V){var L=this.createList();for(this.scanner.skipSC();!this.scanner.eof&&(L.push(this.MediaQuery(V)),this.scanner.tokenType===B);)this.scanner.next();return{type:"MediaQueryList",loc:this.getLocationFromList(L),children:L}},generate:function(V){this.children(V,function(){this.chunk(",")})}}},92669:function(ue){ue.exports={name:"Nth",structure:{nth:["AnPlusB","Identifier"],selector:["SelectorList",null]},parse:function(f){this.scanner.skipSC();var L,B=this.scanner.tokenStart,U=B,V=null;return L=this.scanner.lookupValue(0,"odd")||this.scanner.lookupValue(0,"even")?this.Identifier():this.AnPlusB(),this.scanner.skipSC(),f&&this.scanner.lookupValue(0,"of")?(this.scanner.next(),V=this.SelectorList(),this.needPositions&&(U=this.getLastListNode(V.children).loc.end.offset)):this.needPositions&&(U=L.loc.end.offset),{type:"Nth",loc:this.getLocation(B,U),nth:L,selector:V}},generate:function(f){this.node(f.nth),null!==f.selector&&(this.chunk(" of "),this.node(f.selector))}}},26047:function(ue,j,f){var B=f(32347).TYPE.Number;ue.exports={name:"Number",structure:{value:String},parse:function(){return{type:"Number",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(B)}},generate:function(V){this.chunk(V.value)}}},76807:function(ue){ue.exports={name:"Operator",structure:{value:String},parse:function(){var f=this.scanner.tokenStart;return this.scanner.next(),{type:"Operator",loc:this.getLocation(f,this.scanner.tokenStart),value:this.scanner.substrToCursor(f)}},generate:function(f){this.chunk(f.value)}}},98615:function(ue,j,f){var B=f(32347).TYPE,U=B.LeftParenthesis,V=B.RightParenthesis;ue.exports={name:"Parentheses",structure:{children:[[]]},parse:function(w,R){var E,b=this.scanner.tokenStart;return this.eat(U),E=w.call(this,R),this.scanner.eof||this.eat(V),{type:"Parentheses",loc:this.getLocation(b,this.scanner.tokenStart),children:E}},generate:function(w){this.chunk("("),this.children(w),this.chunk(")")}}},93368:function(ue,j,f){var B=f(22390).consumeNumber,V=f(32347).TYPE.Percentage;ue.exports={name:"Percentage",structure:{value:String},parse:function(){var w=this.scanner.tokenStart,R=B(this.scanner.source,w);return this.eat(V),{type:"Percentage",loc:this.getLocation(w,this.scanner.tokenStart),value:this.scanner.source.substring(w,R)}},generate:function(w){this.chunk(w.value),this.chunk("%")}}},57706:function(ue,j,f){var B=f(32347).TYPE,U=B.Ident,V=B.Function,L=B.Colon,w=B.RightParenthesis;ue.exports={name:"PseudoClassSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var x,Z,b=this.scanner.tokenStart,E=null;return this.eat(L),this.scanner.tokenType===V?(Z=(x=this.consumeFunctionName()).toLowerCase(),this.pseudo.hasOwnProperty(Z)?(this.scanner.skipSC(),E=this.pseudo[Z].call(this),this.scanner.skipSC()):(E=this.createList()).push(this.Raw(this.scanner.tokenIndex,null,!1)),this.eat(w)):x=this.consume(U),{type:"PseudoClassSelector",loc:this.getLocation(b,this.scanner.tokenStart),name:x,children:E}},generate:function(b){this.chunk(":"),this.chunk(b.name),null!==b.children&&(this.chunk("("),this.children(b),this.chunk(")"))},walkContext:"function"}},89108:function(ue,j,f){var B=f(32347).TYPE,U=B.Ident,V=B.Function,L=B.Colon,w=B.RightParenthesis;ue.exports={name:"PseudoElementSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var x,Z,b=this.scanner.tokenStart,E=null;return this.eat(L),this.eat(L),this.scanner.tokenType===V?(Z=(x=this.consumeFunctionName()).toLowerCase(),this.pseudo.hasOwnProperty(Z)?(this.scanner.skipSC(),E=this.pseudo[Z].call(this),this.scanner.skipSC()):(E=this.createList()).push(this.Raw(this.scanner.tokenIndex,null,!1)),this.eat(w)):x=this.consume(U),{type:"PseudoElementSelector",loc:this.getLocation(b,this.scanner.tokenStart),name:x,children:E}},generate:function(b){this.chunk("::"),this.chunk(b.name),null!==b.children&&(this.chunk("("),this.children(b),this.chunk(")"))},walkContext:"function"}},2311:function(ue,j,f){var B=f(32347).isDigit,U=f(32347).TYPE,V=U.Number,L=U.Delim;function b(){this.scanner.skipWS();for(var E=this.consume(V),x=0;x0&&this.scanner.lookupType(-1)===V?this.scanner.tokenIndex>1?this.scanner.getTokenStart(this.scanner.tokenIndex-1):this.scanner.firstCharOffset:this.scanner.tokenStart}function x(){return 0}ue.exports={name:"Raw",structure:{value:String},parse:function(v,g,M){var S,k=this.scanner.getTokenStart(v);return this.scanner.skip(this.scanner.getRawLength(v,g||x)),S=M&&this.scanner.tokenStart>k?E.call(this):this.scanner.tokenStart,{type:"Raw",loc:this.getLocation(k,S),value:this.scanner.source.substring(k,S)}},generate:function(v){this.chunk(v.value)},mode:{default:x,leftCurlyBracket:function(D){return D===w?1:0},leftCurlyBracketOrSemicolon:function(D){return D===w||D===L?1:0},exclamationMarkOrSemicolon:function(D,v,g){return D===R&&33===v.charCodeAt(g)||D===L?1:0},semicolonIncluded:function(D){return D===L?2:0}}}},87688:function(ue,j,f){var B=f(32347).TYPE,U=f(89246).mode,V=B.LeftCurlyBracket;function L(R){return this.Raw(R,U.leftCurlyBracket,!0)}function w(){var R=this.SelectorList();return"Raw"!==R.type&&!1===this.scanner.eof&&this.scanner.tokenType!==V&&this.error(),R}ue.exports={name:"Rule",structure:{prelude:["SelectorList","Raw"],block:["Block"]},parse:function(){var x,Z,b=this.scanner.tokenIndex,E=this.scanner.tokenStart;return x=this.parseRulePrelude?this.parseWithFallback(w,L):L.call(this,b),Z=this.Block(!0),{type:"Rule",loc:this.getLocation(E,this.scanner.tokenStart),prelude:x,block:Z}},generate:function(b){this.node(b.prelude),this.node(b.block)},walkContext:"rule"}},28897:function(ue){ue.exports={name:"Selector",structure:{children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]},parse:function(){var f=this.readSequence(this.scope.Selector);return null===this.getFirstListNode(f)&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(f),children:f}},generate:function(f){this.children(f)}}},90790:function(ue,j,f){var U=f(32347).TYPE.Comma;ue.exports={name:"SelectorList",structure:{children:[["Selector","Raw"]]},parse:function(){for(var L=this.createList();!this.scanner.eof&&(L.push(this.Selector()),this.scanner.tokenType===U);)this.scanner.next();return{type:"SelectorList",loc:this.getLocationFromList(L),children:L}},generate:function(L){this.children(L,function(){this.chunk(",")})},walkContext:"selector"}},24456:function(ue,j,f){var B=f(32347).TYPE.String;ue.exports={name:"String",structure:{value:String},parse:function(){return{type:"String",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(B)}},generate:function(V){this.chunk(V.value)}}},79823:function(ue,j,f){var B=f(32347).TYPE,U=B.WhiteSpace,V=B.Comment,L=B.AtKeyword,w=B.CDO,R=B.CDC;function E(x){return this.Raw(x,null,!1)}ue.exports={name:"StyleSheet",structure:{children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]},parse:function(){for(var y,Z=this.scanner.tokenStart,O=this.createList();!this.scanner.eof;){switch(this.scanner.tokenType){case U:this.scanner.next();continue;case V:if(33!==this.scanner.source.charCodeAt(this.scanner.tokenStart+2)){this.scanner.next();continue}y=this.Comment();break;case w:y=this.CDO();break;case R:y=this.CDC();break;case L:y=this.parseWithFallback(this.Atrule,E);break;default:y=this.parseWithFallback(this.Rule,E)}O.push(y)}return{type:"StyleSheet",loc:this.getLocation(Z,this.scanner.tokenStart),children:O}},generate:function(Z){this.children(Z)},walkContext:"stylesheet"}},39415:function(ue,j,f){var U=f(32347).TYPE.Ident;function w(){this.scanner.tokenType!==U&&!1===this.scanner.isDelim(42)&&this.error("Identifier or asterisk is expected"),this.scanner.next()}ue.exports={name:"TypeSelector",structure:{name:String},parse:function(){var b=this.scanner.tokenStart;return this.scanner.isDelim(124)?(this.scanner.next(),w.call(this)):(w.call(this),this.scanner.isDelim(124)&&(this.scanner.next(),w.call(this))),{type:"TypeSelector",loc:this.getLocation(b,this.scanner.tokenStart),name:this.scanner.substrToCursor(b)}},generate:function(b){this.chunk(b.name)}}},32218:function(ue,j,f){var B=f(32347).isHexDigit,U=f(32347).cmpChar,V=f(32347).TYPE,L=f(32347).NAME,w=V.Ident,R=V.Number,b=V.Dimension;function y(g,M){for(var k=this.scanner.tokenStart+g,S=0;k6&&this.error("Too many hex digits",k)}return this.scanner.next(),S}function T(g){for(var M=0;this.scanner.isDelim(63);)++M>g&&this.error("Too many question marks"),this.scanner.next()}function D(g){this.scanner.source.charCodeAt(this.scanner.tokenStart)!==g&&this.error(L[g]+" is expected")}function v(){var g=0;return this.scanner.isDelim(43)?(this.scanner.next(),this.scanner.tokenType===w?void((g=y.call(this,0,!0))>0&&T.call(this,6-g)):this.scanner.isDelim(63)?(this.scanner.next(),void T.call(this,5)):void this.error("Hex digit or question mark is expected")):this.scanner.tokenType===R?(D.call(this,43),g=y.call(this,1,!0),this.scanner.isDelim(63)?void T.call(this,6-g):this.scanner.tokenType===b||this.scanner.tokenType===R?(D.call(this,45),void y.call(this,1,!1)):void 0):this.scanner.tokenType===b?(D.call(this,43),void((g=y.call(this,1,!0))>0&&T.call(this,6-g))):void this.error()}ue.exports={name:"UnicodeRange",structure:{value:String},parse:function(){var M=this.scanner.tokenStart;return U(this.scanner.source,M,117)||this.error("U is expected"),U(this.scanner.source,M+1,43)||this.error("Plus sign is expected"),this.scanner.next(),v.call(this),{type:"UnicodeRange",loc:this.getLocation(M,this.scanner.tokenStart),value:this.scanner.substrToCursor(M)}},generate:function(M){this.chunk(M.value)}}},68455:function(ue,j,f){var B=f(32347).isWhiteSpace,U=f(32347).cmpStr,V=f(32347).TYPE,L=V.Function,w=V.Url,R=V.RightParenthesis;ue.exports={name:"Url",structure:{value:["String","Raw"]},parse:function(){var x,E=this.scanner.tokenStart;switch(this.scanner.tokenType){case w:for(var Z=E+4,O=this.scanner.tokenEnd-1;Z=48&&k<=57}function U(k){return k>=65&&k<=90}function V(k){return k>=97&&k<=122}function L(k){return U(k)||V(k)}function w(k){return k>=128}function R(k){return L(k)||w(k)||95===k}function E(k){return k>=0&&k<=8||11===k||k>=14&&k<=31||127===k}function x(k){return 10===k||13===k||12===k}function Z(k){return x(k)||32===k||9===k}function O(k,S){return!(92!==k||x(S)||0===S)}var v=new Array(128);M.Eof=128,M.WhiteSpace=130,M.Digit=131,M.NameStart=132,M.NonPrintable=133;for(var g=0;g=65&&k<=70||k>=97&&k<=102},isUppercaseLetter:U,isLowercaseLetter:V,isLetter:L,isNonAscii:w,isNameStart:R,isName:function(k){return R(k)||f(k)||45===k},isNonPrintable:E,isNewline:x,isWhiteSpace:Z,isValidEscape:O,isIdentifierStart:function(k,S,I){return 45===k?R(S)||45===S||O(S,I):!!R(k)||92===k&&O(k,S)},isNumberStart:function(k,S,I){return 43===k||45===k?f(S)?2:46===S&&f(I)?3:0:46===k?f(S)?2:0:f(k)?1:0},isBOM:function(k){return 65279===k||65534===k?1:0},charCodeCategory:M}},74715:function(ue){var j={EOF:0,Ident:1,Function:2,AtKeyword:3,Hash:4,String:5,BadString:6,Url:7,BadUrl:8,Delim:9,Number:10,Percentage:11,Dimension:12,WhiteSpace:13,CDO:14,CDC:15,Colon:16,Semicolon:17,Comma:18,LeftSquareBracket:19,RightSquareBracket:20,LeftParenthesis:21,RightParenthesis:22,LeftCurlyBracket:23,RightCurlyBracket:24,Comment:25},f=Object.keys(j).reduce(function(B,U){return B[j[U]]=U,B},{});ue.exports={TYPE:j,NAME:f}},32347:function(ue,j,f){var B=f(26922),U=f(16418),V=f(74715),L=V.TYPE,w=f(1724),R=w.isNewline,b=w.isName,E=w.isValidEscape,x=w.isNumberStart,Z=w.isIdentifierStart,O=w.charCodeCategory,y=w.isBOM,T=f(22390),D=T.cmpStr,v=T.getNewlineLength,g=T.findWhiteSpaceEnd,M=T.consumeEscaped,k=T.consumeName,S=T.consumeNumber,I=T.consumeBadUrlRemnants,F=16777215,G=24;function X(W,Y){function ae(He){return He=W.length?void(De>G,Ce[ge]=bt,Ce[bt++]=ge;btS.length)return!1;for(var X=I;X=0&&R(S.charCodeAt(I));I--);return I+1},findWhiteSpaceEnd:function(S,I){for(;I=2&&45===b.charCodeAt(E)&&45===b.charCodeAt(E+1)}function L(b,E){if(b.length-(E=E||0)>=3&&45===b.charCodeAt(E)&&45!==b.charCodeAt(E+1)){var x=b.indexOf("-",E+2);if(-1!==x)return b.substring(E,x+1)}return""}ue.exports={keyword:function(b){if(j.call(f,b))return f[b];var E=b.toLowerCase();if(j.call(f,E))return f[b]=f[E];var x=V(E,0),Z=x?"":L(E,0);return f[b]=Object.freeze({basename:E.substr(Z.length),name:E,vendor:Z,prefix:Z,custom:x})},property:function(b){if(j.call(B,b))return B[b];var E=b,x=b[0];"/"===x?x="/"===b[1]?"//":"/":"_"!==x&&"*"!==x&&"$"!==x&&"#"!==x&&"+"!==x&&"&"!==x&&(x="");var Z=V(E,x.length);if(!Z&&(E=E.toLowerCase(),j.call(B,E)))return B[b]=B[E];var O=Z?"":L(E,x.length),y=E.substr(0,x.length+O.length);return B[b]=Object.freeze({basename:E.substr(y.length),name:E.substr(x.length),hack:x,vendor:O,prefix:y,custom:Z})},isCustomProperty:V,vendorPrefix:L}},75504:function(ue){var j=Object.prototype.hasOwnProperty,f=function(){};function B(b){return"function"==typeof b?b:f}function U(b,E){return function(x,Z,O){x.type===E&&b.call(this,x,Z,O)}}function V(b,E){var x=E.structure,Z=[];for(var O in x)if(!1!==j.call(x,O)){var y=x[O],T={name:O,type:!1,nullable:!1};Array.isArray(x[O])||(y=[x[O]]);for(var D=0;D":".","?":"/","|":"\\"},E={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},Z=1;Z<20;++Z)w[111+Z]="f"+Z;for(Z=0;Z<=9;++Z)w[Z+96]=Z.toString();X.prototype.bind=function(W,Y,ae){var K=this;return K._bindMultiple.call(K,W=W instanceof Array?W:[W],Y,ae),K},X.prototype.unbind=function(W,Y){return this.bind.call(this,W,function(){},Y)},X.prototype.trigger=function(W,Y){return this._directMap[W+":"+Y]&&this._directMap[W+":"+Y]({},W),this},X.prototype.reset=function(){var W=this;return W._callbacks={},W._directMap={},W},X.prototype.stopCallback=function(W,Y){if((" "+Y.className+" ").indexOf(" mousetrap ")>-1||G(Y,this.target))return!1;if("composedPath"in W&&"function"==typeof W.composedPath){var K=W.composedPath()[0];K!==W.target&&(Y=K)}return"INPUT"==Y.tagName||"SELECT"==Y.tagName||"TEXTAREA"==Y.tagName||Y.isContentEditable},X.prototype.handleKey=function(){var W=this;return W._handleKey.apply(W,arguments)},X.addKeycodes=function(W){for(var Y in W)W.hasOwnProperty(Y)&&(w[Y]=W[Y]);x=null},X.init=function(){var W=X(V);for(var Y in W)"_"!==Y.charAt(0)&&(X[Y]=function(ae){return function(){return W[ae].apply(W,arguments)}}(Y))},X.init(),U.Mousetrap=X,ue.exports&&(ue.exports=X),void 0!==(B=function(){return X}.call(j,f,j,ue))&&(ue.exports=B)}function O(W,Y,ae){W.addEventListener?W.addEventListener(Y,ae,!1):W.attachEvent("on"+Y,ae)}function y(W){if("keypress"==W.type){var Y=String.fromCharCode(W.which);return W.shiftKey||(Y=Y.toLowerCase()),Y}return w[W.which]?w[W.which]:R[W.which]?R[W.which]:String.fromCharCode(W.which).toLowerCase()}function T(W,Y){return W.sort().join(",")===Y.sort().join(",")}function M(W){return"shift"==W||"ctrl"==W||"alt"==W||"meta"==W}function S(W,Y,ae){return ae||(ae=function(){if(!x)for(var W in x={},w)W>95&&W<112||w.hasOwnProperty(W)&&(x[w[W]]=W);return x}()[W]?"keydown":"keypress"),"keypress"==ae&&Y.length&&(ae="keydown"),ae}function F(W,Y){var ae,K,fe,ce=[];for(ae=function(W){return"+"===W?["+"]:(W=W.replace(/\+{2}/g,"+plus")).split("+")}(W),fe=0;fe1?function(et,bt,_e,xe){function He(mt){return function(){he=mt,++ae[et],clearTimeout(K),K=setTimeout(de,1e3)}}function st(mt){Ce(_e,mt,et),"keyup"!==xe&&(fe=y(mt)),setTimeout(de,10)}ae[et]=0;for(var tt=0;tt=0;--De){var Qe=this.tryEntries[De],et=Qe.completion;if("root"===Qe.tryLoc)return qe("end");if(Qe.tryLoc<=this.prev){var bt=U.call(Qe,"catchLoc"),_e=U.call(Qe,"finallyLoc");if(bt&&_e){if(this.prev=0;--qe){var De=this.tryEntries[qe];if(De.tryLoc<=this.prev&&U.call(De,"finallyLoc")&&this.prev=0;--ge){var qe=this.tryEntries[ge];if(qe.finallyLoc===Ce)return this.complete(qe.completion,qe.afterLoc),fe(qe),v}},catch:function(Ce){for(var ge=this.tryEntries.length-1;ge>=0;--ge){var qe=this.tryEntries[ge];if(qe.tryLoc===Ce){var De=qe.completion;if("throw"===De.type){var Qe=De.arg;fe(qe)}return Qe}}throw new Error("illegal catch attempt")},delegateYield:function(Ce,ge,qe){return this.delegate={iterator:he(Ce),resultName:ge,nextLoc:qe},"next"===this.method&&(this.arg=V),v}},f}(ue.exports);try{regeneratorRuntime=j}catch(f){"object"==typeof globalThis?globalThis.regeneratorRuntime=j:Function("r","regeneratorRuntime = r")(j)}},94817:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458);j.Observable=B.Observable,j.Subject=B.Subject;var U=f(40307);j.AnonymousSubject=U.AnonymousSubject;var V=f(40307);j.config=V.config,f(47484),f(53395),f(40987),f(91772),f(22519),f(17506),f(43879),f(26792),f(80602),f(73433),f(54167),f(26066),f(62175),f(89974),f(86543),f(40990),f(91885),f(5246),f(93860),f(26377),f(85305),f(63614),f(78910),f(53907),f(56351),f(6599),f(34335),f(99016),f(78203),f(92572),f(46162),f(11601),f(14651),f(39143),f(97521),f(94038),f(5429),f(5390),f(95087),f(27976),f(5475),f(80112),f(93814),f(77986),f(6671),f(31349),f(13592),f(24425),f(52457),f(48271),f(35262),f(83630),f(88113),f(8798),f(10774),f(75834),f(10845),f(10366),f(44384),f(92744),f(46844),f(3918),f(19692),f(67566),f(15650),f(80127),f(13465),f(32821),f(34402),f(18116),f(72121),f(72236),f(14810),f(85986),f(83783),f(60650),f(19563),f(48698),f(26815),f(96569),f(50551),f(56148),f(7118),f(91108),f(73960),f(61040),f(76580),f(70125),f(54596),f(92556),f(13148),f(59153),f(66689),f(9265),f(46002),f(7849),f(23549),f(72563),f(59543),f(38033),f(98335),f(86536),f(7749),f(94686),f(20873),f(53847),f(16549),f(6788),f(81848),f(77082),f(11442),f(57565),f(43772),f(34736),f(40257),f(38728),f(24090),f(77681),f(77659),f(71117),f(64268),f(97220),f(67221),f(83270),f(28478),f(39744),f(16851),f(77194),f(83943);var L=f(21458);j.Subscription=L.Subscription,j.ReplaySubject=L.ReplaySubject,j.BehaviorSubject=L.BehaviorSubject,j.Notification=L.Notification,j.EmptyError=L.EmptyError,j.ArgumentOutOfRangeError=L.ArgumentOutOfRangeError,j.ObjectUnsubscribedError=L.ObjectUnsubscribedError,j.UnsubscriptionError=L.UnsubscriptionError,j.pipe=L.pipe;var w=f(17721);j.TestScheduler=w.TestScheduler;var R=f(21458);j.Subscriber=R.Subscriber,j.AsyncSubject=R.AsyncSubject,j.ConnectableObservable=R.ConnectableObservable,j.TimeoutError=R.TimeoutError,j.VirtualTimeScheduler=R.VirtualTimeScheduler;var b=f(80366);j.AjaxResponse=b.AjaxResponse,j.AjaxError=b.AjaxError,j.AjaxTimeoutError=b.AjaxTimeoutError;var E=f(21458),x=f(40307),Z=f(40307);j.TimeInterval=Z.TimeInterval,j.Timestamp=Z.Timestamp;var O=f(5949);j.operators=O,j.Scheduler={asap:E.asapScheduler,queue:E.queueScheduler,animationFrame:E.animationFrameScheduler,async:E.asyncScheduler},j.Symbol={rxSubscriber:x.rxSubscriber,observable:x.observable,iterator:x.iterator}},47484:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458);B.Observable.bindCallback=B.bindCallback},53395:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458);B.Observable.bindNodeCallback=B.bindNodeCallback},40987:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458);B.Observable.combineLatest=B.combineLatest},91772:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458);B.Observable.concat=B.concat},22519:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458);B.Observable.defer=B.defer},6599:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(80366);B.Observable.ajax=U.ajax},34335:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(24631);B.Observable.webSocket=U.webSocket},17506:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458);B.Observable.empty=B.empty},43879:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458);B.Observable.forkJoin=B.forkJoin},26792:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458);B.Observable.from=B.from},80602:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458);B.Observable.fromEvent=B.fromEvent},73433:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458);B.Observable.fromEventPattern=B.fromEventPattern},54167:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458);B.Observable.fromPromise=B.from},26066:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458);B.Observable.generate=B.generate},62175:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458);B.Observable.if=B.iif},89974:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458);B.Observable.interval=B.interval},86543:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458);B.Observable.merge=B.merge},91885:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458);function U(){return B.NEVER}j.staticNever=U,B.Observable.never=U},5246:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458);B.Observable.of=B.of},93860:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458);B.Observable.onErrorResumeNext=B.onErrorResumeNext},26377:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458);B.Observable.pairs=B.pairs},40990:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458);B.Observable.race=B.race},85305:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458);B.Observable.range=B.range},78910:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458);B.Observable.throw=B.throwError,B.Observable.throwError=B.throwError},53907:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458);B.Observable.timer=B.timer},63614:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458);B.Observable.using=B.using},56351:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458);B.Observable.zip=B.zip},19692:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(16190);B.Observable.prototype.audit=U.audit},67566:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(5170);B.Observable.prototype.auditTime=U.auditTime},99016:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(63918);B.Observable.prototype.buffer=U.buffer},78203:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(53245);B.Observable.prototype.bufferCount=U.bufferCount},92572:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(95543);B.Observable.prototype.bufferTime=U.bufferTime},46162:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(7586);B.Observable.prototype.bufferToggle=U.bufferToggle},11601:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(58713);B.Observable.prototype.bufferWhen=U.bufferWhen},14651:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(98941);B.Observable.prototype.catch=U._catch,B.Observable.prototype._catch=U._catch},39143:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(64278);B.Observable.prototype.combineAll=U.combineAll},97521:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(52600);B.Observable.prototype.combineLatest=U.combineLatest},94038:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(2420);B.Observable.prototype.concat=U.concat},5429:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(52983);B.Observable.prototype.concatAll=U.concatAll},5390:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(89820);B.Observable.prototype.concatMap=U.concatMap},95087:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(50291);B.Observable.prototype.concatMapTo=U.concatMapTo},27976:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(72359);B.Observable.prototype.count=U.count},80112:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(66853);B.Observable.prototype.debounce=U.debounce},93814:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(7901);B.Observable.prototype.debounceTime=U.debounceTime},77986:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(62238);B.Observable.prototype.defaultIfEmpty=U.defaultIfEmpty},6671:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(49394);B.Observable.prototype.delay=U.delay},31349:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(6108);B.Observable.prototype.delayWhen=U.delayWhen},5475:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(6293);B.Observable.prototype.dematerialize=U.dematerialize},13592:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(60534);B.Observable.prototype.distinct=U.distinct},24425:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(26750);B.Observable.prototype.distinctUntilChanged=U.distinctUntilChanged},52457:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(61980);B.Observable.prototype.distinctUntilKeyChanged=U.distinctUntilKeyChanged},48271:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(79910);B.Observable.prototype.do=U._do,B.Observable.prototype._do=U._do},8798:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(79417);B.Observable.prototype.elementAt=U.elementAt},13465:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(83584);B.Observable.prototype.every=U.every},35262:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(71453);B.Observable.prototype.exhaust=U.exhaust},83630:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(26947);B.Observable.prototype.exhaustMap=U.exhaustMap},88113:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(7555);B.Observable.prototype.expand=U.expand},10774:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(86407);B.Observable.prototype.filter=U.filter},75834:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(34066);B.Observable.prototype.finally=U._finally,B.Observable.prototype._finally=U._finally},10845:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(2176);B.Observable.prototype.find=U.find},10366:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(30774);B.Observable.prototype.findIndex=U.findIndex},44384:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(91423);B.Observable.prototype.first=U.first},92744:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(30553);B.Observable.prototype.groupBy=U.groupBy},46844:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(52698);B.Observable.prototype.ignoreElements=U.ignoreElements},3918:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(25353);B.Observable.prototype.isEmpty=U.isEmpty},15650:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(90091);B.Observable.prototype.last=U.last},80127:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(79710);B.Observable.prototype.let=U.letProto,B.Observable.prototype.letBind=U.letProto},32821:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(28303);B.Observable.prototype.map=U.map},34402:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(51464);B.Observable.prototype.mapTo=U.mapTo},18116:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(81821);B.Observable.prototype.materialize=U.materialize},72121:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(49123);B.Observable.prototype.max=U.max},72236:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(15761);B.Observable.prototype.merge=U.merge},14810:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(6352);B.Observable.prototype.mergeAll=U.mergeAll},85986:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(35079);B.Observable.prototype.mergeMap=U.mergeMap,B.Observable.prototype.flatMap=U.mergeMap},83783:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(36545);B.Observable.prototype.flatMapTo=U.mergeMapTo,B.Observable.prototype.mergeMapTo=U.mergeMapTo},60650:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(2561);B.Observable.prototype.mergeScan=U.mergeScan},19563:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(65316);B.Observable.prototype.min=U.min},48698:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(11078);B.Observable.prototype.multicast=U.multicast},26815:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(33006);B.Observable.prototype.observeOn=U.observeOn},96569:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(962);B.Observable.prototype.onErrorResumeNext=U.onErrorResumeNext},50551:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(53153);B.Observable.prototype.pairwise=U.pairwise},56148:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(77267);B.Observable.prototype.partition=U.partition},7118:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(62472);B.Observable.prototype.pluck=U.pluck},91108:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(84124);B.Observable.prototype.publish=U.publish},73960:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(44454);B.Observable.prototype.publishBehavior=U.publishBehavior},76580:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(87267);B.Observable.prototype.publishLast=U.publishLast},61040:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(77311);B.Observable.prototype.publishReplay=U.publishReplay},70125:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(62601);B.Observable.prototype.race=U.race},54596:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(66199);B.Observable.prototype.reduce=U.reduce},92556:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(74278);B.Observable.prototype.repeat=U.repeat},13148:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(68900);B.Observable.prototype.repeatWhen=U.repeatWhen},59153:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(20257);B.Observable.prototype.retry=U.retry},66689:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(27832);B.Observable.prototype.retryWhen=U.retryWhen},9265:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(53435);B.Observable.prototype.sample=U.sample},46002:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(77875);B.Observable.prototype.sampleTime=U.sampleTime},7849:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(44290);B.Observable.prototype.scan=U.scan},23549:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(41057);B.Observable.prototype.sequenceEqual=U.sequenceEqual},72563:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(81343);B.Observable.prototype.share=U.share},59543:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(67961);B.Observable.prototype.shareReplay=U.shareReplay},38033:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(20614);B.Observable.prototype.single=U.single},98335:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(534);B.Observable.prototype.skip=U.skip},86536:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(94070);B.Observable.prototype.skipLast=U.skipLast},7749:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(21433);B.Observable.prototype.skipUntil=U.skipUntil},94686:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(99969);B.Observable.prototype.skipWhile=U.skipWhile},20873:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(71446);B.Observable.prototype.startWith=U.startWith},53847:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(84447);B.Observable.prototype.subscribeOn=U.subscribeOn},16549:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(34770);B.Observable.prototype.switch=U._switch,B.Observable.prototype._switch=U._switch},6788:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(88004);B.Observable.prototype.switchMap=U.switchMap},81848:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(37540);B.Observable.prototype.switchMapTo=U.switchMapTo},77082:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(49358);B.Observable.prototype.take=U.take},11442:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(34419);B.Observable.prototype.takeLast=U.takeLast},57565:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(54753);B.Observable.prototype.takeUntil=U.takeUntil},43772:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(38375);B.Observable.prototype.takeWhile=U.takeWhile},34736:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(39234);B.Observable.prototype.throttle=U.throttle},40257:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(20616);B.Observable.prototype.throttleTime=U.throttleTime},38728:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(53473);B.Observable.prototype.timeInterval=U.timeInterval},24090:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(21120);B.Observable.prototype.timeout=U.timeout},77681:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(89943);B.Observable.prototype.timeoutWith=U.timeoutWith},77659:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(82711);B.Observable.prototype.timestamp=U.timestamp},71117:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(96320);B.Observable.prototype.toArray=U.toArray},64268:function(){},97220:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(19458);B.Observable.prototype.window=U.window},67221:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(30065);B.Observable.prototype.windowCount=U.windowCount},83270:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(53884);B.Observable.prototype.windowTime=U.windowTime},28478:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(19596);B.Observable.prototype.windowToggle=U.windowToggle},39744:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(99248);B.Observable.prototype.windowWhen=U.windowWhen},16851:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(86136);B.Observable.prototype.withLatestFrom=U.withLatestFrom},77194:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(76649);B.Observable.prototype.zip=U.zipProto},83943:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(92027);B.Observable.prototype.zipAll=U.zipAll},16190:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(5949);j.audit=function(V){return B.audit(V)(this)}},5170:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(5949);j.auditTime=function(L,w){return void 0===w&&(w=B.asyncScheduler),U.auditTime(L,w)(this)}},63918:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(5949);j.buffer=function(V){return B.buffer(V)(this)}},53245:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(5949);j.bufferCount=function(V,L){return void 0===L&&(L=null),B.bufferCount(V,L)(this)}},95543:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(40307),V=f(5949);j.bufferTime=function(w){var R=arguments.length,b=B.asyncScheduler;U.isScheduler(arguments[arguments.length-1])&&(b=arguments[arguments.length-1],R--);var E=null;R>=2&&(E=arguments[1]);var x=Number.POSITIVE_INFINITY;return R>=3&&(x=arguments[2]),V.bufferTime(w,E,x,b)(this)}},7586:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(5949);j.bufferToggle=function(V,L){return B.bufferToggle(V,L)(this)}},58713:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(5949);j.bufferWhen=function(V){return B.bufferWhen(V)(this)}},98941:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(5949);j._catch=function(V){return B.catchError(V)(this)}},64278:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(5949);j.combineAll=function(V){return B.combineAll(V)(this)}},52600:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(40307);j.combineLatest=function(){for(var L=[],w=0;w=2?B.reduce(V,L)(this):B.reduce(V)(this)}},74278:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(5949);j.repeat=function(V){return void 0===V&&(V=-1),B.repeat(V)(this)}},68900:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(5949);j.repeatWhen=function(V){return B.repeatWhen(V)(this)}},20257:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(5949);j.retry=function(V){return void 0===V&&(V=-1),B.retry(V)(this)}},27832:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(5949);j.retryWhen=function(V){return B.retryWhen(V)(this)}},53435:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(5949);j.sample=function(V){return B.sample(V)(this)}},77875:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(21458),U=f(5949);j.sampleTime=function(L,w){return void 0===w&&(w=B.asyncScheduler),U.sampleTime(L,w)(this)}},44290:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(5949);j.scan=function(V,L){return arguments.length>=2?B.scan(V,L)(this):B.scan(V)(this)}},41057:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(5949);j.sequenceEqual=function(V,L){return B.sequenceEqual(V,L)(this)}},81343:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(5949);j.share=function(){return B.share()(this)}},67961:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(5949);j.shareReplay=function(V,L,w){return V&&"object"==typeof V?B.shareReplay(V)(this):B.shareReplay(V,L,w)(this)}},20614:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(5949);j.single=function(V){return B.single(V)(this)}},534:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(5949);j.skip=function(V){return B.skip(V)(this)}},94070:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(5949);j.skipLast=function(V){return B.skipLast(V)(this)}},21433:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(5949);j.skipUntil=function(V){return B.skipUntil(V)(this)}},99969:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(5949);j.skipWhile=function(V){return B.skipWhile(V)(this)}},71446:function(ue,j,f){"use strict";Object.defineProperty(j,"__esModule",{value:!0});var B=f(5949);j.startWith=function(){for(var V=[],L=0;L1&&void 0!==arguments[1]?arguments[1]:st.E,Kt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:st.E;return(0,He.P)(function(){return At()?Vt:Kt})}var On=f(74611),Fn=f(69301),Zn=new B.y(S.Z);function Vn(){return Zn}var zn=f(82429);function Wn(){for(var At=arguments.length,Vt=new Array(At),Kt=0;Kt0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,F=arguments.length>2?arguments[2]:void 0;return(0,B.Z)(this,M),(k=g.call(this)).scheduler=F,k._events=[],k._infiniteTimeWindow=!1,k._bufferSize=S<1?1:S,k._windowTime=I<1?1:I,I===Number.POSITIVE_INFINITY?(k._infiniteTimeWindow=!0,k.next=k.nextInfiniteTimeWindow):k.next=k.nextTimeWindow,k}return(0,U.Z)(M,[{key:"nextInfiniteTimeWindow",value:function(S){if(!this.isStopped){var I=this._events;I.push(S),I.length>this._bufferSize&&I.shift()}(0,V.Z)((0,L.Z)(M.prototype),"next",this).call(this,S)}},{key:"nextTimeWindow",value:function(S){this.isStopped||(this._events.push(new D(this._getNow(),S)),this._trimBufferThenGetEvents()),(0,V.Z)((0,L.Z)(M.prototype),"next",this).call(this,S)}},{key:"_subscribe",value:function(S){var W,I=this._infiniteTimeWindow,F=I?this._events:this._trimBufferThenGetEvents(),G=this.scheduler,X=F.length;if(this.closed)throw new O.N;if(this.isStopped||this.hasError?W=x.w.EMPTY:(this.observers.push(S),W=new y.W(this,S)),G&&S.add(S=new Z.ht(S,G)),I)for(var Y=0;YI&&(W=Math.max(W,X-I)),W>0&&G.splice(0,W),G}}]),M}(b.xQ),D=function v(g,M){(0,B.Z)(this,v),this.time=g,this.value=M}},54641:function(ue,j,f){"use strict";f.d(j,{b:function(){return V}});var B=f(18967),U=f(14105),V=function(){var L=function(){function w(R){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w.now;(0,B.Z)(this,w),this.SchedulerAction=R,this.now=b}return(0,U.Z)(w,[{key:"schedule",value:function(b){var E=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,x=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,b).schedule(x,E)}}]),w}();return L.now=function(){return Date.now()},L}()},27807:function(ue,j,f){"use strict";f.d(j,{Yc:function(){return T},xQ:function(){return D},ug:function(){return v}});var B=f(14105),U=f(38402),V=f(89200),L=f(18967),w=f(10509),R=f(97154),b=f(15801),E=f(72007),x=f(43501),Z=f(42078),O=f(17248),y=f(24629),T=function(g){(0,w.Z)(k,g);var M=(0,R.Z)(k);function k(S){var I;return(0,L.Z)(this,k),(I=M.call(this,S)).destination=S,I}return k}(E.L),D=function(){var g=function(M){(0,w.Z)(S,M);var k=(0,R.Z)(S);function S(){var I;return(0,L.Z)(this,S),(I=k.call(this)).observers=[],I.closed=!1,I.isStopped=!1,I.hasError=!1,I.thrownError=null,I}return(0,B.Z)(S,[{key:y.b,value:function(){return new T(this)}},{key:"lift",value:function(F){var G=new v(this,this);return G.operator=F,G}},{key:"next",value:function(F){if(this.closed)throw new Z.N;if(!this.isStopped)for(var G=this.observers,X=G.length,W=G.slice(),Y=0;Y1&&void 0!==arguments[1]?arguments[1]:0,v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R.e;return(0,B.Z)(this,O),(T=Z.call(this)).source=y,T.delayTime=D,T.scheduler=v,(!(0,b.k)(D)||D<0)&&(T.delayTime=0),(!v||"function"!=typeof v.schedule)&&(T.scheduler=R.e),T}return(0,U.Z)(O,[{key:"_subscribe",value:function(T){return this.scheduler.schedule(O.dispatch,this.delayTime,{source:this.source,subscriber:T})}}],[{key:"create",value:function(T){var D=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R.e;return new O(T,D,v)}},{key:"dispatch",value:function(T){return this.add(T.source.subscribe(T.subscriber))}}]),O}(w.y)},40452:function(ue,j,f){"use strict";f.d(j,{aj:function(){return O},Ms:function(){return y}});var B=f(10509),U=f(97154),V=f(18967),L=f(14105),w=f(62731),R=f(40830),b=f(74314),E=f(99319),x=f(80801),Z={};function O(){for(var D=arguments.length,v=new Array(D),g=0;g1&&void 0!==arguments[1]?arguments[1]:null;return new I({method:"GET",url:ce,headers:he})}function D(ce,he,de){return new I({method:"POST",url:ce,body:he,headers:de})}function v(ce,he){return new I({method:"DELETE",url:ce,headers:he})}function g(ce,he,de){return new I({method:"PUT",url:ce,body:he,headers:de})}function M(ce,he,de){return new I({method:"PATCH",url:ce,body:he,headers:de})}var k=(0,f(98771).U)(function(ce,he){return ce.response});function S(ce,he){return k(new I({method:"GET",url:ce,responseType:"json",headers:he}))}var ce,I=function(ce){(0,w.Z)(de,ce);var he=(0,R.Z)(de);function de(oe){var Ce;(0,V.Z)(this,de),Ce=he.call(this);var ge={async:!0,createXHR:function(){return this.crossDomain?function(){if(b.J.XMLHttpRequest)return new b.J.XMLHttpRequest;if(b.J.XDomainRequest)return new b.J.XDomainRequest;throw new Error("CORS is not supported by your browser")}():function(){if(b.J.XMLHttpRequest)return new b.J.XMLHttpRequest;var ce;try{for(var he=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],de=0;de<3;de++)try{if(new b.J.ActiveXObject(ce=he[de]))break}catch(oe){}return new b.J.ActiveXObject(ce)}catch(oe){throw new Error("XMLHttpRequest is not supported by your browser")}}()},crossDomain:!0,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof oe)ge.url=oe;else for(var qe in oe)oe.hasOwnProperty(qe)&&(ge[qe]=oe[qe]);return Ce.request=ge,Ce}return(0,L.Z)(de,[{key:"_subscribe",value:function(Ce){return new F(Ce,this.request)}}]),de}(E.y);I.create=((ce=function(de){return new I(de)}).get=T,ce.post=D,ce.delete=v,ce.put=g,ce.patch=M,ce.getJSON=S,ce);var F=function(ce){(0,w.Z)(de,ce);var he=(0,R.Z)(de);function de(oe,Ce){var ge;(0,V.Z)(this,de),(ge=he.call(this,oe)).request=Ce,ge.done=!1;var qe=Ce.headers=Ce.headers||{};return!Ce.crossDomain&&!ge.getHeader(qe,"X-Requested-With")&&(qe["X-Requested-With"]="XMLHttpRequest"),!ge.getHeader(qe,"Content-Type")&&!(b.J.FormData&&Ce.body instanceof b.J.FormData)&&void 0!==Ce.body&&(qe["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),Ce.body=ge.serializeBody(Ce.body,ge.getHeader(Ce.headers,"Content-Type")),ge.send(),ge}return(0,L.Z)(de,[{key:"next",value:function(Ce){this.done=!0;var Qe,ge=this.xhr,qe=this.request,De=this.destination;try{Qe=new G(Ce,ge,qe)}catch(et){return De.error(et)}De.next(Qe)}},{key:"send",value:function(){var Ce=this.request,ge=this.request,qe=ge.user,De=ge.method,Qe=ge.url,et=ge.async,bt=ge.password,_e=ge.headers,xe=ge.body;try{var He=this.xhr=Ce.createXHR();this.setupEvents(He,Ce),qe?He.open(De,Qe,et,qe,bt):He.open(De,Qe,et),et&&(He.timeout=Ce.timeout,He.responseType=Ce.responseType),"withCredentials"in He&&(He.withCredentials=!!Ce.withCredentials),this.setHeaders(He,_e),xe?He.send(xe):He.send()}catch(st){this.error(st)}}},{key:"serializeBody",value:function(Ce,ge){if(!Ce||"string"==typeof Ce)return Ce;if(b.J.FormData&&Ce instanceof b.J.FormData)return Ce;if(ge){var qe=ge.indexOf(";");-1!==qe&&(ge=ge.substring(0,qe))}switch(ge){case"application/x-www-form-urlencoded":return Object.keys(Ce).map(function(De){return"".concat(encodeURIComponent(De),"=").concat(encodeURIComponent(Ce[De]))}).join("&");case"application/json":return JSON.stringify(Ce);default:return Ce}}},{key:"setHeaders",value:function(Ce,ge){for(var qe in ge)ge.hasOwnProperty(qe)&&Ce.setRequestHeader(qe,ge[qe])}},{key:"getHeader",value:function(Ce,ge){for(var qe in Ce)if(qe.toLowerCase()===ge.toLowerCase())return Ce[qe]}},{key:"setupEvents",value:function(Ce,ge){var Qe,et,qe=ge.progressSubscriber;function De(xe){var Zt,He=De.subscriber,st=De.progressSubscriber,tt=De.request;st&&st.error(xe);try{Zt=new fe(this,tt)}catch(Tt){Zt=Tt}He.error(Zt)}(Ce.ontimeout=De,De.request=ge,De.subscriber=this,De.progressSubscriber=qe,Ce.upload&&"withCredentials"in Ce)&&(qe&&(Qe=function(He){Qe.progressSubscriber.next(He)},b.J.XDomainRequest?Ce.onprogress=Qe:Ce.upload.onprogress=Qe,Qe.progressSubscriber=qe),Ce.onerror=et=function(He){var mt,tt=et.progressSubscriber,Zt=et.subscriber,Tt=et.request;tt&&tt.error(He);try{mt=new W("ajax error",this,Tt)}catch(Yt){mt=Yt}Zt.error(mt)},et.request=ge,et.subscriber=this,et.progressSubscriber=qe);function bt(xe){}function _e(xe){var He=_e.subscriber,st=_e.progressSubscriber,tt=_e.request;if(4===this.readyState){var Zt=1223===this.status?204:this.status;if(0===Zt&&(Zt=("text"===this.responseType?this.response||this.responseText:this.response)?200:0),Zt<400)st&&st.complete(),He.next(xe),He.complete();else{var mt;st&&st.error(xe);try{mt=new W("ajax error "+Zt,this,tt)}catch(Yt){mt=Yt}He.error(mt)}}}Ce.onreadystatechange=bt,bt.subscriber=this,bt.progressSubscriber=qe,bt.request=ge,Ce.onload=_e,_e.subscriber=this,_e.progressSubscriber=qe,_e.request=ge}},{key:"unsubscribe",value:function(){var ge=this.xhr;!this.done&&ge&&4!==ge.readyState&&"function"==typeof ge.abort&&ge.abort(),(0,B.Z)((0,U.Z)(de.prototype),"unsubscribe",this).call(this)}}]),de}(x.L),G=function ce(he,de,oe){(0,V.Z)(this,ce),this.originalEvent=he,this.xhr=de,this.request=oe,this.status=de.status,this.responseType=de.responseType||oe.responseType,this.response=ae(this.responseType,de)},X=function(){function ce(he,de,oe){return Error.call(this),this.message=he,this.name="AjaxError",this.xhr=de,this.request=oe,this.status=de.status,this.responseType=de.responseType||oe.responseType,this.response=ae(this.responseType,de),this}return ce.prototype=Object.create(Error.prototype),ce}(),W=X;function ae(ce,he){switch(ce){case"json":return function(ce){return"response"in ce?ce.responseType?ce.response:JSON.parse(ce.response||ce.responseText||"null"):JSON.parse(ce.responseText||"null")}(he);case"xml":return he.responseXML;default:return"response"in he?he.response:he.responseText}}var fe=function(ce,he){return W.call(this,"ajax timeout",ce,he),this.name="AjaxTimeoutError",this}},60272:function(ue,j,f){"use strict";f.d(j,{p:function(){return D}});var B=f(18967),U=f(14105),V=f(38402),L=f(89200),w=f(10509),R=f(97154),b=f(27807),E=f(72007),x=f(15801),Z=f(43501),O=f(12375),y={url:"",deserializer:function(g){return JSON.parse(g.data)},serializer:function(g){return JSON.stringify(g)}},D=function(v){(0,w.Z)(M,v);var g=(0,R.Z)(M);function M(k,S){var I;if((0,B.Z)(this,M),I=g.call(this),k instanceof x.y)I.destination=S,I.source=k;else{var F=I._config=Object.assign({},y);if(I._output=new b.xQ,"string"==typeof k)F.url=k;else for(var G in k)k.hasOwnProperty(G)&&(F[G]=k[G]);if(!F.WebSocketCtor&&WebSocket)F.WebSocketCtor=WebSocket;else if(!F.WebSocketCtor)throw new Error("no WebSocket constructor can be found");I.destination=new O.t}return I}return(0,U.Z)(M,[{key:"lift",value:function(S){var I=new M(this._config,this.destination);return I.operator=S,I.source=this,I}},{key:"_resetState",value:function(){this._socket=null,this.source||(this.destination=new O.t),this._output=new b.xQ}},{key:"multiplex",value:function(S,I,F){var G=this;return new x.y(function(X){try{G.next(S())}catch(Y){X.error(Y)}var W=G.subscribe(function(Y){try{F(Y)&&X.next(Y)}catch(ae){X.error(ae)}},function(Y){return X.error(Y)},function(){return X.complete()});return function(){try{G.next(I())}catch(Y){X.error(Y)}W.unsubscribe()}})}},{key:"_connectSocket",value:function(){var S=this,I=this._config,F=I.WebSocketCtor,G=I.protocol,X=I.url,W=I.binaryType,Y=this._output,ae=null;try{ae=G?new F(X,G):new F(X),this._socket=ae,W&&(this._socket.binaryType=W)}catch(fe){return void Y.error(fe)}var K=new Z.w(function(){S._socket=null,ae&&1===ae.readyState&&ae.close()});ae.onopen=function(fe){if(!S._socket)return ae.close(),void S._resetState();var he=S._config.openObserver;he&&he.next(fe);var de=S.destination;S.destination=E.L.create(function(oe){if(1===ae.readyState)try{ae.send((0,S._config.serializer)(oe))}catch(ge){S.destination.error(ge)}},function(oe){var Ce=S._config.closingObserver;Ce&&Ce.next(void 0),oe&&oe.code?ae.close(oe.code,oe.reason):Y.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),S._resetState()},function(){var oe=S._config.closingObserver;oe&&oe.next(void 0),ae.close(),S._resetState()}),de&&de instanceof O.t&&K.add(de.subscribe(S.destination))},ae.onerror=function(fe){S._resetState(),Y.error(fe)},ae.onclose=function(fe){S._resetState();var ce=S._config.closeObserver;ce&&ce.next(fe),fe.wasClean?Y.complete():Y.error(fe)},ae.onmessage=function(fe){try{Y.next((0,S._config.deserializer)(fe))}catch(he){Y.error(he)}}}},{key:"_subscribe",value:function(S){var I=this,F=this.source;return F?F.subscribe(S):(this._socket||this._connectSocket(),this._output.subscribe(S),S.add(function(){var G=I._socket;0===I._output.observers.length&&(G&&1===G.readyState&&G.close(),I._resetState())}),S)}},{key:"unsubscribe",value:function(){var S=this._socket;S&&1===S.readyState&&S.close(),this._resetState(),(0,V.Z)((0,L.Z)(M.prototype),"unsubscribe",this).call(this)}}]),M}(b.ug)},48833:function(ue,j,f){"use strict";f.d(j,{h:function(){return U}});var U=f(93061).i6.create},67198:function(ue,j,f){"use strict";f.d(j,{j:function(){return U}});var B=f(60272);function U(V){return new B.p(V)}},5441:function(ue,j,f){"use strict";f.d(j,{E:function(){return U},c:function(){return V}});var B=f(15801),U=new B.y(function(w){return w.complete()});function V(w){return w?function(w){return new B.y(function(R){return w.schedule(function(){return R.complete()})})}(w):U}},24778:function(ue,j,f){"use strict";f.d(j,{D:function(){return b}});var B=f(333),U=f(15801),V=f(40830),L=f(98771),w=f(11458),R=f(17048);function b(){for(var x=arguments.length,Z=new Array(x),O=0;O1?Array.prototype.slice.call(arguments):k)},g,D)})}function E(y,T,D,v,g){var M;if(function(y){return y&&"function"==typeof y.addEventListener&&"function"==typeof y.removeEventListener}(y)){var k=y;y.addEventListener(T,D,g),M=function(){return k.removeEventListener(T,D,g)}}else if(function(y){return y&&"function"==typeof y.on&&"function"==typeof y.off}(y)){var S=y;y.on(T,D),M=function(){return S.off(T,D)}}else if(function(y){return y&&"function"==typeof y.addListener&&"function"==typeof y.removeListener}(y)){var I=y;y.addListener(T,D),M=function(){return I.removeListener(T,D)}}else{if(!y||!y.length)throw new TypeError("Invalid event target");for(var F=0,G=y.length;F0&&void 0!==arguments[0]?arguments[0]:0,b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U.P;return(!(0,V.k)(R)||R<0)&&(R=0),(!b||"function"!=typeof b.schedule)&&(b=U.P),new B.y(function(E){return E.add(b.schedule(w,R,{subscriber:E,counter:0,period:R})),E})}function w(R){var b=R.subscriber,E=R.counter,x=R.period;b.next(E),this.schedule({subscriber:b,counter:E+1,period:x},x)}},69301:function(ue,j,f){"use strict";f.d(j,{T:function(){return w}});var B=f(15801),U=f(62731),V=f(76955),L=f(80801);function w(){for(var R=Number.POSITIVE_INFINITY,b=null,E=arguments.length,x=new Array(E),Z=0;Z1&&"number"==typeof x[x.length-1]&&(R=x.pop())):"number"==typeof O&&(R=x.pop()),null===b&&1===x.length&&x[0]instanceof B.y?x[0]:(0,V.J)(R)((0,L.n)(x,b))}},82429:function(ue,j,f){"use strict";f.d(j,{of:function(){return L}});var B=f(62731),U=f(80801),V=f(2411);function L(){for(var w=arguments.length,R=new Array(w),b=0;b0&&void 0!==arguments[0]?arguments[0]:0,w=arguments.length>1?arguments[1]:void 0,R=arguments.length>2?arguments[2]:void 0;return new B.y(function(b){void 0===w&&(w=L,L=0);var E=0,x=L;if(R)return R.schedule(V,0,{index:E,count:w,start:L,subscriber:b});for(;;){if(E++>=w){b.complete();break}if(b.next(x++),b.closed)break}})}function V(L){var w=L.start,R=L.index,E=L.subscriber;R>=L.count?E.complete():(E.next(w),!E.closed&&(L.index=R+1,L.start=w+1,this.schedule(L)))}},43334:function(ue,j,f){"use strict";f.d(j,{_:function(){return U}});var B=f(15801);function U(L,w){return new B.y(w?function(R){return w.schedule(V,0,{error:L,subscriber:R})}:function(R){return R.error(L)})}function V(L){L.subscriber.error(L.error)}},46674:function(ue,j,f){"use strict";f.d(j,{H:function(){return w}});var B=f(15801),U=f(59449),V=f(32104),L=f(62731);function w(){var b=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,E=arguments.length>1?arguments[1]:void 0,x=arguments.length>2?arguments[2]:void 0,Z=-1;return(0,V.k)(E)?Z=Number(E)<1?1:Number(E):(0,L.K)(E)&&(x=E),(0,L.K)(x)||(x=U.P),new B.y(function(O){var y=(0,V.k)(b)?b:+b-x.now();return x.schedule(R,y,{index:0,period:Z,subscriber:O})})}function R(b){var E=b.index,x=b.period,Z=b.subscriber;if(Z.next(E),!Z.closed){if(-1===x)return Z.complete();b.index=E+1,this.schedule(b,x)}}},4042:function(ue,j,f){"use strict";f.d(j,{$R:function(){return Z},mx:function(){return O}});var B=f(10509),U=f(97154),V=f(18967),L=f(14105),w=f(80801),R=f(40830),b=f(72007),E=f(56203),x=f(26303);function Z(){for(var g=arguments.length,M=new Array(g),k=0;k2&&void 0!==arguments[2]||Object.create(null),(0,V.Z)(this,k),(F=M.call(this,S)).resultSelector=I,F.iterators=[],F.active=0,F.resultSelector="function"==typeof I?I:void 0,F}return(0,L.Z)(k,[{key:"_next",value:function(I){var F=this.iterators;(0,R.k)(I)?F.push(new D(I)):F.push("function"==typeof I[E.hZ]?new T(I[E.hZ]()):new v(this.destination,this,I))}},{key:"_complete",value:function(){var I=this.iterators,F=I.length;if(this.unsubscribe(),0!==F){this.active=F;for(var G=0;Gthis.index}},{key:"hasCompleted",value:function(){return this.array.length===this.index}}]),g}(),v=function(g){(0,B.Z)(k,g);var M=(0,U.Z)(k);function k(S,I,F){var G;return(0,V.Z)(this,k),(G=M.call(this,S)).parent=I,G.observable=F,G.stillUnsubscribed=!0,G.buffer=[],G.isComplete=!1,G}return(0,L.Z)(k,[{key:E.hZ,value:function(){return this}},{key:"next",value:function(){var I=this.buffer;return 0===I.length&&this.isComplete?{value:null,done:!0}:{value:I.shift(),done:!1}}},{key:"hasValue",value:function(){return this.buffer.length>0}},{key:"hasCompleted",value:function(){return 0===this.buffer.length&&this.isComplete}},{key:"notifyComplete",value:function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}},{key:"notifyNext",value:function(I){this.buffer.push(I),this.parent.checkIterators()}},{key:"subscribe",value:function(){return(0,x.ft)(this.observable,new x.IY(this))}}]),k}(x.Ds)},17234:function(ue,j,f){"use strict";f.d(j,{U:function(){return R}});var B=f(10509),U=f(97154),V=f(18967),L=f(14105),w=f(26303);function R(x){return function(O){return O.lift(new b(x))}}var b=function(){function x(Z){(0,V.Z)(this,x),this.durationSelector=Z}return(0,L.Z)(x,[{key:"call",value:function(O,y){return y.subscribe(new E(O,this.durationSelector))}}]),x}(),E=function(x){(0,B.Z)(O,x);var Z=(0,U.Z)(O);function O(y,T){var D;return(0,V.Z)(this,O),(D=Z.call(this,y)).durationSelector=T,D.hasValue=!1,D}return(0,L.Z)(O,[{key:"_next",value:function(T){if(this.value=T,this.hasValue=!0,!this.throttled){var D;try{D=(0,this.durationSelector)(T)}catch(M){return this.destination.error(M)}var g=(0,w.ft)(D,new w.IY(this));!g||g.closed?this.clearThrottle():this.add(this.throttled=g)}}},{key:"clearThrottle",value:function(){var T=this.value,D=this.hasValue,v=this.throttled;v&&(this.remove(v),this.throttled=void 0,v.unsubscribe()),D&&(this.value=void 0,this.hasValue=!1,this.destination.next(T))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),O}(w.Ds)},80758:function(ue,j,f){"use strict";f.d(j,{e:function(){return L}});var B=f(59449),U=f(17234),V=f(46674);function L(w){var R=arguments.length>1&&void 0!==arguments[1]?arguments[1]:B.P;return(0,U.U)(function(){return(0,V.H)(w,R)})}},67254:function(ue,j,f){"use strict";f.d(j,{K:function(){return E}});var B=f(38402),U=f(89200),V=f(10509),L=f(97154),w=f(18967),R=f(14105),b=f(26303);function E(O){return function(T){var D=new x(O),v=T.lift(D);return D.caught=v}}var x=function(){function O(y){(0,w.Z)(this,O),this.selector=y}return(0,R.Z)(O,[{key:"call",value:function(T,D){return D.subscribe(new Z(T,this.selector,this.caught))}}]),O}(),Z=function(O){(0,V.Z)(T,O);var y=(0,L.Z)(T);function T(D,v,g){var M;return(0,w.Z)(this,T),(M=y.call(this,D)).selector=v,M.caught=g,M}return(0,R.Z)(T,[{key:"error",value:function(v){if(!this.isStopped){var g;try{g=this.selector(v,this.caught)}catch(S){return void(0,B.Z)((0,U.Z)(T.prototype),"error",this).call(this,S)}this._unsubscribeAndRecycle();var M=new b.IY(this);this.add(M);var k=(0,b.ft)(g,M);k!==M&&this.add(k)}}}]),T}(b.Ds)},12538:function(ue,j,f){"use strict";f.d(j,{u:function(){return U}});var B=f(76955);function U(){return(0,B.J)(1)}},30854:function(ue,j,f){"use strict";f.d(j,{b:function(){return U}});var B=f(23199);function U(V,L){return(0,B.zg)(V,L,1)}},43415:function(ue,j,f){"use strict";f.d(j,{Q:function(){return R}});var B=f(10509),U=f(97154),V=f(18967),L=f(14105),w=f(72007);function R(x){return function(Z){return Z.lift(new b(x,Z))}}var b=function(){function x(Z,O){(0,V.Z)(this,x),this.predicate=Z,this.source=O}return(0,L.Z)(x,[{key:"call",value:function(O,y){return y.subscribe(new E(O,this.predicate,this.source))}}]),x}(),E=function(x){(0,B.Z)(O,x);var Z=(0,U.Z)(O);function O(y,T,D){var v;return(0,V.Z)(this,O),(v=Z.call(this,y)).predicate=T,v.source=D,v.count=0,v.index=0,v}return(0,L.Z)(O,[{key:"_next",value:function(T){this.predicate?this._tryPredicate(T):this.count++}},{key:"_tryPredicate",value:function(T){var D;try{D=this.predicate(T,this.index++,this.source)}catch(v){return void this.destination.error(v)}D&&this.count++}},{key:"_complete",value:function(){this.destination.next(this.count),this.destination.complete()}}]),O}(w.L)},46656:function(ue,j,f){"use strict";f.d(j,{b:function(){return b}});var B=f(10509),U=f(97154),V=f(18967),L=f(14105),w=f(72007),R=f(59449);function b(O){var y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R.P;return function(T){return T.lift(new E(O,y))}}var E=function(){function O(y,T){(0,V.Z)(this,O),this.dueTime=y,this.scheduler=T}return(0,L.Z)(O,[{key:"call",value:function(T,D){return D.subscribe(new x(T,this.dueTime,this.scheduler))}}]),O}(),x=function(O){(0,B.Z)(T,O);var y=(0,U.Z)(T);function T(D,v,g){var M;return(0,V.Z)(this,T),(M=y.call(this,D)).dueTime=v,M.scheduler=g,M.debouncedSubscription=null,M.lastValue=null,M.hasValue=!1,M}return(0,L.Z)(T,[{key:"_next",value:function(v){this.clearDebounce(),this.lastValue=v,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Z,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var v=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(v)}}},{key:"clearDebounce",value:function(){var v=this.debouncedSubscription;null!==v&&(this.remove(v),v.unsubscribe(),this.debouncedSubscription=null)}}]),T}(w.L);function Z(O){O.debouncedNext()}},31692:function(ue,j,f){"use strict";f.d(j,{d:function(){return R}});var B=f(10509),U=f(97154),V=f(18967),L=f(14105),w=f(72007);function R(){var x=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(Z){return Z.lift(new b(x))}}var b=function(){function x(Z){(0,V.Z)(this,x),this.defaultValue=Z}return(0,L.Z)(x,[{key:"call",value:function(O,y){return y.subscribe(new E(O,this.defaultValue))}}]),x}(),E=function(x){(0,B.Z)(O,x);var Z=(0,U.Z)(O);function O(y,T){var D;return(0,V.Z)(this,O),(D=Z.call(this,y)).defaultValue=T,D.isEmpty=!0,D}return(0,L.Z)(O,[{key:"_next",value:function(T){this.isEmpty=!1,this.destination.next(T)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),O}(w.L)},99359:function(ue,j,f){"use strict";f.d(j,{g:function(){return x}});var B=f(10509),U=f(97154),V=f(18967),L=f(14105),w=f(59449),R=f(54493),b=f(72007),E=f(47625);function x(T){var D=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w.P,v=(0,R.J)(T),g=v?+T-D.now():Math.abs(T);return function(M){return M.lift(new Z(g,D))}}var Z=function(){function T(D,v){(0,V.Z)(this,T),this.delay=D,this.scheduler=v}return(0,L.Z)(T,[{key:"call",value:function(v,g){return g.subscribe(new O(v,this.delay,this.scheduler))}}]),T}(),O=function(T){(0,B.Z)(v,T);var D=(0,U.Z)(v);function v(g,M,k){var S;return(0,V.Z)(this,v),(S=D.call(this,g)).delay=M,S.scheduler=k,S.queue=[],S.active=!1,S.errored=!1,S}return(0,L.Z)(v,[{key:"_schedule",value:function(M){this.active=!0,this.destination.add(M.schedule(v.dispatch,this.delay,{source:this,destination:this.destination,scheduler:M}))}},{key:"scheduleNotification",value:function(M){if(!0!==this.errored){var k=this.scheduler,S=new y(k.now()+this.delay,M);this.queue.push(S),!1===this.active&&this._schedule(k)}}},{key:"_next",value:function(M){this.scheduleNotification(E.P.createNext(M))}},{key:"_error",value:function(M){this.errored=!0,this.queue=[],this.destination.error(M),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(E.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(M){for(var k=M.source,S=k.queue,I=M.scheduler,F=M.destination;S.length>0&&S[0].time-I.now()<=0;)S.shift().notification.observe(F);if(S.length>0){var G=Math.max(0,S[0].time-I.now());this.schedule(M,G)}else this.unsubscribe(),k.active=!1}}]),v}(b.L),y=function T(D,v){(0,V.Z)(this,T),this.time=D,this.notification=v}},65944:function(ue,j,f){"use strict";f.d(j,{x:function(){return R}});var B=f(10509),U=f(97154),V=f(18967),L=f(14105),w=f(72007);function R(x,Z){return function(O){return O.lift(new b(x,Z))}}var b=function(){function x(Z,O){(0,V.Z)(this,x),this.compare=Z,this.keySelector=O}return(0,L.Z)(x,[{key:"call",value:function(O,y){return y.subscribe(new E(O,this.compare,this.keySelector))}}]),x}(),E=function(x){(0,B.Z)(O,x);var Z=(0,U.Z)(O);function O(y,T,D){var v;return(0,V.Z)(this,O),(v=Z.call(this,y)).keySelector=D,v.hasKey=!1,"function"==typeof T&&(v.compare=T),v}return(0,L.Z)(O,[{key:"compare",value:function(T,D){return T===D}},{key:"_next",value:function(T){var D;try{var v=this.keySelector;D=v?v(T):T}catch(k){return this.destination.error(k)}var g=!1;if(this.hasKey)try{g=(0,this.compare)(this.key,D)}catch(k){return this.destination.error(k)}else this.hasKey=!0;g||(this.key=D,this.destination.next(T))}}]),O}(w.L)},50439:function(ue,j,f){"use strict";f.d(j,{h:function(){return R}});var B=f(10509),U=f(97154),V=f(18967),L=f(14105),w=f(72007);function R(x,Z){return function(y){return y.lift(new b(x,Z))}}var b=function(){function x(Z,O){(0,V.Z)(this,x),this.predicate=Z,this.thisArg=O}return(0,L.Z)(x,[{key:"call",value:function(O,y){return y.subscribe(new E(O,this.predicate,this.thisArg))}}]),x}(),E=function(x){(0,B.Z)(O,x);var Z=(0,U.Z)(O);function O(y,T,D){var v;return(0,V.Z)(this,O),(v=Z.call(this,y)).predicate=T,v.thisArg=D,v.count=0,v}return(0,L.Z)(O,[{key:"_next",value:function(T){var D;try{D=this.predicate.call(this.thisArg,T,this.count++)}catch(v){return void this.destination.error(v)}D&&this.destination.next(T)}}]),O}(w.L)},30366:function(ue,j,f){"use strict";f.d(j,{x:function(){return b}});var B=f(10509),U=f(97154),V=f(18967),L=f(14105),w=f(72007),R=f(43501);function b(Z){return function(O){return O.lift(new E(Z))}}var E=function(){function Z(O){(0,V.Z)(this,Z),this.callback=O}return(0,L.Z)(Z,[{key:"call",value:function(y,T){return T.subscribe(new x(y,this.callback))}}]),Z}(),x=function(Z){(0,B.Z)(y,Z);var O=(0,U.Z)(y);function y(T,D){var v;return(0,V.Z)(this,y),(v=O.call(this,T)).add(new R.w(D)),v}return y}(w.L)},64187:function(ue,j,f){"use strict";f.d(j,{P:function(){return b}});var B=f(15449),U=f(50439),V=f(63303),L=f(31692),w=f(83328),R=f(88533);function b(E,x){var Z=arguments.length>=2;return function(O){return O.pipe(E?(0,U.h)(function(y,T){return E(y,T,O)}):R.y,(0,V.q)(1),Z?(0,L.d)(x):(0,w.T)(function(){return new B.K}))}}},91646:function(ue,j,f){"use strict";f.d(j,{v:function(){return O},T:function(){return v}});var B=f(38402),U=f(89200),V=f(10509),L=f(97154),w=f(18967),R=f(14105),b=f(72007),E=f(43501),x=f(15801),Z=f(27807);function O(M,k,S,I){return function(F){return F.lift(new y(M,k,S,I))}}var y=function(){function M(k,S,I,F){(0,w.Z)(this,M),this.keySelector=k,this.elementSelector=S,this.durationSelector=I,this.subjectSelector=F}return(0,R.Z)(M,[{key:"call",value:function(S,I){return I.subscribe(new T(S,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}]),M}(),T=function(M){(0,V.Z)(S,M);var k=(0,L.Z)(S);function S(I,F,G,X,W){var Y;return(0,w.Z)(this,S),(Y=k.call(this,I)).keySelector=F,Y.elementSelector=G,Y.durationSelector=X,Y.subjectSelector=W,Y.groups=null,Y.attemptedToUnsubscribe=!1,Y.count=0,Y}return(0,R.Z)(S,[{key:"_next",value:function(F){var G;try{G=this.keySelector(F)}catch(X){return void this.error(X)}this._group(F,G)}},{key:"_group",value:function(F,G){var X=this.groups;X||(X=this.groups=new Map);var Y,W=X.get(G);if(this.elementSelector)try{Y=this.elementSelector(F)}catch(fe){this.error(fe)}else Y=F;if(!W){W=this.subjectSelector?this.subjectSelector():new Z.xQ,X.set(G,W);var ae=new v(G,W,this);if(this.destination.next(ae),this.durationSelector){var K;try{K=this.durationSelector(new v(G,W))}catch(fe){return void this.error(fe)}this.add(K.subscribe(new D(G,W,this)))}}W.closed||W.next(Y)}},{key:"_error",value:function(F){var G=this.groups;G&&(G.forEach(function(X,W){X.error(F)}),G.clear()),this.destination.error(F)}},{key:"_complete",value:function(){var F=this.groups;F&&(F.forEach(function(G,X){G.complete()}),F.clear()),this.destination.complete()}},{key:"removeGroup",value:function(F){this.groups.delete(F)}},{key:"unsubscribe",value:function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&(0,B.Z)((0,U.Z)(S.prototype),"unsubscribe",this).call(this))}}]),S}(b.L),D=function(M){(0,V.Z)(S,M);var k=(0,L.Z)(S);function S(I,F,G){var X;return(0,w.Z)(this,S),(X=k.call(this,F)).key=I,X.group=F,X.parent=G,X}return(0,R.Z)(S,[{key:"_next",value:function(F){this.complete()}},{key:"_unsubscribe",value:function(){var F=this.parent,G=this.key;this.key=this.parent=null,F&&F.removeGroup(G)}}]),S}(b.L),v=function(M){(0,V.Z)(S,M);var k=(0,L.Z)(S);function S(I,F,G){var X;return(0,w.Z)(this,S),(X=k.call(this)).key=I,X.groupSubject=F,X.refCountSubscription=G,X}return(0,R.Z)(S,[{key:"_subscribe",value:function(F){var G=new E.w,X=this.refCountSubscription,W=this.groupSubject;return X&&!X.closed&&G.add(new g(X)),G.add(W.subscribe(F)),G}}]),S}(x.y),g=function(M){(0,V.Z)(S,M);var k=(0,L.Z)(S);function S(I){var F;return(0,w.Z)(this,S),(F=k.call(this)).parent=I,I.count++,F}return(0,R.Z)(S,[{key:"unsubscribe",value:function(){var F=this.parent;!F.closed&&!this.closed&&((0,B.Z)((0,U.Z)(S.prototype),"unsubscribe",this).call(this),F.count-=1,0===F.count&&F.attemptedToUnsubscribe&&F.unsubscribe())}}]),S}(E.w)},23414:function(ue,j,f){"use strict";f.d(j,{Z:function(){return b}});var B=f(15449),U=f(50439),V=f(52333),L=f(83328),w=f(31692),R=f(88533);function b(E,x){var Z=arguments.length>=2;return function(O){return O.pipe(E?(0,U.h)(function(y,T){return E(y,T,O)}):R.y,(0,V.h)(1),Z?(0,w.d)(x):(0,L.T)(function(){return new B.K}))}}},98771:function(ue,j,f){"use strict";f.d(j,{U:function(){return b}});var B=f(88009),U=f(10509),V=f(97154),L=f(18967),w=f(14105),R=f(72007);function b(Z,O){return function(T){if("function"!=typeof Z)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return T.lift(new E(Z,O))}}var E=function(){function Z(O,y){(0,L.Z)(this,Z),this.project=O,this.thisArg=y}return(0,w.Z)(Z,[{key:"call",value:function(y,T){return T.subscribe(new x(y,this.project,this.thisArg))}}]),Z}(),x=function(Z){(0,U.Z)(y,Z);var O=(0,V.Z)(y);function y(T,D,v){var g;return(0,L.Z)(this,y),(g=O.call(this,T)).project=D,g.count=0,g.thisArg=v||(0,B.Z)(g),g}return(0,w.Z)(y,[{key:"_next",value:function(D){var v;try{v=this.project.call(this.thisArg,D,this.count++)}catch(g){return void this.destination.error(g)}this.destination.next(v)}}]),y}(R.L)},76955:function(ue,j,f){"use strict";f.d(j,{J:function(){return V}});var B=f(23199),U=f(88533);function V(){var L=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return(0,B.zg)(U.y,L)}},23199:function(ue,j,f){"use strict";f.d(j,{zg:function(){return E},VS:function(){return O}});var B=f(10509),U=f(97154),V=f(18967),L=f(14105),w=f(98771),R=f(17048),b=f(26303);function E(y,T){var D=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof T?function(v){return v.pipe(E(function(g,M){return(0,R.D)(y(g,M)).pipe((0,w.U)(function(k,S){return T(g,k,M,S)}))},D))}:("number"==typeof T&&(D=T),function(v){return v.lift(new x(y,D))})}var x=function(){function y(T){var D=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;(0,V.Z)(this,y),this.project=T,this.concurrent=D}return(0,L.Z)(y,[{key:"call",value:function(D,v){return v.subscribe(new Z(D,this.project,this.concurrent))}}]),y}(),Z=function(y){(0,B.Z)(D,y);var T=(0,U.Z)(D);function D(v,g){var M,k=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return(0,V.Z)(this,D),(M=T.call(this,v)).project=g,M.concurrent=k,M.hasCompleted=!1,M.buffer=[],M.active=0,M.index=0,M}return(0,L.Z)(D,[{key:"_next",value:function(g){this.active0?this._next(g.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),D}(b.Ds),O=E},56023:function(ue,j,f){"use strict";f.d(j,{O:function(){return L}});var B=f(18967),U=f(14105),V=f(96705);function L(R,b){return function(x){var Z;if(Z="function"==typeof R?R:function(){return R},"function"==typeof b)return x.lift(new w(Z,b));var O=Object.create(x,V.N);return O.source=x,O.subjectFactory=Z,O}}var w=function(){function R(b,E){(0,B.Z)(this,R),this.subjectFactory=b,this.selector=E}return(0,U.Z)(R,[{key:"call",value:function(E,x){var Z=this.selector,O=this.subjectFactory(),y=Z(O).subscribe(E);return y.add(x.subscribe(O)),y}}]),R}()},63649:function(ue,j,f){"use strict";f.d(j,{QV:function(){return b},ht:function(){return x}});var B=f(10509),U=f(97154),V=f(18967),L=f(14105),w=f(72007),R=f(47625);function b(O){var y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(D){return D.lift(new E(O,y))}}var E=function(){function O(y){var T=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,V.Z)(this,O),this.scheduler=y,this.delay=T}return(0,L.Z)(O,[{key:"call",value:function(T,D){return D.subscribe(new x(T,this.scheduler,this.delay))}}]),O}(),x=function(O){(0,B.Z)(T,O);var y=(0,U.Z)(T);function T(D,v){var g,M=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return(0,V.Z)(this,T),(g=y.call(this,D)).scheduler=v,g.delay=M,g}return(0,L.Z)(T,[{key:"scheduleMessage",value:function(v){this.destination.add(this.scheduler.schedule(T.dispatch,this.delay,new Z(v,this.destination)))}},{key:"_next",value:function(v){this.scheduleMessage(R.P.createNext(v))}},{key:"_error",value:function(v){this.scheduleMessage(R.P.createError(v)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(R.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(v){v.notification.observe(v.destination),this.unsubscribe()}}]),T}(w.L),Z=function O(y,T){(0,V.Z)(this,O),this.notification=y,this.destination=T}},91979:function(ue,j,f){"use strict";f.d(j,{G:function(){return R}});var B=f(10509),U=f(97154),V=f(18967),L=f(14105),w=f(72007);function R(){return function(x){return x.lift(new b)}}var b=function(){function x(){(0,V.Z)(this,x)}return(0,L.Z)(x,[{key:"call",value:function(O,y){return y.subscribe(new E(O))}}]),x}(),E=function(x){(0,B.Z)(O,x);var Z=(0,U.Z)(O);function O(y){var T;return(0,V.Z)(this,O),(T=Z.call(this,y)).hasPrev=!1,T}return(0,L.Z)(O,[{key:"_next",value:function(T){var D;this.hasPrev?D=[this.prev,T]:this.hasPrev=!0,this.prev=T,D&&this.destination.next(D)}}]),O}(w.L)},56866:function(ue,j,f){"use strict";f.d(j,{x:function(){return R}});var B=f(10509),U=f(97154),V=f(18967),L=f(14105),w=f(72007);function R(){return function(Z){return Z.lift(new b(Z))}}var b=function(){function x(Z){(0,V.Z)(this,x),this.connectable=Z}return(0,L.Z)(x,[{key:"call",value:function(O,y){var T=this.connectable;T._refCount++;var D=new E(O,T),v=y.subscribe(D);return D.closed||(D.connection=T.connect()),v}}]),x}(),E=function(x){(0,B.Z)(O,x);var Z=(0,U.Z)(O);function O(y,T){var D;return(0,V.Z)(this,O),(D=Z.call(this,y)).connectable=T,D}return(0,L.Z)(O,[{key:"_unsubscribe",value:function(){var T=this.connectable;if(T){this.connectable=null;var D=T._refCount;if(D<=0)this.connection=null;else if(T._refCount=D-1,D>1)this.connection=null;else{var v=this.connection,g=T._connection;this.connection=null,g&&(!v||g===v)&&g.unsubscribe()}}else this.connection=null}}]),O}(w.L)},73062:function(ue,j,f){"use strict";f.d(j,{R:function(){return R}});var B=f(10509),U=f(97154),V=f(18967),L=f(14105),w=f(72007);function R(x,Z){var O=!1;return arguments.length>=2&&(O=!0),function(T){return T.lift(new b(x,Z,O))}}var b=function(){function x(Z,O){var y=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,V.Z)(this,x),this.accumulator=Z,this.seed=O,this.hasSeed=y}return(0,L.Z)(x,[{key:"call",value:function(O,y){return y.subscribe(new E(O,this.accumulator,this.seed,this.hasSeed))}}]),x}(),E=function(x){(0,B.Z)(O,x);var Z=(0,U.Z)(O);function O(y,T,D,v){var g;return(0,V.Z)(this,O),(g=Z.call(this,y)).accumulator=T,g._seed=D,g.hasSeed=v,g.index=0,g}return(0,L.Z)(O,[{key:"seed",get:function(){return this._seed},set:function(T){this.hasSeed=!0,this._seed=T}},{key:"_next",value:function(T){if(this.hasSeed)return this._tryNext(T);this.seed=T,this.destination.next(T)}},{key:"_tryNext",value:function(T){var v,D=this.index++;try{v=this.accumulator(this.seed,T,D)}catch(g){this.destination.error(g)}this.seed=v,this.destination.next(v)}}]),O}(w.L)},65605:function(ue,j,f){"use strict";f.d(j,{B:function(){return w}});var B=f(56023),U=f(56866),V=f(27807);function L(){return new V.xQ}function w(){return function(R){return(0,U.x)()((0,B.O)(L)(R))}}},41510:function(ue,j,f){"use strict";f.d(j,{d:function(){return U}});var B=f(12375);function U(L,w,R){var b;return b=L&&"object"==typeof L?L:{bufferSize:L,windowTime:w,refCount:!1,scheduler:R},function(E){return E.lift(function(L){var O,T,w=L.bufferSize,R=void 0===w?Number.POSITIVE_INFINITY:w,b=L.windowTime,E=void 0===b?Number.POSITIVE_INFINITY:b,x=L.refCount,Z=L.scheduler,y=0,D=!1,v=!1;return function(M){var k;y++,!O||D?(D=!1,O=new B.t(R,E,Z),k=O.subscribe(this),T=M.subscribe({next:function(I){O.next(I)},error:function(I){D=!0,O.error(I)},complete:function(){v=!0,T=void 0,O.complete()}}),v&&(T=void 0)):k=O.subscribe(this),this.add(function(){y--,k.unsubscribe(),k=void 0,T&&!v&&x&&0===y&&(T.unsubscribe(),T=void 0,O=void 0)})}}(b))}}},38869:function(ue,j,f){"use strict";f.d(j,{T:function(){return R}});var B=f(10509),U=f(97154),V=f(18967),L=f(14105),w=f(72007);function R(x){return function(Z){return Z.lift(new b(x))}}var b=function(){function x(Z){(0,V.Z)(this,x),this.total=Z}return(0,L.Z)(x,[{key:"call",value:function(O,y){return y.subscribe(new E(O,this.total))}}]),x}(),E=function(x){(0,B.Z)(O,x);var Z=(0,U.Z)(O);function O(y,T){var D;return(0,V.Z)(this,O),(D=Z.call(this,y)).total=T,D.count=0,D}return(0,L.Z)(O,[{key:"_next",value:function(T){++this.count>this.total&&this.destination.next(T)}}]),O}(w.L)},85148:function(ue,j,f){"use strict";f.d(j,{O:function(){return V}});var B=f(60636),U=f(62731);function V(){for(var L=arguments.length,w=new Array(L),R=0;R0)for(var M=this.count>=this.total?this.total:this.count,k=this.ring,S=0;S1&&void 0!==arguments[1]&&arguments[1];return function(O){return O.lift(new b(x,Z))}}var b=function(){function x(Z,O){(0,V.Z)(this,x),this.predicate=Z,this.inclusive=O}return(0,L.Z)(x,[{key:"call",value:function(O,y){return y.subscribe(new E(O,this.predicate,this.inclusive))}}]),x}(),E=function(x){(0,B.Z)(O,x);var Z=(0,U.Z)(O);function O(y,T,D){var v;return(0,V.Z)(this,O),(v=Z.call(this,y)).predicate=T,v.inclusive=D,v.index=0,v}return(0,L.Z)(O,[{key:"_next",value:function(T){var v,D=this.destination;try{v=this.predicate(T,this.index++)}catch(g){return void D.error(g)}this.nextOrComplete(T,v)}},{key:"nextOrComplete",value:function(T,D){var v=this.destination;Boolean(D)?v.next(T):(this.inclusive&&v.next(T),v.complete())}}]),O}(w.L)},24305:function(ue,j,f){"use strict";f.d(j,{b:function(){return x}});var B=f(88009),U=f(10509),V=f(97154),L=f(18967),w=f(14105),R=f(72007),b=f(61443),E=f(9813);function x(y,T,D){return function(g){return g.lift(new Z(y,T,D))}}var Z=function(){function y(T,D,v){(0,L.Z)(this,y),this.nextOrObserver=T,this.error=D,this.complete=v}return(0,w.Z)(y,[{key:"call",value:function(D,v){return v.subscribe(new O(D,this.nextOrObserver,this.error,this.complete))}}]),y}(),O=function(y){(0,U.Z)(D,y);var T=(0,V.Z)(D);function D(v,g,M,k){var S;return(0,L.Z)(this,D),(S=T.call(this,v))._tapNext=b.Z,S._tapError=b.Z,S._tapComplete=b.Z,S._tapError=M||b.Z,S._tapComplete=k||b.Z,(0,E.m)(g)?(S._context=(0,B.Z)(S),S._tapNext=g):g&&(S._context=g,S._tapNext=g.next||b.Z,S._tapError=g.error||b.Z,S._tapComplete=g.complete||b.Z),S}return(0,w.Z)(D,[{key:"_next",value:function(g){try{this._tapNext.call(this._context,g)}catch(M){return void this.destination.error(M)}this.destination.next(g)}},{key:"_error",value:function(g){try{this._tapError.call(this._context,g)}catch(M){return void this.destination.error(M)}this.destination.error(g)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(g){return void this.destination.error(g)}return this.destination.complete()}}]),D}(R.L)},74855:function(ue,j,f){"use strict";f.d(j,{d:function(){return R},P:function(){return b}});var B=f(10509),U=f(97154),V=f(18967),L=f(14105),w=f(26303),R={leading:!0,trailing:!1};function b(Z){var O=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R;return function(y){return y.lift(new E(Z,!!O.leading,!!O.trailing))}}var E=function(){function Z(O,y,T){(0,V.Z)(this,Z),this.durationSelector=O,this.leading=y,this.trailing=T}return(0,L.Z)(Z,[{key:"call",value:function(y,T){return T.subscribe(new x(y,this.durationSelector,this.leading,this.trailing))}}]),Z}(),x=function(Z){(0,B.Z)(y,Z);var O=(0,U.Z)(y);function y(T,D,v,g){var M;return(0,V.Z)(this,y),(M=O.call(this,T)).destination=T,M.durationSelector=D,M._leading=v,M._trailing=g,M._hasValue=!1,M}return(0,L.Z)(y,[{key:"_next",value:function(D){this._hasValue=!0,this._sendValue=D,this._throttled||(this._leading?this.send():this.throttle(D))}},{key:"send",value:function(){var v=this._sendValue;this._hasValue&&(this.destination.next(v),this.throttle(v)),this._hasValue=!1,this._sendValue=void 0}},{key:"throttle",value:function(D){var v=this.tryDurationSelector(D);v&&this.add(this._throttled=(0,w.ft)(v,new w.IY(this)))}},{key:"tryDurationSelector",value:function(D){try{return this.durationSelector(D)}catch(v){return this.destination.error(v),null}}},{key:"throttlingDone",value:function(){var D=this._throttled,v=this._trailing;D&&D.unsubscribe(),this._throttled=void 0,v&&this.send()}},{key:"notifyNext",value:function(){this.throttlingDone()}},{key:"notifyComplete",value:function(){this.throttlingDone()}}]),y}(w.Ds)},83328:function(ue,j,f){"use strict";f.d(j,{T:function(){return b}});var B=f(10509),U=f(97154),V=f(18967),L=f(14105),w=f(15449),R=f(72007);function b(){var O=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z;return function(y){return y.lift(new E(O))}}var E=function(){function O(y){(0,V.Z)(this,O),this.errorFactory=y}return(0,L.Z)(O,[{key:"call",value:function(T,D){return D.subscribe(new x(T,this.errorFactory))}}]),O}(),x=function(O){(0,B.Z)(T,O);var y=(0,U.Z)(T);function T(D,v){var g;return(0,V.Z)(this,T),(g=y.call(this,D)).errorFactory=v,g.hasValue=!1,g}return(0,L.Z)(T,[{key:"_next",value:function(v){this.hasValue=!0,this.destination.next(v)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var v;try{v=this.errorFactory()}catch(g){v=g}this.destination.error(v)}}]),T}(R.L);function Z(){return new w.K}},83664:function(ue,j,f){"use strict";f.d(j,{J:function(){return R},R:function(){return b}});var B=f(18967),U=f(59449),V=f(73062),L=f(19770),w=f(98771);function R(){var E=arguments.length>0&&void 0!==arguments[0]?arguments[0]:U.P;return function(x){return(0,L.P)(function(){return x.pipe((0,V.R)(function(Z,O){var y=Z.current;return{value:O,current:E.now(),last:y}},{current:E.now(),value:void 0,last:void 0}),(0,w.U)(function(Z){return new b(Z.value,Z.current-Z.last)}))})}}var b=function E(x,Z){(0,B.Z)(this,E),this.value=x,this.interval=Z}},56335:function(ue,j,f){"use strict";f.d(j,{A:function(){return L},E:function(){return w}});var B=f(18967),U=f(59449),V=f(98771);function L(){var R=arguments.length>0&&void 0!==arguments[0]?arguments[0]:U.P;return(0,V.U)(function(b){return new w(b,R.now())})}var w=function R(b,E){(0,B.Z)(this,R),this.value=b,this.timestamp=E}},2411:function(ue,j,f){"use strict";f.d(j,{r:function(){return V}});var B=f(15801),U=f(43501);function V(L,w){return new B.y(function(R){var b=new U.w,E=0;return b.add(w.schedule(function(){E!==L.length?(R.next(L[E++]),R.closed||b.add(this.schedule())):R.complete()})),b})}},17661:function(ue,j,f){"use strict";f.d(j,{Q:function(){return L}});var B=f(15801),U=f(43501),V=f(56203);function L(w,R){if(!w)throw new Error("Iterable cannot be null");return new B.y(function(b){var x,E=new U.w;return E.add(function(){x&&"function"==typeof x.return&&x.return()}),E.add(R.schedule(function(){x=w[V.hZ](),E.add(R.schedule(function(){if(!b.closed){var Z,O;try{var y=x.next();Z=y.value,O=y.done}catch(T){return void b.error(T)}O?b.complete():(b.next(Z),this.schedule())}}))})),E})}},69544:function(ue,j,f){"use strict";f.d(j,{c:function(){return V}});var B=f(15801),U=f(43501);function V(L,w){return new B.y(function(R){var b=new U.w;return b.add(w.schedule(function(){return L.then(function(E){b.add(w.schedule(function(){R.next(E),b.add(w.schedule(function(){return R.complete()}))}))},function(E){b.add(w.schedule(function(){return R.error(E)}))})})),b})}},72622:function(ue,j,f){"use strict";f.d(j,{x:function(){return y}});var B=f(15801),U=f(43501),V=f(56563),w=f(69544),R=f(2411),b=f(17661),E=f(7652),x=f(35872),Z=f(84565),O=f(21627);function y(T,D){if(null!=T){if((0,E.c)(T))return function(T,D){return new B.y(function(v){var g=new U.w;return g.add(D.schedule(function(){var M=T[V.L]();g.add(M.subscribe({next:function(S){g.add(D.schedule(function(){return v.next(S)}))},error:function(S){g.add(D.schedule(function(){return v.error(S)}))},complete:function(){g.add(D.schedule(function(){return v.complete()}))}}))})),g})}(T,D);if((0,x.t)(T))return(0,w.c)(T,D);if((0,Z.z)(T))return(0,R.r)(T,D);if((0,O.T)(T)||"string"==typeof T)return(0,b.Q)(T,D)}throw new TypeError((null!==T&&typeof T||T)+" is not observable")}},24384:function(ue,j,f){"use strict";f.d(j,{o:function(){return b}});var B=f(18967),U=f(14105),V=f(10509),L=f(97154),b=function(E){(0,V.Z)(Z,E);var x=(0,L.Z)(Z);function Z(O,y){var T;return(0,B.Z)(this,Z),(T=x.call(this,O,y)).scheduler=O,T.work=y,T.pending=!1,T}return(0,U.Z)(Z,[{key:"schedule",value:function(y){var T=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=y;var D=this.id,v=this.scheduler;return null!=D&&(this.id=this.recycleAsyncId(v,D,T)),this.pending=!0,this.delay=T,this.id=this.id||this.requestAsyncId(v,this.id,T),this}},{key:"requestAsyncId",value:function(y,T){var D=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(y.flush.bind(y,this),D)}},{key:"recycleAsyncId",value:function(y,T){var D=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==D&&this.delay===D&&!1===this.pending)return T;clearInterval(T)}},{key:"execute",value:function(y,T){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var D=this._execute(y,T);if(D)return D;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(y,T){var D=!1,v=void 0;try{this.work(y)}catch(g){D=!0,v=!!g&&g||new Error(g)}if(D)return this.unsubscribe(),v}},{key:"_unsubscribe",value:function(){var y=this.id,T=this.scheduler,D=T.actions,v=D.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==v&&D.splice(v,1),null!=y&&(this.id=this.recycleAsyncId(T,y,null)),this.delay=null}}]),Z}(function(E){(0,V.Z)(Z,E);var x=(0,L.Z)(Z);function Z(O,y){return(0,B.Z)(this,Z),x.call(this)}return(0,U.Z)(Z,[{key:"schedule",value:function(y){return this}}]),Z}(f(43501).w))},54840:function(ue,j,f){"use strict";f.d(j,{v:function(){return x}});var B=f(18967),U=f(14105),V=f(88009),L=f(38402),w=f(89200),R=f(10509),b=f(97154),E=f(54641),x=function(Z){(0,R.Z)(y,Z);var O=(0,b.Z)(y);function y(T){var D,v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:E.b.now;return(0,B.Z)(this,y),(D=O.call(this,T,function(){return y.delegate&&y.delegate!==(0,V.Z)(D)?y.delegate.now():v()})).actions=[],D.active=!1,D.scheduled=void 0,D}return(0,U.Z)(y,[{key:"schedule",value:function(D){var v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,g=arguments.length>2?arguments[2]:void 0;return y.delegate&&y.delegate!==this?y.delegate.schedule(D,v,g):(0,L.Z)((0,w.Z)(y.prototype),"schedule",this).call(this,D,v,g)}},{key:"flush",value:function(D){var v=this.actions;if(this.active)v.push(D);else{var g;this.active=!0;do{if(g=D.execute(D.state,D.delay))break}while(D=v.shift());if(this.active=!1,g){for(;D=v.shift();)D.unsubscribe();throw g}}}}]),y}(E.b)},63870:function(ue,j,f){"use strict";f.d(j,{y:function(){return x},h:function(){return Z}});var B=f(38402),U=f(89200),V=f(18967),L=f(14105),w=f(10509),R=f(97154),b=f(24384),E=f(54840),x=function(){var O=function(y){(0,w.Z)(D,y);var T=(0,R.Z)(D);function D(){var v,g=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z,M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;return(0,V.Z)(this,D),(v=T.call(this,g,function(){return v.frame})).maxFrames=M,v.frame=0,v.index=-1,v}return(0,L.Z)(D,[{key:"flush",value:function(){for(var k,S,g=this.actions,M=this.maxFrames;(S=g[0])&&S.delay<=M&&(g.shift(),this.frame=S.delay,!(k=S.execute(S.state,S.delay))););if(k){for(;S=g.shift();)S.unsubscribe();throw k}}}]),D}(E.v);return O.frameTimeFactor=10,O}(),Z=function(O){(0,w.Z)(T,O);var y=(0,R.Z)(T);function T(D,v){var g,M=arguments.length>2&&void 0!==arguments[2]?arguments[2]:D.index+=1;return(0,V.Z)(this,T),(g=y.call(this,D,v)).scheduler=D,g.work=v,g.index=M,g.active=!0,g.index=D.index=M,g}return(0,L.Z)(T,[{key:"schedule",value:function(v){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!this.id)return(0,B.Z)((0,U.Z)(T.prototype),"schedule",this).call(this,v,g);this.active=!1;var M=new T(this.scheduler,this.work);return this.add(M),M.schedule(v,g)}},{key:"requestAsyncId",value:function(v,g){var M=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.delay=v.frame+M;var k=v.actions;return k.push(this),k.sort(T.sortActions),!0}},{key:"recycleAsyncId",value:function(v,g){}},{key:"_execute",value:function(v,g){if(!0===this.active)return(0,B.Z)((0,U.Z)(T.prototype),"_execute",this).call(this,v,g)}}],[{key:"sortActions",value:function(v,g){return v.delay===g.delay?v.index===g.index?0:v.index>g.index?1:-1:v.delay>g.delay?1:-1}}]),T}(b.o)},27202:function(ue,j,f){"use strict";f.d(j,{r:function(){return y},Z:function(){return O}});var B=f(18967),U=f(14105),V=f(38402),L=f(89200),w=f(10509),R=f(97154),E=function(T){(0,w.Z)(v,T);var D=(0,R.Z)(v);function v(g,M){var k;return(0,B.Z)(this,v),(k=D.call(this,g,M)).scheduler=g,k.work=M,k}return(0,U.Z)(v,[{key:"requestAsyncId",value:function(M,k){var S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==S&&S>0?(0,V.Z)((0,L.Z)(v.prototype),"requestAsyncId",this).call(this,M,k,S):(M.actions.push(this),M.scheduled||(M.scheduled=requestAnimationFrame(function(){return M.flush(null)})))}},{key:"recycleAsyncId",value:function(M,k){var S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==S&&S>0||null===S&&this.delay>0)return(0,V.Z)((0,L.Z)(v.prototype),"recycleAsyncId",this).call(this,M,k,S);0===M.actions.length&&(cancelAnimationFrame(k),M.scheduled=void 0)}}]),v}(f(24384).o),Z=function(T){(0,w.Z)(v,T);var D=(0,R.Z)(v);function v(){return(0,B.Z)(this,v),D.apply(this,arguments)}return(0,U.Z)(v,[{key:"flush",value:function(M){this.active=!0,this.scheduled=void 0;var S,k=this.actions,I=-1,F=k.length;M=M||k.shift();do{if(S=M.execute(M.state,M.delay))break}while(++I2&&void 0!==arguments[2]?arguments[2]:0;return null!==I&&I>0?(0,V.Z)((0,L.Z)(g.prototype),"requestAsyncId",this).call(this,k,S,I):(k.actions.push(this),k.scheduled||(k.scheduled=b.H.setImmediate(k.flush.bind(k,null))))}},{key:"recycleAsyncId",value:function(k,S){var I=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==I&&I>0||null===I&&this.delay>0)return(0,V.Z)((0,L.Z)(g.prototype),"recycleAsyncId",this).call(this,k,S,I);0===k.actions.length&&(b.H.clearImmediate(S),k.scheduled=void 0)}}]),g}(f(24384).o),O=function(D){(0,w.Z)(g,D);var v=(0,R.Z)(g);function g(){return(0,B.Z)(this,g),v.apply(this,arguments)}return(0,U.Z)(g,[{key:"flush",value:function(k){this.active=!0,this.scheduled=void 0;var I,S=this.actions,F=-1,G=S.length;k=k||S.shift();do{if(I=k.execute(k.state,k.delay))break}while(++F1&&void 0!==arguments[1]?arguments[1]:0;return k>0?(0,V.Z)((0,L.Z)(v.prototype),"schedule",this).call(this,M,k):(this.delay=k,this.state=M,this.scheduler.flush(this),this)}},{key:"execute",value:function(M,k){return k>0||this.closed?(0,V.Z)((0,L.Z)(v.prototype),"execute",this).call(this,M,k):this._execute(M,k)}},{key:"requestAsyncId",value:function(M,k){var S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==S&&S>0||null===S&&this.delay>0?(0,V.Z)((0,L.Z)(v.prototype),"requestAsyncId",this).call(this,M,k,S):M.flush(this)}}]),v}(f(24384).o),Z=function(T){(0,w.Z)(v,T);var D=(0,R.Z)(v);function v(){return(0,B.Z)(this,v),D.apply(this,arguments)}return v}(f(54840).v),O=new Z(E),y=O},56203:function(ue,j,f){"use strict";f.d(j,{hZ:function(){return U}});var U="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},56563:function(ue,j,f){"use strict";f.d(j,{L:function(){return B}});var B="function"==typeof Symbol&&Symbol.observable||"@@observable"},24629:function(ue,j,f){"use strict";f.d(j,{b:function(){return B}});var B="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},67689:function(ue,j,f){"use strict";f.d(j,{W:function(){return U}});var U=function(){function V(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return V.prototype=Object.create(Error.prototype),V}()},15449:function(ue,j,f){"use strict";f.d(j,{K:function(){return U}});var U=function(){function V(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return V.prototype=Object.create(Error.prototype),V}()},40453:function(ue,j,f){"use strict";f.d(j,{H:function(){return w}});var B=1,U=Promise.resolve(),V={};function L(b){return b in V&&(delete V[b],!0)}var w={setImmediate:function(E){var x=B++;return V[x]=!0,U.then(function(){return L(x)&&E()}),x},clearImmediate:function(E){L(E)}}},42078:function(ue,j,f){"use strict";f.d(j,{N:function(){return U}});var U=function(){function V(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return V.prototype=Object.create(Error.prototype),V}()},96174:function(ue,j,f){"use strict";f.d(j,{W:function(){return U}});var U=function(){function V(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return V.prototype=Object.create(Error.prototype),V}()},59508:function(ue,j,f){"use strict";f.d(j,{B:function(){return U}});var U=function(){function V(L){return Error.call(this),this.message=L?"".concat(L.length," errors occurred during unsubscription:\n").concat(L.map(function(w,R){return"".concat(R+1,") ").concat(w.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=L,this}return V.prototype=Object.create(Error.prototype),V}()},19094:function(ue,j,f){"use strict";function B(U,V){for(var L=0,w=V.length;L=0}},11458:function(ue,j,f){"use strict";function B(U){return null!==U&&"object"==typeof U}f.d(j,{K:function(){return B}})},47593:function(ue,j,f){"use strict";f.d(j,{b:function(){return U}});var B=f(15801);function U(V){return!!V&&(V instanceof B.y||"function"==typeof V.lift&&"function"==typeof V.subscribe)}},35872:function(ue,j,f){"use strict";function B(U){return!!U&&"function"!=typeof U.subscribe&&"function"==typeof U.then}f.d(j,{t:function(){return B}})},62731:function(ue,j,f){"use strict";function B(U){return U&&"function"==typeof U.schedule}f.d(j,{K:function(){return B}})},61443:function(ue,j,f){"use strict";function B(){}f.d(j,{Z:function(){return B}})},51395:function(ue,j,f){"use strict";function B(U,V){function L(){return!L.pred.apply(L.thisArg,arguments)}return L.pred=U,L.thisArg=V,L}f.d(j,{f:function(){return B}})},79968:function(ue,j,f){"use strict";f.d(j,{z:function(){return U},U:function(){return V}});var B=f(88533);function U(){for(var L=arguments.length,w=new Array(L),R=0;R4&&void 0!==arguments[4]?arguments[4]:new B.d(w,b,E);if(!x.closed)return R instanceof V.y?R.subscribe(x):(0,U.s)(R)(x)}},5839:function(ue,j,f){"use strict";f.d(j,{Y:function(){return L}});var B=f(72007),U=f(24629),V=f(62454);function L(w,R,b){if(w){if(w instanceof B.L)return w;if(w[U.b])return w[U.b]()}return w||R||b?new B.L(w,R,b):new B.L(V.c)}},5949:function(ue,j,f){"use strict";f.r(j),f.d(j,{audit:function(){return B.U},auditTime:function(){return U.e},buffer:function(){return x},bufferCount:function(){return v},bufferTime:function(){return F},bufferToggle:function(){return de},bufferWhen:function(){return ge},catchError:function(){return Qe.K},combineAll:function(){return bt},combineLatest:function(){return tt},concat:function(){return Tt},concatAll:function(){return mt.u},concatMap:function(){return Yt.b},concatMapTo:function(){return un},count:function(){return Ut.Q},debounce:function(){return Mn},debounceTime:function(){return Zn.b},defaultIfEmpty:function(){return Vn.d},delay:function(){return zn.g},delayWhen:function(){return nr},dematerialize:function(){return _n},distinct:function(){return Me},distinctUntilChanged:function(){return Fe.x},distinctUntilKeyChanged:function(){return Ge},elementAt:function(){return on},endWith:function(){return yn},every:function(){return Cn},exhaust:function(){return Ct},exhaustMap:function(){return _t},expand:function(){return Re},filter:function(){return At.h},finalize:function(){return Ft.x},find:function(){return Xt},findIndex:function(){return ai},first:function(){return Qr.P},flatMap:function(){return Rr.VS},groupBy:function(){return xi.v},ignoreElements:function(){return oi},isEmpty:function(){return da},last:function(){return Aa.Z},map:function(){return lt.U},mapTo:function(){return Ha},materialize:function(){return Ht},max:function(){return Pn},merge:function(){return dr},mergeAll:function(){return ni.J},mergeMap:function(){return Rr.zg},mergeMapTo:function(){return Gn},mergeScan:function(){return ji},min:function(){return fa},multicast:function(){return pi.O},observeOn:function(){return Ka.QV},onErrorResumeNext:function(){return _a},pairwise:function(){return Vo.G},partition:function(){return Mi},pluck:function(){return ka},publish:function(){return Qi},publishBehavior:function(){return Li},publishLast:function(){return fn},publishReplay:function(){return ya},race:function(){return Ii},reduce:function(){return bn},refCount:function(){return ba.x},repeat:function(){return ia},repeatWhen:function(){return aa},retry:function(){return yo},retryWhen:function(){return Xi},sample:function(){return Co},sampleTime:function(){return Rn},scan:function(){return Et.R},sequenceEqual:function(){return or},share:function(){return al.B},shareReplay:function(){return qi.d},single:function(){return Pl},skip:function(){return ls.T},skipLast:function(){return Lu},skipUntil:function(){return Ne},skipWhile:function(){return le},startWith:function(){return Ae.O},subscribeOn:function(){return gt},switchAll:function(){return Xr},switchMap:function(){return yt.w},switchMapTo:function(){return qa},take:function(){return Kt.q},takeLast:function(){return jt.h},takeUntil:function(){return Bi.R},takeWhile:function(){return Ki.o},tap:function(){return Fr.b},throttle:function(){return za.P},throttleTime:function(){return ol},throwIfEmpty:function(){return Vt.T},timeInterval:function(){return Vs.J},timeout:function(){return kd},timeoutWith:function(){return Ep},timestamp:function(){return oh.A},toArray:function(){return Oe},window:function(){return ye},windowCount:function(){return ke},windowTime:function(){return Bt},windowToggle:function(){return Tr},windowWhen:function(){return zi},withLatestFrom:function(){return xa},zip:function(){return sl},zipAll:function(){return So}});var B=f(17234),U=f(80758),V=f(88009),L=f(10509),w=f(97154),R=f(18967),b=f(14105),E=f(26303);function x(Le){return function(Se){return Se.lift(new Z(Le))}}var Z=function(){function Le(Ve){(0,R.Z)(this,Le),this.closingNotifier=Ve}return(0,b.Z)(Le,[{key:"call",value:function(Se,Ze){return Ze.subscribe(new O(Se,this.closingNotifier))}}]),Le}(),O=function(Le){(0,L.Z)(Se,Le);var Ve=(0,w.Z)(Se);function Se(Ze,Ie){var nt;return(0,R.Z)(this,Se),(nt=Ve.call(this,Ze)).buffer=[],nt.add((0,E.ft)(Ie,new E.IY((0,V.Z)(nt)))),nt}return(0,b.Z)(Se,[{key:"_next",value:function(Ie){this.buffer.push(Ie)}},{key:"notifyNext",value:function(){var Ie=this.buffer;this.buffer=[],this.destination.next(Ie)}}]),Se}(E.Ds),y=f(38402),T=f(89200),D=f(72007);function v(Le){var Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(Ze){return Ze.lift(new g(Le,Ve))}}var g=function(){function Le(Ve,Se){(0,R.Z)(this,Le),this.bufferSize=Ve,this.startBufferEvery=Se,this.subscriberClass=Se&&Ve!==Se?k:M}return(0,b.Z)(Le,[{key:"call",value:function(Se,Ze){return Ze.subscribe(new this.subscriberClass(Se,this.bufferSize,this.startBufferEvery))}}]),Le}(),M=function(Le){(0,L.Z)(Se,Le);var Ve=(0,w.Z)(Se);function Se(Ze,Ie){var nt;return(0,R.Z)(this,Se),(nt=Ve.call(this,Ze)).bufferSize=Ie,nt.buffer=[],nt}return(0,b.Z)(Se,[{key:"_next",value:function(Ie){var nt=this.buffer;nt.push(Ie),nt.length==this.bufferSize&&(this.destination.next(nt),this.buffer=[])}},{key:"_complete",value:function(){var Ie=this.buffer;Ie.length>0&&this.destination.next(Ie),(0,y.Z)((0,T.Z)(Se.prototype),"_complete",this).call(this)}}]),Se}(D.L),k=function(Le){(0,L.Z)(Se,Le);var Ve=(0,w.Z)(Se);function Se(Ze,Ie,nt){var wt;return(0,R.Z)(this,Se),(wt=Ve.call(this,Ze)).bufferSize=Ie,wt.startBufferEvery=nt,wt.buffers=[],wt.count=0,wt}return(0,b.Z)(Se,[{key:"_next",value:function(Ie){var nt=this.bufferSize,wt=this.startBufferEvery,nn=this.buffers,gn=this.count;this.count++,gn%wt==0&&nn.push([]);for(var ur=nn.length;ur--;){var Ar=nn[ur];Ar.push(Ie),Ar.length===nt&&(nn.splice(ur,1),this.destination.next(Ar))}}},{key:"_complete",value:function(){for(var Ie=this.buffers,nt=this.destination;Ie.length>0;){var wt=Ie.shift();wt.length>0&&nt.next(wt)}(0,y.Z)((0,T.Z)(Se.prototype),"_complete",this).call(this)}}]),Se}(D.L),S=f(59449),I=f(62731);function F(Le){var Ve=arguments.length,Se=S.P;(0,I.K)(arguments[arguments.length-1])&&(Se=arguments[arguments.length-1],Ve--);var Ze=null;Ve>=2&&(Ze=arguments[1]);var Ie=Number.POSITIVE_INFINITY;return Ve>=3&&(Ie=arguments[2]),function(wt){return wt.lift(new G(Le,Ze,Ie,Se))}}var G=function(){function Le(Ve,Se,Ze,Ie){(0,R.Z)(this,Le),this.bufferTimeSpan=Ve,this.bufferCreationInterval=Se,this.maxBufferSize=Ze,this.scheduler=Ie}return(0,b.Z)(Le,[{key:"call",value:function(Se,Ze){return Ze.subscribe(new W(Se,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}]),Le}(),X=function Le(){(0,R.Z)(this,Le),this.buffer=[]},W=function(Le){(0,L.Z)(Se,Le);var Ve=(0,w.Z)(Se);function Se(Ze,Ie,nt,wt,nn){var gn;(0,R.Z)(this,Se),(gn=Ve.call(this,Ze)).bufferTimeSpan=Ie,gn.bufferCreationInterval=nt,gn.maxBufferSize=wt,gn.scheduler=nn,gn.contexts=[];var ur=gn.openContext();if(gn.timespanOnly=null==nt||nt<0,gn.timespanOnly){var Ar={subscriber:(0,V.Z)(gn),context:ur,bufferTimeSpan:Ie};gn.add(ur.closeAction=nn.schedule(Y,Ie,Ar))}else{var To={subscriber:(0,V.Z)(gn),context:ur},Ss={bufferTimeSpan:Ie,bufferCreationInterval:nt,subscriber:(0,V.Z)(gn),scheduler:nn};gn.add(ur.closeAction=nn.schedule(K,Ie,To)),gn.add(nn.schedule(ae,nt,Ss))}return gn}return(0,b.Z)(Se,[{key:"_next",value:function(Ie){for(var nn,nt=this.contexts,wt=nt.length,gn=0;gn0;){var wt=Ie.shift();nt.next(wt.buffer)}(0,y.Z)((0,T.Z)(Se.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){this.contexts=null}},{key:"onBufferFull",value:function(Ie){this.closeContext(Ie);var nt=Ie.closeAction;if(nt.unsubscribe(),this.remove(nt),!this.closed&&this.timespanOnly){Ie=this.openContext();var wt=this.bufferTimeSpan;this.add(Ie.closeAction=this.scheduler.schedule(Y,wt,{subscriber:this,context:Ie,bufferTimeSpan:wt}))}}},{key:"openContext",value:function(){var Ie=new X;return this.contexts.push(Ie),Ie}},{key:"closeContext",value:function(Ie){this.destination.next(Ie.buffer);var nt=this.contexts;(nt?nt.indexOf(Ie):-1)>=0&&nt.splice(nt.indexOf(Ie),1)}}]),Se}(D.L);function Y(Le){var Ve=Le.subscriber,Se=Le.context;Se&&Ve.closeContext(Se),Ve.closed||(Le.context=Ve.openContext(),Le.context.closeAction=this.schedule(Le,Le.bufferTimeSpan))}function ae(Le){var Ve=Le.bufferCreationInterval,Se=Le.bufferTimeSpan,Ze=Le.subscriber,Ie=Le.scheduler,nt=Ze.openContext();Ze.closed||(Ze.add(nt.closeAction=Ie.schedule(K,Se,{subscriber:Ze,context:nt})),this.schedule(Le,Ve))}function K(Le){Le.subscriber.closeContext(Le.context)}var fe=f(43501),ce=f(99319),he=f(74314);function de(Le,Ve){return function(Ze){return Ze.lift(new oe(Le,Ve))}}var oe=function(){function Le(Ve,Se){(0,R.Z)(this,Le),this.openings=Ve,this.closingSelector=Se}return(0,b.Z)(Le,[{key:"call",value:function(Se,Ze){return Ze.subscribe(new Ce(Se,this.openings,this.closingSelector))}}]),Le}(),Ce=function(Le){(0,L.Z)(Se,Le);var Ve=(0,w.Z)(Se);function Se(Ze,Ie,nt){var wt;return(0,R.Z)(this,Se),(wt=Ve.call(this,Ze)).closingSelector=nt,wt.contexts=[],wt.add((0,ce.D)((0,V.Z)(wt),Ie)),wt}return(0,b.Z)(Se,[{key:"_next",value:function(Ie){for(var nt=this.contexts,wt=nt.length,nn=0;nn0;){var wt=nt.shift();wt.subscription.unsubscribe(),wt.buffer=null,wt.subscription=null}this.contexts=null,(0,y.Z)((0,T.Z)(Se.prototype),"_error",this).call(this,Ie)}},{key:"_complete",value:function(){for(var Ie=this.contexts;Ie.length>0;){var nt=Ie.shift();this.destination.next(nt.buffer),nt.subscription.unsubscribe(),nt.buffer=null,nt.subscription=null}this.contexts=null,(0,y.Z)((0,T.Z)(Se.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(Ie,nt){Ie?this.closeBuffer(Ie):this.openBuffer(nt)}},{key:"notifyComplete",value:function(Ie){this.closeBuffer(Ie.context)}},{key:"openBuffer",value:function(Ie){try{var wt=this.closingSelector.call(this,Ie);wt&&this.trySubscribe(wt)}catch(nn){this._error(nn)}}},{key:"closeBuffer",value:function(Ie){var nt=this.contexts;if(nt&&Ie){var nn=Ie.subscription;this.destination.next(Ie.buffer),nt.splice(nt.indexOf(Ie),1),this.remove(nn),nn.unsubscribe()}}},{key:"trySubscribe",value:function(Ie){var nt=this.contexts,nn=new fe.w,gn={buffer:[],subscription:nn};nt.push(gn);var ur=(0,ce.D)(this,Ie,gn);!ur||ur.closed?this.closeBuffer(gn):(ur.context=gn,this.add(ur),nn.add(ur))}}]),Se}(he.L);function ge(Le){return function(Ve){return Ve.lift(new qe(Le))}}var qe=function(){function Le(Ve){(0,R.Z)(this,Le),this.closingSelector=Ve}return(0,b.Z)(Le,[{key:"call",value:function(Se,Ze){return Ze.subscribe(new De(Se,this.closingSelector))}}]),Le}(),De=function(Le){(0,L.Z)(Se,Le);var Ve=(0,w.Z)(Se);function Se(Ze,Ie){var nt;return(0,R.Z)(this,Se),(nt=Ve.call(this,Ze)).closingSelector=Ie,nt.subscribing=!1,nt.openBuffer(),nt}return(0,b.Z)(Se,[{key:"_next",value:function(Ie){this.buffer.push(Ie)}},{key:"_complete",value:function(){var Ie=this.buffer;Ie&&this.destination.next(Ie),(0,y.Z)((0,T.Z)(Se.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){this.buffer=void 0,this.subscribing=!1}},{key:"notifyNext",value:function(){this.openBuffer()}},{key:"notifyComplete",value:function(){this.subscribing?this.complete():this.openBuffer()}},{key:"openBuffer",value:function(){var wt,Ie=this.closingSubscription;Ie&&(this.remove(Ie),Ie.unsubscribe()),this.buffer&&this.destination.next(this.buffer),this.buffer=[];try{wt=(0,this.closingSelector)()}catch(gn){return this.error(gn)}Ie=new fe.w,this.closingSubscription=Ie,this.add(Ie),this.subscribing=!0,Ie.add((0,E.ft)(wt,new E.IY(this))),this.subscribing=!1}}]),Se}(E.Ds),Qe=f(67254),et=f(40452);function bt(Le){return function(Ve){return Ve.lift(new et.Ms(Le))}}var _e=f(333),xe=f(40830),He=f(17048);function tt(){for(var Le=arguments.length,Ve=new Array(Le),Se=0;Se=2;return function(Ze){return Ze.pipe((0,At.h)(function(Ie,nt){return nt===Le}),(0,Kt.q)(1),Se?(0,Vn.d)(Ve):(0,Vt.T)(function(){return new vt.W}))}}var hn=f(82429);function yn(){for(var Le=arguments.length,Ve=new Array(Le),Se=0;Se1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,Se=arguments.length>2?arguments[2]:void 0;return Ve=(Ve||0)<1?Number.POSITIVE_INFINITY:Ve,function(Ze){return Ze.lift(new Xe(Le,Ve,Se))}}var Xe=function(){function Le(Ve,Se,Ze){(0,R.Z)(this,Le),this.project=Ve,this.concurrent=Se,this.scheduler=Ze}return(0,b.Z)(Le,[{key:"call",value:function(Se,Ze){return Ze.subscribe(new pt(Se,this.project,this.concurrent,this.scheduler))}}]),Le}(),pt=function(Le){(0,L.Z)(Se,Le);var Ve=(0,w.Z)(Se);function Se(Ze,Ie,nt,wt){var nn;return(0,R.Z)(this,Se),(nn=Ve.call(this,Ze)).project=Ie,nn.concurrent=nt,nn.scheduler=wt,nn.index=0,nn.active=0,nn.hasCompleted=!1,nt0&&this._next(Ie.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}],[{key:"dispatch",value:function(Ie){Ie.subscriber.subscribeToProjection(Ie.result,Ie.value,Ie.index)}}]),Se}(E.Ds),Ft=f(30366);function Xt(Le,Ve){if("function"!=typeof Le)throw new TypeError("predicate is not a function");return function(Se){return Se.lift(new Tn(Le,Se,!1,Ve))}}var Tn=function(){function Le(Ve,Se,Ze,Ie){(0,R.Z)(this,Le),this.predicate=Ve,this.source=Se,this.yieldIndex=Ze,this.thisArg=Ie}return(0,b.Z)(Le,[{key:"call",value:function(Se,Ze){return Ze.subscribe(new Dn(Se,this.predicate,this.source,this.yieldIndex,this.thisArg))}}]),Le}(),Dn=function(Le){(0,L.Z)(Se,Le);var Ve=(0,w.Z)(Se);function Se(Ze,Ie,nt,wt,nn){var gn;return(0,R.Z)(this,Se),(gn=Ve.call(this,Ze)).predicate=Ie,gn.source=nt,gn.yieldIndex=wt,gn.thisArg=nn,gn.index=0,gn}return(0,b.Z)(Se,[{key:"notifyComplete",value:function(Ie){var nt=this.destination;nt.next(Ie),nt.complete(),this.unsubscribe()}},{key:"_next",value:function(Ie){var nt=this.predicate,wt=this.thisArg,nn=this.index++;try{nt.call(wt||this,Ie,nn,this.source)&&this.notifyComplete(this.yieldIndex?nn:Ie)}catch(ur){this.destination.error(ur)}}},{key:"_complete",value:function(){this.notifyComplete(this.yieldIndex?-1:void 0)}}]),Se}(D.L);function ai(Le,Ve){return function(Se){return Se.lift(new Tn(Le,Se,!0,Ve))}}var Qr=f(64187),xi=f(91646);function oi(){return function(Ve){return Ve.lift(new Hi)}}var Hi=function(){function Le(){(0,R.Z)(this,Le)}return(0,b.Z)(Le,[{key:"call",value:function(Se,Ze){return Ze.subscribe(new ga(Se))}}]),Le}(),ga=function(Le){(0,L.Z)(Se,Le);var Ve=(0,w.Z)(Se);function Se(){return(0,R.Z)(this,Se),Ve.apply(this,arguments)}return(0,b.Z)(Se,[{key:"_next",value:function(Ie){}}]),Se}(D.L);function da(){return function(Le){return Le.lift(new Vi)}}var Vi=function(){function Le(){(0,R.Z)(this,Le)}return(0,b.Z)(Le,[{key:"call",value:function(Se,Ze){return Ze.subscribe(new pa(Se))}}]),Le}(),pa=function(Le){(0,L.Z)(Se,Le);var Ve=(0,w.Z)(Se);function Se(Ze){return(0,R.Z)(this,Se),Ve.call(this,Ze)}return(0,b.Z)(Se,[{key:"notifyComplete",value:function(Ie){var nt=this.destination;nt.next(Ie),nt.complete()}},{key:"_next",value:function(Ie){this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),Se}(D.L),Aa=f(23414);function Ha(Le){return function(Ve){return Ve.lift(new Kr(Le))}}var Kr=function(){function Le(Ve){(0,R.Z)(this,Le),this.value=Ve}return(0,b.Z)(Le,[{key:"call",value:function(Se,Ze){return Ze.subscribe(new Ei(Se,this.value))}}]),Le}(),Ei=function(Le){(0,L.Z)(Se,Le);var Ve=(0,w.Z)(Se);function Se(Ze,Ie){var nt;return(0,R.Z)(this,Se),(nt=Ve.call(this,Ze)).value=Ie,nt}return(0,b.Z)(Se,[{key:"_next",value:function(Ie){this.destination.next(this.value)}}]),Se}(D.L),Zi=f(47625);function Ht(){return function(Ve){return Ve.lift(new Gt)}}var Gt=function(){function Le(){(0,R.Z)(this,Le)}return(0,b.Z)(Le,[{key:"call",value:function(Se,Ze){return Ze.subscribe(new ft(Se))}}]),Le}(),ft=function(Le){(0,L.Z)(Se,Le);var Ve=(0,w.Z)(Se);function Se(Ze){return(0,R.Z)(this,Se),Ve.call(this,Ze)}return(0,b.Z)(Se,[{key:"_next",value:function(Ie){this.destination.next(Zi.P.createNext(Ie))}},{key:"_error",value:function(Ie){var nt=this.destination;nt.next(Zi.P.createError(Ie)),nt.complete()}},{key:"_complete",value:function(){var Ie=this.destination;Ie.next(Zi.P.createComplete()),Ie.complete()}}]),Se}(D.L),Et=f(73062),jt=f(52333),Qt=f(79968);function bn(Le,Ve){return arguments.length>=2?function(Ze){return(0,Qt.z)((0,Et.R)(Le,Ve),(0,jt.h)(1),(0,Vn.d)(Ve))(Ze)}:function(Ze){return(0,Qt.z)((0,Et.R)(function(Ie,nt,wt){return Le(Ie,nt,wt+1)}),(0,jt.h)(1))(Ze)}}function Pn(Le){return bn("function"==typeof Le?function(Se,Ze){return Le(Se,Ze)>0?Se:Ze}:function(Se,Ze){return Se>Ze?Se:Ze})}var rr=f(69301);function dr(){for(var Le=arguments.length,Ve=new Array(Le),Se=0;Se2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof Ve?(0,Rr.zg)(function(){return Le},Ve,Se):("number"==typeof Ve&&(Se=Ve),(0,Rr.zg)(function(){return Le},Se))}function ji(Le,Ve){var Se=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return function(Ze){return Ze.lift(new Mr(Le,Ve,Se))}}var Mr=function(){function Le(Ve,Se,Ze){(0,R.Z)(this,Le),this.accumulator=Ve,this.seed=Se,this.concurrent=Ze}return(0,b.Z)(Le,[{key:"call",value:function(Se,Ze){return Ze.subscribe(new na(Se,this.accumulator,this.seed,this.concurrent))}}]),Le}(),na=function(Le){(0,L.Z)(Se,Le);var Ve=(0,w.Z)(Se);function Se(Ze,Ie,nt,wt){var nn;return(0,R.Z)(this,Se),(nn=Ve.call(this,Ze)).accumulator=Ie,nn.acc=nt,nn.concurrent=wt,nn.hasValue=!1,nn.hasCompleted=!1,nn.buffer=[],nn.active=0,nn.index=0,nn}return(0,b.Z)(Se,[{key:"_next",value:function(Ie){if(this.active0?this._next(Ie.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())}}]),Se}(E.Ds);function fa(Le){return bn("function"==typeof Le?function(Se,Ze){return Le(Se,Ze)<0?Se:Ze}:function(Se,Ze){return Se0&&void 0!==arguments[0]?arguments[0]:-1;return function(Ve){return 0===Le?(0,Va.c)():Ve.lift(new Po(Le<0?-1:Le-1,Ve))}}var Po=function(){function Le(Ve,Se){(0,R.Z)(this,Le),this.count=Ve,this.source=Se}return(0,b.Z)(Le,[{key:"call",value:function(Se,Ze){return Ze.subscribe(new hi(Se,this.count,this.source))}}]),Le}(),hi=function(Le){(0,L.Z)(Se,Le);var Ve=(0,w.Z)(Se);function Se(Ze,Ie,nt){var wt;return(0,R.Z)(this,Se),(wt=Ve.call(this,Ze)).count=Ie,wt.source=nt,wt}return(0,b.Z)(Se,[{key:"complete",value:function(){if(!this.isStopped){var Ie=this.source,nt=this.count;if(0===nt)return(0,y.Z)((0,T.Z)(Se.prototype),"complete",this).call(this);nt>-1&&(this.count=nt-1),Ie.subscribe(this._unsubscribeAndRecycle())}}}]),Se}(D.L);function aa(Le){return function(Ve){return Ve.lift(new rs(Le))}}var rs=function(){function Le(Ve){(0,R.Z)(this,Le),this.notifier=Ve}return(0,b.Z)(Le,[{key:"call",value:function(Se,Ze){return Ze.subscribe(new is(Se,this.notifier,Ze))}}]),Le}(),is=function(Le){(0,L.Z)(Se,Le);var Ve=(0,w.Z)(Se);function Se(Ze,Ie,nt){var wt;return(0,R.Z)(this,Se),(wt=Ve.call(this,Ze)).notifier=Ie,wt.source=nt,wt.sourceIsBeingSubscribedTo=!0,wt}return(0,b.Z)(Se,[{key:"notifyNext",value:function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)}},{key:"notifyComplete",value:function(){if(!1===this.sourceIsBeingSubscribedTo)return(0,y.Z)((0,T.Z)(Se.prototype),"complete",this).call(this)}},{key:"complete",value:function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return(0,y.Z)((0,T.Z)(Se.prototype),"complete",this).call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}}},{key:"_unsubscribe",value:function(){var Ie=this.notifications,nt=this.retriesSubscription;Ie&&(Ie.unsubscribe(),this.notifications=void 0),nt&&(nt.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}},{key:"_unsubscribeAndRecycle",value:function(){var Ie=this._unsubscribe;return this._unsubscribe=null,(0,y.Z)((0,T.Z)(Se.prototype),"_unsubscribeAndRecycle",this).call(this),this._unsubscribe=Ie,this}},{key:"subscribeToRetries",value:function(){var Ie;this.notifications=new fi.xQ;try{Ie=(0,this.notifier)(this.notifications)}catch(wt){return(0,y.Z)((0,T.Z)(Se.prototype),"complete",this).call(this)}this.retries=Ie,this.retriesSubscription=(0,E.ft)(Ie,new E.IY(this))}}]),Se}(E.Ds);function yo(){var Le=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(Ve){return Ve.lift(new as(Le,Ve))}}var as=function(){function Le(Ve,Se){(0,R.Z)(this,Le),this.count=Ve,this.source=Se}return(0,b.Z)(Le,[{key:"call",value:function(Se,Ze){return Ze.subscribe(new wa(Se,this.count,this.source))}}]),Le}(),wa=function(Le){(0,L.Z)(Se,Le);var Ve=(0,w.Z)(Se);function Se(Ze,Ie,nt){var wt;return(0,R.Z)(this,Se),(wt=Ve.call(this,Ze)).count=Ie,wt.source=nt,wt}return(0,b.Z)(Se,[{key:"error",value:function(Ie){if(!this.isStopped){var nt=this.source,wt=this.count;if(0===wt)return(0,y.Z)((0,T.Z)(Se.prototype),"error",this).call(this,Ie);wt>-1&&(this.count=wt-1),nt.subscribe(this._unsubscribeAndRecycle())}}}]),Se}(D.L);function Xi(Le){return function(Ve){return Ve.lift(new Ni(Le,Ve))}}var Ni=function(){function Le(Ve,Se){(0,R.Z)(this,Le),this.notifier=Ve,this.source=Se}return(0,b.Z)(Le,[{key:"call",value:function(Se,Ze){return Ze.subscribe(new bo(Se,this.notifier,this.source))}}]),Le}(),bo=function(Le){(0,L.Z)(Se,Le);var Ve=(0,w.Z)(Se);function Se(Ze,Ie,nt){var wt;return(0,R.Z)(this,Se),(wt=Ve.call(this,Ze)).notifier=Ie,wt.source=nt,wt}return(0,b.Z)(Se,[{key:"error",value:function(Ie){if(!this.isStopped){var nt=this.errors,wt=this.retries,nn=this.retriesSubscription;if(wt)this.errors=void 0,this.retriesSubscription=void 0;else{nt=new fi.xQ;try{wt=(0,this.notifier)(nt)}catch(ur){return(0,y.Z)((0,T.Z)(Se.prototype),"error",this).call(this,ur)}nn=(0,E.ft)(wt,new E.IY(this))}this._unsubscribeAndRecycle(),this.errors=nt,this.retries=wt,this.retriesSubscription=nn,nt.next(Ie)}}},{key:"_unsubscribe",value:function(){var Ie=this.errors,nt=this.retriesSubscription;Ie&&(Ie.unsubscribe(),this.errors=void 0),nt&&(nt.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}},{key:"notifyNext",value:function(){var Ie=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=Ie,this.source.subscribe(this)}}]),Se}(E.Ds),ba=f(56866);function Co(Le){return function(Ve){return Ve.lift(new Xa(Le))}}var Xa=function(){function Le(Ve){(0,R.Z)(this,Le),this.notifier=Ve}return(0,b.Z)(Le,[{key:"call",value:function(Se,Ze){var Ie=new mr(Se),nt=Ze.subscribe(Ie);return nt.add((0,E.ft)(this.notifier,new E.IY(Ie))),nt}}]),Le}(),mr=function(Le){(0,L.Z)(Se,Le);var Ve=(0,w.Z)(Se);function Se(){var Ze;return(0,R.Z)(this,Se),(Ze=Ve.apply(this,arguments)).hasValue=!1,Ze}return(0,b.Z)(Se,[{key:"_next",value:function(Ie){this.value=Ie,this.hasValue=!0}},{key:"notifyNext",value:function(){this.emitValue()}},{key:"notifyComplete",value:function(){this.emitValue()}},{key:"emitValue",value:function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}]),Se}(E.Ds);function Rn(Le){var Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S.P;return function(Se){return Se.lift(new $a(Le,Ve))}}var $a=function(){function Le(Ve,Se){(0,R.Z)(this,Le),this.period=Ve,this.scheduler=Se}return(0,b.Z)(Le,[{key:"call",value:function(Se,Ze){return Ze.subscribe(new Fi(Se,this.period,this.scheduler))}}]),Le}(),Fi=function(Le){(0,L.Z)(Se,Le);var Ve=(0,w.Z)(Se);function Se(Ze,Ie,nt){var wt;return(0,R.Z)(this,Se),(wt=Ve.call(this,Ze)).period=Ie,wt.scheduler=nt,wt.hasValue=!1,wt.add(nt.schedule(os,Ie,{subscriber:(0,V.Z)(wt),period:Ie})),wt}return(0,b.Z)(Se,[{key:"_next",value:function(Ie){this.lastValue=Ie,this.hasValue=!0}},{key:"notifyNext",value:function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}]),Se}(D.L);function os(Le){var Se=Le.period;Le.subscriber.notifyNext(),this.schedule(Le,Se)}function or(Le,Ve){return function(Se){return Se.lift(new mi(Le,Ve))}}var mi=function(){function Le(Ve,Se){(0,R.Z)(this,Le),this.compareTo=Ve,this.comparator=Se}return(0,b.Z)(Le,[{key:"call",value:function(Se,Ze){return Ze.subscribe(new eo(Se,this.compareTo,this.comparator))}}]),Le}(),eo=function(Le){(0,L.Z)(Se,Le);var Ve=(0,w.Z)(Se);function Se(Ze,Ie,nt){var wt;return(0,R.Z)(this,Se),(wt=Ve.call(this,Ze)).compareTo=Ie,wt.comparator=nt,wt._a=[],wt._b=[],wt._oneComplete=!1,wt.destination.add(Ie.subscribe(new ss(Ze,(0,V.Z)(wt)))),wt}return(0,b.Z)(Se,[{key:"_next",value:function(Ie){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(Ie),this.checkValues())}},{key:"_complete",value:function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()}},{key:"checkValues",value:function(){for(var Ie=this._a,nt=this._b,wt=this.comparator;Ie.length>0&&nt.length>0;){var nn=Ie.shift(),gn=nt.shift(),ur=!1;try{ur=wt?wt(nn,gn):nn===gn}catch(Ar){this.destination.error(Ar)}ur||this.emit(!1)}}},{key:"emit",value:function(Ie){var nt=this.destination;nt.next(Ie),nt.complete()}},{key:"nextB",value:function(Ie){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(Ie),this.checkValues())}},{key:"completeB",value:function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0}}]),Se}(D.L),ss=function(Le){(0,L.Z)(Se,Le);var Ve=(0,w.Z)(Se);function Se(Ze,Ie){var nt;return(0,R.Z)(this,Se),(nt=Ve.call(this,Ze)).parent=Ie,nt}return(0,b.Z)(Se,[{key:"_next",value:function(Ie){this.parent.nextB(Ie)}},{key:"_error",value:function(Ie){this.parent.error(Ie),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.completeB(),this.unsubscribe()}}]),Se}(D.L),al=f(65605),qi=f(41510),Cs=f(15449);function Pl(Le){return function(Ve){return Ve.lift(new $t(Le,Ve))}}var $t=function(){function Le(Ve,Se){(0,R.Z)(this,Le),this.predicate=Ve,this.source=Se}return(0,b.Z)(Le,[{key:"call",value:function(Se,Ze){return Ze.subscribe(new lu(Se,this.predicate,this.source))}}]),Le}(),lu=function(Le){(0,L.Z)(Se,Le);var Ve=(0,w.Z)(Se);function Se(Ze,Ie,nt){var wt;return(0,R.Z)(this,Se),(wt=Ve.call(this,Ze)).predicate=Ie,wt.source=nt,wt.seenValue=!1,wt.index=0,wt}return(0,b.Z)(Se,[{key:"applySingleValue",value:function(Ie){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=Ie)}},{key:"_next",value:function(Ie){var nt=this.index++;this.predicate?this.tryNext(Ie,nt):this.applySingleValue(Ie)}},{key:"tryNext",value:function(Ie,nt){try{this.predicate(Ie,nt,this.source)&&this.applySingleValue(Ie)}catch(wt){this.destination.error(wt)}}},{key:"_complete",value:function(){var Ie=this.destination;this.index>0?(Ie.next(this.seenValue?this.singleValue:void 0),Ie.complete()):Ie.error(new Cs.K)}}]),Se}(D.L),ls=f(38869);function Lu(Le){return function(Ve){return Ve.lift(new ja(Le))}}var ja=function(){function Le(Ve){if((0,R.Z)(this,Le),this._skipCount=Ve,this._skipCount<0)throw new vt.W}return(0,b.Z)(Le,[{key:"call",value:function(Se,Ze){return Ze.subscribe(0===this._skipCount?new D.L(Se):new Ee(Se,this._skipCount))}}]),Le}(),Ee=function(Le){(0,L.Z)(Se,Le);var Ve=(0,w.Z)(Se);function Se(Ze,Ie){var nt;return(0,R.Z)(this,Se),(nt=Ve.call(this,Ze))._skipCount=Ie,nt._count=0,nt._ring=new Array(Ie),nt}return(0,b.Z)(Se,[{key:"_next",value:function(Ie){var nt=this._skipCount,wt=this._count++;if(wt1&&void 0!==arguments[1]?arguments[1]:0;return function(Ze){return Ze.lift(new cn(Le,Ve))}}var cn=function(){function Le(Ve,Se){(0,R.Z)(this,Le),this.scheduler=Ve,this.delay=Se}return(0,b.Z)(Le,[{key:"call",value:function(Se,Ze){return new Ue.e(Ze,this.delay,this.scheduler).subscribe(Se)}}]),Le}(),yt=f(7060),Rt=f(88533);function Xr(){return(0,yt.w)(Rt.y)}function qa(Le,Ve){return Ve?(0,yt.w)(function(){return Le},Ve):(0,yt.w)(function(){return Le})}var Bi=f(35634),Ki=f(47770),Fr=f(24305),za=f(74855);function ol(Le){var Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S.P,Se=arguments.length>2&&void 0!==arguments[2]?arguments[2]:za.d;return function(Ze){return Ze.lift(new uu(Le,Ve,Se.leading,Se.trailing))}}var uu=function(){function Le(Ve,Se,Ze,Ie){(0,R.Z)(this,Le),this.duration=Ve,this.scheduler=Se,this.leading=Ze,this.trailing=Ie}return(0,b.Z)(Le,[{key:"call",value:function(Se,Ze){return Ze.subscribe(new jo(Se,this.duration,this.scheduler,this.leading,this.trailing))}}]),Le}(),jo=function(Le){(0,L.Z)(Se,Le);var Ve=(0,w.Z)(Se);function Se(Ze,Ie,nt,wt,nn){var gn;return(0,R.Z)(this,Se),(gn=Ve.call(this,Ze)).duration=Ie,gn.scheduler=nt,gn.leading=wt,gn.trailing=nn,gn._hasTrailingValue=!1,gn._trailingValue=null,gn}return(0,b.Z)(Se,[{key:"_next",value:function(Ie){this.throttled?this.trailing&&(this._trailingValue=Ie,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Sd,this.duration,{subscriber:this})),this.leading?this.destination.next(Ie):this.trailing&&(this._trailingValue=Ie,this._hasTrailingValue=!0))}},{key:"_complete",value:function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}},{key:"clearThrottle",value:function(){var Ie=this.throttled;Ie&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),Ie.unsubscribe(),this.remove(Ie),this.throttled=null)}}]),Se}(D.L);function Sd(Le){Le.subscriber.clearThrottle()}var Vs=f(83664),Pr=f(96174),hv=f(54493);function Ep(Le,Ve){var Se=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S.P;return function(Ze){var Ie=(0,hv.J)(Le),nt=Ie?+Le-Se.now():Math.abs(Le);return Ze.lift(new Fu(nt,Ie,Ve,Se))}}var Fu=function(){function Le(Ve,Se,Ze,Ie){(0,R.Z)(this,Le),this.waitFor=Ve,this.absoluteTimeout=Se,this.withObservable=Ze,this.scheduler=Ie}return(0,b.Z)(Le,[{key:"call",value:function(Se,Ze){return Ze.subscribe(new cu(Se,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}]),Le}(),cu=function(Le){(0,L.Z)(Se,Le);var Ve=(0,w.Z)(Se);function Se(Ze,Ie,nt,wt,nn){var gn;return(0,R.Z)(this,Se),(gn=Ve.call(this,Ze)).absoluteTimeout=Ie,gn.waitFor=nt,gn.withObservable=wt,gn.scheduler=nn,gn.scheduleTimeout(),gn}return(0,b.Z)(Se,[{key:"scheduleTimeout",value:function(){var Ie=this.action;Ie?this.action=Ie.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(Se.dispatchTimeout,this.waitFor,this))}},{key:"_next",value:function(Ie){this.absoluteTimeout||this.scheduleTimeout(),(0,y.Z)((0,T.Z)(Se.prototype),"_next",this).call(this,Ie)}},{key:"_unsubscribe",value:function(){this.action=void 0,this.scheduler=null,this.withObservable=null}}],[{key:"dispatchTimeout",value:function(Ie){var nt=Ie.withObservable;Ie._unsubscribeAndRecycle(),Ie.add((0,E.ft)(nt,new E.IY(Ie)))}}]),Se}(E.Ds),Td=f(43334);function kd(Le){var Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S.P;return Ep(Le,(0,Td._)(new Pr.W),Ve)}var oh=f(56335);function wn(Le,Ve,Se){return 0===Se?[Ve]:(Le.push(Ve),Le)}function Oe(){return bn(wn,[])}function ye(Le){return function(Se){return Se.lift(new J(Le))}}var J=function(){function Le(Ve){(0,R.Z)(this,Le),this.windowBoundaries=Ve}return(0,b.Z)(Le,[{key:"call",value:function(Se,Ze){var Ie=new ie(Se),nt=Ze.subscribe(Ie);return nt.closed||Ie.add((0,E.ft)(this.windowBoundaries,new E.IY(Ie))),nt}}]),Le}(),ie=function(Le){(0,L.Z)(Se,Le);var Ve=(0,w.Z)(Se);function Se(Ze){var Ie;return(0,R.Z)(this,Se),(Ie=Ve.call(this,Ze)).window=new fi.xQ,Ze.next(Ie.window),Ie}return(0,b.Z)(Se,[{key:"notifyNext",value:function(){this.openWindow()}},{key:"notifyError",value:function(Ie){this._error(Ie)}},{key:"notifyComplete",value:function(){this._complete()}},{key:"_next",value:function(Ie){this.window.next(Ie)}},{key:"_error",value:function(Ie){this.window.error(Ie),this.destination.error(Ie)}},{key:"_complete",value:function(){this.window.complete(),this.destination.complete()}},{key:"_unsubscribe",value:function(){this.window=null}},{key:"openWindow",value:function(){var Ie=this.window;Ie&&Ie.complete();var nt=this.destination,wt=this.window=new fi.xQ;nt.next(wt)}}]),Se}(E.Ds);function ke(Le){var Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(Ze){return Ze.lift(new Be(Le,Ve))}}var Be=function(){function Le(Ve,Se){(0,R.Z)(this,Le),this.windowSize=Ve,this.startWindowEvery=Se}return(0,b.Z)(Le,[{key:"call",value:function(Se,Ze){return Ze.subscribe(new ot(Se,this.windowSize,this.startWindowEvery))}}]),Le}(),ot=function(Le){(0,L.Z)(Se,Le);var Ve=(0,w.Z)(Se);function Se(Ze,Ie,nt){var wt;return(0,R.Z)(this,Se),(wt=Ve.call(this,Ze)).destination=Ze,wt.windowSize=Ie,wt.startWindowEvery=nt,wt.windows=[new fi.xQ],wt.count=0,Ze.next(wt.windows[0]),wt}return(0,b.Z)(Se,[{key:"_next",value:function(Ie){for(var nt=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,wt=this.destination,nn=this.windowSize,gn=this.windows,ur=gn.length,Ar=0;Ar=0&&To%nt==0&&!this.closed&&gn.shift().complete(),++this.count%nt==0&&!this.closed){var Ss=new fi.xQ;gn.push(Ss),wt.next(Ss)}}},{key:"_error",value:function(Ie){var nt=this.windows;if(nt)for(;nt.length>0&&!this.closed;)nt.shift().error(Ie);this.destination.error(Ie)}},{key:"_complete",value:function(){var Ie=this.windows;if(Ie)for(;Ie.length>0&&!this.closed;)Ie.shift().complete();this.destination.complete()}},{key:"_unsubscribe",value:function(){this.count=0,this.windows=null}}]),Se}(D.L),xt=f(32104);function Bt(Le){var Ve=S.P,Se=null,Ze=Number.POSITIVE_INFINITY;return(0,I.K)(arguments[3])&&(Ve=arguments[3]),(0,I.K)(arguments[2])?Ve=arguments[2]:(0,xt.k)(arguments[2])&&(Ze=Number(arguments[2])),(0,I.K)(arguments[1])?Ve=arguments[1]:(0,xt.k)(arguments[1])&&(Se=Number(arguments[1])),function(nt){return nt.lift(new Jt(Le,Se,Ze,Ve))}}var Jt=function(){function Le(Ve,Se,Ze,Ie){(0,R.Z)(this,Le),this.windowTimeSpan=Ve,this.windowCreationInterval=Se,this.maxWindowSize=Ze,this.scheduler=Ie}return(0,b.Z)(Le,[{key:"call",value:function(Se,Ze){return Ze.subscribe(new kn(Se,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))}}]),Le}(),an=function(Le){(0,L.Z)(Se,Le);var Ve=(0,w.Z)(Se);function Se(){var Ze;return(0,R.Z)(this,Se),(Ze=Ve.apply(this,arguments))._numberOfNextedValues=0,Ze}return(0,b.Z)(Se,[{key:"next",value:function(Ie){this._numberOfNextedValues++,(0,y.Z)((0,T.Z)(Se.prototype),"next",this).call(this,Ie)}},{key:"numberOfNextedValues",get:function(){return this._numberOfNextedValues}}]),Se}(fi.xQ),kn=function(Le){(0,L.Z)(Se,Le);var Ve=(0,w.Z)(Se);function Se(Ze,Ie,nt,wt,nn){var gn;(0,R.Z)(this,Se),(gn=Ve.call(this,Ze)).destination=Ze,gn.windowTimeSpan=Ie,gn.windowCreationInterval=nt,gn.maxWindowSize=wt,gn.scheduler=nn,gn.windows=[];var ur=gn.openWindow();if(null!==nt&&nt>=0){var Ar={subscriber:(0,V.Z)(gn),window:ur,context:null},To={windowTimeSpan:Ie,windowCreationInterval:nt,subscriber:(0,V.Z)(gn),scheduler:nn};gn.add(nn.schedule(yr,Ie,Ar)),gn.add(nn.schedule(Jn,nt,To))}else{var Ss={subscriber:(0,V.Z)(gn),window:ur,windowTimeSpan:Ie};gn.add(nn.schedule(An,Ie,Ss))}return gn}return(0,b.Z)(Se,[{key:"_next",value:function(Ie){for(var nt=this.windows,wt=nt.length,nn=0;nn=this.maxWindowSize&&this.closeWindow(gn))}}},{key:"_error",value:function(Ie){for(var nt=this.windows;nt.length>0;)nt.shift().error(Ie);this.destination.error(Ie)}},{key:"_complete",value:function(){for(var Ie=this.windows;Ie.length>0;){var nt=Ie.shift();nt.closed||nt.complete()}this.destination.complete()}},{key:"openWindow",value:function(){var Ie=new an;return this.windows.push(Ie),this.destination.next(Ie),Ie}},{key:"closeWindow",value:function(Ie){Ie.complete();var nt=this.windows;nt.splice(nt.indexOf(Ie),1)}}]),Se}(D.L);function An(Le){var Ve=Le.subscriber,Se=Le.windowTimeSpan,Ze=Le.window;Ze&&Ve.closeWindow(Ze),Le.window=Ve.openWindow(),this.schedule(Le,Se)}function Jn(Le){var Ve=Le.windowTimeSpan,Se=Le.subscriber,Ze=Le.scheduler,Ie=Le.windowCreationInterval,nt=Se.openWindow(),nn={action:this,subscription:null};nn.subscription=Ze.schedule(yr,Ve,{subscriber:Se,window:nt,context:nn}),this.add(nn.subscription),this.schedule(Le,Ie)}function yr(Le){var Ve=Le.subscriber,Se=Le.window,Ze=Le.context;Ze&&Ze.action&&Ze.subscription&&Ze.action.remove(Ze.subscription),Ve.closeWindow(Se)}function Tr(Le,Ve){return function(Se){return Se.lift(new pr(Le,Ve))}}var pr=function(){function Le(Ve,Se){(0,R.Z)(this,Le),this.openings=Ve,this.closingSelector=Se}return(0,b.Z)(Le,[{key:"call",value:function(Se,Ze){return Ze.subscribe(new Ur(Se,this.openings,this.closingSelector))}}]),Le}(),Ur=function(Le){(0,L.Z)(Se,Le);var Ve=(0,w.Z)(Se);function Se(Ze,Ie,nt){var wt;return(0,R.Z)(this,Se),(wt=Ve.call(this,Ze)).openings=Ie,wt.closingSelector=nt,wt.contexts=[],wt.add(wt.openSubscription=(0,ce.D)((0,V.Z)(wt),Ie,Ie)),wt}return(0,b.Z)(Se,[{key:"_next",value:function(Ie){var nt=this.contexts;if(nt)for(var wt=nt.length,nn=0;nn0&&void 0!==arguments[0]?arguments[0]:null;Ie&&(this.remove(Ie),Ie.unsubscribe());var nt=this.window;nt&&nt.complete();var nn,wt=this.window=new fi.xQ;this.destination.next(wt);try{var gn=this.closingSelector;nn=gn()}catch(ur){return this.destination.error(ur),void this.window.error(ur)}this.add(this.closingNotification=(0,ce.D)(this,nn))}}]),Se}(he.L);function xa(){for(var Le=arguments.length,Ve=new Array(Le),Se=0;Se0){var gn=nn.indexOf(wt);-1!==gn&&nn.splice(gn,1)}}},{key:"notifyComplete",value:function(){}},{key:"_next",value:function(Ie){if(0===this.toRespond.length){var nt=[Ie].concat((0,_e.Z)(this.values));this.project?this._tryProject(nt):this.destination.next(nt)}}},{key:"_tryProject",value:function(Ie){var nt;try{nt=this.project.apply(this,Ie)}catch(wt){return void this.destination.error(wt)}this.destination.next(nt)}}]),Se}(he.L),Da=f(4042);function sl(){for(var Le=arguments.length,Ve=new Array(Le),Se=0;Se1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;(0,B.Z)(this,I),this.subscribedFrame=F,this.unsubscribedFrame=G},O=function(){function I(){(0,B.Z)(this,I),this.subscriptions=[]}return(0,U.Z)(I,[{key:"logSubscribedFrame",value:function(){return this.subscriptions.push(new Z(this.scheduler.now())),this.subscriptions.length-1}},{key:"logUnsubscribedFrame",value:function(G){var X=this.subscriptions;X[G]=new Z(X[G].subscribedFrame,this.scheduler.now())}}]),I}(),y=f(19094),T=function(I){(0,w.Z)(G,I);var F=(0,R.Z)(G);function G(X,W){var Y;return(0,B.Z)(this,G),(Y=F.call(this,function(ae){var K=this,fe=K.logSubscribedFrame(),ce=new x.w;return ce.add(new x.w(function(){K.logUnsubscribedFrame(fe)})),K.scheduleMessages(ae),ce})).messages=X,Y.subscriptions=[],Y.scheduler=W,Y}return(0,U.Z)(G,[{key:"scheduleMessages",value:function(W){for(var Y=this.messages.length,ae=0;ae1&&void 0!==arguments[1]?arguments[1]:null,K=[],fe={actual:K,ready:!1},ce=G.parseMarblesAsSubscriptions(ae,this.runMode),he=ce.subscribedFrame===Number.POSITIVE_INFINITY?0:ce.subscribedFrame,de=ce.unsubscribedFrame;this.schedule(function(){oe=W.subscribe(function(ge){var qe=ge;ge instanceof b.y&&(qe=Y.materializeInnerObservable(qe,Y.frame)),K.push({frame:Y.frame,notification:E.P.createNext(qe)})},function(ge){K.push({frame:Y.frame,notification:E.P.createError(ge)})},function(){K.push({frame:Y.frame,notification:E.P.createComplete()})})},he),de!==Number.POSITIVE_INFINITY&&this.schedule(function(){return oe.unsubscribe()},de),this.flushTests.push(fe);var Ce=this.runMode;return{toBe:function(qe,De,Qe){fe.ready=!0,fe.expected=G.parseMarbles(qe,De,Qe,!0,Ce)}}}},{key:"expectSubscriptions",value:function(W){var Y={actual:W,ready:!1};this.flushTests.push(Y);var ae=this.runMode;return{toBe:function(fe){var ce="string"==typeof fe?[fe]:fe;Y.ready=!0,Y.expected=ce.map(function(he){return G.parseMarblesAsSubscriptions(he,ae)})}}}},{key:"flush",value:function(){for(var W=this,Y=this.hotObservables;Y.length>0;)Y.shift().setup();(0,V.Z)((0,L.Z)(G.prototype),"flush",this).call(this),this.flushTests=this.flushTests.filter(function(ae){return!ae.ready||(W.assertDeepEqual(ae.actual,ae.expected),!1)})}},{key:"run",value:function(W){var Y=G.frameTimeFactor,ae=this.maxFrames;G.frameTimeFactor=1,this.maxFrames=Number.POSITIVE_INFINITY,this.runMode=!0,M.v.delegate=this;var K={cold:this.createColdObservable.bind(this),hot:this.createHotObservable.bind(this),flush:this.flush.bind(this),expectObservable:this.expectObservable.bind(this),expectSubscriptions:this.expectSubscriptions.bind(this)};try{var fe=W(K);return this.flush(),fe}finally{G.frameTimeFactor=Y,this.maxFrames=ae,this.runMode=!1,M.v.delegate=void 0}}}],[{key:"parseMarblesAsSubscriptions",value:function(W){var Y=this,ae=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("string"!=typeof W)return new Z(Number.POSITIVE_INFINITY);for(var K=W.length,fe=-1,ce=Number.POSITIVE_INFINITY,he=Number.POSITIVE_INFINITY,de=0,oe=0;oe-1?fe:de,ge(1);break;case"!":if(he!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");he=fe>-1?fe:de;break;default:if(ae&&qe.match(/^[0-9]$/)&&(0===oe||" "===W[oe-1])){var De=W.slice(oe),Qe=De.match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);if(Qe){oe+=Qe[0].length-1;var et=parseFloat(Qe[1]),bt=Qe[2],_e=void 0;switch(bt){case"ms":_e=et;break;case"s":_e=1e3*et;break;case"m":_e=1e3*et*60}ge(_e/this.frameTimeFactor);break}}throw new Error("there can only be '^' and '!' markers in a subscription marble diagram. Found instead '"+qe+"'.")}de=Ce}return he<0?new Z(ce):new Z(ce,he)}},{key:"parseMarbles",value:function(W,Y,ae){var K=this,fe=arguments.length>3&&void 0!==arguments[3]&&arguments[3],ce=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(-1!==W.indexOf("!"))throw new Error('conventional marble diagrams cannot have the unsubscription marker "!"');for(var he=W.length,de=[],oe=ce?W.replace(/^[ ]+/,"").indexOf("^"):W.indexOf("^"),Ce=-1===oe?0:oe*-this.frameTimeFactor,ge="object"!=typeof Y?function(Tt){return Tt}:function(Tt){return fe&&Y[Tt]instanceof T?Y[Tt].messages:Y[Tt]},qe=-1,De=0;De-1?qe:Ce,notification:bt}),Ce=Qe}return de}}]),G}(g.y)},24631:function(ue,j,f){"use strict";f.r(j),f.d(j,{webSocket:function(){return B.j},WebSocketSubject:function(){return U.p}});var B=f(67198),U=f(60272)},20530:function(ue,j,f){"use strict";f(32821)},67427:function(ue,j){"use strict";var B;!function(){var U=j||{};void 0!==(B=function(){return U}.apply(j,[]))&&(ue.exports=B),U.default=U;var V="http://www.w3.org/2000/xmlns/",w="http://www.w3.org/2000/svg",b=/url\(["']?(.+?)["']?\)/,E={woff2:"font/woff2",woff:"font/woff",otf:"application/x-font-opentype",ttf:"application/x-font-ttf",eot:"application/vnd.ms-fontobject",sfnt:"application/font-sfnt",svg:"image/svg+xml"},x=function(ce){return ce instanceof HTMLElement||ce instanceof SVGElement},Z=function(ce){if(!x(ce))throw new Error("an HTMLElement or SVGElement is required; got "+ce)},O=function(ce){return new Promise(function(he,de){x(ce)?he(ce):de(new Error("an HTMLElement or SVGElement is required; got "+ce))})},T=function(ce){var he=Object.keys(E).filter(function(de){return ce.indexOf("."+de)>0}).map(function(de){return E[de]});return he?he[0]:(console.error("Unknown font format for "+ce+". Fonts may not be working correctly."),"application/octet-stream")},v=function(ce,he,de){var oe=ce.viewBox&&ce.viewBox.baseVal&&ce.viewBox.baseVal[de]||null!==he.getAttribute(de)&&!he.getAttribute(de).match(/%$/)&&parseInt(he.getAttribute(de))||ce.getBoundingClientRect()[de]||parseInt(he.style[de])||parseInt(window.getComputedStyle(ce).getPropertyValue(de));return null==oe||isNaN(parseFloat(oe))?0:oe},k=function(ce){for(var he=window.atob(ce.split(",")[1]),de=ce.split(",")[0].split(":")[1].split(";")[0],oe=new ArrayBuffer(he.length),Ce=new Uint8Array(oe),ge=0;ge *")).forEach(function(Mn){Mn.setAttributeNS(V,"xmlns","svg"===Mn.tagName?w:"http://www.w3.org/1999/xhtml")}),!st)return ae(fe,ce).then(function(Mn){var On=document.createElement("style");On.setAttribute("type","text/css"),On.innerHTML="";var Fn=document.createElement("defs");Fn.appendChild(On),tt.insertBefore(Fn,tt.firstChild);var Zn=document.createElement("div");Zn.appendChild(tt);var Vn=Zn.innerHTML.replace(/NS\d+:href/gi,'xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href');if("function"!=typeof he)return{src:Vn,width:Tt,height:mt};he(Vn,Tt,mt)});var un=document.createElement("div");un.appendChild(tt);var Ut=un.innerHTML;if("function"!=typeof he)return{src:Ut,width:Tt,height:mt};he(Ut,Tt,mt)})},U.svgAsDataUri=function(fe,ce,he){return Z(fe),U.prepareSvg(fe,ce).then(function(de){var Ce=de.width,ge=de.height,qe="data:image/svg+xml;base64,"+window.btoa(function(ce){return decodeURIComponent(encodeURIComponent(ce).replace(/%([0-9A-F]{2})/g,function(he,de){var oe=String.fromCharCode("0x"+de);return"%"===oe?"%25":oe}))}(']>'+de.src));return"function"==typeof he&&he(qe,Ce,ge),qe})},U.svgAsPngUri=function(fe,ce,he){Z(fe);var de=ce||{},oe=de.encoderType,Ce=void 0===oe?"image/png":oe,ge=de.encoderOptions,qe=void 0===ge?.8:ge,De=de.canvg,Qe=function(bt){var _e=bt.src,xe=bt.width,He=bt.height,st=document.createElement("canvas"),tt=st.getContext("2d"),Zt=window.devicePixelRatio||1;st.width=xe*Zt,st.height=He*Zt,st.style.width=st.width+"px",st.style.height=st.height+"px",tt.setTransform(Zt,0,0,Zt,0,0),De?De(st,_e):tt.drawImage(_e,0,0);var Tt=void 0;try{Tt=st.toDataURL(Ce,qe)}catch(mt){if("undefined"!=typeof SecurityError&&mt instanceof SecurityError||"SecurityError"===mt.name)return void console.error("Rendered SVG images cannot be downloaded in this browser.");throw mt}return"function"==typeof he&&he(Tt,st.width,st.height),Promise.resolve(Tt)};return De?U.prepareSvg(fe,ce).then(Qe):U.svgAsDataUri(fe,ce).then(function(et){return new Promise(function(bt,_e){var xe=new Image;xe.onload=function(){return bt(Qe({src:xe,width:xe.width,height:xe.height}))},xe.onerror=function(){_e("There was an error loading the data URI as an image on the following SVG\n"+window.atob(et.slice(26))+"Open the following link to see browser's diagnosis\n"+et)},xe.src=et})})},U.download=function(fe,ce,he){if(navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(k(ce),fe);else{var de=document.createElement("a");if("download"in de){de.download=fe,de.style.display="none",document.body.appendChild(de);try{var oe=k(ce),Ce=URL.createObjectURL(oe);de.href=Ce,de.onclick=function(){return requestAnimationFrame(function(){return URL.revokeObjectURL(Ce)})}}catch(ge){console.error(ge),console.warn("Error while getting object URL. Falling back to string URL."),de.href=ce}de.click(),document.body.removeChild(de)}else he&&he.popup&&(he.popup.document.title=fe,he.popup.location.replace(ce))}},U.saveSvg=function(fe,ce,he){var de=K();return O(fe).then(function(oe){return U.svgAsDataUri(oe,he||{})}).then(function(oe){return U.download(ce,oe,de)})},U.saveSvgAsPng=function(fe,ce,he){var de=K();return O(fe).then(function(oe){return U.svgAsPngUri(oe,he||{})}).then(function(oe){return U.download(ce,oe,de)})}}()},68299:function(ue,j,f){var B=f(5752),U=Object.prototype.hasOwnProperty,V="undefined"!=typeof Map;function L(){this._array=[],this._set=V?new Map:Object.create(null)}L.fromArray=function(R,b){for(var E=new L,x=0,Z=R.length;x=0)return b}else{var E=B.toSetString(R);if(U.call(this._set,E))return this._set[E]}throw new Error('"'+R+'" is not in the set.')},L.prototype.at=function(R){if(R>=0&&R>>=5)>0&&(O|=32),Z+=B.encode(O)}while(y>0);return Z},j.decode=function(x,Z,O){var v,g,y=x.length,T=0,D=0;do{if(Z>=y)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(g=B.decode(x.charCodeAt(Z++))))throw new Error("Invalid base64 digit: "+x.charAt(Z-1));v=!!(32&g),T+=(g&=31)<>1;return 1==(1&E)?-Z:Z}(T),O.rest=Z}},25291:function(ue,j){var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");j.encode=function(B){if(0<=B&&BR||b==R&&w.generatedColumn>=L.generatedColumn||B.compareByGeneratedPositionsInflated(L,w)<=0}(this._last,w)?(this._sorted=!1,this._array.push(w)):(this._last=w,this._array.push(w))},V.prototype.toArray=function(){return this._sorted||(this._array.sort(B.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},j.H=V},67954:function(ue,j,f){var B=f(64743),U=f(5752),V=f(68299).I,L=f(57730).H;function w(R){R||(R={}),this._file=U.getArg(R,"file",null),this._sourceRoot=U.getArg(R,"sourceRoot",null),this._skipValidation=U.getArg(R,"skipValidation",!1),this._sources=new V,this._names=new V,this._mappings=new L,this._sourcesContents=null}w.prototype._version=3,w.fromSourceMap=function(b){var E=b.sourceRoot,x=new w({file:b.file,sourceRoot:E});return b.eachMapping(function(Z){var O={generated:{line:Z.generatedLine,column:Z.generatedColumn}};null!=Z.source&&(O.source=Z.source,null!=E&&(O.source=U.relative(E,O.source)),O.original={line:Z.originalLine,column:Z.originalColumn},null!=Z.name&&(O.name=Z.name)),x.addMapping(O)}),b.sources.forEach(function(Z){var O=Z;null!==E&&(O=U.relative(E,Z)),x._sources.has(O)||x._sources.add(O);var y=b.sourceContentFor(Z);null!=y&&x.setSourceContent(Z,y)}),x},w.prototype.addMapping=function(b){var E=U.getArg(b,"generated"),x=U.getArg(b,"original",null),Z=U.getArg(b,"source",null),O=U.getArg(b,"name",null);this._skipValidation||this._validateMapping(E,x,Z,O),null!=Z&&(Z=String(Z),this._sources.has(Z)||this._sources.add(Z)),null!=O&&(O=String(O),this._names.has(O)||this._names.add(O)),this._mappings.add({generatedLine:E.line,generatedColumn:E.column,originalLine:null!=x&&x.line,originalColumn:null!=x&&x.column,source:Z,name:O})},w.prototype.setSourceContent=function(b,E){var x=b;null!=this._sourceRoot&&(x=U.relative(this._sourceRoot,x)),null!=E?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[U.toSetString(x)]=E):this._sourcesContents&&(delete this._sourcesContents[U.toSetString(x)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},w.prototype.applySourceMap=function(b,E,x){var Z=E;if(null==E){if(null==b.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');Z=b.file}var O=this._sourceRoot;null!=O&&(Z=U.relative(O,Z));var y=new V,T=new V;this._mappings.unsortedForEach(function(D){if(D.source===Z&&null!=D.originalLine){var v=b.originalPositionFor({line:D.originalLine,column:D.originalColumn});null!=v.source&&(D.source=v.source,null!=x&&(D.source=U.join(x,D.source)),null!=O&&(D.source=U.relative(O,D.source)),D.originalLine=v.line,D.originalColumn=v.column,null!=v.name&&(D.name=v.name))}var g=D.source;null!=g&&!y.has(g)&&y.add(g);var M=D.name;null!=M&&!T.has(M)&&T.add(M)},this),this._sources=y,this._names=T,b.sources.forEach(function(D){var v=b.sourceContentFor(D);null!=v&&(null!=x&&(D=U.join(x,D)),null!=O&&(D=U.relative(O,D)),this.setSourceContent(D,v))},this)},w.prototype._validateMapping=function(b,E,x,Z){if(E&&"number"!=typeof E.line&&"number"!=typeof E.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(b&&"line"in b&&"column"in b&&b.line>0&&b.column>=0)||E||x||Z){if(b&&"line"in b&&"column"in b&&E&&"line"in E&&"column"in E&&b.line>0&&b.column>=0&&E.line>0&&E.column>=0&&x)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:b,source:x,original:E,name:Z}))}},w.prototype._serializeMappings=function(){for(var D,v,g,M,b=0,E=1,x=0,Z=0,O=0,y=0,T="",k=this._mappings.toArray(),S=0,I=k.length;S0){if(!U.compareByGeneratedPositionsInflated(v,k[S-1]))continue;D+=","}D+=B.encode(v.generatedColumn-b),b=v.generatedColumn,null!=v.source&&(M=this._sources.indexOf(v.source),D+=B.encode(M-y),y=M,D+=B.encode(v.originalLine-1-Z),Z=v.originalLine-1,D+=B.encode(v.originalColumn-x),x=v.originalColumn,null!=v.name&&(g=this._names.indexOf(v.name),D+=B.encode(g-O),O=g)),T+=D}return T},w.prototype._generateSourcesContent=function(b,E){return b.map(function(x){if(!this._sourcesContents)return null;null!=E&&(x=U.relative(E,x));var Z=U.toSetString(x);return Object.prototype.hasOwnProperty.call(this._sourcesContents,Z)?this._sourcesContents[Z]:null},this)},w.prototype.toJSON=function(){var b={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(b.file=this._file),null!=this._sourceRoot&&(b.sourceRoot=this._sourceRoot),this._sourcesContents&&(b.sourcesContent=this._generateSourcesContent(b.sources,b.sourceRoot)),b},w.prototype.toString=function(){return JSON.stringify(this.toJSON())},j.h=w},5752:function(ue,j){j.getArg=function(S,I,F){if(I in S)return S[I];if(3===arguments.length)return F;throw new Error('"'+I+'" is a required argument.')};var B=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,U=/^data:.+\,.+$/;function V(S){var I=S.match(B);return I?{scheme:I[1],auth:I[2],host:I[3],port:I[4],path:I[5]}:null}function L(S){var I="";return S.scheme&&(I+=S.scheme+":"),I+="//",S.auth&&(I+=S.auth+"@"),S.host&&(I+=S.host),S.port&&(I+=":"+S.port),S.path&&(I+=S.path),I}function w(S){var I=S,F=V(S);if(F){if(!F.path)return S;I=F.path}for(var W,G=j.isAbsolute(I),X=I.split(/\/+/),Y=0,ae=X.length-1;ae>=0;ae--)"."===(W=X[ae])?X.splice(ae,1):".."===W?Y++:Y>0&&(""===W?(X.splice(ae+1,Y),Y=0):(X.splice(ae,2),Y--));return""===(I=X.join("/"))&&(I=G?"/":"."),F?(F.path=I,L(F)):I}function R(S,I){""===S&&(S="."),""===I&&(I=".");var F=V(I),G=V(S);if(G&&(S=G.path||"/"),F&&!F.scheme)return G&&(F.scheme=G.scheme),L(F);if(F||I.match(U))return I;if(G&&!G.host&&!G.path)return G.host=I,L(G);var X="/"===I.charAt(0)?I:w(S.replace(/\/+$/,"")+"/"+I);return G?(G.path=X,L(G)):X}j.urlParse=V,j.urlGenerate=L,j.normalize=w,j.join=R,j.isAbsolute=function(S){return"/"===S.charAt(0)||B.test(S)},j.relative=function(S,I){""===S&&(S="."),S=S.replace(/\/$/,"");for(var F=0;0!==I.indexOf(S+"/");){var G=S.lastIndexOf("/");if(G<0||(S=S.slice(0,G)).match(/^([^\/]+:\/)?\/*$/))return I;++F}return Array(F+1).join("../")+I.substr(S.length+1)};var E=!("__proto__"in Object.create(null));function x(S){return S}function y(S){if(!S)return!1;var I=S.length;if(I<9||95!==S.charCodeAt(I-1)||95!==S.charCodeAt(I-2)||111!==S.charCodeAt(I-3)||116!==S.charCodeAt(I-4)||111!==S.charCodeAt(I-5)||114!==S.charCodeAt(I-6)||112!==S.charCodeAt(I-7)||95!==S.charCodeAt(I-8)||95!==S.charCodeAt(I-9))return!1;for(var F=I-10;F>=0;F--)if(36!==S.charCodeAt(F))return!1;return!0}function v(S,I){return S===I?0:null===S?1:null===I?-1:S>I?1:-1}j.toSetString=E?x:function(S){return y(S)?"$"+S:S},j.fromSetString=E?x:function(S){return y(S)?S.slice(1):S},j.compareByOriginalPositions=function(S,I,F){var G=v(S.source,I.source);return 0!==G||0!=(G=S.originalLine-I.originalLine)||0!=(G=S.originalColumn-I.originalColumn)||F||0!=(G=S.generatedColumn-I.generatedColumn)||0!=(G=S.generatedLine-I.generatedLine)?G:v(S.name,I.name)},j.compareByGeneratedPositionsDeflated=function(S,I,F){var G=S.generatedLine-I.generatedLine;return 0!==G||0!=(G=S.generatedColumn-I.generatedColumn)||F||0!==(G=v(S.source,I.source))||0!=(G=S.originalLine-I.originalLine)||0!=(G=S.originalColumn-I.originalColumn)?G:v(S.name,I.name)},j.compareByGeneratedPositionsInflated=function(S,I){var F=S.generatedLine-I.generatedLine;return 0!==F||0!=(F=S.generatedColumn-I.generatedColumn)||0!==(F=v(S.source,I.source))||0!=(F=S.originalLine-I.originalLine)||0!=(F=S.originalColumn-I.originalColumn)?F:v(S.name,I.name)},j.parseSourceMapInput=function(S){return JSON.parse(S.replace(/^\)]}'[^\n]*\n/,""))},j.computeSourceURL=function(S,I,F){if(I=I||"",S&&("/"!==S[S.length-1]&&"/"!==I[0]&&(S+="/"),I=S+I),F){var G=V(F);if(!G)throw new Error("sourceMapURL could not be parsed");if(G.path){var X=G.path.lastIndexOf("/");X>=0&&(G.path=G.path.substring(0,X+1))}I=R(L(G),I)}return w(I)}},36590:function(ue){ue.exports=function(j){"use strict";var B=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function V(g,M){var k=g[0],S=g[1],I=g[2],F=g[3];S=((S+=((I=((I+=((F=((F+=((k=((k+=(S&I|~S&F)+M[0]-680876936|0)<<7|k>>>25)+S|0)&S|~k&I)+M[1]-389564586|0)<<12|F>>>20)+k|0)&k|~F&S)+M[2]+606105819|0)<<17|I>>>15)+F|0)&F|~I&k)+M[3]-1044525330|0)<<22|S>>>10)+I|0,S=((S+=((I=((I+=((F=((F+=((k=((k+=(S&I|~S&F)+M[4]-176418897|0)<<7|k>>>25)+S|0)&S|~k&I)+M[5]+1200080426|0)<<12|F>>>20)+k|0)&k|~F&S)+M[6]-1473231341|0)<<17|I>>>15)+F|0)&F|~I&k)+M[7]-45705983|0)<<22|S>>>10)+I|0,S=((S+=((I=((I+=((F=((F+=((k=((k+=(S&I|~S&F)+M[8]+1770035416|0)<<7|k>>>25)+S|0)&S|~k&I)+M[9]-1958414417|0)<<12|F>>>20)+k|0)&k|~F&S)+M[10]-42063|0)<<17|I>>>15)+F|0)&F|~I&k)+M[11]-1990404162|0)<<22|S>>>10)+I|0,S=((S+=((I=((I+=((F=((F+=((k=((k+=(S&I|~S&F)+M[12]+1804603682|0)<<7|k>>>25)+S|0)&S|~k&I)+M[13]-40341101|0)<<12|F>>>20)+k|0)&k|~F&S)+M[14]-1502002290|0)<<17|I>>>15)+F|0)&F|~I&k)+M[15]+1236535329|0)<<22|S>>>10)+I|0,S=((S+=((I=((I+=((F=((F+=((k=((k+=(S&F|I&~F)+M[1]-165796510|0)<<5|k>>>27)+S|0)&I|S&~I)+M[6]-1069501632|0)<<9|F>>>23)+k|0)&S|k&~S)+M[11]+643717713|0)<<14|I>>>18)+F|0)&k|F&~k)+M[0]-373897302|0)<<20|S>>>12)+I|0,S=((S+=((I=((I+=((F=((F+=((k=((k+=(S&F|I&~F)+M[5]-701558691|0)<<5|k>>>27)+S|0)&I|S&~I)+M[10]+38016083|0)<<9|F>>>23)+k|0)&S|k&~S)+M[15]-660478335|0)<<14|I>>>18)+F|0)&k|F&~k)+M[4]-405537848|0)<<20|S>>>12)+I|0,S=((S+=((I=((I+=((F=((F+=((k=((k+=(S&F|I&~F)+M[9]+568446438|0)<<5|k>>>27)+S|0)&I|S&~I)+M[14]-1019803690|0)<<9|F>>>23)+k|0)&S|k&~S)+M[3]-187363961|0)<<14|I>>>18)+F|0)&k|F&~k)+M[8]+1163531501|0)<<20|S>>>12)+I|0,S=((S+=((I=((I+=((F=((F+=((k=((k+=(S&F|I&~F)+M[13]-1444681467|0)<<5|k>>>27)+S|0)&I|S&~I)+M[2]-51403784|0)<<9|F>>>23)+k|0)&S|k&~S)+M[7]+1735328473|0)<<14|I>>>18)+F|0)&k|F&~k)+M[12]-1926607734|0)<<20|S>>>12)+I|0,S=((S+=((I=((I+=((F=((F+=((k=((k+=(S^I^F)+M[5]-378558|0)<<4|k>>>28)+S|0)^S^I)+M[8]-2022574463|0)<<11|F>>>21)+k|0)^k^S)+M[11]+1839030562|0)<<16|I>>>16)+F|0)^F^k)+M[14]-35309556|0)<<23|S>>>9)+I|0,S=((S+=((I=((I+=((F=((F+=((k=((k+=(S^I^F)+M[1]-1530992060|0)<<4|k>>>28)+S|0)^S^I)+M[4]+1272893353|0)<<11|F>>>21)+k|0)^k^S)+M[7]-155497632|0)<<16|I>>>16)+F|0)^F^k)+M[10]-1094730640|0)<<23|S>>>9)+I|0,S=((S+=((I=((I+=((F=((F+=((k=((k+=(S^I^F)+M[13]+681279174|0)<<4|k>>>28)+S|0)^S^I)+M[0]-358537222|0)<<11|F>>>21)+k|0)^k^S)+M[3]-722521979|0)<<16|I>>>16)+F|0)^F^k)+M[6]+76029189|0)<<23|S>>>9)+I|0,S=((S+=((I=((I+=((F=((F+=((k=((k+=(S^I^F)+M[9]-640364487|0)<<4|k>>>28)+S|0)^S^I)+M[12]-421815835|0)<<11|F>>>21)+k|0)^k^S)+M[15]+530742520|0)<<16|I>>>16)+F|0)^F^k)+M[2]-995338651|0)<<23|S>>>9)+I|0,S=((S+=((F=((F+=(S^((k=((k+=(I^(S|~F))+M[0]-198630844|0)<<6|k>>>26)+S|0)|~I))+M[7]+1126891415|0)<<10|F>>>22)+k|0)^((I=((I+=(k^(F|~S))+M[14]-1416354905|0)<<15|I>>>17)+F|0)|~k))+M[5]-57434055|0)<<21|S>>>11)+I|0,S=((S+=((F=((F+=(S^((k=((k+=(I^(S|~F))+M[12]+1700485571|0)<<6|k>>>26)+S|0)|~I))+M[3]-1894986606|0)<<10|F>>>22)+k|0)^((I=((I+=(k^(F|~S))+M[10]-1051523|0)<<15|I>>>17)+F|0)|~k))+M[1]-2054922799|0)<<21|S>>>11)+I|0,S=((S+=((F=((F+=(S^((k=((k+=(I^(S|~F))+M[8]+1873313359|0)<<6|k>>>26)+S|0)|~I))+M[15]-30611744|0)<<10|F>>>22)+k|0)^((I=((I+=(k^(F|~S))+M[6]-1560198380|0)<<15|I>>>17)+F|0)|~k))+M[13]+1309151649|0)<<21|S>>>11)+I|0,S=((S+=((F=((F+=(S^((k=((k+=(I^(S|~F))+M[4]-145523070|0)<<6|k>>>26)+S|0)|~I))+M[11]-1120210379|0)<<10|F>>>22)+k|0)^((I=((I+=(k^(F|~S))+M[2]+718787259|0)<<15|I>>>17)+F|0)|~k))+M[9]-343485551|0)<<21|S>>>11)+I|0,g[0]=k+g[0]|0,g[1]=S+g[1]|0,g[2]=I+g[2]|0,g[3]=F+g[3]|0}function L(g){var k,M=[];for(k=0;k<64;k+=4)M[k>>2]=g.charCodeAt(k)+(g.charCodeAt(k+1)<<8)+(g.charCodeAt(k+2)<<16)+(g.charCodeAt(k+3)<<24);return M}function w(g){var k,M=[];for(k=0;k<64;k+=4)M[k>>2]=g[k]+(g[k+1]<<8)+(g[k+2]<<16)+(g[k+3]<<24);return M}function R(g){var S,I,F,G,X,W,M=g.length,k=[1732584193,-271733879,-1732584194,271733878];for(S=64;S<=M;S+=64)V(k,L(g.substring(S-64,S)));for(I=(g=g.substring(S-64)).length,F=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],S=0;S>2]|=g.charCodeAt(S)<<(S%4<<3);if(F[S>>2]|=128<<(S%4<<3),S>55)for(V(k,F),S=0;S<16;S+=1)F[S]=0;return G=(G=8*M).toString(16).match(/(.*?)(.{0,8})$/),X=parseInt(G[2],16),W=parseInt(G[1],16)||0,F[14]=X,F[15]=W,V(k,F),k}function E(g){var k,M="";for(k=0;k<4;k+=1)M+=B[g>>8*k+4&15]+B[g>>8*k&15];return M}function x(g){var M;for(M=0;MF?new ArrayBuffer(0):(G=F-I,X=new ArrayBuffer(G),W=new Uint8Array(X),Y=new Uint8Array(this,I,G),W.set(Y),X)}}(),v.prototype.append=function(g){return this.appendBinary(Z(g)),this},v.prototype.appendBinary=function(g){this._buff+=g,this._length+=g.length;var k,M=this._buff.length;for(k=64;k<=M;k+=64)V(this._hash,L(this._buff.substring(k-64,k)));return this._buff=this._buff.substring(k-64),this},v.prototype.end=function(g){var S,F,M=this._buff,k=M.length,I=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(S=0;S>2]|=M.charCodeAt(S)<<(S%4<<3);return this._finish(I,k),F=x(this._hash),g&&(F=D(F)),this.reset(),F},v.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},v.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},v.prototype.setState=function(g){return this._buff=g.buff,this._length=g.length,this._hash=g.hash,this},v.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},v.prototype._finish=function(g,M){var S,I,F,k=M;if(g[k>>2]|=128<<(k%4<<3),k>55)for(V(this._hash,g),k=0;k<16;k+=1)g[k]=0;S=(S=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),I=parseInt(S[2],16),F=parseInt(S[1],16)||0,g[14]=I,g[15]=F,V(this._hash,g)},v.hash=function(g,M){return v.hashBinary(Z(g),M)},v.hashBinary=function(g,M){var S=x(R(g));return M?D(S):S},(v.ArrayBuffer=function(){this.reset()}).prototype.append=function(g){var S,M=function(g,M,k){var S=new Uint8Array(g.byteLength+M.byteLength);return S.set(new Uint8Array(g)),S.set(new Uint8Array(M),g.byteLength),k?S:S.buffer}(this._buff.buffer,g,!0),k=M.length;for(this._length+=g.byteLength,S=64;S<=k;S+=64)V(this._hash,w(M.subarray(S-64,S)));return this._buff=S-64>2]|=M[I]<<(I%4<<3);return this._finish(S,k),F=x(this._hash),g&&(F=D(F)),this.reset(),F},v.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},v.ArrayBuffer.prototype.getState=function(){var g=v.prototype.getState.call(this);return g.buff=function(g){return String.fromCharCode.apply(null,new Uint8Array(g))}(g.buff),g},v.ArrayBuffer.prototype.setState=function(g){return g.buff=function(g,M){var F,k=g.length,S=new ArrayBuffer(k),I=new Uint8Array(S);for(F=0;F>2]|=g[S]<<(S%4<<3);if(F[S>>2]|=128<<(S%4<<3),S>55)for(V(k,F),S=0;S<16;S+=1)F[S]=0;return G=(G=8*M).toString(16).match(/(.*?)(.{0,8})$/),X=parseInt(G[2],16),W=parseInt(G[1],16)||0,F[14]=X,F[15]=W,V(k,F),k}(new Uint8Array(g)));return M?D(S):S},v}()},28547:function(ue,j,f){var B=f(8274),U=f(8523),V=U;V.v1=B,V.v4=U,ue.exports=V},93259:function(ue){for(var j=[],f=0;f<256;++f)j[f]=(f+256).toString(16).substr(1);ue.exports=function(U,V){var L=V||0;return[j[U[L++]],j[U[L++]],j[U[L++]],j[U[L++]],"-",j[U[L++]],j[U[L++]],"-",j[U[L++]],j[U[L++]],"-",j[U[L++]],j[U[L++]],"-",j[U[L++]],j[U[L++]],j[U[L++]],j[U[L++]],j[U[L++]],j[U[L++]]].join("")}},19299:function(ue){var j="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(j){var f=new Uint8Array(16);ue.exports=function(){return j(f),f}}else{var B=new Array(16);ue.exports=function(){for(var L,V=0;V<16;V++)0==(3&V)&&(L=4294967296*Math.random()),B[V]=L>>>((3&V)<<3)&255;return B}}},8274:function(ue,j,f){var V,L,B=f(19299),U=f(93259),w=0,R=0;ue.exports=function(E,x,Z){var O=x&&Z||0,y=x||[],T=(E=E||{}).node||V,D=void 0!==E.clockseq?E.clockseq:L;if(null==T||null==D){var v=B();null==T&&(T=V=[1|v[0],v[1],v[2],v[3],v[4],v[5]]),null==D&&(D=L=16383&(v[6]<<8|v[7]))}var g=void 0!==E.msecs?E.msecs:(new Date).getTime(),M=void 0!==E.nsecs?E.nsecs:R+1,k=g-w+(M-R)/1e4;if(k<0&&void 0===E.clockseq&&(D=D+1&16383),(k<0||g>w)&&void 0===E.nsecs&&(M=0),M>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");w=g,R=M,L=D;var S=(1e4*(268435455&(g+=122192928e5))+M)%4294967296;y[O++]=S>>>24&255,y[O++]=S>>>16&255,y[O++]=S>>>8&255,y[O++]=255&S;var I=g/4294967296*1e4&268435455;y[O++]=I>>>8&255,y[O++]=255&I,y[O++]=I>>>24&15|16,y[O++]=I>>>16&255,y[O++]=D>>>8|128,y[O++]=255&D;for(var F=0;F<6;++F)y[O+F]=T[F];return x||U(y)}},8523:function(ue,j,f){var B=f(19299),U=f(93259);ue.exports=function(L,w,R){var b=w&&R||0;"string"==typeof L&&(w="binary"===L?new Array(16):null,L=null);var E=(L=L||{}).random||(L.rng||B)();if(E[6]=15&E[6]|64,E[8]=63&E[8]|128,w)for(var x=0;x<16;++x)w[b+x]=E[x];return w||U(E)}},84406:function(ue){window,ue.exports=function(j){var f={};function B(U){if(f[U])return f[U].exports;var V=f[U]={i:U,l:!1,exports:{}};return j[U].call(V.exports,V,V.exports,B),V.l=!0,V.exports}return B.m=j,B.c=f,B.d=function(U,V,L){B.o(U,V)||Object.defineProperty(U,V,{enumerable:!0,get:L})},B.r=function(U){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(U,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(U,"__esModule",{value:!0})},B.t=function(U,V){if(1&V&&(U=B(U)),8&V||4&V&&"object"==typeof U&&U&&U.__esModule)return U;var L=Object.create(null);if(B.r(L),Object.defineProperty(L,"default",{enumerable:!0,value:U}),2&V&&"string"!=typeof U)for(var w in U)B.d(L,w,function(R){return U[R]}.bind(null,w));return L},B.n=function(U){var V=U&&U.__esModule?function(){return U.default}:function(){return U};return B.d(V,"a",V),V},B.o=function(U,V){return Object.prototype.hasOwnProperty.call(U,V)},B.p="",B(B.s=0)}([function(j,f,B){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.AttachAddon=void 0;var U=function(){function L(w,R){this._disposables=[],this._socket=w,this._socket.binaryType="arraybuffer",this._bidirectional=!R||!1!==R.bidirectional}return L.prototype.activate=function(w){var R=this;this._disposables.push(V(this._socket,"message",function(b){var E=b.data;w.write("string"==typeof E?E:new Uint8Array(E))})),this._bidirectional&&(this._disposables.push(w.onData(function(b){return R._sendData(b)})),this._disposables.push(w.onBinary(function(b){return R._sendBinary(b)}))),this._disposables.push(V(this._socket,"close",function(){return R.dispose()})),this._disposables.push(V(this._socket,"error",function(){return R.dispose()}))},L.prototype.dispose=function(){this._disposables.forEach(function(w){return w.dispose()})},L.prototype._sendData=function(w){1===this._socket.readyState&&this._socket.send(w)},L.prototype._sendBinary=function(w){if(1===this._socket.readyState){for(var R=new Uint8Array(w.length),b=0;bS;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},k.prototype._createAccessibilityTreeNode=function(){var S=document.createElement("div");return S.setAttribute("role","listitem"),S.tabIndex=-1,this._refreshRowDimensions(S),S},k.prototype._onTab=function(S){for(var I=0;I0?this._charsToConsume.shift()!==S&&(this._charsToAnnounce+=S):this._charsToAnnounce+=S,"\n"===S&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=x.tooMuchOutput)),Z.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){I._accessibilityTreeRoot.appendChild(I._liveRegion)},0))},k.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,Z.isMac&&(0,v.removeElementFromParent)(this._liveRegion)},k.prototype._onKey=function(S){this._clearLiveRegion(),this._charsToConsume.push(S)},k.prototype._refreshRows=function(S,I){this._renderRowsDebouncer.refresh(S,I,this._terminal.rows)},k.prototype._renderRows=function(S,I){for(var F=this._terminal.buffer,G=F.lines.length.toString(),X=S;X<=I;X++){var W=F.translateBufferLineToString(F.ydisp+X,!0),Y=(F.ydisp+X+1).toString(),ae=this._rowElements[X];ae&&(0===W.length?ae.innerText="\xa0":ae.textContent=W,ae.setAttribute("aria-posinset",Y),ae.setAttribute("aria-setsize",G))}this._announceCharacters()},k.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var S=0;S>>0},(b=w.color||(w.color={})).blend=function(y,T){var D=(255&T.rgba)/255;if(1===D)return{css:T.css,rgba:T.rgba};var g=T.rgba>>16&255,M=T.rgba>>8&255,k=y.rgba>>24&255,S=y.rgba>>16&255,I=y.rgba>>8&255,F=k+Math.round(((T.rgba>>24&255)-k)*D),G=S+Math.round((g-S)*D),X=I+Math.round((M-I)*D);return{css:R.toCss(F,G,X),rgba:R.toRgba(F,G,X)}},b.isOpaque=function(y){return 255==(255&y.rgba)},b.ensureContrastRatio=function(y,T,D){var v=x.ensureContrastRatio(y.rgba,T.rgba,D);if(v)return x.toColor(v>>24&255,v>>16&255,v>>8&255)},b.opaque=function(y){var T=(255|y.rgba)>>>0,D=x.toChannels(T);return{css:R.toCss(D[0],D[1],D[2]),rgba:T}},b.opacity=function(y,T){var D=Math.round(255*T),v=x.toChannels(y.rgba),g=v[0],M=v[1],k=v[2];return{css:R.toCss(g,M,k,D),rgba:R.toRgba(g,M,k,D)}},(w.css||(w.css={})).toColor=function(y){switch(y.length){case 7:return{css:y,rgba:(parseInt(y.slice(1),16)<<8|255)>>>0};case 9:return{css:y,rgba:parseInt(y.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(y){function T(D,v,g){var M=D/255,k=v/255,S=g/255;return.2126*(M<=.03928?M/12.92:Math.pow((M+.055)/1.055,2.4))+.7152*(k<=.03928?k/12.92:Math.pow((k+.055)/1.055,2.4))+.0722*(S<=.03928?S/12.92:Math.pow((S+.055)/1.055,2.4))}y.relativeLuminance=function(D){return T(D>>16&255,D>>8&255,255&D)},y.relativeLuminance2=T}(E=w.rgb||(w.rgb={})),function(y){function T(v,g,M){for(var k=v>>24&255,S=v>>16&255,I=v>>8&255,F=g>>24&255,G=g>>16&255,X=g>>8&255,W=O(E.relativeLuminance2(F,X,G),E.relativeLuminance2(k,S,I));W0||G>0||X>0);)F-=Math.max(0,Math.ceil(.1*F)),G-=Math.max(0,Math.ceil(.1*G)),X-=Math.max(0,Math.ceil(.1*X)),W=O(E.relativeLuminance2(F,X,G),E.relativeLuminance2(k,S,I));return(F<<24|G<<16|X<<8|255)>>>0}function D(v,g,M){for(var k=v>>24&255,S=v>>16&255,I=v>>8&255,F=g>>24&255,G=g>>16&255,X=g>>8&255,W=O(E.relativeLuminance2(F,X,G),E.relativeLuminance2(k,S,I));W>>0}y.ensureContrastRatio=function(v,g,M){var k=E.relativeLuminance(v>>8),S=E.relativeLuminance(g>>8);if(O(k,S)>24&255,v>>16&255,v>>8&255,255&v]},y.toColor=function(v,g,M){return{css:R.toCss(v,g,M),rgba:R.toRgba(v,g,M)}}}(x=w.rgba||(w.rgba={})),w.toPaddedHex=Z,w.contrastRatio=O},7239:function(L,w){Object.defineProperty(w,"__esModule",{value:!0}),w.ColorContrastCache=void 0;var R=function(){function b(){this._color={},this._rgba={}}return b.prototype.clear=function(){this._color={},this._rgba={}},b.prototype.setCss=function(E,x,Z){this._rgba[E]||(this._rgba[E]={}),this._rgba[E][x]=Z},b.prototype.getCss=function(E,x){return this._rgba[E]?this._rgba[E][x]:void 0},b.prototype.setColor=function(E,x,Z){this._color[E]||(this._color[E]={}),this._color[E][x]=Z},b.prototype.getColor=function(E,x){return this._color[E]?this._color[E][x]:void 0},b}();w.ColorContrastCache=R},5680:function(L,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.ColorManager=w.DEFAULT_ANSI_COLORS=void 0;var b=R(4774),E=R(7239),x=b.css.toColor("#ffffff"),Z=b.css.toColor("#000000"),O=b.css.toColor("#ffffff"),y=b.css.toColor("#000000"),T={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};w.DEFAULT_ANSI_COLORS=Object.freeze(function(){for(var v=[b.css.toColor("#2e3436"),b.css.toColor("#cc0000"),b.css.toColor("#4e9a06"),b.css.toColor("#c4a000"),b.css.toColor("#3465a4"),b.css.toColor("#75507b"),b.css.toColor("#06989a"),b.css.toColor("#d3d7cf"),b.css.toColor("#555753"),b.css.toColor("#ef2929"),b.css.toColor("#8ae234"),b.css.toColor("#fce94f"),b.css.toColor("#729fcf"),b.css.toColor("#ad7fa8"),b.css.toColor("#34e2e2"),b.css.toColor("#eeeeec")],g=[0,95,135,175,215,255],M=0;M<216;M++){var k=g[M/36%6|0],S=g[M/6%6|0],I=g[M%6];v.push({css:b.channels.toCss(k,S,I),rgba:b.channels.toRgba(k,S,I)})}for(M=0;M<24;M++){var F=8+10*M;v.push({css:b.channels.toCss(F,F,F),rgba:b.channels.toRgba(F,F,F)})}return v}());var D=function(){function v(g,M){this.allowTransparency=M;var k=g.createElement("canvas");k.width=1,k.height=1;var S=k.getContext("2d");if(!S)throw new Error("Could not get rendering context");this._ctx=S,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new E.ColorContrastCache,this.colors={foreground:x,background:Z,cursor:O,cursorAccent:y,selectionTransparent:T,selectionOpaque:b.color.blend(Z,T),ansi:w.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return v.prototype.onOptionsChange=function(g){"minimumContrastRatio"===g&&this._contrastCache.clear()},v.prototype.setTheme=function(g){void 0===g&&(g={}),this.colors.foreground=this._parseColor(g.foreground,x),this.colors.background=this._parseColor(g.background,Z),this.colors.cursor=this._parseColor(g.cursor,O,!0),this.colors.cursorAccent=this._parseColor(g.cursorAccent,y,!0),this.colors.selectionTransparent=this._parseColor(g.selection,T,!0),this.colors.selectionOpaque=b.color.blend(this.colors.background,this.colors.selectionTransparent),b.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=b.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(g.black,w.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(g.red,w.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(g.green,w.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(g.yellow,w.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(g.blue,w.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(g.magenta,w.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(g.cyan,w.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(g.white,w.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(g.brightBlack,w.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(g.brightRed,w.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(g.brightGreen,w.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(g.brightYellow,w.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(g.brightBlue,w.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(g.brightMagenta,w.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(g.brightCyan,w.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(g.brightWhite,w.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},v.prototype._parseColor=function(g,M,k){if(void 0===k&&(k=this.allowTransparency),void 0===g)return M;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=g,"string"!=typeof this._ctx.fillStyle)return console.warn("Color: "+g+" is invalid using fallback "+M.css),M;this._ctx.fillRect(0,0,1,1);var S=this._ctx.getImageData(0,0,1,1).data;if(255!==S[3]){if(!k)return console.warn("Color: "+g+" is using transparency, but allowTransparency is false. Using fallback "+M.css+"."),M;var I=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(ae){return Number(ae)}),F=I[0],G=I[1],X=I[2],Y=Math.round(255*I[3]);return{rgba:b.channels.toRgba(F,G,X,Y),css:g}}return{css:this._ctx.fillStyle,rgba:b.channels.toRgba(S[0],S[1],S[2],S[3])}},v}();w.ColorManager=D},9631:function(L,w){Object.defineProperty(w,"__esModule",{value:!0}),w.removeElementFromParent=void 0,w.removeElementFromParent=function(){for(var R,b=[],E=0;E=0;I--)(M=T[I])&&(S=(k<3?M(S):k>3?M(D,v,S):M(D,v))||S);return k>3&&S&&Object.defineProperty(D,v,S),S},E=this&&this.__param||function(T,D){return function(v,g){D(v,g,T)}};Object.defineProperty(w,"__esModule",{value:!0}),w.MouseZone=w.Linkifier=void 0;var x=R(8460),Z=R(2585),O=function(){function T(D,v,g){this._bufferService=D,this._logService=v,this._unicodeService=g,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new x.EventEmitter,this._onHideLinkUnderline=new x.EventEmitter,this._onLinkTooltip=new x.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(T.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),T.prototype.attachToDom=function(D,v){this._element=D,this._mouseZoneManager=v},T.prototype.linkifyRows=function(D,v){var g=this;this._mouseZoneManager&&(void 0===this._rowsToLinkify.start||void 0===this._rowsToLinkify.end?(this._rowsToLinkify.start=D,this._rowsToLinkify.end=v):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,D),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,v)),this._mouseZoneManager.clearAll(D,v),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return g._linkifyRows()},T._timeBeforeLatency))},T.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var D=this._bufferService.buffer;if(void 0!==this._rowsToLinkify.start&&void 0!==this._rowsToLinkify.end){var v=D.ydisp+this._rowsToLinkify.start;if(!(v>=D.lines.length)){for(var g=D.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,M=Math.ceil(2e3/this._bufferService.cols),k=this._bufferService.buffer.iterator(!1,v,g,M,M);k.hasNext();)for(var S=k.next(),I=0;I=0;v--)if(D.priority<=this._linkMatchers[v].priority)return void this._linkMatchers.splice(v+1,0,D);this._linkMatchers.splice(0,0,D)}else this._linkMatchers.push(D)},T.prototype.deregisterLinkMatcher=function(D){for(var v=0;v>9&511:void 0;g.validationCallback?g.validationCallback(W,function(ce){k._rowsTimeoutId||ce&&k._addLink(Y[1],Y[0]-k._bufferService.buffer.ydisp,W,g,fe)}):G._addLink(Y[1],Y[0]-G._bufferService.buffer.ydisp,W,g,fe)},G=this;null!==(M=S.exec(v))&&"break"!==F(););},T.prototype._addLink=function(D,v,g,M,k){var S=this;if(this._mouseZoneManager&&this._element){var I=this._unicodeService.getStringCellWidth(g),F=D%this._bufferService.cols,G=v+Math.floor(D/this._bufferService.cols),X=(F+I)%this._bufferService.cols,W=G+Math.floor((F+I)/this._bufferService.cols);0===X&&(X=this._bufferService.cols,W--),this._mouseZoneManager.add(new y(F+1,G+1,X+1,W+1,function(Y){if(M.handler)return M.handler(Y,g);var ae=window.open();ae?(ae.opener=null,ae.location.href=g):console.warn("Opening link blocked as opener could not be cleared")},function(){S._onShowLinkUnderline.fire(S._createLinkHoverEvent(F,G,X,W,k)),S._element.classList.add("xterm-cursor-pointer")},function(Y){S._onLinkTooltip.fire(S._createLinkHoverEvent(F,G,X,W,k)),M.hoverTooltipCallback&&M.hoverTooltipCallback(Y,g,{start:{x:F,y:G},end:{x:X,y:W}})},function(){S._onHideLinkUnderline.fire(S._createLinkHoverEvent(F,G,X,W,k)),S._element.classList.remove("xterm-cursor-pointer"),M.hoverLeaveCallback&&M.hoverLeaveCallback()},function(Y){return!M.willLinkActivate||M.willLinkActivate(Y,g)}))}},T.prototype._createLinkHoverEvent=function(D,v,g,M,k){return{x1:D,y1:v,x2:g,y2:M,cols:this._bufferService.cols,fg:k}},T._timeBeforeLatency=200,T=b([E(0,Z.IBufferService),E(1,Z.ILogService),E(2,Z.IUnicodeService)],T)}();w.Linkifier=O;var y=function(D,v,g,M,k,S,I,F,G){this.x1=D,this.y1=v,this.x2=g,this.y2=M,this.clickCallback=k,this.hoverCallback=S,this.tooltipCallback=I,this.leaveCallback=F,this.willLinkActivate=G};w.MouseZone=y},6465:function(L,w,R){var b,E=this&&this.__extends||(b=function(M,k){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,I){S.__proto__=I}||function(S,I){for(var F in I)Object.prototype.hasOwnProperty.call(I,F)&&(S[F]=I[F])})(M,k)},function(g,M){if("function"!=typeof M&&null!==M)throw new TypeError("Class extends value "+String(M)+" is not a constructor or null");function k(){this.constructor=g}b(g,M),g.prototype=null===M?Object.create(M):(k.prototype=M.prototype,new k)}),x=this&&this.__decorate||function(g,M,k,S){var I,F=arguments.length,G=F<3?M:null===S?S=Object.getOwnPropertyDescriptor(M,k):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)G=Reflect.decorate(g,M,k,S);else for(var X=g.length-1;X>=0;X--)(I=g[X])&&(G=(F<3?I(G):F>3?I(M,k,G):I(M,k))||G);return F>3&&G&&Object.defineProperty(M,k,G),G},Z=this&&this.__param||function(g,M){return function(k,S){M(k,S,g)}};Object.defineProperty(w,"__esModule",{value:!0}),w.Linkifier2=void 0;var O=R(2585),y=R(8460),T=R(844),D=R(3656),v=function(g){function M(k){var S=g.call(this)||this;return S._bufferService=k,S._linkProviders=[],S._linkCacheDisposables=[],S._isMouseOut=!0,S._activeLine=-1,S._onShowLinkUnderline=S.register(new y.EventEmitter),S._onHideLinkUnderline=S.register(new y.EventEmitter),S.register((0,T.getDisposeArrayDisposable)(S._linkCacheDisposables)),S}return E(M,g),Object.defineProperty(M.prototype,"currentLink",{get:function(){return this._currentLink},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),M.prototype.registerLinkProvider=function(k){var S=this;return this._linkProviders.push(k),{dispose:function(){var F=S._linkProviders.indexOf(k);-1!==F&&S._linkProviders.splice(F,1)}}},M.prototype.attachToDom=function(k,S,I){var F=this;this._element=k,this._mouseService=S,this._renderService=I,this.register((0,D.addDisposableDomListener)(this._element,"mouseleave",function(){F._isMouseOut=!0,F._clearCurrentLink()})),this.register((0,D.addDisposableDomListener)(this._element,"mousemove",this._onMouseMove.bind(this))),this.register((0,D.addDisposableDomListener)(this._element,"click",this._onClick.bind(this)))},M.prototype._onMouseMove=function(k){if(this._lastMouseEvent=k,this._element&&this._mouseService){var S=this._positionFromMouseEvent(k,this._element,this._mouseService);if(S){this._isMouseOut=!1;for(var I=k.composedPath(),F=0;Fk?this._bufferService.cols:W.link.range.end.x,K=W.link.range.start.y=k&&this._currentLink.link.range.end.y<=S)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,T.disposeArray)(this._linkCacheDisposables))},M.prototype._handleNewLink=function(k){var S=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var I=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);I&&this._linkAtPosition(k.link,I)&&(this._currentLink=k,this._currentLink.state={decorations:{underline:void 0===k.link.decorations||k.link.decorations.underline,pointerCursor:void 0===k.link.decorations||k.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,k.link,this._lastMouseEvent),k.link.decorations={},Object.defineProperties(k.link.decorations,{pointerCursor:{get:function(){var G,X;return null===(X=null===(G=S._currentLink)||void 0===G?void 0:G.state)||void 0===X?void 0:X.decorations.pointerCursor},set:function(G){var X,W;(null===(X=S._currentLink)||void 0===X?void 0:X.state)&&S._currentLink.state.decorations.pointerCursor!==G&&(S._currentLink.state.decorations.pointerCursor=G,S._currentLink.state.isHovered&&(null===(W=S._element)||void 0===W||W.classList.toggle("xterm-cursor-pointer",G)))}},underline:{get:function(){var G,X;return null===(X=null===(G=S._currentLink)||void 0===G?void 0:G.state)||void 0===X?void 0:X.decorations.underline},set:function(G){var X,W,Y;(null===(X=S._currentLink)||void 0===X?void 0:X.state)&&(null===(Y=null===(W=S._currentLink)||void 0===W?void 0:W.state)||void 0===Y?void 0:Y.decorations.underline)!==G&&(S._currentLink.state.decorations.underline=G,S._currentLink.state.isHovered&&S._fireUnderlineEvent(k.link,G))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(F){S._clearCurrentLink(0===F.start?0:F.start+1+S._bufferService.buffer.ydisp,F.end+1+S._bufferService.buffer.ydisp)})))}},M.prototype._linkHover=function(k,S,I){var F;(null===(F=this._currentLink)||void 0===F?void 0:F.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(S,!0),this._currentLink.state.decorations.pointerCursor&&k.classList.add("xterm-cursor-pointer")),S.hover&&S.hover(I,S.text)},M.prototype._fireUnderlineEvent=function(k,S){var I=k.range,F=this._bufferService.buffer.ydisp,G=this._createLinkUnderlineEvent(I.start.x-1,I.start.y-F-1,I.end.x,I.end.y-F-1,void 0);(S?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(G)},M.prototype._linkLeave=function(k,S,I){var F;(null===(F=this._currentLink)||void 0===F?void 0:F.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(S,!1),this._currentLink.state.decorations.pointerCursor&&k.classList.remove("xterm-cursor-pointer")),S.leave&&S.leave(I,S.text)},M.prototype._linkAtPosition=function(k,S){var F=k.range.start.yS.y;return(k.range.start.y===k.range.end.y&&k.range.start.x<=S.x&&k.range.end.x>=S.x||F&&k.range.end.x>=S.x||G&&k.range.start.x<=S.x||F&&G)&&k.range.start.y<=S.y&&k.range.end.y>=S.y},M.prototype._positionFromMouseEvent=function(k,S,I){var F=I.getCoords(k,S,this._bufferService.cols,this._bufferService.rows);if(F)return{x:F[0],y:F[1]+this._bufferService.buffer.ydisp}},M.prototype._createLinkUnderlineEvent=function(k,S,I,F,G){return{x1:k,y1:S,x2:I,y2:F,cols:this._bufferService.cols,fg:G}},x([Z(0,O.IBufferService)],M)}(T.Disposable);w.Linkifier2=v},9042:function(L,w){Object.defineProperty(w,"__esModule",{value:!0}),w.tooMuchOutput=w.promptLabel=void 0,w.promptLabel="Terminal input",w.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},6954:function(L,w,R){var b,E=this&&this.__extends||(b=function(M,k){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,I){S.__proto__=I}||function(S,I){for(var F in I)Object.prototype.hasOwnProperty.call(I,F)&&(S[F]=I[F])})(M,k)},function(g,M){if("function"!=typeof M&&null!==M)throw new TypeError("Class extends value "+String(M)+" is not a constructor or null");function k(){this.constructor=g}b(g,M),g.prototype=null===M?Object.create(M):(k.prototype=M.prototype,new k)}),x=this&&this.__decorate||function(g,M,k,S){var I,F=arguments.length,G=F<3?M:null===S?S=Object.getOwnPropertyDescriptor(M,k):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)G=Reflect.decorate(g,M,k,S);else for(var X=g.length-1;X>=0;X--)(I=g[X])&&(G=(F<3?I(G):F>3?I(M,k,G):I(M,k))||G);return F>3&&G&&Object.defineProperty(M,k,G),G},Z=this&&this.__param||function(g,M){return function(k,S){M(k,S,g)}};Object.defineProperty(w,"__esModule",{value:!0}),w.MouseZoneManager=void 0;var O=R(844),y=R(3656),T=R(4725),D=R(2585),v=function(g){function M(k,S,I,F,G,X){var W=g.call(this)||this;return W._element=k,W._screenElement=S,W._bufferService=I,W._mouseService=F,W._selectionService=G,W._optionsService=X,W._zones=[],W._areZonesActive=!1,W._lastHoverCoords=[void 0,void 0],W._initialSelectionLength=0,W.register((0,y.addDisposableDomListener)(W._element,"mousedown",function(Y){return W._onMouseDown(Y)})),W._mouseMoveListener=function(Y){return W._onMouseMove(Y)},W._mouseLeaveListener=function(Y){return W._onMouseLeave(Y)},W._clickListener=function(Y){return W._onClick(Y)},W}return E(M,g),M.prototype.dispose=function(){g.prototype.dispose.call(this),this._deactivate()},M.prototype.add=function(k){this._zones.push(k),1===this._zones.length&&this._activate()},M.prototype.clearAll=function(k,S){if(0!==this._zones.length){k&&S||(k=0,S=this._bufferService.rows-1);for(var I=0;Ik&&F.y1<=S+1||F.y2>k&&F.y2<=S+1||F.y1S+1)&&(this._currentZone&&this._currentZone===F&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(I--,1))}0===this._zones.length&&this._deactivate()}},M.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},M.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},M.prototype._onMouseMove=function(k){this._lastHoverCoords[0]===k.pageX&&this._lastHoverCoords[1]===k.pageY||(this._onHover(k),this._lastHoverCoords=[k.pageX,k.pageY])},M.prototype._onHover=function(k){var S=this,I=this._findZoneEventAt(k);I!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),I&&(this._currentZone=I,I.hoverCallback&&I.hoverCallback(k),this._tooltipTimeout=window.setTimeout(function(){return S._onTooltip(k)},this._optionsService.options.linkTooltipHoverDuration)))},M.prototype._onTooltip=function(k){this._tooltipTimeout=void 0;var S=this._findZoneEventAt(k);null==S||S.tooltipCallback(k)},M.prototype._onMouseDown=function(k){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var S=this._findZoneEventAt(k);(null==S?void 0:S.willLinkActivate(k))&&(k.preventDefault(),k.stopImmediatePropagation())}},M.prototype._onMouseLeave=function(k){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},M.prototype._onClick=function(k){var S=this._findZoneEventAt(k),I=this._getSelectionLength();S&&I===this._initialSelectionLength&&(S.clickCallback(k),k.preventDefault(),k.stopImmediatePropagation())},M.prototype._getSelectionLength=function(){var k=this._selectionService.selectionText;return k?k.length:0},M.prototype._findZoneEventAt=function(k){var S=this._mouseService.getCoords(k,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(S)for(var I=S[0],F=S[1],G=0;G=X.x1&&I=X.x1||F===X.y2&&IX.y1&&F4)&&He.coreMouseService.triggerMouseEvent({col:Fn.x-33,row:Fn.y-33,button:Mn,action:On,ctrl:Ut.ctrlKey,alt:Ut.altKey,shift:Ut.shiftKey})}var Zt={mouseup:null,wheel:null,mousedrag:null,mousemove:null},Tt=function(Mn){return tt(Mn),Mn.buttons||(xe._document.removeEventListener("mouseup",Zt.mouseup),Zt.mousedrag&&xe._document.removeEventListener("mousemove",Zt.mousedrag)),xe.cancel(Mn)},mt=function(Mn){return tt(Mn),xe.cancel(Mn,!0)},Yt=function(Mn){Mn.buttons&&tt(Mn)},un=function(Mn){Mn.buttons||tt(Mn)};this.register(this.coreMouseService.onProtocolChange(function(Ut){Ut?("debug"===xe.optionsService.options.logLevel&&xe._logService.debug("Binding to mouse events:",xe.coreMouseService.explainEvents(Ut)),xe.element.classList.add("enable-mouse-events"),xe._selectionService.disable()):(xe._logService.debug("Unbinding from mouse events."),xe.element.classList.remove("enable-mouse-events"),xe._selectionService.enable()),8&Ut?Zt.mousemove||(st.addEventListener("mousemove",un),Zt.mousemove=un):(st.removeEventListener("mousemove",Zt.mousemove),Zt.mousemove=null),16&Ut?Zt.wheel||(st.addEventListener("wheel",mt,{passive:!1}),Zt.wheel=mt):(st.removeEventListener("wheel",Zt.wheel),Zt.wheel=null),2&Ut?Zt.mouseup||(Zt.mouseup=Tt):(xe._document.removeEventListener("mouseup",Zt.mouseup),Zt.mouseup=null),4&Ut?Zt.mousedrag||(Zt.mousedrag=Yt):(xe._document.removeEventListener("mousemove",Zt.mousedrag),Zt.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,k.addDisposableDomListener)(st,"mousedown",function(Ut){if(Ut.preventDefault(),xe.focus(),xe.coreMouseService.areMouseEventsActive&&!xe._selectionService.shouldForceSelection(Ut))return tt(Ut),Zt.mouseup&&xe._document.addEventListener("mouseup",Zt.mouseup),Zt.mousedrag&&xe._document.addEventListener("mousemove",Zt.mousedrag),xe.cancel(Ut)})),this.register((0,k.addDisposableDomListener)(st,"wheel",function(Ut){if(!Zt.wheel){if(!xe.buffer.hasScrollback){var Mn=xe.viewport.getLinesScrolled(Ut);if(0===Mn)return;for(var On=y.C0.ESC+(xe.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(Ut.deltaY<0?"A":"B"),Fn="",Zn=0;Zn47)},_e.prototype._keyUp=function(xe){var He;this._customKeyEventHandler&&!1===this._customKeyEventHandler(xe)||(16===(He=xe).keyCode||17===He.keyCode||18===He.keyCode||this.focus(),this.updateCursorStyle(xe),this._keyPressHandled=!1)},_e.prototype._keyPress=function(xe){var He;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&!1===this._customKeyEventHandler(xe))return!1;if(this.cancel(xe),xe.charCode)He=xe.charCode;else if(null==xe.which)He=xe.keyCode;else{if(0===xe.which||0===xe.charCode)return!1;He=xe.which}return!(!He||(xe.altKey||xe.ctrlKey||xe.metaKey)&&!this._isThirdLevelShift(this.browser,xe)||(He=String.fromCharCode(He),this._onKey.fire({key:He,domEvent:xe}),this._showCursor(),this.coreService.triggerDataEvent(He,!0),this._keyPressHandled=!0,0))},_e.prototype._inputEvent=function(xe){return!(!xe.data||"insertText"!==xe.inputType||this.optionsService.options.screenReaderMode||this._keyPressHandled||(this.coreService.triggerDataEvent(xe.data,!0),this.cancel(xe),0))},_e.prototype.bell=function(){var xe;this._soundBell()&&(null===(xe=this._soundService)||void 0===xe||xe.playBellSound()),this._onBell.fire()},_e.prototype.resize=function(xe,He){xe!==this.cols||He!==this.rows?bt.prototype.resize.call(this,xe,He):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},_e.prototype._afterResize=function(xe,He){var st,tt;null===(st=this._charSizeService)||void 0===st||st.measure(),null===(tt=this.viewport)||void 0===tt||tt.syncScrollArea(!0)},_e.prototype.clear=function(){if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var xe=1;xe=this._debounceThresholdMS)this._lastRefreshMs=y,this._innerRefresh();else if(!this._additionalRefreshRequested){var D=this._debounceThresholdMS-(y-this._lastRefreshMs);this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(function(){O._lastRefreshMs=Date.now(),O._innerRefresh(),O._additionalRefreshRequested=!1,O._refreshTimeoutID=void 0},D)}},b.prototype._innerRefresh=function(){if(void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var E=Math.max(this._rowStart,0),x=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(E,x)}},b}();w.TimeBasedDebouncer=R},1680:function(L,w,R){var b,E=this&&this.__extends||(b=function(M,k){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,I){S.__proto__=I}||function(S,I){for(var F in I)Object.prototype.hasOwnProperty.call(I,F)&&(S[F]=I[F])})(M,k)},function(g,M){if("function"!=typeof M&&null!==M)throw new TypeError("Class extends value "+String(M)+" is not a constructor or null");function k(){this.constructor=g}b(g,M),g.prototype=null===M?Object.create(M):(k.prototype=M.prototype,new k)}),x=this&&this.__decorate||function(g,M,k,S){var I,F=arguments.length,G=F<3?M:null===S?S=Object.getOwnPropertyDescriptor(M,k):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)G=Reflect.decorate(g,M,k,S);else for(var X=g.length-1;X>=0;X--)(I=g[X])&&(G=(F<3?I(G):F>3?I(M,k,G):I(M,k))||G);return F>3&&G&&Object.defineProperty(M,k,G),G},Z=this&&this.__param||function(g,M){return function(k,S){M(k,S,g)}};Object.defineProperty(w,"__esModule",{value:!0}),w.Viewport=void 0;var O=R(844),y=R(3656),T=R(4725),D=R(2585),v=function(g){function M(k,S,I,F,G,X,W,Y){var ae=g.call(this)||this;return ae._scrollLines=k,ae._viewportElement=S,ae._scrollArea=I,ae._element=F,ae._bufferService=G,ae._optionsService=X,ae._charSizeService=W,ae._renderService=Y,ae.scrollBarWidth=0,ae._currentRowHeight=0,ae._currentScaledCellHeight=0,ae._lastRecordedBufferLength=0,ae._lastRecordedViewportHeight=0,ae._lastRecordedBufferHeight=0,ae._lastTouchY=0,ae._lastScrollTop=0,ae._lastHadScrollBar=!1,ae._wheelPartialScroll=0,ae._refreshAnimationFrame=null,ae._ignoreNextScrollEvent=!1,ae.scrollBarWidth=ae._viewportElement.offsetWidth-ae._scrollArea.offsetWidth||15,ae._lastHadScrollBar=!0,ae.register((0,y.addDisposableDomListener)(ae._viewportElement,"scroll",ae._onScroll.bind(ae))),ae._activeBuffer=ae._bufferService.buffer,ae.register(ae._bufferService.buffers.onBufferActivate(function(K){return ae._activeBuffer=K.activeBuffer})),ae._renderDimensions=ae._renderService.dimensions,ae.register(ae._renderService.onDimensionsChange(function(K){return ae._renderDimensions=K})),setTimeout(function(){return ae.syncScrollArea()},0),ae}return E(M,g),M.prototype.onThemeChange=function(k){this._viewportElement.style.backgroundColor=k.background.css},M.prototype._refresh=function(k){var S=this;if(k)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return S._innerRefresh()}))},M.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._currentScaledCellHeight=this._renderService.dimensions.scaledCellHeight,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var k=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==k&&(this._lastRecordedBufferHeight=k,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var S=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==S&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=S),this.scrollBarWidth=0===this._optionsService.options.scrollback?0:this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this._lastHadScrollBar=this.scrollBarWidth>0;var I=window.getComputedStyle(this._element),F=parseInt(I.paddingLeft)+parseInt(I.paddingRight);this._viewportElement.style.width=(this._renderService.dimensions.actualCellWidth*this._bufferService.cols+this.scrollBarWidth+(this._lastHadScrollBar?F:0)).toString()+"px",this._refreshAnimationFrame=null},M.prototype.syncScrollArea=function(k){if(void 0===k&&(k=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(k);this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.scaledCellHeight===this._currentScaledCellHeight?this._lastHadScrollBar!==this._optionsService.options.scrollback>0&&this._refresh(k):this._refresh(k)},M.prototype._onScroll=function(k){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent){if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._scrollLines(0);var S=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(S)}},M.prototype._bubbleScroll=function(k,S){return!(S<0&&0!==this._viewportElement.scrollTop||S>0&&this._viewportElement.scrollTop+this._lastRecordedViewportHeight0?1:-1),this._wheelPartialScroll%=1):k.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(S*=this._bufferService.rows),S},M.prototype._applyScrollModifier=function(k,S){var I=this._optionsService.options.fastScrollModifier;return"alt"===I&&S.altKey||"ctrl"===I&&S.ctrlKey||"shift"===I&&S.shiftKey?k*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:k*this._optionsService.options.scrollSensitivity},M.prototype.onTouchStart=function(k){this._lastTouchY=k.touches[0].pageY},M.prototype.onTouchMove=function(k){var S=this._lastTouchY-k.touches[0].pageY;return this._lastTouchY=k.touches[0].pageY,0!==S&&(this._viewportElement.scrollTop+=S,this._bubbleScroll(k,S))},x([Z(4,D.IBufferService),Z(5,D.IOptionsService),Z(6,T.ICharSizeService),Z(7,T.IRenderService)],M)}(O.Disposable);w.Viewport=v},2950:function(L,w,R){var b=this&&this.__decorate||function(y,T,D,v){var g,M=arguments.length,k=M<3?T:null===v?v=Object.getOwnPropertyDescriptor(T,D):v;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)k=Reflect.decorate(y,T,D,v);else for(var S=y.length-1;S>=0;S--)(g=y[S])&&(k=(M<3?g(k):M>3?g(T,D,k):g(T,D))||k);return M>3&&k&&Object.defineProperty(T,D,k),k},E=this&&this.__param||function(y,T){return function(D,v){T(D,v,y)}};Object.defineProperty(w,"__esModule",{value:!0}),w.CompositionHelper=void 0;var x=R(4725),Z=R(2585),O=function(){function y(T,D,v,g,M,k){this._textarea=T,this._compositionView=D,this._bufferService=v,this._optionsService=g,this._coreService=M,this._renderService=k,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}return Object.defineProperty(y.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),y.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")},y.prototype.compositionupdate=function(T){var D=this;this._compositionView.textContent=T.data,this.updateCompositionElements(),setTimeout(function(){D._compositionPosition.end=D._textarea.value.length},0)},y.prototype.compositionend=function(){this._finalizeComposition(!0)},y.prototype.keydown=function(T){if(this._isComposing||this._isSendingComposition){if(229===T.keyCode||16===T.keyCode||17===T.keyCode||18===T.keyCode)return!1;this._finalizeComposition(!1)}return 229!==T.keyCode||(this._handleAnyTextareaChanges(),!1)},y.prototype._finalizeComposition=function(T){var D=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,T){var v={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){var M;D._isSendingComposition&&(D._isSendingComposition=!1,v.start+=D._dataAlreadySent.length,(M=D._isComposing?D._textarea.value.substring(v.start,v.end):D._textarea.value.substring(v.start)).length>0&&D._coreService.triggerDataEvent(M,!0))},0)}else{this._isSendingComposition=!1;var g=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(g,!0)}},y.prototype._handleAnyTextareaChanges=function(){var T=this,D=this._textarea.value;setTimeout(function(){if(!T._isComposing){var v=T._textarea.value.replace(D,"");v.length>0&&(T._dataAlreadySent=v,T._coreService.triggerDataEvent(v,!0))}},0)},y.prototype.updateCompositionElements=function(T){var D=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var v=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),g=this._renderService.dimensions.actualCellHeight,M=this._bufferService.buffer.y*this._renderService.dimensions.actualCellHeight,k=v*this._renderService.dimensions.actualCellWidth;this._compositionView.style.left=k+"px",this._compositionView.style.top=M+"px",this._compositionView.style.height=g+"px",this._compositionView.style.lineHeight=g+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var S=this._compositionView.getBoundingClientRect();this._textarea.style.left=k+"px",this._textarea.style.top=M+"px",this._textarea.style.width=Math.max(S.width,1)+"px",this._textarea.style.height=Math.max(S.height,1)+"px",this._textarea.style.lineHeight=S.height+"px"}T||setTimeout(function(){return D.updateCompositionElements(!0)},0)}},b([E(2,Z.IBufferService),E(3,Z.IOptionsService),E(4,Z.ICoreService),E(5,x.IRenderService)],y)}();w.CompositionHelper=O},9806:function(L,w){function R(b,E){var x=E.getBoundingClientRect();return[b.clientX-x.left,b.clientY-x.top]}Object.defineProperty(w,"__esModule",{value:!0}),w.getRawByteCoords=w.getCoords=w.getCoordsRelativeToElement=void 0,w.getCoordsRelativeToElement=R,w.getCoords=function(b,E,x,Z,O,y,T,D){if(O){var v=R(b,E);if(v)return v[0]=Math.ceil((v[0]+(D?y/2:0))/y),v[1]=Math.ceil(v[1]/T),v[0]=Math.min(Math.max(v[0],1),x+(D?1:0)),v[1]=Math.min(Math.max(v[1],1),Z),v}},w.getRawByteCoords=function(b){if(b)return{x:b[0]+32,y:b[1]+32}}},9504:function(L,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.moveToCellSequence=void 0;var b=R(2584);function E(D,v,g,M){var k=D-x(g,D),S=v-x(g,v);return T(Math.abs(k-S)-function(F,G,X){for(var W=0,Y=F-x(X,F),ae=G-x(X,G),K=0;K=0&&vv?"A":"B"}function O(D,v,g,M,k,S){for(var I=D,F=v,G="";I!==g||F!==M;)I+=k?1:-1,k&&I>S.cols-1?(G+=S.buffer.translateBufferLineToString(F,!1,D,I),I=0,D=0,F++):!k&&I<0&&(G+=S.buffer.translateBufferLineToString(F,!1,0,D+1),D=I=S.cols-1,F--);return G+S.buffer.translateBufferLineToString(F,!1,D,I)}function y(D,v){return b.C0.ESC+(v?"O":"[")+D}function T(D,v){D=Math.floor(D);for(var g="",M=0;M0?Y-x(ae,Y):X;var de,oe,Ce,ge,qe,Qe,ce=Y,he=(de=G,oe=X,Qe=E(Ce=W,ge=Y,qe=ae,K).length>0?ge-x(qe,ge):oe,de=Ce&&QeD?"D":"C",T(Math.abs(S-D),y(k,M));k=I>v?"D":"C";var F=Math.abs(I-v);return T(function(G,X){return X.cols-G}(I>v?D:S,g)+(F-1)*g.cols+1+((I>v?S:D)-1),y(k,M))}},1546:function(L,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.BaseRenderLayer=void 0;var b=R(643),E=R(8803),x=R(1420),Z=R(3734),O=R(1752),y=R(4774),T=R(9631),D=R(8978),v=function(){function g(M,k,S,I,F,G,X,W){this._container=M,this._alpha=I,this._colors=F,this._rendererId=G,this._bufferService=X,this._optionsService=W,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+k+"-layer"),this._canvas.style.zIndex=S.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return g.prototype.dispose=function(){var M;(0,T.removeElementFromParent)(this._canvas),null===(M=this._charAtlas)||void 0===M||M.dispose()},g.prototype._initCanvas=function(){this._ctx=(0,O.throwIfFalsy)(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},g.prototype.onOptionsChanged=function(){},g.prototype.onBlur=function(){},g.prototype.onFocus=function(){},g.prototype.onCursorMove=function(){},g.prototype.onGridChanged=function(M,k){},g.prototype.onSelectionChanged=function(M,k,S){void 0===S&&(S=!1)},g.prototype.setColors=function(M){this._refreshCharAtlas(M)},g.prototype._setTransparency=function(M){if(M!==this._alpha){var k=this._canvas;this._alpha=M,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,k),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},g.prototype._refreshCharAtlas=function(M){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=(0,x.acquireCharAtlas)(this._optionsService.options,this._rendererId,M,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},g.prototype.resize=function(M){this._scaledCellWidth=M.scaledCellWidth,this._scaledCellHeight=M.scaledCellHeight,this._scaledCharWidth=M.scaledCharWidth,this._scaledCharHeight=M.scaledCharHeight,this._scaledCharLeft=M.scaledCharLeft,this._scaledCharTop=M.scaledCharTop,this._canvas.width=M.scaledCanvasWidth,this._canvas.height=M.scaledCanvasHeight,this._canvas.style.width=M.canvasWidth+"px",this._canvas.style.height=M.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},g.prototype.clearTextureAtlas=function(){var M;null===(M=this._charAtlas)||void 0===M||M.clear()},g.prototype._fillCells=function(M,k,S,I){this._ctx.fillRect(M*this._scaledCellWidth,k*this._scaledCellHeight,S*this._scaledCellWidth,I*this._scaledCellHeight)},g.prototype._fillMiddleLineAtCells=function(M,k,S){void 0===S&&(S=1);var I=Math.ceil(.5*this._scaledCellHeight);this._ctx.fillRect(M*this._scaledCellWidth,(k+1)*this._scaledCellHeight-I-window.devicePixelRatio,S*this._scaledCellWidth,window.devicePixelRatio)},g.prototype._fillBottomLineAtCells=function(M,k,S){void 0===S&&(S=1),this._ctx.fillRect(M*this._scaledCellWidth,(k+1)*this._scaledCellHeight-window.devicePixelRatio-1,S*this._scaledCellWidth,window.devicePixelRatio)},g.prototype._fillLeftLineAtCell=function(M,k,S){this._ctx.fillRect(M*this._scaledCellWidth,k*this._scaledCellHeight,window.devicePixelRatio*S,this._scaledCellHeight)},g.prototype._strokeRectAtCell=function(M,k,S,I){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(M*this._scaledCellWidth+window.devicePixelRatio/2,k*this._scaledCellHeight+window.devicePixelRatio/2,S*this._scaledCellWidth-window.devicePixelRatio,I*this._scaledCellHeight-window.devicePixelRatio)},g.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},g.prototype._clearCells=function(M,k,S,I){this._alpha?this._ctx.clearRect(M*this._scaledCellWidth,k*this._scaledCellHeight,S*this._scaledCellWidth,I*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(M*this._scaledCellWidth,k*this._scaledCellHeight,S*this._scaledCellWidth,I*this._scaledCellHeight))},g.prototype._fillCharTrueColor=function(M,k,S){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline=E.TEXT_BASELINE,this._clipRow(S);var I=!1;!1!==this._optionsService.options.customGlyphs&&(I=(0,D.tryDrawCustomChar)(this._ctx,M.getChars(),k*this._scaledCellWidth,S*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),I||this._ctx.fillText(M.getChars(),k*this._scaledCellWidth+this._scaledCharLeft,S*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight)},g.prototype._drawChars=function(M,k,S){var I,F,G=this._getContrastColor(M);G||M.isFgRGB()||M.isBgRGB()?this._drawUncachedChars(M,k,S,G):(M.isInverse()?(I=M.isBgDefault()?E.INVERTED_DEFAULT_COLOR:M.getBgColor(),F=M.isFgDefault()?E.INVERTED_DEFAULT_COLOR:M.getFgColor()):(F=M.isBgDefault()?b.DEFAULT_COLOR:M.getBgColor(),I=M.isFgDefault()?b.DEFAULT_COLOR:M.getFgColor()),I+=this._optionsService.options.drawBoldTextInBrightColors&&M.isBold()&&I<8?8:0,this._currentGlyphIdentifier.chars=M.getChars()||b.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=M.getCode()||b.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=F,this._currentGlyphIdentifier.fg=I,this._currentGlyphIdentifier.bold=!!M.isBold(),this._currentGlyphIdentifier.dim=!!M.isDim(),this._currentGlyphIdentifier.italic=!!M.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,k*this._scaledCellWidth+this._scaledCharLeft,S*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(M,k,S))},g.prototype._drawUncachedChars=function(M,k,S,I){if(this._ctx.save(),this._ctx.font=this._getFont(!!M.isBold(),!!M.isItalic()),this._ctx.textBaseline=E.TEXT_BASELINE,M.isInverse())if(I)this._ctx.fillStyle=I.css;else if(M.isBgDefault())this._ctx.fillStyle=y.color.opaque(this._colors.background).css;else if(M.isBgRGB())this._ctx.fillStyle="rgb("+Z.AttributeData.toColorRGB(M.getBgColor()).join(",")+")";else{var F=M.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&M.isBold()&&F<8&&(F+=8),this._ctx.fillStyle=this._colors.ansi[F].css}else if(I)this._ctx.fillStyle=I.css;else if(M.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(M.isFgRGB())this._ctx.fillStyle="rgb("+Z.AttributeData.toColorRGB(M.getFgColor()).join(",")+")";else{var G=M.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&M.isBold()&&G<8&&(G+=8),this._ctx.fillStyle=this._colors.ansi[G].css}this._clipRow(S),M.isDim()&&(this._ctx.globalAlpha=E.DIM_OPACITY);var X=!1;!1!==this._optionsService.options.customGlyphs&&(X=(0,D.tryDrawCustomChar)(this._ctx,M.getChars(),k*this._scaledCellWidth,S*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),X||this._ctx.fillText(M.getChars(),k*this._scaledCellWidth+this._scaledCharLeft,S*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight),this._ctx.restore()},g.prototype._clipRow=function(M){this._ctx.beginPath(),this._ctx.rect(0,M*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},g.prototype._getFont=function(M,k){return(k?"italic":"")+" "+(M?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},g.prototype._getContrastColor=function(M){if(1!==this._optionsService.options.minimumContrastRatio){var k=this._colors.contrastCache.getColor(M.bg,M.fg);if(void 0!==k)return k||void 0;var S=M.getFgColor(),I=M.getFgColorMode(),F=M.getBgColor(),G=M.getBgColorMode(),X=!!M.isInverse(),W=!!M.isInverse();if(X){var Y=S;S=F,F=Y;var ae=I;I=G,G=ae}var K=this._resolveBackgroundRgba(G,F,X),fe=this._resolveForegroundRgba(I,S,X,W),ce=y.rgba.ensureContrastRatio(K,fe,this._optionsService.options.minimumContrastRatio);if(ce){var he={css:y.channels.toCss(ce>>24&255,ce>>16&255,ce>>8&255),rgba:ce};return this._colors.contrastCache.setColor(M.bg,M.fg,he),he}this._colors.contrastCache.setColor(M.bg,M.fg,null)}},g.prototype._resolveBackgroundRgba=function(M,k,S){switch(M){case 16777216:case 33554432:return this._colors.ansi[k].rgba;case 50331648:return k<<8;default:return S?this._colors.foreground.rgba:this._colors.background.rgba}},g.prototype._resolveForegroundRgba=function(M,k,S,I){switch(M){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&I&&k<8&&(k+=8),this._colors.ansi[k].rgba;case 50331648:return k<<8;default:return S?this._colors.background.rgba:this._colors.foreground.rgba}},g}();w.BaseRenderLayer=v},2512:function(L,w,R){var b,E=this&&this.__extends||(b=function(S,I){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,G){F.__proto__=G}||function(F,G){for(var X in G)Object.prototype.hasOwnProperty.call(G,X)&&(F[X]=G[X])})(S,I)},function(k,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function I(){this.constructor=k}b(k,S),k.prototype=null===S?Object.create(S):(I.prototype=S.prototype,new I)}),x=this&&this.__decorate||function(k,S,I,F){var G,X=arguments.length,W=X<3?S:null===F?F=Object.getOwnPropertyDescriptor(S,I):F;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)W=Reflect.decorate(k,S,I,F);else for(var Y=k.length-1;Y>=0;Y--)(G=k[Y])&&(W=(X<3?G(W):X>3?G(S,I,W):G(S,I))||W);return X>3&&W&&Object.defineProperty(S,I,W),W},Z=this&&this.__param||function(k,S){return function(I,F){S(I,F,k)}};Object.defineProperty(w,"__esModule",{value:!0}),w.CursorRenderLayer=void 0;var O=R(1546),y=R(511),T=R(2585),D=R(4725),v=600,g=function(k){function S(I,F,G,X,W,Y,ae,K,fe){var ce=k.call(this,I,"cursor",F,!0,G,X,Y,ae)||this;return ce._onRequestRedraw=W,ce._coreService=K,ce._coreBrowserService=fe,ce._cell=new y.CellData,ce._state={x:0,y:0,isFocused:!1,style:"",width:0},ce._cursorRenderers={bar:ce._renderBarCursor.bind(ce),block:ce._renderBlockCursor.bind(ce),underline:ce._renderUnderlineCursor.bind(ce)},ce}return E(S,k),S.prototype.dispose=function(){this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0),k.prototype.dispose.call(this)},S.prototype.resize=function(I){k.prototype.resize.call(this,I),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},S.prototype.reset=function(){var I;this._clearCursor(),null===(I=this._cursorBlinkStateManager)||void 0===I||I.restartBlinkAnimation(),this.onOptionsChanged()},S.prototype.onBlur=function(){var I;null===(I=this._cursorBlinkStateManager)||void 0===I||I.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},S.prototype.onFocus=function(){var I;null===(I=this._cursorBlinkStateManager)||void 0===I||I.resume(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},S.prototype.onOptionsChanged=function(){var I,F=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new M(this._coreBrowserService.isFocused,function(){F._render(!0)})):(null===(I=this._cursorBlinkStateManager)||void 0===I||I.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},S.prototype.onCursorMove=function(){var I;null===(I=this._cursorBlinkStateManager)||void 0===I||I.restartBlinkAnimation()},S.prototype.onGridChanged=function(I,F){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},S.prototype._render=function(I){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var F=this._bufferService.buffer.ybase+this._bufferService.buffer.y,G=F-this._bufferService.buffer.ydisp;if(G<0||G>=this._bufferService.rows)this._clearCursor();else{var X=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(F).loadCell(X,this._cell),void 0!==this._cell.content){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var W=this._optionsService.options.cursorStyle;return W&&"block"!==W?this._cursorRenderers[W](X,G,this._cell):this._renderBlurCursor(X,G,this._cell),this._ctx.restore(),this._state.x=X,this._state.y=G,this._state.isFocused=!1,this._state.style=W,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===X&&this._state.y===G&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](X,G,this._cell),this._ctx.restore(),this._state.x=X,this._state.y=G,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},S.prototype._clearCursor=function(){this._state&&(window.devicePixelRatio<1?this._clearAll():this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},S.prototype._renderBarCursor=function(I,F,G){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(I,F,this._optionsService.options.cursorWidth),this._ctx.restore()},S.prototype._renderBlockCursor=function(I,F,G){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(I,F,G.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(G,I,F),this._ctx.restore()},S.prototype._renderUnderlineCursor=function(I,F,G){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(I,F),this._ctx.restore()},S.prototype._renderBlurCursor=function(I,F,G){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(I,F,G.getWidth(),1),this._ctx.restore()},x([Z(5,T.IBufferService),Z(6,T.IOptionsService),Z(7,T.ICoreService),Z(8,D.ICoreBrowserService)],S)}(O.BaseRenderLayer);w.CursorRenderLayer=g;var M=function(){function k(S,I){this._renderCallback=I,this.isCursorVisible=!0,S&&this._restartInterval()}return Object.defineProperty(k.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),k.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},k.prototype.restartBlinkAnimation=function(){var S=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){S._renderCallback(),S._animationFrame=void 0})))},k.prototype._restartInterval=function(S){var I=this;void 0===S&&(S=v),this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout=window.setTimeout(function(){if(I._animationTimeRestarted){var F=v-(Date.now()-I._animationTimeRestarted);if(I._animationTimeRestarted=void 0,F>0)return void I._restartInterval(F)}I.isCursorVisible=!1,I._animationFrame=window.requestAnimationFrame(function(){I._renderCallback(),I._animationFrame=void 0}),I._blinkInterval=window.setInterval(function(){if(I._animationTimeRestarted){var G=v-(Date.now()-I._animationTimeRestarted);return I._animationTimeRestarted=void 0,void I._restartInterval(G)}I.isCursorVisible=!I.isCursorVisible,I._animationFrame=window.requestAnimationFrame(function(){I._renderCallback(),I._animationFrame=void 0})},v)},S)},k.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},k.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},k}()},8978:function(L,w,R){var b,E,x,Z,O,y,T,D,v,g,M,k,S,I,F,G,X,W,Y,ae,K,fe,ce,he,de,oe,Ce,ge,qe,De,Qe,et,bt,_e,xe,He,st,tt,Zt,Tt,mt,Yt,un,Ut,Mn,On,Fn,Zn,Vn,zn,Wn,nr,ar,Sr,Qn,rn,_n,kt,Ye,Me,ne,be,Fe,Ge,vt,At,Vt,Kt,on,hn,yn,Cn,Nt,Lt,Ct,Ot,ht,lt,_t,we,je,Re,Xe,pt,Ft,Xt,Tn,Dn,ai,Qr,xi,oi,Hi,ga,da,Vi,pa,Aa,Ha,Kr,Ei,Zi,Ht,Gt,ft,Et,jt,Qt,bn,Pn,rr,dr,ni,Rr,Gn,ji,Mr,na,fa,pi,Ka,_a,ha,Wr,bs,Vo,Oo,Mi;Object.defineProperty(w,"__esModule",{value:!0}),w.tryDrawCustomChar=w.boxDrawingDefinitions=w.blockElementDefinitions=void 0;var ka=R(1752);w.blockElementDefinitions={"\u2580":[{x:0,y:0,w:8,h:4}],"\u2581":[{x:0,y:7,w:8,h:1}],"\u2582":[{x:0,y:6,w:8,h:2}],"\u2583":[{x:0,y:5,w:8,h:3}],"\u2584":[{x:0,y:4,w:8,h:4}],"\u2585":[{x:0,y:3,w:8,h:5}],"\u2586":[{x:0,y:2,w:8,h:6}],"\u2587":[{x:0,y:1,w:8,h:7}],"\u2588":[{x:0,y:0,w:8,h:8}],"\u2589":[{x:0,y:0,w:7,h:8}],"\u258a":[{x:0,y:0,w:6,h:8}],"\u258b":[{x:0,y:0,w:5,h:8}],"\u258c":[{x:0,y:0,w:4,h:8}],"\u258d":[{x:0,y:0,w:3,h:8}],"\u258e":[{x:0,y:0,w:2,h:8}],"\u258f":[{x:0,y:0,w:1,h:8}],"\u2590":[{x:4,y:0,w:4,h:8}],"\u2594":[{x:0,y:0,w:9,h:1}],"\u2595":[{x:7,y:0,w:1,h:8}],"\u2596":[{x:0,y:4,w:4,h:4}],"\u2597":[{x:4,y:4,w:4,h:4}],"\u2598":[{x:0,y:0,w:4,h:4}],"\u2599":[{x:0,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"\u259a":[{x:0,y:0,w:4,h:4},{x:4,y:4,w:4,h:4}],"\u259b":[{x:0,y:0,w:4,h:8},{x:0,y:0,w:4,h:8}],"\u259c":[{x:0,y:0,w:8,h:4},{x:4,y:0,w:4,h:8}],"\u259d":[{x:4,y:0,w:4,h:4}],"\u259e":[{x:4,y:0,w:4,h:4},{x:0,y:4,w:4,h:4}],"\u259f":[{x:4,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"\ud83e\udf70":[{x:1,y:0,w:1,h:8}],"\ud83e\udf71":[{x:2,y:0,w:1,h:8}],"\ud83e\udf72":[{x:3,y:0,w:1,h:8}],"\ud83e\udf73":[{x:4,y:0,w:1,h:8}],"\ud83e\udf74":[{x:5,y:0,w:1,h:8}],"\ud83e\udf75":[{x:6,y:0,w:1,h:8}],"\ud83e\udf76":[{x:0,y:1,w:8,h:1}],"\ud83e\udf77":[{x:0,y:2,w:8,h:1}],"\ud83e\udf78":[{x:0,y:3,w:8,h:1}],"\ud83e\udf79":[{x:0,y:4,w:8,h:1}],"\ud83e\udf7a":[{x:0,y:5,w:8,h:1}],"\ud83e\udf7b":[{x:0,y:6,w:8,h:1}],"\ud83e\udf7c":[{x:0,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"\ud83e\udf7d":[{x:0,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"\ud83e\udf7e":[{x:7,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"\ud83e\udf7f":[{x:7,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"\ud83e\udf80":[{x:0,y:0,w:8,h:1},{x:0,y:7,w:8,h:1}],"\ud83e\udf81":[{x:0,y:0,w:8,h:1},{x:0,y:2,w:8,h:1},{x:0,y:4,w:8,h:1},{x:0,y:7,w:8,h:1}],"\ud83e\udf82":[{x:0,y:0,w:8,h:2}],"\ud83e\udf83":[{x:0,y:0,w:8,h:3}],"\ud83e\udf84":[{x:0,y:0,w:8,h:5}],"\ud83e\udf85":[{x:0,y:0,w:8,h:6}],"\ud83e\udf86":[{x:0,y:0,w:8,h:7}],"\ud83e\udf87":[{x:6,y:0,w:2,h:8}],"\ud83e\udf88":[{x:5,y:0,w:3,h:8}],"\ud83e\udf89":[{x:3,y:0,w:5,h:8}],"\ud83e\udf8a":[{x:2,y:0,w:6,h:8}],"\ud83e\udf8b":[{x:1,y:0,w:7,h:8}],"\ud83e\udf95":[{x:0,y:0,w:2,h:2},{x:4,y:0,w:2,h:2},{x:2,y:2,w:2,h:2},{x:6,y:2,w:2,h:2},{x:0,y:4,w:2,h:2},{x:4,y:4,w:2,h:2},{x:2,y:6,w:2,h:2},{x:6,y:6,w:2,h:2}],"\ud83e\udf96":[{x:2,y:0,w:2,h:2},{x:6,y:0,w:2,h:2},{x:0,y:2,w:2,h:2},{x:4,y:2,w:2,h:2},{x:2,y:4,w:2,h:2},{x:6,y:4,w:2,h:2},{x:0,y:6,w:2,h:2},{x:4,y:6,w:2,h:2}],"\ud83e\udf97":[{x:0,y:2,w:8,h:2},{x:0,y:6,w:8,h:2}]};var Gr={"\u2591":[[1,0,0,0],[0,0,0,0],[0,0,1,0],[0,0,0,0]],"\u2592":[[1,0],[0,0],[0,1],[0,0]],"\u2593":[[0,1],[1,1],[1,0],[1,1]]};w.boxDrawingDefinitions={"\u2500":(b={},b[1]="M0,.5 L1,.5",b),"\u2501":(E={},E[3]="M0,.5 L1,.5",E),"\u2502":(x={},x[1]="M.5,0 L.5,1",x),"\u2503":(Z={},Z[3]="M.5,0 L.5,1",Z),"\u250c":(O={},O[1]="M0.5,1 L.5,.5 L1,.5",O),"\u250f":(y={},y[3]="M0.5,1 L.5,.5 L1,.5",y),"\u2510":(T={},T[1]="M0,.5 L.5,.5 L.5,1",T),"\u2513":(D={},D[3]="M0,.5 L.5,.5 L.5,1",D),"\u2514":(v={},v[1]="M.5,0 L.5,.5 L1,.5",v),"\u2517":(g={},g[3]="M.5,0 L.5,.5 L1,.5",g),"\u2518":(M={},M[1]="M.5,0 L.5,.5 L0,.5",M),"\u251b":(k={},k[3]="M.5,0 L.5,.5 L0,.5",k),"\u251c":(S={},S[1]="M.5,0 L.5,1 M.5,.5 L1,.5",S),"\u2523":(I={},I[3]="M.5,0 L.5,1 M.5,.5 L1,.5",I),"\u2524":(F={},F[1]="M.5,0 L.5,1 M.5,.5 L0,.5",F),"\u252b":(G={},G[3]="M.5,0 L.5,1 M.5,.5 L0,.5",G),"\u252c":(X={},X[1]="M0,.5 L1,.5 M.5,.5 L.5,1",X),"\u2533":(W={},W[3]="M0,.5 L1,.5 M.5,.5 L.5,1",W),"\u2534":(Y={},Y[1]="M0,.5 L1,.5 M.5,.5 L.5,0",Y),"\u253b":(ae={},ae[3]="M0,.5 L1,.5 M.5,.5 L.5,0",ae),"\u253c":(K={},K[1]="M0,.5 L1,.5 M.5,0 L.5,1",K),"\u254b":(fe={},fe[3]="M0,.5 L1,.5 M.5,0 L.5,1",fe),"\u2574":(ce={},ce[1]="M.5,.5 L0,.5",ce),"\u2578":(he={},he[3]="M.5,.5 L0,.5",he),"\u2575":(de={},de[1]="M.5,.5 L.5,0",de),"\u2579":(oe={},oe[3]="M.5,.5 L.5,0",oe),"\u2576":(Ce={},Ce[1]="M.5,.5 L1,.5",Ce),"\u257a":(ge={},ge[3]="M.5,.5 L1,.5",ge),"\u2577":(qe={},qe[1]="M.5,.5 L.5,1",qe),"\u257b":(De={},De[3]="M.5,.5 L.5,1",De),"\u2550":(Qe={},Qe[1]=function(pn,fn){return"M0,"+(.5-fn)+" L1,"+(.5-fn)+" M0,"+(.5+fn)+" L1,"+(.5+fn)},Qe),"\u2551":(et={},et[1]=function(pn,fn){return"M"+(.5-pn)+",0 L"+(.5-pn)+",1 M"+(.5+pn)+",0 L"+(.5+pn)+",1"},et),"\u2552":(bt={},bt[1]=function(pn,fn){return"M.5,1 L.5,"+(.5-fn)+" L1,"+(.5-fn)+" M.5,"+(.5+fn)+" L1,"+(.5+fn)},bt),"\u2553":(_e={},_e[1]=function(pn,fn){return"M"+(.5-pn)+",1 L"+(.5-pn)+",.5 L1,.5 M"+(.5+pn)+",.5 L"+(.5+pn)+",1"},_e),"\u2554":(xe={},xe[1]=function(pn,fn){return"M1,"+(.5-fn)+" L"+(.5-pn)+","+(.5-fn)+" L"+(.5-pn)+",1 M1,"+(.5+fn)+" L"+(.5+pn)+","+(.5+fn)+" L"+(.5+pn)+",1"},xe),"\u2555":(He={},He[1]=function(pn,fn){return"M0,"+(.5-fn)+" L.5,"+(.5-fn)+" L.5,1 M0,"+(.5+fn)+" L.5,"+(.5+fn)},He),"\u2556":(st={},st[1]=function(pn,fn){return"M"+(.5+pn)+",1 L"+(.5+pn)+",.5 L0,.5 M"+(.5-pn)+",.5 L"+(.5-pn)+",1"},st),"\u2557":(tt={},tt[1]=function(pn,fn){return"M0,"+(.5+fn)+" L"+(.5-pn)+","+(.5+fn)+" L"+(.5-pn)+",1 M0,"+(.5-fn)+" L"+(.5+pn)+","+(.5-fn)+" L"+(.5+pn)+",1"},tt),"\u2558":(Zt={},Zt[1]=function(pn,fn){return"M.5,0 L.5,"+(.5+fn)+" L1,"+(.5+fn)+" M.5,"+(.5-fn)+" L1,"+(.5-fn)},Zt),"\u2559":(Tt={},Tt[1]=function(pn,fn){return"M1,.5 L"+(.5-pn)+",.5 L"+(.5-pn)+",0 M"+(.5+pn)+",.5 L"+(.5+pn)+",0"},Tt),"\u255a":(mt={},mt[1]=function(pn,fn){return"M1,"+(.5-fn)+" L"+(.5+pn)+","+(.5-fn)+" L"+(.5+pn)+",0 M1,"+(.5+fn)+" L"+(.5-pn)+","+(.5+fn)+" L"+(.5-pn)+",0"},mt),"\u255b":(Yt={},Yt[1]=function(pn,fn){return"M0,"+(.5+fn)+" L.5,"+(.5+fn)+" L.5,0 M0,"+(.5-fn)+" L.5,"+(.5-fn)},Yt),"\u255c":(un={},un[1]=function(pn,fn){return"M0,.5 L"+(.5+pn)+",.5 L"+(.5+pn)+",0 M"+(.5-pn)+",.5 L"+(.5-pn)+",0"},un),"\u255d":(Ut={},Ut[1]=function(pn,fn){return"M0,"+(.5-fn)+" L"+(.5-pn)+","+(.5-fn)+" L"+(.5-pn)+",0 M0,"+(.5+fn)+" L"+(.5+pn)+","+(.5+fn)+" L"+(.5+pn)+",0"},Ut),"\u255e":(Mn={},Mn[1]=function(pn,fn){return"M.5,0 L.5,1 M.5,"+(.5-fn)+" L1,"+(.5-fn)+" M.5,"+(.5+fn)+" L1,"+(.5+fn)},Mn),"\u255f":(On={},On[1]=function(pn,fn){return"M"+(.5-pn)+",0 L"+(.5-pn)+",1 M"+(.5+pn)+",0 L"+(.5+pn)+",1 M"+(.5+pn)+",.5 L1,.5"},On),"\u2560":(Fn={},Fn[1]=function(pn,fn){return"M"+(.5-pn)+",0 L"+(.5-pn)+",1 M1,"+(.5+fn)+" L"+(.5+pn)+","+(.5+fn)+" L"+(.5+pn)+",1 M1,"+(.5-fn)+" L"+(.5+pn)+","+(.5-fn)+" L"+(.5+pn)+",0"},Fn),"\u2561":(Zn={},Zn[1]=function(pn,fn){return"M.5,0 L.5,1 M0,"+(.5-fn)+" L.5,"+(.5-fn)+" M0,"+(.5+fn)+" L.5,"+(.5+fn)},Zn),"\u2562":(Vn={},Vn[1]=function(pn,fn){return"M0,.5 L"+(.5-pn)+",.5 M"+(.5-pn)+",0 L"+(.5-pn)+",1 M"+(.5+pn)+",0 L"+(.5+pn)+",1"},Vn),"\u2563":(zn={},zn[1]=function(pn,fn){return"M"+(.5+pn)+",0 L"+(.5+pn)+",1 M0,"+(.5+fn)+" L"+(.5-pn)+","+(.5+fn)+" L"+(.5-pn)+",1 M0,"+(.5-fn)+" L"+(.5-pn)+","+(.5-fn)+" L"+(.5-pn)+",0"},zn),"\u2564":(Wn={},Wn[1]=function(pn,fn){return"M0,"+(.5-fn)+" L1,"+(.5-fn)+" M0,"+(.5+fn)+" L1,"+(.5+fn)+" M.5,"+(.5+fn)+" L.5,1"},Wn),"\u2565":(nr={},nr[1]=function(pn,fn){return"M0,.5 L1,.5 M"+(.5-pn)+",.5 L"+(.5-pn)+",1 M"+(.5+pn)+",.5 L"+(.5+pn)+",1"},nr),"\u2566":(ar={},ar[1]=function(pn,fn){return"M0,"+(.5-fn)+" L1,"+(.5-fn)+" M0,"+(.5+fn)+" L"+(.5-pn)+","+(.5+fn)+" L"+(.5-pn)+",1 M1,"+(.5+fn)+" L"+(.5+pn)+","+(.5+fn)+" L"+(.5+pn)+",1"},ar),"\u2567":(Sr={},Sr[1]=function(pn,fn){return"M.5,0 L.5,"+(.5-fn)+" M0,"+(.5-fn)+" L1,"+(.5-fn)+" M0,"+(.5+fn)+" L1,"+(.5+fn)},Sr),"\u2568":(Qn={},Qn[1]=function(pn,fn){return"M0,.5 L1,.5 M"+(.5-pn)+",.5 L"+(.5-pn)+",0 M"+(.5+pn)+",.5 L"+(.5+pn)+",0"},Qn),"\u2569":(rn={},rn[1]=function(pn,fn){return"M0,"+(.5+fn)+" L1,"+(.5+fn)+" M0,"+(.5-fn)+" L"+(.5-pn)+","+(.5-fn)+" L"+(.5-pn)+",0 M1,"+(.5-fn)+" L"+(.5+pn)+","+(.5-fn)+" L"+(.5+pn)+",0"},rn),"\u256a":(_n={},_n[1]=function(pn,fn){return"M.5,0 L.5,1 M0,"+(.5-fn)+" L1,"+(.5-fn)+" M0,"+(.5+fn)+" L1,"+(.5+fn)},_n),"\u256b":(kt={},kt[1]=function(pn,fn){return"M0,.5 L1,.5 M"+(.5-pn)+",0 L"+(.5-pn)+",1 M"+(.5+pn)+",0 L"+(.5+pn)+",1"},kt),"\u256c":(Ye={},Ye[1]=function(pn,fn){return"M0,"+(.5+fn)+" L"+(.5-pn)+","+(.5+fn)+" L"+(.5-pn)+",1 M1,"+(.5+fn)+" L"+(.5+pn)+","+(.5+fn)+" L"+(.5+pn)+",1 M0,"+(.5-fn)+" L"+(.5-pn)+","+(.5-fn)+" L"+(.5-pn)+",0 M1,"+(.5-fn)+" L"+(.5+pn)+","+(.5-fn)+" L"+(.5+pn)+",0"},Ye),"\u2571":(Me={},Me[1]="M1,0 L0,1",Me),"\u2572":(ne={},ne[1]="M0,0 L1,1",ne),"\u2573":(be={},be[1]="M1,0 L0,1 M0,0 L1,1",be),"\u257c":(Fe={},Fe[1]="M.5,.5 L0,.5",Fe[3]="M.5,.5 L1,.5",Fe),"\u257d":(Ge={},Ge[1]="M.5,.5 L.5,0",Ge[3]="M.5,.5 L.5,1",Ge),"\u257e":(vt={},vt[1]="M.5,.5 L1,.5",vt[3]="M.5,.5 L0,.5",vt),"\u257f":(At={},At[1]="M.5,.5 L.5,1",At[3]="M.5,.5 L.5,0",At),"\u250d":(Vt={},Vt[1]="M.5,.5 L.5,1",Vt[3]="M.5,.5 L1,.5",Vt),"\u250e":(Kt={},Kt[1]="M.5,.5 L1,.5",Kt[3]="M.5,.5 L.5,1",Kt),"\u2511":(on={},on[1]="M.5,.5 L.5,1",on[3]="M.5,.5 L0,.5",on),"\u2512":(hn={},hn[1]="M.5,.5 L0,.5",hn[3]="M.5,.5 L.5,1",hn),"\u2515":(yn={},yn[1]="M.5,.5 L.5,0",yn[3]="M.5,.5 L1,.5",yn),"\u2516":(Cn={},Cn[1]="M.5,.5 L1,.5",Cn[3]="M.5,.5 L.5,0",Cn),"\u2519":(Nt={},Nt[1]="M.5,.5 L.5,0",Nt[3]="M.5,.5 L0,.5",Nt),"\u251a":(Lt={},Lt[1]="M.5,.5 L0,.5",Lt[3]="M.5,.5 L.5,0",Lt),"\u251d":(Ct={},Ct[1]="M.5,0 L.5,1",Ct[3]="M.5,.5 L1,.5",Ct),"\u251e":(Ot={},Ot[1]="M0.5,1 L.5,.5 L1,.5",Ot[3]="M.5,.5 L.5,0",Ot),"\u251f":(ht={},ht[1]="M.5,0 L.5,.5 L1,.5",ht[3]="M.5,.5 L.5,1",ht),"\u2520":(lt={},lt[1]="M.5,.5 L1,.5",lt[3]="M.5,0 L.5,1",lt),"\u2521":(_t={},_t[1]="M.5,.5 L.5,1",_t[3]="M.5,0 L.5,.5 L1,.5",_t),"\u2522":(we={},we[1]="M.5,.5 L.5,0",we[3]="M0.5,1 L.5,.5 L1,.5",we),"\u2525":(je={},je[1]="M.5,0 L.5,1",je[3]="M.5,.5 L0,.5",je),"\u2526":(Re={},Re[1]="M0,.5 L.5,.5 L.5,1",Re[3]="M.5,.5 L.5,0",Re),"\u2527":(Xe={},Xe[1]="M.5,0 L.5,.5 L0,.5",Xe[3]="M.5,.5 L.5,1",Xe),"\u2528":(pt={},pt[1]="M.5,.5 L0,.5",pt[3]="M.5,0 L.5,1",pt),"\u2529":(Ft={},Ft[1]="M.5,.5 L.5,1",Ft[3]="M.5,0 L.5,.5 L0,.5",Ft),"\u252a":(Xt={},Xt[1]="M.5,.5 L.5,0",Xt[3]="M0,.5 L.5,.5 L.5,1",Xt),"\u252d":(Tn={},Tn[1]="M0.5,1 L.5,.5 L1,.5",Tn[3]="M.5,.5 L0,.5",Tn),"\u252e":(Dn={},Dn[1]="M0,.5 L.5,.5 L.5,1",Dn[3]="M.5,.5 L1,.5",Dn),"\u252f":(ai={},ai[1]="M.5,.5 L.5,1",ai[3]="M0,.5 L1,.5",ai),"\u2530":(Qr={},Qr[1]="M0,.5 L1,.5",Qr[3]="M.5,.5 L.5,1",Qr),"\u2531":(xi={},xi[1]="M.5,.5 L1,.5",xi[3]="M0,.5 L.5,.5 L.5,1",xi),"\u2532":(oi={},oi[1]="M.5,.5 L0,.5",oi[3]="M0.5,1 L.5,.5 L1,.5",oi),"\u2535":(Hi={},Hi[1]="M.5,0 L.5,.5 L1,.5",Hi[3]="M.5,.5 L0,.5",Hi),"\u2536":(ga={},ga[1]="M.5,0 L.5,.5 L0,.5",ga[3]="M.5,.5 L1,.5",ga),"\u2537":(da={},da[1]="M.5,.5 L.5,0",da[3]="M0,.5 L1,.5",da),"\u2538":(Vi={},Vi[1]="M0,.5 L1,.5",Vi[3]="M.5,.5 L.5,0",Vi),"\u2539":(pa={},pa[1]="M.5,.5 L1,.5",pa[3]="M.5,0 L.5,.5 L0,.5",pa),"\u253a":(Aa={},Aa[1]="M.5,.5 L0,.5",Aa[3]="M.5,0 L.5,.5 L1,.5",Aa),"\u253d":(Ha={},Ha[1]="M.5,0 L.5,1 M.5,.5 L1,.5",Ha[3]="M.5,.5 L0,.5",Ha),"\u253e":(Kr={},Kr[1]="M.5,0 L.5,1 M.5,.5 L0,.5",Kr[3]="M.5,.5 L1,.5",Kr),"\u253f":(Ei={},Ei[1]="M.5,0 L.5,1",Ei[3]="M0,.5 L1,.5",Ei),"\u2540":(Zi={},Zi[1]="M0,.5 L1,.5 M.5,.5 L.5,1",Zi[3]="M.5,.5 L.5,0",Zi),"\u2541":(Ht={},Ht[1]="M.5,.5 L.5,0 M0,.5 L1,.5",Ht[3]="M.5,.5 L.5,1",Ht),"\u2542":(Gt={},Gt[1]="M0,.5 L1,.5",Gt[3]="M.5,0 L.5,1",Gt),"\u2543":(ft={},ft[1]="M0.5,1 L.5,.5 L1,.5",ft[3]="M.5,0 L.5,.5 L0,.5",ft),"\u2544":(Et={},Et[1]="M0,.5 L.5,.5 L.5,1",Et[3]="M.5,0 L.5,.5 L1,.5",Et),"\u2545":(jt={},jt[1]="M.5,0 L.5,.5 L1,.5",jt[3]="M0,.5 L.5,.5 L.5,1",jt),"\u2546":(Qt={},Qt[1]="M.5,0 L.5,.5 L0,.5",Qt[3]="M0.5,1 L.5,.5 L1,.5",Qt),"\u2547":(bn={},bn[1]="M.5,.5 L.5,1",bn[3]="M.5,.5 L.5,0 M0,.5 L1,.5",bn),"\u2548":(Pn={},Pn[1]="M.5,.5 L.5,0",Pn[3]="M0,.5 L1,.5 M.5,.5 L.5,1",Pn),"\u2549":(rr={},rr[1]="M.5,.5 L1,.5",rr[3]="M.5,0 L.5,1 M.5,.5 L0,.5",rr),"\u254a":(dr={},dr[1]="M.5,.5 L0,.5",dr[3]="M.5,0 L.5,1 M.5,.5 L1,.5",dr),"\u254c":(ni={},ni[1]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",ni),"\u254d":(Rr={},Rr[3]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",Rr),"\u2504":(Gn={},Gn[1]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",Gn),"\u2505":(ji={},ji[3]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",ji),"\u2508":(Mr={},Mr[1]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",Mr),"\u2509":(na={},na[3]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",na),"\u254e":(fa={},fa[1]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",fa),"\u254f":(pi={},pi[3]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",pi),"\u2506":(Ka={},Ka[1]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",Ka),"\u2507":(_a={},_a[3]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",_a),"\u250a":(ha={},ha[1]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",ha),"\u250b":(Wr={},Wr[3]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",Wr),"\u256d":(bs={},bs[1]="C.5,1,.5,.5,1,.5",bs),"\u256e":(Vo={},Vo[1]="C.5,1,.5,.5,0,.5",Vo),"\u256f":(Oo={},Oo[1]="C.5,0,.5,.5,0,.5",Oo),"\u2570":(Mi={},Mi[1]="C.5,0,.5,.5,1,.5",Mi)},w.tryDrawCustomChar=function(pn,fn,vr,ya,ra,Ii){var Va=w.blockElementDefinitions[fn];if(Va)return function(hi,aa,rs,is,yo,as){for(var wa=0;wa7&&parseInt(Ni.substr(7,2),16)||1;else{if(!Ni.startsWith("rgba"))throw new Error('Unexpected fillStyle color format "'+Ni+'" when drawing pattern glyph');$a=(wa=Ni.substring(5,Ni.length-1).split(",").map(function(ss){return parseFloat(ss)}))[0],Fi=wa[1],os=wa[2],or=wa[3]}for(var mi=0;mi=0;X--)(I=g[X])&&(G=(F<3?I(G):F>3?I(M,k,G):I(M,k))||G);return F>3&&G&&Object.defineProperty(M,k,G),G},Z=this&&this.__param||function(g,M){return function(k,S){M(k,S,g)}};Object.defineProperty(w,"__esModule",{value:!0}),w.LinkRenderLayer=void 0;var O=R(1546),y=R(8803),T=R(2040),D=R(2585),v=function(g){function M(k,S,I,F,G,X,W,Y){var ae=g.call(this,k,"link",S,!0,I,F,W,Y)||this;return G.onShowLinkUnderline(function(K){return ae._onShowLinkUnderline(K)}),G.onHideLinkUnderline(function(K){return ae._onHideLinkUnderline(K)}),X.onShowLinkUnderline(function(K){return ae._onShowLinkUnderline(K)}),X.onHideLinkUnderline(function(K){return ae._onHideLinkUnderline(K)}),ae}return E(M,g),M.prototype.resize=function(k){g.prototype.resize.call(this,k),this._state=void 0},M.prototype.reset=function(){this._clearCurrentLink()},M.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var k=this._state.y2-this._state.y1-1;k>0&&this._clearCells(0,this._state.y1+1,this._state.cols,k),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},M.prototype._onShowLinkUnderline=function(k){if(this._ctx.fillStyle=k.fg===y.INVERTED_DEFAULT_COLOR?this._colors.background.css:k.fg&&(0,T.is256Color)(k.fg)?this._colors.ansi[k.fg].css:this._colors.foreground.css,k.y1===k.y2)this._fillBottomLineAtCells(k.x1,k.y1,k.x2-k.x1);else{this._fillBottomLineAtCells(k.x1,k.y1,k.cols-k.x1);for(var S=k.y1+1;S=0;ce--)(ae=G[ce])&&(fe=(K<3?ae(fe):K>3?ae(X,W,fe):ae(X,W))||fe);return K>3&&fe&&Object.defineProperty(X,W,fe),fe},Z=this&&this.__param||function(G,X){return function(W,Y){X(W,Y,G)}};Object.defineProperty(w,"__esModule",{value:!0}),w.Renderer=void 0;var O=R(9596),y=R(4149),T=R(2512),D=R(5098),v=R(844),g=R(4725),M=R(2585),k=R(1420),S=R(8460),I=1,F=function(G){function X(W,Y,ae,K,fe,ce,he,de){var oe=G.call(this)||this;return oe._colors=W,oe._screenElement=Y,oe._bufferService=ce,oe._charSizeService=he,oe._optionsService=de,oe._id=I++,oe._onRequestRedraw=new S.EventEmitter,oe._renderLayers=[fe.createInstance(O.TextRenderLayer,oe._screenElement,0,oe._colors,oe._optionsService.options.allowTransparency,oe._id),fe.createInstance(y.SelectionRenderLayer,oe._screenElement,1,oe._colors,oe._id),fe.createInstance(D.LinkRenderLayer,oe._screenElement,2,oe._colors,oe._id,ae,K),fe.createInstance(T.CursorRenderLayer,oe._screenElement,3,oe._colors,oe._id,oe._onRequestRedraw)],oe.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},oe._devicePixelRatio=window.devicePixelRatio,oe._updateDimensions(),oe.onOptionsChanged(),oe}return E(X,G),Object.defineProperty(X.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),X.prototype.dispose=function(){for(var W=0,Y=this._renderLayers;W=0;F--)(k=D[F])&&(I=(S<3?k(I):S>3?k(v,g,I):k(v,g))||I);return S>3&&I&&Object.defineProperty(v,g,I),I},Z=this&&this.__param||function(D,v){return function(g,M){v(g,M,D)}};Object.defineProperty(w,"__esModule",{value:!0}),w.SelectionRenderLayer=void 0;var O=R(1546),y=R(2585),T=function(D){function v(g,M,k,S,I,F){var G=D.call(this,g,"selection",M,!0,k,S,I,F)||this;return G._clearState(),G}return E(v,D),v.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},v.prototype.resize=function(g){D.prototype.resize.call(this,g),this._clearState()},v.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},v.prototype.onSelectionChanged=function(g,M,k){if(this._didStateChange(g,M,k,this._bufferService.buffer.ydisp))if(this._clearAll(),g&&M){var S=g[1]-this._bufferService.buffer.ydisp,I=M[1]-this._bufferService.buffer.ydisp,F=Math.max(S,0),G=Math.min(I,this._bufferService.rows-1);if(F>=this._bufferService.rows||G<0)this._state.ydisp=this._bufferService.buffer.ydisp;else{if(this._ctx.fillStyle=this._colors.selectionTransparent.css,k){var X=g[0];this._fillCells(X,F,M[0]-X,G-F+1)}else{this._fillCells(X=S===F?g[0]:0,F,(F===I?M[0]:this._bufferService.cols)-X,1);var K=Math.max(G-F-1,0);this._fillCells(0,F+1,this._bufferService.cols,K),F!==G&&this._fillCells(0,G,I===G?M[0]:this._bufferService.cols,1)}this._state.start=[g[0],g[1]],this._state.end=[M[0],M[1]],this._state.columnSelectMode=k,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},v.prototype._didStateChange=function(g,M,k,S){return!this._areCoordinatesEqual(g,this._state.start)||!this._areCoordinatesEqual(M,this._state.end)||k!==this._state.columnSelectMode||S!==this._state.ydisp},v.prototype._areCoordinatesEqual=function(g,M){return!(!g||!M)&&g[0]===M[0]&&g[1]===M[1]},x([Z(4,y.IBufferService),Z(5,y.IOptionsService)],v)}(O.BaseRenderLayer);w.SelectionRenderLayer=T},9596:function(L,w,R){var b,E=this&&this.__extends||(b=function(F,G){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,W){X.__proto__=W}||function(X,W){for(var Y in W)Object.prototype.hasOwnProperty.call(W,Y)&&(X[Y]=W[Y])})(F,G)},function(I,F){if("function"!=typeof F&&null!==F)throw new TypeError("Class extends value "+String(F)+" is not a constructor or null");function G(){this.constructor=I}b(I,F),I.prototype=null===F?Object.create(F):(G.prototype=F.prototype,new G)}),x=this&&this.__decorate||function(I,F,G,X){var W,Y=arguments.length,ae=Y<3?F:null===X?X=Object.getOwnPropertyDescriptor(F,G):X;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ae=Reflect.decorate(I,F,G,X);else for(var K=I.length-1;K>=0;K--)(W=I[K])&&(ae=(Y<3?W(ae):Y>3?W(F,G,ae):W(F,G))||ae);return Y>3&&ae&&Object.defineProperty(F,G,ae),ae},Z=this&&this.__param||function(I,F){return function(G,X){F(G,X,I)}};Object.defineProperty(w,"__esModule",{value:!0}),w.TextRenderLayer=void 0;var O=R(3700),y=R(1546),T=R(3734),D=R(643),v=R(511),g=R(2585),M=R(4725),k=R(4269),S=function(I){function F(G,X,W,Y,ae,K,fe,ce){var he=I.call(this,G,"text",X,Y,W,ae,K,fe)||this;return he._characterJoinerService=ce,he._characterWidth=0,he._characterFont="",he._characterOverlapCache={},he._workCell=new v.CellData,he._state=new O.GridCache,he}return E(F,I),F.prototype.resize=function(G){I.prototype.resize.call(this,G);var X=this._getFont(!1,!1);this._characterWidth===G.scaledCharWidth&&this._characterFont===X||(this._characterWidth=G.scaledCharWidth,this._characterFont=X,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},F.prototype.reset=function(){this._state.clear(),this._clearAll()},F.prototype._forEachCell=function(G,X,W){for(var Y=G;Y<=X;Y++)for(var ae=Y+this._bufferService.buffer.ydisp,K=this._bufferService.buffer.lines.get(ae),fe=this._characterJoinerService.getJoinedCharacters(ae),ce=0;ce0&&ce===fe[0][0]){de=!0;var Ce=fe.shift();he=new k.JoinedCellData(this._workCell,K.translateToString(!0,Ce[0],Ce[1]),Ce[1]-Ce[0]),oe=Ce[1]-1}!de&&this._isOverlapping(he)&&oethis._characterWidth;return this._ctx.restore(),this._characterOverlapCache[X]=W,W},x([Z(5,g.IBufferService),Z(6,g.IOptionsService),Z(7,M.ICharacterJoinerService)],F)}(y.BaseRenderLayer);w.TextRenderLayer=S},9616:function(L,w){Object.defineProperty(w,"__esModule",{value:!0}),w.BaseCharAtlas=void 0;var R=function(){function b(){this._didWarmUp=!1}return b.prototype.dispose=function(){},b.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},b.prototype._doWarmUp=function(){},b.prototype.clear=function(){},b.prototype.beginFrame=function(){},b}();w.BaseCharAtlas=R},1420:function(L,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.removeTerminalFromCache=w.acquireCharAtlas=void 0;var b=R(2040),E=R(1906),x=[];w.acquireCharAtlas=function(Z,O,y,T,D){for(var v=(0,b.generateConfig)(T,D,Z,y),g=0;g=0){if((0,b.configEquals)(k.config,v))return k.atlas;1===k.ownedBy.length?(k.atlas.dispose(),x.splice(g,1)):k.ownedBy.splice(M,1);break}}for(g=0;g0){var Y=this._width*this._height;this._cacheMap=new y.LRUMap(Y),this._cacheMap.prealloc(Y)}this._cacheCtx.clearRect(0,0,g,M),this._tmpCtx.clearRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight)},W.prototype.draw=function(Y,ae,K,fe){if(32===ae.code)return!0;if(!this._canCache(ae))return!1;var ce=S(ae),he=this._cacheMap.get(ce);if(null!=he)return this._drawFromCache(Y,he,K,fe),!0;if(this._drawToCacheCount<100){var de;de=this._cacheMap.size>>24,K=W.rgba>>>16&255,fe=W.rgba>>>8&255,ce=0;ce=this.capacity)this._unlinkNode(Z=this._head),delete this._map[Z.key],Z.key=E,Z.value=x,this._map[E]=Z;else{var O=this._nodePool;O.length>0?((Z=O.pop()).key=E,Z.value=x):Z={prev:null,next:null,key:E,value:x},this._map[E]=Z,this.size++}this._appendNode(Z)},b}();w.LRUMap=R},1296:function(L,w,R){var b,E=this&&this.__extends||(b=function(ae,K){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,ce){fe.__proto__=ce}||function(fe,ce){for(var he in ce)Object.prototype.hasOwnProperty.call(ce,he)&&(fe[he]=ce[he])})(ae,K)},function(Y,ae){if("function"!=typeof ae&&null!==ae)throw new TypeError("Class extends value "+String(ae)+" is not a constructor or null");function K(){this.constructor=Y}b(Y,ae),Y.prototype=null===ae?Object.create(ae):(K.prototype=ae.prototype,new K)}),x=this&&this.__decorate||function(Y,ae,K,fe){var ce,he=arguments.length,de=he<3?ae:null===fe?fe=Object.getOwnPropertyDescriptor(ae,K):fe;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)de=Reflect.decorate(Y,ae,K,fe);else for(var oe=Y.length-1;oe>=0;oe--)(ce=Y[oe])&&(de=(he<3?ce(de):he>3?ce(ae,K,de):ce(ae,K))||de);return he>3&&de&&Object.defineProperty(ae,K,de),de},Z=this&&this.__param||function(Y,ae){return function(K,fe){ae(K,fe,Y)}};Object.defineProperty(w,"__esModule",{value:!0}),w.DomRenderer=void 0;var O=R(3787),y=R(8803),T=R(844),D=R(4725),v=R(2585),g=R(8460),M=R(4774),k=R(9631),S="xterm-dom-renderer-owner-",I="xterm-fg-",F="xterm-bg-",G="xterm-focus",X=1,W=function(Y){function ae(K,fe,ce,he,de,oe,Ce,ge,qe,De){var Qe=Y.call(this)||this;return Qe._colors=K,Qe._element=fe,Qe._screenElement=ce,Qe._viewportElement=he,Qe._linkifier=de,Qe._linkifier2=oe,Qe._charSizeService=ge,Qe._optionsService=qe,Qe._bufferService=De,Qe._terminalClass=X++,Qe._rowElements=[],Qe._rowContainer=document.createElement("div"),Qe._rowContainer.classList.add("xterm-rows"),Qe._rowContainer.style.lineHeight="normal",Qe._rowContainer.setAttribute("aria-hidden","true"),Qe._refreshRowElements(Qe._bufferService.cols,Qe._bufferService.rows),Qe._selectionContainer=document.createElement("div"),Qe._selectionContainer.classList.add("xterm-selection"),Qe._selectionContainer.setAttribute("aria-hidden","true"),Qe.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},Qe._updateDimensions(),Qe._injectCss(),Qe._rowFactory=Ce.createInstance(O.DomRendererRowFactory,document,Qe._colors),Qe._element.classList.add(S+Qe._terminalClass),Qe._screenElement.appendChild(Qe._rowContainer),Qe._screenElement.appendChild(Qe._selectionContainer),Qe._linkifier.onShowLinkUnderline(function(et){return Qe._onLinkHover(et)}),Qe._linkifier.onHideLinkUnderline(function(et){return Qe._onLinkLeave(et)}),Qe._linkifier2.onShowLinkUnderline(function(et){return Qe._onLinkHover(et)}),Qe._linkifier2.onHideLinkUnderline(function(et){return Qe._onLinkLeave(et)}),Qe}return E(ae,Y),Object.defineProperty(ae.prototype,"onRequestRedraw",{get:function(){return(new g.EventEmitter).event},enumerable:!1,configurable:!0}),ae.prototype.dispose=function(){this._element.classList.remove(S+this._terminalClass),(0,k.removeElementFromParent)(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),Y.prototype.dispose.call(this)},ae.prototype._updateDimensions=function(){this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;for(var K=0,fe=this._rowElements;Kfe;)this._rowContainer.removeChild(this._rowElements.pop())},ae.prototype.onResize=function(K,fe){this._refreshRowElements(K,fe),this._updateDimensions()},ae.prototype.onCharSizeChanged=function(){this._updateDimensions()},ae.prototype.onBlur=function(){this._rowContainer.classList.remove(G)},ae.prototype.onFocus=function(){this._rowContainer.classList.add(G)},ae.prototype.onSelectionChanged=function(K,fe,ce){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(K&&fe){var he=K[1]-this._bufferService.buffer.ydisp,de=fe[1]-this._bufferService.buffer.ydisp,oe=Math.max(he,0),Ce=Math.min(de,this._bufferService.rows-1);if(!(oe>=this._bufferService.rows||Ce<0)){var ge=document.createDocumentFragment();ce?ge.appendChild(this._createSelectionElement(oe,K[0],fe[0],Ce-oe+1)):(ge.appendChild(this._createSelectionElement(oe,he===oe?K[0]:0,oe===de?fe[0]:this._bufferService.cols)),ge.appendChild(this._createSelectionElement(oe+1,0,this._bufferService.cols,Ce-oe-1)),oe!==Ce&&ge.appendChild(this._createSelectionElement(Ce,0,de===Ce?fe[0]:this._bufferService.cols))),this._selectionContainer.appendChild(ge)}}},ae.prototype._createSelectionElement=function(K,fe,ce,he){void 0===he&&(he=1);var de=document.createElement("div");return de.style.height=he*this.dimensions.actualCellHeight+"px",de.style.top=K*this.dimensions.actualCellHeight+"px",de.style.left=fe*this.dimensions.actualCellWidth+"px",de.style.width=this.dimensions.actualCellWidth*(ce-fe)+"px",de},ae.prototype.onCursorMove=function(){},ae.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},ae.prototype.clear=function(){for(var K=0,fe=this._rowElements;K=de&&(K=0,ce++)}},x([Z(6,v.IInstantiationService),Z(7,D.ICharSizeService),Z(8,v.IOptionsService),Z(9,v.IBufferService)],ae)}(T.Disposable);w.DomRenderer=W},3787:function(L,w,R){var b=this&&this.__decorate||function(k,S,I,F){var G,X=arguments.length,W=X<3?S:null===F?F=Object.getOwnPropertyDescriptor(S,I):F;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)W=Reflect.decorate(k,S,I,F);else for(var Y=k.length-1;Y>=0;Y--)(G=k[Y])&&(W=(X<3?G(W):X>3?G(S,I,W):G(S,I))||W);return X>3&&W&&Object.defineProperty(S,I,W),W},E=this&&this.__param||function(k,S){return function(I,F){S(I,F,k)}};Object.defineProperty(w,"__esModule",{value:!0}),w.DomRendererRowFactory=w.CURSOR_STYLE_UNDERLINE_CLASS=w.CURSOR_STYLE_BAR_CLASS=w.CURSOR_STYLE_BLOCK_CLASS=w.CURSOR_BLINK_CLASS=w.CURSOR_CLASS=w.STRIKETHROUGH_CLASS=w.UNDERLINE_CLASS=w.ITALIC_CLASS=w.DIM_CLASS=w.BOLD_CLASS=void 0;var x=R(8803),Z=R(643),O=R(511),y=R(2585),T=R(4774),D=R(4725),v=R(4269);w.BOLD_CLASS="xterm-bold",w.DIM_CLASS="xterm-dim",w.ITALIC_CLASS="xterm-italic",w.UNDERLINE_CLASS="xterm-underline",w.STRIKETHROUGH_CLASS="xterm-strikethrough",w.CURSOR_CLASS="xterm-cursor",w.CURSOR_BLINK_CLASS="xterm-cursor-blink",w.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",w.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",w.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var g=function(){function k(S,I,F,G,X){this._document=S,this._colors=I,this._characterJoinerService=F,this._optionsService=G,this._coreService=X,this._workCell=new O.CellData}return k.prototype.setColors=function(S){this._colors=S},k.prototype.createRow=function(S,I,F,G,X,W,Y,ae){for(var K=this._document.createDocumentFragment(),fe=this._characterJoinerService.getJoinedCharacters(I),ce=0,he=Math.min(S.length,ae)-1;he>=0;he--)if(S.loadCell(he,this._workCell).getCode()!==Z.NULL_CELL_CODE||F&&he===X){ce=he+1;break}for(he=0;he0&&he===fe[0][0]){oe=!0;var qe=fe.shift();ge=new v.JoinedCellData(this._workCell,S.translateToString(!0,qe[0],qe[1]),qe[1]-qe[0]),Ce=qe[1]-1,de=ge.getWidth()}var De=this._document.createElement("span");if(de>1&&(De.style.width=Y*de+"px"),oe&&(De.style.display="inline",X>=he&&X<=Ce&&(X=he)),!this._coreService.isCursorHidden&&F&&he===X)switch(De.classList.add(w.CURSOR_CLASS),W&&De.classList.add(w.CURSOR_BLINK_CLASS),G){case"bar":De.classList.add(w.CURSOR_STYLE_BAR_CLASS);break;case"underline":De.classList.add(w.CURSOR_STYLE_UNDERLINE_CLASS);break;default:De.classList.add(w.CURSOR_STYLE_BLOCK_CLASS)}ge.isBold()&&De.classList.add(w.BOLD_CLASS),ge.isItalic()&&De.classList.add(w.ITALIC_CLASS),ge.isDim()&&De.classList.add(w.DIM_CLASS),ge.isUnderline()&&De.classList.add(w.UNDERLINE_CLASS),De.textContent=ge.isInvisible()?Z.WHITESPACE_CELL_CHAR:ge.getChars()||Z.WHITESPACE_CELL_CHAR,ge.isStrikethrough()&&De.classList.add(w.STRIKETHROUGH_CLASS);var Qe=ge.getFgColor(),et=ge.getFgColorMode(),bt=ge.getBgColor(),_e=ge.getBgColorMode(),xe=!!ge.isInverse();if(xe){var He=Qe;Qe=bt,bt=He;var st=et;et=_e,_e=st}switch(et){case 16777216:case 33554432:ge.isBold()&&Qe<8&&this._optionsService.options.drawBoldTextInBrightColors&&(Qe+=8),this._applyMinimumContrast(De,this._colors.background,this._colors.ansi[Qe])||De.classList.add("xterm-fg-"+Qe);break;case 50331648:var tt=T.rgba.toColor(Qe>>16&255,Qe>>8&255,255&Qe);this._applyMinimumContrast(De,this._colors.background,tt)||this._addStyle(De,"color:#"+M(Qe.toString(16),"0",6));break;default:this._applyMinimumContrast(De,this._colors.background,this._colors.foreground)||xe&&De.classList.add("xterm-fg-"+x.INVERTED_DEFAULT_COLOR)}switch(_e){case 16777216:case 33554432:De.classList.add("xterm-bg-"+bt);break;case 50331648:this._addStyle(De,"background-color:#"+M(bt.toString(16),"0",6));break;default:xe&&De.classList.add("xterm-bg-"+x.INVERTED_DEFAULT_COLOR)}K.appendChild(De),he=Ce}}return K},k.prototype._applyMinimumContrast=function(S,I,F){if(1===this._optionsService.options.minimumContrastRatio)return!1;var G=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return void 0===G&&(G=T.color.ensureContrastRatio(I,F,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,null!=G?G:null)),!!G&&(this._addStyle(S,"color:"+G.css),!0)},k.prototype._addStyle=function(S,I){S.setAttribute("style",""+(S.getAttribute("style")||"")+I+";")},b([E(2,D.ICharacterJoinerService),E(3,y.IOptionsService),E(4,y.ICoreService)],k)}();function M(k,S,I){for(;k.lengththis._bufferService.cols?[x%this._bufferService.cols,this.selectionStart[1]+Math.floor(x/this._bufferService.cols)]:[x,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd}},enumerable:!1,configurable:!0}),b.prototype.areSelectionValuesReversed=function(){var E=this.selectionStart,x=this.selectionEnd;return!(!E||!x)&&(E[1]>x[1]||E[1]===x[1]&&E[0]>x[0])},b.prototype.onTrim=function(E){return this.selectionStart&&(this.selectionStart[1]-=E),this.selectionEnd&&(this.selectionEnd[1]-=E),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},b}();w.SelectionModel=R},428:function(L,w,R){var b=this&&this.__decorate||function(T,D,v,g){var M,k=arguments.length,S=k<3?D:null===g?g=Object.getOwnPropertyDescriptor(D,v):g;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)S=Reflect.decorate(T,D,v,g);else for(var I=T.length-1;I>=0;I--)(M=T[I])&&(S=(k<3?M(S):k>3?M(D,v,S):M(D,v))||S);return k>3&&S&&Object.defineProperty(D,v,S),S},E=this&&this.__param||function(T,D){return function(v,g){D(v,g,T)}};Object.defineProperty(w,"__esModule",{value:!0}),w.CharSizeService=void 0;var x=R(2585),Z=R(8460),O=function(){function T(D,v,g){this._optionsService=g,this.width=0,this.height=0,this._onCharSizeChange=new Z.EventEmitter,this._measureStrategy=new y(D,v,this._optionsService)}return Object.defineProperty(T.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),T.prototype.measure=function(){var D=this._measureStrategy.measure();D.width===this.width&&D.height===this.height||(this.width=D.width,this.height=D.height,this._onCharSizeChange.fire())},b([E(2,x.IOptionsService)],T)}();w.CharSizeService=O;var y=function(){function T(D,v,g){this._document=D,this._parentElement=v,this._optionsService=g,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return T.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var D=this._measureElement.getBoundingClientRect();return 0!==D.width&&0!==D.height&&(this._result.width=D.width,this._result.height=Math.ceil(D.height)),this._result},T}()},4269:function(L,w,R){var b,E=this&&this.__extends||(b=function(k,S){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,F){I.__proto__=F}||function(I,F){for(var G in F)Object.prototype.hasOwnProperty.call(F,G)&&(I[G]=F[G])})(k,S)},function(M,k){if("function"!=typeof k&&null!==k)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");function S(){this.constructor=M}b(M,k),M.prototype=null===k?Object.create(k):(S.prototype=k.prototype,new S)}),x=this&&this.__decorate||function(M,k,S,I){var F,G=arguments.length,X=G<3?k:null===I?I=Object.getOwnPropertyDescriptor(k,S):I;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)X=Reflect.decorate(M,k,S,I);else for(var W=M.length-1;W>=0;W--)(F=M[W])&&(X=(G<3?F(X):G>3?F(k,S,X):F(k,S))||X);return G>3&&X&&Object.defineProperty(k,S,X),X},Z=this&&this.__param||function(M,k){return function(S,I){k(S,I,M)}};Object.defineProperty(w,"__esModule",{value:!0}),w.CharacterJoinerService=w.JoinedCellData=void 0;var O=R(3734),y=R(643),T=R(511),D=R(2585),v=function(M){function k(S,I,F){var G=M.call(this)||this;return G.content=0,G.combinedData="",G.fg=S.fg,G.bg=S.bg,G.combinedData=I,G._width=F,G}return E(k,M),k.prototype.isCombined=function(){return 2097152},k.prototype.getWidth=function(){return this._width},k.prototype.getChars=function(){return this.combinedData},k.prototype.getCode=function(){return 2097151},k.prototype.setFromCharData=function(S){throw new Error("not implemented")},k.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},k}(O.AttributeData);w.JoinedCellData=v;var g=function(){function M(k){this._bufferService=k,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new T.CellData}return M.prototype.register=function(k){var S={id:this._nextCharacterJoinerId++,handler:k};return this._characterJoiners.push(S),S.id},M.prototype.deregister=function(k){for(var S=0;S1)for(var fe=this._getJoinedRanges(F,W,X,S,G),ce=0;ce1)for(fe=this._getJoinedRanges(F,W,X,S,G),ce=0;ce=0;S--)(g=y[S])&&(k=(M<3?g(k):M>3?g(T,D,k):g(T,D))||k);return M>3&&k&&Object.defineProperty(T,D,k),k},E=this&&this.__param||function(y,T){return function(D,v){T(D,v,y)}};Object.defineProperty(w,"__esModule",{value:!0}),w.MouseService=void 0;var x=R(4725),Z=R(9806),O=function(){function y(T,D){this._renderService=T,this._charSizeService=D}return y.prototype.getCoords=function(T,D,v,g,M){return(0,Z.getCoords)(T,D,v,g,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,M)},y.prototype.getRawByteCoords=function(T,D,v,g){var M=this.getCoords(T,D,v,g);return(0,Z.getRawByteCoords)(M)},b([E(0,x.IRenderService),E(1,x.ICharSizeService)],y)}();w.MouseService=O},3230:function(L,w,R){var b,E=this&&this.__extends||(b=function(I,F){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,X){G.__proto__=X}||function(G,X){for(var W in X)Object.prototype.hasOwnProperty.call(X,W)&&(G[W]=X[W])})(I,F)},function(S,I){if("function"!=typeof I&&null!==I)throw new TypeError("Class extends value "+String(I)+" is not a constructor or null");function F(){this.constructor=S}b(S,I),S.prototype=null===I?Object.create(I):(F.prototype=I.prototype,new F)}),x=this&&this.__decorate||function(S,I,F,G){var X,W=arguments.length,Y=W<3?I:null===G?G=Object.getOwnPropertyDescriptor(I,F):G;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Y=Reflect.decorate(S,I,F,G);else for(var ae=S.length-1;ae>=0;ae--)(X=S[ae])&&(Y=(W<3?X(Y):W>3?X(I,F,Y):X(I,F))||Y);return W>3&&Y&&Object.defineProperty(I,F,Y),Y},Z=this&&this.__param||function(S,I){return function(F,G){I(F,G,S)}};Object.defineProperty(w,"__esModule",{value:!0}),w.RenderService=void 0;var O=R(6193),y=R(8460),T=R(844),D=R(5596),v=R(3656),g=R(2585),M=R(4725),k=function(S){function I(F,G,X,W,Y,ae){var K=S.call(this)||this;if(K._renderer=F,K._rowCount=G,K._charSizeService=Y,K._isPaused=!1,K._needsFullRefresh=!1,K._isNextRenderRedrawOnly=!0,K._needsSelectionRefresh=!1,K._canvasWidth=0,K._canvasHeight=0,K._selectionState={start:void 0,end:void 0,columnSelectMode:!1},K._onDimensionsChange=new y.EventEmitter,K._onRender=new y.EventEmitter,K._onRefreshRequest=new y.EventEmitter,K.register({dispose:function(){return K._renderer.dispose()}}),K._renderDebouncer=new O.RenderDebouncer(function(ce,he){return K._renderRows(ce,he)}),K.register(K._renderDebouncer),K._screenDprMonitor=new D.ScreenDprMonitor,K._screenDprMonitor.setListener(function(){return K.onDevicePixelRatioChange()}),K.register(K._screenDprMonitor),K.register(ae.onResize(function(ce){return K._fullRefresh()})),K.register(W.onOptionChange(function(){return K._renderer.onOptionsChanged()})),K.register(K._charSizeService.onCharSizeChange(function(){return K.onCharSizeChanged()})),K._renderer.onRequestRedraw(function(ce){return K.refreshRows(ce.start,ce.end,!0)}),K.register((0,v.addDisposableDomListener)(window,"resize",function(){return K.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var fe=new IntersectionObserver(function(ce){return K._onIntersectionChange(ce[ce.length-1])},{threshold:0});fe.observe(X),K.register({dispose:function(){return fe.disconnect()}})}return K}return E(I,S),Object.defineProperty(I.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),I.prototype._onIntersectionChange=function(F){this._isPaused=void 0===F.isIntersecting?0===F.intersectionRatio:!F.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},I.prototype.refreshRows=function(F,G,X){void 0===X&&(X=!1),this._isPaused?this._needsFullRefresh=!0:(X||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(F,G,this._rowCount))},I.prototype._renderRows=function(F,G){this._renderer.renderRows(F,G),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:F,end:G}),this._isNextRenderRedrawOnly=!0},I.prototype.resize=function(F,G){this._rowCount=G,this._fireOnCanvasResize()},I.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},I.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},I.prototype.dispose=function(){S.prototype.dispose.call(this)},I.prototype.setRenderer=function(F){var G=this;this._renderer.dispose(),this._renderer=F,this._renderer.onRequestRedraw(function(X){return G.refreshRows(X.start,X.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},I.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},I.prototype.clearTextureAtlas=function(){var F,G;null===(G=null===(F=this._renderer)||void 0===F?void 0:F.clearTextureAtlas)||void 0===G||G.call(F),this._fullRefresh()},I.prototype.setColors=function(F){this._renderer.setColors(F),this._fullRefresh()},I.prototype.onDevicePixelRatioChange=function(){this._charSizeService.measure(),this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},I.prototype.onResize=function(F,G){this._renderer.onResize(F,G),this._fullRefresh()},I.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},I.prototype.onBlur=function(){this._renderer.onBlur()},I.prototype.onFocus=function(){this._renderer.onFocus()},I.prototype.onSelectionChanged=function(F,G,X){this._selectionState.start=F,this._selectionState.end=G,this._selectionState.columnSelectMode=X,this._renderer.onSelectionChanged(F,G,X)},I.prototype.onCursorMove=function(){this._renderer.onCursorMove()},I.prototype.clear=function(){this._renderer.clear()},x([Z(3,g.IOptionsService),Z(4,M.ICharSizeService),Z(5,g.IBufferService)],I)}(T.Disposable);w.RenderService=k},9312:function(L,w,R){var b,E=this&&this.__extends||(b=function(Y,ae){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,fe){K.__proto__=fe}||function(K,fe){for(var ce in fe)Object.prototype.hasOwnProperty.call(fe,ce)&&(K[ce]=fe[ce])})(Y,ae)},function(W,Y){if("function"!=typeof Y&&null!==Y)throw new TypeError("Class extends value "+String(Y)+" is not a constructor or null");function ae(){this.constructor=W}b(W,Y),W.prototype=null===Y?Object.create(Y):(ae.prototype=Y.prototype,new ae)}),x=this&&this.__decorate||function(W,Y,ae,K){var fe,ce=arguments.length,he=ce<3?Y:null===K?K=Object.getOwnPropertyDescriptor(Y,ae):K;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)he=Reflect.decorate(W,Y,ae,K);else for(var de=W.length-1;de>=0;de--)(fe=W[de])&&(he=(ce<3?fe(he):ce>3?fe(Y,ae,he):fe(Y,ae))||he);return ce>3&&he&&Object.defineProperty(Y,ae,he),he},Z=this&&this.__param||function(W,Y){return function(ae,K){Y(ae,K,W)}};Object.defineProperty(w,"__esModule",{value:!0}),w.SelectionService=void 0;var O=R(6114),y=R(456),T=R(511),D=R(8460),v=R(4725),g=R(2585),M=R(9806),k=R(9504),S=R(844),I=R(4841),F=String.fromCharCode(160),G=new RegExp(F,"g"),X=function(W){function Y(ae,K,fe,ce,he,de,oe,Ce){var ge=W.call(this)||this;return ge._element=ae,ge._screenElement=K,ge._linkifier=fe,ge._bufferService=ce,ge._coreService=he,ge._mouseService=de,ge._optionsService=oe,ge._renderService=Ce,ge._dragScrollAmount=0,ge._enabled=!0,ge._workCell=new T.CellData,ge._mouseDownTimeStamp=0,ge._oldHasSelection=!1,ge._oldSelectionStart=void 0,ge._oldSelectionEnd=void 0,ge._onLinuxMouseSelection=ge.register(new D.EventEmitter),ge._onRedrawRequest=ge.register(new D.EventEmitter),ge._onSelectionChange=ge.register(new D.EventEmitter),ge._onRequestScrollLines=ge.register(new D.EventEmitter),ge._mouseMoveListener=function(qe){return ge._onMouseMove(qe)},ge._mouseUpListener=function(qe){return ge._onMouseUp(qe)},ge._coreService.onUserInput(function(){ge.hasSelection&&ge.clearSelection()}),ge._trimListener=ge._bufferService.buffer.lines.onTrim(function(qe){return ge._onTrim(qe)}),ge.register(ge._bufferService.buffers.onBufferActivate(function(qe){return ge._onBufferActivate(qe)})),ge.enable(),ge._model=new y.SelectionModel(ge._bufferService),ge._activeSelectionMode=0,ge}return E(Y,W),Object.defineProperty(Y.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),Y.prototype.dispose=function(){this._removeMouseDownListeners()},Y.prototype.reset=function(){this.clearSelection()},Y.prototype.disable=function(){this.clearSelection(),this._enabled=!1},Y.prototype.enable=function(){this._enabled=!0},Object.defineProperty(Y.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"hasSelection",{get:function(){var K=this._model.finalSelectionStart,fe=this._model.finalSelectionEnd;return!(!K||!fe||K[0]===fe[0]&&K[1]===fe[1])},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"selectionText",{get:function(){var K=this._model.finalSelectionStart,fe=this._model.finalSelectionEnd;if(!K||!fe)return"";var ce=this._bufferService.buffer,he=[];if(3===this._activeSelectionMode){if(K[0]===fe[0])return"";for(var de=K[1];de<=fe[1];de++){var oe=ce.translateBufferLineToString(de,!0,K[0],fe[0]);he.push(oe)}}else{for(he.push(ce.translateBufferLineToString(K[1],!0,K[0],K[1]===fe[1]?fe[0]:void 0)),de=K[1]+1;de<=fe[1]-1;de++){var ge=ce.lines.get(de);oe=ce.translateBufferLineToString(de,!0),ge&&ge.isWrapped?he[he.length-1]+=oe:he.push(oe)}K[1]!==fe[1]&&(ge=ce.lines.get(fe[1]),oe=ce.translateBufferLineToString(fe[1],!0,0,fe[0]),ge&&ge.isWrapped?he[he.length-1]+=oe:he.push(oe))}return he.map(function(qe){return qe.replace(G," ")}).join(O.isWindows?"\r\n":"\n")},enumerable:!1,configurable:!0}),Y.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},Y.prototype.refresh=function(ae){var K=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return K._refresh()})),O.isLinux&&ae&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},Y.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})},Y.prototype._isClickInSelection=function(ae){var K=this._getMouseBufferCoords(ae),fe=this._model.finalSelectionStart,ce=this._model.finalSelectionEnd;return!!(fe&&ce&&K)&&this._areCoordsInSelection(K,fe,ce)},Y.prototype._areCoordsInSelection=function(ae,K,fe){return ae[1]>K[1]&&ae[1]=K[0]&&ae[0]=K[0]},Y.prototype._selectWordAtCursor=function(ae,K){var fe,ce,he=null===(ce=null===(fe=this._linkifier.currentLink)||void 0===fe?void 0:fe.link)||void 0===ce?void 0:ce.range;if(he)return this._model.selectionStart=[he.start.x-1,he.start.y-1],this._model.selectionStartLength=(0,I.getRangeLength)(he,this._bufferService.cols),this._model.selectionEnd=void 0,!0;var de=this._getMouseBufferCoords(ae);return!!de&&(this._selectWordAt(de,K),this._model.selectionEnd=void 0,!0)},Y.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},Y.prototype.selectLines=function(ae,K){this._model.clearSelection(),ae=Math.max(ae,0),K=Math.min(K,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,ae],this._model.selectionEnd=[this._bufferService.cols,K],this.refresh(),this._onSelectionChange.fire()},Y.prototype._onTrim=function(ae){this._model.onTrim(ae)&&this.refresh()},Y.prototype._getMouseBufferCoords=function(ae){var K=this._mouseService.getCoords(ae,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(K)return K[0]--,K[1]--,K[1]+=this._bufferService.buffer.ydisp,K},Y.prototype._getMouseEventScrollAmount=function(ae){var K=(0,M.getCoordsRelativeToElement)(ae,this._screenElement)[1],fe=this._renderService.dimensions.canvasHeight;return K>=0&&K<=fe?0:(K>fe&&(K-=fe),K=Math.min(Math.max(K,-50),50),(K/=50)/Math.abs(K)+Math.round(14*K))},Y.prototype.shouldForceSelection=function(ae){return O.isMac?ae.altKey&&this._optionsService.options.macOptionClickForcesSelection:ae.shiftKey},Y.prototype.onMouseDown=function(ae){if(this._mouseDownTimeStamp=ae.timeStamp,(2!==ae.button||!this.hasSelection)&&0===ae.button){if(!this._enabled){if(!this.shouldForceSelection(ae))return;ae.stopPropagation()}ae.preventDefault(),this._dragScrollAmount=0,this._enabled&&ae.shiftKey?this._onIncrementalClick(ae):1===ae.detail?this._onSingleClick(ae):2===ae.detail?this._onDoubleClick(ae):3===ae.detail&&this._onTripleClick(ae),this._addMouseDownListeners(),this.refresh(!0)}},Y.prototype._addMouseDownListeners=function(){var ae=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return ae._dragScroll()},50)},Y.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},Y.prototype._onIncrementalClick=function(ae){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(ae))},Y.prototype._onSingleClick=function(ae){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(ae)?3:0,this._model.selectionStart=this._getMouseBufferCoords(ae),this._model.selectionStart){this._model.selectionEnd=void 0;var K=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);K&&K.length!==this._model.selectionStart[0]&&0===K.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++}},Y.prototype._onDoubleClick=function(ae){this._selectWordAtCursor(ae,!0)&&(this._activeSelectionMode=1)},Y.prototype._onTripleClick=function(ae){var K=this._getMouseBufferCoords(ae);K&&(this._activeSelectionMode=2,this._selectLineAt(K[1]))},Y.prototype.shouldColumnSelect=function(ae){return ae.altKey&&!(O.isMac&&this._optionsService.options.macOptionClickForcesSelection)},Y.prototype._onMouseMove=function(ae){if(ae.stopImmediatePropagation(),this._model.selectionStart){var K=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(ae),this._model.selectionEnd){2===this._activeSelectionMode?this._model.selectionEnd[0]=this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var fe=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(ae.ydisp+this._bufferService.rows,ae.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=ae.ydisp),this.refresh()}},Y.prototype._onMouseUp=function(ae){var K=ae.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&K<500&&ae.altKey&&this._optionsService.getOption("altClickMovesCursor")){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var fe=this._mouseService.getCoords(ae,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(fe&&void 0!==fe[0]&&void 0!==fe[1]){var ce=(0,k.moveToCellSequence)(fe[0]-1,fe[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(ce,!0)}}}else this._fireEventIfSelectionChanged()},Y.prototype._fireEventIfSelectionChanged=function(){var ae=this._model.finalSelectionStart,K=this._model.finalSelectionEnd,fe=!(!ae||!K||ae[0]===K[0]&&ae[1]===K[1]);fe?ae&&K&&(this._oldSelectionStart&&this._oldSelectionEnd&&ae[0]===this._oldSelectionStart[0]&&ae[1]===this._oldSelectionStart[1]&&K[0]===this._oldSelectionEnd[0]&&K[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(ae,K,fe)):this._oldHasSelection&&this._fireOnSelectionChange(ae,K,fe)},Y.prototype._fireOnSelectionChange=function(ae,K,fe){this._oldSelectionStart=ae,this._oldSelectionEnd=K,this._oldHasSelection=fe,this._onSelectionChange.fire()},Y.prototype._onBufferActivate=function(ae){var K=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=ae.activeBuffer.lines.onTrim(function(fe){return K._onTrim(fe)})},Y.prototype._convertViewportColToCharacterIndex=function(ae,K){for(var fe=K[0],ce=0;K[0]>=ce;ce++){var he=ae.loadCell(ce,this._workCell).getChars().length;0===this._workCell.getWidth()?fe--:he>1&&K[0]!==ce&&(fe+=he-1)}return fe},Y.prototype.setSelection=function(ae,K,fe){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[ae,K],this._model.selectionStartLength=fe,this.refresh()},Y.prototype.rightClickSelect=function(ae){this._isClickInSelection(ae)||(this._selectWordAtCursor(ae,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())},Y.prototype._getWordAt=function(ae,K,fe,ce){if(void 0===fe&&(fe=!0),void 0===ce&&(ce=!0),!(ae[0]>=this._bufferService.cols)){var he=this._bufferService.buffer,de=he.lines.get(ae[1]);if(de){var oe=he.translateBufferLineToString(ae[1],!1),Ce=this._convertViewportColToCharacterIndex(de,ae),ge=Ce,qe=ae[0]-Ce,De=0,Qe=0,et=0,bt=0;if(" "===oe.charAt(Ce)){for(;Ce>0&&" "===oe.charAt(Ce-1);)Ce--;for(;ge1&&(bt+=He-1,ge+=He-1);_e>0&&Ce>0&&!this._isCharWordSeparator(de.loadCell(_e-1,this._workCell));){de.loadCell(_e-1,this._workCell);var st=this._workCell.getChars().length;0===this._workCell.getWidth()?(De++,_e--):st>1&&(et+=st-1,Ce-=st-1),Ce--,_e--}for(;xe1&&(bt+=tt-1,ge+=tt-1),ge++,xe++}}ge++;var Zt=Ce+qe-De+et,Tt=Math.min(this._bufferService.cols,ge-Ce+De+Qe-et-bt);if(K||""!==oe.slice(Ce,ge).trim()){if(fe&&0===Zt&&32!==de.getCodePoint(0)){var mt=he.lines.get(ae[1]-1);if(mt&&de.isWrapped&&32!==mt.getCodePoint(this._bufferService.cols-1)){var Yt=this._getWordAt([this._bufferService.cols-1,ae[1]-1],!1,!0,!1);if(Yt){var un=this._bufferService.cols-Yt.start;Zt-=un,Tt+=un}}}if(ce&&Zt+Tt===this._bufferService.cols&&32!==de.getCodePoint(this._bufferService.cols-1)){var Ut=he.lines.get(ae[1]+1);if(Ut&&Ut.isWrapped&&32!==Ut.getCodePoint(0)){var Mn=this._getWordAt([0,ae[1]+1],!1,!1,!0);Mn&&(Tt+=Mn.length)}}return{start:Zt,length:Tt}}}}},Y.prototype._selectWordAt=function(ae,K){var fe=this._getWordAt(ae,K);if(fe){for(;fe.start<0;)fe.start+=this._bufferService.cols,ae[1]--;this._model.selectionStart=[fe.start,ae[1]],this._model.selectionStartLength=fe.length}},Y.prototype._selectToWordAt=function(ae){var K=this._getWordAt(ae,!0);if(K){for(var fe=ae[1];K.start<0;)K.start+=this._bufferService.cols,fe--;if(!this._model.areSelectionValuesReversed())for(;K.start+K.length>this._bufferService.cols;)K.length-=this._bufferService.cols,fe++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?K.start:K.start+K.length,fe]}},Y.prototype._isCharWordSeparator=function(ae){return 0!==ae.getWidth()&&this._optionsService.options.wordSeparator.indexOf(ae.getChars())>=0},Y.prototype._selectLineAt=function(ae){var K=this._bufferService.buffer.getWrappedRangeForLine(ae);this._model.selectionStart=[0,K.first],this._model.selectionEnd=[this._bufferService.cols,K.last],this._model.selectionStartLength=0},x([Z(3,g.IBufferService),Z(4,g.ICoreService),Z(5,v.IMouseService),Z(6,g.IOptionsService),Z(7,v.IRenderService)],Y)}(S.Disposable);w.SelectionService=X},4725:function(L,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.ICharacterJoinerService=w.ISoundService=w.ISelectionService=w.IRenderService=w.IMouseService=w.ICoreBrowserService=w.ICharSizeService=void 0;var b=R(8343);w.ICharSizeService=(0,b.createDecorator)("CharSizeService"),w.ICoreBrowserService=(0,b.createDecorator)("CoreBrowserService"),w.IMouseService=(0,b.createDecorator)("MouseService"),w.IRenderService=(0,b.createDecorator)("RenderService"),w.ISelectionService=(0,b.createDecorator)("SelectionService"),w.ISoundService=(0,b.createDecorator)("SoundService"),w.ICharacterJoinerService=(0,b.createDecorator)("CharacterJoinerService")},357:function(L,w,R){var b=this&&this.__decorate||function(O,y,T,D){var v,g=arguments.length,M=g<3?y:null===D?D=Object.getOwnPropertyDescriptor(y,T):D;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)M=Reflect.decorate(O,y,T,D);else for(var k=O.length-1;k>=0;k--)(v=O[k])&&(M=(g<3?v(M):g>3?v(y,T,M):v(y,T))||M);return g>3&&M&&Object.defineProperty(y,T,M),M},E=this&&this.__param||function(O,y){return function(T,D){y(T,D,O)}};Object.defineProperty(w,"__esModule",{value:!0}),w.SoundService=void 0;var x=R(2585),Z=function(){function O(y){this._optionsService=y}return Object.defineProperty(O,"audioContext",{get:function(){if(!O._audioContext){var T=window.AudioContext||window.webkitAudioContext;if(!T)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;O._audioContext=new T}return O._audioContext},enumerable:!1,configurable:!0}),O.prototype.playBellSound=function(){var y=O.audioContext;if(y){var T=y.createBufferSource();y.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(D){T.buffer=D,T.connect(y.destination),T.start(0)})}},O.prototype._base64ToArrayBuffer=function(y){for(var T=window.atob(y),D=T.length,v=new Uint8Array(D),g=0;gthis._length)for(var y=this._length;y=Z;D--)this._array[this._getCyclicIndex(D+y.length)]=this._array[this._getCyclicIndex(D)];for(D=0;Dthis._maxLength){var v=this._length+y.length-this._maxLength;this._startIndex+=v,this._length=this._maxLength,this.onTrimEmitter.fire(v)}else this._length+=y.length},x.prototype.trimStart=function(Z){Z>this._length&&(Z=this._length),this._startIndex+=Z,this._length-=Z,this.onTrimEmitter.fire(Z)},x.prototype.shiftElements=function(Z,O,y){if(!(O<=0)){if(Z<0||Z>=this._length)throw new Error("start argument out of range");if(Z+y<0)throw new Error("Cannot shift elements in list beyond index 0");if(y>0){for(var T=O-1;T>=0;T--)this.set(Z+T+y,this.get(Z+T));var D=Z+O+y-this._length;if(D>0)for(this._length+=D;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(T=0;T24)return he.setWinLines||!1;switch(ce){case 1:return!!he.restoreWin;case 2:return!!he.minimizeWin;case 3:return!!he.setWinPosition;case 4:return!!he.setWinSizePixels;case 5:return!!he.raiseWin;case 6:return!!he.lowerWin;case 7:return!!he.refreshWin;case 8:return!!he.setWinSizeChars;case 9:return!!he.maximizeWin;case 10:return!!he.fullscreenWin;case 11:return!!he.getWinState;case 13:return!!he.getWinPosition;case 14:return!!he.getWinSizePixels;case 15:return!!he.getScreenSizePixels;case 16:return!!he.getCellSizePixels;case 18:return!!he.getWinSizeChars;case 19:return!!he.getScreenSizeChars;case 20:return!!he.getIconTitle;case 21:return!!he.getWinTitle;case 22:return!!he.pushTitle;case 23:return!!he.popTitle;case 24:return!!he.setWinLines}return!1}(ce=x=w.WindowsOptionsReportType||(w.WindowsOptionsReportType={}))[ce.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",ce[ce.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS";var K=function(){function ce(he,de,oe,Ce){this._bufferService=he,this._coreService=de,this._logService=oe,this._optionsService=Ce,this._data=new Uint32Array(0)}return ce.prototype.hook=function(he){this._data=new Uint32Array(0)},ce.prototype.put=function(he,de,oe){this._data=(0,D.concat)(this._data,he.subarray(de,oe))},ce.prototype.unhook=function(he){if(!he)return this._data=new Uint32Array(0),!0;var de=(0,v.utf32ToString)(this._data);switch(this._data=new Uint32Array(0),de){case'"q':this._coreService.triggerDataEvent(Z.C0.ESC+'P1$r0"q'+Z.C0.ESC+"\\");break;case'"p':this._coreService.triggerDataEvent(Z.C0.ESC+'P1$r61;1"p'+Z.C0.ESC+"\\");break;case"r":this._coreService.triggerDataEvent(Z.C0.ESC+"P1$r"+(this._bufferService.buffer.scrollTop+1)+";"+(this._bufferService.buffer.scrollBottom+1)+"r"+Z.C0.ESC+"\\");break;case"m":this._coreService.triggerDataEvent(Z.C0.ESC+"P1$r0m"+Z.C0.ESC+"\\");break;case" q":var Ce={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];this._coreService.triggerDataEvent(Z.C0.ESC+"P1$r"+(Ce-=this._optionsService.options.cursorBlink?1:0)+" q"+Z.C0.ESC+"\\");break;default:this._logService.debug("Unknown DCS $q %s",de),this._coreService.triggerDataEvent(Z.C0.ESC+"P0$r"+Z.C0.ESC+"\\")}return!0},ce}(),fe=function(ce){function he(de,oe,Ce,ge,qe,De,Qe,et,bt){void 0===bt&&(bt=new y.EscapeSequenceParser);var _e=ce.call(this)||this;_e._bufferService=de,_e._charsetService=oe,_e._coreService=Ce,_e._dirtyRowService=ge,_e._logService=qe,_e._optionsService=De,_e._coreMouseService=Qe,_e._unicodeService=et,_e._parser=bt,_e._parseBuffer=new Uint32Array(4096),_e._stringDecoder=new v.StringToUtf32,_e._utf8Decoder=new v.Utf8ToUtf32,_e._workCell=new S.CellData,_e._windowTitle="",_e._iconName="",_e._windowTitleStack=[],_e._iconNameStack=[],_e._curAttrData=g.DEFAULT_ATTR_DATA.clone(),_e._eraseAttrDataInternal=g.DEFAULT_ATTR_DATA.clone(),_e._onRequestBell=new M.EventEmitter,_e._onRequestRefreshRows=new M.EventEmitter,_e._onRequestReset=new M.EventEmitter,_e._onRequestSendFocus=new M.EventEmitter,_e._onRequestSyncScrollBar=new M.EventEmitter,_e._onRequestWindowsOptionsReport=new M.EventEmitter,_e._onA11yChar=new M.EventEmitter,_e._onA11yTab=new M.EventEmitter,_e._onCursorMove=new M.EventEmitter,_e._onLineFeed=new M.EventEmitter,_e._onScroll=new M.EventEmitter,_e._onTitleChange=new M.EventEmitter,_e._onAnsiColorChange=new M.EventEmitter,_e._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},_e.register(_e._parser),_e._activeBuffer=_e._bufferService.buffer,_e.register(_e._bufferService.buffers.onBufferActivate(function(tt){return _e._activeBuffer=tt.activeBuffer})),_e._parser.setCsiHandlerFallback(function(tt,Zt){_e._logService.debug("Unknown CSI code: ",{identifier:_e._parser.identToString(tt),params:Zt.toArray()})}),_e._parser.setEscHandlerFallback(function(tt){_e._logService.debug("Unknown ESC code: ",{identifier:_e._parser.identToString(tt)})}),_e._parser.setExecuteHandlerFallback(function(tt){_e._logService.debug("Unknown EXECUTE code: ",{code:tt})}),_e._parser.setOscHandlerFallback(function(tt,Zt,Tt){_e._logService.debug("Unknown OSC code: ",{identifier:tt,action:Zt,data:Tt})}),_e._parser.setDcsHandlerFallback(function(tt,Zt,Tt){"HOOK"===Zt&&(Tt=Tt.toArray()),_e._logService.debug("Unknown DCS code: ",{identifier:_e._parser.identToString(tt),action:Zt,payload:Tt})}),_e._parser.setPrintHandler(function(tt,Zt,Tt){return _e.print(tt,Zt,Tt)}),_e._parser.registerCsiHandler({final:"@"},function(tt){return _e.insertChars(tt)}),_e._parser.registerCsiHandler({intermediates:" ",final:"@"},function(tt){return _e.scrollLeft(tt)}),_e._parser.registerCsiHandler({final:"A"},function(tt){return _e.cursorUp(tt)}),_e._parser.registerCsiHandler({intermediates:" ",final:"A"},function(tt){return _e.scrollRight(tt)}),_e._parser.registerCsiHandler({final:"B"},function(tt){return _e.cursorDown(tt)}),_e._parser.registerCsiHandler({final:"C"},function(tt){return _e.cursorForward(tt)}),_e._parser.registerCsiHandler({final:"D"},function(tt){return _e.cursorBackward(tt)}),_e._parser.registerCsiHandler({final:"E"},function(tt){return _e.cursorNextLine(tt)}),_e._parser.registerCsiHandler({final:"F"},function(tt){return _e.cursorPrecedingLine(tt)}),_e._parser.registerCsiHandler({final:"G"},function(tt){return _e.cursorCharAbsolute(tt)}),_e._parser.registerCsiHandler({final:"H"},function(tt){return _e.cursorPosition(tt)}),_e._parser.registerCsiHandler({final:"I"},function(tt){return _e.cursorForwardTab(tt)}),_e._parser.registerCsiHandler({final:"J"},function(tt){return _e.eraseInDisplay(tt)}),_e._parser.registerCsiHandler({prefix:"?",final:"J"},function(tt){return _e.eraseInDisplay(tt)}),_e._parser.registerCsiHandler({final:"K"},function(tt){return _e.eraseInLine(tt)}),_e._parser.registerCsiHandler({prefix:"?",final:"K"},function(tt){return _e.eraseInLine(tt)}),_e._parser.registerCsiHandler({final:"L"},function(tt){return _e.insertLines(tt)}),_e._parser.registerCsiHandler({final:"M"},function(tt){return _e.deleteLines(tt)}),_e._parser.registerCsiHandler({final:"P"},function(tt){return _e.deleteChars(tt)}),_e._parser.registerCsiHandler({final:"S"},function(tt){return _e.scrollUp(tt)}),_e._parser.registerCsiHandler({final:"T"},function(tt){return _e.scrollDown(tt)}),_e._parser.registerCsiHandler({final:"X"},function(tt){return _e.eraseChars(tt)}),_e._parser.registerCsiHandler({final:"Z"},function(tt){return _e.cursorBackwardTab(tt)}),_e._parser.registerCsiHandler({final:"`"},function(tt){return _e.charPosAbsolute(tt)}),_e._parser.registerCsiHandler({final:"a"},function(tt){return _e.hPositionRelative(tt)}),_e._parser.registerCsiHandler({final:"b"},function(tt){return _e.repeatPrecedingCharacter(tt)}),_e._parser.registerCsiHandler({final:"c"},function(tt){return _e.sendDeviceAttributesPrimary(tt)}),_e._parser.registerCsiHandler({prefix:">",final:"c"},function(tt){return _e.sendDeviceAttributesSecondary(tt)}),_e._parser.registerCsiHandler({final:"d"},function(tt){return _e.linePosAbsolute(tt)}),_e._parser.registerCsiHandler({final:"e"},function(tt){return _e.vPositionRelative(tt)}),_e._parser.registerCsiHandler({final:"f"},function(tt){return _e.hVPosition(tt)}),_e._parser.registerCsiHandler({final:"g"},function(tt){return _e.tabClear(tt)}),_e._parser.registerCsiHandler({final:"h"},function(tt){return _e.setMode(tt)}),_e._parser.registerCsiHandler({prefix:"?",final:"h"},function(tt){return _e.setModePrivate(tt)}),_e._parser.registerCsiHandler({final:"l"},function(tt){return _e.resetMode(tt)}),_e._parser.registerCsiHandler({prefix:"?",final:"l"},function(tt){return _e.resetModePrivate(tt)}),_e._parser.registerCsiHandler({final:"m"},function(tt){return _e.charAttributes(tt)}),_e._parser.registerCsiHandler({final:"n"},function(tt){return _e.deviceStatus(tt)}),_e._parser.registerCsiHandler({prefix:"?",final:"n"},function(tt){return _e.deviceStatusPrivate(tt)}),_e._parser.registerCsiHandler({intermediates:"!",final:"p"},function(tt){return _e.softReset(tt)}),_e._parser.registerCsiHandler({intermediates:" ",final:"q"},function(tt){return _e.setCursorStyle(tt)}),_e._parser.registerCsiHandler({final:"r"},function(tt){return _e.setScrollRegion(tt)}),_e._parser.registerCsiHandler({final:"s"},function(tt){return _e.saveCursor(tt)}),_e._parser.registerCsiHandler({final:"t"},function(tt){return _e.windowOptions(tt)}),_e._parser.registerCsiHandler({final:"u"},function(tt){return _e.restoreCursor(tt)}),_e._parser.registerCsiHandler({intermediates:"'",final:"}"},function(tt){return _e.insertColumns(tt)}),_e._parser.registerCsiHandler({intermediates:"'",final:"~"},function(tt){return _e.deleteColumns(tt)}),_e._parser.setExecuteHandler(Z.C0.BEL,function(){return _e.bell()}),_e._parser.setExecuteHandler(Z.C0.LF,function(){return _e.lineFeed()}),_e._parser.setExecuteHandler(Z.C0.VT,function(){return _e.lineFeed()}),_e._parser.setExecuteHandler(Z.C0.FF,function(){return _e.lineFeed()}),_e._parser.setExecuteHandler(Z.C0.CR,function(){return _e.carriageReturn()}),_e._parser.setExecuteHandler(Z.C0.BS,function(){return _e.backspace()}),_e._parser.setExecuteHandler(Z.C0.HT,function(){return _e.tab()}),_e._parser.setExecuteHandler(Z.C0.SO,function(){return _e.shiftOut()}),_e._parser.setExecuteHandler(Z.C0.SI,function(){return _e.shiftIn()}),_e._parser.setExecuteHandler(Z.C1.IND,function(){return _e.index()}),_e._parser.setExecuteHandler(Z.C1.NEL,function(){return _e.nextLine()}),_e._parser.setExecuteHandler(Z.C1.HTS,function(){return _e.tabSet()}),_e._parser.registerOscHandler(0,new G.OscHandler(function(tt){return _e.setTitle(tt),_e.setIconName(tt),!0})),_e._parser.registerOscHandler(1,new G.OscHandler(function(tt){return _e.setIconName(tt)})),_e._parser.registerOscHandler(2,new G.OscHandler(function(tt){return _e.setTitle(tt)})),_e._parser.registerOscHandler(4,new G.OscHandler(function(tt){return _e.setAnsiColor(tt)})),_e._parser.registerEscHandler({final:"7"},function(){return _e.saveCursor()}),_e._parser.registerEscHandler({final:"8"},function(){return _e.restoreCursor()}),_e._parser.registerEscHandler({final:"D"},function(){return _e.index()}),_e._parser.registerEscHandler({final:"E"},function(){return _e.nextLine()}),_e._parser.registerEscHandler({final:"H"},function(){return _e.tabSet()}),_e._parser.registerEscHandler({final:"M"},function(){return _e.reverseIndex()}),_e._parser.registerEscHandler({final:"="},function(){return _e.keypadApplicationMode()}),_e._parser.registerEscHandler({final:">"},function(){return _e.keypadNumericMode()}),_e._parser.registerEscHandler({final:"c"},function(){return _e.fullReset()}),_e._parser.registerEscHandler({final:"n"},function(){return _e.setgLevel(2)}),_e._parser.registerEscHandler({final:"o"},function(){return _e.setgLevel(3)}),_e._parser.registerEscHandler({final:"|"},function(){return _e.setgLevel(3)}),_e._parser.registerEscHandler({final:"}"},function(){return _e.setgLevel(2)}),_e._parser.registerEscHandler({final:"~"},function(){return _e.setgLevel(1)}),_e._parser.registerEscHandler({intermediates:"%",final:"@"},function(){return _e.selectDefaultCharset()}),_e._parser.registerEscHandler({intermediates:"%",final:"G"},function(){return _e.selectDefaultCharset()});var xe=function(Zt){He._parser.registerEscHandler({intermediates:"(",final:Zt},function(){return _e.selectCharset("("+Zt)}),He._parser.registerEscHandler({intermediates:")",final:Zt},function(){return _e.selectCharset(")"+Zt)}),He._parser.registerEscHandler({intermediates:"*",final:Zt},function(){return _e.selectCharset("*"+Zt)}),He._parser.registerEscHandler({intermediates:"+",final:Zt},function(){return _e.selectCharset("+"+Zt)}),He._parser.registerEscHandler({intermediates:"-",final:Zt},function(){return _e.selectCharset("-"+Zt)}),He._parser.registerEscHandler({intermediates:".",final:Zt},function(){return _e.selectCharset("."+Zt)}),He._parser.registerEscHandler({intermediates:"/",final:Zt},function(){return _e.selectCharset("/"+Zt)})},He=this;for(var st in O.CHARSETS)xe(st);return _e._parser.registerEscHandler({intermediates:"#",final:"8"},function(){return _e.screenAlignmentPattern()}),_e._parser.setErrorHandler(function(tt){return _e._logService.error("Parsing error: ",tt),tt}),_e._parser.registerDcsHandler({intermediates:"$",final:"q"},new K(_e._bufferService,_e._coreService,_e._logService,_e._optionsService)),_e}return E(he,ce),Object.defineProperty(he.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"onRequestSendFocus",{get:function(){return this._onRequestSendFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"onAnsiColorChange",{get:function(){return this._onAnsiColorChange.event},enumerable:!1,configurable:!0}),he.prototype.dispose=function(){ce.prototype.dispose.call(this)},he.prototype._preserveStack=function(de,oe,Ce,ge){this._parseStack.paused=!0,this._parseStack.cursorStartX=de,this._parseStack.cursorStartY=oe,this._parseStack.decodedLength=Ce,this._parseStack.position=ge},he.prototype._logSlowResolvingAsync=function(de){this._logService.logLevel<=F.LogLevelEnum.WARN&&Promise.race([de,new Promise(function(oe,Ce){return setTimeout(function(){return Ce("#SLOW_TIMEOUT")},5e3)})]).catch(function(oe){if("#SLOW_TIMEOUT"!==oe)throw oe;console.warn("async parser handler taking longer than 5000 ms")})},he.prototype.parse=function(de,oe){var Ce,ge=this._activeBuffer.x,qe=this._activeBuffer.y,De=0,Qe=this._parseStack.paused;if(Qe){if(Ce=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,oe))return this._logSlowResolvingAsync(Ce),Ce;ge=this._parseStack.cursorStartX,qe=this._parseStack.cursorStartY,this._parseStack.paused=!1,de.length>Y&&(De=this._parseStack.position+Y)}if(this._logService.debug("parsing data",de),this._parseBuffer.lengthY)for(var et=De;et0&&2===He.getWidth(this._activeBuffer.x-1)&&He.setCellFromCodePoint(this._activeBuffer.x-1,0,1,xe.fg,xe.bg,xe.extended);for(var st=oe;st=et)if(bt){for(;this._activeBuffer.x=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),He=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=et-1,2===qe)continue;if(_e&&(He.insertCells(this._activeBuffer.x,qe,this._activeBuffer.getNullCell(xe),xe),2===He.getWidth(et-1)&&He.setCellFromCodePoint(et-1,k.NULL_CELL_CODE,k.NULL_CELL_WIDTH,xe.fg,xe.bg,xe.extended)),He.setCellFromCodePoint(this._activeBuffer.x++,ge,qe,xe.fg,xe.bg,xe.extended),qe>0)for(;--qe;)He.setCellFromCodePoint(this._activeBuffer.x++,0,0,xe.fg,xe.bg,xe.extended)}else He.getWidth(this._activeBuffer.x-1)?He.addCodepointToCell(this._activeBuffer.x-1,ge):He.addCodepointToCell(this._activeBuffer.x-2,ge)}Ce-oe>0&&(He.loadCell(this._activeBuffer.x-1,this._workCell),this._parser.precedingCodepoint=2===this._workCell.getWidth()||this._workCell.getCode()>65535?0:this._workCell.isCombined()?this._workCell.getChars().charCodeAt(0):this._workCell.content),this._activeBuffer.x0&&0===He.getWidth(this._activeBuffer.x)&&!He.hasContent(this._activeBuffer.x)&&He.setCellFromCodePoint(this._activeBuffer.x,0,1,xe.fg,xe.bg,xe.extended),this._dirtyRowService.markDirty(this._activeBuffer.y)},he.prototype.registerCsiHandler=function(de,oe){var Ce=this;return this._parser.registerCsiHandler(de,"t"!==de.final||de.prefix||de.intermediates?oe:function(ge){return!ae(ge.params[0],Ce._optionsService.options.windowOptions)||oe(ge)})},he.prototype.registerDcsHandler=function(de,oe){return this._parser.registerDcsHandler(de,new X.DcsHandler(oe))},he.prototype.registerEscHandler=function(de,oe){return this._parser.registerEscHandler(de,oe)},he.prototype.registerOscHandler=function(de,oe){return this._parser.registerOscHandler(de,new G.OscHandler(oe))},he.prototype.bell=function(){return this._onRequestBell.fire(),!0},he.prototype.lineFeed=function(){return this._dirtyRowService.markDirty(this._activeBuffer.y),this._optionsService.options.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowService.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0},he.prototype.carriageReturn=function(){return this._activeBuffer.x=0,!0},he.prototype.backspace=function(){var de;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(0===this._activeBuffer.x&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&(null===(de=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))||void 0===de?void 0:de.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;var oe=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);oe.hasWidth(this._activeBuffer.x)&&!oe.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0},he.prototype.tab=function(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;var de=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-de),!0},he.prototype.shiftOut=function(){return this._charsetService.setgLevel(1),!0},he.prototype.shiftIn=function(){return this._charsetService.setgLevel(0),!0},he.prototype._restrictCursor=function(de){void 0===de&&(de=this._bufferService.cols-1),this._activeBuffer.x=Math.min(de,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowService.markDirty(this._activeBuffer.y)},he.prototype._setCursor=function(de,oe){this._dirtyRowService.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=de,this._activeBuffer.y=this._activeBuffer.scrollTop+oe):(this._activeBuffer.x=de,this._activeBuffer.y=oe),this._restrictCursor(),this._dirtyRowService.markDirty(this._activeBuffer.y)},he.prototype._moveCursor=function(de,oe){this._restrictCursor(),this._setCursor(this._activeBuffer.x+de,this._activeBuffer.y+oe)},he.prototype.cursorUp=function(de){var oe=this._activeBuffer.y-this._activeBuffer.scrollTop;return this._moveCursor(0,oe>=0?-Math.min(oe,de.params[0]||1):-(de.params[0]||1)),!0},he.prototype.cursorDown=function(de){var oe=this._activeBuffer.scrollBottom-this._activeBuffer.y;return this._moveCursor(0,oe>=0?Math.min(oe,de.params[0]||1):de.params[0]||1),!0},he.prototype.cursorForward=function(de){return this._moveCursor(de.params[0]||1,0),!0},he.prototype.cursorBackward=function(de){return this._moveCursor(-(de.params[0]||1),0),!0},he.prototype.cursorNextLine=function(de){return this.cursorDown(de),this._activeBuffer.x=0,!0},he.prototype.cursorPrecedingLine=function(de){return this.cursorUp(de),this._activeBuffer.x=0,!0},he.prototype.cursorCharAbsolute=function(de){return this._setCursor((de.params[0]||1)-1,this._activeBuffer.y),!0},he.prototype.cursorPosition=function(de){return this._setCursor(de.length>=2?(de.params[1]||1)-1:0,(de.params[0]||1)-1),!0},he.prototype.charPosAbsolute=function(de){return this._setCursor((de.params[0]||1)-1,this._activeBuffer.y),!0},he.prototype.hPositionRelative=function(de){return this._moveCursor(de.params[0]||1,0),!0},he.prototype.linePosAbsolute=function(de){return this._setCursor(this._activeBuffer.x,(de.params[0]||1)-1),!0},he.prototype.vPositionRelative=function(de){return this._moveCursor(0,de.params[0]||1),!0},he.prototype.hVPosition=function(de){return this.cursorPosition(de),!0},he.prototype.tabClear=function(de){var oe=de.params[0];return 0===oe?delete this._activeBuffer.tabs[this._activeBuffer.x]:3===oe&&(this._activeBuffer.tabs={}),!0},he.prototype.cursorForwardTab=function(de){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var oe=de.params[0]||1;oe--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0},he.prototype.cursorBackwardTab=function(de){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var oe=de.params[0]||1;oe--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0},he.prototype._eraseInBufferLine=function(de,oe,Ce,ge){void 0===ge&&(ge=!1);var qe=this._activeBuffer.lines.get(this._activeBuffer.ybase+de);qe.replaceCells(oe,Ce,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),ge&&(qe.isWrapped=!1)},he.prototype._resetBufferLine=function(de){var oe=this._activeBuffer.lines.get(this._activeBuffer.ybase+de);oe.fill(this._activeBuffer.getNullCell(this._eraseAttrData())),oe.isWrapped=!1},he.prototype.eraseInDisplay=function(de){var oe;switch(this._restrictCursor(this._bufferService.cols),de.params[0]){case 0:for(this._dirtyRowService.markDirty(oe=this._activeBuffer.y),this._eraseInBufferLine(oe++,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x);oe=this._bufferService.cols&&(this._activeBuffer.lines.get(oe+1).isWrapped=!1);oe--;)this._resetBufferLine(oe);this._dirtyRowService.markDirty(0);break;case 2:for(this._dirtyRowService.markDirty((oe=this._bufferService.rows)-1);oe--;)this._resetBufferLine(oe);this._dirtyRowService.markDirty(0);break;case 3:var Ce=this._activeBuffer.lines.length-this._bufferService.rows;Ce>0&&(this._activeBuffer.lines.trimStart(Ce),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-Ce,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-Ce,0),this._onScroll.fire(0))}return!0},he.prototype.eraseInLine=function(de){switch(this._restrictCursor(this._bufferService.cols),de.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols)}return this._dirtyRowService.markDirty(this._activeBuffer.y),!0},he.prototype.insertLines=function(de){this._restrictCursor();var oe=de.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.y0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(Z.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(Z.C0.ESC+"[?6c")),!0},he.prototype.sendDeviceAttributesSecondary=function(de){return de.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(Z.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(Z.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(de.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(Z.C0.ESC+"[>83;40003;0c")),!0},he.prototype._is=function(de){return 0===(this._optionsService.options.termName+"").indexOf(de)},he.prototype.setMode=function(de){for(var oe=0;oe=2||2===ge[1]&&De+qe>=5)break;ge[1]&&(qe=1)}while(++De+oe5)&&(de=1),oe.extended.underlineStyle=de,oe.fg|=268435456,0===de&&(oe.fg&=-268435457),oe.updateExtended()},he.prototype.charAttributes=function(de){if(1===de.length&&0===de.params[0])return this._curAttrData.fg=g.DEFAULT_ATTR_DATA.fg,this._curAttrData.bg=g.DEFAULT_ATTR_DATA.bg,!0;for(var oe,Ce=de.length,ge=this._curAttrData,qe=0;qe=30&&oe<=37?(ge.fg&=-50331904,ge.fg|=16777216|oe-30):oe>=40&&oe<=47?(ge.bg&=-50331904,ge.bg|=16777216|oe-40):oe>=90&&oe<=97?(ge.fg&=-50331904,ge.fg|=16777224|oe-90):oe>=100&&oe<=107?(ge.bg&=-50331904,ge.bg|=16777224|oe-100):0===oe?(ge.fg=g.DEFAULT_ATTR_DATA.fg,ge.bg=g.DEFAULT_ATTR_DATA.bg):1===oe?ge.fg|=134217728:3===oe?ge.bg|=67108864:4===oe?(ge.fg|=268435456,this._processUnderline(de.hasSubParams(qe)?de.getSubParams(qe)[0]:1,ge)):5===oe?ge.fg|=536870912:7===oe?ge.fg|=67108864:8===oe?ge.fg|=1073741824:9===oe?ge.fg|=2147483648:2===oe?ge.bg|=134217728:21===oe?this._processUnderline(2,ge):22===oe?(ge.fg&=-134217729,ge.bg&=-134217729):23===oe?ge.bg&=-67108865:24===oe?ge.fg&=-268435457:25===oe?ge.fg&=-536870913:27===oe?ge.fg&=-67108865:28===oe?ge.fg&=-1073741825:29===oe?ge.fg&=2147483647:39===oe?(ge.fg&=-67108864,ge.fg|=16777215&g.DEFAULT_ATTR_DATA.fg):49===oe?(ge.bg&=-67108864,ge.bg|=16777215&g.DEFAULT_ATTR_DATA.bg):38===oe||48===oe||58===oe?qe+=this._extractColor(de,qe,ge):59===oe?(ge.extended=ge.extended.clone(),ge.extended.underlineColor=-1,ge.updateExtended()):100===oe?(ge.fg&=-67108864,ge.fg|=16777215&g.DEFAULT_ATTR_DATA.fg,ge.bg&=-67108864,ge.bg|=16777215&g.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",oe);return!0},he.prototype.deviceStatus=function(de){switch(de.params[0]){case 5:this._coreService.triggerDataEvent(Z.C0.ESC+"[0n");break;case 6:this._coreService.triggerDataEvent(Z.C0.ESC+"["+(this._activeBuffer.y+1)+";"+(this._activeBuffer.x+1)+"R")}return!0},he.prototype.deviceStatusPrivate=function(de){return 6===de.params[0]&&this._coreService.triggerDataEvent(Z.C0.ESC+"[?"+(this._activeBuffer.y+1)+";"+(this._activeBuffer.x+1)+"R"),!0},he.prototype.softReset=function(de){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=g.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0},he.prototype.setCursorStyle=function(de){var oe=de.params[0]||1;switch(oe){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}return this._optionsService.options.cursorBlink=oe%2==1,!0},he.prototype.setScrollRegion=function(de){var oe,Ce=de.params[0]||1;return(de.length<2||(oe=de.params[1])>this._bufferService.rows||0===oe)&&(oe=this._bufferService.rows),oe>Ce&&(this._activeBuffer.scrollTop=Ce-1,this._activeBuffer.scrollBottom=oe-1,this._setCursor(0,0)),!0},he.prototype.windowOptions=function(de){if(!ae(de.params[0],this._optionsService.options.windowOptions))return!0;var oe=de.length>1?de.params[1]:0;switch(de.params[0]){case 14:2!==oe&&this._onRequestWindowsOptionsReport.fire(x.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(x.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(Z.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:0!==oe&&2!==oe||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),0!==oe&&1!==oe||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:0!==oe&&2!==oe||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),0!==oe&&1!==oe||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0},he.prototype.saveCursor=function(de){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0},he.prototype.restoreCursor=function(de){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0},he.prototype.setTitle=function(de){return this._windowTitle=de,this._onTitleChange.fire(de),!0},he.prototype.setIconName=function(de){return this._iconName=de,!0},he.prototype._parseAnsiColorChange=function(de){for(var oe,Ce={colors:[]},ge=/(\d+);rgb:([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})/gi;null!==(oe=ge.exec(de));)Ce.colors.push({colorIndex:parseInt(oe[1]),red:parseInt(oe[2],16),green:parseInt(oe[3],16),blue:parseInt(oe[4],16)});return 0===Ce.colors.length?null:Ce},he.prototype.setAnsiColor=function(de){var oe=this._parseAnsiColorChange(de);return oe?this._onAnsiColorChange.fire(oe):this._logService.warn("Expected format ;rgb:// but got data: "+de),!0},he.prototype.nextLine=function(){return this._activeBuffer.x=0,this.index(),!0},he.prototype.keypadApplicationMode=function(){return this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire(),!0},he.prototype.keypadNumericMode=function(){return this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire(),!0},he.prototype.selectDefaultCharset=function(){return this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,O.DEFAULT_CHARSET),!0},he.prototype.selectCharset=function(de){return 2!==de.length?(this.selectDefaultCharset(),!0):("/"===de[0]||this._charsetService.setgCharset(W[de[0]],O.CHARSETS[de[1]]||O.DEFAULT_CHARSET),!0)},he.prototype.index=function(){return this._restrictCursor(),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0},he.prototype.tabSet=function(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0},he.prototype.reverseIndex=function(){return this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop?(this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)):(this._activeBuffer.y--,this._restrictCursor()),!0},he.prototype.fullReset=function(){return this._parser.reset(),this._onRequestReset.fire(),!0},he.prototype.reset=function(){this._curAttrData=g.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=g.DEFAULT_ATTR_DATA.clone()},he.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},he.prototype.setgLevel=function(de){return this._charsetService.setgLevel(de),!0},he.prototype.screenAlignmentPattern=function(){var de=new S.CellData;de.content=1<<22|"E".charCodeAt(0),de.fg=this._curAttrData.fg,de.bg=this._curAttrData.bg,this._setCursor(0,0);for(var oe=0;oe=0},8273:function(L,w){function R(b,E,x,Z){if(void 0===x&&(x=0),void 0===Z&&(Z=b.length),x>=b.length)return b;Z=Z>=b.length?b.length:(b.length+Z)%b.length;for(var O=x=(b.length+x)%b.length;O>>16&255,x>>>8&255,255&x]},E.fromColorRGB=function(x){return(255&x[0])<<16|(255&x[1])<<8|255&x[2]},E.prototype.clone=function(){var x=new E;return x.fg=this.fg,x.bg=this.bg,x.extended=this.extended.clone(),x},E.prototype.isInverse=function(){return 67108864&this.fg},E.prototype.isBold=function(){return 134217728&this.fg},E.prototype.isUnderline=function(){return 268435456&this.fg},E.prototype.isBlink=function(){return 536870912&this.fg},E.prototype.isInvisible=function(){return 1073741824&this.fg},E.prototype.isItalic=function(){return 67108864&this.bg},E.prototype.isDim=function(){return 134217728&this.bg},E.prototype.isStrikethrough=function(){return 2147483648&this.fg},E.prototype.getFgColorMode=function(){return 50331648&this.fg},E.prototype.getBgColorMode=function(){return 50331648&this.bg},E.prototype.isFgRGB=function(){return 50331648==(50331648&this.fg)},E.prototype.isBgRGB=function(){return 50331648==(50331648&this.bg)},E.prototype.isFgPalette=function(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)},E.prototype.isBgPalette=function(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)},E.prototype.isFgDefault=function(){return 0==(50331648&this.fg)},E.prototype.isBgDefault=function(){return 0==(50331648&this.bg)},E.prototype.isAttributeDefault=function(){return 0===this.fg&&0===this.bg},E.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},E.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},E.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},E.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},E.prototype.getUnderlineColor=function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()},E.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},E.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648==(50331648&this.extended.underlineColor):this.isFgRGB()},E.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?16777216==(50331648&this.extended.underlineColor)||33554432==(50331648&this.extended.underlineColor):this.isFgPalette()},E.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?0==(50331648&this.extended.underlineColor):this.isFgDefault()},E.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},E}();w.AttributeData=R;var b=function(){function E(x,Z){void 0===x&&(x=0),void 0===Z&&(Z=-1),this.underlineStyle=x,this.underlineColor=Z}return E.prototype.clone=function(){return new E(this.underlineStyle,this.underlineColor)},E.prototype.isEmpty=function(){return 0===this.underlineStyle},E}();w.ExtendedAttrs=b},9092:function(L,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.BufferStringIterator=w.Buffer=w.MAX_BUFFER_SIZE=void 0;var b=R(6349),E=R(8437),x=R(511),Z=R(643),O=R(4634),y=R(4863),T=R(7116),D=R(3734);w.MAX_BUFFER_SIZE=4294967295;var v=function(){function M(k,S,I){this._hasScrollback=k,this._optionsService=S,this._bufferService=I,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=E.DEFAULT_ATTR_DATA.clone(),this.savedCharset=T.DEFAULT_CHARSET,this.markers=[],this._nullCell=x.CellData.fromCharData([0,Z.NULL_CELL_CHAR,Z.NULL_CELL_WIDTH,Z.NULL_CELL_CODE]),this._whitespaceCell=x.CellData.fromCharData([0,Z.WHITESPACE_CELL_CHAR,Z.WHITESPACE_CELL_WIDTH,Z.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new b.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return M.prototype.getNullCell=function(k){return k?(this._nullCell.fg=k.fg,this._nullCell.bg=k.bg,this._nullCell.extended=k.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new D.ExtendedAttrs),this._nullCell},M.prototype.getWhitespaceCell=function(k){return k?(this._whitespaceCell.fg=k.fg,this._whitespaceCell.bg=k.bg,this._whitespaceCell.extended=k.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new D.ExtendedAttrs),this._whitespaceCell},M.prototype.getBlankLine=function(k,S){return new E.BufferLine(this._bufferService.cols,this.getNullCell(k),S)},Object.defineProperty(M.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"isCursorInViewport",{get:function(){var S=this.ybase+this.y-this.ydisp;return S>=0&&Sw.MAX_BUFFER_SIZE?w.MAX_BUFFER_SIZE:S},M.prototype.fillViewportRows=function(k){if(0===this.lines.length){void 0===k&&(k=E.DEFAULT_ATTR_DATA);for(var S=this._rows;S--;)this.lines.push(this.getBlankLine(k))}},M.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new b.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},M.prototype.resize=function(k,S){var I=this.getNullCell(E.DEFAULT_ATTR_DATA),F=this._getCorrectBufferLength(S);if(F>this.lines.maxLength&&(this.lines.maxLength=F),this.lines.length>0){if(this._cols0&&this.lines.length<=this.ybase+this.y+X+1?(this.ybase--,X++,this.ydisp>0&&this.ydisp--):this.lines.push(new E.BufferLine(k,I)));else for(W=this._rows;W>S;W--)this.lines.length>S+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(F0&&(this.lines.trimStart(Y),this.ybase=Math.max(this.ybase-Y,0),this.ydisp=Math.max(this.ydisp-Y,0),this.savedY=Math.max(this.savedY-Y,0)),this.lines.maxLength=F}this.x=Math.min(this.x,k-1),this.y=Math.min(this.y,S-1),X&&(this.y+=X),this.savedX=Math.min(this.savedX,k-1),this.scrollTop=0}if(this.scrollBottom=S-1,this._isReflowEnabled&&(this._reflow(k,S),this._cols>k))for(G=0;Gthis._cols?this._reflowLarger(k,S):this._reflowSmaller(k,S))},M.prototype._reflowLarger=function(k,S){var I=(0,O.reflowLargerGetLinesToRemove)(this.lines,this._cols,k,this.ybase+this.y,this.getNullCell(E.DEFAULT_ATTR_DATA));if(I.length>0){var F=(0,O.reflowLargerCreateNewLayout)(this.lines,I);(0,O.reflowLargerApplyNewLayout)(this.lines,F.layout),this._reflowLargerAdjustViewport(k,S,F.countRemoved)}},M.prototype._reflowLargerAdjustViewport=function(k,S,I){for(var F=this.getNullCell(E.DEFAULT_ATTR_DATA),G=I;G-- >0;)0===this.ybase?(this.y>0&&this.y--,this.lines.length=0;X--){var W=this.lines.get(X);if(!(!W||!W.isWrapped&&W.getTrimmedLength()<=k)){for(var Y=[W];W.isWrapped&&X>0;)W=this.lines.get(--X),Y.unshift(W);var ae=this.ybase+this.y;if(!(ae>=X&&ae0&&(F.push({start:X+Y.length+G,newLines:de}),G+=de.length),Y.push.apply(Y,de);var ge=ce.length-1,qe=ce[ge];0===qe&&(qe=ce[--ge]);for(var De=Y.length-he-1,Qe=fe;De>=0;){var et=Math.min(Qe,qe);if(Y[ge].copyCellsFrom(Y[De],Qe-et,qe-et,et,!0),0==(qe-=et)&&(qe=ce[--ge]),0==(Qe-=et)){De--;var bt=Math.max(De,0);Qe=(0,O.getWrappedLineTrimmedLength)(Y,bt,this._cols)}}for(oe=0;oe0;)0===this.ybase?this.y0){var xe=[],He=[];for(oe=0;oe=0;oe--)if(Tt&&Tt.start>tt+mt){for(var Yt=Tt.newLines.length-1;Yt>=0;Yt--)this.lines.set(oe--,Tt.newLines[Yt]);oe++,xe.push({index:tt+1,amount:Tt.newLines.length}),mt+=Tt.newLines.length,Tt=F[++Zt]}else this.lines.set(oe,He[tt--]);var un=0;for(oe=xe.length-1;oe>=0;oe--)xe[oe].index+=un,this.lines.onInsertEmitter.fire(xe[oe]),un+=xe[oe].amount;var Ut=Math.max(0,st+G-this.lines.maxLength);Ut>0&&this.lines.onTrimEmitter.fire(Ut)}},M.prototype.stringIndexToBufferIndex=function(k,S,I){for(void 0===I&&(I=!1);S;){var F=this.lines.get(k);if(!F)return[-1,-1];for(var G=I?F.getTrimmedLength():F.length,X=0;X0&&this.lines.get(S).isWrapped;)S--;for(;I+10;);return k>=this._cols?this._cols-1:k<0?0:k},M.prototype.nextStop=function(k){for(null==k&&(k=this.x);!this.tabs[++k]&&k=this._cols?this._cols-1:k<0?0:k},M.prototype.addMarker=function(k){var S=this,I=new y.Marker(k);return this.markers.push(I),I.register(this.lines.onTrim(function(F){I.line-=F,I.line<0&&I.dispose()})),I.register(this.lines.onInsert(function(F){I.line>=F.index&&(I.line+=F.amount)})),I.register(this.lines.onDelete(function(F){I.line>=F.index&&I.lineF.index&&(I.line-=F.amount)})),I.register(I.onDispose(function(){return S._removeMarker(I)})),I},M.prototype._removeMarker=function(k){this.markers.splice(this.markers.indexOf(k),1)},M.prototype.iterator=function(k,S,I,F,G){return new g(this,k,S,I,F,G)},M}();w.Buffer=v;var g=function(){function M(k,S,I,F,G,X){void 0===I&&(I=0),void 0===F&&(F=k.lines.length),void 0===G&&(G=0),void 0===X&&(X=0),this._buffer=k,this._trimRight=S,this._startIndex=I,this._endIndex=F,this._startOverscan=G,this._endOverscan=X,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return M.prototype.hasNext=function(){return this._currentthis._endIndex+this._endOverscan&&(k.last=this._endIndex+this._endOverscan),k.first=Math.max(k.first,0),k.last=Math.min(k.last,this._buffer.lines.length);for(var S="",I=k.first;I<=k.last;++I)S+=this._buffer.translateBufferLineToString(I,this._trimRight);return this._current=k.last+1,{range:k,content:S}},M}();w.BufferStringIterator=g},8437:function(L,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.BufferLine=w.DEFAULT_ATTR_DATA=void 0;var b=R(482),E=R(643),x=R(511),Z=R(3734);w.DEFAULT_ATTR_DATA=Object.freeze(new Z.AttributeData);var O=function(){function y(T,D,v){void 0===v&&(v=!1),this.isWrapped=v,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*T);for(var g=D||x.CellData.fromCharData([0,E.NULL_CELL_CHAR,E.NULL_CELL_WIDTH,E.NULL_CELL_CODE]),M=0;M>22,2097152&D?this._combined[T].charCodeAt(this._combined[T].length-1):v]},y.prototype.set=function(T,D){this._data[3*T+1]=D[E.CHAR_DATA_ATTR_INDEX],D[E.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[T]=D[1],this._data[3*T+0]=2097152|T|D[E.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*T+0]=D[E.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|D[E.CHAR_DATA_WIDTH_INDEX]<<22},y.prototype.getWidth=function(T){return this._data[3*T+0]>>22},y.prototype.hasWidth=function(T){return 12582912&this._data[3*T+0]},y.prototype.getFg=function(T){return this._data[3*T+1]},y.prototype.getBg=function(T){return this._data[3*T+2]},y.prototype.hasContent=function(T){return 4194303&this._data[3*T+0]},y.prototype.getCodePoint=function(T){var D=this._data[3*T+0];return 2097152&D?this._combined[T].charCodeAt(this._combined[T].length-1):2097151&D},y.prototype.isCombined=function(T){return 2097152&this._data[3*T+0]},y.prototype.getString=function(T){var D=this._data[3*T+0];return 2097152&D?this._combined[T]:2097151&D?(0,b.stringFromCodePoint)(2097151&D):""},y.prototype.loadCell=function(T,D){var v=3*T;return D.content=this._data[v+0],D.fg=this._data[v+1],D.bg=this._data[v+2],2097152&D.content&&(D.combinedData=this._combined[T]),268435456&D.bg&&(D.extended=this._extendedAttrs[T]),D},y.prototype.setCell=function(T,D){2097152&D.content&&(this._combined[T]=D.combinedData),268435456&D.bg&&(this._extendedAttrs[T]=D.extended),this._data[3*T+0]=D.content,this._data[3*T+1]=D.fg,this._data[3*T+2]=D.bg},y.prototype.setCellFromCodePoint=function(T,D,v,g,M,k){268435456&M&&(this._extendedAttrs[T]=k),this._data[3*T+0]=D|v<<22,this._data[3*T+1]=g,this._data[3*T+2]=M},y.prototype.addCodepointToCell=function(T,D){var v=this._data[3*T+0];2097152&v?this._combined[T]+=(0,b.stringFromCodePoint)(D):(2097151&v?(this._combined[T]=(0,b.stringFromCodePoint)(2097151&v)+(0,b.stringFromCodePoint)(D),v&=-2097152,v|=2097152):v=D|1<<22,this._data[3*T+0]=v)},y.prototype.insertCells=function(T,D,v,g){if((T%=this.length)&&2===this.getWidth(T-1)&&this.setCellFromCodePoint(T-1,0,1,(null==g?void 0:g.fg)||0,(null==g?void 0:g.bg)||0,(null==g?void 0:g.extended)||new Z.ExtendedAttrs),D=0;--k)this.setCell(T+D+k,this.loadCell(T+k,M));for(k=0;kthis.length){var v=new Uint32Array(3*T);this.length&&v.set(3*T=T&&delete this._combined[k]}}else this._data=new Uint32Array(0),this._combined={};this.length=T}},y.prototype.fill=function(T){this._combined={},this._extendedAttrs={};for(var D=0;D=0;--T)if(4194303&this._data[3*T+0])return T+(this._data[3*T+0]>>22);return 0},y.prototype.copyCellsFrom=function(T,D,v,g,M){var k=T._data;if(M)for(var S=g-1;S>=0;S--)for(var I=0;I<3;I++)this._data[3*(v+S)+I]=k[3*(D+S)+I];else for(S=0;S=D&&(this._combined[G-D+v]=T._combined[G])}},y.prototype.translateToString=function(T,D,v){void 0===T&&(T=!1),void 0===D&&(D=0),void 0===v&&(v=this.length),T&&(v=Math.min(v,this.getTrimmedLength()));for(var g="";D>22||1}return g},y}();w.BufferLine=O},4841:function(L,w){Object.defineProperty(w,"__esModule",{value:!0}),w.getRangeLength=void 0,w.getRangeLength=function(R,b){if(R.start.y>R.end.y)throw new Error("Buffer range end ("+R.end.x+", "+R.end.y+") cannot be before start ("+R.start.x+", "+R.start.y+")");return b*(R.end.y-R.start.y)+(R.end.x-R.start.x+1)}},4634:function(L,w){function R(b,E,x){if(E===b.length-1)return b[E].getTrimmedLength();var Z=!b[E].hasContent(x-1)&&1===b[E].getWidth(x-1),O=2===b[E+1].getWidth(0);return Z&&O?x-1:x}Object.defineProperty(w,"__esModule",{value:!0}),w.getWrappedLineTrimmedLength=w.reflowSmallerGetNewLineLengths=w.reflowLargerApplyNewLayout=w.reflowLargerCreateNewLayout=w.reflowLargerGetLinesToRemove=void 0,w.reflowLargerGetLinesToRemove=function(b,E,x,Z,O){for(var y=[],T=0;T=T&&Z0&&(ae>M||0===g[ae].getTrimmedLength());ae--)Y++;Y>0&&(y.push(T+g.length-Y),y.push(Y)),T+=g.length-1}}}return y},w.reflowLargerCreateNewLayout=function(b,E){for(var x=[],Z=0,O=E[Z],y=0,T=0;Tv&&(y-=v,T++);var g=2===b[T].getWidth(y-1);g&&y--;var M=g?x-1:x;Z.push(M),D+=M}return Z},w.getWrappedLineTrimmedLength=R},5295:function(L,w,R){var b,E=this&&this.__extends||(b=function(T,D){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,g){v.__proto__=g}||function(v,g){for(var M in g)Object.prototype.hasOwnProperty.call(g,M)&&(v[M]=g[M])})(T,D)},function(y,T){if("function"!=typeof T&&null!==T)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");function D(){this.constructor=y}b(y,T),y.prototype=null===T?Object.create(T):(D.prototype=T.prototype,new D)});Object.defineProperty(w,"__esModule",{value:!0}),w.BufferSet=void 0;var x=R(9092),Z=R(8460),O=function(y){function T(D,v){var g=y.call(this)||this;return g._optionsService=D,g._bufferService=v,g._onBufferActivate=g.register(new Z.EventEmitter),g.reset(),g}return E(T,y),Object.defineProperty(T.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),T.prototype.reset=function(){this._normal=new x.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new x.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()},Object.defineProperty(T.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),T.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},T.prototype.activateAltBuffer=function(D){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(D),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},T.prototype.resize=function(D,v){this._normal.resize(D,v),this._alt.resize(D,v)},T.prototype.setupTabStops=function(D){this._normal.setupTabStops(D),this._alt.setupTabStops(D)},T}(R(844).Disposable);w.BufferSet=O},511:function(L,w,R){var b,E=this&&this.__extends||(b=function(D,v){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,M){g.__proto__=M}||function(g,M){for(var k in M)Object.prototype.hasOwnProperty.call(M,k)&&(g[k]=M[k])})(D,v)},function(T,D){if("function"!=typeof D&&null!==D)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");function v(){this.constructor=T}b(T,D),T.prototype=null===D?Object.create(D):(v.prototype=D.prototype,new v)});Object.defineProperty(w,"__esModule",{value:!0}),w.CellData=void 0;var x=R(482),Z=R(643),O=R(3734),y=function(T){function D(){var v=null!==T&&T.apply(this,arguments)||this;return v.content=0,v.fg=0,v.bg=0,v.extended=new O.ExtendedAttrs,v.combinedData="",v}return E(D,T),D.fromCharData=function(v){var g=new D;return g.setFromCharData(v),g},D.prototype.isCombined=function(){return 2097152&this.content},D.prototype.getWidth=function(){return this.content>>22},D.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,x.stringFromCodePoint)(2097151&this.content):""},D.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},D.prototype.setFromCharData=function(v){this.fg=v[Z.CHAR_DATA_ATTR_INDEX],this.bg=0;var g=!1;if(v[Z.CHAR_DATA_CHAR_INDEX].length>2)g=!0;else if(2===v[Z.CHAR_DATA_CHAR_INDEX].length){var M=v[Z.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=M&&M<=56319){var k=v[Z.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=k&&k<=57343?this.content=1024*(M-55296)+k-56320+65536|v[Z.CHAR_DATA_WIDTH_INDEX]<<22:g=!0}else g=!0}else this.content=v[Z.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|v[Z.CHAR_DATA_WIDTH_INDEX]<<22;g&&(this.combinedData=v[Z.CHAR_DATA_CHAR_INDEX],this.content=2097152|v[Z.CHAR_DATA_WIDTH_INDEX]<<22)},D.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},D}(O.AttributeData);w.CellData=y},643:function(L,w){Object.defineProperty(w,"__esModule",{value:!0}),w.WHITESPACE_CELL_CODE=w.WHITESPACE_CELL_WIDTH=w.WHITESPACE_CELL_CHAR=w.NULL_CELL_CODE=w.NULL_CELL_WIDTH=w.NULL_CELL_CHAR=w.CHAR_DATA_CODE_INDEX=w.CHAR_DATA_WIDTH_INDEX=w.CHAR_DATA_CHAR_INDEX=w.CHAR_DATA_ATTR_INDEX=w.DEFAULT_ATTR=w.DEFAULT_COLOR=void 0,w.DEFAULT_COLOR=256,w.DEFAULT_ATTR=256|w.DEFAULT_COLOR<<9,w.CHAR_DATA_ATTR_INDEX=0,w.CHAR_DATA_CHAR_INDEX=1,w.CHAR_DATA_WIDTH_INDEX=2,w.CHAR_DATA_CODE_INDEX=3,w.NULL_CELL_CHAR="",w.NULL_CELL_WIDTH=1,w.NULL_CELL_CODE=0,w.WHITESPACE_CELL_CHAR=" ",w.WHITESPACE_CELL_WIDTH=1,w.WHITESPACE_CELL_CODE=32},4863:function(L,w,R){var b,E=this&&this.__extends||(b=function(y,T){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,v){D.__proto__=v}||function(D,v){for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(D[g]=v[g])})(y,T)},function(O,y){if("function"!=typeof y&&null!==y)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function T(){this.constructor=O}b(O,y),O.prototype=null===y?Object.create(y):(T.prototype=y.prototype,new T)});Object.defineProperty(w,"__esModule",{value:!0}),w.Marker=void 0;var x=R(8460),Z=function(O){function y(T){var D=O.call(this)||this;return D.line=T,D._id=y._nextId++,D.isDisposed=!1,D._onDispose=new x.EventEmitter,D}return E(y,O),Object.defineProperty(y.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),y.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),O.prototype.dispose.call(this))},y._nextId=1,y}(R(844).Disposable);w.Marker=Z},7116:function(L,w){Object.defineProperty(w,"__esModule",{value:!0}),w.DEFAULT_CHARSET=w.CHARSETS=void 0,w.CHARSETS={},w.DEFAULT_CHARSET=w.CHARSETS.B,w.CHARSETS[0]={"`":"\u25c6",a:"\u2592",b:"\u2409",c:"\u240c",d:"\u240d",e:"\u240a",f:"\xb0",g:"\xb1",h:"\u2424",i:"\u240b",j:"\u2518",k:"\u2510",l:"\u250c",m:"\u2514",n:"\u253c",o:"\u23ba",p:"\u23bb",q:"\u2500",r:"\u23bc",s:"\u23bd",t:"\u251c",u:"\u2524",v:"\u2534",w:"\u252c",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03c0","|":"\u2260","}":"\xa3","~":"\xb7"},w.CHARSETS.A={"#":"\xa3"},w.CHARSETS.B=void 0,w.CHARSETS[4]={"#":"\xa3","@":"\xbe","[":"ij","\\":"\xbd","]":"|","{":"\xa8","|":"f","}":"\xbc","~":"\xb4"},w.CHARSETS.C=w.CHARSETS[5]={"[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},w.CHARSETS.R={"#":"\xa3","@":"\xe0","[":"\xb0","\\":"\xe7","]":"\xa7","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xa8"},w.CHARSETS.Q={"@":"\xe0","[":"\xe2","\\":"\xe7","]":"\xea","^":"\xee","`":"\xf4","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xfb"},w.CHARSETS.K={"@":"\xa7","[":"\xc4","\\":"\xd6","]":"\xdc","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xdf"},w.CHARSETS.Y={"#":"\xa3","@":"\xa7","[":"\xb0","\\":"\xe7","]":"\xe9","`":"\xf9","{":"\xe0","|":"\xf2","}":"\xe8","~":"\xec"},w.CHARSETS.E=w.CHARSETS[6]={"@":"\xc4","[":"\xc6","\\":"\xd8","]":"\xc5","^":"\xdc","`":"\xe4","{":"\xe6","|":"\xf8","}":"\xe5","~":"\xfc"},w.CHARSETS.Z={"#":"\xa3","@":"\xa7","[":"\xa1","\\":"\xd1","]":"\xbf","{":"\xb0","|":"\xf1","}":"\xe7"},w.CHARSETS.H=w.CHARSETS[7]={"@":"\xc9","[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},w.CHARSETS["="]={"#":"\xf9","@":"\xe0","[":"\xe9","\\":"\xe7","]":"\xea","^":"\xee",_:"\xe8","`":"\xf4","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xfb"}},2584:function(L,w){var R,b;Object.defineProperty(w,"__esModule",{value:!0}),w.C1=w.C0=void 0,(b=w.C0||(w.C0={})).NUL="\0",b.SOH="\x01",b.STX="\x02",b.ETX="\x03",b.EOT="\x04",b.ENQ="\x05",b.ACK="\x06",b.BEL="\x07",b.BS="\b",b.HT="\t",b.LF="\n",b.VT="\v",b.FF="\f",b.CR="\r",b.SO="\x0e",b.SI="\x0f",b.DLE="\x10",b.DC1="\x11",b.DC2="\x12",b.DC3="\x13",b.DC4="\x14",b.NAK="\x15",b.SYN="\x16",b.ETB="\x17",b.CAN="\x18",b.EM="\x19",b.SUB="\x1a",b.ESC="\x1b",b.FS="\x1c",b.GS="\x1d",b.RS="\x1e",b.US="\x1f",b.SP=" ",b.DEL="\x7f",(R=w.C1||(w.C1={})).PAD="\x80",R.HOP="\x81",R.BPH="\x82",R.NBH="\x83",R.IND="\x84",R.NEL="\x85",R.SSA="\x86",R.ESA="\x87",R.HTS="\x88",R.HTJ="\x89",R.VTS="\x8a",R.PLD="\x8b",R.PLU="\x8c",R.RI="\x8d",R.SS2="\x8e",R.SS3="\x8f",R.DCS="\x90",R.PU1="\x91",R.PU2="\x92",R.STS="\x93",R.CCH="\x94",R.MW="\x95",R.SPA="\x96",R.EPA="\x97",R.SOS="\x98",R.SGCI="\x99",R.SCI="\x9a",R.CSI="\x9b",R.ST="\x9c",R.OSC="\x9d",R.PM="\x9e",R.APC="\x9f"},7399:function(L,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.evaluateKeyboardEvent=void 0;var b=R(2584),E={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};w.evaluateKeyboardEvent=function(x,Z,O,y){var T={type:0,cancel:!1,key:void 0},D=(x.shiftKey?1:0)|(x.altKey?2:0)|(x.ctrlKey?4:0)|(x.metaKey?8:0);switch(x.keyCode){case 0:"UIKeyInputUpArrow"===x.key?T.key=Z?b.C0.ESC+"OA":b.C0.ESC+"[A":"UIKeyInputLeftArrow"===x.key?T.key=Z?b.C0.ESC+"OD":b.C0.ESC+"[D":"UIKeyInputRightArrow"===x.key?T.key=Z?b.C0.ESC+"OC":b.C0.ESC+"[C":"UIKeyInputDownArrow"===x.key&&(T.key=Z?b.C0.ESC+"OB":b.C0.ESC+"[B");break;case 8:if(x.shiftKey){T.key=b.C0.BS;break}if(x.altKey){T.key=b.C0.ESC+b.C0.DEL;break}T.key=b.C0.DEL;break;case 9:if(x.shiftKey){T.key=b.C0.ESC+"[Z";break}T.key=b.C0.HT,T.cancel=!0;break;case 13:T.key=x.altKey?b.C0.ESC+b.C0.CR:b.C0.CR,T.cancel=!0;break;case 27:T.key=b.C0.ESC,x.altKey&&(T.key=b.C0.ESC+b.C0.ESC),T.cancel=!0;break;case 37:if(x.metaKey)break;D?(T.key=b.C0.ESC+"[1;"+(D+1)+"D",T.key===b.C0.ESC+"[1;3D"&&(T.key=b.C0.ESC+(O?"b":"[1;5D"))):T.key=Z?b.C0.ESC+"OD":b.C0.ESC+"[D";break;case 39:if(x.metaKey)break;D?(T.key=b.C0.ESC+"[1;"+(D+1)+"C",T.key===b.C0.ESC+"[1;3C"&&(T.key=b.C0.ESC+(O?"f":"[1;5C"))):T.key=Z?b.C0.ESC+"OC":b.C0.ESC+"[C";break;case 38:if(x.metaKey)break;D?(T.key=b.C0.ESC+"[1;"+(D+1)+"A",O||T.key!==b.C0.ESC+"[1;3A"||(T.key=b.C0.ESC+"[1;5A")):T.key=Z?b.C0.ESC+"OA":b.C0.ESC+"[A";break;case 40:if(x.metaKey)break;D?(T.key=b.C0.ESC+"[1;"+(D+1)+"B",O||T.key!==b.C0.ESC+"[1;3B"||(T.key=b.C0.ESC+"[1;5B")):T.key=Z?b.C0.ESC+"OB":b.C0.ESC+"[B";break;case 45:x.shiftKey||x.ctrlKey||(T.key=b.C0.ESC+"[2~");break;case 46:T.key=D?b.C0.ESC+"[3;"+(D+1)+"~":b.C0.ESC+"[3~";break;case 36:T.key=D?b.C0.ESC+"[1;"+(D+1)+"H":Z?b.C0.ESC+"OH":b.C0.ESC+"[H";break;case 35:T.key=D?b.C0.ESC+"[1;"+(D+1)+"F":Z?b.C0.ESC+"OF":b.C0.ESC+"[F";break;case 33:x.shiftKey?T.type=2:T.key=b.C0.ESC+"[5~";break;case 34:x.shiftKey?T.type=3:T.key=b.C0.ESC+"[6~";break;case 112:T.key=D?b.C0.ESC+"[1;"+(D+1)+"P":b.C0.ESC+"OP";break;case 113:T.key=D?b.C0.ESC+"[1;"+(D+1)+"Q":b.C0.ESC+"OQ";break;case 114:T.key=D?b.C0.ESC+"[1;"+(D+1)+"R":b.C0.ESC+"OR";break;case 115:T.key=D?b.C0.ESC+"[1;"+(D+1)+"S":b.C0.ESC+"OS";break;case 116:T.key=D?b.C0.ESC+"[15;"+(D+1)+"~":b.C0.ESC+"[15~";break;case 117:T.key=D?b.C0.ESC+"[17;"+(D+1)+"~":b.C0.ESC+"[17~";break;case 118:T.key=D?b.C0.ESC+"[18;"+(D+1)+"~":b.C0.ESC+"[18~";break;case 119:T.key=D?b.C0.ESC+"[19;"+(D+1)+"~":b.C0.ESC+"[19~";break;case 120:T.key=D?b.C0.ESC+"[20;"+(D+1)+"~":b.C0.ESC+"[20~";break;case 121:T.key=D?b.C0.ESC+"[21;"+(D+1)+"~":b.C0.ESC+"[21~";break;case 122:T.key=D?b.C0.ESC+"[23;"+(D+1)+"~":b.C0.ESC+"[23~";break;case 123:T.key=D?b.C0.ESC+"[24;"+(D+1)+"~":b.C0.ESC+"[24~";break;default:if(!x.ctrlKey||x.shiftKey||x.altKey||x.metaKey)if(O&&!y||!x.altKey||x.metaKey)!O||x.altKey||x.ctrlKey||x.shiftKey||!x.metaKey?x.key&&!x.ctrlKey&&!x.altKey&&!x.metaKey&&x.keyCode>=48&&1===x.key.length?T.key=x.key:x.key&&x.ctrlKey&&"_"===x.key&&(T.key=b.C0.US):65===x.keyCode&&(T.type=1);else{var v=E[x.keyCode],g=v&&v[x.shiftKey?1:0];g?T.key=b.C0.ESC+g:x.keyCode>=65&&x.keyCode<=90&&(T.key=b.C0.ESC+String.fromCharCode(x.ctrlKey?x.keyCode-64:x.keyCode+32))}else x.keyCode>=65&&x.keyCode<=90?T.key=String.fromCharCode(x.keyCode-64):32===x.keyCode?T.key=b.C0.NUL:x.keyCode>=51&&x.keyCode<=55?T.key=String.fromCharCode(x.keyCode-51+27):56===x.keyCode?T.key=b.C0.DEL:219===x.keyCode?T.key=b.C0.ESC:220===x.keyCode?T.key=b.C0.FS:221===x.keyCode&&(T.key=b.C0.GS)}return T}},482:function(L,w){Object.defineProperty(w,"__esModule",{value:!0}),w.Utf8ToUtf32=w.StringToUtf32=w.utf32ToString=w.stringFromCodePoint=void 0,w.stringFromCodePoint=function(E){return E>65535?(E-=65536,String.fromCharCode(55296+(E>>10))+String.fromCharCode(E%1024+56320)):String.fromCharCode(E)},w.utf32ToString=function(E,x,Z){void 0===x&&(x=0),void 0===Z&&(Z=E.length);for(var O="",y=x;y65535?(T-=65536,O+=String.fromCharCode(55296+(T>>10))+String.fromCharCode(T%1024+56320)):O+=String.fromCharCode(T)}return O};var R=function(){function E(){this._interim=0}return E.prototype.clear=function(){this._interim=0},E.prototype.decode=function(x,Z){var O=x.length;if(!O)return 0;var y=0,T=0;this._interim&&(56320<=(g=x.charCodeAt(T++))&&g<=57343?Z[y++]=1024*(this._interim-55296)+g-56320+65536:(Z[y++]=this._interim,Z[y++]=g),this._interim=0);for(var D=T;D=O)return this._interim=v,y;var g;56320<=(g=x.charCodeAt(D))&&g<=57343?Z[y++]=1024*(v-55296)+g-56320+65536:(Z[y++]=v,Z[y++]=g)}else 65279!==v&&(Z[y++]=v)}return y},E}();w.StringToUtf32=R;var b=function(){function E(){this.interim=new Uint8Array(3)}return E.prototype.clear=function(){this.interim.fill(0)},E.prototype.decode=function(x,Z){var O=x.length;if(!O)return 0;var y,T,D,v,g=0,M=0,k=0;if(this.interim[0]){var S=!1,I=this.interim[0];I&=192==(224&I)?31:224==(240&I)?15:7;for(var F=0,G=void 0;(G=63&this.interim[++F])&&F<4;)I<<=6,I|=G;for(var X=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,W=X-F;k=O)return 0;if(128!=(192&(G=x[k++]))){k--,S=!0;break}this.interim[F++]=G,I<<=6,I|=63&G}S||(2===X?I<128?k--:Z[g++]=I:3===X?I<2048||I>=55296&&I<=57343||65279===I||(Z[g++]=I):I<65536||I>1114111||(Z[g++]=I)),this.interim.fill(0)}for(var Y=O-4,ae=k;ae=O)return this.interim[0]=y,g;if(128!=(192&(T=x[ae++]))){ae--;continue}if((M=(31&y)<<6|63&T)<128){ae--;continue}Z[g++]=M}else if(224==(240&y)){if(ae>=O)return this.interim[0]=y,g;if(128!=(192&(T=x[ae++]))){ae--;continue}if(ae>=O)return this.interim[0]=y,this.interim[1]=T,g;if(128!=(192&(D=x[ae++]))){ae--;continue}if((M=(15&y)<<12|(63&T)<<6|63&D)<2048||M>=55296&&M<=57343||65279===M)continue;Z[g++]=M}else if(240==(248&y)){if(ae>=O)return this.interim[0]=y,g;if(128!=(192&(T=x[ae++]))){ae--;continue}if(ae>=O)return this.interim[0]=y,this.interim[1]=T,g;if(128!=(192&(D=x[ae++]))){ae--;continue}if(ae>=O)return this.interim[0]=y,this.interim[1]=T,this.interim[2]=D,g;if(128!=(192&(v=x[ae++]))){ae--;continue}if((M=(7&y)<<18|(63&T)<<12|(63&D)<<6|63&v)<65536||M>1114111)continue;Z[g++]=M}}return g},E}();w.Utf8ToUtf32=b},225:function(L,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.UnicodeV6=void 0;var b,E=R(8273),x=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],Z=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],O=function(){function y(){if(this.version="6",!b){b=new Uint8Array(65536),(0,E.fill)(b,1),b[0]=0,(0,E.fill)(b,0,1,32),(0,E.fill)(b,0,127,160),(0,E.fill)(b,2,4352,4448),b[9001]=2,b[9002]=2,(0,E.fill)(b,2,11904,42192),b[12351]=1,(0,E.fill)(b,2,44032,55204),(0,E.fill)(b,2,63744,64256),(0,E.fill)(b,2,65040,65050),(0,E.fill)(b,2,65072,65136),(0,E.fill)(b,2,65280,65377),(0,E.fill)(b,2,65504,65511);for(var T=0;Tv[k][1])return!1;for(;k>=M;)if(D>v[g=M+k>>1][1])M=g+1;else{if(!(D=131072&&T<=196605||T>=196608&&T<=262141?2:1},y}();w.UnicodeV6=O},5981:function(L,w){Object.defineProperty(w,"__esModule",{value:!0}),w.WriteBuffer=void 0;var R="undefined"==typeof queueMicrotask?function(E){Promise.resolve().then(E)}:queueMicrotask,b=function(){function E(x){this._action=x,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0}return E.prototype.writeSync=function(x,Z){if(void 0!==Z&&this._syncCalls>Z)this._syncCalls=0;else if(this._pendingData+=x.length,this._writeBuffer.push(x),this._callbacks.push(void 0),this._syncCalls++,!this._isSyncWriting){var O;for(this._isSyncWriting=!0;O=this._writeBuffer.shift();){this._action(O);var y=this._callbacks.shift();y&&y()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}},E.prototype.write=function(x,Z){var O=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return O._innerWrite()})),this._pendingData+=x.length,this._writeBuffer.push(x),this._callbacks.push(Z)},E.prototype._innerWrite=function(x,Z){var O=this;void 0===x&&(x=0),void 0===Z&&(Z=!0);for(var y=x||Date.now();this._writeBuffer.length>this._bufferOffset;){var T=this._writeBuffer[this._bufferOffset],D=this._action(T,Z);if(D)return void D.catch(function(g){return R(function(){throw g}),Promise.resolve(!1)}).then(function(g){return Date.now()-y>=12?setTimeout(function(){return O._innerWrite(0,g)}):O._innerWrite(y,g)});var v=this._callbacks[this._bufferOffset];if(v&&v(),this._bufferOffset++,this._pendingData-=T.length,Date.now()-y>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(function(){return O._innerWrite()})):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0)},E}();w.WriteBuffer=b},5770:function(L,w){Object.defineProperty(w,"__esModule",{value:!0}),w.PAYLOAD_LIMIT=void 0,w.PAYLOAD_LIMIT=1e7},6351:function(L,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.DcsHandler=w.DcsParser=void 0;var b=R(482),E=R(8742),x=R(5770),Z=[],O=function(){function D(){this._handlers=Object.create(null),this._active=Z,this._ident=0,this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return D.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=Z},D.prototype.registerHandler=function(v,g){void 0===this._handlers[v]&&(this._handlers[v]=[]);var M=this._handlers[v];return M.push(g),{dispose:function(){var S=M.indexOf(g);-1!==S&&M.splice(S,1)}}},D.prototype.clearHandler=function(v){this._handlers[v]&&delete this._handlers[v]},D.prototype.setHandlerFallback=function(v){this._handlerFb=v},D.prototype.reset=function(){if(this._active.length)for(var v=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;v>=0;--v)this._active[v].unhook(!1);this._stack.paused=!1,this._active=Z,this._ident=0},D.prototype.hook=function(v,g){if(this.reset(),this._ident=v,this._active=this._handlers[v]||Z,this._active.length)for(var M=this._active.length-1;M>=0;M--)this._active[M].hook(g);else this._handlerFb(this._ident,"HOOK",g)},D.prototype.put=function(v,g,M){if(this._active.length)for(var k=this._active.length-1;k>=0;k--)this._active[k].put(v,g,M);else this._handlerFb(this._ident,"PUT",(0,b.utf32ToString)(v,g,M))},D.prototype.unhook=function(v,g){if(void 0===g&&(g=!0),this._active.length){var M=!1,k=this._active.length-1,S=!1;if(this._stack.paused&&(k=this._stack.loopPosition-1,M=g,S=this._stack.fallThrough,this._stack.paused=!1),!S&&!1===M){for(;k>=0&&!0!==(M=this._active[k].unhook(v));k--)if(M instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=k,this._stack.fallThrough=!1,M;k--}for(;k>=0;k--)if((M=this._active[k].unhook(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=k,this._stack.fallThrough=!0,M}else this._handlerFb(this._ident,"UNHOOK",v);this._active=Z,this._ident=0},D}();w.DcsParser=O;var y=new E.Params;y.addParam(0);var T=function(){function D(v){this._handler=v,this._data="",this._params=y,this._hitLimit=!1}return D.prototype.hook=function(v){this._params=v.length>1||v.params[0]?v.clone():y,this._data="",this._hitLimit=!1},D.prototype.put=function(v,g,M){this._hitLimit||(this._data+=(0,b.utf32ToString)(v,g,M),this._data.length>x.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},D.prototype.unhook=function(v){var g=this,M=!1;if(this._hitLimit)M=!1;else if(v&&(M=this._handler(this._data,this._params))instanceof Promise)return M.then(function(k){return g._params=y,g._data="",g._hitLimit=!1,k});return this._params=y,this._data="",this._hitLimit=!1,M},D}();w.DcsHandler=T},2015:function(L,w,R){var b,E=this&&this.__extends||(b=function(k,S){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,F){I.__proto__=F}||function(I,F){for(var G in F)Object.prototype.hasOwnProperty.call(F,G)&&(I[G]=F[G])})(k,S)},function(M,k){if("function"!=typeof k&&null!==k)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");function S(){this.constructor=M}b(M,k),M.prototype=null===k?Object.create(k):(S.prototype=k.prototype,new S)});Object.defineProperty(w,"__esModule",{value:!0}),w.EscapeSequenceParser=w.VT500_TRANSITION_TABLE=w.TransitionTable=void 0;var x=R(844),Z=R(8273),O=R(8742),y=R(6242),T=R(6351),D=function(){function M(k){this.table=new Uint8Array(k)}return M.prototype.setDefault=function(k,S){(0,Z.fill)(this.table,k<<4|S)},M.prototype.add=function(k,S,I,F){this.table[S<<8|k]=I<<4|F},M.prototype.addMany=function(k,S,I,F){for(var G=0;G1)throw new Error("only one byte as prefix supported");if((F=S.prefix.charCodeAt(0))&&60>F||F>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(S.intermediates){if(S.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var G=0;GX||X>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");F<<=8,F|=X}}if(1!==S.final.length)throw new Error("final must be a single byte");var W=S.final.charCodeAt(0);if(I[0]>W||W>I[1])throw new Error("final must be in range "+I[0]+" .. "+I[1]);return(F<<=8)|W},k.prototype.identToString=function(S){for(var I=[];S;)I.push(String.fromCharCode(255&S)),S>>=8;return I.reverse().join("")},k.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},k.prototype.setPrintHandler=function(S){this._printHandler=S},k.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},k.prototype.registerEscHandler=function(S,I){var F=this._identifier(S,[48,126]);void 0===this._escHandlers[F]&&(this._escHandlers[F]=[]);var G=this._escHandlers[F];return G.push(I),{dispose:function(){var W=G.indexOf(I);-1!==W&&G.splice(W,1)}}},k.prototype.clearEscHandler=function(S){this._escHandlers[this._identifier(S,[48,126])]&&delete this._escHandlers[this._identifier(S,[48,126])]},k.prototype.setEscHandlerFallback=function(S){this._escHandlerFb=S},k.prototype.setExecuteHandler=function(S,I){this._executeHandlers[S.charCodeAt(0)]=I},k.prototype.clearExecuteHandler=function(S){this._executeHandlers[S.charCodeAt(0)]&&delete this._executeHandlers[S.charCodeAt(0)]},k.prototype.setExecuteHandlerFallback=function(S){this._executeHandlerFb=S},k.prototype.registerCsiHandler=function(S,I){var F=this._identifier(S);void 0===this._csiHandlers[F]&&(this._csiHandlers[F]=[]);var G=this._csiHandlers[F];return G.push(I),{dispose:function(){var W=G.indexOf(I);-1!==W&&G.splice(W,1)}}},k.prototype.clearCsiHandler=function(S){this._csiHandlers[this._identifier(S)]&&delete this._csiHandlers[this._identifier(S)]},k.prototype.setCsiHandlerFallback=function(S){this._csiHandlerFb=S},k.prototype.registerDcsHandler=function(S,I){return this._dcsParser.registerHandler(this._identifier(S),I)},k.prototype.clearDcsHandler=function(S){this._dcsParser.clearHandler(this._identifier(S))},k.prototype.setDcsHandlerFallback=function(S){this._dcsParser.setHandlerFallback(S)},k.prototype.registerOscHandler=function(S,I){return this._oscParser.registerHandler(S,I)},k.prototype.clearOscHandler=function(S){this._oscParser.clearHandler(S)},k.prototype.setOscHandlerFallback=function(S){this._oscParser.setHandlerFallback(S)},k.prototype.setErrorHandler=function(S){this._errorHandler=S},k.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},k.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,0!==this._parseStack.state&&(this._parseStack.state=2,this._parseStack.handlers=[])},k.prototype._preserveStack=function(S,I,F,G,X){this._parseStack.state=S,this._parseStack.handlers=I,this._parseStack.handlerPos=F,this._parseStack.transition=G,this._parseStack.chunkPos=X},k.prototype.parse=function(S,I,F){var G,X=0,W=0,Y=0;if(this._parseStack.state)if(2===this._parseStack.state)this._parseStack.state=0,Y=this._parseStack.chunkPos+1;else{if(void 0===F||1===this._parseStack.state)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");var ae=this._parseStack.handlers,K=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(!1===F&&K>-1)for(;K>=0&&!0!==(G=ae[K](this._params));K--)if(G instanceof Promise)return this._parseStack.handlerPos=K,G;this._parseStack.handlers=[];break;case 4:if(!1===F&&K>-1)for(;K>=0&&!0!==(G=ae[K]());K--)if(G instanceof Promise)return this._parseStack.handlerPos=K,G;this._parseStack.handlers=[];break;case 6:if(G=this._dcsParser.unhook(24!==(X=S[this._parseStack.chunkPos])&&26!==X,F))return G;27===X&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(G=this._oscParser.end(24!==(X=S[this._parseStack.chunkPos])&&26!==X,F))return G;27===X&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,Y=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(var fe=Y;fe>4){case 2:for(var ce=fe+1;;++ce){if(ce>=I||(X=S[ce])<32||X>126&&X=I||(X=S[ce])<32||X>126&&X=I||(X=S[ce])<32||X>126&&X=I||(X=S[ce])<32||X>126&&X=0&&!0!==(G=ae[he](this._params));he--)if(G instanceof Promise)return this._preserveStack(3,ae,he,W,fe),G;he<0&&this._csiHandlerFb(this._collect<<8|X,this._params),this.precedingCodepoint=0;break;case 8:do{switch(X){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(X-48)}}while(++fe47&&X<60);fe--;break;case 9:this._collect<<=8,this._collect|=X;break;case 10:for(var de=this._escHandlers[this._collect<<8|X],oe=de?de.length-1:-1;oe>=0&&!0!==(G=de[oe]());oe--)if(G instanceof Promise)return this._preserveStack(4,de,oe,W,fe),G;oe<0&&this._escHandlerFb(this._collect<<8|X),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|X,this._params);break;case 13:for(var Ce=fe+1;;++Ce)if(Ce>=I||24===(X=S[Ce])||26===X||27===X||X>127&&X=I||(X=S[ge])<32||X>127&&X=0;--T)this._active[T].end(!1);this._stack.paused=!1,this._active=x,this._id=-1,this._state=0},y.prototype._start=function(){if(this._active=this._handlers[this._id]||x,this._active.length)for(var T=this._active.length-1;T>=0;T--)this._active[T].start();else this._handlerFb(this._id,"START")},y.prototype._put=function(T,D,v){if(this._active.length)for(var g=this._active.length-1;g>=0;g--)this._active[g].put(T,D,v);else this._handlerFb(this._id,"PUT",(0,E.utf32ToString)(T,D,v))},y.prototype.start=function(){this.reset(),this._state=1},y.prototype.put=function(T,D,v){if(3!==this._state){if(1===this._state)for(;D0&&this._put(T,D,v)}},y.prototype.end=function(T,D){if(void 0===D&&(D=!0),0!==this._state){if(3!==this._state)if(1===this._state&&this._start(),this._active.length){var v=!1,g=this._active.length-1,M=!1;if(this._stack.paused&&(g=this._stack.loopPosition-1,v=D,M=this._stack.fallThrough,this._stack.paused=!1),!M&&!1===v){for(;g>=0&&!0!==(v=this._active[g].end(T));g--)if(v instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=g,this._stack.fallThrough=!1,v;g--}for(;g>=0;g--)if((v=this._active[g].end(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=g,this._stack.fallThrough=!0,v}else this._handlerFb(this._id,"END",T);this._active=x,this._id=-1,this._state=0}},y}();w.OscParser=Z;var O=function(){function y(T){this._handler=T,this._data="",this._hitLimit=!1}return y.prototype.start=function(){this._data="",this._hitLimit=!1},y.prototype.put=function(T,D,v){this._hitLimit||(this._data+=(0,E.utf32ToString)(T,D,v),this._data.length>b.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},y.prototype.end=function(T){var D=this,v=!1;if(this._hitLimit)v=!1;else if(T&&(v=this._handler(this._data))instanceof Promise)return v.then(function(g){return D._data="",D._hitLimit=!1,g});return this._data="",this._hitLimit=!1,v},y}();w.OscHandler=O},8742:function(L,w){Object.defineProperty(w,"__esModule",{value:!0}),w.Params=void 0;var R=2147483647,b=function(){function E(x,Z){if(void 0===x&&(x=32),void 0===Z&&(Z=32),this.maxLength=x,this.maxSubParamsLength=Z,Z>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(x),this.length=0,this._subParams=new Int32Array(Z),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(x),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return E.fromArray=function(x){var Z=new E;if(!x.length)return Z;for(var O=x[0]instanceof Array?1:0;O>8,y=255&this._subParamsIdx[Z];y-O>0&&x.push(Array.prototype.slice.call(this._subParams,O,y))}return x},E.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},E.prototype.addParam=function(x){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(x<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=x>R?R:x}},E.prototype.addSubParam=function(x){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(x<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=x>R?R:x,this._subParamsIdx[this.length-1]++}},E.prototype.hasSubParams=function(x){return(255&this._subParamsIdx[x])-(this._subParamsIdx[x]>>8)>0},E.prototype.getSubParams=function(x){var Z=this._subParamsIdx[x]>>8,O=255&this._subParamsIdx[x];return O-Z>0?this._subParams.subarray(Z,O):null},E.prototype.getSubParamsAll=function(){for(var x={},Z=0;Z>8,y=255&this._subParamsIdx[Z];y-O>0&&(x[Z]=this._subParams.slice(O,y))}return x},E.prototype.addDigit=function(x){var Z;if(!(this._rejectDigits||!(Z=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var O=this._digitIsSub?this._subParams:this.params,y=O[Z-1];O[Z-1]=~y?Math.min(10*y+x,R):x}},E}();w.Params=b},5741:function(L,w){Object.defineProperty(w,"__esModule",{value:!0}),w.AddonManager=void 0;var R=function(){function b(){this._addons=[]}return b.prototype.dispose=function(){for(var E=this._addons.length-1;E>=0;E--)this._addons[E].instance.dispose()},b.prototype.loadAddon=function(E,x){var Z=this,O={instance:x,dispose:x.dispose,isDisposed:!1};this._addons.push(O),x.dispose=function(){return Z._wrappedAddonDispose(O)},x.activate(E)},b.prototype._wrappedAddonDispose=function(E){if(!E.isDisposed){for(var x=-1,Z=0;Z=this._line.length))return O?(this._line.loadCell(Z,O),O):this._line.loadCell(Z,new b.CellData)},x.prototype.translateToString=function(Z,O,y){return this._line.translateToString(Z,O,y)},x}();w.BufferLineApiView=E},8285:function(L,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.BufferNamespaceApi=void 0;var b=R(8771),E=R(8460),x=function(){function Z(O){var y=this;this._core=O,this._onBufferChange=new E.EventEmitter,this._normal=new b.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new b.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(function(){return y._onBufferChange.fire(y.active)})}return Object.defineProperty(Z.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"active",{get:function(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"normal",{get:function(){return this._normal.init(this._core.buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"alternate",{get:function(){return this._alternate.init(this._core.buffers.alt)},enumerable:!1,configurable:!0}),Z}();w.BufferNamespaceApi=x},7975:function(L,w){Object.defineProperty(w,"__esModule",{value:!0}),w.ParserApi=void 0;var R=function(){function b(E){this._core=E}return b.prototype.registerCsiHandler=function(E,x){return this._core.registerCsiHandler(E,function(Z){return x(Z.toArray())})},b.prototype.addCsiHandler=function(E,x){return this.registerCsiHandler(E,x)},b.prototype.registerDcsHandler=function(E,x){return this._core.registerDcsHandler(E,function(Z,O){return x(Z,O.toArray())})},b.prototype.addDcsHandler=function(E,x){return this.registerDcsHandler(E,x)},b.prototype.registerEscHandler=function(E,x){return this._core.registerEscHandler(E,x)},b.prototype.addEscHandler=function(E,x){return this.registerEscHandler(E,x)},b.prototype.registerOscHandler=function(E,x){return this._core.registerOscHandler(E,x)},b.prototype.addOscHandler=function(E,x){return this.registerOscHandler(E,x)},b}();w.ParserApi=R},7090:function(L,w){Object.defineProperty(w,"__esModule",{value:!0}),w.UnicodeApi=void 0;var R=function(){function b(E){this._core=E}return b.prototype.register=function(E){this._core.unicodeService.register(E)},Object.defineProperty(b.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(x){this._core.unicodeService.activeVersion=x},enumerable:!1,configurable:!0}),b}();w.UnicodeApi=R},744:function(L,w,R){var b,E=this&&this.__extends||(b=function(M,k){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,I){S.__proto__=I}||function(S,I){for(var F in I)Object.prototype.hasOwnProperty.call(I,F)&&(S[F]=I[F])})(M,k)},function(g,M){if("function"!=typeof M&&null!==M)throw new TypeError("Class extends value "+String(M)+" is not a constructor or null");function k(){this.constructor=g}b(g,M),g.prototype=null===M?Object.create(M):(k.prototype=M.prototype,new k)}),x=this&&this.__decorate||function(g,M,k,S){var I,F=arguments.length,G=F<3?M:null===S?S=Object.getOwnPropertyDescriptor(M,k):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)G=Reflect.decorate(g,M,k,S);else for(var X=g.length-1;X>=0;X--)(I=g[X])&&(G=(F<3?I(G):F>3?I(M,k,G):I(M,k))||G);return F>3&&G&&Object.defineProperty(M,k,G),G},Z=this&&this.__param||function(g,M){return function(k,S){M(k,S,g)}};Object.defineProperty(w,"__esModule",{value:!0}),w.BufferService=w.MINIMUM_ROWS=w.MINIMUM_COLS=void 0;var O=R(2585),y=R(5295),T=R(8460),D=R(844);w.MINIMUM_COLS=2,w.MINIMUM_ROWS=1;var v=function(g){function M(k){var S=g.call(this)||this;return S._optionsService=k,S.isUserScrolling=!1,S._onResize=new T.EventEmitter,S._onScroll=new T.EventEmitter,S.cols=Math.max(k.options.cols||0,w.MINIMUM_COLS),S.rows=Math.max(k.options.rows||0,w.MINIMUM_ROWS),S.buffers=new y.BufferSet(k,S),S}return E(M,g),Object.defineProperty(M.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),M.prototype.dispose=function(){g.prototype.dispose.call(this),this.buffers.dispose()},M.prototype.resize=function(k,S){this.cols=k,this.rows=S,this.buffers.resize(k,S),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:k,rows:S})},M.prototype.reset=function(){this.buffers.reset(),this.isUserScrolling=!1},M.prototype.scroll=function(k,S){void 0===S&&(S=!1);var I,F=this.buffer;(I=this._cachedBlankLine)&&I.length===this.cols&&I.getFg(0)===k.fg&&I.getBg(0)===k.bg||(I=F.getBlankLine(k,S),this._cachedBlankLine=I),I.isWrapped=S;var G=F.ybase+F.scrollTop,X=F.ybase+F.scrollBottom;if(0===F.scrollTop){var W=F.lines.isFull;X===F.lines.length-1?W?F.lines.recycle().copyFrom(I):F.lines.push(I.clone()):F.lines.splice(X+1,0,I.clone()),W?this.isUserScrolling&&(F.ydisp=Math.max(F.ydisp-1,0)):(F.ybase++,this.isUserScrolling||F.ydisp++)}else F.lines.shiftElements(G+1,X-G+1-1,-1),F.lines.set(X,I.clone());this.isUserScrolling||(F.ydisp=F.ybase),this._onScroll.fire(F.ydisp)},M.prototype.scrollLines=function(k,S,I){var F=this.buffer;if(k<0){if(0===F.ydisp)return;this.isUserScrolling=!0}else k+F.ydisp>=F.ybase&&(this.isUserScrolling=!1);var G=F.ydisp;F.ydisp=Math.max(Math.min(F.ydisp+k,F.ybase),0),G!==F.ydisp&&(S||this._onScroll.fire(F.ydisp))},M.prototype.scrollPages=function(k){this.scrollLines(k*(this.rows-1))},M.prototype.scrollToTop=function(){this.scrollLines(-this.buffer.ydisp)},M.prototype.scrollToBottom=function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)},M.prototype.scrollToLine=function(k){var S=k-this.buffer.ydisp;0!==S&&this.scrollLines(S)},x([Z(0,O.IOptionsService)],M)}(D.Disposable);w.BufferService=v},7994:function(L,w){Object.defineProperty(w,"__esModule",{value:!0}),w.CharsetService=void 0;var R=function(){function b(){this.glevel=0,this._charsets=[]}return b.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},b.prototype.setgLevel=function(E){this.glevel=E,this.charset=this._charsets[E]},b.prototype.setgCharset=function(E,x){this._charsets[E]=x,this.glevel===E&&(this.charset=x)},b}();w.CharsetService=R},1753:function(L,w,R){var b=this&&this.__decorate||function(g,M,k,S){var I,F=arguments.length,G=F<3?M:null===S?S=Object.getOwnPropertyDescriptor(M,k):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)G=Reflect.decorate(g,M,k,S);else for(var X=g.length-1;X>=0;X--)(I=g[X])&&(G=(F<3?I(G):F>3?I(M,k,G):I(M,k))||G);return F>3&&G&&Object.defineProperty(M,k,G),G},E=this&&this.__param||function(g,M){return function(k,S){M(k,S,g)}};Object.defineProperty(w,"__esModule",{value:!0}),w.CoreMouseService=void 0;var x=R(2585),Z=R(8460),O={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(M){return 4!==M.button&&1===M.action&&(M.ctrl=!1,M.alt=!1,M.shift=!1,!0)}},VT200:{events:19,restrict:function(M){return 32!==M.action}},DRAG:{events:23,restrict:function(M){return 32!==M.action||3!==M.button}},ANY:{events:31,restrict:function(M){return!0}}};function y(g,M){var k=(g.ctrl?16:0)|(g.shift?4:0)|(g.alt?8:0);return 4===g.button?(k|=64,k|=g.action):(k|=3&g.button,4&g.button&&(k|=64),8&g.button&&(k|=128),32===g.action?k|=32:0!==g.action||M||(k|=3)),k}var T=String.fromCharCode,D={DEFAULT:function(M){var k=[y(M,!1)+32,M.col+32,M.row+32];return k[0]>255||k[1]>255||k[2]>255?"":"\x1b[M"+T(k[0])+T(k[1])+T(k[2])},SGR:function(M){var k=0===M.action&&4!==M.button?"m":"M";return"\x1b[<"+y(M,!0)+";"+M.col+";"+M.row+k}},v=function(){function g(M,k){this._bufferService=M,this._coreService=k,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new Z.EventEmitter,this._lastEvent=null;for(var S=0,I=Object.keys(O);S=this._bufferService.cols||M.row<0||M.row>=this._bufferService.rows||4===M.button&&32===M.action||3===M.button&&32!==M.action||4!==M.button&&(2===M.action||3===M.action)||(M.col++,M.row++,32===M.action&&this._lastEvent&&this._compareEvents(this._lastEvent,M))||!this._protocols[this._activeProtocol].restrict(M))return!1;var k=this._encodings[this._activeEncoding](M);return k&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(k):this._coreService.triggerDataEvent(k,!0)),this._lastEvent=M,!0},g.prototype.explainEvents=function(M){return{down:!!(1&M),up:!!(2&M),drag:!!(4&M),move:!!(8&M),wheel:!!(16&M)}},g.prototype._compareEvents=function(M,k){return M.col===k.col&&M.row===k.row&&M.button===k.button&&M.action===k.action&&M.ctrl===k.ctrl&&M.alt===k.alt&&M.shift===k.shift},b([E(0,x.IBufferService),E(1,x.ICoreService)],g)}();w.CoreMouseService=v},6975:function(L,w,R){var b,E=this&&this.__extends||(b=function(S,I){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,G){F.__proto__=G}||function(F,G){for(var X in G)Object.prototype.hasOwnProperty.call(G,X)&&(F[X]=G[X])})(S,I)},function(k,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function I(){this.constructor=k}b(k,S),k.prototype=null===S?Object.create(S):(I.prototype=S.prototype,new I)}),x=this&&this.__decorate||function(k,S,I,F){var G,X=arguments.length,W=X<3?S:null===F?F=Object.getOwnPropertyDescriptor(S,I):F;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)W=Reflect.decorate(k,S,I,F);else for(var Y=k.length-1;Y>=0;Y--)(G=k[Y])&&(W=(X<3?G(W):X>3?G(S,I,W):G(S,I))||W);return X>3&&W&&Object.defineProperty(S,I,W),W},Z=this&&this.__param||function(k,S){return function(I,F){S(I,F,k)}};Object.defineProperty(w,"__esModule",{value:!0}),w.CoreService=void 0;var O=R(2585),y=R(8460),T=R(1439),D=R(844),v=Object.freeze({insertMode:!1}),g=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),M=function(k){function S(I,F,G,X){var W=k.call(this)||this;return W._bufferService=F,W._logService=G,W._optionsService=X,W.isCursorInitialized=!1,W.isCursorHidden=!1,W._onData=W.register(new y.EventEmitter),W._onUserInput=W.register(new y.EventEmitter),W._onBinary=W.register(new y.EventEmitter),W._scrollToBottom=I,W.register({dispose:function(){return W._scrollToBottom=void 0}}),W.modes=(0,T.clone)(v),W.decPrivateModes=(0,T.clone)(g),W}return E(S,k),Object.defineProperty(S.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),S.prototype.reset=function(){this.modes=(0,T.clone)(v),this.decPrivateModes=(0,T.clone)(g)},S.prototype.triggerDataEvent=function(I,F){if(void 0===F&&(F=!1),!this._optionsService.options.disableStdin){var G=this._bufferService.buffer;G.ybase!==G.ydisp&&this._scrollToBottom(),F&&this._onUserInput.fire(),this._logService.debug('sending data "'+I+'"',function(){return I.split("").map(function(X){return X.charCodeAt(0)})}),this._onData.fire(I)}},S.prototype.triggerBinaryEvent=function(I){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+I+'"',function(){return I.split("").map(function(F){return F.charCodeAt(0)})}),this._onBinary.fire(I))},x([Z(1,O.IBufferService),Z(2,O.ILogService),Z(3,O.IOptionsService)],S)}(D.Disposable);w.CoreService=M},3730:function(L,w,R){var b=this&&this.__decorate||function(O,y,T,D){var v,g=arguments.length,M=g<3?y:null===D?D=Object.getOwnPropertyDescriptor(y,T):D;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)M=Reflect.decorate(O,y,T,D);else for(var k=O.length-1;k>=0;k--)(v=O[k])&&(M=(g<3?v(M):g>3?v(y,T,M):v(y,T))||M);return g>3&&M&&Object.defineProperty(y,T,M),M},E=this&&this.__param||function(O,y){return function(T,D){y(T,D,O)}};Object.defineProperty(w,"__esModule",{value:!0}),w.DirtyRowService=void 0;var x=R(2585),Z=function(){function O(y){this._bufferService=y,this.clearRange()}return Object.defineProperty(O.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),O.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},O.prototype.markDirty=function(y){ythis._end&&(this._end=y)},O.prototype.markRangeDirty=function(y,T){if(y>T){var D=y;y=T,T=D}ythis._end&&(this._end=T)},O.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},b([E(0,x.IBufferService)],O)}();w.DirtyRowService=Z},4348:function(L,w,R){var b=this&&this.__spreadArray||function(y,T,D){if(D||2===arguments.length)for(var v,g=0,M=T.length;g0?g[0].index:D.length;if(D.length!==G)throw new Error("[createInstance] First service dependency of "+T.name+" at position "+(G+1)+" conflicts with "+D.length+" static arguments");return new(T.bind.apply(T,b([void 0],b(b([],D,!0),M,!0),!1)))},y}();w.InstantiationService=O},7866:function(L,w,R){var b=this&&this.__decorate||function(T,D,v,g){var M,k=arguments.length,S=k<3?D:null===g?g=Object.getOwnPropertyDescriptor(D,v):g;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)S=Reflect.decorate(T,D,v,g);else for(var I=T.length-1;I>=0;I--)(M=T[I])&&(S=(k<3?M(S):k>3?M(D,v,S):M(D,v))||S);return k>3&&S&&Object.defineProperty(D,v,S),S},E=this&&this.__param||function(T,D){return function(v,g){D(v,g,T)}},x=this&&this.__spreadArray||function(T,D,v){if(v||2===arguments.length)for(var g,M=0,k=D.length;M=T)return y+this.wcwidth(v);var g=O.charCodeAt(D);56320<=g&&g<=57343?v=1024*(v-55296)+g-56320+65536:y+=this.wcwidth(g)}y+=this.wcwidth(v)}return y},Z}();w.UnicodeService=x}},f={};function B(V){var L=f[V];if(void 0!==L)return L.exports;var w=f[V]={exports:{}};return j[V].call(w.exports,w,w.exports,B),w.exports}var U={};return function(){var V=U;Object.defineProperty(V,"__esModule",{value:!0}),V.Terminal=void 0;var L=B(3236),w=B(9042),R=B(7975),b=B(7090),E=B(5741),x=B(8285),Z=function(){function O(y){this._core=new L.Terminal(y),this._addonManager=new E.AddonManager}return O.prototype._checkProposedApi=function(){if(!this._core.optionsService.options.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(O.prototype,"onBell",{get:function(){return this._core.onBell},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new R.ParserApi(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"unicode",{get:function(){return this._checkProposedApi(),new b.UnicodeApi(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"buffer",{get:function(){return this._checkProposedApi(),this._buffer||(this._buffer=new x.BufferNamespaceApi(this._core)),this._buffer},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"modes",{get:function(){var T=this._core.coreService.decPrivateModes,D="none";switch(this._core.coreMouseService.activeProtocol){case"X10":D="x10";break;case"VT200":D="vt200";break;case"DRAG":D="drag";break;case"ANY":D="any"}return{applicationCursorKeysMode:T.applicationCursorKeys,applicationKeypadMode:T.applicationKeypad,bracketedPasteMode:T.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:D,originMode:T.origin,reverseWraparoundMode:T.reverseWraparound,sendFocusMode:T.sendFocus,wraparoundMode:T.wraparound}},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"options",{get:function(){return this._core.options},enumerable:!1,configurable:!0}),O.prototype.blur=function(){this._core.blur()},O.prototype.focus=function(){this._core.focus()},O.prototype.resize=function(y,T){this._verifyIntegers(y,T),this._core.resize(y,T)},O.prototype.open=function(y){this._core.open(y)},O.prototype.attachCustomKeyEventHandler=function(y){this._core.attachCustomKeyEventHandler(y)},O.prototype.registerLinkMatcher=function(y,T,D){return this._checkProposedApi(),this._core.registerLinkMatcher(y,T,D)},O.prototype.deregisterLinkMatcher=function(y){this._checkProposedApi(),this._core.deregisterLinkMatcher(y)},O.prototype.registerLinkProvider=function(y){return this._checkProposedApi(),this._core.registerLinkProvider(y)},O.prototype.registerCharacterJoiner=function(y){return this._checkProposedApi(),this._core.registerCharacterJoiner(y)},O.prototype.deregisterCharacterJoiner=function(y){this._checkProposedApi(),this._core.deregisterCharacterJoiner(y)},O.prototype.registerMarker=function(y){return this._checkProposedApi(),this._verifyIntegers(y),this._core.addMarker(y)},O.prototype.addMarker=function(y){return this.registerMarker(y)},O.prototype.hasSelection=function(){return this._core.hasSelection()},O.prototype.select=function(y,T,D){this._verifyIntegers(y,T,D),this._core.select(y,T,D)},O.prototype.getSelection=function(){return this._core.getSelection()},O.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},O.prototype.clearSelection=function(){this._core.clearSelection()},O.prototype.selectAll=function(){this._core.selectAll()},O.prototype.selectLines=function(y,T){this._verifyIntegers(y,T),this._core.selectLines(y,T)},O.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},O.prototype.scrollLines=function(y){this._verifyIntegers(y),this._core.scrollLines(y)},O.prototype.scrollPages=function(y){this._verifyIntegers(y),this._core.scrollPages(y)},O.prototype.scrollToTop=function(){this._core.scrollToTop()},O.prototype.scrollToBottom=function(){this._core.scrollToBottom()},O.prototype.scrollToLine=function(y){this._verifyIntegers(y),this._core.scrollToLine(y)},O.prototype.clear=function(){this._core.clear()},O.prototype.write=function(y,T){this._core.write(y,T)},O.prototype.writeUtf8=function(y,T){this._core.write(y,T)},O.prototype.writeln=function(y,T){this._core.write(y),this._core.write("\r\n",T)},O.prototype.paste=function(y){this._core.paste(y)},O.prototype.getOption=function(y){return this._core.optionsService.getOption(y)},O.prototype.setOption=function(y,T){this._core.optionsService.setOption(y,T)},O.prototype.refresh=function(y,T){this._verifyIntegers(y,T),this._core.refresh(y,T)},O.prototype.reset=function(){this._core.reset()},O.prototype.clearTextureAtlas=function(){this._core.clearTextureAtlas()},O.prototype.loadAddon=function(y){return this._addonManager.loadAddon(this,y)},Object.defineProperty(O,"strings",{get:function(){return w},enumerable:!1,configurable:!0}),O.prototype._verifyIntegers=function(){for(var y=[],T=0;T=0?this.update(E):(this.data.push(E),this.dataChange.next(this.data))}},{key:"set",value:function(E){var x=this;E.forEach(function(O){var y=x.findIndex(O);if(y>=0){var T=Object.assign(x.data[y],O);x.data[y]=T}else x.data.push(O)}),this.data.filter(function(O){return 0===E.filter(function(y){return x.getItemKey(y)===x.getItemKey(O)}).length}).forEach(function(O){return x.remove(O)}),this.dataChange.next(this.data)}},{key:"get",value:function(E){var x=this,Z=this.data.findIndex(function(O){return x.getItemKey(O)===E});if(Z>=0)return this.data[Z]}},{key:"update",value:function(E){var x=this.findIndex(E);if(x>=0){var Z=Object.assign(this.data[x],E);this.data[x]=Z,this.dataChange.next(this.data),this.itemUpdated.next(Z)}}},{key:"remove",value:function(E){var x=this.findIndex(E);x>=0&&(this.data.splice(x,1),this.dataChange.next(this.data))}},{key:"changes",get:function(){return this.dataChange}},{key:"itemChanged",get:function(){return this.itemUpdated}},{key:"clear",value:function(){this.data=[],this.dataChange.next(this.data)}},{key:"findIndex",value:function(E){var x=this;return this.data.findIndex(function(Z){return x.getItemKey(Z)===x.getItemKey(E)})}}]),R}()},41999:function(ue,j,f){"use strict";f.d(j,{F:function(){return b}});var B=f(18967),U=f(14105),V=f(10509),L=f(97154),w=f(28888),R=f(83668),b=function(){var E=function(x){(0,V.Z)(O,x);var Z=(0,L.Z)(O);function O(){return(0,B.Z)(this,O),Z.apply(this,arguments)}return(0,U.Z)(O,[{key:"getItemKey",value:function(T){return T.link_id}}]),O}(w.o);return E.\u0275fac=function(){var x;return function(O){return(x||(x=R.n5z(E)))(O||E)}}(),E.\u0275prov=R.Yz7({token:E,factory:E.\u0275fac}),E}()},52094:function(ue,j,f){"use strict";f.d(j,{G:function(){return b}});var B=f(18967),U=f(14105),V=f(10509),L=f(97154),w=f(28888),R=f(83668),b=function(){var E=function(x){(0,V.Z)(O,x);var Z=(0,L.Z)(O);function O(){return(0,B.Z)(this,O),Z.apply(this,arguments)}return(0,U.Z)(O,[{key:"getItemKey",value:function(T){return T.node_id}}]),O}(w.o);return E.\u0275fac=function(){var x;return function(O){return(x||(x=R.n5z(E)))(O||E)}}(),E.\u0275prov=R.Yz7({token:E,factory:E.\u0275fac}),E}()},64097:function(ue,j,f){"use strict";f.d(j,{X:function(){return w}});var B=f(18967),U=f(14105),V=f(83668),L=f(16775),w=function(){var R=function(){function b(E){(0,B.Z)(this,b),this.httpServer=E}return(0,U.Z)(b,[{key:"getComputes",value:function(x){return this.httpServer.get(x,"/computes")}},{key:"getUploadPath",value:function(x,Z,O){return"".concat(x.protocol,"//").concat(x.host,":").concat(x.port,"/v2/").concat(Z,"/images/").concat(O)}},{key:"getStatistics",value:function(x){return this.httpServer.get(x,"/statistics")}}]),b}();return R.\u0275fac=function(E){return new(E||R)(V.LFG(L.wh))},R.\u0275prov=V.Yz7({token:R,factory:R.\u0275fac}),R}()},16775:function(ue,j,f){"use strict";f.d(j,{gc:function(){return O},wh:function(){return y}});var B=f(18967),U=f(14105),V=f(10509),L=f(97154),w=f(89750),R=f(83668),b=f(43334),E=f(67254),x=f(44522),Z=function(T){(0,V.Z)(v,T);var D=(0,L.Z)(v);function v(g){return(0,B.Z)(this,v),D.call(this,g)}return(0,U.Z)(v,null,[{key:"fromError",value:function(M,k){var S=new v(M);return S.originalError=k,S}}]),v}((0,w.Z)(Error)),O=function(){var T=function(){function D(){(0,B.Z)(this,D)}return(0,U.Z)(D,[{key:"handleError",value:function(g){var M=g;return"HttpErrorResponse"===g.name&&0===g.status&&(M=Z.fromError("Server is unreachable",g)),(0,b._)(M)}}]),D}();return T.\u0275fac=function(v){return new(v||T)},T.\u0275prov=R.Yz7({token:T,factory:T.\u0275fac}),T}(),y=function(){var T=function(){function D(v,g){(0,B.Z)(this,D),this.http=v,this.errorHandler=g,this.requestsNotificationEmitter=new R.vpe}return(0,U.Z)(D,[{key:"get",value:function(g,M,k){k=this.getJsonOptions(k);var S=this.getOptionsForServer(g,M,k);return this.requestsNotificationEmitter.emit("GET ".concat(S.url)),this.http.get(S.url,S.options).pipe((0,E.K)(this.errorHandler.handleError))}},{key:"getText",value:function(g,M,k){k=this.getTextOptions(k);var S=this.getOptionsForServer(g,M,k);return this.requestsNotificationEmitter.emit("GET ".concat(S.url)),this.http.get(S.url,S.options).pipe((0,E.K)(this.errorHandler.handleError))}},{key:"post",value:function(g,M,k,S){S=this.getJsonOptions(S);var I=this.getOptionsForServer(g,M,S);return this.requestsNotificationEmitter.emit("POST ".concat(I.url)),this.http.post(I.url,k,I.options).pipe((0,E.K)(this.errorHandler.handleError))}},{key:"put",value:function(g,M,k,S){S=this.getJsonOptions(S);var I=this.getOptionsForServer(g,M,S);return this.requestsNotificationEmitter.emit("PUT ".concat(I.url)),this.http.put(I.url,k,I.options).pipe((0,E.K)(this.errorHandler.handleError))}},{key:"delete",value:function(g,M,k){k=this.getJsonOptions(k);var S=this.getOptionsForServer(g,M,k);return this.requestsNotificationEmitter.emit("DELETE ".concat(S.url)),this.http.delete(S.url,S.options).pipe((0,E.K)(this.errorHandler.handleError))}},{key:"patch",value:function(g,M,k,S){S=this.getJsonOptions(S);var I=this.getOptionsForServer(g,M,S);return this.http.patch(I.url,k,I.options).pipe((0,E.K)(this.errorHandler.handleError))}},{key:"head",value:function(g,M,k){k=this.getJsonOptions(k);var S=this.getOptionsForServer(g,M,k);return this.http.head(S.url,S.options).pipe((0,E.K)(this.errorHandler.handleError))}},{key:"options",value:function(g,M,k){k=this.getJsonOptions(k);var S=this.getOptionsForServer(g,M,k);return this.http.options(S.url,S.options).pipe((0,E.K)(this.errorHandler.handleError))}},{key:"getJsonOptions",value:function(g){return g||{responseType:"json"}}},{key:"getTextOptions",value:function(g){return g||{responseType:"text"}}},{key:"getOptionsForServer",value:function(g,M,k){if(g.host&&g.port?(g.protocol||(g.protocol=location.protocol),M="".concat(g.protocol,"//").concat(g.host,":").concat(g.port,"/v2").concat(M)):M="/v2".concat(M),k.headers||(k.headers={}),"basic"===g.authorization){var S=btoa("".concat(g.login,":").concat(g.password));k.headers.Authorization="Basic ".concat(S)}return{url:M,options:k}}}]),D}();return T.\u0275fac=function(v){return new(v||T)(R.LFG(x.eN),R.LFG(O))},T.\u0275prov=R.Yz7({token:T,factory:T.\u0275fac}),T}()},81856:function(ue,j,f){"use strict";f.d(j,{Y:function(){return E}});var B=f(18967),U=f(14105),V=f(27807),L=f(83668),w=f(16775),R=f(82889),b=f(72929),E=function(){var x=function(){function Z(O,y,T){(0,B.Z)(this,Z),this.httpServer=O,this.settingsService=y,this.recentlyOpenedProjectService=T,this.projectListSubject=new V.xQ}return(0,U.Z)(Z,[{key:"projectListUpdated",value:function(){this.projectListSubject.next(!0)}},{key:"get",value:function(y,T){return this.httpServer.get(y,"/projects/".concat(T))}},{key:"open",value:function(y,T){return this.httpServer.post(y,"/projects/".concat(T,"/open"),{})}},{key:"close",value:function(y,T){return this.recentlyOpenedProjectService.removeData(),this.httpServer.post(y,"/projects/".concat(T,"/close"),{})}},{key:"list",value:function(y){return this.httpServer.get(y,"/projects")}},{key:"nodes",value:function(y,T){return this.httpServer.get(y,"/projects/".concat(T,"/nodes"))}},{key:"links",value:function(y,T){return this.httpServer.get(y,"/projects/".concat(T,"/links"))}},{key:"drawings",value:function(y,T){return this.httpServer.get(y,"/projects/".concat(T,"/drawings"))}},{key:"add",value:function(y,T,D){return this.httpServer.post(y,"/projects",{name:T,project_id:D})}},{key:"update",value:function(y,T){return this.httpServer.put(y,"/projects/".concat(T.project_id),{auto_close:T.auto_close,auto_open:T.auto_open,auto_start:T.auto_start,drawing_grid_size:T.drawing_grid_size,grid_size:T.grid_size,name:T.name,scene_width:T.scene_width,scene_height:T.scene_height,show_interface_labels:T.show_interface_labels})}},{key:"delete",value:function(y,T){return this.httpServer.delete(y,"/projects/".concat(T))}},{key:"getUploadPath",value:function(y,T,D){return"".concat(y.protocol,"//").concat(y.host,":").concat(y.port,"/v2/projects/").concat(T,"/import?name=").concat(D)}},{key:"getExportPath",value:function(y,T){return"".concat(y.protocol,"//").concat(y.host,":").concat(y.port,"/v2/projects/").concat(T.project_id,"/export")}},{key:"export",value:function(y,T){return this.httpServer.get(y,"/projects/".concat(T,"/export"))}},{key:"getStatistics",value:function(y,T){return this.httpServer.get(y,"/projects/".concat(T,"/stats"))}},{key:"duplicate",value:function(y,T,D){return this.httpServer.post(y,"/projects/".concat(T,"/duplicate"),{name:D})}},{key:"isReadOnly",value:function(y){return!!y.readonly&&y.readonly}}]),Z}();return x.\u0275fac=function(O){return new(O||x)(L.LFG(w.wh),L.LFG(R.g),L.LFG(b.p))},x.\u0275prov=L.Yz7({token:x,factory:x.\u0275fac}),x}()},72929:function(ue,j,f){"use strict";f.d(j,{p:function(){return L}});var B=f(18967),U=f(14105),V=f(83668),L=function(){var w=function(){function R(){(0,B.Z)(this,R)}return(0,U.Z)(R,[{key:"setServerId",value:function(E){this.serverId=E}},{key:"setProjectId",value:function(E){this.projectId=E}},{key:"setServerIdProjectList",value:function(E){this.serverIdProjectList=E}},{key:"getServerId",value:function(){return this.serverId}},{key:"getProjectId",value:function(){return this.projectId}},{key:"getServerIdProjectList",value:function(){return this.serverIdProjectList}},{key:"removeData",value:function(){this.serverId="",this.projectId=""}}]),R}();return w.\u0275fac=function(b){return new(b||w)},w.\u0275prov=V.Yz7({token:w,factory:w.\u0275fac}),w}()},82889:function(ue,j,f){"use strict";f.d(j,{g:function(){return L}});var B=f(18967),U=f(14105),V=f(83668),L=function(){var w=function(){function R(){(0,B.Z)(this,R),this.settings={crash_reports:!0,console_command:void 0,anonymous_statistics:!0},this.reportsSettings="crash_reports",this.consoleSettings="console_command",this.statisticsSettings="statistics_command",this.getItem(this.reportsSettings)&&(this.settings.crash_reports="true"===this.getItem(this.reportsSettings)),this.getItem(this.consoleSettings)&&(this.settings.console_command=this.getItem(this.consoleSettings)),this.getItem(this.statisticsSettings)&&(this.settings.anonymous_statistics="true"===this.getItem(this.statisticsSettings))}return(0,U.Z)(R,[{key:"setReportsSettings",value:function(E){this.settings.crash_reports=E,this.removeItem(this.reportsSettings),this.setItem(this.reportsSettings,E?"true":"false")}},{key:"setStatisticsSettings",value:function(E){this.settings.anonymous_statistics=E,this.removeItem(this.statisticsSettings),this.setItem(this.statisticsSettings,E?"true":"false")}},{key:"getReportsSettings",value:function(){return"true"===this.getItem(this.reportsSettings)}},{key:"getStatisticsSettings",value:function(){return"true"===this.getItem(this.statisticsSettings)}},{key:"setConsoleSettings",value:function(E){this.settings.console_command=E,this.removeItem(this.consoleSettings),this.setItem(this.consoleSettings,E)}},{key:"getConsoleSettings",value:function(){return this.getItem(this.consoleSettings)}},{key:"removeItem",value:function(E){localStorage.removeItem(E)}},{key:"setItem",value:function(E,x){localStorage.setItem(E,x)}},{key:"getItem",value:function(E){return localStorage.getItem(E)}},{key:"getAll",value:function(){return this.settings}},{key:"setAll",value:function(E){this.settings=E,this.setConsoleSettings(E.console_command),this.setReportsSettings(E.crash_reports),this.setStatisticsSettings(E.anonymous_statistics)}}]),R}();return w.\u0275fac=function(b){return new(b||w)},w.\u0275prov=V.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"}),w}()},2856:function(ue,j,f){"use strict";f.d(j,{f:function(){return w}});var B=f(18967),U=f(14105),V=f(83668),L=f(37810),w=function(){var R=function(){function b(){(0,B.Z)(this,b),this._darkMode$=new L.X(!1),this.darkMode$=this._darkMode$.asObservable(),this.themeChanged=new V.vpe,this.savedTheme="dark",localStorage.getItem("theme")||localStorage.setItem("theme","dark"),this.savedTheme=localStorage.getItem("theme")}return(0,U.Z)(b,[{key:"getActualTheme",value:function(){return this.savedTheme}},{key:"setDarkMode",value:function(x){x?(this.savedTheme="dark",this.themeChanged.emit("dark-theme"),localStorage.setItem("theme","dark")):(this.savedTheme="light",this.themeChanged.emit("light-theme"),localStorage.setItem("theme","light"))}}]),b}();return R.\u0275fac=function(E){return new(E||R)},R.\u0275prov=V.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R}()},33073:function(ue,j,f){"use strict";var B={};f.r(B),f.d(B,{active:function(){return nY},arc:function(){return kte},area:function(){return L9},areaRadial:function(){return H9},ascending:function(){return Yi},axisBottom:function(){return zB},axisLeft:function(){return F3},axisRight:function(){return L3},axisTop:function(){return Z3},bisect:function(){return ac},bisectLeft:function(){return nC},bisectRight:function(){return tC},bisector:function(){return Xs},brush:function(){return pY},brushSelection:function(){return uY},brushX:function(){return cY},brushY:function(){return dY},chord:function(){return hY},clientPoint:function(){return d_},cluster:function(){return EK},color:function(){return ed},contourDensity:function(){return HY},contours:function(){return Y4},create:function(){return bR},creator:function(){return i_},cross:function(){return ap},csvFormat:function(){return QY},csvFormatRows:function(){return KY},csvParse:function(){return YY},csvParseRows:function(){return JY},cubehelix:function(){return mo},curveBasis:function(){return jte},curveBasisClosed:function(){return qte},curveBasisOpen:function(){return zte},curveBundle:function(){return Wte},curveCardinal:function(){return Gte},curveCardinalClosed:function(){return Yte},curveCardinalOpen:function(){return Jte},curveCatmullRom:function(){return Qte},curveCatmullRomClosed:function(){return Kte},curveCatmullRomOpen:function(){return Xte},curveLinear:function(){return eA},curveLinearClosed:function(){return $te},curveMonotoneX:function(){return ene},curveMonotoneY:function(){return tne},curveNatural:function(){return nne},curveStep:function(){return rne},curveStepAfter:function(){return ane},curveStepBefore:function(){return ine},customEvent:function(){return ym},descending:function(){return w3},deviation:function(){return Ef},dispatch:function(){return Df},drag:function(){return Nf},dragDisable:function(){return f_},dragEnable:function(){return h_},dsvFormat:function(){return iN},easeBack:function(){return i8},easeBackIn:function(){return TJ},easeBackInOut:function(){return i8},easeBackOut:function(){return kJ},easeBounce:function(){return jC},easeBounceIn:function(){return CJ},easeBounceInOut:function(){return SJ},easeBounceOut:function(){return jC},easeCircle:function(){return r8},easeCircleIn:function(){return dJ},easeCircleInOut:function(){return r8},easeCircleOut:function(){return pJ},easeCubic:function(){return VR},easeCubicIn:function(){return KG},easeCubicInOut:function(){return VR},easeCubicOut:function(){return XG},easeElastic:function(){return a8},easeElasticIn:function(){return wJ},easeElasticInOut:function(){return xJ},easeElasticOut:function(){return a8},easeExp:function(){return n8},easeExpIn:function(){return uJ},easeExpInOut:function(){return n8},easeExpOut:function(){return cJ},easeLinear:function(){return nJ},easePoly:function(){return X4},easePolyIn:function(){return aJ},easePolyInOut:function(){return X4},easePolyOut:function(){return oJ},easeQuad:function(){return K4},easeQuadIn:function(){return rJ},easeQuadInOut:function(){return K4},easeQuadOut:function(){return iJ},easeSin:function(){return t8},easeSinIn:function(){return sJ},easeSinInOut:function(){return t8},easeSinOut:function(){return lJ},entries:function(){return AY},event:function(){return xn},extent:function(){return cm},forceCenter:function(){return EJ},forceCollide:function(){return WJ},forceLink:function(){return YJ},forceManyBody:function(){return eQ},forceRadial:function(){return tQ},forceSimulation:function(){return $J},forceX:function(){return nQ},forceY:function(){return rQ},format:function(){return KE},formatDefaultLocale:function(){return m8},formatLocale:function(){return h8},formatPrefix:function(){return pN},formatSpecifier:function(){return qC},geoAlbers:function(){return P7},geoAlbersUsa:function(){return sK},geoArea:function(){return pQ},geoAzimuthalEqualArea:function(){return lK},geoAzimuthalEqualAreaRaw:function(){return QN},geoAzimuthalEquidistant:function(){return uK},geoAzimuthalEquidistantRaw:function(){return KN},geoBounds:function(){return vQ},geoCentroid:function(){return SQ},geoCircle:function(){return TQ},geoClipAntimeridian:function(){return AN},geoClipCircle:function(){return $8},geoClipExtent:function(){return DQ},geoClipRectangle:function(){return bM},geoConicConformal:function(){return dK},geoConicConformalRaw:function(){return N7},geoConicEqualArea:function(){return OM},geoConicEqualAreaRaw:function(){return O7},geoConicEquidistant:function(){return fK},geoConicEquidistantRaw:function(){return Z7},geoContains:function(){return LQ},geoDistance:function(){return QC},geoEquirectangular:function(){return pK},geoEquirectangularRaw:function(){return o1},geoGnomonic:function(){return hK},geoGnomonicRaw:function(){return XN},geoGraticule:function(){return c7},geoGraticule10:function(){return FQ},geoIdentity:function(){return mK},geoInterpolate:function(){return BQ},geoLength:function(){return e7},geoMercator:function(){return cK},geoMercatorRaw:function(){return a1},geoNaturalEarth1:function(){return vK},geoNaturalEarth1Raw:function(){return $N},geoOrthographic:function(){return gK},geoOrthographicRaw:function(){return eZ},geoPath:function(){return KQ},geoProjection:function(){return mp},geoProjectionMutator:function(){return YN},geoRotation:function(){return z8},geoStereographic:function(){return _K},geoStereographicRaw:function(){return tZ},geoStream:function(){return mc},geoTransform:function(){return XQ},geoTransverseMercator:function(){return yK},geoTransverseMercatorRaw:function(){return nZ},hcl:function(){return qn},hierarchy:function(){return rZ},histogram:function(){return Br},hsl:function(){return AC},interpolate:function(){return IC},interpolateArray:function(){return EE},interpolateBasis:function(){return km},interpolateBasisClosed:function(){return DC},interpolateBlues:function(){return Hee},interpolateBrBG:function(){return bee},interpolateBuGn:function(){return Aee},interpolateBuPu:function(){return Dee},interpolateCool:function(){return Jee},interpolateCubehelix:function(){return XW},interpolateCubehelixDefault:function(){return Gee},interpolateCubehelixLong:function(){return AE},interpolateDate:function(){return u4},interpolateGnBu:function(){return Oee},interpolateGreens:function(){return Vee},interpolateGreys:function(){return jee},interpolateHcl:function(){return QW},interpolateHclLong:function(){return KW},interpolateHsl:function(){return GW},interpolateHslLong:function(){return YW},interpolateInferno:function(){return $ee},interpolateLab:function(){return JW},interpolateMagma:function(){return Xee},interpolateNumber:function(){return Kl},interpolateObject:function(){return c4},interpolateOrRd:function(){return Pee},interpolateOranges:function(){return Wee},interpolatePRGn:function(){return Cee},interpolatePiYG:function(){return See},interpolatePlasma:function(){return ete},interpolatePuBu:function(){return Ree},interpolatePuBuGn:function(){return Iee},interpolatePuOr:function(){return Tee},interpolatePuRd:function(){return Nee},interpolatePurples:function(){return qee},interpolateRainbow:function(){return Qee},interpolateRdBu:function(){return kee},interpolateRdGy:function(){return wee},interpolateRdPu:function(){return Zee},interpolateRdYlBu:function(){return xee},interpolateRdYlGn:function(){return Eee},interpolateReds:function(){return zee},interpolateRgb:function(){return wm},interpolateRgbBasis:function(){return PC},interpolateRgbBasisClosed:function(){return MR},interpolateRound:function(){return d4},interpolateSpectral:function(){return Mee},interpolateString:function(){return OR},interpolateTransformCss:function(){return v4},interpolateTransformSvg:function(){return g4},interpolateViridis:function(){return Kee},interpolateWarm:function(){return Yee},interpolateYlGn:function(){return Fee},interpolateYlGnBu:function(){return Lee},interpolateYlOrBr:function(){return Bee},interpolateYlOrRd:function(){return Uee},interpolateZoom:function(){return b4},interrupt:function(){return Mm},interval:function(){return mne},isoFormat:function(){return nee},isoParse:function(){return aee},keys:function(){return EY},lab:function(){return We},line:function(){return tA},lineRadial:function(){return U9},linkHorizontal:function(){return Ite},linkRadial:function(){return Nte},linkVertical:function(){return Rte},local:function(){return xC},map:function(){return Rf},matcher:function(){return hC},max:function(){return Yx},mean:function(){return x3},median:function(){return E3},merge:function(){return oC},min:function(){return Jx},mouse:function(){return oo},namespace:function(){return hm},namespaces:function(){return fC},nest:function(){return TY},now:function(){return y_},pack:function(){return XK},packEnclose:function(){return F7},packSiblings:function(){return JK},pairs:function(){return rC},partition:function(){return $K},path:function(){return hc},permute:function(){return Yl},pie:function(){return Ete},pointRadial:function(){return k1},polygonArea:function(){return hX},polygonCentroid:function(){return mX},polygonContains:function(){return yX},polygonHull:function(){return _X},polygonLength:function(){return bX},precisionFixed:function(){return v8},precisionPrefix:function(){return g8},precisionRound:function(){return _8},quadtree:function(){return YE},quantile:function(){return r_},quantize:function(){return $W},radialArea:function(){return H9},radialLine:function(){return U9},randomBates:function(){return TX},randomExponential:function(){return kX},randomIrwinHall:function(){return tU},randomLogNormal:function(){return SX},randomNormal:function(){return eU},randomUniform:function(){return CX},range:function(){return Os},rgb:function(){return v_},ribbon:function(){return SY},scaleBand:function(){return dZ},scaleIdentity:function(){return sU},scaleImplicit:function(){return uZ},scaleLinear:function(){return oU},scaleLog:function(){return pU},scaleOrdinal:function(){return cZ},scalePoint:function(){return wX},scalePow:function(){return hZ},scaleQuantile:function(){return fU},scaleQuantize:function(){return hU},scaleSequential:function(){return o9},scaleSqrt:function(){return RX},scaleThreshold:function(){return mU},scaleTime:function(){return uee},scaleUtc:function(){return cee},scan:function(){return M3},schemeAccent:function(){return pee},schemeBlues:function(){return M9},schemeBrBG:function(){return s9},schemeBuGn:function(){return v9},schemeBuPu:function(){return g9},schemeCategory10:function(){return dee},schemeDark2:function(){return fee},schemeGnBu:function(){return _9},schemeGreens:function(){return A9},schemeGreys:function(){return D9},schemeOrRd:function(){return y9},schemeOranges:function(){return I9},schemePRGn:function(){return l9},schemePaired:function(){return hee},schemePastel1:function(){return mee},schemePastel2:function(){return vee},schemePiYG:function(){return u9},schemePuBu:function(){return C9},schemePuBuGn:function(){return b9},schemePuOr:function(){return c9},schemePuRd:function(){return S9},schemePurples:function(){return O9},schemeRdBu:function(){return d9},schemeRdGy:function(){return p9},schemeRdPu:function(){return T9},schemeRdYlBu:function(){return f9},schemeRdYlGn:function(){return h9},schemeReds:function(){return P9},schemeSet1:function(){return gee},schemeSet2:function(){return _ee},schemeSet3:function(){return yee},schemeSpectral:function(){return m9},schemeYlGn:function(){return w9},schemeYlGnBu:function(){return k9},schemeYlOrBr:function(){return x9},schemeYlOrRd:function(){return E9},select:function(){return $r},selectAll:function(){return Sm},selection:function(){return sc},selector:function(){return a_},selectorAll:function(){return o_},set:function(){return xY},shuffle:function(){return A3},stack:function(){return sne},stackOffsetDiverging:function(){return une},stackOffsetExpand:function(){return lne},stackOffsetNone:function(){return F_},stackOffsetSilhouette:function(){return cne},stackOffsetWiggle:function(){return dne},stackOrderAscending:function(){return cH},stackOrderDescending:function(){return pne},stackOrderInsideOut:function(){return fne},stackOrderNone:function(){return B_},stackOrderReverse:function(){return hne},stratify:function(){return rX},style:function(){return Of},sum:function(){return D3},symbol:function(){return Vte},symbolCircle:function(){return AZ},symbolCross:function(){return V9},symbolDiamond:function(){return q9},symbolSquare:function(){return G9},symbolStar:function(){return W9},symbolTriangle:function(){return Y9},symbolWye:function(){return J9},symbols:function(){return Hte},thresholdFreedmanDiaconis:function(){return VB},thresholdScott:function(){return jB},thresholdSturges:function(){return Gx},tickIncrement:function(){return sp},tickStep:function(){return Af},ticks:function(){return dm},timeDay:function(){return WM},timeDays:function(){return LX},timeFormat:function(){return yZ},timeFormatDefaultLocale:function(){return r9},timeFormatLocale:function(){return zU},timeFriday:function(){return MU},timeFridays:function(){return VX},timeHour:function(){return kU},timeHours:function(){return ZX},timeInterval:function(){return Ho},timeMillisecond:function(){return VM},timeMilliseconds:function(){return vU},timeMinute:function(){return SU},timeMinutes:function(){return NX},timeMonday:function(){return d1},timeMondays:function(){return FX},timeMonth:function(){return PU},timeMonths:function(){return qX},timeParse:function(){return n9},timeSaturday:function(){return AU},timeSaturdays:function(){return jX},timeSecond:function(){return zM},timeSeconds:function(){return bU},timeSunday:function(){return c1},timeSundays:function(){return DU},timeThursday:function(){return p1},timeThursdays:function(){return HX},timeTuesday:function(){return xU},timeTuesdays:function(){return BX},timeWednesday:function(){return EU},timeWednesdays:function(){return UX},timeWeek:function(){return c1},timeWeeks:function(){return DU},timeYear:function(){return Bm},timeYears:function(){return zX},timeout:function(){return ZR},timer:function(){return IE},timerFlush:function(){return x4},touch:function(){return lc},touches:function(){return p_},transition:function(){return LE},transpose:function(){return Qx},tree:function(){return uX},treemap:function(){return cX},treemapBinary:function(){return dX},treemapDice:function(){return l1},treemapResquarify:function(){return fX},treemapSlice:function(){return FM},treemapSliceDice:function(){return pX},treemapSquarify:function(){return X7},tsvFormat:function(){return eJ},tsvFormatRows:function(){return tJ},tsvParse:function(){return XY},tsvParseRows:function(){return $Y},utcDay:function(){return GM},utcDays:function(){return YX},utcFormat:function(){return JM},utcFriday:function(){return UU},utcFridays:function(){return $X},utcHour:function(){return ZU},utcHours:function(){return GX},utcMillisecond:function(){return VM},utcMilliseconds:function(){return vU},utcMinute:function(){return RU},utcMinutes:function(){return WX},utcMonday:function(){return h1},utcMondays:function(){return JX},utcMonth:function(){return qU},utcMonths:function(){return t$},utcParse:function(){return bZ},utcSaturday:function(){return HU},utcSaturdays:function(){return e$},utcSecond:function(){return zM},utcSeconds:function(){return bU},utcSunday:function(){return f1},utcSundays:function(){return VU},utcThursday:function(){return m1},utcThursdays:function(){return XX},utcTuesday:function(){return FU},utcTuesdays:function(){return QX},utcWednesday:function(){return BU},utcWednesdays:function(){return KX},utcWeek:function(){return f1},utcWeeks:function(){return VU},utcYear:function(){return Hm},utcYears:function(){return n$},values:function(){return MY},variance:function(){return e_},voronoi:function(){return Rne},window:function(){return s_},zip:function(){return O3},zoom:function(){return SH},zoomIdentity:function(){return cA},zoomTransform:function(){return bH}});var U=f(35427),V=f(42515),b=(f(65737),f(99890),f(99740),f(51380)),E=f(36683),x=f(38402),Z=f(89200),O=f(10509),y=f(97154),T=f(333),D=f(3801),v=f(18967),g=f(14105),M=f(26552),k=f.n(M);"undefined"!=typeof window&&window,"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self;"undefined"!=typeof global&&global;Object.keys({useClass:null}),Object.keys({useFactory:null}),Object.keys({useValue:null}),Object.keys({useExisting:null});var e=f(83668),Pt=f(86019),ku=f(97226),vi=f(50928),Hn=f(80348),Gi=f(47497),Un=f(27807),Lo=f(43501),lx=f(74611),qI=f(27202),wo=f(15801),Ra=f(69301),Ai=f(35634);function ux(r,i,t){for(var n in i)if(i.hasOwnProperty(n)){var a=i[n];a?r.setProperty(n,a,null!=t&&t.has(n)?"important":""):r.removeProperty(n)}return r}function rm(r,i){var t=i?"":"none";ux(r.style,{"touch-action":i?"":"none","-webkit-user-drag":i?"":"none","-webkit-tap-highlight-color":i?"":"transparent","user-select":t,"-ms-user-select":t,"-webkit-user-select":t,"-moz-user-select":t})}function zI(r,i,t){ux(r.style,{position:i?"":"fixed",top:i?"":"0",opacity:i?"":"0",left:i?"":"-999em"},t)}function Rg(r,i){return i&&"none"!=i?r+" "+i:r}function cx(r){var i=r.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(r)*i}function dx(r,i){return r.getPropertyValue(i).split(",").map(function(n){return n.trim()})}function px(r){var i=r.getBoundingClientRect();return{top:i.top,right:i.right,bottom:i.bottom,left:i.left,width:i.width,height:i.height,x:i.x,y:i.y}}function fx(r,i,t){return t>=r.top&&t<=r.bottom&&i>=r.left&&i<=r.right}function im(r,i,t){r.top+=i,r.bottom=r.top+r.height,r.left+=t,r.right=r.left+r.width}function hx(r,i,t,n){var C=r.width*i,P=r.height*i;return n>r.top-P&&nr.left-C&&t=l._config.dragStartThreshold){var q=Date.now()>=l._dragStartTime+l._getDragStartDelay(d),Q=l._dropContainer;if(!q)return void l._endDragSequence(d);(!Q||!Q.isDragging()&&!Q.isReceiving())&&(d.preventDefault(),l._hasStartedDragging=!0,l._ngZone.run(function(){return l._startDragSequence(d)}))}},this._pointerUp=function(d){l._endDragSequence(d)},this.withRootElement(i).withParent(t.parentDragRef||null),this._parentPositions=new mx(n,o),s.registerDragItem(this)}return(0,g.Z)(r,[{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(t){var n=(0,Hn.Ig)(t);n!==this._disabled&&(this._disabled=n,this._toggleNativeDragInteractions(),this._handles.forEach(function(a){return rm(a,n)}))}},{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(t){var n=this;this._handles=t.map(function(o){return(0,Hn.fI)(o)}),this._handles.forEach(function(o){return rm(o,n.disabled)}),this._toggleNativeDragInteractions();var a=new Set;return this._disabledHandles.forEach(function(o){n._handles.indexOf(o)>-1&&a.add(o)}),this._disabledHandles=a,this}},{key:"withPreviewTemplate",value:function(t){return this._previewTemplate=t,this}},{key:"withPlaceholderTemplate",value:function(t){return this._placeholderTemplate=t,this}},{key:"withRootElement",value:function(t){var n=this,a=(0,Hn.fI)(t);return a!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(function(){a.addEventListener("mousedown",n._pointerDown,Ng),a.addEventListener("touchstart",n._pointerDown,KI)}),this._initialTransform=void 0,this._rootElement=a),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}},{key:"withBoundaryElement",value:function(t){var n=this;return this._boundaryElement=t?(0,Hn.fI)(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(function(){return n._containInsideBoundaryOnResize()})),this}},{key:"withParent",value:function(t){return this._parentDragRef=t,this}},{key:"dispose",value:function(){var t,n;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(n=this._rootElement)||void 0===n||n.remove()),null===(t=this._anchor)||void 0===t||t.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),rm(t,!0))}},{key:"enableHandle",value:function(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),rm(t,this.disabled))}},{key:"withDirection",value:function(t){return this._direction=t,this}},{key:"_withDropContainer",value:function(t){this._dropContainer=t}},{key:"getFreeDragPosition",value:function(){var t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}},{key:"setFreeDragPosition",value:function(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}},{key:"withPreviewContainer",value:function(t){return this._previewContainer=t,this}},{key:"_sortFromLastPointerPosition",value:function(){var t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){var t,n;null===(t=this._preview)||void 0===t||t.remove(),null===(n=this._previewRef)||void 0===n||n.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){var t,n;null===(t=this._placeholder)||void 0===t||t.remove(),null===(n=this._placeholderRef)||void 0===n||n.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(t){var n=this;if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(function(){n._cleanupDragArtifacts(t),n._cleanupCachedDimensions(),n._dragDropRegistry.stopDragging(n)});else{this._passiveTransform.x=this._activeTransform.x;var a=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(function(){n.ended.next({source:n,distance:n._getDragDistance(a),dropPoint:a})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}},{key:"_startDragSequence",value:function(t){_f(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();var n=this._dropContainer;if(n){var a=this._rootElement,o=a.parentNode,s=this._placeholder=this._createPlaceholderElement(),l=this._anchor=this._anchor||this._document.createComment(""),d=this._getShadowRoot();o.insertBefore(l,a),this._initialTransform=a.style.transform||"",this._preview=this._createPreviewElement(),zI(a,!1,Zg),this._document.body.appendChild(o.replaceChild(s,a)),this._getPreviewInsertionPoint(o,d).appendChild(this._preview),this.started.next({source:this}),n.start(),this._initialContainer=n,this._initialIndex=n.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(n?n.getScrollableParents():[])}},{key:"_initializeDragSequence",value:function(t,n){var a=this;this._parentDragRef&&n.stopPropagation();var o=this.isDragging(),s=_f(n),l=!s&&0!==n.button,d=this._rootElement,h=(0,vi.sA)(n),C=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),P=s?(0,Gi.yG)(n):(0,Gi.X6)(n);if(h&&h.draggable&&"mousedown"===n.type&&n.preventDefault(),!(o||l||C||P)){if(this._handles.length){var N=d.style;this._rootElementTapHighlight=N.webkitTapHighlightColor||"",N.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(te){return a._updateOnScroll(te)}),this._boundaryElement&&(this._boundaryRect=px(this._boundaryElement));var q=this._previewTemplate;this._pickupPositionInElement=q&&q.template&&!q.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,n);var Q=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(n);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:Q.x,y:Q.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,n)}}},{key:"_cleanupDragArtifacts",value:function(t){var n=this;zI(this._rootElement,!0,Zg),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(function(){var a=n._dropContainer,o=a.getItemIndex(n),s=n._getPointerPositionOnPage(t),l=n._getDragDistance(s),d=a._isOverContainer(s.x,s.y);n.ended.next({source:n,distance:l,dropPoint:s}),n.dropped.next({item:n,currentIndex:o,previousIndex:n._initialIndex,container:a,previousContainer:n._initialContainer,isPointerOverContainer:d,distance:l,dropPoint:s}),a.drop(n,o,n._initialIndex,n._initialContainer,d,l,s),n._dropContainer=n._initialContainer})}},{key:"_updateActiveDropContainer",value:function(t,n){var a=this,o=t.x,s=t.y,l=n.x,d=n.y,h=this._initialContainer._getSiblingContainerFromPosition(this,o,s);!h&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(o,s)&&(h=this._initialContainer),h&&h!==this._dropContainer&&this._ngZone.run(function(){a.exited.next({item:a,container:a._dropContainer}),a._dropContainer.exit(a),a._dropContainer=h,a._dropContainer.enter(a,o,s,h===a._initialContainer&&h.sortingDisabled?a._initialIndex:void 0),a.entered.next({item:a,container:h,currentIndex:h.getItemIndex(a)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(l,d),this._dropContainer._sortItem(this,o,s,this._pointerDirectionDelta),this._applyPreviewTransform(o-this._pickupPositionInElement.x,s-this._pickupPositionInElement.y))}},{key:"_createPreviewElement",value:function(){var o,t=this._previewTemplate,n=this.previewClass,a=t?t.template:null;if(a&&t){var s=t.matchSize?this._rootElement.getBoundingClientRect():null,l=t.viewContainer.createEmbeddedView(a,t.context);l.detectChanges(),o=Fb(l,this._document),this._previewRef=l,t.matchSize?Bb(o,s):o.style.transform=Lg(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var d=this._rootElement;Bb(o=GI(d),d.getBoundingClientRect()),this._initialTransform&&(o.style.transform=this._initialTransform)}return ux(o.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":"".concat(this._config.zIndex||1e3)},Zg),rm(o,!1),o.classList.add("cdk-drag-preview"),o.setAttribute("dir",this._direction),n&&(Array.isArray(n)?n.forEach(function(h){return o.classList.add(h)}):o.classList.add(n)),o}},{key:"_animatePreviewToPlaceholder",value:function(){var t=this;if(!this._hasMoved)return Promise.resolve();var n=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(n.left,n.top);var a=function(r){var i=getComputedStyle(r),t=dx(i,"transition-property"),n=t.find(function(l){return"transform"===l||"all"===l});if(!n)return 0;var a=t.indexOf(n),o=dx(i,"transition-duration"),s=dx(i,"transition-delay");return cx(o[a])+cx(s[a])}(this._preview);return 0===a?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(o){var s=function d(h){var C;(!h||(0,vi.sA)(h)===t._preview&&"transform"===h.propertyName)&&(null===(C=t._preview)||void 0===C||C.removeEventListener("transitionend",d),o(),clearTimeout(l))},l=setTimeout(s,1.5*a);t._preview.addEventListener("transitionend",s)})})}},{key:"_createPlaceholderElement",value:function(){var a,t=this._placeholderTemplate,n=t?t.template:null;return n?(this._placeholderRef=t.viewContainer.createEmbeddedView(n,t.context),this._placeholderRef.detectChanges(),a=Fb(this._placeholderRef,this._document)):a=GI(this._rootElement),a.classList.add("cdk-drag-placeholder"),a}},{key:"_getPointerPositionInElement",value:function(t,n){var a=this._rootElement.getBoundingClientRect(),o=t===this._rootElement?null:t,s=o?o.getBoundingClientRect():a,l=_f(n)?n.targetTouches[0]:n,d=this._getViewportScrollPosition();return{x:s.left-a.left+(l.pageX-s.left-d.left),y:s.top-a.top+(l.pageY-s.top-d.top)}}},{key:"_getPointerPositionOnPage",value:function(t){var n=this._getViewportScrollPosition(),a=_f(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,o=a.pageX-n.left,s=a.pageY-n.top;if(this._ownerSVGElement){var l=this._ownerSVGElement.getScreenCTM();if(l){var d=this._ownerSVGElement.createSVGPoint();return d.x=o,d.y=s,d.matrixTransform(l.inverse())}}return{x:o,y:s}}},{key:"_getConstrainedPointerPosition",value:function(t){var n=this._dropContainer?this._dropContainer.lockAxis:null,a=this.constrainPosition?this.constrainPosition(t,this):t,o=a.x,s=a.y;if("x"===this.lockAxis||"x"===n?s=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===n)&&(o=this._pickupPositionOnPage.x),this._boundaryRect){var l=this._pickupPositionInElement,d=l.x,h=l.y,C=this._boundaryRect,P=this._previewRect,N=C.top+h,q=C.bottom-(P.height-h);o=Fg(o,C.left+d,C.right-(P.width-d)),s=Fg(s,N,q)}return{x:o,y:s}}},{key:"_updatePointerDirectionDelta",value:function(t){var n=t.x,a=t.y,o=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,l=Math.abs(n-s.x),d=Math.abs(a-s.y);return l>this._config.pointerDirectionChangeThreshold&&(o.x=n>s.x?1:-1,s.x=n),d>this._config.pointerDirectionChangeThreshold&&(o.y=a>s.y?1:-1,s.y=a),o}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,rm(this._rootElement,t))}}},{key:"_removeRootElementListeners",value:function(t){t.removeEventListener("mousedown",this._pointerDown,Ng),t.removeEventListener("touchstart",this._pointerDown,KI)}},{key:"_applyRootElementTransform",value:function(t,n){var a=Lg(t,n),o=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=o.transform&&"none"!=o.transform?o.transform:""),o.transform=Rg(a,this._initialTransform)}},{key:"_applyPreviewTransform",value:function(t,n){var a,o=null!==(a=this._previewTemplate)&&void 0!==a&&a.template?void 0:this._initialTransform,s=Lg(t,n);this._preview.style.transform=Rg(s,o)}},{key:"_getDragDistance",value:function(t){var n=this._pickupPositionOnPage;return n?{x:t.x-n.x,y:t.y-n.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}},{key:"_containInsideBoundaryOnResize",value:function(){var t=this._passiveTransform,n=t.x,a=t.y;if(!(0===n&&0===a||this.isDragging())&&this._boundaryElement){var o=this._boundaryElement.getBoundingClientRect(),s=this._rootElement.getBoundingClientRect();if(!(0===o.width&&0===o.height||0===s.width&&0===s.height)){var l=o.left-s.left,d=s.right-o.right,h=o.top-s.top,C=s.bottom-o.bottom;o.width>s.width?(l>0&&(n+=l),d>0&&(n-=d)):n=0,o.height>s.height?(h>0&&(a+=h),C>0&&(a-=C)):a=0,(n!==this._passiveTransform.x||a!==this._passiveTransform.y)&&this.setFreeDragPosition({y:a,x:n})}}}},{key:"_getDragStartDelay",value:function(t){var n=this.dragStartDelay;return"number"==typeof n?n:_f(t)?n.touch:n?n.mouse:0}},{key:"_updateOnScroll",value:function(t){var n=this._parentPositions.handleScroll(t);if(n){var a=(0,vi.sA)(t);this._boundaryRect&&a!==this._boundaryElement&&a.contains(this._boundaryElement)&&im(this._boundaryRect,n.top,n.left),this._pickupPositionOnPage.x+=n.left,this._pickupPositionOnPage.y+=n.top,this._dropContainer||(this._activeTransform.x-=n.left,this._activeTransform.y-=n.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}},{key:"_getViewportScrollPosition",value:function(){var t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}},{key:"_getShadowRoot",value:function(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,vi.kV)(this._rootElement)),this._cachedShadowRoot}},{key:"_getPreviewInsertionPoint",value:function(t,n){var a=this._previewContainer||"global";if("parent"===a)return t;if("global"===a){var o=this._document;return n||o.fullscreenElement||o.webkitFullscreenElement||o.mozFullScreenElement||o.msFullscreenElement||o.body}return(0,Hn.fI)(a)}}]),r}();function Lg(r,i){return"translate3d(".concat(Math.round(r),"px, ").concat(Math.round(i),"px, 0)")}function Fg(r,i,t){return Math.max(i,Math.min(t,r))}function _f(r){return"t"===r.type[0]}function Fb(r,i){var t=r.rootNodes;if(1===t.length&&t[0].nodeType===i.ELEMENT_NODE)return t[0];var n=i.createElement("div");return t.forEach(function(a){return n.appendChild(a)}),n}function Bb(r,i){r.style.width="".concat(i.width,"px"),r.style.height="".concat(i.height,"px"),r.style.transform=Lg(i.left,i.top)}function yf(r,i){return Math.max(0,Math.min(i,r))}var hB=function(){function r(i,t,n,a,o){var s=this;(0,v.Z)(this,r),this._dragDropRegistry=t,this._ngZone=a,this._viewportRuler=o,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=function(){return!0},this.sortPredicate=function(){return!0},this.beforeStarted=new Un.xQ,this.entered=new Un.xQ,this.exited=new Un.xQ,this.dropped=new Un.xQ,this.sorted=new Un.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=Lo.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Un.xQ,this._cachedShadowRoot=null,this._startScrollInterval=function(){s._stopScrolling(),(0,lx.F)(0,qI.Z).pipe((0,Ai.R)(s._stopScrollTimers)).subscribe(function(){var l=s._scrollNode,d=s.autoScrollStep;1===s._verticalScrollDirection?l.scrollBy(0,-d):2===s._verticalScrollDirection&&l.scrollBy(0,d),1===s._horizontalScrollDirection?l.scrollBy(-d,0):2===s._horizontalScrollDirection&&l.scrollBy(d,0)})},this.element=(0,Hn.fI)(i),this._document=n,this.withScrollableParents([this.element]),t.registerDropContainer(this),this._parentPositions=new mx(n,o)}return(0,g.Z)(r,[{key:"dispose",value:function(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"start",value:function(){this._draggingStarted(),this._notifyReceivingSiblings()}},{key:"enter",value:function(t,n,a,o){var s;this._draggingStarted(),null==o?-1===(s=this.sortingDisabled?this._draggables.indexOf(t):-1)&&(s=this._getItemIndexFromPointerPosition(t,n,a)):s=o;var l=this._activeDraggables,d=l.indexOf(t),h=t.getPlaceholderElement(),C=l[s];if(C===t&&(C=l[s+1]),d>-1&&l.splice(d,1),C&&!this._dragDropRegistry.isDragging(C)){var P=C.getRootElement();P.parentElement.insertBefore(h,P),l.splice(s,0,t)}else if(this._shouldEnterAsFirstChild(n,a)){var N=l[0].getRootElement();N.parentNode.insertBefore(h,N),l.unshift(t)}else(0,Hn.fI)(this.element).appendChild(h),l.push(t);h.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}},{key:"exit",value:function(t){this._reset(),this.exited.next({item:t,container:this})}},{key:"drop",value:function(t,n,a,o,s,l,d){this._reset(),this.dropped.next({item:t,currentIndex:n,previousIndex:a,container:this,previousContainer:o,isPointerOverContainer:s,distance:l,dropPoint:d})}},{key:"withItems",value:function(t){var n=this,a=this._draggables;return this._draggables=t,t.forEach(function(s){return s._withDropContainer(n)}),this.isDragging()&&(a.filter(function(s){return s.isDragging()}).every(function(s){return-1===t.indexOf(s)})?this._reset():this._cacheItems()),this}},{key:"withDirection",value:function(t){return this._direction=t,this}},{key:"connectedTo",value:function(t){return this._siblings=t.slice(),this}},{key:"withOrientation",value:function(t){return this._orientation=t,this}},{key:"withScrollableParents",value:function(t){var n=(0,Hn.fI)(this.element);return this._scrollableElements=-1===t.indexOf(n)?[n].concat((0,T.Z)(t)):t.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(t){return this._isDragging?("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(function(a){return a.drag===t}):this._draggables.indexOf(t)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(t,n,a,o){if(!this.sortingDisabled&&this._clientRect&&hx(this._clientRect,.05,n,a)){var s=this._itemPositions,l=this._getItemIndexFromPointerPosition(t,n,a,o);if(!(-1===l&&s.length>0)){var d="horizontal"===this._orientation,h=s.findIndex(function(Te){return Te.drag===t}),C=s[l],N=C.clientRect,q=h>l?1:-1,Q=this._getItemOffsetPx(s[h].clientRect,N,q),te=this._getSiblingOffsetPx(h,s,q),se=s.slice();(function(r,i,t){var n=yf(i,r.length-1),a=yf(t,r.length-1);if(n!==a){for(var o=r[n],s=a0&&(s=1):r.scrollHeight-d>r.clientHeight&&(s=2)}if(o){var h=r.scrollLeft;1===o?h>0&&(l=1):r.scrollWidth-h>r.clientWidth&&(l=2)}return[s,l]}(q,N.clientRect,t,n),te=(0,b.Z)(Q,2);l=te[1],((s=te[0])||l)&&(o=q)}}),!s&&!l){var d=this._viewportRuler.getViewportSize(),h=d.width,C=d.height,P={width:h,height:C,top:0,right:h,bottom:C,left:0};s=gx(P,n),l=n3(P,t),o=window}o&&(s!==this._verticalScrollDirection||l!==this._horizontalScrollDirection||o!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=l,this._scrollNode=o,(s||l)&&o?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_draggingStarted",value:function(){var t=(0,Hn.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"_cacheParentPositions",value:function(){var t=(0,Hn.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}},{key:"_cacheItemPositions",value:function(){var t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(function(n){var a=n.getVisibleElement();return{drag:n,offset:0,initialTransform:a.style.transform||"",clientRect:px(a)}}).sort(function(n,a){return t?n.clientRect.left-a.clientRect.left:n.clientRect.top-a.clientRect.top})}},{key:"_reset",value:function(){var t=this;this._isDragging=!1;var n=(0,Hn.fI)(this.element).style;n.scrollSnapType=n.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(function(a){var o=a.getRootElement();if(o){var s,l=null===(s=t._itemPositions.find(function(d){return d.drag===a}))||void 0===s?void 0:s.initialTransform;o.style.transform=l||""}}),this._siblings.forEach(function(a){return a._stopReceiving(t)}),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_getSiblingOffsetPx",value:function(t,n,a){var o="horizontal"===this._orientation,s=n[t].clientRect,l=n[t+-1*a],d=s[o?"width":"height"]*a;if(l){var h=o?"left":"top",C=o?"right":"bottom";-1===a?d-=l.clientRect[h]-s[C]:d+=s[h]-l.clientRect[C]}return d}},{key:"_getItemOffsetPx",value:function(t,n,a){var o="horizontal"===this._orientation,s=o?n.left-t.left:n.top-t.top;return-1===a&&(s+=o?n.width-t.width:n.height-t.height),s}},{key:"_shouldEnterAsFirstChild",value:function(t,n){if(!this._activeDraggables.length)return!1;var a=this._itemPositions,o="horizontal"===this._orientation;if(a[0].drag!==this._activeDraggables[0]){var l=a[a.length-1].clientRect;return o?t>=l.right:n>=l.bottom}var d=a[0].clientRect;return o?t<=d.left:n<=d.top}},{key:"_getItemIndexFromPointerPosition",value:function(t,n,a,o){var s=this,l="horizontal"===this._orientation,d=this._itemPositions.findIndex(function(h){var C=h.drag,P=h.clientRect;return C!==t&&((!o||C!==s._previousSwap.drag||!s._previousSwap.overlaps||(l?o.x:o.y)!==s._previousSwap.delta)&&(l?n>=Math.floor(P.left)&&n=Math.floor(P.top)&&a-1})&&(o.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var t=this;this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(n){if(t.isDragging()){var a=t._parentPositions.handleScroll(n);a&&(t._itemPositions.forEach(function(o){im(o.clientRect,a.top,a.left)}),t._itemPositions.forEach(function(o){var s=o.drag;t._dragDropRegistry.isDragging(s)&&s._sortFromLastPointerPosition()}))}else t.isReceiving()&&t._cacheParentPositions()})}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var t=(0,vi.kV)((0,Hn.fI)(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}},{key:"_notifyReceivingSiblings",value:function(){var t=this,n=this._activeDraggables.filter(function(a){return a.isDragging()});this._siblings.forEach(function(a){return a._startReceiving(t,n)})}}]),r}();function gx(r,i){var t=r.top,n=r.bottom,o=.05*r.height;return i>=t-o&&i<=t+o?1:i>=n-o&&i<=n+o?2:0}function n3(r,i){var t=r.left,n=r.right,o=.05*r.width;return i>=t-o&&i<=t+o?1:i>=n-o&&i<=n+o?2:0}var Bg=(0,vi.i$)({passive:!1,capture:!0}),mB=function(){var r=function(){function i(t,n){var a=this;(0,v.Z)(this,i),this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=function(o){return o.isDragging()},this.pointerMove=new Un.xQ,this.pointerUp=new Un.xQ,this.scroll=new Un.xQ,this._preventDefaultWhileDragging=function(o){a._activeDragInstances.length>0&&o.preventDefault()},this._persistentTouchmoveListener=function(o){a._activeDragInstances.length>0&&(a._activeDragInstances.some(a._draggingPredicate)&&o.preventDefault(),a.pointerMove.next(o))},this._document=n}return(0,g.Z)(i,[{key:"registerDropContainer",value:function(n){this._dropInstances.has(n)||this._dropInstances.add(n)}},{key:"registerDragItem",value:function(n){var a=this;this._dragInstances.add(n),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(function(){a._document.addEventListener("touchmove",a._persistentTouchmoveListener,Bg)})}},{key:"removeDropContainer",value:function(n){this._dropInstances.delete(n)}},{key:"removeDragItem",value:function(n){this._dragInstances.delete(n),this.stopDragging(n),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Bg)}},{key:"startDragging",value:function(n,a){var o=this;if(!(this._activeDragInstances.indexOf(n)>-1)&&(this._activeDragInstances.push(n),1===this._activeDragInstances.length)){var s=a.type.startsWith("touch");this._globalListeners.set(s?"touchend":"mouseup",{handler:function(d){return o.pointerUp.next(d)},options:!0}).set("scroll",{handler:function(d){return o.scroll.next(d)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Bg}),s||this._globalListeners.set("mousemove",{handler:function(d){return o.pointerMove.next(d)},options:Bg}),this._ngZone.runOutsideAngular(function(){o._globalListeners.forEach(function(l,d){o._document.addEventListener(d,l.handler,l.options)})})}}},{key:"stopDragging",value:function(n){var a=this._activeDragInstances.indexOf(n);a>-1&&(this._activeDragInstances.splice(a,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}},{key:"isDragging",value:function(n){return this._activeDragInstances.indexOf(n)>-1}},{key:"scrolled",value:function(n){var a=this,o=[this.scroll];return n&&n!==this._document&&o.push(new wo.y(function(s){return a._ngZone.runOutsideAngular(function(){var d=function(C){a._activeDragInstances.length&&s.next(C)};return n.addEventListener("scroll",d,!0),function(){n.removeEventListener("scroll",d,!0)}})})),Ra.T.apply(void 0,o)}},{key:"ngOnDestroy",value:function(){var n=this;this._dragInstances.forEach(function(a){return n.removeDragItem(a)}),this._dropInstances.forEach(function(a){return n.removeDropContainer(a)}),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var n=this;this._globalListeners.forEach(function(a,o){n._document.removeEventListener(o,a.handler,a.options)}),this._globalListeners.clear()}}]),i}();return r.\u0275fac=function(t){return new(t||r)(e.LFG(e.R0b),e.LFG(Pt.K0))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r}(),vB={dragStartThreshold:5,pointerDirectionChangeThreshold:5},Hb=function(){var r=function(){function i(t,n,a,o){(0,v.Z)(this,i),this._document=t,this._ngZone=n,this._viewportRuler=a,this._dragDropRegistry=o}return(0,g.Z)(i,[{key:"createDrag",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:vB;return new XI(n,a,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(n){return new hB(n,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),i}();return r.\u0275fac=function(t){return new(t||r)(e.LFG(Pt.K0),e.LFG(e.R0b),e.LFG(ku.rL),e.LFG(mB))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r}(),wu=function(){var r=function i(){(0,v.Z)(this,i)};return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({providers:[Hb],imports:[ku.ZD]}),r}(),Ga=f(57219),Ms=f(58290),ma=f(45351),As=f(17048),$i=f(37810),Ug=f(47593),Kn=f(82429),Ea=f(63303),Cx=[[["caption"]],[["colgroup"],["col"]]],Sx=["caption","colgroup, col"];function am(r){return function(i){(0,O.Z)(n,i);var t=(0,y.Z)(n);function n(){var a;(0,v.Z)(this,n);for(var o=arguments.length,s=new Array(o),l=0;l4&&void 0!==arguments[4])||arguments[4],s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],l=arguments.length>6?arguments[6]:void 0;(0,v.Z)(this,r),this._isNativeHtmlTable=i,this._stickCellCss=t,this.direction=n,this._coalescedStyleScheduler=a,this._isBrowser=o,this._needsPositionStickyOnElement=s,this._positionListener=l,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(t,"-border-elem-top"),bottom:"".concat(t,"-border-elem-bottom"),left:"".concat(t,"-border-elem-left"),right:"".concat(t,"-border-elem-right")}}return(0,g.Z)(r,[{key:"clearStickyPositioning",value:function(t,n){var l,a=this,o=[],s=(0,E.Z)(t);try{for(s.s();!(l=s.n()).done;){var d=l.value;if(d.nodeType===d.ELEMENT_NODE){o.push(d);for(var h=0;h3&&void 0!==arguments[3])||arguments[3];if(t.length&&this._isBrowser&&(n.some(function(Q){return Q})||a.some(function(Q){return Q}))){var l=t[0],d=l.children.length,h=this._getCellWidths(l,s),C=this._getStickyStartColumnPositions(h,n),P=this._getStickyEndColumnPositions(h,a),N=n.lastIndexOf(!0),q=a.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var $e,Q="rtl"===o.direction,te=Q?"right":"left",se=Q?"left":"right",Te=(0,E.Z)(t);try{for(Te.s();!($e=Te.n()).done;)for(var ze=$e.value,rt=0;rt1&&void 0!==arguments[1])||arguments[1];if(!n&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var a=[],o=t.children,s=0;s0;s--)n[s]&&(a[s]=o,o+=t[s]);return a}}]),r}(),zg=new e.OlP("CDK_SPL"),Wg=function(){var r=function i(t,n){(0,v.Z)(this,i),this.viewContainer=t,this.elementRef=n};return r.\u0275fac=function(t){return new(t||r)(e.Y36(e.s_b),e.Y36(e.SBq))},r.\u0275dir=e.lG2({type:r,selectors:[["","rowOutlet",""]]}),r}(),Gg=function(){var r=function i(t,n){(0,v.Z)(this,i),this.viewContainer=t,this.elementRef=n};return r.\u0275fac=function(t){return new(t||r)(e.Y36(e.s_b),e.Y36(e.SBq))},r.\u0275dir=e.lG2({type:r,selectors:[["","headerRowOutlet",""]]}),r}(),Yg=function(){var r=function i(t,n){(0,v.Z)(this,i),this.viewContainer=t,this.elementRef=n};return r.\u0275fac=function(t){return new(t||r)(e.Y36(e.s_b),e.Y36(e.SBq))},r.\u0275dir=e.lG2({type:r,selectors:[["","footerRowOutlet",""]]}),r}(),Gb=function(){var r=function i(t,n){(0,v.Z)(this,i),this.viewContainer=t,this.elementRef=n};return r.\u0275fac=function(t){return new(t||r)(e.Y36(e.s_b),e.Y36(e.SBq))},r.\u0275dir=e.lG2({type:r,selectors:[["","noDataRowOutlet",""]]}),r}(),Cf=function(){var r=function(){function i(t,n,a,o,s,l,d,h,C,P,N){(0,v.Z)(this,i),this._differs=t,this._changeDetectorRef=n,this._elementRef=a,this._dir=s,this._platform=d,this._viewRepeater=h,this._coalescedStyleScheduler=C,this._viewportRuler=P,this._stickyPositioningListener=N,this._onDestroy=new Un.xQ,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new e.vpe,this.viewChange=new $i.X({start:0,end:Number.MAX_VALUE}),o||this._elementRef.nativeElement.setAttribute("role","table"),this._document=l,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return(0,g.Z)(i,[{key:"trackBy",get:function(){return this._trackByFn},set:function(n){this._trackByFn=n}},{key:"dataSource",get:function(){return this._dataSource},set:function(n){this._dataSource!==n&&this._switchDataSource(n)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(n){this._multiTemplateDataRows=(0,Hn.Ig)(n),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(n){this._fixedLayout=(0,Hn.Ig)(n),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}},{key:"ngOnInit",value:function(){var n=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(a,o){return n.trackBy?n.trackBy(o.dataIndex,o.data):o}),this._viewportRuler.change().pipe((0,Ai.R)(this._onDestroy)).subscribe(function(){n._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var a=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||a,this._forceRecalculateCellWidths=a,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),(0,ma.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var n=this;this._renderRows=this._getAllRenderRows();var a=this._dataDiffer.diff(this._renderRows);if(!a)return this._updateNoDataRow(),void this.contentChanged.next();var o=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(a,o,function(s,l,d){return n._getEmbeddedViewArgs(s.item,d)},function(s){return s.item.data},function(s){1===s.operation&&s.context&&n._renderCellTemplateForItem(s.record.item.rowDef,s.context)}),this._updateRowIndexContext(),a.forEachIdentityChange(function(s){o.get(s.currentIndex).context.$implicit=s.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles(),this.contentChanged.next()}},{key:"addColumnDef",value:function(n){this._customColumnDefs.add(n)}},{key:"removeColumnDef",value:function(n){this._customColumnDefs.delete(n)}},{key:"addRowDef",value:function(n){this._customRowDefs.add(n)}},{key:"removeRowDef",value:function(n){this._customRowDefs.delete(n)}},{key:"addHeaderRowDef",value:function(n){this._customHeaderRowDefs.add(n),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(n){this._customHeaderRowDefs.delete(n),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(n){this._customFooterRowDefs.add(n),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(n){this._customFooterRowDefs.delete(n),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(n){this._customNoDataRow=n}},{key:"updateStickyHeaderRowStyles",value:function(){var n=this._getRenderedRows(this._headerRowOutlet),o=this._elementRef.nativeElement.querySelector("thead");o&&(o.style.display=n.length?"":"none");var s=this._headerRowDefs.map(function(l){return l.sticky});this._stickyStyler.clearStickyPositioning(n,["top"]),this._stickyStyler.stickRows(n,s,"top"),this._headerRowDefs.forEach(function(l){return l.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var n=this._getRenderedRows(this._footerRowOutlet),o=this._elementRef.nativeElement.querySelector("tfoot");o&&(o.style.display=n.length?"":"none");var s=this._footerRowDefs.map(function(l){return l.sticky});this._stickyStyler.clearStickyPositioning(n,["bottom"]),this._stickyStyler.stickRows(n,s,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,s),this._footerRowDefs.forEach(function(l){return l.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var n=this,a=this._getRenderedRows(this._headerRowOutlet),o=this._getRenderedRows(this._rowOutlet),s=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat((0,T.Z)(a),(0,T.Z)(o),(0,T.Z)(s)),["left","right"]),this._stickyColumnStylesNeedReset=!1),a.forEach(function(l,d){n._addStickyColumnStyles([l],n._headerRowDefs[d])}),this._rowDefs.forEach(function(l){for(var d=[],h=0;h0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(a,o){return n._renderRow(n._headerRowOutlet,a,o)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var n=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(a,o){return n._renderRow(n._footerRowOutlet,a,o)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(n,a){var o=this,s=Array.from(a.columns||[]).map(function(h){return o._columnDefsByName.get(h)}),l=s.map(function(h){return h.sticky}),d=s.map(function(h){return h.stickyEnd});this._stickyStyler.updateStickyColumns(n,l,d,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(n){for(var a=[],o=0;o3&&void 0!==arguments[3]?arguments[3]:{},l=n.viewContainer.createEmbeddedView(a.template,s,o);return this._renderCellTemplateForItem(a,s),l}},{key:"_renderCellTemplateForItem",value:function(n,a){var s,o=(0,E.Z)(this._getCellTemplates(n));try{for(o.s();!(s=o.n()).done;)xu.mostRecentCellOutlet&&xu.mostRecentCellOutlet._viewContainer.createEmbeddedView(s.value,a)}catch(d){o.e(d)}finally{o.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var n=this._rowOutlet.viewContainer,a=0,o=n.length;a0;)t[n]=i[n+1];return g3(r,t=t.map(eC))}function y3(r){for(var i=arguments,t=[],n=arguments.length-1;n-- >0;)t[n]=i[n+1];return t.map(eC).reduce(function(a,o){var s=Fx(r,o);return-1!==s?a.concat(r.splice(s,1)):a},[])}function eC(r,i){if("string"==typeof r)try{return document.querySelector(r)}catch(t){throw t}if(!Lx(r)&&!i)throw new TypeError(r+" is not a DOM element.");return r}function lm(r){if(r===window)return function(){var r={top:{value:0,enumerable:!0},left:{value:0,enumerable:!0},right:{value:window.innerWidth,enumerable:!0},bottom:{value:window.innerHeight,enumerable:!0},width:{value:window.innerWidth,enumerable:!0},height:{value:window.innerHeight,enumerable:!0},x:{value:0,enumerable:!0},y:{value:0,enumerable:!0}};if(Object.create)return Object.create({},r);var i={};return Object.defineProperties(i,r),i}();try{var i=r.getBoundingClientRect();return void 0===i.x&&(i.x=i.left,i.y=i.top),i}catch(t){throw new TypeError("Can't call getBoundingClientRect on "+r)}}var i,np=void 0;"function"!=typeof Object.create?(i=function(){},np=function(t,n){if(t!==Object(t)&&null!==t)throw TypeError("Argument must be an object, or null");i.prototype=t||{};var a=new i;return i.prototype=null,void 0!==n&&Object.defineProperties(a,n),null===t&&(a.__proto__=null),a}):np=Object.create;var oa=np,Qs=["altKey","button","buttons","clientX","clientY","ctrlKey","metaKey","movementX","movementY","offsetX","offsetY","pageX","pageY","region","relatedTarget","screenX","screenY","shiftKey","which","x","y"];function rp(r,i){i=i||{};for(var t=oa(r),n=0;nit.right-t.margin.right?Math.ceil(Math.min(1,(s.x-it.right)/t.margin.right+1)*t.maxSpeed.right):0,ln=s.yit.bottom-t.margin.bottom?Math.ceil(Math.min(1,(s.y-it.bottom)/t.margin.bottom+1)*t.maxSpeed.bottom):0,t.syncMove()&&d.dispatch(qt,{pageX:s.pageX+It,pageY:s.pageY+ln,clientX:s.x+It,clientY:s.y+ln}),setTimeout(function(){ln&&function(qt,it){qt===window?window.scrollTo(qt.pageXOffset,qt.pageYOffset+it):qt.scrollTop+=it}(qt,ln),It&&function(qt,it){qt===window?window.scrollTo(qt.pageXOffset+it,qt.pageYOffset):qt.scrollLeft+=it}(qt,It)})}window.addEventListener("mousedown",te,!1),window.addEventListener("touchstart",te,!1),window.addEventListener("mouseup",se,!1),window.addEventListener("touchend",se,!1),window.addEventListener("pointerup",se,!1),window.addEventListener("mousemove",dt,!1),window.addEventListener("touchmove",dt,!1),window.addEventListener("mouseleave",$e,!1),window.addEventListener("scroll",Q,!0)}function Hx(r,i,t){return t?r.y>t.top&&r.yt.left&&r.xt.top&&r.yt.left&&r.x0})}));return C.complete(),se})).subscribe(function(te){var se=te.x,Te=te.y,$e=te.dragCancelled;n.scroller.destroy(),n.zone.run(function(){n.dragEnd.next({x:se,y:Te,dragCancelled:$e})}),function(r,i,t){t&&t.split(" ").forEach(function(n){return r.removeClass(i.nativeElement,n)})}(n.renderer,n.element,n.dragActiveClass),h.complete()}),(0,Ra.T)(P,Q).pipe((0,Ea.q)(1)).subscribe(function(){requestAnimationFrame(function(){n.document.head.removeChild(s)})}),N}),(0,Tf.B)());(0,Ra.T)(a.pipe((0,Ea.q)(1),(0,kr.U)(function(o){return[,o]})),a.pipe((0,Zx.G)())).pipe((0,ea.h)(function(o){var s=(0,b.Z)(o,2),l=s[0],d=s[1];return!l||l.x!==d.x||l.y!==d.y}),(0,kr.U)(function(o){return(0,b.Z)(o,2)[1]})).subscribe(function(o){var s=o.x,l=o.y,d=o.currentDrag$,h=o.clientX,C=o.clientY,P=o.transformX,N=o.transformY,q=o.target;n.zone.run(function(){n.dragging.next({x:s,y:l})}),requestAnimationFrame(function(){if(n.ghostElement){var Q="translate3d(".concat(P,"px, ").concat(N,"px, 0px)");n.setElementStyles(n.ghostElement,{transform:Q,"-webkit-transform":Q,"-ms-transform":Q,"-moz-transform":Q,"-o-transform":Q})}}),d.next({clientX:h,clientY:C,dropData:n.dropData,target:q})})}},{key:"ngOnChanges",value:function(n){n.dragAxis&&this.checkEventListeners()}},{key:"ngOnDestroy",value:function(){this.unsubscribeEventListeners(),this.pointerDown$.complete(),this.pointerMove$.complete(),this.pointerUp$.complete(),this.destroy$.next()}},{key:"checkEventListeners",value:function(){var n=this,a=this.canDrag(),o=Object.keys(this.eventListenerSubscriptions).length>0;a&&!o?this.zone.runOutsideAngular(function(){n.eventListenerSubscriptions.mousedown=n.renderer.listen(n.element.nativeElement,"mousedown",function(s){n.onMouseDown(s)}),n.eventListenerSubscriptions.mouseup=n.renderer.listen("document","mouseup",function(s){n.onMouseUp(s)}),n.eventListenerSubscriptions.touchstart=n.renderer.listen(n.element.nativeElement,"touchstart",function(s){n.onTouchStart(s)}),n.eventListenerSubscriptions.touchend=n.renderer.listen("document","touchend",function(s){n.onTouchEnd(s)}),n.eventListenerSubscriptions.touchcancel=n.renderer.listen("document","touchcancel",function(s){n.onTouchEnd(s)}),n.eventListenerSubscriptions.mouseenter=n.renderer.listen(n.element.nativeElement,"mouseenter",function(){n.onMouseEnter()}),n.eventListenerSubscriptions.mouseleave=n.renderer.listen(n.element.nativeElement,"mouseleave",function(){n.onMouseLeave()})}):!a&&o&&this.unsubscribeEventListeners()}},{key:"onMouseDown",value:function(n){var a=this;0===n.button&&(this.eventListenerSubscriptions.mousemove||(this.eventListenerSubscriptions.mousemove=this.renderer.listen("document","mousemove",function(o){a.pointerMove$.next({event:o,clientX:o.clientX,clientY:o.clientY})})),this.pointerDown$.next({event:n,clientX:n.clientX,clientY:n.clientY}))}},{key:"onMouseUp",value:function(n){0===n.button&&(this.eventListenerSubscriptions.mousemove&&(this.eventListenerSubscriptions.mousemove(),delete this.eventListenerSubscriptions.mousemove),this.pointerUp$.next({event:n,clientX:n.clientX,clientY:n.clientY}))}},{key:"onTouchStart",value:function(n){var o,s,l,a=this;if(this.touchStartLongPress&&(this.timeLongPress.timerBegin=Date.now(),s=!1,l=this.hasScrollbar(),o=this.getScrollPosition()),!this.eventListenerSubscriptions.touchmove){var d=(0,Jg.R)(this.document,"contextmenu").subscribe(function(C){C.preventDefault()}),h=(0,Jg.R)(this.document,"touchmove",{passive:!1}).subscribe(function(C){a.touchStartLongPress&&!s&&l&&(s=a.shouldBeginDrag(n,C,o)),(!a.touchStartLongPress||!l||s)&&(C.preventDefault(),a.pointerMove$.next({event:C,clientX:C.targetTouches[0].clientX,clientY:C.targetTouches[0].clientY}))});this.eventListenerSubscriptions.touchmove=function(){d.unsubscribe(),h.unsubscribe()}}this.pointerDown$.next({event:n,clientX:n.touches[0].clientX,clientY:n.touches[0].clientY})}},{key:"onTouchEnd",value:function(n){this.eventListenerSubscriptions.touchmove&&(this.eventListenerSubscriptions.touchmove(),delete this.eventListenerSubscriptions.touchmove,this.touchStartLongPress&&this.enableScroll()),this.pointerUp$.next({event:n,clientX:n.changedTouches[0].clientX,clientY:n.changedTouches[0].clientY})}},{key:"onMouseEnter",value:function(){this.setCursor(this.dragCursor)}},{key:"onMouseLeave",value:function(){this.setCursor("")}},{key:"canDrag",value:function(){return this.dragAxis.x||this.dragAxis.y}},{key:"setCursor",value:function(n){this.eventListenerSubscriptions.mousemove||this.renderer.setStyle(this.element.nativeElement,"cursor",n)}},{key:"unsubscribeEventListeners",value:function(){var n=this;Object.keys(this.eventListenerSubscriptions).forEach(function(a){n.eventListenerSubscriptions[a](),delete n.eventListenerSubscriptions[a]})}},{key:"setElementStyles",value:function(n,a){var o=this;Object.keys(a).forEach(function(s){o.renderer.setStyle(n,s,a[s])})}},{key:"getScrollElement",value:function(){return this.scrollContainer?this.scrollContainer.elementRef.nativeElement:this.document.body}},{key:"getScrollPosition",value:function(){return this.scrollContainer?{top:this.scrollContainer.elementRef.nativeElement.scrollTop,left:this.scrollContainer.elementRef.nativeElement.scrollLeft}:{top:window.pageYOffset||this.document.documentElement.scrollTop,left:window.pageXOffset||this.document.documentElement.scrollLeft}}},{key:"shouldBeginDrag",value:function(n,a,o){var s=this.getScrollPosition(),l_top=Math.abs(s.top-o.top),l_left=Math.abs(s.left-o.left),d=Math.abs(a.targetTouches[0].clientX-n.touches[0].clientX)-l_left,h=Math.abs(a.targetTouches[0].clientY-n.touches[0].clientY)-l_top,P=this.touchStartLongPress;return(d+h>P.delta||l_top>0||l_left>0)&&(this.timeLongPress.timerBegin=Date.now()),this.timeLongPress.timerEnd=Date.now(),this.timeLongPress.timerEnd-this.timeLongPress.timerBegin>=P.delay&&(this.disableScroll(),!0)}},{key:"enableScroll",value:function(){this.scrollContainer&&this.renderer.setStyle(this.scrollContainer.elementRef.nativeElement,"overflow",""),this.renderer.setStyle(this.document.body,"overflow","")}},{key:"disableScroll",value:function(){this.scrollContainer&&this.renderer.setStyle(this.scrollContainer.elementRef.nativeElement,"overflow","hidden"),this.renderer.setStyle(this.document.body,"overflow","hidden")}},{key:"hasScrollbar",value:function(){var n=this.getScrollElement();return n.scrollWidth>n.clientWidth||n.scrollHeight>n.clientHeight}}]),i}();return r.\u0275fac=function(t){return new(t||r)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(yl),e.Y36(e.R0b),e.Y36(e.s_b),e.Y36($g,8),e.Y36(Pt.K0))},r.\u0275dir=e.lG2({type:r,selectors:[["","mwlDraggable",""]],inputs:{dragAxis:"dragAxis",dragSnapGrid:"dragSnapGrid",ghostDragEnabled:"ghostDragEnabled",showOriginalElementWhileDragging:"showOriginalElementWhileDragging",dragCursor:"dragCursor",autoScroll:"autoScroll",dropData:"dropData",validateDrag:"validateDrag",dragActiveClass:"dragActiveClass",ghostElementAppendTo:"ghostElementAppendTo",ghostElementTemplate:"ghostElementTemplate",touchStartLongPress:"touchStartLongPress"},outputs:{dragPointerDown:"dragPointerDown",dragStart:"dragStart",ghostElementCreated:"ghostElementCreated",dragging:"dragging",dragEnd:"dragEnd"},features:[e.TTD]}),r}(),T3=function(){var r=function i(){(0,v.Z)(this,i)};return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({}),r}(),Ks=f(58939);function Yi(r,i){return ri?1:r>=i?0:NaN}function Xs(r){return 1===r.length&&(r=function(r){return function(i,t){return Yi(r(i),t)}}(r)),{left:function(t,n,a,o){for(null==a&&(a=0),null==o&&(o=t.length);a>>1;r(t[s],n)<0?a=s+1:o=s}return a},right:function(t,n,a,o){for(null==a&&(a=0),null==o&&(o=t.length);a>>1;r(t[s],n)>0?o=s:a=s+1}return a}}}var qx=Xs(Yi),tC=qx.right,nC=qx.left,ac=tC;function rC(r,i){null==i&&(i=zx);for(var t=0,n=r.length-1,a=r[0],o=new Array(n<0?0:n);tr?1:i>=r?0:NaN}function oc(r){return null===r?NaN:+r}function e_(r,i){var s,l,t=r.length,n=0,a=-1,o=0,d=0;if(null==i)for(;++a1)return d/(n-1)}function Ef(r,i){var t=e_(r,i);return t&&Math.sqrt(t)}function cm(r,i){var a,o,s,t=r.length,n=-1;if(null==i){for(;++n=a)for(o=s=a;++na&&(o=a),s=a)for(o=s=a;++na&&(o=a),s0)return[r];if((n=i0)for(r=Math.ceil(r/l),i=Math.floor(i/l),s=new Array(o=Math.ceil(i-r+1));++a=0?(o>=n_?10:o>=Mf?5:o>=aC?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(o>=n_?10:o>=Mf?5:o>=aC?2:1)}function Af(r,i,t){var n=Math.abs(i-r)/Math.max(0,t),a=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),o=n/a;return o>=n_?a*=10:o>=Mf?a*=5:o>=aC&&(a*=2),iP;)N.pop(),--q;var te,Q=new Array(q+1);for(o=0;o<=q;++o)(te=Q[o]=[]).x0=o>0?N[o-1]:C,te.x1=o=1)return+t(r[n-1],n-1,r);var n,a=(n-1)*i,o=Math.floor(a),s=+t(r[o],o,r);return s+(+t(r[o+1],o+1,r)-s)*(a-o)}}function VB(r,i,t){return r=HB.call(r,oc).sort(Yi),Math.ceil((t-i)/(2*(r_(r,.75)-r_(r,.25))*Math.pow(r.length,-1/3)))}function jB(r,i,t){return Math.ceil((t-i)/(3.5*Ef(r)*Math.pow(r.length,-1/3)))}function Yx(r,i){var a,o,t=r.length,n=-1;if(null==i){for(;++n=a)for(o=a;++no&&(o=a)}else for(;++n=a)for(o=a;++no&&(o=a);return o}function x3(r,i){var o,t=r.length,n=t,a=-1,s=0;if(null==i)for(;++a=0;)for(t=(s=r[i]).length;--t>=0;)o[--a]=s[t];return o}function Jx(r,i){var a,o,t=r.length,n=-1;if(null==i){for(;++n=a)for(o=a;++na&&(o=a)}else for(;++n=a)for(o=a;++na&&(o=a);return o}function Yl(r,i){for(var t=i.length,n=new Array(t);t--;)n[t]=r[i[t]];return n}function M3(r,i){if(t=r.length){var t,o,n=0,a=0,s=r[a];for(null==i&&(i=Yi);++n=0&&(n=t.slice(a+1),t=t.slice(0,a)),t&&!i.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}function YB(r,i){for(var a,t=0,n=r.length;t0)for(var o,s,n=new Array(o),a=0;a=0&&"xmlns"!==(i=r.slice(0,t))&&(r=r.slice(t+1)),fC.hasOwnProperty(i)?{space:fC[i],local:r}:r}function B3(r){return function(){var i=this.ownerDocument,t=this.namespaceURI;return t===eE&&i.documentElement.namespaceURI===eE?i.createElement(r):i.createElementNS(t,r)}}function U3(r){return function(){return this.ownerDocument.createElementNS(r.space,r.local)}}function i_(r){var i=hm(r);return(i.local?U3:B3)(i)}function H3(){}function a_(r){return null==r?H3:function(){return this.querySelector(r)}}function JB(){return[]}function o_(r){return null==r?JB:function(){return this.querySelectorAll(r)}}var tE=function(i){return function(){return this.matches(i)}};if("undefined"!=typeof document){var mm=document.documentElement;if(!mm.matches){var q3=mm.webkitMatchesSelector||mm.msMatchesSelector||mm.mozMatchesSelector||mm.oMatchesSelector;tE=function(i){return function(){return q3.call(this,i)}}}}var hC=tE;function rE(r){return new Array(r.length)}function mC(r,i){this.ownerDocument=r.ownerDocument,this.namespaceURI=r.namespaceURI,this._next=null,this._parent=r,this.__data__=i}function vC(r,i,t,n,a,o){for(var l,s=0,d=i.length,h=o.length;si?1:r>=i?0:NaN}function eR(r){return function(){this.removeAttribute(r)}}function oE(r){return function(){this.removeAttributeNS(r.space,r.local)}}function KB(r,i){return function(){this.setAttribute(r,i)}}function tR(r,i){return function(){this.setAttributeNS(r.space,r.local,i)}}function nR(r,i){return function(){var t=i.apply(this,arguments);null==t?this.removeAttribute(r):this.setAttribute(r,t)}}function rR(r,i){return function(){var t=i.apply(this,arguments);null==t?this.removeAttributeNS(r.space,r.local):this.setAttributeNS(r.space,r.local,t)}}function s_(r){return r.ownerDocument&&r.ownerDocument.defaultView||r.document&&r||r.defaultView}function XB(r){return function(){this.style.removeProperty(r)}}function iR(r,i,t){return function(){this.style.setProperty(r,i,t)}}function $B(r,i,t){return function(){var n=i.apply(this,arguments);null==n?this.style.removeProperty(r):this.style.setProperty(r,n,t)}}function Of(r,i){return r.style.getPropertyValue(i)||s_(r).getComputedStyle(r,null).getPropertyValue(i)}function yC(r){return function(){delete this[r]}}function aR(r,i){return function(){this[r]=i}}function oR(r,i){return function(){var t=i.apply(this,arguments);null==t?delete this[r]:this[r]=t}}function lR(r){return r.trim().split(/^|\s+/)}function bC(r){return r.classList||new sE(r)}function sE(r){this._node=r,this._names=lR(r.getAttribute("class")||"")}function lE(r,i){for(var t=bC(r),n=-1,a=i.length;++n=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(i){return this._names.indexOf(i)>=0}};var _m={},xn=null;function wC(r,i,t){return r=_E(r,i,t),function(n){var a=n.relatedTarget;(!a||a!==this&&!(8&a.compareDocumentPosition(this)))&&r.call(this,n)}}function _E(r,i,t){return function(n){var a=xn;xn=n;try{r.call(this,this.__data__,i,t)}finally{xn=a}}}function vR(r){return r.trim().split(/^|\s+/).map(function(i){var t="",n=i.indexOf(".");return n>=0&&(t=i.slice(n+1),i=i.slice(0,n)),{type:i,name:t}})}function gR(r){return function(){var i=this.__on;if(i){for(var o,t=0,n=-1,a=i.length;t=ze&&(ze=$e+1);!(dt=se[ze])&&++ze=0;)(s=n[a])&&(o&&o!==s.nextSibling&&o.parentNode.insertBefore(s,o),o=s);return this},sort:function(r){function i(P,N){return P&&N?r(P.__data__,N.__data__):!P-!N}r||(r=iE);for(var t=this._groups,n=t.length,a=new Array(n),o=0;o1?this.each((null==i?XB:"function"==typeof i?$B:iR)(r,i,null==t?"":t)):Of(this.node(),r)},property:function(r,i){return arguments.length>1?this.each((null==i?yC:"function"==typeof i?oR:aR)(r,i)):this.node()[r]},classed:function(r,i){var t=lR(r+"");if(arguments.length<2){for(var n=bC(this.node()),a=-1,o=t.length;++a>8&15|i>>4&240,i>>4&15|240&i,(15&i)<<4|15&i,1):(i=CR.exec(r))?kR(parseInt(i[1],16)):(i=SR.exec(r))?new Fo(i[1],i[2],i[3],1):(i=n4.exec(r))?new Fo(255*i[1]/100,255*i[2]/100,255*i[3]/100,1):(i=r4.exec(r))?wR(i[1],i[2],i[3],i[4]):(i=a4.exec(r))?wR(255*i[1]/100,255*i[2]/100,255*i[3]/100,i[4]):(i=o4.exec(r))?xR(i[1],i[2]/100,i[3]/100,1):(i=s4.exec(r))?xR(i[1],i[2]/100,i[3]/100,i[4]):TR.hasOwnProperty(r)?kR(TR[r]):"transparent"===r?new Fo(NaN,NaN,NaN,0):null}function kR(r){return new Fo(r>>16&255,r>>8&255,255&r,1)}function wR(r,i,t,n){return n<=0&&(r=i=t=NaN),new Fo(r,i,t,n)}function TE(r){return r instanceof uc||(r=ed(r)),r?new Fo((r=r.rgb()).r,r.g,r.b,r.opacity):new Fo}function v_(r,i,t,n){return 1===arguments.length?TE(r):new Fo(r,i,t,null==n?1:n)}function Fo(r,i,t,n){this.r=+r,this.g=+i,this.b=+t,this.opacity=+n}function xR(r,i,t,n){return n<=0?r=i=t=NaN:t<=0||t>=1?r=i=NaN:i<=0&&(r=NaN),new dc(r,i,t,n)}function l4(r){if(r instanceof dc)return new dc(r.h,r.s,r.l,r.opacity);if(r instanceof uc||(r=ed(r)),!r)return new dc;if(r instanceof dc)return r;var i=(r=r.rgb()).r/255,t=r.g/255,n=r.b/255,a=Math.min(i,t,n),o=Math.max(i,t,n),s=NaN,l=o-a,d=(o+a)/2;return l?(s=i===o?(t-n)/l+6*(t0&&d<1?0:s,new dc(s,l,d,r.opacity)}function AC(r,i,t,n){return 1===arguments.length?l4(r):new dc(r,i,t,null==n?1:n)}function dc(r,i,t,n){this.h=+r,this.s=+i,this.l=+t,this.opacity=+n}function u(r,i,t){return 255*(r<60?i+(t-i)*r/60:r<180?t:r<240?i+(t-i)*(240-r)/60:i)}lp(uc,ed,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),lp(Fo,v_,If(uc,{brighter:function(i){return i=null==i?$c:Math.pow($c,i),new Fo(this.r*i,this.g*i,this.b*i,this.opacity)},darker:function(i){return i=null==i?.7:Math.pow(.7,i),new Fo(this.r*i,this.g*i,this.b*i,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var i=this.opacity;return(1===(i=isNaN(i)?1:Math.max(0,Math.min(1,i)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===i?")":", "+i+")")}})),lp(dc,AC,If(uc,{brighter:function(i){return i=null==i?$c:Math.pow($c,i),new dc(this.h,this.s,this.l*i,this.opacity)},darker:function(i){return i=null==i?.7:Math.pow(.7,i),new dc(this.h,this.s,this.l*i,this.opacity)},rgb:function(){var i=this.h%360+360*(this.h<0),t=isNaN(i)||isNaN(this.s)?0:this.s,n=this.l,a=n+(n<.5?n:1-n)*t,o=2*n-a;return new Fo(u(i>=240?i-240:i+120,o,a),u(i,o,a),u(i<120?i+240:i-120,o,a),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var c=Math.PI/180,p=180/Math.PI,_=.96422,H=.82521,z=4/29,ee=6/29,ve=3*ee*ee;function Je(r){if(r instanceof ct)return new ct(r.l,r.a,r.b,r.opacity);if(r instanceof wr){if(isNaN(r.h))return new ct(r.l,0,0,r.opacity);var i=r.h*c;return new ct(r.l,Math.cos(i)*r.c,Math.sin(i)*r.c,r.opacity)}r instanceof Fo||(r=TE(r));var s,l,t=Nn(r.r),n=Nn(r.g),a=Nn(r.b),o=Mt((.2225045*t+.7168786*n+.0606169*a)/1);return t===n&&n===a?s=l=o:(s=Mt((.4360747*t+.3850649*n+.1430804*a)/_),l=Mt((.0139322*t+.0971045*n+.7141733*a)/H)),new ct(116*o-16,500*(s-o),200*(o-l),r.opacity)}function We(r,i,t,n){return 1===arguments.length?Je(r):new ct(r,i,t,null==n?1:n)}function ct(r,i,t,n){this.l=+r,this.a=+i,this.b=+t,this.opacity=+n}function Mt(r){return r>.008856451679035631?Math.pow(r,1/3):r/ve+z}function zt(r){return r>ee?r*r*r:ve*(r-z)}function dn(r){return 255*(r<=.0031308?12.92*r:1.055*Math.pow(r,1/2.4)-.055)}function Nn(r){return(r/=255)<=.04045?r/12.92:Math.pow((r+.055)/1.055,2.4)}function vn(r){if(r instanceof wr)return new wr(r.h,r.c,r.l,r.opacity);if(r instanceof ct||(r=Je(r)),0===r.a&&0===r.b)return new wr(NaN,0,r.l,r.opacity);var i=Math.atan2(r.b,r.a)*p;return new wr(i<0?i+360:i,Math.sqrt(r.a*r.a+r.b*r.b),r.l,r.opacity)}function qn(r,i,t,n){return 1===arguments.length?vn(r):new wr(r,i,t,null==n?1:n)}function wr(r,i,t,n){this.h=+r,this.c=+i,this.l=+t,this.opacity=+n}lp(ct,We,If(uc,{brighter:function(i){return new ct(this.l+18*(null==i?1:i),this.a,this.b,this.opacity)},darker:function(i){return new ct(this.l-18*(null==i?1:i),this.a,this.b,this.opacity)},rgb:function(){var i=(this.l+16)/116,t=isNaN(this.a)?i:i+this.a/500,n=isNaN(this.b)?i:i-this.b/200;return new Fo(dn(3.1338561*(t=_*zt(t))-1.6168667*(i=1*zt(i))-.4906146*(n=H*zt(n))),dn(-.9787684*t+1.9161415*i+.033454*n),dn(.0719453*t-.2289914*i+1.4052427*n),this.opacity)}})),lp(wr,qn,If(uc,{brighter:function(i){return new wr(this.h,this.c,this.l+18*(null==i?1:i),this.opacity)},darker:function(i){return new wr(this.h,this.c,this.l-18*(null==i?1:i),this.opacity)},rgb:function(){return Je(this).rgb()}}));var Di=1.78277,sa=-.29227,Na=-.90649,Za=1.97294,Ql=Za*Na,pc=Za*Di,td=Di*sa- -.14861*Na;function nd(r){if(r instanceof Ps)return new Ps(r.h,r.s,r.l,r.opacity);r instanceof Fo||(r=TE(r));var t=r.g/255,n=r.b/255,a=(td*n+Ql*(r.r/255)-pc*t)/(td+Ql-pc),o=n-a,s=(Za*(t-a)-sa*o)/Na,l=Math.sqrt(s*s+o*o)/(Za*a*(1-a)),d=l?Math.atan2(s,o)*p-120:NaN;return new Ps(d<0?d+360:d,l,a,r.opacity)}function mo(r,i,t,n){return 1===arguments.length?nd(r):new Ps(r,i,t,null==n?1:n)}function Ps(r,i,t,n){this.h=+r,this.s=+i,this.l=+t,this.opacity=+n}function cp(r,i,t,n,a){var o=r*r,s=o*r;return((1-3*r+3*o-s)*i+(4-6*o+3*s)*t+(1+3*r+3*o-3*s)*n+s*a)/6}function km(r){var i=r.length-1;return function(t){var n=t<=0?t=0:t>=1?(t=1,i-1):Math.floor(t*i),a=r[n],o=r[n+1];return cp((t-n/i)*i,n>0?r[n-1]:2*a-o,a,o,n180||t<-180?t-360*Math.round(t/360):t):g_(isNaN(r)?i:r)}function xo(r,i){var t=i-r;return t?kE(r,t):g_(isNaN(r)?i:r)}lp(Ps,mo,If(uc,{brighter:function(i){return i=null==i?$c:Math.pow($c,i),new Ps(this.h,this.s,this.l*i,this.opacity)},darker:function(i){return i=null==i?.7:Math.pow(.7,i),new Ps(this.h,this.s,this.l*i,this.opacity)},rgb:function(){var i=isNaN(this.h)?0:(this.h+120)*c,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),a=Math.cos(i),o=Math.sin(i);return new Fo(255*(t+n*(-.14861*a+Di*o)),255*(t+n*(sa*a+Na*o)),255*(t+n*(Za*a)),this.opacity)}}));var wm=function r(i){var t=function(r){return 1==(r=+r)?xo:function(i,t){return t-i?function(r,i,t){return r=Math.pow(r,t),i=Math.pow(i,t)-r,t=1/t,function(n){return Math.pow(r+n*i,t)}}(i,t,r):g_(isNaN(i)?t:i)}}(i);function n(a,o){var s=t((a=v_(a)).r,(o=v_(o)).r),l=t(a.g,o.g),d=t(a.b,o.b),h=xo(a.opacity,o.opacity);return function(C){return a.r=s(C),a.g=l(C),a.b=d(C),a.opacity=h(C),a+""}}return n.gamma=r,n}(1);function xE(r){return function(i){var s,l,t=i.length,n=new Array(t),a=new Array(t),o=new Array(t);for(s=0;st&&(o=i.slice(t,o),l[s]?l[s]+=o:l[++s]=o),(n=n[0])===(a=a[0])?l[s]?l[s]+=a:l[++s]=a:(l[++s]=null,d.push({i:s,x:Kl(n,a)})),t=DR.lastIndex;return t180?C+=360:C-h>180&&(h+=360),N.push({i:P.push(a(P)+"rotate(",null,n)-2,x:Kl(h,C)})):C&&P.push(a(P)+"rotate("+C+n)}(h.rotate,C.rotate,P,N),function(h,C,P,N){h!==C?N.push({i:P.push(a(P)+"skewX(",null,n)-2,x:Kl(h,C)}):C&&P.push(a(P)+"skewX("+C+n)}(h.skewX,C.skewX,P,N),function(h,C,P,N,q,Q){if(h!==P||C!==N){var te=q.push(a(q)+"scale(",null,",",null,")");Q.push({i:te-4,x:Kl(h,P)},{i:te-2,x:Kl(C,N)})}else(1!==P||1!==N)&&q.push(a(q)+"scale("+P+","+N+")")}(h.scaleX,h.scaleY,C.scaleX,C.scaleY,P,N),h=C=null,function(q){for(var se,Q=-1,te=N.length;++Q=0&&r._call.call(null,i),r=r._next;--__}function E4(){xm=(OE=BC.now())+PE,__=ZC=0;try{x4()}finally{__=0,function(){for(var r,t,i=DE,n=1/0;i;)i._call?(n>i._time&&(n=i._time),r=i,i=i._next):(t=i._next,i._next=null,i=r?r._next=t:DE=t);FC=r,NR(n)}(),xm=0}}function tG(){var r=BC.now(),i=r-OE;i>1e3&&(PE-=i,OE=r)}function NR(r){__||(ZC&&(ZC=clearTimeout(ZC)),r-xm>24?(r<1/0&&(ZC=setTimeout(E4,r-BC.now()-PE)),LC&&(LC=clearInterval(LC))):(LC||(OE=BC.now(),LC=setInterval(tG,1e3)),__=1,w4(E4)))}function ZR(r,i,t){var n=new UC;return n.restart(function(a){n.stop(),r(a+i)},i=null==i?0:+i,t),n}UC.prototype=IE.prototype={constructor:UC,restart:function(i,t,n){if("function"!=typeof i)throw new TypeError("callback is not a function");n=(null==n?y_():+n)+(null==t?0:+t),!this._next&&FC!==this&&(FC?FC._next=this:DE=this,FC=this),this._call=i,this._time=n,NR()},stop:function(){this._call&&(this._call=null,this._time=1/0,NR())}};var rG=Df("start","end","interrupt"),iG=[];function ZE(r,i,t,n,a,o){var s=r.__transition;if(s){if(t in s)return}else r.__transition={};!function(r,i,t){var a,n=r.__transition;function s(h){var C,P,N,q;if(1!==t.state)return d();for(C in n)if((q=n[C]).name===t.name){if(3===q.state)return ZR(s);4===q.state?(q.state=6,q.timer.stop(),q.on.call("interrupt",r,r.__data__,q.index,q.group),delete n[C]):+C0)throw new Error("too late; already scheduled");return t}function Em(r,i){var t=fc(r,i);if(t.state>2)throw new Error("too late; already started");return t}function fc(r,i){var t=r.__transition;if(!t||!(t=t[i]))throw new Error("transition not found");return t}function Mm(r,i){var n,a,s,t=r.__transition,o=!0;if(t){for(s in i=null==i?null:i+"",t)(n=t[s]).name===i?(a=n.state>2&&n.state<5,n.state=6,n.timer.stop(),a&&n.on.call("interrupt",r,r.__data__,n.index,n.group),delete t[s]):o=!1;o&&delete r.__transition}}function sG(r,i){var t,n;return function(){var a=Em(this,r),o=a.tween;if(o!==t)for(var s=0,l=(n=t=o).length;s=0&&(i=i.slice(0,t)),!i||"start"===i})}(i)?UR:Em;return function(){var s=o(this,r),l=s.on;l!==n&&(a=(n=l).copy()).on(i,t),s.on=a}}var LG=sc.prototype.constructor;function qG(r,i,t){function n(){var a=this,o=i.apply(a,arguments);return o&&function(s){a.style.setProperty(r,o(s),t)}}return n._value=i,n}var QG=0;function rd(r,i,t,n){this._groups=r,this._parents=i,this._name=t,this._id=n}function LE(r){return sc().transition(r)}function O4(){return++QG}var b_=sc.prototype;function KG(r){return r*r*r}function XG(r){return--r*r*r+1}function VR(r){return((r*=2)<=1?r*r*r:(r-=2)*r*r+2)/2}rd.prototype=LE.prototype={constructor:rd,select:function(r){var i=this._name,t=this._id;"function"!=typeof r&&(r=a_(r));for(var n=this._groups,a=n.length,o=new Array(a),s=0;s1&&n.name===i)return new rd([[r]],tY,i,+a);return null}function P4(r){return function(){return r}}function rY(r,i,t){this.target=r,this.type=i,this.selection=t}function I4(){xn.stopImmediatePropagation()}function FE(){xn.preventDefault(),xn.stopImmediatePropagation()}var R4={name:"drag"},qR={name:"space"},C_={name:"handle"},S_={name:"center"},BE={name:"x",handles:["e","w"].map(HC),input:function(i,t){return i&&[[i[0],t[0][1]],[i[1],t[1][1]]]},output:function(i){return i&&[i[0][0],i[1][0]]}},UE={name:"y",handles:["n","s"].map(HC),input:function(i,t){return i&&[[t[0][0],i[0]],[t[1][0],i[1]]]},output:function(i){return i&&[i[0][1],i[1][1]]}},iY={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(HC),input:function(i){return i},output:function(i){return i}},dp={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},N4={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Z4={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},aY={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},oY={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function HC(r){return{type:r}}function sY(){return!xn.button}function lY(){var r=this.ownerSVGElement||this;return[[0,0],[r.width.baseVal.value,r.height.baseVal.value]]}function zR(r){for(;!r.__brush;)if(!(r=r.parentNode))return;return r.__brush}function WR(r){return r[0][0]===r[1][0]||r[0][1]===r[1][1]}function uY(r){var i=r.__brush;return i?i.dim.output(i.selection):null}function cY(){return GR(BE)}function dY(){return GR(UE)}function pY(){return GR(iY)}function GR(r){var o,i=lY,t=sY,n=Df(s,"start","brush","end"),a=6;function s(N){var q=N.property("__brush",P).selectAll(".overlay").data([HC("overlay")]);q.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",dp.overlay).merge(q).each(function(){var te=zR(this).extent;$r(this).attr("x",te[0][0]).attr("y",te[0][1]).attr("width",te[1][0]-te[0][0]).attr("height",te[1][1]-te[0][1])}),N.selectAll(".selection").data([HC("selection")]).enter().append("rect").attr("class","selection").attr("cursor",dp.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var Q=N.selectAll(".handle").data(r.handles,function(te){return te.type});Q.exit().remove(),Q.enter().append("rect").attr("class",function(te){return"handle handle--"+te.type}).attr("cursor",function(te){return dp[te.type]}),N.each(l).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",C)}function l(){var N=$r(this),q=zR(this).selection;q?(N.selectAll(".selection").style("display",null).attr("x",q[0][0]).attr("y",q[0][1]).attr("width",q[1][0]-q[0][0]).attr("height",q[1][1]-q[0][1]),N.selectAll(".handle").style("display",null).attr("x",function(Q){return"e"===Q.type[Q.type.length-1]?q[1][0]-a/2:q[0][0]-a/2}).attr("y",function(Q){return"s"===Q.type[0]?q[1][1]-a/2:q[0][1]-a/2}).attr("width",function(Q){return"n"===Q.type||"s"===Q.type?q[1][0]-q[0][0]+a:a}).attr("height",function(Q){return"e"===Q.type||"w"===Q.type?q[1][1]-q[0][1]+a:a})):N.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function d(N,q){return N.__brush.emitter||new h(N,q)}function h(N,q){this.that=N,this.args=q,this.state=N.__brush,this.active=0}function C(){if(xn.touches){if(xn.changedTouches.lengthMath.abs(wi[1]-di[1])?tr=!0:Lr=!0),di=wi,Xn=!0,FE(),$n()}function $n(){var wi;switch(Sn=di[0]-Jr[0],tn=di[1]-Jr[1],Q){case qR:case R4:te&&(Sn=Math.max(rt-dt,Math.min(Wt-qt,Sn)),Dt=dt+Sn,it=qt+Sn),se&&(tn=Math.max(St-at,Math.min(It-ln,tn)),ut=at+tn,mn=ln+tn);break;case C_:te<0?(Sn=Math.max(rt-dt,Math.min(Wt-dt,Sn)),Dt=dt+Sn,it=qt):te>0&&(Sn=Math.max(rt-qt,Math.min(Wt-qt,Sn)),Dt=dt,it=qt+Sn),se<0?(tn=Math.max(St-at,Math.min(It-at,tn)),ut=at+tn,mn=ln):se>0&&(tn=Math.max(St-ln,Math.min(It-ln,tn)),ut=at,mn=ln+tn);break;case S_:te&&(Dt=Math.max(rt,Math.min(Wt,dt-Sn*te)),it=Math.max(rt,Math.min(Wt,qt+Sn*te))),se&&(ut=Math.max(St,Math.min(It,at-tn*se)),mn=Math.max(St,Math.min(It,ln+tn*se)))}it0&&(dt=Dt-Sn),se<0?ln=mn-tn:se>0&&(at=ut-tn),Q=qR,Ua.attr("cursor",dp.selection),$n());break;default:return}FE()}function Oi(){switch(xn.keyCode){case 16:fr&&(Lr=tr=fr=!1,$n());break;case 18:Q===S_&&(te<0?qt=it:te>0&&(dt=Dt),se<0?ln=mn:se>0&&(at=ut),Q=C_,$n());break;case 32:Q===qR&&(xn.altKey?(te&&(qt=it-Sn*te,dt=Dt+Sn*te),se&&(ln=mn-tn*se,at=ut+tn*se),Q=S_):(te<0?qt=it:te>0&&(dt=Dt),se<0?ln=mn:se>0&&(at=ut),Q=C_),Ua.attr("cursor",dp[q]),$n());break;default:return}FE()}}function P(){var N=this.__brush||{selection:null};return N.extent=i.apply(this,arguments),N.dim=r,N}return s.move=function(N,q){N.selection?N.on("start.brush",function(){d(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){d(this,arguments).end()}).tween("brush",function(){var Q=this,te=Q.__brush,se=d(Q,arguments),Te=te.selection,$e=r.input("function"==typeof q?q.apply(this,arguments):q,te.extent),ze=IC(Te,$e);function rt(dt){te.selection=1===dt&&WR($e)?null:ze(dt),l.call(Q),se.brush()}return Te&&$e?rt:rt(1)}):N.each(function(){var Q=this,te=arguments,se=Q.__brush,Te=r.input("function"==typeof q?q.apply(Q,te):q,se.extent),$e=d(Q,te).beforestart();Mm(Q),se.selection=null==Te||WR(Te)?null:Te,l.call(Q),$e.start().brush().end()})},h.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting&&(this.starting=!1,this.emit("start")),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(q){ym(new rY(s,q,r.output(this.state.selection)),n.apply,n,[q,this.that,this.args])}},s.extent=function(N){return arguments.length?(i="function"==typeof N?N:P4([[+N[0][0],+N[0][1]],[+N[1][0],+N[1][1]]]),s):i},s.filter=function(N){return arguments.length?(t="function"==typeof N?N:P4(!!N),s):t},s.handleSize=function(N){return arguments.length?(a=+N,s):a},s.on=function(){var N=n.on.apply(n,arguments);return N===n?s:N},s}var L4=Math.cos,F4=Math.sin,B4=Math.PI,HE=B4/2,U4=2*B4,H4=Math.max;function fY(r){return function(i,t){return r(i.source.value+i.target.value,t.source.value+t.target.value)}}function hY(){var r=0,i=null,t=null,n=null;function a(o){var q,Q,te,se,Te,$e,s=o.length,l=[],d=Os(s),h=[],C=[],P=C.groups=new Array(s),N=new Array(s*s);for(q=0,Te=-1;++TeAm)if(Math.abs(P*d-h*C)>Am&&o){var q=n-s,Q=a-l,te=d*d+h*h,se=q*q+Q*Q,Te=Math.sqrt(te),$e=Math.sqrt(N),ze=o*Math.tan((JR-Math.acos((te+N-se)/(2*Te*$e)))/2),rt=ze/$e,dt=ze/Te;Math.abs(rt-1)>Am&&(this._+="L"+(i+rt*C)+","+(t+rt*P)),this._+="A"+o+","+o+",0,0,"+ +(P*q>C*Q)+","+(this._x1=i+dt*d)+","+(this._y1=t+dt*h)}else this._+="L"+(this._x1=i)+","+(this._y1=t)},arc:function(i,t,n,a,o,s){i=+i,t=+t,s=!!s;var l=(n=+n)*Math.cos(a),d=n*Math.sin(a),h=i+l,C=t+d,P=1^s,N=s?a-o:o-a;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+h+","+C:(Math.abs(this._x1-h)>Am||Math.abs(this._y1-C)>Am)&&(this._+="L"+h+","+C),n&&(N<0&&(N=N%QR+QR),N>vY?this._+="A"+n+","+n+",0,1,"+P+","+(i-l)+","+(t-d)+"A"+n+","+n+",0,1,"+P+","+(this._x1=h)+","+(this._y1=C):N>Am&&(this._+="A"+n+","+n+",0,"+ +(N>=JR)+","+P+","+(this._x1=i+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(i,t,n,a){this._+="M"+(this._x0=this._x1=+i)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +a+"h"+-n+"Z"},toString:function(){return this._}};var hc=V4;function gY(r){return r.source}function _Y(r){return r.target}function yY(r){return r.radius}function bY(r){return r.startAngle}function CY(r){return r.endAngle}function SY(){var r=gY,i=_Y,t=yY,n=bY,a=CY,o=null;function s(){var l,d=mY.call(arguments),h=r.apply(this,d),C=i.apply(this,d),P=+t.apply(this,(d[0]=h,d)),N=n.apply(this,d)-HE,q=a.apply(this,d)-HE,Q=P*L4(N),te=P*F4(N),se=+t.apply(this,(d[0]=C,d)),Te=n.apply(this,d)-HE,$e=a.apply(this,d)-HE;if(o||(o=l=hc()),o.moveTo(Q,te),o.arc(0,0,P,N,q),(N!==Te||q!==$e)&&(o.quadraticCurveTo(0,0,se*L4(Te),se*F4(Te)),o.arc(0,0,se,Te,$e)),o.quadraticCurveTo(0,0,Q,te),o.closePath(),l)return o=null,l+""||null}return s.radius=function(l){return arguments.length?(t="function"==typeof l?l:YR(+l),s):t},s.startAngle=function(l){return arguments.length?(n="function"==typeof l?l:YR(+l),s):n},s.endAngle=function(l){return arguments.length?(a="function"==typeof l?l:YR(+l),s):a},s.source=function(l){return arguments.length?(r=l,s):r},s.target=function(l){return arguments.length?(i=l,s):i},s.context=function(l){return arguments.length?(o=null==l?null:l,s):o},s}var Eu="$";function VE(){}function j4(r,i){var t=new VE;if(r instanceof VE)r.each(function(l,d){t.set(d,l)});else if(Array.isArray(r)){var o,n=-1,a=r.length;if(null==i)for(;++n=r.length)return null!=t&&l.sort(t),null!=n?n(l):l;for(var Q,te,Te,P=-1,N=l.length,q=r[d++],se=Rf(),$e=h();++Pr.length)return l;var h,C=i[d-1];return null!=n&&d>=r.length?h=l.entries():(h=[],l.each(function(P,N){h.push({key:N,values:s(P,d)})})),null!=C?h.sort(function(P,N){return C(P.key,N.key)}):h}return a={object:function(d){return o(d,0,kY,wY)},map:function(d){return o(d,0,q4,z4)},entries:function(d){return s(o(d,0,q4,z4),0)},key:function(d){return r.push(d),a},sortKeys:function(d){return i[r.length-1]=d,a},sortValues:function(d){return t=d,a},rollup:function(d){return n=d,a}}}function kY(){return{}}function wY(r,i,t){r[i]=t}function q4(){return Rf()}function z4(r,i,t){r.set(i,t)}function jE(){}var Dm=Rf.prototype;function W4(r,i){var t=new jE;if(r instanceof jE)r.each(function(o){t.add(o)});else if(r){var n=-1,a=r.length;if(null==i)for(;++nn!=q>n&&t<(N-h)*(n-C)/(q-C)+h&&(a=-a)}return a}function NY(r,i,t){var n;return function(r,i,t){return(i[0]-r[0])*(t[1]-r[1])==(t[0]-r[0])*(i[1]-r[1])}(r,i,t)&&function(r,i,t){return r<=i&&i<=t||t<=i&&i<=r}(r[n=+(r[0]===i[0])],t[n],i[n])}function FY(){}var pp=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function Y4(){var r=1,i=1,t=Gx,n=d;function a(h){var C=t(h);if(Array.isArray(C))C=C.slice().sort(OY);else{var P=cm(h),N=P[0],q=P[1];C=Af(N,q,C),C=Os(Math.floor(N/C)*C,Math.floor(q/C)*C,C)}return C.map(function(Q){return o(h,Q)})}function o(h,C){var P=[],N=[];return function(h,C,P){var Q,te,Te,$e,ze,N=new Array,q=new Array;for(Q=te=-1,pp[(Te=h[0]>=C)<<1].forEach(rt);++Q=C)<<1].forEach(rt);for(pp[Te<<0].forEach(rt);++te=C)<<1|($e=h[te*r]>=C)<<2].forEach(rt);++Q=C)<<1|($e=h[te*r+Q+1]>=C)<<2|ze<<3].forEach(rt);pp[Te|$e<<3].forEach(rt)}for(Q=-1,pp[($e=h[te*r]>=C)<<2].forEach(rt);++Q=C)<<2|ze<<3].forEach(rt);function rt(dt){var Wt,qt,Dt=[dt[0][0]+Q,dt[0][1]+te],St=[dt[1][0]+Q,dt[1][1]+te],at=l(Dt),ut=l(St);(Wt=q[at])?(qt=N[ut])?(delete q[Wt.end],delete N[qt.start],Wt===qt?(Wt.ring.push(St),P(Wt.ring)):N[Wt.start]=q[qt.end]={start:Wt.start,end:qt.end,ring:Wt.ring.concat(qt.ring)}):(delete q[Wt.end],Wt.ring.push(St),q[Wt.end=ut]=Wt):(Wt=N[ut])?(qt=q[at])?(delete N[Wt.start],delete q[qt.end],Wt===qt?(Wt.ring.push(St),P(Wt.ring)):N[qt.start]=q[Wt.end]={start:qt.start,end:Wt.end,ring:qt.ring.concat(Wt.ring)}):(delete N[Wt.start],Wt.ring.unshift(Dt),N[Wt.start=at]=Wt):N[at]=q[ut]={start:at,end:ut,ring:[Dt,St]}}pp[$e<<3].forEach(rt)}(h,C,function(q){n(q,h,C),function(r){for(var i=0,t=r.length,n=r[t-1][1]*r[0][0]-r[t-1][0]*r[0][1];++i0?P.push([q]):N.push(q)}),N.forEach(function(q){for(var se,Q=0,te=P.length;Q0&&q0&&Q0&&P>0))throw new Error("invalid size");return r=C,i=P,a},a.thresholds=function(h){return arguments.length?(t="function"==typeof h?h:Array.isArray(h)?Om(G4.call(h)):Om(h),a):t},a.smooth=function(h){return arguments.length?(n=h?d:FY,a):n===d},a}function XR(r,i,t){for(var n=r.width,a=r.height,o=1+(t<<1),s=0;s=t&&(l>=o&&(d-=r.data[l-o+s*n]),i.data[l-t+s*n]=d/Math.min(l+1,n-1+o-l,o))}function $R(r,i,t){for(var n=r.width,a=r.height,o=1+(t<<1),s=0;s=t&&(l>=o&&(d-=r.data[s+(l-o)*n]),i.data[s+(l-t)*n]=d/Math.min(l+1,a-1+o-l,o))}function BY(r){return r[0]}function UY(r){return r[1]}function HY(){var r=BY,i=UY,t=960,n=500,a=20,o=2,s=3*a,l=t+2*s>>o,d=n+2*s>>o,h=Om(20);function C(se){var Te=new Float32Array(l*d),$e=new Float32Array(l*d);se.forEach(function(dt,Dt,St){var at=r(dt,Dt,St)+s>>o,ut=i(dt,Dt,St)+s>>o;at>=0&&at=0&&ut>o),$R({width:l,height:d,data:$e},{width:l,height:d,data:Te},a>>o),XR({width:l,height:d,data:Te},{width:l,height:d,data:$e},a>>o),$R({width:l,height:d,data:$e},{width:l,height:d,data:Te},a>>o),XR({width:l,height:d,data:Te},{width:l,height:d,data:$e},a>>o),$R({width:l,height:d,data:$e},{width:l,height:d,data:Te},a>>o);var ze=h(Te);if(!Array.isArray(ze)){var rt=Yx(Te);ze=Af(0,rt,ze),(ze=Os(0,Math.floor(rt/ze)*ze,ze)).shift()}return Y4().thresholds(ze).size([l,d])(Te).map(P)}function P(se){return se.value*=Math.pow(2,-2*o),se.coordinates.forEach(N),se}function N(se){se.forEach(q)}function q(se){se.forEach(Q)}function Q(se){se[0]=se[0]*Math.pow(2,o)-s,se[1]=se[1]*Math.pow(2,o)-s}function te(){return l=t+2*(s=3*a)>>o,d=n+2*s>>o,C}return C.x=function(se){return arguments.length?(r="function"==typeof se?se:Om(+se),C):r},C.y=function(se){return arguments.length?(i="function"==typeof se?se:Om(+se),C):i},C.size=function(se){if(!arguments.length)return[t,n];var Te=Math.ceil(se[0]),$e=Math.ceil(se[1]);if(!(Te>=0||Te>=0))throw new Error("invalid size");return t=Te,n=$e,te()},C.cellSize=function(se){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return o=Math.floor(Math.log(se)/Math.LN2),te()},C.thresholds=function(se){return arguments.length?(h="function"==typeof se?se:Array.isArray(se)?Om(G4.call(se)):Om(se),C):h},C.bandwidth=function(se){if(!arguments.length)return Math.sqrt(a*(a+1));if(!((se=+se)>=0))throw new Error("invalid bandwidth");return a=Math.round((Math.sqrt(4*se*se+1)-1)/2),te()},C}function qE(r){return function(){return r}}function eN(r,i,t,n,a,o,s,l,d,h){this.target=r,this.type=i,this.subject=t,this.identifier=n,this.active=a,this.x=o,this.y=s,this.dx=l,this.dy=d,this._=h}function VY(){return!xn.ctrlKey&&!xn.button}function jY(){return this.parentNode}function qY(r){return null==r?{x:xn.x,y:xn.y}:r}function zY(){return navigator.maxTouchPoints||"ontouchstart"in this}function Nf(){var l,d,h,C,r=VY,i=jY,t=qY,n=zY,a={},o=Df("start","drag","end"),s=0,P=0;function N(rt){rt.on("mousedown.drag",q).filter(n).on("touchstart.drag",se).on("touchmove.drag",Te).on("touchend.drag touchcancel.drag",$e).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function q(){if(!C&&r.apply(this,arguments)){var rt=ze("mouse",i.apply(this,arguments),oo,this,arguments);!rt||($r(xn.view).on("mousemove.drag",Q,!0).on("mouseup.drag",te,!0),f_(xn.view),Kc(),h=!1,l=xn.clientX,d=xn.clientY,rt("start"))}}function Q(){if(Pf(),!h){var rt=xn.clientX-l,dt=xn.clientY-d;h=rt*rt+dt*dt>P}a.mouse("drag")}function te(){$r(xn.view).on("mousemove.drag mouseup.drag",null),h_(xn.view,h),Pf(),a.mouse("end")}function se(){if(r.apply(this,arguments)){var St,at,rt=xn.changedTouches,dt=i.apply(this,arguments),Dt=rt.length;for(St=0;St=N?se=!0:10===(Dt=h.charCodeAt(q++))?Te=!0:13===Dt&&(Te=!0,10===h.charCodeAt(q)&&++q),h.slice(dt+1,rt-1).replace(/""/g,'"')}for(;q=(P=(l+h)/2))?l=P:h=P,(se=t>=(N=(d+C)/2))?d=N:C=N,a=o,!(o=o[Te=se<<1|te]))return a[Te]=s,r;if(q=+r._x.call(null,o.data),Q=+r._y.call(null,o.data),i===q&&t===Q)return s.next=o,a?a[Te]=s:r._root=s,r;do{a=a?a[Te]=new Array(4):r._root=new Array(4),(te=i>=(P=(l+h)/2))?l=P:h=P,(se=t>=(N=(d+C)/2))?d=N:C=N}while((Te=se<<1|te)==($e=(Q>=N)<<1|q>=P));return a[$e]=o,a[Te]=s,r}function $s(r,i,t,n,a){this.node=r,this.x0=i,this.y0=t,this.x1=n,this.y1=a}function UJ(r){return r[0]}function VJ(r){return r[1]}function YE(r,i,t){var n=new cN(null==i?UJ:i,null==t?VJ:t,NaN,NaN,NaN,NaN);return null==r?n:n.addAll(r)}function cN(r,i,t,n,a,o){this._x=r,this._y=i,this._x0=t,this._y0=n,this._x1=a,this._y1=o,this._root=void 0}function s8(r){for(var i={data:r.data},t=i;r=r.next;)t=t.next={data:r.data};return i}var el=YE.prototype=cN.prototype;function qJ(r){return r.x+r.vx}function zJ(r){return r.y+r.vy}function WJ(r){var i,t,n=1,a=1;function o(){for(var d,C,P,N,q,Q,te,h=i.length,se=0;seN+ut||dtq+ut||DtP.index){var Wt=N-St.x-St.vx,qt=q-St.y-St.vy,it=Wt*Wt+qt*qt;itd.r&&(d.r=d[h].r)}function l(){if(i){var d,C,h=i.length;for(t=new Array(h),d=0;dC&&(C=a),oP&&(P=o));if(d>C||h>P)return this;for(this.cover(d,h).cover(C,P),t=0;tr||r>=a||n>i||i>=o;)switch(h=(iC||(l=Q.y0)>P||(d=Q.x1)=Te)<<1|r>=se)&&(Q=N[N.length-1],N[N.length-1]=N[N.length-1-te],N[N.length-1-te]=Q)}else{var $e=r-+this._x.call(null,q.data),ze=i-+this._y.call(null,q.data),rt=$e*$e+ze*ze;if(rt=(N=(s+d)/2))?s=N:d=N,(te=P>=(q=(l+h)/2))?l=q:h=q,i=t,!(t=t[se=te<<1|Q]))return this;if(!t.length)break;(i[se+1&3]||i[se+2&3]||i[se+3&3])&&(n=i,Te=se)}for(;t.data!==r;)if(a=t,!(t=t.next))return this;return(o=t.next)&&delete t.next,a?(o?a.next=o:delete a.next,this):i?(o?i[se]=o:delete i[se],(t=i[0]||i[1]||i[2]||i[3])&&t===(i[3]||i[2]||i[1]||i[0])&&!t.length&&(n?n[Te]=t:this._root=t),this):(this._root=o,this)},el.removeAll=function(r){for(var i=0,t=r.length;i1?(null==se?l.remove(te):l.set(te,q(se)),i):l.get(te)},find:function(te,se,Te){var rt,dt,Dt,St,at,$e=0,ze=r.length;for(null==Te?Te=1/0:Te*=Te,$e=0;$e1?(h.on(te,se),i):h.on(te)}}}function eQ(){var r,i,t,a,n=Bo(-30),o=1,s=1/0,l=.81;function d(N){var q,Q=r.length,te=YE(r,JJ,QJ).visitAfter(C);for(t=N,q=0;q=s)){(N.data!==i||N.next)&&(0===se&&(ze+=(se=Lf())*se),0===Te&&(ze+=(Te=Lf())*Te),ze1?n[0]+n.slice(2):n,+r.slice(t+1)]}function k_(r){return(r=JE(Math.abs(r)))?r[1]:NaN}function c8(r,i){var t=JE(r,i);if(!t)return r+"";var n=t[0],a=t[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}var d8={"":function(r,i){e:for(var o,t=(r=r.toPrecision(i)).length,n=1,a=-1;n0&&(a=0)}return a>0?r.slice(0,a)+r.slice(o+1):r},"%":function(i,t){return(100*i).toFixed(t)},b:function(i){return Math.round(i).toString(2)},c:function(i){return i+""},d:function(i){return Math.round(i).toString(10)},e:function(i,t){return i.toExponential(t)},f:function(i,t){return i.toFixed(t)},g:function(i,t){return i.toPrecision(t)},o:function(i){return Math.round(i).toString(8)},p:function(i,t){return c8(100*i,t)},r:c8,s:function(r,i){var t=JE(r,i);if(!t)return r+"";var n=t[0],a=t[1],o=a-(u8=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,s=n.length;return o===s?n:o>s?n+new Array(o-s+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+JE(r,Math.max(0,i+o-1))[0]},X:function(i){return Math.round(i).toString(16).toUpperCase()},x:function(i){return Math.round(i).toString(16)}},lQ=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function qC(r){return new dN(r)}function dN(r){if(!(i=lQ.exec(r)))throw new Error("invalid format: "+r);var i,t=i[1]||" ",n=i[2]||">",a=i[3]||"-",o=i[4]||"",s=!!i[5],l=i[6]&&+i[6],d=!!i[7],h=i[8]&&+i[8].slice(1),C=i[9]||"";"n"===C?(d=!0,C="g"):d8[C]||(C=""),(s||"0"===t&&"="===n)&&(s=!0,t="0",n="="),this.fill=t,this.align=n,this.sign=a,this.symbol=o,this.zero=s,this.width=l,this.comma=d,this.precision=h,this.type=C}function p8(r){return r}qC.prototype=dN.prototype,dN.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var QE,KE,pN,f8=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function h8(r){var i=r.grouping&&r.thousands?function(r,i){return function(t,n){for(var a=t.length,o=[],s=0,l=r[0],d=0;a>0&&l>0&&(d+l+1>n&&(l=Math.max(1,n-d)),o.push(t.substring(a-=l,a+l)),!((d+=l+1)>n));)l=r[s=(s+1)%r.length];return o.reverse().join(i)}}(r.grouping,r.thousands):p8,t=r.currency,n=r.decimal,a=r.numerals?function(r){return function(i){return i.replace(/[0-9]/g,function(t){return r[+t]})}}(r.numerals):p8,o=r.percent||"%";function s(d){var h=(d=qC(d)).fill,C=d.align,P=d.sign,N=d.symbol,q=d.zero,Q=d.width,te=d.comma,se=d.precision,Te=d.type,$e="$"===N?t[0]:"#"===N&&/[boxX]/.test(Te)?"0"+Te.toLowerCase():"",ze="$"===N?t[1]:/[%p]/.test(Te)?o:"",rt=d8[Te],dt=!Te||/[defgprs%]/.test(Te);function Dt(St){var Wt,qt,it,at=$e,ut=ze;if("c"===Te)ut=rt(St)+ut,St="";else{var It=(St=+St)<0;if(St=rt(Math.abs(St),se),It&&0==+St&&(It=!1),at=(It?"("===P?P:"-":"-"===P||"("===P?"":P)+at,ut=("s"===Te?f8[8+u8/3]:"")+ut+(It&&"("===P?")":""),dt)for(Wt=-1,qt=St.length;++Wt(it=St.charCodeAt(Wt))||it>57){ut=(46===it?n+St.slice(Wt+1):St.slice(Wt))+ut,St=St.slice(0,Wt);break}}te&&!q&&(St=i(St,1/0));var ln=at.length+St.length+ut.length,mn=ln>1)+at+St+ut+mn.slice(ln);break;default:St=mn+at+St+ut}return a(St)}return se=null==se?Te?6:12:/[gprs]/.test(Te)?Math.max(1,Math.min(21,se)):Math.max(0,Math.min(20,se)),Dt.toString=function(){return d+""},Dt}return{format:s,formatPrefix:function(d,h){var C=s(((d=qC(d)).type="f",d)),P=3*Math.max(-8,Math.min(8,Math.floor(k_(h)/3))),N=Math.pow(10,-P),q=f8[8+P/3];return function(Q){return C(N*Q)+q}}}}function m8(r){return QE=h8(r),KE=QE.format,pN=QE.formatPrefix,QE}function v8(r){return Math.max(0,-k_(Math.abs(r)))}function g8(r,i){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(k_(i)/3)))-k_(Math.abs(r)))}function _8(r,i){return r=Math.abs(r),i=Math.abs(i)-r,Math.max(0,k_(i)-k_(r))+1}function Ff(){return new XE}function XE(){this.reset()}m8({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),XE.prototype={constructor:XE,reset:function(){this.s=this.t=0},add:function(i){y8($E,i,this.t),y8(this,$E.s,this.s),this.s?this.t+=$E.t:this.s=$E.t},valueOf:function(){return this.s}};var $E=new XE;function y8(r,i,t){var n=r.s=i+t,a=n-i;r.t=i-(n-a)+(t-a)}var br=1e-6,Ri=Math.PI,so=Ri/2,eM=Ri/4,Cl=2*Ri,Ca=180/Ri,Dr=Ri/180,Ji=Math.abs,w_=Math.atan,tl=Math.atan2,Cr=Math.cos,tM=Math.ceil,C8=Math.exp,nM=(Math,Math.log),fN=Math.pow,sr=Math.sin,zC=Math.sign||function(r){return r>0?1:r<0?-1:0},Uo=Math.sqrt,hN=Math.tan;function S8(r){return r>1?0:r<-1?Ri:Math.acos(r)}function Xl(r){return r>1?so:r<-1?-so:Math.asin(r)}function T8(r){return(r=sr(r/2))*r}function Ya(){}function rM(r,i){r&&w8.hasOwnProperty(r.type)&&w8[r.type](r,i)}var k8={Feature:function(i,t){rM(i.geometry,t)},FeatureCollection:function(i,t){for(var n=i.features,a=-1,o=n.length;++a=0?1:-1,a=n*t,o=Cr(i=(i*=Dr)/2+eM),s=sr(i),l=_N*s,d=gN*o+l*Cr(a),h=l*n*sr(a);iM.add(tl(h,d)),vN=r,gN=o,_N=s}function pQ(r){return aM.reset(),mc(r,id),2*aM}function oM(r){return[tl(r[1],r[0]),Xl(r[2])]}function Pm(r){var i=r[0],t=r[1],n=Cr(t);return[n*Cr(i),n*sr(i),sr(t)]}function sM(r,i){return r[0]*i[0]+r[1]*i[1]+r[2]*i[2]}function x_(r,i){return[r[1]*i[2]-r[2]*i[1],r[2]*i[0]-r[0]*i[2],r[0]*i[1]-r[1]*i[0]]}function yN(r,i){r[0]+=i[0],r[1]+=i[1],r[2]+=i[2]}function lM(r,i){return[r[0]*i,r[1]*i,r[2]*i]}function uM(r){var i=Uo(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]);r[0]/=i,r[1]/=i,r[2]/=i}var lo,$l,vo,Mu,Im,D8,O8,E_,Bf,fp,WC=Ff(),hp={point:bN,lineStart:I8,lineEnd:R8,polygonStart:function(){hp.point=N8,hp.lineStart=fQ,hp.lineEnd=hQ,WC.reset(),id.polygonStart()},polygonEnd:function(){id.polygonEnd(),hp.point=bN,hp.lineStart=I8,hp.lineEnd=R8,iM<0?(lo=-(vo=180),$l=-(Mu=90)):WC>br?Mu=90:WC<-br&&($l=-90),fp[0]=lo,fp[1]=vo}};function bN(r,i){Bf.push(fp=[lo=r,vo=r]),i<$l&&($l=i),i>Mu&&(Mu=i)}function P8(r,i){var t=Pm([r*Dr,i*Dr]);if(E_){var n=x_(E_,t),o=x_([n[1],-n[0],0],n);uM(o),o=oM(o);var h,s=r-Im,l=s>0?1:-1,d=o[0]*Ca*l,C=Ji(s)>180;C^(l*ImMu&&(Mu=h):C^(l*Im<(d=(d+360)%360-180)&&dMu&&(Mu=i)),C?reu(lo,vo)&&(vo=r):eu(r,vo)>eu(lo,vo)&&(lo=r):vo>=lo?(rvo&&(vo=r)):r>Im?eu(lo,r)>eu(lo,vo)&&(vo=r):eu(r,vo)>eu(lo,vo)&&(lo=r)}else Bf.push(fp=[lo=r,vo=r]);i<$l&&($l=i),i>Mu&&(Mu=i),E_=t,Im=r}function I8(){hp.point=P8}function R8(){fp[0]=lo,fp[1]=vo,hp.point=bN,E_=null}function N8(r,i){if(E_){var t=r-Im;WC.add(Ji(t)>180?t+(t>0?360:-360):t)}else D8=r,O8=i;id.point(r,i),P8(r,i)}function fQ(){id.lineStart()}function hQ(){N8(D8,O8),id.lineEnd(),Ji(WC)>br&&(lo=-(vo=180)),fp[0]=lo,fp[1]=vo,E_=null}function eu(r,i){return(i-=r)<0?i+360:i}function mQ(r,i){return r[0]-i[0]}function Z8(r,i){return r[0]<=r[1]?r[0]<=i&&i<=r[1]:ieu(n[0],n[1])&&(n[1]=a[1]),eu(a[0],n[1])>eu(n[0],n[1])&&(n[0]=a[0])):o.push(n=a);for(s=-1/0,i=0,n=o[t=o.length-1];i<=t;n=a,++i)(l=eu(n[1],(a=o[i])[0]))>s&&(s=l,lo=a[0],vo=n[1])}return Bf=fp=null,lo===1/0||$l===1/0?[[NaN,NaN],[NaN,NaN]]:[[lo,$l],[vo,Mu]]}var GC,cM,dM,pM,fM,hM,mM,vM,CN,SN,TN,L8,F8,nl,rl,il,vc={sphere:Ya,point:kN,lineStart:B8,lineEnd:U8,polygonStart:function(){vc.lineStart=yQ,vc.lineEnd=bQ},polygonEnd:function(){vc.lineStart=B8,vc.lineEnd=U8}};function kN(r,i){r*=Dr;var t=Cr(i*=Dr);YC(t*Cr(r),t*sr(r),sr(i))}function YC(r,i,t){++GC,dM+=(r-dM)/GC,pM+=(i-pM)/GC,fM+=(t-fM)/GC}function B8(){vc.point=gQ}function gQ(r,i){r*=Dr;var t=Cr(i*=Dr);nl=t*Cr(r),rl=t*sr(r),il=sr(i),vc.point=_Q,YC(nl,rl,il)}function _Q(r,i){r*=Dr;var t=Cr(i*=Dr),n=t*Cr(r),a=t*sr(r),o=sr(i),s=tl(Uo((s=rl*o-il*a)*s+(s=il*n-nl*o)*s+(s=nl*a-rl*n)*s),nl*n+rl*a+il*o);cM+=s,hM+=s*(nl+(nl=n)),mM+=s*(rl+(rl=a)),vM+=s*(il+(il=o)),YC(nl,rl,il)}function U8(){vc.point=kN}function yQ(){vc.point=CQ}function bQ(){H8(L8,F8),vc.point=kN}function CQ(r,i){L8=r,F8=i,r*=Dr,i*=Dr,vc.point=H8;var t=Cr(i);nl=t*Cr(r),rl=t*sr(r),il=sr(i),YC(nl,rl,il)}function H8(r,i){r*=Dr;var t=Cr(i*=Dr),n=t*Cr(r),a=t*sr(r),o=sr(i),s=rl*o-il*a,l=il*n-nl*o,d=nl*a-rl*n,h=Uo(s*s+l*l+d*d),C=Xl(h),P=h&&-C/h;CN+=P*s,SN+=P*l,TN+=P*d,cM+=C,hM+=C*(nl+(nl=n)),mM+=C*(rl+(rl=a)),vM+=C*(il+(il=o)),YC(nl,rl,il)}function SQ(r){GC=cM=dM=pM=fM=hM=mM=vM=CN=SN=TN=0,mc(r,vc);var i=CN,t=SN,n=TN,a=i*i+t*t+n*n;return a<1e-12&&(i=hM,t=mM,n=vM,cMRi?r-Cl:r<-Ri?r+Cl:r,i]}function EN(r,i,t){return(r%=Cl)?i||t?wN(j8(r),q8(i,t)):j8(r):i||t?q8(i,t):xN}function V8(r){return function(i,t){return[(i+=r)>Ri?i-Cl:i<-Ri?i+Cl:i,t]}}function j8(r){var i=V8(r);return i.invert=V8(-r),i}function q8(r,i){var t=Cr(r),n=sr(r),a=Cr(i),o=sr(i);function s(l,d){var h=Cr(d),C=Cr(l)*h,P=sr(l)*h,N=sr(d),q=N*t+C*n;return[tl(P*a-q*o,C*t-N*n),Xl(q*a+P*o)]}return s.invert=function(l,d){var h=Cr(d),C=Cr(l)*h,P=sr(l)*h,N=sr(d),q=N*a-P*o;return[tl(P*a+N*o,C*t+q*n),Xl(q*t-C*n)]},s}function z8(r){function i(t){return(t=r(t[0]*Dr,t[1]*Dr))[0]*=Ca,t[1]*=Ca,t}return r=EN(r[0]*Dr,r[1]*Dr,r.length>2?r[2]*Dr:0),i.invert=function(t){return(t=r.invert(t[0]*Dr,t[1]*Dr))[0]*=Ca,t[1]*=Ca,t},i}function W8(r,i,t,n,a,o){if(t){var s=Cr(i),l=sr(i),d=n*t;null==a?(a=i+n*Cl,o=i-d/2):(a=G8(s,a),o=G8(s,o),(n>0?ao)&&(a+=n*Cl));for(var h,C=a;n>0?C>o:C1&&r.push(r.pop().concat(r.shift()))},result:function(){var n=r;return r=[],i=null,n}}}function gM(r,i){return Ji(r[0]-i[0])=0;--l)a.point((P=C[l])[0],P[1]);else n(N.x,N.p.x,-1,a);N=N.p}C=(N=N.o).z,q=!q}while(!N.v);a.lineEnd()}}}function Q8(r){if(i=r.length){for(var i,a,t=0,n=r[0];++t=0?1:-1,ut=at*St,Wt=ut>Ri,qt=te*dt;if(MN.add(tl(qt*at*sr(ut),se*Dt+qt*Cr(ut))),s+=Wt?St+at*Cl:St,Wt^q>=t^ze>=t){var it=x_(Pm(N),Pm($e));uM(it);var It=x_(o,it);uM(It);var ln=(Wt^St>=0?-1:1)*Xl(It[2]);(n>ln||n===ln&&(it[0]||it[1]))&&(l+=Wt^St>=0?1:-1)}}return(s<-br||s0){for(d||(a.polygonStart(),d=!0),a.lineStart(),Dt=0;Dt1&&2&rt&&dt.push(dt.pop().concat(dt.shift())),C.push(dt.filter(kQ))}}return N}}function kQ(r){return r.length>1}function wQ(r,i){return((r=r.x)[0]<0?r[1]-so-br:so-r[1])-((i=i.x)[0]<0?i[1]-so-br:so-i[1])}var AN=X8(function(){return!0},function(r){var a,i=NaN,t=NaN,n=NaN;return{lineStart:function(){r.lineStart(),a=1},point:function(s,l){var d=s>0?Ri:-Ri,h=Ji(s-i);Ji(h-Ri)0?so:-so),r.point(n,t),r.lineEnd(),r.lineStart(),r.point(d,t),r.point(s,t),a=0):n!==d&&h>=Ri&&(Ji(i-n)br?w_((sr(i)*(o=Cr(n))*sr(t)-sr(n)*(a=Cr(i))*sr(r))/(a*o*s)):(i+n)/2}(i,t,s,l),r.point(n,t),r.lineEnd(),r.lineStart(),r.point(d,t),a=0),r.point(i=s,t=l),n=d},lineEnd:function(){r.lineEnd(),i=t=NaN},clean:function(){return 2-a}}},function(r,i,t,n){var a;if(null==r)n.point(-Ri,a=t*so),n.point(0,a),n.point(Ri,a),n.point(Ri,0),n.point(Ri,-a),n.point(0,-a),n.point(-Ri,-a),n.point(-Ri,0),n.point(-Ri,a);else if(Ji(r[0]-i[0])>br){var o=r[0]0,a=Ji(i)>br;function s(C,P){return Cr(C)*Cr(P)>i}function d(C,P,N){var te=[1,0,0],se=x_(Pm(C),Pm(P)),Te=sM(se,se),$e=se[0],ze=Te-$e*$e;if(!ze)return!N&&C;var rt=i*Te/ze,dt=-i*$e/ze,Dt=x_(te,se),St=lM(te,rt);yN(St,lM(se,dt));var ut=Dt,Wt=sM(St,ut),qt=sM(ut,ut),it=Wt*Wt-qt*(sM(St,St)-1);if(!(it<0)){var It=Uo(it),ln=lM(ut,(-Wt-It)/qt);if(yN(ln,St),ln=oM(ln),!N)return ln;var fr,mn=C[0],Sn=P[0],tn=C[1],Xn=P[1];Sn0^ln[1]<(Ji(ln[0]-mn)Ri^(mn<=ln[0]&&ln[0]<=Sn)){var di=lM(ut,(-Wt+It)/qt);return yN(di,St),[ln,oM(di)]}}}function h(C,P){var N=n?r:Ri-r,q=0;return C<-N?q|=1:C>N&&(q|=2),P<-N?q|=4:P>N&&(q|=8),q}return X8(s,function(C){var P,N,q,Q,te;return{lineStart:function(){Q=q=!1,te=1},point:function(Te,$e){var rt,ze=[Te,$e],dt=s(Te,$e),Dt=n?dt?0:h(Te,$e):dt?h(Te+(Te<0?Ri:-Ri),$e):0;if(!P&&(Q=q=dt)&&C.lineStart(),dt!==q&&(!(rt=d(P,ze))||gM(P,rt)||gM(ze,rt))&&(ze[0]+=br,ze[1]+=br,dt=s(ze[0],ze[1])),dt!==q)te=0,dt?(C.lineStart(),rt=d(ze,P),C.point(rt[0],rt[1])):(rt=d(P,ze),C.point(rt[0],rt[1]),C.lineEnd()),P=rt;else if(a&&P&&n^dt){var St;!(Dt&N)&&(St=d(ze,P,!0))&&(te=0,n?(C.lineStart(),C.point(St[0][0],St[0][1]),C.point(St[1][0],St[1][1]),C.lineEnd()):(C.point(St[1][0],St[1][1]),C.lineEnd(),C.lineStart(),C.point(St[0][0],St[0][1])))}dt&&(!P||!gM(P,ze))&&C.point(ze[0],ze[1]),P=ze,q=dt,N=Dt},lineEnd:function(){q&&C.lineEnd(),P=null},clean:function(){return te|(Q&&q)<<1}}},function(C,P,N,q){W8(q,r,t,N,C,P)},n?[0,-r]:[-Ri,r-Ri])}var JC=1e9,yM=-JC;function bM(r,i,t,n){function a(h,C){return r<=h&&h<=t&&i<=C&&C<=n}function o(h,C,P,N){var q=0,Q=0;if(null==h||(q=s(h,P))!==(Q=s(C,P))||d(h,C)<0^P>0)do{N.point(0===q||3===q?r:t,q>1?n:i)}while((q=(q+P+4)%4)!==Q);else N.point(C[0],C[1])}function s(h,C){return Ji(h[0]-r)0?0:3:Ji(h[0]-t)0?2:1:Ji(h[1]-i)0?1:0:C>0?3:2}function l(h,C){return d(h.x,C.x)}function d(h,C){var P=s(h,1),N=s(C,1);return P!==N?P-N:0===P?C[1]-h[1]:1===P?h[0]-C[0]:2===P?h[1]-C[1]:C[0]-h[0]}return function(h){var N,q,Q,te,se,Te,$e,ze,rt,dt,Dt,C=h,P=Y8(),St={point:at,lineStart:function(){St.point=ln,q&&q.push(Q=[]),dt=!0,rt=!1,$e=ze=NaN},lineEnd:function(){N&&(ln(te,se),Te&&rt&&P.rejoin(),N.push(P.result())),St.point=at,rt&&C.lineEnd()},polygonStart:function(){C=P,N=[],q=[],Dt=!0},polygonEnd:function(){var mn=function(){for(var mn=0,Sn=0,tn=q.length;Snn&&(hr-Jr)*(n-di)>(Ui-di)*(r-Jr)&&++mn:Ui<=n&&(hr-Jr)*(n-di)<(Ui-di)*(r-Jr)&&--mn;return mn}(),Sn=Dt&&mn,tn=(N=oC(N)).length;(Sn||tn)&&(h.polygonStart(),Sn&&(h.lineStart(),o(null,null,1,h),h.lineEnd()),tn&&J8(N,l,mn,o,h),h.polygonEnd()),C=h,N=q=Q=null}};function at(mn,Sn){a(mn,Sn)&&C.point(mn,Sn)}function ln(mn,Sn){var tn=a(mn,Sn);if(q&&Q.push([mn,Sn]),dt)te=mn,se=Sn,Te=tn,dt=!1,tn&&(C.lineStart(),C.point(mn,Sn));else if(tn&&rt)C.point(mn,Sn);else{var Xn=[$e=Math.max(yM,Math.min(JC,$e)),ze=Math.max(yM,Math.min(JC,ze))],fr=[mn=Math.max(yM,Math.min(JC,mn)),Sn=Math.max(yM,Math.min(JC,Sn))];!function(r,i,t,n,a,o){var Q,s=r[0],l=r[1],C=0,P=1,N=i[0]-s,q=i[1]-l;if(Q=t-s,N||!(Q>0)){if(Q/=N,N<0){if(Q0){if(Q>P)return;Q>C&&(C=Q)}if(Q=a-s,N||!(Q<0)){if(Q/=N,N<0){if(Q>P)return;Q>C&&(C=Q)}else if(N>0){if(Q0)){if(Q/=q,q<0){if(Q0){if(Q>P)return;Q>C&&(C=Q)}if(Q=o-l,q||!(Q<0)){if(Q/=q,q<0){if(Q>P)return;Q>C&&(C=Q)}else if(q>0){if(Q0&&(r[0]=s+C*N,r[1]=l+C*q),P<1&&(i[0]=s+P*N,i[1]=l+P*q),!0}}}}}(Xn,fr,r,i,t,n)?tn&&(C.lineStart(),C.point(mn,Sn),Dt=!1):(rt||(C.lineStart(),C.point(Xn[0],Xn[1])),C.point(fr[0],fr[1]),tn||C.lineEnd(),Dt=!1)}$e=mn,ze=Sn,rt=tn}return St}}function DQ(){var a,o,s,r=0,i=0,t=960,n=500;return s={stream:function(d){return a&&o===d?a:a=bM(r,i,t,n)(o=d)},extent:function(d){return arguments.length?(r=+d[0][0],i=+d[0][1],t=+d[1][0],n=+d[1][1],a=o=null,s):[[r,i],[t,n]]}}}var ON,CM,SM,DN=Ff(),A_={sphere:Ya,point:Ya,lineStart:function(){A_.point=IQ,A_.lineEnd=PQ},lineEnd:Ya,polygonStart:Ya,polygonEnd:Ya};function PQ(){A_.point=A_.lineEnd=Ya}function IQ(r,i){ON=r*=Dr,CM=sr(i*=Dr),SM=Cr(i),A_.point=RQ}function RQ(r,i){r*=Dr;var t=sr(i*=Dr),n=Cr(i),a=Ji(r-ON),o=Cr(a),l=n*sr(a),d=SM*t-CM*n*o,h=CM*t+SM*n*o;DN.add(tl(Uo(l*l+d*d),h)),ON=r,CM=t,SM=n}function e7(r){return DN.reset(),mc(r,A_),+DN}var PN=[null,null],NQ={type:"LineString",coordinates:PN};function QC(r,i){return PN[0]=r,PN[1]=i,e7(NQ)}var t7={Feature:function(i,t){return TM(i.geometry,t)},FeatureCollection:function(i,t){for(var n=i.features,a=-1,o=n.length;++abr}).map(N)).concat(Os(tM(o/h)*h,a,h).filter(function(ze){return Ji(ze%P)>br}).map(q))}return Te.lines=function(){return $e().map(function(ze){return{type:"LineString",coordinates:ze}})},Te.outline=function(){return{type:"Polygon",coordinates:[Q(n).concat(te(s).slice(1),Q(t).reverse().slice(1),te(l).reverse().slice(1))]}},Te.extent=function(ze){return arguments.length?Te.extentMajor(ze).extentMinor(ze):Te.extentMinor()},Te.extentMajor=function(ze){return arguments.length?(l=+ze[0][1],s=+ze[1][1],(n=+ze[0][0])>(t=+ze[1][0])&&(ze=n,n=t,t=ze),l>s&&(ze=l,l=s,s=ze),Te.precision(se)):[[n,l],[t,s]]},Te.extentMinor=function(ze){return arguments.length?(o=+ze[0][1],a=+ze[1][1],(i=+ze[0][0])>(r=+ze[1][0])&&(ze=i,i=r,r=ze),o>a&&(ze=o,o=a,a=ze),Te.precision(se)):[[i,o],[r,a]]},Te.step=function(ze){return arguments.length?Te.stepMajor(ze).stepMinor(ze):Te.stepMinor()},Te.stepMajor=function(ze){return arguments.length?(C=+ze[0],P=+ze[1],Te):[C,P]},Te.stepMinor=function(ze){return arguments.length?(d=+ze[0],h=+ze[1],Te):[d,h]},Te.precision=function(ze){return arguments.length?(se=+ze,N=l7(o,a,90),q=u7(i,r,se),Q=l7(l,s,90),te=u7(n,t,se),Te):se},Te.extentMajor([[-180,-90+br],[180,90-br]]).extentMinor([[-180,-80-br],[180,80+br]])}function FQ(){return c7()()}function BQ(r,i){var t=r[0]*Dr,n=r[1]*Dr,a=i[0]*Dr,o=i[1]*Dr,s=Cr(n),l=sr(n),d=Cr(o),h=sr(o),C=s*Cr(t),P=s*sr(t),N=d*Cr(a),q=d*sr(a),Q=2*Xl(Uo(T8(o-n)+s*d*T8(a-t))),te=sr(Q),se=Q?function(Te){var $e=sr(Te*=Q)/te,ze=sr(Q-Te)/te,rt=ze*C+$e*N,dt=ze*P+$e*q,Dt=ze*l+$e*h;return[tl(dt,rt)*Ca,tl(Dt,Uo(rt*rt+dt*dt))*Ca]}:function(){return[t*Ca,n*Ca]};return se.distance=Q,se}function Rm(r){return r}var d7,p7,NN,ZN,IN=Ff(),RN=Ff(),Uf={point:Ya,lineStart:Ya,lineEnd:Ya,polygonStart:function(){Uf.lineStart=UQ,Uf.lineEnd=VQ},polygonEnd:function(){Uf.lineStart=Uf.lineEnd=Uf.point=Ya,IN.add(Ji(RN)),RN.reset()},result:function(){var i=IN/2;return IN.reset(),i}};function UQ(){Uf.point=HQ}function HQ(r,i){Uf.point=f7,d7=NN=r,p7=ZN=i}function f7(r,i){RN.add(ZN*r-NN*i),NN=r,ZN=i}function VQ(){f7(d7,p7)}var m7,v7,ad,od,h7=Uf,D_=1/0,kM=D_,KC=-D_,wM=KC,jQ={point:function(r,i){rKC&&(KC=r),iwM&&(wM=i)},lineStart:Ya,lineEnd:Ya,polygonStart:Ya,polygonEnd:Ya,result:function(){var i=[[D_,kM],[KC,wM]];return KC=wM=-(kM=D_=1/0),i}},xM=jQ,LN=0,FN=0,XC=0,EM=0,MM=0,O_=0,BN=0,UN=0,$C=0,gc={point:Nm,lineStart:g7,lineEnd:_7,polygonStart:function(){gc.lineStart=GQ,gc.lineEnd=YQ},polygonEnd:function(){gc.point=Nm,gc.lineStart=g7,gc.lineEnd=_7},result:function(){var i=$C?[BN/$C,UN/$C]:O_?[EM/O_,MM/O_]:XC?[LN/XC,FN/XC]:[NaN,NaN];return LN=FN=XC=EM=MM=O_=BN=UN=$C=0,i}};function Nm(r,i){LN+=r,FN+=i,++XC}function g7(){gc.point=zQ}function zQ(r,i){gc.point=WQ,Nm(ad=r,od=i)}function WQ(r,i){var t=r-ad,n=i-od,a=Uo(t*t+n*n);EM+=a*(ad+r)/2,MM+=a*(od+i)/2,O_+=a,Nm(ad=r,od=i)}function _7(){gc.point=Nm}function GQ(){gc.point=JQ}function YQ(){y7(m7,v7)}function JQ(r,i){gc.point=y7,Nm(m7=ad=r,v7=od=i)}function y7(r,i){var t=r-ad,n=i-od,a=Uo(t*t+n*n);EM+=a*(ad+r)/2,MM+=a*(od+i)/2,O_+=a,BN+=(a=od*r-ad*i)*(ad+r),UN+=a*(od+i),$C+=3*a,Nm(ad=r,od=i)}var b7=gc;function C7(r){this._context=r}C7.prototype={_radius:4.5,pointRadius:function(i){return this._radius=i,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(i,t){switch(this._point){case 0:this._context.moveTo(i,t),this._point=1;break;case 1:this._context.lineTo(i,t);break;default:this._context.moveTo(i+this._radius,t),this._context.arc(i,t,this._radius,0,Cl)}},result:Ya};var VN,S7,T7,e1,t1,HN=Ff(),AM={point:Ya,lineStart:function(){AM.point=QQ},lineEnd:function(){VN&&k7(S7,T7),AM.point=Ya},polygonStart:function(){VN=!0},polygonEnd:function(){VN=null},result:function(){var i=+HN;return HN.reset(),i}};function QQ(r,i){AM.point=k7,S7=e1=r,T7=t1=i}function k7(r,i){HN.add(Uo((e1-=r)*e1+(t1-=i)*t1)),e1=r,t1=i}var w7=AM;function x7(){this._string=[]}function E7(r){return"m0,"+r+"a"+r+","+r+" 0 1,1 0,"+-2*r+"a"+r+","+r+" 0 1,1 0,"+2*r+"z"}function KQ(r,i){var n,a,t=4.5;function o(s){return s&&("function"==typeof t&&a.pointRadius(+t.apply(this,arguments)),mc(s,n(a))),a.result()}return o.area=function(s){return mc(s,n(h7)),h7.result()},o.measure=function(s){return mc(s,n(w7)),w7.result()},o.bounds=function(s){return mc(s,n(xM)),xM.result()},o.centroid=function(s){return mc(s,n(b7)),b7.result()},o.projection=function(s){return arguments.length?(n=null==s?(r=null,Rm):(r=s).stream,o):r},o.context=function(s){return arguments.length?(a=null==s?(i=null,new x7):new C7(i=s),"function"!=typeof t&&a.pointRadius(t),o):i},o.pointRadius=function(s){return arguments.length?(t="function"==typeof s?s:(a.pointRadius(+s),+s),o):t},o.projection(r).context(i)}function XQ(r){return{stream:n1(r)}}function n1(r){return function(i){var t=new jN;for(var n in r)t[n]=r[n];return t.stream=i,t}}function jN(){}function qN(r,i,t){var n=r.clipExtent&&r.clipExtent();return r.scale(150).translate([0,0]),null!=n&&r.clipExtent(null),mc(t,r.stream(xM)),i(xM.result()),null!=n&&r.clipExtent(n),r}function DM(r,i,t){return qN(r,function(n){var a=i[1][0]-i[0][0],o=i[1][1]-i[0][1],s=Math.min(a/(n[1][0]-n[0][0]),o/(n[1][1]-n[0][1])),l=+i[0][0]+(a-s*(n[1][0]+n[0][0]))/2,d=+i[0][1]+(o-s*(n[1][1]+n[0][1]))/2;r.scale(150*s).translate([l,d])},t)}function zN(r,i,t){return DM(r,[[0,0],i],t)}function WN(r,i,t){return qN(r,function(n){var a=+i,o=a/(n[1][0]-n[0][0]),s=(a-o*(n[1][0]+n[0][0]))/2,l=-o*n[0][1];r.scale(150*o).translate([s,l])},t)}function GN(r,i,t){return qN(r,function(n){var a=+i,o=a/(n[1][1]-n[0][1]),s=-o*n[0][0],l=(a-o*(n[1][1]+n[0][1]))/2;r.scale(150*o).translate([s,l])},t)}x7.prototype={_radius:4.5,_circle:E7(4.5),pointRadius:function(i){return(i=+i)!==this._radius&&(this._radius=i,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(i,t){switch(this._point){case 0:this._string.push("M",i,",",t),this._point=1;break;case 1:this._string.push("L",i,",",t);break;default:null==this._circle&&(this._circle=E7(this._radius)),this._string.push("M",i,",",t,this._circle)}},result:function(){if(this._string.length){var i=this._string.join("");return this._string=[],i}return null}},jN.prototype={constructor:jN,point:function(i,t){this.stream.point(i,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var $Q=Cr(30*Dr);function A7(r,i){return+i?function(r,i){function t(n,a,o,s,l,d,h,C,P,N,q,Q,te,se){var Te=h-n,$e=C-a,ze=Te*Te+$e*$e;if(ze>4*i&&te--){var rt=s+N,dt=l+q,Dt=d+Q,St=Uo(rt*rt+dt*dt+Dt*Dt),at=Xl(Dt/=St),ut=Ji(Ji(Dt)-1)i||Ji((Te*It+$e*ln)/ze-.5)>.3||s*N+l*q+d*Q<$Q)&&(t(n,a,o,s,l,d,qt,it,ut,rt/=St,dt/=St,Dt,te,se),se.point(qt,it),t(qt,it,ut,rt,dt,Dt,h,C,P,N,q,Q,te,se))}}return function(n){var a,o,s,l,d,h,C,P,N,q,Q,te,se={point:Te,lineStart:$e,lineEnd:rt,polygonStart:function(){n.polygonStart(),se.lineStart=dt},polygonEnd:function(){n.polygonEnd(),se.lineStart=$e}};function Te(at,ut){at=r(at,ut),n.point(at[0],at[1])}function $e(){P=NaN,se.point=ze,n.lineStart()}function ze(at,ut){var Wt=Pm([at,ut]),qt=r(at,ut);t(P,N,C,q,Q,te,P=qt[0],N=qt[1],C=at,q=Wt[0],Q=Wt[1],te=Wt[2],16,n),n.point(P,N)}function rt(){se.point=Te,n.lineEnd()}function dt(){$e(),se.point=Dt,se.lineEnd=St}function Dt(at,ut){ze(a=at,ut),o=P,s=N,l=q,d=Q,h=te,se.point=ze}function St(){t(P,N,C,q,Q,te,o,s,a,l,d,h,16,n),se.lineEnd=rt,rt()}return se}}(r,i):function(r){return n1({point:function(t,n){t=r(t,n),this.stream.point(t[0],t[1])}})}(r)}var nK=n1({point:function(i,t){this.stream.point(i*Dr,t*Dr)}});function iK(r,i,t){function n(a,o){return[i+r*a,t-r*o]}return n.invert=function(a,o){return[(a-i)/r,(t-o)/r]},n}function D7(r,i,t,n){var a=Cr(n),o=sr(n),s=a*r,l=o*r,d=a/r,h=o/r,C=(o*t-a*i)/r,P=(o*i+a*t)/r;function N(q,Q){return[s*q-l*Q+i,t-l*q-s*Q]}return N.invert=function(q,Q){return[d*q-h*Q+C,P-h*q-d*Q]},N}function mp(r){return YN(function(){return r})()}function YN(r){var i,C,te,se,Te,rt,dt,Dt,St,at,t=150,n=480,a=250,o=0,s=0,l=0,d=0,h=0,P=0,N=null,q=AN,Q=null,$e=Rm,ze=.5;function ut(It){return Dt(It[0]*Dr,It[1]*Dr)}function Wt(It){return(It=Dt.invert(It[0],It[1]))&&[It[0]*Ca,It[1]*Ca]}function qt(){var It=D7(t,0,0,P).apply(null,i(o,s)),ln=(P?D7:iK)(t,n-It[0],a-It[1],P);return C=EN(l,d,h),dt=wN(i,ln),Dt=wN(C,dt),rt=A7(dt,ze),it()}function it(){return St=at=null,ut}return ut.stream=function(It){return St&&at===It?St:St=nK(function(r){return n1({point:function(t,n){var a=r(t,n);return this.stream.point(a[0],a[1])}})}(C)(q(rt($e(at=It)))))},ut.preclip=function(It){return arguments.length?(q=It,N=void 0,it()):q},ut.postclip=function(It){return arguments.length?($e=It,Q=te=se=Te=null,it()):$e},ut.clipAngle=function(It){return arguments.length?(q=+It?$8(N=It*Dr):(N=null,AN),it()):N*Ca},ut.clipExtent=function(It){return arguments.length?($e=null==It?(Q=te=se=Te=null,Rm):bM(Q=+It[0][0],te=+It[0][1],se=+It[1][0],Te=+It[1][1]),it()):null==Q?null:[[Q,te],[se,Te]]},ut.scale=function(It){return arguments.length?(t=+It,qt()):t},ut.translate=function(It){return arguments.length?(n=+It[0],a=+It[1],qt()):[n,a]},ut.center=function(It){return arguments.length?(o=It[0]%360*Dr,s=It[1]%360*Dr,qt()):[o*Ca,s*Ca]},ut.rotate=function(It){return arguments.length?(l=It[0]%360*Dr,d=It[1]%360*Dr,h=It.length>2?It[2]%360*Dr:0,qt()):[l*Ca,d*Ca,h*Ca]},ut.angle=function(It){return arguments.length?(P=It%360*Dr,qt()):P*Ca},ut.precision=function(It){return arguments.length?(rt=A7(dt,ze=It*It),it()):Uo(ze)},ut.fitExtent=function(It,ln){return DM(ut,It,ln)},ut.fitSize=function(It,ln){return zN(ut,It,ln)},ut.fitWidth=function(It,ln){return WN(ut,It,ln)},ut.fitHeight=function(It,ln){return GN(ut,It,ln)},function(){return i=r.apply(this,arguments),ut.invert=i.invert&&Wt,qt()}}function JN(r){var i=0,t=Ri/3,n=YN(r),a=n(i,t);return a.parallels=function(o){return arguments.length?n(i=o[0]*Dr,t=o[1]*Dr):[i*Ca,t*Ca]},a}function O7(r,i){var t=sr(r),n=(t+sr(i))/2;if(Ji(n)=.12&&se<.234&&te>=-.425&&te<-.214?a:se>=.166&&se<.234&&te>=-.214&&te<-.115?s:t).invert(N)},C.stream=function(N){return r&&i===N?r:r=function(r){var i=r.length;return{point:function(n,a){for(var o=-1;++o0?l<-so+br&&(l=-so+br):l>so-br&&(l=so-br);var d=a/fN(PM(l),n);return[d*sr(n*s),a-d*Cr(n*s)]}return o.invert=function(s,l){var d=a-l,h=zC(n)*Uo(s*s+d*d);return[tl(s,Ji(d))/n*zC(d),2*w_(fN(a/h,1/n))-so]},o}function dK(){return JN(N7).scale(109.5).parallels([30,30])}function o1(r,i){return[r,i]}function pK(){return mp(o1).scale(152.63)}function Z7(r,i){var t=Cr(r),n=r===i?sr(r):(t-Cr(i))/(i-r),a=t/n+r;if(Ji(n)2?n[2]+90:90]):[(n=t())[0],n[1],n[2]-90]},t([0,0,90]).scale(159.155)}function bK(r,i){return r.parent===i.parent?1:2}function SK(r,i){return r+i.x}function kK(r,i){return Math.max(r,i.y)}function EK(){var r=bK,i=1,t=1,n=!1;function a(o){var s,l=0;o.eachAfter(function(N){var q=N.children;q?(N.x=function(r){return r.reduce(SK,0)/r.length}(q),N.y=function(r){return 1+r.reduce(kK,0)}(q)):(N.x=s?l+=r(N,s):0,N.y=0,s=N)});var d=function(r){for(var i;i=r.children;)r=i[0];return r}(o),h=function(r){for(var i;i=r.children;)r=i[i.length-1];return r}(o),C=d.x-r(d,h)/2,P=h.x+r(h,d)/2;return o.eachAfter(n?function(N){N.x=(N.x-o.x)*i,N.y=(o.y-N.y)*t}:function(N){N.x=(N.x-C)/(P-C)*i,N.y=(1-(o.y?N.y/o.y:1))*t})}return a.separation=function(o){return arguments.length?(r=o,a):r},a.size=function(o){return arguments.length?(n=!1,i=+o[0],t=+o[1],a):n?null:[i,t]},a.nodeSize=function(o){return arguments.length?(n=!0,i=+o[0],t=+o[1],a):n?[i,t]:null},a}function MK(r){var i=0,t=r.children,n=t&&t.length;if(n)for(;--n>=0;)i+=t[n].value;else i=1;r.value=i}function rZ(r,i){var a,s,l,d,h,t=new P_(r),n=+r.value&&(t.value=r.value),o=[t];for(null==i&&(i=VK);a=o.pop();)if(n&&(a.value=+a.data.value),(l=i(a.data))&&(h=l.length))for(a.children=new Array(h),d=h-1;d>=0;--d)o.push(s=a.children[d]=new P_(l[d])),s.parent=a,s.depth=a.depth+1;return t.eachBefore(L7)}function VK(r){return r.children}function jK(r){r.data=r.data.data}function L7(r){var i=0;do{r.height=i}while((r=r.parent)&&r.height<++i)}function P_(r){this.data=r,this.depth=this.height=0,this.parent=null}KN.invert=r1(function(r){return r}),a1.invert=function(r,i){return[r,2*w_(C8(i))-so]},o1.invert=o1,XN.invert=r1(w_),$N.invert=function(r,i){var a,t=i,n=25;do{var o=t*t,s=o*o;t-=a=(t*(1.007226+o*(.015085+s*(.028874*o-.044475-.005916*s)))-i)/(1.007226+o*(.045255+s*(.259866*o-.311325-.005916*11*s)))}while(Ji(a)>br&&--n>0);return[r/(.8707+(o=t*t)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),t]},eZ.invert=r1(Xl),tZ.invert=r1(function(r){return 2*w_(r)}),nZ.invert=function(r,i){return[-i,2*w_(C8(r))-so]},P_.prototype=rZ.prototype={constructor:P_,count:function(){return this.eachAfter(MK)},each:function(r){var t,a,o,s,i=this,n=[i];do{for(t=n.reverse(),n=[];i=t.pop();)if(r(i),a=i.children)for(o=0,s=a.length;o=0;--a)t.push(n[a]);return this},sum:function(r){return this.eachAfter(function(i){for(var t=+r(i.data)||0,n=i.children,a=n&&n.length;--a>=0;)t+=n[a].value;i.value=t})},sort:function(r){return this.eachBefore(function(i){i.children&&i.children.sort(r)})},path:function(r){for(var i=this,t=function(r,i){if(r===i)return r;var t=r.ancestors(),n=i.ancestors(),a=null;for(r=t.pop(),i=n.pop();r===i;)a=r,r=t.pop(),i=n.pop();return a}(i,r),n=[i];i!==t;)n.push(i=i.parent);for(var a=n.length;r!==t;)n.splice(a,0,r),r=r.parent;return n},ancestors:function(){for(var r=this,i=[r];r=r.parent;)i.push(r);return i},descendants:function(){var r=[];return this.each(function(i){r.push(i)}),r},leaves:function(){var r=[];return this.eachBefore(function(i){i.children||r.push(i)}),r},links:function(){var r=this,i=[];return r.each(function(t){t!==r&&i.push({source:t.parent,target:t})}),i},copy:function(){return rZ(this).eachBefore(jK)}};var qK=Array.prototype.slice;function F7(r){for(var a,o,i=0,t=(r=function(r){for(var t,n,i=r.length;i;)n=Math.random()*i--|0,t=r[i],r[i]=r[n],r[n]=t;return r}(qK.call(r))).length,n=[];i0&&t*t>n*n+a*a}function iZ(r,i){for(var t=0;t(d*=d)?(a=(h+d-o)/(2*h),l=Math.sqrt(Math.max(0,d/h-a*a)),t.x=r.x-a*n-l*s,t.y=r.y-a*s+l*n):(a=(h+o-d)/(2*h),l=Math.sqrt(Math.max(0,o/h-a*a)),t.x=i.x+a*n-l*s,t.y=i.y+a*s+l*n)):(t.x=i.x+t.r,t.y=i.y)}function V7(r,i){var t=r.r+i.r-1e-6,n=i.x-r.x,a=i.y-r.y;return t>0&&t*t>n*n+a*a}function j7(r){var i=r._,t=r.next._,n=i.r+t.r,a=(i.x*t.r+t.x*i.r)/n,o=(i.y*t.r+t.y*i.r)/n;return a*a+o*o}function NM(r){this._=r,this.next=null,this.previous=null}function q7(r){if(!(a=r.length))return 0;var i,t,n,a,o,s,l,d,h,C,P;if((i=r[0]).x=0,i.y=0,!(a>1))return i.r;if(i.x=-(t=r[1]).r,t.x=i.r,t.y=0,!(a>2))return i.r+t.r;H7(t,i,n=r[2]),i=new NM(i),t=new NM(t),n=new NM(n),i.next=n.previous=t,t.next=i.previous=n,n.next=t.previous=i;e:for(l=3;l0)throw new Error("cycle");return l}return t.id=function(n){return arguments.length?(r=ZM(n),t):r},t.parentId=function(n){return arguments.length?(i=ZM(n),t):i},t}function iX(r,i){return r.parent===i.parent?1:2}function oZ(r){var i=r.children;return i?i[0]:r.t}function sZ(r){var i=r.children;return i?i[i.length-1]:r.t}function aX(r,i,t){var n=t/(i.i-r.i);i.c-=n,i.s+=t,r.c+=n,i.z+=t,i.m+=t}function sX(r,i,t){return r.a.parent===i.parent?r.a:t}function LM(r,i){this._=r,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=i}function uX(){var r=iX,i=1,t=1,n=null;function a(h){var C=function(r){for(var t,a,o,s,l,i=new LM(r,0),n=[i];t=n.pop();)if(o=t._.children)for(t.children=new Array(l=o.length),s=l-1;s>=0;--s)n.push(a=t.children[s]=new LM(o[s],s)),a.parent=t;return(i.parent=new LM(null,0)).children=[i],i}(h);if(C.eachAfter(o),C.parent.m=-C.z,C.eachBefore(s),n)h.eachBefore(d);else{var P=h,N=h,q=h;h.eachBefore(function($e){$e.xN.x&&(N=$e),$e.depth>q.depth&&(q=$e)});var Q=P===N?1:r(P,N)/2,te=Q-P.x,se=i/(N.x+Q+te),Te=t/(q.depth||1);h.eachBefore(function($e){$e.x=($e.x+te)*se,$e.y=$e.depth*Te})}return h}function o(h){var C=h.children,P=h.parent.children,N=h.i?P[h.i-1]:null;if(C){!function(r){for(var o,i=0,t=0,n=r.children,a=n.length;--a>=0;)(o=n[a]).z+=i,o.m+=i,i+=o.s+(t+=o.c)}(h);var q=(C[0].z+C[C.length-1].z)/2;N?(h.z=N.z+r(h._,N._),h.m=h.z-q):h.z=q}else N&&(h.z=N.z+r(h._,N._));h.parent.A=function(h,C,P){if(C){for(var rt,N=h,q=h,Q=C,te=N.parent.children[0],se=N.m,Te=q.m,$e=Q.m,ze=te.m;Q=sZ(Q),N=oZ(N),Q&&N;)te=oZ(te),(q=sZ(q)).a=h,(rt=Q.z+$e-N.z-se+r(Q._,N._))>0&&(aX(sX(Q,h,P),h,rt),se+=rt,Te+=rt),$e+=Q.m,se+=N.m,ze+=te.m,Te+=q.m;Q&&!sZ(q)&&(q.t=Q,q.m+=$e-Te),N&&!oZ(te)&&(te.t=N,te.m+=se-ze,P=h)}return P}(h,N,h.parent.A||P[0])}function s(h){h._.x=h.z+h.parent.m,h.m+=h.parent.m}function d(h){h.x*=i,h.y=h.depth*t}return a.separation=function(h){return arguments.length?(r=h,a):r},a.size=function(h){return arguments.length?(n=!1,i=+h[0],t=+h[1],a):n?null:[i,t]},a.nodeSize=function(h){return arguments.length?(n=!0,i=+h[0],t=+h[1],a):n?[i,t]:null},a}function FM(r,i,t,n,a){for(var s,o=r.children,l=-1,d=o.length,h=r.value&&(a-t)/r.value;++l$e&&($e=h),Dt=se*se*dt,(ze=Math.max($e/Dt,Dt/Te))>rt){se-=h;break}rt=ze}s.push(d={value:se,dice:q1?n:1)},t}(Q7);function cX(){var r=X7,i=!1,t=1,n=1,a=[0],o=Zm,s=Zm,l=Zm,d=Zm,h=Zm;function C(N){return N.x0=N.y0=0,N.x1=t,N.y1=n,N.eachBefore(P),a=[0],i&&N.eachBefore(G7),N}function P(N){var q=a[N.depth],Q=N.x0+q,te=N.y0+q,se=N.x1-q,Te=N.y1-q;se=N-1){var $e=o[P];return $e.x0=Q,$e.y0=te,$e.x1=se,void($e.y1=Te)}for(var ze=h[P],rt=q/2+ze,dt=P+1,Dt=N-1;dt>>1;h[St]Te-te){var Wt=(Q*ut+se*at)/q;C(P,dt,at,Q,te,Wt,Te),C(dt,N,ut,Wt,te,se,Te)}else{var qt=(te*ut+Te*at)/q;C(P,dt,at,Q,te,se,qt),C(dt,N,ut,Q,qt,se,Te)}}(0,l,r.value,i,t,n,a)}function pX(r,i,t,n,a){(1&r.depth?FM:l1)(r,i,t,n,a)}var fX=function r(i){function t(n,a,o,s,l){if((d=n._squarify)&&d.ratio===i)for(var d,h,C,P,q,N=-1,Q=d.length,te=n.value;++N1?n:1)},t}(Q7);function hX(r){for(var n,i=-1,t=r.length,a=r[t-1],o=0;++i1&&vX(r[t[n-2]],r[t[n-1]],r[a])<=0;)--n;t[n++]=a}return t.slice(0,n)}function _X(r){if((t=r.length)<3)return null;var i,t,n=new Array(t),a=new Array(t);for(i=0;i=0;--i)h.push(r[n[o[i]][2]]);for(i=+l;io!=l>o&&a<(s-d)*(o-h)/(l-h)+d&&(C=!C),s=d,l=h;return C}function bX(r){for(var a,o,i=-1,t=r.length,n=r[t-1],s=n[0],l=n[1],d=0;++i1);return n+a*l*Math.sqrt(-2*Math.log(s)/s)}}return t.source=r,t}(R_),SX=function r(i){function t(){var n=eU.source(i).apply(this,arguments);return function(){return Math.exp(n())}}return t.source=r,t}(R_),tU=function r(i){function t(n){return function(){for(var a=0,o=0;o2?AX:MX,l=d=null,C}function C(P){return(l||(l=s(t,n,o?function(r){return function(i,t){var n=r(i=+i,t=+t);return function(a){return a<=i?0:a>=t?1:n(a)}}}(r):r,a)))(+P)}return C.invert=function(P){return(d||(d=s(n,t,fZ,o?function(r){return function(i,t){var n=r(i=+i,t=+t);return function(a){return a<=0?i:a>=1?t:n(a)}}}(i):i)))(+P)},C.domain=function(P){return arguments.length?(t=lZ.call(P,iU),h()):t.slice()},C.range=function(P){return arguments.length?(n=Hf.call(P),h()):n.slice()},C.rangeRound=function(P){return n=Hf.call(P),a=d4,h()},C.clamp=function(P){return arguments.length?(o=!!P,h()):o},C.interpolate=function(P){return arguments.length?(a=P,h()):a},h()}function u1(r){var i=r.domain;return r.ticks=function(t){var n=i();return dm(n[0],n[n.length-1],null==t?10:t)},r.tickFormat=function(t,n){return function(r,i,t){var s,n=r[0],a=r[r.length-1],o=Af(n,a,null==i?10:i);switch((t=qC(null==t?",f":t)).type){case"s":var l=Math.max(Math.abs(n),Math.abs(a));return null==t.precision&&!isNaN(s=g8(o,l))&&(t.precision=s),pN(t,l);case"":case"e":case"g":case"p":case"r":null==t.precision&&!isNaN(s=_8(o,Math.max(Math.abs(n),Math.abs(a))))&&(t.precision=s-("e"===t.type));break;case"f":case"%":null==t.precision&&!isNaN(s=v8(o))&&(t.precision=s-2*("%"===t.type))}return KE(t)}(i(),t,n)},r.nice=function(t){null==t&&(t=10);var d,n=i(),a=0,o=n.length-1,s=n[a],l=n[o];return l0?d=sp(s=Math.floor(s/d)*d,l=Math.ceil(l/d)*d,t):d<0&&(d=sp(s=Math.ceil(s*d)/d,l=Math.floor(l*d)/d,t)),d>0?(n[a]=Math.floor(s/d)*d,n[o]=Math.ceil(l/d)*d,i(n)):d<0&&(n[a]=Math.ceil(s*d)/d,n[o]=Math.floor(l*d)/d,i(n)),r},r}function oU(){var r=UM(fZ,Kl);return r.copy=function(){return BM(r,oU())},u1(r)}function sU(){var r=[0,1];function i(t){return+t}return i.invert=i,i.domain=i.range=function(t){return arguments.length?(r=lZ.call(t,iU),i):r.slice()},i.copy=function(){return sU().domain(r)},u1(i)}function lU(r,i){var s,t=0,n=(r=r.slice()).length-1,a=r[t],o=r[n];return o0){for(;Ph)break;Te.push(te)}}else for(;P=1;--Q)if(!((te=q*Q)h)break;Te.push(te)}}else Te=dm(P,N,Math.min(N-P,se)).map(a);return C?Te.reverse():Te},r.tickFormat=function(s,l){if(null==l&&(l=10===t?".0e":","),"function"!=typeof l&&(l=KE(l)),s===1/0)return l;null==s&&(s=10);var d=Math.max(1,t*s/r.ticks().length);return function(h){var C=h/a(Math.round(n(h)));return C*t0?t[s-1]:r[0],s=t?[n[t-1],i]:[n[d-1],n[d]]},o.copy=function(){return hU().domain([r,i]).range(a)},u1(o)}function mU(){var r=[.5],i=[0,1],t=1;function n(a){if(a<=a)return i[ac(r,a,0,t)]}return n.domain=function(a){return arguments.length?(r=Hf.call(a),t=Math.min(r.length,i.length-1),n):r.slice()},n.range=function(a){return arguments.length?(i=Hf.call(a),t=Math.min(r.length,i.length-1),n):i.slice()},n.invertExtent=function(a){var o=i.indexOf(a);return[r[o-1],r[o]]},n.copy=function(){return mU().domain(r).range(i)},n}var mZ=new Date,vZ=new Date;function Ho(r,i,t,n){function a(o){return r(o=new Date(+o)),o}return a.floor=a,a.ceil=function(o){return r(o=new Date(o-1)),i(o,1),r(o),o},a.round=function(o){var s=a(o),l=a.ceil(o);return o-s0))return d;do{d.push(h=new Date(+o)),i(o,l),r(o)}while(h=s)for(;r(s),!o(s);)s.setTime(s-1)},function(s,l){if(s>=s)if(l<0)for(;++l<=0;)for(;i(s,-1),!o(s););else for(;--l>=0;)for(;i(s,1),!o(s););})},t&&(a.count=function(o,s){return mZ.setTime(+o),vZ.setTime(+s),r(mZ),r(vZ),Math.floor(t(mZ,vZ))},a.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?a.filter(n?function(s){return n(s)%o==0}:function(s){return a.count(0,s)%o==0}):a:null}),a}var HM=Ho(function(){},function(r,i){r.setTime(+r+i)},function(r,i){return i-r});HM.every=function(r){return r=Math.floor(r),isFinite(r)&&r>0?r>1?Ho(function(i){i.setTime(Math.floor(i/r)*r)},function(i,t){i.setTime(+i+t*r)},function(i,t){return(t-i)/r}):HM:null};var VM=HM,vU=HM.range,Lm=6e4,qM=36e5,_U=6048e5,yU=Ho(function(r){r.setTime(r-r.getMilliseconds())},function(r,i){r.setTime(+r+1e3*i)},function(r,i){return(i-r)/1e3},function(r){return r.getUTCSeconds()}),zM=yU,bU=yU.range,CU=Ho(function(r){r.setTime(r-r.getMilliseconds()-1e3*r.getSeconds())},function(r,i){r.setTime(+r+i*Lm)},function(r,i){return(i-r)/Lm},function(r){return r.getMinutes()}),SU=CU,NX=CU.range,TU=Ho(function(r){r.setTime(r-r.getMilliseconds()-1e3*r.getSeconds()-r.getMinutes()*Lm)},function(r,i){r.setTime(+r+i*qM)},function(r,i){return(i-r)/qM},function(r){return r.getHours()}),kU=TU,ZX=TU.range,wU=Ho(function(r){r.setHours(0,0,0,0)},function(r,i){r.setDate(r.getDate()+i)},function(r,i){return(i-r-(i.getTimezoneOffset()-r.getTimezoneOffset())*Lm)/864e5},function(r){return r.getDate()-1}),WM=wU,LX=wU.range;function Fm(r){return Ho(function(i){i.setDate(i.getDate()-(i.getDay()+7-r)%7),i.setHours(0,0,0,0)},function(i,t){i.setDate(i.getDate()+7*t)},function(i,t){return(t-i-(t.getTimezoneOffset()-i.getTimezoneOffset())*Lm)/_U})}var c1=Fm(0),d1=Fm(1),xU=Fm(2),EU=Fm(3),p1=Fm(4),MU=Fm(5),AU=Fm(6),DU=c1.range,FX=d1.range,BX=xU.range,UX=EU.range,HX=p1.range,VX=MU.range,jX=AU.range,OU=Ho(function(r){r.setDate(1),r.setHours(0,0,0,0)},function(r,i){r.setMonth(r.getMonth()+i)},function(r,i){return i.getMonth()-r.getMonth()+12*(i.getFullYear()-r.getFullYear())},function(r){return r.getMonth()}),PU=OU,qX=OU.range,gZ=Ho(function(r){r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,i){r.setFullYear(r.getFullYear()+i)},function(r,i){return i.getFullYear()-r.getFullYear()},function(r){return r.getFullYear()});gZ.every=function(r){return isFinite(r=Math.floor(r))&&r>0?Ho(function(i){i.setFullYear(Math.floor(i.getFullYear()/r)*r),i.setMonth(0,1),i.setHours(0,0,0,0)},function(i,t){i.setFullYear(i.getFullYear()+t*r)}):null};var Bm=gZ,zX=gZ.range,IU=Ho(function(r){r.setUTCSeconds(0,0)},function(r,i){r.setTime(+r+i*Lm)},function(r,i){return(i-r)/Lm},function(r){return r.getUTCMinutes()}),RU=IU,WX=IU.range,NU=Ho(function(r){r.setUTCMinutes(0,0,0)},function(r,i){r.setTime(+r+i*qM)},function(r,i){return(i-r)/qM},function(r){return r.getUTCHours()}),ZU=NU,GX=NU.range,LU=Ho(function(r){r.setUTCHours(0,0,0,0)},function(r,i){r.setUTCDate(r.getUTCDate()+i)},function(r,i){return(i-r)/864e5},function(r){return r.getUTCDate()-1}),GM=LU,YX=LU.range;function Um(r){return Ho(function(i){i.setUTCDate(i.getUTCDate()-(i.getUTCDay()+7-r)%7),i.setUTCHours(0,0,0,0)},function(i,t){i.setUTCDate(i.getUTCDate()+7*t)},function(i,t){return(t-i)/_U})}var f1=Um(0),h1=Um(1),FU=Um(2),BU=Um(3),m1=Um(4),UU=Um(5),HU=Um(6),VU=f1.range,JX=h1.range,QX=FU.range,KX=BU.range,XX=m1.range,$X=UU.range,e$=HU.range,jU=Ho(function(r){r.setUTCDate(1),r.setUTCHours(0,0,0,0)},function(r,i){r.setUTCMonth(r.getUTCMonth()+i)},function(r,i){return i.getUTCMonth()-r.getUTCMonth()+12*(i.getUTCFullYear()-r.getUTCFullYear())},function(r){return r.getUTCMonth()}),qU=jU,t$=jU.range,_Z=Ho(function(r){r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,i){r.setUTCFullYear(r.getUTCFullYear()+i)},function(r,i){return i.getUTCFullYear()-r.getUTCFullYear()},function(r){return r.getUTCFullYear()});_Z.every=function(r){return isFinite(r=Math.floor(r))&&r>0?Ho(function(i){i.setUTCFullYear(Math.floor(i.getUTCFullYear()/r)*r),i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0)},function(i,t){i.setUTCFullYear(i.getUTCFullYear()+t*r)}):null};var Hm=_Z,n$=_Z.range;function r$(r){if(0<=r.y&&r.y<100){var i=new Date(-1,r.m,r.d,r.H,r.M,r.S,r.L);return i.setFullYear(r.y),i}return new Date(r.y,r.m,r.d,r.H,r.M,r.S,r.L)}function YM(r){if(0<=r.y&&r.y<100){var i=new Date(Date.UTC(-1,r.m,r.d,r.H,r.M,r.S,r.L));return i.setUTCFullYear(r.y),i}return new Date(Date.UTC(r.y,r.m,r.d,r.H,r.M,r.S,r.L))}function v1(r){return{y:r,m:0,d:1,H:0,M:0,S:0,L:0}}function zU(r){var i=r.dateTime,t=r.date,n=r.time,a=r.periods,o=r.days,s=r.shortDays,l=r.months,d=r.shortMonths,h=g1(a),C=_1(a),P=g1(o),N=_1(o),q=g1(s),Q=_1(s),te=g1(l),se=_1(l),Te=g1(d),$e=_1(d),ze={a:function(cr){return s[cr.getDay()]},A:function(cr){return o[cr.getDay()]},b:function(cr){return d[cr.getMonth()]},B:function(cr){return l[cr.getMonth()]},c:null,d:JU,e:JU,f:E$,H:k$,I:w$,j:x$,L:QU,m:M$,M:A$,p:function(cr){return a[+(cr.getHours()>=12)]},Q:e9,s:t9,S:D$,u:O$,U:P$,V:I$,w:R$,W:N$,x:null,X:null,y:Z$,Y:L$,Z:F$,"%":$U},rt={a:function(cr){return s[cr.getUTCDay()]},A:function(cr){return o[cr.getUTCDay()]},b:function(cr){return d[cr.getUTCMonth()]},B:function(cr){return l[cr.getUTCMonth()]},c:null,d:KU,e:KU,f:V$,H:B$,I:U$,j:H$,L:XU,m:j$,M:q$,p:function(cr){return a[+(cr.getUTCHours()>=12)]},Q:e9,s:t9,S:z$,u:W$,U:G$,V:Y$,w:J$,W:Q$,x:null,X:null,y:K$,Y:X$,Z:$$,"%":$U},dt={a:function(cr,lr,$n){var Bn=q.exec(lr.slice($n));return Bn?(cr.w=Q[Bn[0].toLowerCase()],$n+Bn[0].length):-1},A:function(cr,lr,$n){var Bn=P.exec(lr.slice($n));return Bn?(cr.w=N[Bn[0].toLowerCase()],$n+Bn[0].length):-1},b:function(cr,lr,$n){var Bn=Te.exec(lr.slice($n));return Bn?(cr.m=$e[Bn[0].toLowerCase()],$n+Bn[0].length):-1},B:function(cr,lr,$n){var Bn=te.exec(lr.slice($n));return Bn?(cr.m=se[Bn[0].toLowerCase()],$n+Bn[0].length):-1},c:function(cr,lr,$n){return at(cr,i,lr,$n)},d:GU,e:GU,f:b$,H:YU,I:YU,j:v$,L:y$,m:m$,M:g$,p:function(cr,lr,$n){var Bn=h.exec(lr.slice($n));return Bn?(cr.p=C[Bn[0].toLowerCase()],$n+Bn[0].length):-1},Q:S$,s:T$,S:_$,u:l$,U:u$,V:c$,w:s$,W:d$,x:function(cr,lr,$n){return at(cr,t,lr,$n)},X:function(cr,lr,$n){return at(cr,n,lr,$n)},y:f$,Y:p$,Z:h$,"%":C$};function Dt(cr,lr){return function($n){var ys,Ol,Ac,Bn=[],Qa=-1,Oi=0,wi=cr.length;for($n instanceof Date||($n=new Date(+$n));++Qa53)return null;"w"in Bn||(Bn.w=1),"Z"in Bn?(wi=(Oi=YM(v1(Bn.y))).getUTCDay(),Oi=wi>4||0===wi?h1.ceil(Oi):h1(Oi),Oi=GM.offset(Oi,7*(Bn.V-1)),Bn.y=Oi.getUTCFullYear(),Bn.m=Oi.getUTCMonth(),Bn.d=Oi.getUTCDate()+(Bn.w+6)%7):(wi=(Oi=lr(v1(Bn.y))).getDay(),Oi=wi>4||0===wi?d1.ceil(Oi):d1(Oi),Oi=WM.offset(Oi,7*(Bn.V-1)),Bn.y=Oi.getFullYear(),Bn.m=Oi.getMonth(),Bn.d=Oi.getDate()+(Bn.w+6)%7)}else("W"in Bn||"U"in Bn)&&("w"in Bn||(Bn.w="u"in Bn?Bn.u%7:"W"in Bn?1:0),wi="Z"in Bn?YM(v1(Bn.y)).getUTCDay():lr(v1(Bn.y)).getDay(),Bn.m=0,Bn.d="W"in Bn?(Bn.w+6)%7+7*Bn.W-(wi+5)%7:Bn.w+7*Bn.U-(wi+6)%7);return"Z"in Bn?(Bn.H+=Bn.Z/100|0,Bn.M+=Bn.Z%100,YM(Bn)):lr(Bn)}}function at(cr,lr,$n,Bn){for(var ys,Ol,Qa=0,Oi=lr.length,wi=$n.length;Qa=wi)return-1;if(37===(ys=lr.charCodeAt(Qa++))){if(ys=lr.charAt(Qa++),!(Ol=dt[ys in WU?lr.charAt(Qa++):ys])||(Bn=Ol(cr,$n,Bn))<0)return-1}else if(ys!=$n.charCodeAt(Bn++))return-1}return Bn}return ze.x=Dt(t,ze),ze.X=Dt(n,ze),ze.c=Dt(i,ze),rt.x=Dt(t,rt),rt.X=Dt(n,rt),rt.c=Dt(i,rt),{format:function(lr){var $n=Dt(lr+="",ze);return $n.toString=function(){return lr},$n},parse:function(lr){var $n=St(lr+="",r$);return $n.toString=function(){return lr},$n},utcFormat:function(lr){var $n=Dt(lr+="",rt);return $n.toString=function(){return lr},$n},utcParse:function(lr){var $n=St(lr,YM);return $n.toString=function(){return lr},$n}}}var Z_,yZ,n9,JM,bZ,WU={"-":"",_:" ",0:"0"},ms=/^\s*\d+/,i$=/^%/,a$=/[\\^$*+?|[\]().{}]/g;function la(r,i,t){var n=r<0?"-":"",a=(n?-r:r)+"",o=a.length;return n+(o68?1900:2e3),t+n[0].length):-1}function h$(r,i,t){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(i.slice(t,t+6));return n?(r.Z=n[1]?0:-(n[2]+(n[3]||"00")),t+n[0].length):-1}function m$(r,i,t){var n=ms.exec(i.slice(t,t+2));return n?(r.m=n[0]-1,t+n[0].length):-1}function GU(r,i,t){var n=ms.exec(i.slice(t,t+2));return n?(r.d=+n[0],t+n[0].length):-1}function v$(r,i,t){var n=ms.exec(i.slice(t,t+3));return n?(r.m=0,r.d=+n[0],t+n[0].length):-1}function YU(r,i,t){var n=ms.exec(i.slice(t,t+2));return n?(r.H=+n[0],t+n[0].length):-1}function g$(r,i,t){var n=ms.exec(i.slice(t,t+2));return n?(r.M=+n[0],t+n[0].length):-1}function _$(r,i,t){var n=ms.exec(i.slice(t,t+2));return n?(r.S=+n[0],t+n[0].length):-1}function y$(r,i,t){var n=ms.exec(i.slice(t,t+3));return n?(r.L=+n[0],t+n[0].length):-1}function b$(r,i,t){var n=ms.exec(i.slice(t,t+6));return n?(r.L=Math.floor(n[0]/1e3),t+n[0].length):-1}function C$(r,i,t){var n=i$.exec(i.slice(t,t+1));return n?t+n[0].length:-1}function S$(r,i,t){var n=ms.exec(i.slice(t));return n?(r.Q=+n[0],t+n[0].length):-1}function T$(r,i,t){var n=ms.exec(i.slice(t));return n?(r.Q=1e3*+n[0],t+n[0].length):-1}function JU(r,i){return la(r.getDate(),i,2)}function k$(r,i){return la(r.getHours(),i,2)}function w$(r,i){return la(r.getHours()%12||12,i,2)}function x$(r,i){return la(1+WM.count(Bm(r),r),i,3)}function QU(r,i){return la(r.getMilliseconds(),i,3)}function E$(r,i){return QU(r,i)+"000"}function M$(r,i){return la(r.getMonth()+1,i,2)}function A$(r,i){return la(r.getMinutes(),i,2)}function D$(r,i){return la(r.getSeconds(),i,2)}function O$(r){var i=r.getDay();return 0===i?7:i}function P$(r,i){return la(c1.count(Bm(r),r),i,2)}function I$(r,i){var t=r.getDay();return r=t>=4||0===t?p1(r):p1.ceil(r),la(p1.count(Bm(r),r)+(4===Bm(r).getDay()),i,2)}function R$(r){return r.getDay()}function N$(r,i){return la(d1.count(Bm(r),r),i,2)}function Z$(r,i){return la(r.getFullYear()%100,i,2)}function L$(r,i){return la(r.getFullYear()%1e4,i,4)}function F$(r){var i=r.getTimezoneOffset();return(i>0?"-":(i*=-1,"+"))+la(i/60|0,"0",2)+la(i%60,"0",2)}function KU(r,i){return la(r.getUTCDate(),i,2)}function B$(r,i){return la(r.getUTCHours(),i,2)}function U$(r,i){return la(r.getUTCHours()%12||12,i,2)}function H$(r,i){return la(1+GM.count(Hm(r),r),i,3)}function XU(r,i){return la(r.getUTCMilliseconds(),i,3)}function V$(r,i){return XU(r,i)+"000"}function j$(r,i){return la(r.getUTCMonth()+1,i,2)}function q$(r,i){return la(r.getUTCMinutes(),i,2)}function z$(r,i){return la(r.getUTCSeconds(),i,2)}function W$(r){var i=r.getUTCDay();return 0===i?7:i}function G$(r,i){return la(f1.count(Hm(r),r),i,2)}function Y$(r,i){var t=r.getUTCDay();return r=t>=4||0===t?m1(r):m1.ceil(r),la(m1.count(Hm(r),r)+(4===Hm(r).getUTCDay()),i,2)}function J$(r){return r.getUTCDay()}function Q$(r,i){return la(h1.count(Hm(r),r),i,2)}function K$(r,i){return la(r.getUTCFullYear()%100,i,2)}function X$(r,i){return la(r.getUTCFullYear()%1e4,i,4)}function $$(){return"+0000"}function $U(){return"%"}function e9(r){return+r}function t9(r){return Math.floor(+r/1e3)}function r9(r){return Z_=zU(r),yZ=Z_.format,n9=Z_.parse,JM=Z_.utcFormat,bZ=Z_.utcParse,Z_}r9({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"]});var i9="%Y-%m-%dT%H:%M:%S.%LZ",tee=Date.prototype.toISOString?function(r){return r.toISOString()}:JM(i9),nee=tee,iee=+new Date("2000-01-01T00:00:00.000Z")?function(r){var i=new Date(r);return isNaN(i)?null:i}:bZ(i9),aee=iee,b1=6e4,C1=60*b1,S1=24*C1,a9=30*S1,CZ=365*S1;function see(r){return new Date(r)}function lee(r){return r instanceof Date?+r:+new Date(+r)}function SZ(r,i,t,n,a,o,s,l,d){var h=UM(fZ,Kl),C=h.invert,P=h.domain,N=d(".%L"),q=d(":%S"),Q=d("%I:%M"),te=d("%I %p"),se=d("%a %d"),Te=d("%b %d"),$e=d("%B"),ze=d("%Y"),rt=[[s,1,1e3],[s,5,5e3],[s,15,15e3],[s,30,3e4],[o,1,b1],[o,5,5*b1],[o,15,15*b1],[o,30,30*b1],[a,1,C1],[a,3,3*C1],[a,6,6*C1],[a,12,12*C1],[n,1,S1],[n,2,2*S1],[t,1,6048e5],[i,1,a9],[i,3,3*a9],[r,1,CZ]];function dt(St){return(s(St)1)&&(r-=Math.floor(r));var i=Math.abs(r-.5);return QM.h=360*r-100,QM.s=1.5-1.5*i,QM.l=.8-.9*i,QM+""}function KM(r){var i=r.length;return function(t){return r[Math.max(0,Math.min(i-1,Math.floor(t*i)))]}}var Kee=KM(li("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Xee=KM(li("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),$ee=KM(li("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),ete=KM(li("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function tte(r,i){return r.each(function(){var t=i.apply(this,arguments),n=$r(this);for(var a in t)n.attr(a,t[a])})}function nte(r,i){for(var t in i)r.attr(t,i[t]);return r}function ite(r,i,t){return r.each(function(){var n=i.apply(this,arguments),a=$r(this);for(var o in n)a.style(o,n[o],t)})}function ate(r,i,t){for(var n in i)r.style(n,i[n],t);return r}function ste(r,i){return r.each(function(){var t=i.apply(this,arguments),n=$r(this);for(var a in t)n.property(a,t[a])})}function lte(r,i){for(var t in i)r.property(t,i[t]);return r}function cte(r,i){return r.each(function(){var t=i.apply(this,arguments),n=$r(this).transition(r);for(var a in t)n.attr(a,t[a])})}function dte(r,i){for(var t in i)r.attr(t,i[t]);return r}function fte(r,i,t){return r.each(function(){var n=i.apply(this,arguments),a=$r(this).transition(r);for(var o in n)a.style(o,n[o],t)})}function hte(r,i,t){for(var n in i)r.style(n,i[n],t);return r}function gi(r){return function(){return r}}sc.prototype.attrs=function(r){return("function"==typeof r?tte:nte)(this,r)},sc.prototype.styles=function(r,i){return("function"==typeof r?ite:ate)(this,r,null==i?"":i)},sc.prototype.properties=function(r){return("function"==typeof r?ste:lte)(this,r)},LE.prototype.attrs=function(r){return("function"==typeof r?cte:dte)(this,r)},LE.prototype.styles=function(r,i){return("function"==typeof r?fte:hte)(this,r,null==i?"":i)};var R9=Math.abs,Is=Math.atan2,Vm=Math.cos,vte=Math.max,TZ=Math.min,sd=Math.sin,L_=Math.sqrt,vs=1e-12,jm=Math.PI,XM=jm/2,vp=2*jm;function gte(r){return r>1?0:r<-1?jm:Math.acos(r)}function N9(r){return r>=1?XM:r<=-1?-XM:Math.asin(r)}function _te(r){return r.innerRadius}function yte(r){return r.outerRadius}function bte(r){return r.startAngle}function Cte(r){return r.endAngle}function Ste(r){return r&&r.padAngle}function Tte(r,i,t,n,a,o,s,l){var d=t-r,h=n-i,C=s-a,P=l-o,N=P*d-C*h;if(!(N*Nln*ln+mn*mn&&(at=Wt,ut=qt),{cx:at,cy:ut,x01:-C,y01:-P,x11:at*(a/dt-1),y11:ut*(a/dt-1)}}function kte(){var r=_te,i=yte,t=gi(0),n=null,a=bte,o=Cte,s=Ste,l=null;function d(){var h,C,P=+r.apply(this,arguments),N=+i.apply(this,arguments),q=a.apply(this,arguments)-XM,Q=o.apply(this,arguments)-XM,te=R9(Q-q),se=Q>q;if(l||(l=h=hc()),Nvs)if(te>vp-vs)l.moveTo(N*Vm(q),N*sd(q)),l.arc(0,0,N,q,Q,!se),P>vs&&(l.moveTo(P*Vm(Q),P*sd(Q)),l.arc(0,0,P,Q,q,se));else{var it,It,Te=q,$e=Q,ze=q,rt=Q,dt=te,Dt=te,St=s.apply(this,arguments)/2,at=St>vs&&(n?+n.apply(this,arguments):L_(P*P+N*N)),ut=TZ(R9(N-P)/2,+t.apply(this,arguments)),Wt=ut,qt=ut;if(at>vs){var ln=N9(at/P*sd(St)),mn=N9(at/N*sd(St));(dt-=2*ln)>vs?(ze+=ln*=se?1:-1,rt-=ln):(dt=0,ze=rt=(q+Q)/2),(Dt-=2*mn)>vs?(Te+=mn*=se?1:-1,$e-=mn):(Dt=0,Te=$e=(q+Q)/2)}var Sn=N*Vm(Te),tn=N*sd(Te),Xn=P*Vm(rt),fr=P*sd(rt);if(ut>vs){var hr,Lr=N*Vm($e),tr=N*sd($e),Jr=P*Vm(ze),di=P*sd(ze);if(te<=vp-vs&&(hr=Tte(Sn,tn,Jr,di,Lr,tr,Xn,fr))){var Ui=Sn-hr[0],Ua=tn-hr[1],cr=Lr-hr[0],lr=tr-hr[1],$n=1/sd(gte((Ui*cr+Ua*lr)/(L_(Ui*Ui+Ua*Ua)*L_(cr*cr+lr*lr)))/2),Bn=L_(hr[0]*hr[0]+hr[1]*hr[1]);Wt=TZ(ut,(P-Bn)/($n-1)),qt=TZ(ut,(N-Bn)/($n+1))}}Dt>vs?qt>vs?(it=$M(Jr,di,Sn,tn,N,qt,se),It=$M(Lr,tr,Xn,fr,N,qt,se),l.moveTo(it.cx+it.x01,it.cy+it.y01),qtvs&&dt>vs?Wt>vs?(it=$M(Xn,fr,Lr,tr,P,-Wt,se),It=$M(Sn,tn,Jr,di,P,-Wt,se),l.lineTo(it.cx+it.x01,it.cy+it.y01),Wt=N;--q)l.point($e[q],ze[q]);l.lineEnd(),l.areaEnd()}se&&($e[P]=+r(te,P,C),ze[P]=+t(te,P,C),l.point(i?+i(te,P,C):$e[P],n?+n(te,P,C):ze[P]))}if(Te)return l=null,Te+""||null}function h(){return tA().defined(a).curve(s).context(o)}return d.x=function(C){return arguments.length?(r="function"==typeof C?C:gi(+C),i=null,d):r},d.x0=function(C){return arguments.length?(r="function"==typeof C?C:gi(+C),d):r},d.x1=function(C){return arguments.length?(i=null==C?null:"function"==typeof C?C:gi(+C),d):i},d.y=function(C){return arguments.length?(t="function"==typeof C?C:gi(+C),n=null,d):t},d.y0=function(C){return arguments.length?(t="function"==typeof C?C:gi(+C),d):t},d.y1=function(C){return arguments.length?(n=null==C?null:"function"==typeof C?C:gi(+C),d):n},d.lineX0=d.lineY0=function(){return h().x(r).y(t)},d.lineY1=function(){return h().x(r).y(n)},d.lineX1=function(){return h().x(i).y(t)},d.defined=function(C){return arguments.length?(a="function"==typeof C?C:gi(!!C),d):a},d.curve=function(C){return arguments.length?(s=C,null!=o&&(l=s(o)),d):s},d.context=function(C){return arguments.length?(null==C?o=l=null:l=s(o=C),d):o},d}function wte(r,i){return ir?1:i>=r?0:NaN}function xte(r){return r}function Ete(){var r=xte,i=wte,t=null,n=gi(0),a=gi(vp),o=gi(0);function s(l){var d,C,P,Te,rt,h=l.length,N=0,q=new Array(h),Q=new Array(h),te=+n.apply(this,arguments),se=Math.min(vp,Math.max(-vp,a.apply(this,arguments)-te)),$e=Math.min(Math.abs(se)/h,o.apply(this,arguments)),ze=$e*(se<0?-1:1);for(d=0;d0&&(N+=rt);for(null!=i?q.sort(function(dt,Dt){return i(Q[dt],Q[Dt])}):null!=t&&q.sort(function(dt,Dt){return t(l[dt],l[Dt])}),d=0,P=N?(se-h*ze)/N:0;d0?rt*P:0)+ze,padAngle:$e};return Q}return s.value=function(l){return arguments.length?(r="function"==typeof l?l:gi(+l),s):r},s.sortValues=function(l){return arguments.length?(i=l,t=null,s):i},s.sort=function(l){return arguments.length?(t=l,i=null,s):t},s.startAngle=function(l){return arguments.length?(n="function"==typeof l?l:gi(+l),s):n},s.endAngle=function(l){return arguments.length?(a="function"==typeof l?l:gi(+l),s):a},s.padAngle=function(l){return arguments.length?(o="function"==typeof l?l:gi(+l),s):o},s}Z9.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(i,t){switch(i=+i,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(i,t):this._context.moveTo(i,t);break;case 1:this._point=2;default:this._context.lineTo(i,t)}}};var F9=xZ(eA);function B9(r){this._curve=r}function xZ(r){function i(t){return new B9(r(t))}return i._curve=r,i}function T1(r){var i=r.curve;return r.angle=r.x,delete r.x,r.radius=r.y,delete r.y,r.curve=function(t){return arguments.length?i(xZ(t)):i()._curve},r}function U9(){return T1(tA().curve(F9))}function H9(){var r=L9().curve(F9),i=r.curve,t=r.lineX0,n=r.lineX1,a=r.lineY0,o=r.lineY1;return r.angle=r.x,delete r.x,r.startAngle=r.x0,delete r.x0,r.endAngle=r.x1,delete r.x1,r.radius=r.y,delete r.y,r.innerRadius=r.y0,delete r.y0,r.outerRadius=r.y1,delete r.y1,r.lineStartAngle=function(){return T1(t())},delete r.lineX0,r.lineEndAngle=function(){return T1(n())},delete r.lineX1,r.lineInnerRadius=function(){return T1(a())},delete r.lineY0,r.lineOuterRadius=function(){return T1(o())},delete r.lineY1,r.curve=function(s){return arguments.length?i(xZ(s)):i()._curve},r}function k1(r,i){return[(i=+i)*Math.cos(r-=Math.PI/2),i*Math.sin(r)]}B9.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(i,t){this._curve.point(t*Math.sin(i),t*-Math.cos(i))}};var EZ=Array.prototype.slice;function Mte(r){return r.source}function Ate(r){return r.target}function MZ(r){var i=Mte,t=Ate,n=kZ,a=wZ,o=null;function s(){var l,d=EZ.call(arguments),h=i.apply(this,d),C=t.apply(this,d);if(o||(o=l=hc()),r(o,+n.apply(this,(d[0]=h,d)),+a.apply(this,d),+n.apply(this,(d[0]=C,d)),+a.apply(this,d)),l)return o=null,l+""||null}return s.source=function(l){return arguments.length?(i=l,s):i},s.target=function(l){return arguments.length?(t=l,s):t},s.x=function(l){return arguments.length?(n="function"==typeof l?l:gi(+l),s):n},s.y=function(l){return arguments.length?(a="function"==typeof l?l:gi(+l),s):a},s.context=function(l){return arguments.length?(o=null==l?null:l,s):o},s}function Dte(r,i,t,n,a){r.moveTo(i,t),r.bezierCurveTo(i=(i+n)/2,t,i,a,n,a)}function Ote(r,i,t,n,a){r.moveTo(i,t),r.bezierCurveTo(i,t=(t+a)/2,n,t,n,a)}function Pte(r,i,t,n,a){var o=k1(i,t),s=k1(i,t=(t+a)/2),l=k1(n,t),d=k1(n,a);r.moveTo(o[0],o[1]),r.bezierCurveTo(s[0],s[1],l[0],l[1],d[0],d[1])}function Ite(){return MZ(Dte)}function Rte(){return MZ(Ote)}function Nte(){var r=MZ(Pte);return r.angle=r.x,delete r.x,r.radius=r.y,delete r.y,r}var AZ={draw:function(i,t){var n=Math.sqrt(t/jm);i.moveTo(n,0),i.arc(0,0,n,0,vp)}},V9={draw:function(i,t){var n=Math.sqrt(t/5)/2;i.moveTo(-3*n,-n),i.lineTo(-n,-n),i.lineTo(-n,-3*n),i.lineTo(n,-3*n),i.lineTo(n,-n),i.lineTo(3*n,-n),i.lineTo(3*n,n),i.lineTo(n,n),i.lineTo(n,3*n),i.lineTo(-n,3*n),i.lineTo(-n,n),i.lineTo(-3*n,n),i.closePath()}},j9=Math.sqrt(1/3),Zte=2*j9,q9={draw:function(i,t){var n=Math.sqrt(t/Zte),a=n*j9;i.moveTo(0,-n),i.lineTo(a,0),i.lineTo(0,n),i.lineTo(-a,0),i.closePath()}},z9=Math.sin(jm/10)/Math.sin(7*jm/10),Fte=Math.sin(vp/10)*z9,Bte=-Math.cos(vp/10)*z9,W9={draw:function(i,t){var n=Math.sqrt(.8908130915292852*t),a=Fte*n,o=Bte*n;i.moveTo(0,-n),i.lineTo(a,o);for(var s=1;s<5;++s){var l=vp*s/5,d=Math.cos(l),h=Math.sin(l);i.lineTo(h*n,-d*n),i.lineTo(d*a-h*o,h*a+d*o)}i.closePath()}},G9={draw:function(i,t){var n=Math.sqrt(t),a=-n/2;i.rect(a,a,n,n)}},DZ=Math.sqrt(3),Y9={draw:function(i,t){var n=-Math.sqrt(t/(3*DZ));i.moveTo(0,2*n),i.lineTo(-DZ*n,-n),i.lineTo(DZ*n,-n),i.closePath()}},Au=-.5,Du=Math.sqrt(3)/2,OZ=1/Math.sqrt(12),Ute=3*(OZ/2+1),J9={draw:function(i,t){var n=Math.sqrt(t/Ute),a=n/2,o=n*OZ,s=a,l=n*OZ+n,d=-s,h=l;i.moveTo(a,o),i.lineTo(s,l),i.lineTo(d,h),i.lineTo(Au*a-Du*o,Du*a+Au*o),i.lineTo(Au*s-Du*l,Du*s+Au*l),i.lineTo(Au*d-Du*h,Du*d+Au*h),i.lineTo(Au*a+Du*o,Au*o-Du*a),i.lineTo(Au*s+Du*l,Au*l-Du*s),i.lineTo(Au*d+Du*h,Au*h-Du*d),i.closePath()}},Hte=[AZ,V9,q9,G9,W9,Y9,J9];function Vte(){var r=gi(AZ),i=gi(64),t=null;function n(){var a;if(t||(t=a=hc()),r.apply(this,arguments).draw(t,+i.apply(this,arguments)),a)return t=null,a+""||null}return n.type=function(a){return arguments.length?(r="function"==typeof a?a:gi(a),n):r},n.size=function(a){return arguments.length?(i="function"==typeof a?a:gi(+a),n):i},n.context=function(a){return arguments.length?(t=null==a?null:a,n):t},n}function Vf(){}function nA(r,i,t){r._context.bezierCurveTo((2*r._x0+r._x1)/3,(2*r._y0+r._y1)/3,(r._x0+2*r._x1)/3,(r._y0+2*r._y1)/3,(r._x0+4*r._x1+i)/6,(r._y0+4*r._y1+t)/6)}function rA(r){this._context=r}function jte(r){return new rA(r)}function Q9(r){this._context=r}function qte(r){return new Q9(r)}function K9(r){this._context=r}function zte(r){return new K9(r)}function X9(r,i){this._basis=new rA(r),this._beta=i}rA.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:nA(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(i,t){switch(i=+i,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(i,t):this._context.moveTo(i,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:nA(this,i,t)}this._x0=this._x1,this._x1=i,this._y0=this._y1,this._y1=t}},Q9.prototype={areaStart:Vf,areaEnd:Vf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(i,t){switch(i=+i,t=+t,this._point){case 0:this._point=1,this._x2=i,this._y2=t;break;case 1:this._point=2,this._x3=i,this._y3=t;break;case 2:this._point=3,this._x4=i,this._y4=t,this._context.moveTo((this._x0+4*this._x1+i)/6,(this._y0+4*this._y1+t)/6);break;default:nA(this,i,t)}this._x0=this._x1,this._x1=i,this._y0=this._y1,this._y1=t}},K9.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(i,t){switch(i=+i,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+i)/6,a=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,a):this._context.moveTo(n,a);break;case 3:this._point=4;default:nA(this,i,t)}this._x0=this._x1,this._x1=i,this._y0=this._y1,this._y1=t}},X9.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var i=this._x,t=this._y,n=i.length-1;if(n>0)for(var h,a=i[0],o=t[0],s=i[n]-a,l=t[n]-o,d=-1;++d<=n;)this._basis.point(this._beta*i[d]+(1-this._beta)*(a+(h=d/n)*s),this._beta*t[d]+(1-this._beta)*(o+h*l));this._x=this._y=null,this._basis.lineEnd()},point:function(i,t){this._x.push(+i),this._y.push(+t)}};var Wte=function r(i){function t(n){return 1===i?new rA(n):new X9(n,i)}return t.beta=function(n){return r(+n)},t}(.85);function iA(r,i,t){r._context.bezierCurveTo(r._x1+r._k*(r._x2-r._x0),r._y1+r._k*(r._y2-r._y0),r._x2+r._k*(r._x1-i),r._y2+r._k*(r._y1-t),r._x2,r._y2)}function PZ(r,i){this._context=r,this._k=(1-i)/6}PZ.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:iA(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(i,t){switch(i=+i,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(i,t):this._context.moveTo(i,t);break;case 1:this._point=2,this._x1=i,this._y1=t;break;case 2:this._point=3;default:iA(this,i,t)}this._x0=this._x1,this._x1=this._x2,this._x2=i,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Gte=function r(i){function t(n){return new PZ(n,i)}return t.tension=function(n){return r(+n)},t}(0);function IZ(r,i){this._context=r,this._k=(1-i)/6}IZ.prototype={areaStart:Vf,areaEnd:Vf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(i,t){switch(i=+i,t=+t,this._point){case 0:this._point=1,this._x3=i,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=i,this._y4=t);break;case 2:this._point=3,this._x5=i,this._y5=t;break;default:iA(this,i,t)}this._x0=this._x1,this._x1=this._x2,this._x2=i,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Yte=function r(i){function t(n){return new IZ(n,i)}return t.tension=function(n){return r(+n)},t}(0);function RZ(r,i){this._context=r,this._k=(1-i)/6}RZ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(i,t){switch(i=+i,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:iA(this,i,t)}this._x0=this._x1,this._x1=this._x2,this._x2=i,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Jte=function r(i){function t(n){return new RZ(n,i)}return t.tension=function(n){return r(+n)},t}(0);function NZ(r,i,t){var n=r._x1,a=r._y1,o=r._x2,s=r._y2;if(r._l01_a>vs){var l=2*r._l01_2a+3*r._l01_a*r._l12_a+r._l12_2a,d=3*r._l01_a*(r._l01_a+r._l12_a);n=(n*l-r._x0*r._l12_2a+r._x2*r._l01_2a)/d,a=(a*l-r._y0*r._l12_2a+r._y2*r._l01_2a)/d}if(r._l23_a>vs){var h=2*r._l23_2a+3*r._l23_a*r._l12_a+r._l12_2a,C=3*r._l23_a*(r._l23_a+r._l12_a);o=(o*h+r._x1*r._l23_2a-i*r._l12_2a)/C,s=(s*h+r._y1*r._l23_2a-t*r._l12_2a)/C}r._context.bezierCurveTo(n,a,o,s,r._x2,r._y2)}function $9(r,i){this._context=r,this._alpha=i}$9.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(i,t){if(i=+i,t=+t,this._point){var n=this._x2-i,a=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+a*a,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(i,t):this._context.moveTo(i,t);break;case 1:this._point=2;break;case 2:this._point=3;default:NZ(this,i,t)}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=i,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Qte=function r(i){function t(n){return i?new $9(n,i):new PZ(n,0)}return t.alpha=function(n){return r(+n)},t}(.5);function eH(r,i){this._context=r,this._alpha=i}eH.prototype={areaStart:Vf,areaEnd:Vf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(i,t){if(i=+i,t=+t,this._point){var n=this._x2-i,a=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+a*a,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=i,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=i,this._y4=t);break;case 2:this._point=3,this._x5=i,this._y5=t;break;default:NZ(this,i,t)}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=i,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Kte=function r(i){function t(n){return i?new eH(n,i):new IZ(n,0)}return t.alpha=function(n){return r(+n)},t}(.5);function tH(r,i){this._context=r,this._alpha=i}tH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(i,t){if(i=+i,t=+t,this._point){var n=this._x2-i,a=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+a*a,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:NZ(this,i,t)}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=i,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Xte=function r(i){function t(n){return i?new tH(n,i):new RZ(n,0)}return t.alpha=function(n){return r(+n)},t}(.5);function nH(r){this._context=r}function $te(r){return new nH(r)}function rH(r){return r<0?-1:1}function iH(r,i,t){var n=r._x1-r._x0,a=i-r._x1,o=(r._y1-r._y0)/(n||a<0&&-0),s=(t-r._y1)/(a||n<0&&-0),l=(o*a+s*n)/(n+a);return(rH(o)+rH(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(l))||0}function aH(r,i){var t=r._x1-r._x0;return t?(3*(r._y1-r._y0)/t-i)/2:i}function ZZ(r,i,t){var n=r._x0,o=r._x1,s=r._y1,l=(o-n)/3;r._context.bezierCurveTo(n+l,r._y0+l*i,o-l,s-l*t,o,s)}function aA(r){this._context=r}function oH(r){this._context=new sH(r)}function sH(r){this._context=r}function ene(r){return new aA(r)}function tne(r){return new oH(r)}function lH(r){this._context=r}function uH(r){var i,n,t=r.length-1,a=new Array(t),o=new Array(t),s=new Array(t);for(a[0]=0,o[0]=2,s[0]=r[0]+2*r[1],i=1;i=0;--i)a[i]=(s[i]-a[i+1])/o[i];for(o[t-1]=(r[t]+a[t-1])/2,i=0;i1)for(var n,a,s,t=1,o=r[i[0]],l=o.length;t=0;)t[i]=i;return t}function one(r,i){return r[i]}function sne(){var r=gi([]),i=B_,t=F_,n=one;function a(o){var l,P,s=r.apply(this,arguments),d=o.length,h=s.length,C=new Array(h);for(l=0;l0){for(var t,n,s,a=0,o=r[0].length;a1)for(var t,a,o,s,l,d,n=0,h=r[i[0]].length;n=0?(a[0]=s,a[1]=s+=o):o<0?(a[1]=l,a[0]=l+=o):a[0]=s}function cne(r,i){if((a=r.length)>0){for(var a,t=0,n=r[i[0]],o=n.length;t0&&(o=(a=r[i[0]]).length)>0){for(var a,o,s,t=0,n=1;n=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(i,t){switch(i=+i,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(i,t):this._context.moveTo(i,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(i,t);else{var n=this._x*(1-this._t)+i*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=i,this._y=t}},LZ.prototype={constructor:LZ,insert:function(i,t){var n,a,o;if(i){if(t.P=i,t.N=i.N,i.N&&(i.N.P=t),i.N=t,i.R){for(i=i.R;i.L;)i=i.L;i.L=t}else i.R=t;n=i}else this._?(i=fH(this._),t.P=null,t.N=i,i.P=i.L=t,n=i):(t.P=t.N=null,this._=t,n=null);for(t.L=t.R=null,t.U=n,t.C=!0,i=t;n&&n.C;)n===(a=n.U).L?(o=a.R)&&o.C?(n.C=o.C=!1,a.C=!0,i=a):(i===n.R&&(w1(this,n),n=(i=n).U),n.C=!1,a.C=!0,x1(this,a)):(o=a.L)&&o.C?(n.C=o.C=!1,a.C=!0,i=a):(i===n.L&&(x1(this,n),n=(i=n).U),n.C=!1,a.C=!0,w1(this,a)),n=i.U;this._.C=!1},remove:function(i){i.N&&(i.N.P=i.P),i.P&&(i.P.N=i.N),i.N=i.P=null;var n,s,l,t=i.U,a=i.L,o=i.R;if(s=a?o?fH(o):a:o,t?t.L===i?t.L=s:t.R=s:this._=s,a&&o?(l=s.C,s.C=i.C,s.L=a,a.U=s,s!==o?(t=s.U,s.U=i.U,t.L=i=s.R,s.R=o,o.U=s):(s.U=t,t=s,i=s.R)):(l=i.C,i=s),i&&(i.U=t),!l){if(i&&i.C)return void(i.C=!1);do{if(i===this._)break;if(i===t.L){if((n=t.R).C&&(n.C=!1,t.C=!0,w1(this,t),n=t.R),n.L&&n.L.C||n.R&&n.R.C){(!n.R||!n.R.C)&&(n.L.C=!1,n.C=!0,x1(this,n),n=t.R),n.C=t.C,t.C=n.R.C=!1,w1(this,t),i=this._;break}}else if((n=t.L).C&&(n.C=!1,t.C=!0,x1(this,t),n=t.L),n.L&&n.L.C||n.R&&n.R.C){(!n.L||!n.L.C)&&(n.R.C=!1,n.C=!0,w1(this,n),n=t.L),n.C=t.C,t.C=n.L.C=!1,x1(this,t),i=this._;break}n.C=!0,i=t,t=t.U}while(!i.C);i&&(i.C=!1)}}};var hH=LZ;function E1(r,i,t,n){var a=[null,null],o=Rs.push(a)-1;return a.left=r,a.right=i,t&&lA(a,r,i,t),n&&lA(a,i,r,n),tu[r.index].halfedges.push(o),tu[i.index].halfedges.push(o),a}function M1(r,i,t){var n=[i,t];return n.left=r,n}function lA(r,i,t,n){r[0]||r[1]?r.left===t?r[1]=n:r[0]=n:(r[0]=n,r.left=i,r.right=t)}function _ne(r,i,t,n,a){var te,o=r[0],s=r[1],l=o[0],d=o[1],P=0,N=1,q=s[0]-l,Q=s[1]-d;if(te=i-l,q||!(te>0)){if(te/=q,q<0){if(te0){if(te>N)return;te>P&&(P=te)}if(te=n-l,q||!(te<0)){if(te/=q,q<0){if(te>N)return;te>P&&(P=te)}else if(q>0){if(te0)){if(te/=Q,Q<0){if(te0){if(te>N)return;te>P&&(P=te)}if(te=a-d,Q||!(te<0)){if(te/=Q,Q<0){if(te>N)return;te>P&&(P=te)}else if(Q>0){if(te0)&&!(N<1)||(P>0&&(r[0]=[l+P*q,d+P*Q]),N<1&&(r[1]=[l+N*q,d+N*Q])),!0}}}}}function yne(r,i,t,n,a){var o=r[1];if(o)return!0;var te,se,s=r[0],l=r.left,d=r.right,h=l[0],C=l[1],P=d[0],N=d[1],q=(h+P)/2;if(N===C){if(q=n)return;if(h>P){if(s){if(s[1]>=a)return}else s=[q,t];o=[q,a]}else{if(s){if(s[1]1)if(h>P){if(s){if(s[1]>=a)return}else s=[(t-se)/te,t];o=[(a-se)/te,a]}else{if(s){if(s[1]=n)return}else s=[i,te*i+se];o=[n,te*n+se]}else{if(s){if(s[0]=-One)){var q=d*d+h*h,Q=C*C+P*P,te=(P*q-h*Q)/N,se=(d*Q-C*q)/N,Te=vH.pop()||new xne;Te.arc=r,Te.site=a,Te.x=te+s,Te.y=(Te.cy=se+l)+Math.sqrt(te*te+se*se),r.circle=Te;for(var $e=null,ze=A1._;ze;)if(Te.yua)l=l.L;else{if(!((s=i-Dne(l,t))>ua)){o>-ua?(n=l.P,a=l):s>-ua?(n=l,a=l.N):n=a=l;break}if(!l.R){n=l;break}l=l.R}!function(r){tu[r.index]={site:r,halfedges:[]}}(r);var d=_H(r);if(V_.insert(n,d),n||a){if(n===a)return H_(n),a=_H(n.site),V_.insert(d,a),d.edge=a.edge=E1(n.site,d.site),U_(n),void U_(a);if(!a)return void(d.edge=E1(n.site,d.site));H_(n),H_(a);var h=n.site,C=h[0],P=h[1],N=r[0]-C,q=r[1]-P,Q=a.site,te=Q[0]-C,se=Q[1]-P,Te=2*(N*se-q*te),$e=N*N+q*q,ze=te*te+se*se,rt=[(se*$e-q*ze)/Te+C,(N*ze-te*$e)/Te+P];lA(a.edge,h,Q,rt),d.edge=E1(h,r,null,rt),a.edge=E1(r,Q,null,rt),U_(n),U_(a)}}function yH(r,i){var t=r.site,n=t[0],a=t[1],o=a-i;if(!o)return n;var s=r.P;if(!s)return-1/0;var l=(t=s.site)[0],d=t[1],h=d-i;if(!h)return l;var C=l-n,P=1/o-1/h,N=C/h;return P?(-N+Math.sqrt(N*N-2*P*(C*C/(-2*h)-d+h/2+a-o/2)))/P+n:(n+l)/2}function Dne(r,i){var t=r.N;if(t)return yH(t,i);var n=r.site;return n[1]===i?n[0]:1/0}var V_,tu,A1,Rs,ua=1e-6,One=1e-12;function Pne(r,i,t){return(r[0]-t[0])*(i[1]-r[1])-(r[0]-i[0])*(t[1]-r[1])}function Ine(r,i){return i[1]-r[1]||i[0]-r[0]}function UZ(r,i){var n,a,o,t=r.sort(Ine).pop();for(Rs=[],tu=new Array(r.length),V_=new hH,A1=new hH;;)if(o=FZ,t&&(!o||t[1]ua||Math.abs(o[0][1]-o[1][1])>ua)||delete Rs[a]})(s,l,d,h),function(r,i,t,n){var o,s,l,d,h,C,P,N,q,Q,te,se,a=tu.length,Te=!0;for(o=0;oua||Math.abs(se-q)>ua)&&(h.splice(d,0,Rs.push(M1(l,Q,Math.abs(te-r)ua?[r,Math.abs(N-r)ua?[Math.abs(q-n)ua?[t,Math.abs(N-t)ua?[Math.abs(q-i)=l)return null;var h=i-d.site[0],C=t-d.site[1],P=h*h+C*C;do{d=a.cells[o=s],s=null,d.halfedges.forEach(function(N){var q=a.edges[N],Q=q.left;if(Q!==d.site&&Q||(Q=q.right)){var te=i-Q[0],se=t-Q[1],Te=te*te+se*se;Ten?(n+a)/2:Math.min(0,n)||Math.max(0,a),s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s))}function SH(){var C,P,r=Zne,i=Lne,t=Une,n=Fne,a=Bne,o=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],l=250,d=b4,h=Df("start","zoom","end"),N=500,Q=0;function te(it){it.property("__zoom",CH).on("wheel.zoom",Dt).on("mousedown.zoom",St).on("dblclick.zoom",at).filter(a).on("touchstart.zoom",ut).on("touchmove.zoom",Wt).on("touchend.zoom touchcancel.zoom",qt).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function se(it,It){return(It=Math.max(o[0],Math.min(o[1],It)))===it.k?it:new gp(It,it.x,it.y)}function Te(it,It,ln){var mn=It[0]-ln[0]*it.k,Sn=It[1]-ln[1]*it.k;return mn===it.x&&Sn===it.y?it:new gp(it.k,mn,Sn)}function $e(it){return[(+it[0][0]+ +it[1][0])/2,(+it[0][1]+ +it[1][1])/2]}function ze(it,It,ln){it.on("start.zoom",function(){rt(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){rt(this,arguments).end()}).tween("zoom",function(){var mn=this,Sn=arguments,tn=rt(mn,Sn),Xn=i.apply(mn,Sn),fr=ln||$e(Xn),Lr=Math.max(Xn[1][0]-Xn[0][0],Xn[1][1]-Xn[0][1]),tr=mn.__zoom,Jr="function"==typeof It?It.apply(mn,Sn):It,di=d(tr.invert(fr).concat(Lr/tr.k),Jr.invert(fr).concat(Lr/Jr.k));return function(hr){if(1===hr)hr=Jr;else{var Ui=di(hr),Ua=Lr/Ui[2];hr=new gp(Ua,fr[0]-Ui[0]*Ua,fr[1]-Ui[1]*Ua)}tn.zoom(null,hr)}})}function rt(it,It,ln){return!ln&&it.__zooming||new dt(it,It)}function dt(it,It){this.that=it,this.args=It,this.active=0,this.extent=i.apply(it,It),this.taps=0}function Dt(){if(r.apply(this,arguments)){var it=rt(this,arguments),It=this.__zoom,ln=Math.max(o[0],Math.min(o[1],It.k*Math.pow(2,n.apply(this,arguments)))),mn=oo(this);It.k!==ln&&(it.wheel?((it.mouse[0][0]!==mn[0]||it.mouse[0][1]!==mn[1])&&(it.mouse[1]=It.invert(it.mouse[0]=mn)),clearTimeout(it.wheel)):(it.mouse=[mn,It.invert(mn)],Mm(this),it.start()),D1(),it.wheel=setTimeout(Sn,150),it.zoom("mouse",t(Te(se(It,ln),it.mouse[0],it.mouse[1]),it.extent,s)))}function Sn(){it.wheel=null,it.end()}}function St(){if(!P&&r.apply(this,arguments)){var it=rt(this,arguments,!0),It=$r(xn.view).on("mousemove.zoom",tn,!0).on("mouseup.zoom",Xn,!0),ln=oo(this),mn=xn.clientX,Sn=xn.clientY;f_(xn.view),HZ(),it.mouse=[ln,this.__zoom.invert(ln)],Mm(this),it.start()}function tn(){if(D1(),!it.moved){var fr=xn.clientX-mn,Lr=xn.clientY-Sn;it.moved=fr*fr+Lr*Lr>Q}it.zoom("mouse",t(Te(it.that.__zoom,it.mouse[0]=oo(it.that),it.mouse[1]),it.extent,s))}function Xn(){It.on("mousemove.zoom mouseup.zoom",null),h_(xn.view,it.moved),D1(),it.end()}}function at(){if(r.apply(this,arguments)){var it=this.__zoom,It=oo(this),ln=it.invert(It),mn=it.k*(xn.shiftKey?.5:2),Sn=t(Te(se(it,mn),It,ln),i.apply(this,arguments),s);D1(),l>0?$r(this).transition().duration(l).call(ze,Sn,It):$r(this).call(te.transform,Sn)}}function ut(){if(r.apply(this,arguments)){var mn,Sn,tn,Xn,it=xn.touches,It=it.length,ln=rt(this,arguments,xn.changedTouches.length===It);for(HZ(),Sn=0;Sn=0;l--)(s=r[l])&&(o=(a<3?s(o):a>3?s(i,t,o):s(i,t))||o);return a>3&&o&&Object.defineProperty(i,t,o),o}([(0,e.GSi)(),function(r,i){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:paramtypes",[])}()],VZ);var O1=f(46674);function jne(r,i){if(1&r&&(e.O4$(),e.TgZ(0,"linearGradient"),e._UZ(1,"stop",5),e._UZ(2,"stop",6),e.qZA()),2&r){var t=e.oxw(2);e.uIk("id",t.svg.outerLinearGradient.id),e.xp6(1),e.uIk("stop-color",t.svg.outerLinearGradient.colorStop1)("stop-opacity",1),e.xp6(1),e.uIk("stop-color",t.svg.outerLinearGradient.colorStop2)("stop-opacity",1)}}function qne(r,i){if(1&r&&(e.O4$(),e.TgZ(0,"radialGradient"),e._UZ(1,"stop",5),e._UZ(2,"stop",6),e.qZA()),2&r){var t=e.oxw(2);e.uIk("id",t.svg.radialGradient.id),e.xp6(1),e.uIk("stop-color",t.svg.radialGradient.colorStop1)("stop-opacity",1),e.xp6(1),e.uIk("stop-color",t.svg.radialGradient.colorStop2)("stop-opacity",1)}}function zne(r,i){if(1&r&&(e.O4$(),e._UZ(0,"circle")),2&r){var t=e.oxw(3);e.uIk("cx",t.svg.backgroundCircle.cx)("cy",t.svg.backgroundCircle.cy)("r",t.svg.backgroundCircle.r)("fill",t.svg.backgroundCircle.fill)("fill-opacity",t.svg.backgroundCircle.fillOpacity)("stroke",t.svg.backgroundCircle.stroke)("stroke-width",t.svg.backgroundCircle.strokeWidth)}}function Wne(r,i){if(1&r&&(e.O4$(),e._UZ(0,"circle")),2&r){var t=e.oxw(3);e.Q2q("fill","url(#",t.svg.radialGradient.id,")"),e.uIk("cx",t.svg.backgroundCircle.cx)("cy",t.svg.backgroundCircle.cy)("r",t.svg.backgroundCircle.r)("fill-opacity",t.svg.backgroundCircle.fillOpacity)("stroke",t.svg.backgroundCircle.stroke)("stroke-width",t.svg.backgroundCircle.strokeWidth)}}function Gne(r,i){if(1&r&&(e.O4$(),e.ynx(0),e.YNc(1,zne,1,7,"circle",2),e.YNc(2,Wne,1,7,"circle",2),e.BQk()),2&r){var t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!t.options.backgroundGradient),e.xp6(1),e.Q6J("ngIf",t.options.backgroundGradient)}}function Yne(r,i){if(1&r&&(e.O4$(),e._UZ(0,"circle")),2&r){var t=e.oxw(2);e.uIk("cx",t.svg.circle.cx)("cy",t.svg.circle.cy)("r",t.svg.circle.r)("fill",t.svg.circle.fill)("stroke",t.svg.circle.stroke)("stroke-width",t.svg.circle.strokeWidth)}}function Jne(r,i){if(1&r&&(e.O4$(),e._UZ(0,"path")),2&r){var t=e.oxw(3);e.uIk("d",t.svg.path.d)("stroke",t.svg.path.stroke)("stroke-width",t.svg.path.strokeWidth)("stroke-linecap",t.svg.path.strokeLinecap)("fill",t.svg.path.fill)}}function Qne(r,i){if(1&r&&(e.O4$(),e._UZ(0,"path")),2&r){var t=e.oxw(3);e.Q2q("stroke","url(#",t.svg.outerLinearGradient.id,")"),e.uIk("d",t.svg.path.d)("stroke-width",t.svg.path.strokeWidth)("stroke-linecap",t.svg.path.strokeLinecap)("fill",t.svg.path.fill)}}function Kne(r,i){if(1&r&&(e.O4$(),e.ynx(0),e.YNc(1,Jne,1,5,"path",2),e.YNc(2,Qne,1,5,"path",2),e.BQk()),2&r){var t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!t.options.outerStrokeGradient),e.xp6(1),e.Q6J("ngIf",t.options.outerStrokeGradient)}}function Xne(r,i){if(1&r&&(e.O4$(),e.TgZ(0,"tspan"),e._uU(1),e.qZA()),2&r){var t=i.$implicit,n=e.oxw(4);e.uIk("x",n.svg.title.x)("y",n.svg.title.y)("dy",t.dy)("font-size",n.svg.title.fontSize)("font-weight",n.svg.title.fontWeight)("fill",n.svg.title.color),e.xp6(1),e.Oqu(t.span)}}function $ne(r,i){if(1&r&&(e.O4$(),e.ynx(0),e.YNc(1,Xne,2,7,"tspan",8),e.BQk()),2&r){var t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.svg.title.tspans)}}function ere(r,i){if(1&r&&(e.O4$(),e.TgZ(0,"tspan"),e._uU(1),e.qZA()),2&r){var t=e.oxw(3);e.uIk("font-size",t.svg.units.fontSize)("font-weight",t.svg.units.fontWeight)("fill",t.svg.units.color),e.xp6(1),e.Oqu(t.svg.units.text)}}function tre(r,i){if(1&r&&(e.O4$(),e.TgZ(0,"tspan"),e._uU(1),e.qZA()),2&r){var t=i.$implicit,n=e.oxw(4);e.uIk("x",n.svg.subtitle.x)("y",n.svg.subtitle.y)("dy",t.dy)("font-size",n.svg.subtitle.fontSize)("font-weight",n.svg.subtitle.fontWeight)("fill",n.svg.subtitle.color),e.xp6(1),e.Oqu(t.span)}}function nre(r,i){if(1&r&&(e.O4$(),e.ynx(0),e.YNc(1,tre,2,7,"tspan",8),e.BQk()),2&r){var t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.svg.subtitle.tspans)}}function rre(r,i){if(1&r&&(e.O4$(),e.TgZ(0,"text",7),e.YNc(1,$ne,2,1,"ng-container",2),e.YNc(2,ere,2,4,"tspan",2),e.YNc(3,nre,2,1,"ng-container",2),e.qZA()),2&r){var t=e.oxw(2);e.uIk("x",t.svg.circle.cx)("y",t.svg.circle.cy)("text-anchor",t.svg.title.textAnchor),e.xp6(1),e.Q6J("ngIf",t.options.showTitle),e.xp6(1),e.Q6J("ngIf",t.options.showUnits),e.xp6(1),e.Q6J("ngIf",t.options.showSubtitle)}}function ire(r,i){if(1&r&&(e.O4$(),e._UZ(0,"image",9)),2&r){var t=e.oxw(2);e.uIk("height",t.svg.image.height)("width",t.svg.image.width)("href",t.svg.image.src,null,"xlink")("x",t.svg.image.x)("y",t.svg.image.y)}}function are(r,i){if(1&r){var t=e.EpF();e.O4$(),e.TgZ(0,"svg",1),e.NdJ("click",function(o){return e.CHM(t),e.oxw().emitClickEvent(o)}),e.TgZ(1,"defs"),e.YNc(2,jne,3,5,"linearGradient",2),e.YNc(3,qne,3,5,"radialGradient",2),e.qZA(),e.YNc(4,Gne,3,2,"ng-container",2),e.YNc(5,Yne,1,6,"circle",2),e.YNc(6,Kne,3,2,"ng-container",2),e.YNc(7,rre,4,6,"text",3),e.YNc(8,ire,1,5,"image",4),e.qZA()}if(2&r){var n=e.oxw();e.uIk("viewBox",n.svg.viewBox)("height",n.svg.height)("width",n.svg.width)("class",n.options.class),e.xp6(2),e.Q6J("ngIf",n.options.outerStrokeGradient),e.xp6(1),e.Q6J("ngIf",n.options.backgroundGradient),e.xp6(1),e.Q6J("ngIf",n.options.showBackground),e.xp6(1),e.Q6J("ngIf",n.options.showInnerStroke),e.xp6(1),e.Q6J("ngIf",0!=+n.options.percent||n.options.showZeroOuterStroke),e.xp6(1),e.Q6J("ngIf",!n.options.showImage&&(n.options.showTitle||n.options.showUnits||n.options.showSubtitle)),e.xp6(1),e.Q6J("ngIf",n.options.showImage)}}var r,dA=function r(){(0,v.Z)(this,r),this.class="",this.backgroundGradient=!1,this.backgroundColor="transparent",this.backgroundGradientStopColor="transparent",this.backgroundOpacity=1,this.backgroundStroke="transparent",this.backgroundStrokeWidth=0,this.backgroundPadding=5,this.percent=0,this.radius=90,this.space=4,this.toFixed=0,this.maxPercent=1e3,this.renderOnClick=!0,this.units="%",this.unitsFontSize="10",this.unitsFontWeight="normal",this.unitsColor="#444444",this.outerStrokeGradient=!1,this.outerStrokeWidth=8,this.outerStrokeColor="#78C000",this.outerStrokeGradientStopColor="transparent",this.outerStrokeLinecap="round",this.innerStrokeColor="#C7E596",this.innerStrokeWidth=4,this.titleFormat=void 0,this.title="auto",this.titleColor="#444444",this.titleFontSize="20",this.titleFontWeight="normal",this.subtitleFormat=void 0,this.subtitle="progress",this.subtitleColor="#A9A9A9",this.subtitleFontSize="10",this.subtitleFontWeight="normal",this.imageSrc=void 0,this.imageHeight=void 0,this.imageWidth=void 0,this.animation=!0,this.animateTitle=!0,this.animateSubtitle=!1,this.animationDuration=500,this.showTitle=!0,this.showSubtitle=!0,this.showUnits=!0,this.showImage=!1,this.showBackground=!0,this.showInnerStroke=!0,this.clockwise=!0,this.responsive=!1,this.startFromZero=!0,this.showZeroOuterStroke=!0,this.lazy=!1},ore=function(){var r=function(){function i(t,n,a){var o=this;(0,v.Z)(this,i),this.elRef=n,this.document=a,this.onClick=new e.vpe,this.svgElement=null,this.isInViewport=!1,this.onViewportChanged=new e.vpe,this._viewportChangedSubscriber=null,this.options=new dA,this.defaultOptions=new dA,this._lastPercent=0,this._gradientUUID=null,this.render=function(){o.applyOptions(),o.options.lazy?(null===o.svgElement&&o.draw(o._lastPercent),o.isInViewport&&(o.options.animation&&o.options.animationDuration>0?o.animate(o._lastPercent,o.options.percent):o.draw(o.options.percent),o._lastPercent=o.options.percent)):(o.options.animation&&o.options.animationDuration>0?o.animate(o._lastPercent,o.options.percent):o.draw(o.options.percent),o._lastPercent=o.options.percent)},this.polarToCartesian=function(s,l,d,h){var C=h*Math.PI/180;return{x:s+Math.sin(C)*d,y:l-Math.cos(C)*d}},this.draw=function(s){var l=(s=void 0===s?o.options.percent:Math.abs(s))>100?100:s,d=2*o.options.radius+2*o.options.outerStrokeWidth;o.options.showBackground&&(d+=2*o.options.backgroundStrokeWidth+o.max(0,2*o.options.backgroundPadding));var N,q,h={x:d/2,y:d/2},C={x:h.x,y:h.y-o.options.radius},P=o.polarToCartesian(h.x,h.y,o.options.radius,360*(o.options.clockwise?l:100-l)/100);if(100===l&&(P.x=P.x+(o.options.clockwise?-.01:.01)),l>50){var te=(0,b.Z)(o.options.clockwise?[1,1]:[1,0],2);N=te[0],q=te[1]}else{var Te=(0,b.Z)(o.options.clockwise?[0,1]:[0,0],2);N=Te[0],q=Te[1]}var $e=o.options.animateTitle?s:o.options.percent,ze=$e>o.options.maxPercent?"".concat(o.options.maxPercent.toFixed(o.options.toFixed),"+"):$e.toFixed(o.options.toFixed),rt=o.options.animateSubtitle?s:o.options.percent,dt={x:h.x,y:h.y,textAnchor:"middle",color:o.options.titleColor,fontSize:o.options.titleFontSize,fontWeight:o.options.titleFontWeight,texts:[],tspans:[]};if(void 0!==o.options.titleFormat&&"Function"===o.options.titleFormat.constructor.name){var Dt=o.options.titleFormat($e);Dt instanceof Array?dt.texts=(0,T.Z)(Dt):dt.texts.push(Dt.toString())}else"auto"===o.options.title?dt.texts.push(ze):o.options.title instanceof Array?dt.texts=(0,T.Z)(o.options.title):dt.texts.push(o.options.title.toString());var St={x:h.x,y:h.y,textAnchor:"middle",color:o.options.subtitleColor,fontSize:o.options.subtitleFontSize,fontWeight:o.options.subtitleFontWeight,texts:[],tspans:[]};if(void 0!==o.options.subtitleFormat&&"Function"===o.options.subtitleFormat.constructor.name){var at=o.options.subtitleFormat(rt);at instanceof Array?St.texts=(0,T.Z)(at):St.texts.push(at.toString())}else o.options.subtitle instanceof Array?St.texts=(0,T.Z)(o.options.subtitle):St.texts.push(o.options.subtitle.toString());var ut={text:"".concat(o.options.units),fontSize:o.options.unitsFontSize,fontWeight:o.options.unitsFontWeight,color:o.options.unitsColor},Wt=0,qt=1;if(o.options.showTitle&&(Wt+=dt.texts.length),o.options.showSubtitle&&(Wt+=St.texts.length),o.options.showTitle){var It,it=(0,E.Z)(dt.texts);try{for(it.s();!(It=it.n()).done;)dt.tspans.push({span:It.value,dy:o.getRelativeY(qt,Wt)}),qt++}catch(Xn){it.e(Xn)}finally{it.f()}}if(o.options.showSubtitle){var Sn,mn=(0,E.Z)(St.texts);try{for(mn.s();!(Sn=mn.n()).done;)St.tspans.push({span:Sn.value,dy:o.getRelativeY(qt,Wt)}),qt++}catch(Xn){mn.e(Xn)}finally{mn.f()}}null===o._gradientUUID&&(o._gradientUUID=o.uuid()),o.svg={viewBox:"0 0 ".concat(d," ").concat(d),width:o.options.responsive?"100%":d,height:o.options.responsive?"100%":d,backgroundCircle:{cx:h.x,cy:h.y,r:o.options.radius+o.options.outerStrokeWidth/2+o.options.backgroundPadding,fill:o.options.backgroundColor,fillOpacity:o.options.backgroundOpacity,stroke:o.options.backgroundStroke,strokeWidth:o.options.backgroundStrokeWidth},path:{d:"M ".concat(C.x," ").concat(C.y,"\n A ").concat(o.options.radius," ").concat(o.options.radius," 0 ").concat(N," ").concat(q," ").concat(P.x," ").concat(P.y),stroke:o.options.outerStrokeColor,strokeWidth:o.options.outerStrokeWidth,strokeLinecap:o.options.outerStrokeLinecap,fill:"none"},circle:{cx:h.x,cy:h.y,r:o.options.radius-o.options.space-o.options.outerStrokeWidth/2-o.options.innerStrokeWidth/2,fill:"none",stroke:o.options.innerStrokeColor,strokeWidth:o.options.innerStrokeWidth},title:dt,units:ut,subtitle:St,image:{x:h.x-o.options.imageWidth/2,y:h.y-o.options.imageHeight/2,src:o.options.imageSrc,width:o.options.imageWidth,height:o.options.imageHeight},outerLinearGradient:{id:"outer-linear-"+o._gradientUUID,colorStop1:o.options.outerStrokeColor,colorStop2:"transparent"===o.options.outerStrokeGradientStopColor?"#FFF":o.options.outerStrokeGradientStopColor},radialGradient:{id:"radial-"+o._gradientUUID,colorStop1:o.options.backgroundColor,colorStop2:"transparent"===o.options.backgroundGradientStopColor?"#FFF":o.options.backgroundGradientStopColor}}},this.getAnimationParameters=function(s,l){var h,C,P,N=o.options.startFromZero||s<0?0:s,q=l<0?0:o.min(l,o.options.maxPercent),Q=Math.abs(Math.round(q-N));return Q>=100?(h=100,C=o.options.animateTitle||o.options.animateSubtitle?Math.round(Q/h):1):(h=Q,C=1),(P=Math.round(o.options.animationDuration/h))<10&&(h=o.options.animationDuration/(P=10),C=!o.options.animateTitle&&!o.options.animateSubtitle&&Q>100?Math.round(100/h):Math.round(Q/h)),C<1&&(C=1),{times:h,step:C,interval:P}},this.animate=function(s,l){o._timerSubscription&&!o._timerSubscription.closed&&o._timerSubscription.unsubscribe();var d=o.options.startFromZero?0:s,h=l,C=o.getAnimationParameters(d,h),P=C.step,N=C.interval,q=d;o._timerSubscription=d=100?(o.draw(h),o._timerSubscription.unsubscribe()):o.draw(q):(o.draw(h),o._timerSubscription.unsubscribe())}):(0,O1.H)(0,N).subscribe(function(){(q-=P)>=h?!o.options.animateTitle&&!o.options.animateSubtitle&&h>=100?(o.draw(h),o._timerSubscription.unsubscribe()):o.draw(q):(o.draw(h),o._timerSubscription.unsubscribe())})},this.emitClickEvent=function(s){o.options.renderOnClick&&o.animate(0,o.options.percent),o.onClick.emit(s)},this.applyOptions=function(){for(var s=0,l=Object.keys(o.options);s0?+o.options.percent:0,o.options.maxPercent=Math.abs(+o.options.maxPercent),o.options.animationDuration=Math.abs(o.options.animationDuration),o.options.outerStrokeWidth=Math.abs(+o.options.outerStrokeWidth),o.options.innerStrokeWidth=Math.abs(+o.options.innerStrokeWidth),o.options.backgroundPadding=+o.options.backgroundPadding},this.getRelativeY=function(s,l){return(1*(s-l/2)-.18).toFixed(2)+"em"},this.min=function(s,l){return sl?s:l},this.uuid=function(){var s=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(d){var h=(s+16*Math.random())%16|0;return s=Math.floor(s/16),("x"==d?h:3&h|8).toString(16)})},this.findSvgElement=function(){if(null===this.svgElement){var s=this.elRef.nativeElement.getElementsByTagName("svg");s.length>0&&(this.svgElement=s[0])}},this.checkViewport=function(){o.findSvgElement();var s=o.isInViewport;o.isInViewport=o.isElementInViewport(o.svgElement),s!==o.isInViewport&&o.onViewportChanged.emit({oldValue:s,newValue:o.isInViewport})},this.onScroll=function(s){o.checkViewport()},this.loadEventsForLazyMode=function(){if(o.options.lazy){o.document.addEventListener("scroll",o.onScroll,!0),o.window.addEventListener("resize",o.onScroll,!0),null===o._viewportChangedSubscriber&&(o._viewportChangedSubscriber=o.onViewportChanged.subscribe(function(l){l.newValue&&o.render()}));var s=(0,O1.H)(0,50).subscribe(function(){null===o.svgElement?o.checkViewport():s.unsubscribe()})}},this.unloadEventsForLazyMode=function(){o.document.removeEventListener("scroll",o.onScroll,!0),o.window.removeEventListener("resize",o.onScroll,!0),null!==o._viewportChangedSubscriber&&(o._viewportChangedSubscriber.unsubscribe(),o._viewportChangedSubscriber=null)},this.document=a,this.window=this.document.defaultView,Object.assign(this.options,t),Object.assign(this.defaultOptions,t)}return(0,g.Z)(i,[{key:"isDrawing",value:function(){return this._timerSubscription&&!this._timerSubscription.closed}},{key:"isElementInViewport",value:function(n){if(null==n)return!1;var s,a=n.getBoundingClientRect(),o=n.parentNode;do{if(s=o.getBoundingClientRect(),a.top>=s.bottom||a.bottom<=s.top||a.left>=s.right||a.right<=s.left)return!1;o=o.parentNode}while(o!=this.document.body);return!(a.top>=(this.window.innerHeight||this.document.documentElement.clientHeight)||a.bottom<=0||a.left>=(this.window.innerWidth||this.document.documentElement.clientWidth)||a.right<=0)}},{key:"ngOnInit",value:function(){this.loadEventsForLazyMode()}},{key:"ngOnDestroy",value:function(){this.unloadEventsForLazyMode()}},{key:"ngOnChanges",value:function(n){this.render(),"lazy"in n&&(n.lazy.currentValue?this.loadEventsForLazyMode():this.unloadEventsForLazyMode())}}]),i}();return r.\u0275fac=function(t){return new(t||r)(e.Y36(dA),e.Y36(e.SBq),e.Y36(Pt.K0))},r.\u0275cmp=e.Xpm({type:r,selectors:[["circle-progress"]],inputs:{name:"name",class:"class",backgroundGradient:"backgroundGradient",backgroundColor:"backgroundColor",backgroundGradientStopColor:"backgroundGradientStopColor",backgroundOpacity:"backgroundOpacity",backgroundStroke:"backgroundStroke",backgroundStrokeWidth:"backgroundStrokeWidth",backgroundPadding:"backgroundPadding",radius:"radius",space:"space",percent:"percent",toFixed:"toFixed",maxPercent:"maxPercent",renderOnClick:"renderOnClick",units:"units",unitsFontSize:"unitsFontSize",unitsFontWeight:"unitsFontWeight",unitsColor:"unitsColor",outerStrokeGradient:"outerStrokeGradient",outerStrokeWidth:"outerStrokeWidth",outerStrokeColor:"outerStrokeColor",outerStrokeGradientStopColor:"outerStrokeGradientStopColor",outerStrokeLinecap:"outerStrokeLinecap",innerStrokeColor:"innerStrokeColor",innerStrokeWidth:"innerStrokeWidth",titleFormat:"titleFormat",title:"title",titleColor:"titleColor",titleFontSize:"titleFontSize",titleFontWeight:"titleFontWeight",subtitleFormat:"subtitleFormat",subtitle:"subtitle",subtitleColor:"subtitleColor",subtitleFontSize:"subtitleFontSize",subtitleFontWeight:"subtitleFontWeight",imageSrc:"imageSrc",imageHeight:"imageHeight",imageWidth:"imageWidth",animation:"animation",animateTitle:"animateTitle",animateSubtitle:"animateSubtitle",animationDuration:"animationDuration",showTitle:"showTitle",showSubtitle:"showSubtitle",showUnits:"showUnits",showImage:"showImage",showBackground:"showBackground",showInnerStroke:"showInnerStroke",clockwise:"clockwise",responsive:"responsive",startFromZero:"startFromZero",showZeroOuterStroke:"showZeroOuterStroke",lazy:"lazy",templateOptions:["options","templateOptions"]},outputs:{onClick:"onClick"},features:[e.TTD],decls:1,vars:1,consts:[["xmlns","http://www.w3.org/2000/svg","preserveAspectRatio","xMidYMid meet",3,"click",4,"ngIf"],["xmlns","http://www.w3.org/2000/svg","preserveAspectRatio","xMidYMid meet",3,"click"],[4,"ngIf"],["alignment-baseline","baseline",4,"ngIf"],["preserveAspectRatio","none",4,"ngIf"],["offset","5%"],["offset","95%"],["alignment-baseline","baseline"],[4,"ngFor","ngForOf"],["preserveAspectRatio","none"]],template:function(t,n){1&t&&e.YNc(0,are,9,11,"svg",0),2&t&&e.Q6J("ngIf",n.svg)},directives:[Pt.O5,Pt.sg],encapsulation:2}),r}(),sre=function(){var r=function(){function i(){(0,v.Z)(this,i)}return(0,g.Z)(i,null,[{key:"forRoot",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:i,providers:[{provide:dA,useValue:n}]}}}]),i}();return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[[Pt.ez]]}),r}(),jZ=function(){function r(i){(0,v.Z)(this,r),this.rawFile=i;var t=function(r){return!(!r||!(r.nodeName||r.prop&&r.attr&&r.find))}(i),n=t?i.value:i;this["_createFrom"+("string"==typeof n?"FakePath":"Object")](n)}return(0,g.Z)(r,[{key:"_createFromFakePath",value:function(t){this.lastModifiedDate=void 0,this.size=void 0,this.type="like/"+t.slice(t.lastIndexOf(".")+1).toLowerCase(),this.name=t.slice(t.lastIndexOf("/")+t.lastIndexOf("\\")+2)}},{key:"_createFromObject",value:function(t){this.size=t.size,this.type=t.type,this.name=t.name}}]),r}(),ure=function(){function r(i,t,n){(0,v.Z)(this,r),this.url="/",this.headers=[],this.withCredentials=!0,this.formData=[],this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.index=void 0,this.uploader=i,this.some=t,this.options=n,this.file=new jZ(t),this._file=t,i.options&&(this.method=i.options.method||"POST",this.alias=i.options.itemAlias||"file"),this.url=i.options.url}return(0,g.Z)(r,[{key:"upload",value:function(){try{this.uploader.uploadItem(this)}catch(t){this.uploader._onCompleteItem(this,"",0,{}),this.uploader._onErrorItem(this,"",0,{})}}},{key:"cancel",value:function(){this.uploader.cancelItem(this)}},{key:"remove",value:function(){this.uploader.removeFromQueue(this)}},{key:"onBeforeUpload",value:function(){}},{key:"onBuildForm",value:function(t){return{form:t}}},{key:"onProgress",value:function(t){return{progress:t}}},{key:"onSuccess",value:function(t,n,a){return{response:t,status:n,headers:a}}},{key:"onError",value:function(t,n,a){return{response:t,status:n,headers:a}}},{key:"onCancel",value:function(t,n,a){return{response:t,status:n,headers:a}}},{key:"onComplete",value:function(t,n,a){return{response:t,status:n,headers:a}}},{key:"_onBeforeUpload",value:function(){this.isReady=!0,this.isUploading=!0,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.onBeforeUpload()}},{key:"_onBuildForm",value:function(t){this.onBuildForm(t)}},{key:"_onProgress",value:function(t){this.progress=t,this.onProgress(t)}},{key:"_onSuccess",value:function(t,n,a){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!0,this.isCancel=!1,this.isError=!1,this.progress=100,this.index=void 0,this.onSuccess(t,n,a)}},{key:"_onError",value:function(t,n,a){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!1,this.isCancel=!1,this.isError=!0,this.progress=0,this.index=void 0,this.onError(t,n,a)}},{key:"_onCancel",value:function(t,n,a){this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!0,this.isError=!1,this.progress=0,this.index=void 0,this.onCancel(t,n,a)}},{key:"_onComplete",value:function(t,n,a){this.onComplete(t,n,a),this.uploader.options.removeAfterUpload&&this.remove()}},{key:"_prepareToUploading",value:function(){this.index=this.index||++this.uploader._nextIndex,this.isReady=!0}}]),r}(),cre=function(){var r=function(){function i(){(0,v.Z)(this,i)}return(0,g.Z)(i,null,[{key:"getMimeClass",value:function(n){var a="application";return-1!==this.mime_psd.indexOf(n.type)||n.type.match("image.*")?a="image":n.type.match("video.*")?a="video":n.type.match("audio.*")?a="audio":"application/pdf"===n.type?a="pdf":-1!==this.mime_compress.indexOf(n.type)?a="compress":-1!==this.mime_doc.indexOf(n.type)?a="doc":-1!==this.mime_xsl.indexOf(n.type)?a="xls":-1!==this.mime_ppt.indexOf(n.type)&&(a="ppt"),"application"===a&&(a=this.fileTypeDetection(n.name)),a}},{key:"fileTypeDetection",value:function(n){var a={jpg:"image",jpeg:"image",tif:"image",psd:"image",bmp:"image",png:"image",nef:"image",tiff:"image",cr2:"image",dwg:"image",cdr:"image",ai:"image",indd:"image",pin:"image",cdp:"image",skp:"image",stp:"image","3dm":"image",mp3:"audio",wav:"audio",wma:"audio",mod:"audio",m4a:"audio",compress:"compress",zip:"compress",rar:"compress","7z":"compress",lz:"compress",z01:"compress",bz2:"compress",gz:"compress",pdf:"pdf",xls:"xls",xlsx:"xls",ods:"xls",mp4:"video",avi:"video",wmv:"video",mpg:"video",mts:"video",flv:"video","3gp":"video",vob:"video",m4v:"video",mpeg:"video",m2ts:"video",mov:"video",doc:"doc",docx:"doc",eps:"doc",txt:"doc",odt:"doc",rtf:"doc",ppt:"ppt",pptx:"ppt",pps:"ppt",ppsx:"ppt",odp:"ppt"},o=n.split(".");if(o.length<2)return"application";var s=o[o.length-1].toLowerCase();return void 0===a[s]?"application":a[s]}}]),i}();return r.mime_doc=["application/msword","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/vnd.ms-word.document.macroEnabled.12","application/vnd.ms-word.template.macroEnabled.12"],r.mime_xsl=["application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/vnd.ms-excel.sheet.macroEnabled.12","application/vnd.ms-excel.template.macroEnabled.12","application/vnd.ms-excel.addin.macroEnabled.12","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],r.mime_ppt=["application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.presentationml.template","application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/vnd.ms-powerpoint.addin.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],r.mime_psd=["image/photoshop","image/x-photoshop","image/psd","application/photoshop","application/psd","zz-application/zz-winassoc-psd"],r.mime_compress=["application/x-gtar","application/x-gcompress","application/compress","application/x-tar","application/x-rar-compressed","application/octet-stream","application/x-zip-compressed","application/zip-compressed","application/x-7z-compressed","application/gzip","application/x-bzip2"],r}(),qm=function(){function r(i){(0,v.Z)(this,r),this.isUploading=!1,this.queue=[],this.progress=0,this._nextIndex=0,this.options={autoUpload:!1,isHTML5:!0,filters:[],removeAfterUpload:!1,disableMultipart:!1,formatDataFunction:function(n){return n._file},formatDataFunctionIsAsync:!1},this.setOptions(i),this.response=new e.vpe}return(0,g.Z)(r,[{key:"setOptions",value:function(t){this.options=Object.assign(this.options,t),this.authToken=this.options.authToken,this.authTokenHeader=this.options.authTokenHeader||"Authorization",this.autoUpload=this.options.autoUpload,this.options.filters.unshift({name:"queueLimit",fn:this._queueLimitFilter}),this.options.maxFileSize&&this.options.filters.unshift({name:"fileSize",fn:this._fileSizeFilter}),this.options.allowedFileType&&this.options.filters.unshift({name:"fileType",fn:this._fileTypeFilter}),this.options.allowedMimeType&&this.options.filters.unshift({name:"mimeType",fn:this._mimeTypeFilter});for(var n=0;nthis.options.maxFileSize)}},{key:"_fileTypeFilter",value:function(t){return!(this.options.allowedFileType&&-1===this.options.allowedFileType.indexOf(cre.getMimeClass(t)))}},{key:"_onErrorItem",value:function(t,n,a,o){t._onError(n,a,o),this.onErrorItem(t,n,a,o)}},{key:"_onCompleteItem",value:function(t,n,a,o){t._onComplete(n,a,o),this.onCompleteItem(t,n,a,o);var s=this.getReadyItems()[0];this.isUploading=!1,s?s.upload():(this.onCompleteAll(),this.progress=this._getTotalProgress(),this._render())}},{key:"_headersGetter",value:function(t){return function(n){return n?t[n.toLowerCase()]||void 0:t}}},{key:"_xhrTransport",value:function(t){var s,n=this,a=this,o=t._xhr=new XMLHttpRequest;if(this._onBeforeUploadItem(t),"number"!=typeof t._file.size)throw new TypeError("The file specified is no longer valid");if(this.options.disableMultipart)s=this.options.formatDataFunction(t);else{s=new FormData,this._onBuildItemForm(t,s);var l=function(){return s.append(t.alias,t._file,t.file.name)};this.options.parametersBeforeFiles||l(),void 0!==this.options.additionalParameter&&Object.keys(this.options.additionalParameter).forEach(function(Q){var te=n.options.additionalParameter[Q];"string"==typeof te&&te.indexOf("{{file_name}}")>=0&&(te=te.replace("{{file_name}}",t.file.name)),s.append(Q,te)}),this.options.parametersBeforeFiles&&l()}if(o.upload.onprogress=function(Q){var te=Math.round(Q.lengthComputable?100*Q.loaded/Q.total:0);n._onProgressItem(t,te)},o.onload=function(){var Q=n._parseHeaders(o.getAllResponseHeaders()),te=n._transformResponse(o.response,Q),se=n._isSuccessCode(o.status)?"Success":"Error";n["_on"+se+"Item"](t,te,o.status,Q),n._onCompleteItem(t,te,o.status,Q)},o.onerror=function(){var Q=n._parseHeaders(o.getAllResponseHeaders()),te=n._transformResponse(o.response,Q);n._onErrorItem(t,te,o.status,Q),n._onCompleteItem(t,te,o.status,Q)},o.onabort=function(){var Q=n._parseHeaders(o.getAllResponseHeaders()),te=n._transformResponse(o.response,Q);n._onCancelItem(t,te,o.status,Q),n._onCompleteItem(t,te,o.status,Q)},o.open(t.method,t.url,!0),o.withCredentials=t.withCredentials,this.options.headers){var h,d=(0,E.Z)(this.options.headers);try{for(d.s();!(h=d.n()).done;){var C=h.value;o.setRequestHeader(C.name,C.value)}}catch(Q){d.e(Q)}finally{d.f()}}if(t.headers.length){var N,P=(0,E.Z)(t.headers);try{for(P.s();!(N=P.n()).done;){var q=N.value;o.setRequestHeader(q.name,q.value)}}catch(Q){P.e(Q)}finally{P.f()}}this.authToken&&o.setRequestHeader(this.authTokenHeader,this.authToken),o.onreadystatechange=function(){o.readyState==XMLHttpRequest.DONE&&a.response.emit(o.responseText)},this.options.formatDataFunctionIsAsync?s.then(function(Q){return o.send(JSON.stringify(Q))}):o.send(s),this._render()}},{key:"_getTotalProgress",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.options.removeAfterUpload)return t;var n=this.getNotUploadedItems().length,a=n?this.queue.length-n:this.queue.length,o=100/this.queue.length,s=t*o/100;return Math.round(a*o+s)}},{key:"_getFilters",value:function(t){if(!t)return this.options.filters;if(Array.isArray(t))return t;if("string"==typeof t){var n=t.match(/[^\s,]+/g);return this.options.filters.filter(function(a){return-1!==n.indexOf(a.name)})}return this.options.filters}},{key:"_render",value:function(){}},{key:"_queueLimitFilter",value:function(){return void 0===this.options.queueLimit||this.queue.length=200&&t<300||304===t}},{key:"_transformResponse",value:function(t,n){return t}},{key:"_parseHeaders",value:function(t){var a,o,s,n={};return t&&t.split("\n").map(function(l){s=l.indexOf(":"),a=l.slice(0,s).trim().toLowerCase(),o=l.slice(s+1).trim(),a&&(n[a]=n[a]?n[a]+", "+o:o)}),n}},{key:"_onWhenAddingFileFailed",value:function(t,n,a){this.onWhenAddingFileFailed(t,n,a)}},{key:"_onAfterAddingFile",value:function(t){this.onAfterAddingFile(t)}},{key:"_onAfterAddingAll",value:function(t){this.onAfterAddingAll(t)}},{key:"_onBeforeUploadItem",value:function(t){t._onBeforeUpload(),this.onBeforeUploadItem(t)}},{key:"_onBuildItemForm",value:function(t,n){t._onBuildForm(n),this.onBuildItemForm(t,n)}},{key:"_onProgressItem",value:function(t,n){var a=this._getTotalProgress(n);this.progress=a,t._onProgress(n),this.onProgressItem(t,n),this.onProgressAll(a),this._render()}},{key:"_onSuccessItem",value:function(t,n,a,o){t._onSuccess(n,a,o),this.onSuccessItem(t,n,a,o)}},{key:"_onCancelItem",value:function(t,n,a,o){t._onCancel(n,a,o),this.onCancelItem(t,n,a,o)}}]),r}(),P1=function(){var r=function(){function i(t){(0,v.Z)(this,i),this.onFileSelected=new e.vpe,this.element=t}return(0,g.Z)(i,[{key:"getOptions",value:function(){return this.uploader.options}},{key:"getFilters",value:function(){return{}}},{key:"isEmptyAfterSelection",value:function(){return!!this.element.nativeElement.attributes.multiple}},{key:"onChange",value:function(){var n=this.element.nativeElement.files,a=this.getOptions(),o=this.getFilters();this.uploader.addToQueue(n,a,o),this.onFileSelected.emit(n),this.isEmptyAfterSelection()&&(this.element.nativeElement.value="")}}]),i}();return r.\u0275fac=function(t){return new(t||r)(e.Y36(e.SBq))},r.\u0275dir=e.lG2({type:r,selectors:[["","ng2FileSelect",""]],hostBindings:function(t,n){1&t&&e.NdJ("change",function(){return n.onChange()})},inputs:{uploader:"uploader"},outputs:{onFileSelected:"onFileSelected"}}),r}(),pre=function(){var r=function i(){(0,v.Z)(this,i)};return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[[Pt.ez]]}),r}(),qZ=function(){function r(){}return Object.defineProperty(r.prototype,"child_process",{get:function(){return this._child_process||(this._child_process=window.require?window.require("child_process"):null),this._child_process},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isElectronApp",{get:function(){return!!window.navigator.userAgent.match(/Electron/)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"childProcess",{get:function(){return this.child_process?this.child_process:null},enumerable:!0,configurable:!0}),r}(),fre=(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,t){i.__proto__=t}||function(i,t){for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n])},function(i,t){function n(){this.constructor=i}r(i,t),i.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),TH=function(r){function i(){return r.call(this)||this}return fre(i,r),i.\u0275fac=function(n){return new(n||i)},i.\u0275prov=e.Yz7({token:i,factory:function(n){return i.\u0275fac(n)}}),i}(qZ);TH.ctorParameters=function(){return[]};var kH=function(){function r(){}return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({providers:[{provide:qZ,useClass:TH}]}),r}();kH.ctorParameters=function(){return[]};var gs=function(){function r(){(0,v.Z)(this,r)}return(0,g.Z)(r,[{key:"electron",get:function(){return this._electron?this._electron:window&&window.require?(this._electron=window.require("electron"),this._electron):null}},{key:"isElectronApp",get:function(){return!!window.navigator.userAgent.match(/Electron/)}},{key:"isMacOS",get:function(){return this.isElectronApp&&"darwin"===process.platform}},{key:"isWindows",get:function(){return this.isElectronApp&&"win32"===process.platform}},{key:"isLinux",get:function(){return this.isElectronApp&&"linux"===process.platform}},{key:"isX86",get:function(){return this.isElectronApp&&"ia32"===process.arch}},{key:"isX64",get:function(){return this.isElectronApp&&"x64"===process.arch}},{key:"isArm",get:function(){return this.isElectronApp&&"arm"===process.arch}},{key:"desktopCapturer",get:function(){return this.electron?this.electron.desktopCapturer:null}},{key:"ipcRenderer",get:function(){return this.electron?this.electron.ipcRenderer:null}},{key:"remote",get:function(){return this.electron?this.electron.remote:null}},{key:"webFrame",get:function(){return this.electron?this.electron.webFrame:null}},{key:"clipboard",get:function(){return this.electron?this.electron.clipboard:null}},{key:"crashReporter",get:function(){return this.electron?this.electron.crashReporter:null}},{key:"process",get:function(){return this.remote?this.remote.process:null}},{key:"nativeImage",get:function(){return this.electron?this.electron.nativeImage:null}},{key:"screen",get:function(){return this.electron?this.remote.screen:null}},{key:"shell",get:function(){return this.electron?this.electron.shell:null}}]),r}(),hre=function(){var r=function(i){(0,O.Z)(n,i);var t=(0,y.Z)(n);function n(){return(0,v.Z)(this,n),t.call(this)}return n}(gs);return r.\u0275fac=function(t){return new(t||r)},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r}(),mre=function(){var r=function i(){(0,v.Z)(this,i)};return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({providers:[{provide:gs,useClass:hre}]}),r}(),I1=f(88009),vre=f(15449),wH=f(60636),zZ=f(19770),zm=f(5441),gre=f(96705),Ou=f(7060),xH=f(73062),jf=f(67254),R1=f(30854),_re=f(23414),j_=f(64187),Ns=f(24305),yre=f(56866),EH=f(30366),WZ=f(76955),_p=function r(i,t){(0,v.Z)(this,r),this.id=i,this.url=t},pA=function(r){(0,O.Z)(t,r);var i=(0,y.Z)(t);function t(n,a){var o,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,v.Z)(this,t),(o=i.call(this,n,a)).navigationTrigger=s,o.restoredState=l,o}return(0,g.Z)(t,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(_p),Wm=function(r){(0,O.Z)(t,r);var i=(0,y.Z)(t);function t(n,a,o){var s;return(0,v.Z)(this,t),(s=i.call(this,n,a)).urlAfterRedirects=o,s}return(0,g.Z)(t,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),t}(_p),GZ=function(r){(0,O.Z)(t,r);var i=(0,y.Z)(t);function t(n,a,o){var s;return(0,v.Z)(this,t),(s=i.call(this,n,a)).reason=o,s}return(0,g.Z)(t,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(_p),MH=function(r){(0,O.Z)(t,r);var i=(0,y.Z)(t);function t(n,a,o){var s;return(0,v.Z)(this,t),(s=i.call(this,n,a)).error=o,s}return(0,g.Z)(t,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),t}(_p),bre=function(r){(0,O.Z)(t,r);var i=(0,y.Z)(t);function t(n,a,o,s){var l;return(0,v.Z)(this,t),(l=i.call(this,n,a)).urlAfterRedirects=o,l.state=s,l}return(0,g.Z)(t,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(_p),Cre=function(r){(0,O.Z)(t,r);var i=(0,y.Z)(t);function t(n,a,o,s){var l;return(0,v.Z)(this,t),(l=i.call(this,n,a)).urlAfterRedirects=o,l.state=s,l}return(0,g.Z)(t,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(_p),Sre=function(r){(0,O.Z)(t,r);var i=(0,y.Z)(t);function t(n,a,o,s,l){var d;return(0,v.Z)(this,t),(d=i.call(this,n,a)).urlAfterRedirects=o,d.state=s,d.shouldActivate=l,d}return(0,g.Z)(t,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),t}(_p),Tre=function(r){(0,O.Z)(t,r);var i=(0,y.Z)(t);function t(n,a,o,s){var l;return(0,v.Z)(this,t),(l=i.call(this,n,a)).urlAfterRedirects=o,l.state=s,l}return(0,g.Z)(t,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(_p),kre=function(r){(0,O.Z)(t,r);var i=(0,y.Z)(t);function t(n,a,o,s){var l;return(0,v.Z)(this,t),(l=i.call(this,n,a)).urlAfterRedirects=o,l.state=s,l}return(0,g.Z)(t,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(_p),AH=function(){function r(i){(0,v.Z)(this,r),this.route=i}return(0,g.Z)(r,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),r}(),DH=function(){function r(i){(0,v.Z)(this,r),this.route=i}return(0,g.Z)(r,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),r}(),wre=function(){function r(i){(0,v.Z)(this,r),this.snapshot=i}return(0,g.Z)(r,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),r}(),xre=function(){function r(i){(0,v.Z)(this,r),this.snapshot=i}return(0,g.Z)(r,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),r}(),Ere=function(){function r(i){(0,v.Z)(this,r),this.snapshot=i}return(0,g.Z)(r,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),r}(),Mre=function(){function r(i){(0,v.Z)(this,r),this.snapshot=i}return(0,g.Z)(r,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),r}(),OH=function(){function r(i,t,n){(0,v.Z)(this,r),this.routerEvent=i,this.position=t,this.anchor=n}return(0,g.Z)(r,[{key:"toString",value:function(){var t=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(t,"')")}}]),r}(),_i="primary",Are=function(){function r(i){(0,v.Z)(this,r),this.params=i||{}}return(0,g.Z)(r,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var n=this.params[t];return Array.isArray(n)?n[0]:n}return null}},{key:"getAll",value:function(t){if(this.has(t)){var n=this.params[t];return Array.isArray(n)?n:[n]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),r}();function q_(r){return new Are(r)}var PH="ngNavigationCancelingError";function YZ(r){var i=Error("NavigationCancelingError: "+r);return i[PH]=!0,i}function Ore(r,i,t){var n=t.path.split("/");if(n.length>r.length||"full"===t.pathMatch&&(i.hasChildren()||n.length0?r[r.length-1]:null}function _s(r,i){for(var t in r)r.hasOwnProperty(t)&&i(r[t],t)}function ud(r){return(0,e.CqO)(r)?r:(0,e.QGY)(r)?(0,As.D)(Promise.resolve(r)):(0,Kn.of)(r)}var Rre={exact:function FH(r,i,t){if(!Ym(r.segments,i.segments)||!fA(r.segments,i.segments,t)||r.numberOfChildren!==i.numberOfChildren)return!1;for(var n in i.children)if(!r.children[n]||!FH(r.children[n],i.children[n],t))return!1;return!0},subset:BH},ZH={exact:function(r,i){return ld(r,i)},subset:function(r,i){return Object.keys(i).length<=Object.keys(r).length&&Object.keys(i).every(function(t){return IH(r[t],i[t])})},ignored:function(){return!0}};function LH(r,i,t){return Rre[t.paths](r.root,i.root,t.matrixParams)&&ZH[t.queryParams](r.queryParams,i.queryParams)&&!("exact"===t.fragment&&r.fragment!==i.fragment)}function BH(r,i,t){return UH(r,i,i.segments,t)}function UH(r,i,t,n){if(r.segments.length>t.length){var a=r.segments.slice(0,t.length);return!(!Ym(a,t)||i.hasChildren()||!fA(a,t,n))}if(r.segments.length===t.length){if(!Ym(r.segments,t)||!fA(r.segments,t,n))return!1;for(var o in i.children)if(!r.children[o]||!BH(r.children[o],i.children[o],n))return!1;return!0}var s=t.slice(0,r.segments.length),l=t.slice(r.segments.length);return!!(Ym(r.segments,s)&&fA(r.segments,s,n)&&r.children[_i])&&UH(r.children[_i],i,l,n)}function fA(r,i,t){return i.every(function(n,a){return ZH[t](r[a].parameters,n.parameters)})}var Gm=function(){function r(i,t,n){(0,v.Z)(this,r),this.root=i,this.queryParams=t,this.fragment=n}return(0,g.Z)(r,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=q_(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Bre.serialize(this)}}]),r}(),Si=function(){function r(i,t){var n=this;(0,v.Z)(this,r),this.segments=i,this.children=t,this.parent=null,_s(t,function(a,o){return a.parent=n})}return(0,g.Z)(r,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return hA(this)}}]),r}(),N1=function(){function r(i,t){(0,v.Z)(this,r),this.path=i,this.parameters=t}return(0,g.Z)(r,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=q_(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return zH(this)}}]),r}();function Ym(r,i){return r.length===i.length&&r.every(function(t,n){return t.path===i[n].path})}var HH=function r(){(0,v.Z)(this,r)},VH=function(){function r(){(0,v.Z)(this,r)}return(0,g.Z)(r,[{key:"parse",value:function(t){var n=new Yre(t);return new Gm(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}},{key:"serialize",value:function(t){var n="/".concat(Z1(t.root,!0)),a=function(r){var i=Object.keys(r).map(function(t){var n=r[t];return Array.isArray(n)?n.map(function(a){return"".concat(mA(t),"=").concat(mA(a))}).join("&"):"".concat(mA(t),"=").concat(mA(n))}).filter(function(t){return!!t});return i.length?"?".concat(i.join("&")):""}(t.queryParams),o="string"==typeof t.fragment?"#".concat(function(r){return encodeURI(r)}(t.fragment)):"";return"".concat(n).concat(a).concat(o)}}]),r}(),Bre=new VH;function hA(r){return r.segments.map(function(i){return zH(i)}).join("/")}function Z1(r,i){if(!r.hasChildren())return hA(r);if(i){var t=r.children[_i]?Z1(r.children[_i],!1):"",n=[];return _s(r.children,function(o,s){s!==_i&&n.push("".concat(s,":").concat(Z1(o,!1)))}),n.length>0?"".concat(t,"(").concat(n.join("//"),")"):t}var a=function(r,i){var t=[];return _s(r.children,function(n,a){a===_i&&(t=t.concat(i(n,a)))}),_s(r.children,function(n,a){a!==_i&&(t=t.concat(i(n,a)))}),t}(r,function(o,s){return s===_i?[Z1(r.children[_i],!1)]:["".concat(s,":").concat(Z1(o,!1))]});return 1===Object.keys(r.children).length&&null!=r.children[_i]?"".concat(hA(r),"/").concat(a[0]):"".concat(hA(r),"/(").concat(a.join("//"),")")}function jH(r){return encodeURIComponent(r).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function mA(r){return jH(r).replace(/%3B/gi,";")}function JZ(r){return jH(r).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function vA(r){return decodeURIComponent(r)}function qH(r){return vA(r.replace(/\+/g,"%20"))}function zH(r){return"".concat(JZ(r.path)).concat(function(r){return Object.keys(r).map(function(i){return";".concat(JZ(i),"=").concat(JZ(r[i]))}).join("")}(r.parameters))}var jre=/^[^\/()?;=#]+/;function gA(r){var i=r.match(jre);return i?i[0]:""}var qre=/^[^=?&#]+/,Wre=/^[^&#]+/,Yre=function(){function r(i){(0,v.Z)(this,r),this.url=i,this.remaining=i}return(0,g.Z)(r,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Si([],{}):new Si([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));var a={};return this.peekStartsWith("(")&&(a=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(a[_i]=new Si(t,n)),a}},{key:"parseSegment",value:function(){var t=gA(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new N1(vA(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var n=gA(this.remaining);if(n){this.capture(n);var a="";if(this.consumeOptional("=")){var o=gA(this.remaining);o&&this.capture(a=o)}t[vA(n)]=vA(a)}}},{key:"parseQueryParam",value:function(t){var n=function(r){var i=r.match(qre);return i?i[0]:""}(this.remaining);if(n){this.capture(n);var a="";if(this.consumeOptional("=")){var o=function(r){var i=r.match(Wre);return i?i[0]:""}(this.remaining);o&&this.capture(a=o)}var s=qH(n),l=qH(a);if(t.hasOwnProperty(s)){var d=t[s];Array.isArray(d)||(t[s]=d=[d]),d.push(l)}else t[s]=l}}},{key:"parseParens",value:function(t){var n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var a=gA(this.remaining),o=this.remaining[a.length];if("/"!==o&&")"!==o&&";"!==o)throw new Error("Cannot parse url '".concat(this.url,"'"));var s=void 0;a.indexOf(":")>-1?(s=a.substr(0,a.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=_i);var l=this.parseChildren();n[s]=1===Object.keys(l).length?l[_i]:new Si([],l),this.consumeOptional("//")}return n}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),r}(),WH=function(){function r(i){(0,v.Z)(this,r),this._root=i}return(0,g.Z)(r,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(t){var n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}},{key:"children",value:function(t){var n=QZ(t,this._root);return n?n.children.map(function(a){return a.value}):[]}},{key:"firstChild",value:function(t){var n=QZ(t,this._root);return n&&n.children.length>0?n.children[0].value:null}},{key:"siblings",value:function(t){var n=KZ(t,this._root);return n.length<2?[]:n[n.length-2].children.map(function(o){return o.value}).filter(function(o){return o!==t})}},{key:"pathFromRoot",value:function(t){return KZ(t,this._root).map(function(n){return n.value})}}]),r}();function QZ(r,i){if(r===i.value)return i;var n,t=(0,E.Z)(i.children);try{for(t.s();!(n=t.n()).done;){var o=QZ(r,n.value);if(o)return o}}catch(s){t.e(s)}finally{t.f()}return null}function KZ(r,i){if(r===i.value)return[i];var n,t=(0,E.Z)(i.children);try{for(t.s();!(n=t.n()).done;){var o=KZ(r,n.value);if(o.length)return o.unshift(i),o}}catch(s){t.e(s)}finally{t.f()}return[]}var yp=function(){function r(i,t){(0,v.Z)(this,r),this.value=i,this.children=t}return(0,g.Z)(r,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),r}();function z_(r){var i={};return r&&r.children.forEach(function(t){return i[t.value.outlet]=t}),i}var GH=function(r){(0,O.Z)(t,r);var i=(0,y.Z)(t);function t(n,a){var o;return(0,v.Z)(this,t),(o=i.call(this,n)).snapshot=a,XZ((0,I1.Z)(o),n),o}return(0,g.Z)(t,[{key:"toString",value:function(){return this.snapshot.toString()}}]),t}(WH);function YH(r,i){var t=function(r,i){var s=new _A([],{},{},"",{},_i,i,null,r.root,-1,{});return new QH("",new yp(s,[]))}(r,i),n=new $i.X([new N1("",{})]),a=new $i.X({}),o=new $i.X({}),s=new $i.X({}),l=new $i.X(""),d=new Or(n,a,s,l,o,_i,i,t.root);return d.snapshot=t.root,new GH(new yp(d,[]),t)}var Or=function(){function r(i,t,n,a,o,s,l,d){(0,v.Z)(this,r),this.url=i,this.params=t,this.queryParams=n,this.fragment=a,this.data=o,this.outlet=s,this.component=l,this._futureSnapshot=d}return(0,g.Z)(r,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe((0,kr.U)(function(t){return q_(t)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,kr.U)(function(t){return q_(t)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),r}();function JH(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",t=r.pathFromRoot,n=0;if("always"!==i)for(n=t.length-1;n>=1;){var a=t[n],o=t[n-1];if(a.routeConfig&&""===a.routeConfig.path)n--;else{if(o.component)break;n--}}return Qre(t.slice(n))}function Qre(r){return r.reduce(function(i,t){return{params:(0,D.Z)((0,D.Z)({},i.params),t.params),data:(0,D.Z)((0,D.Z)({},i.data),t.data),resolve:(0,D.Z)((0,D.Z)({},i.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}var _A=function(){function r(i,t,n,a,o,s,l,d,h,C,P){(0,v.Z)(this,r),this.url=i,this.params=t,this.queryParams=n,this.fragment=a,this.data=o,this.outlet=s,this.component=l,this.routeConfig=d,this._urlSegment=h,this._lastPathIndex=C,this._resolve=P}return(0,g.Z)(r,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=q_(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=q_(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){var t=this.url.map(function(a){return a.toString()}).join("/"),n=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(t,"', path:'").concat(n,"')")}}]),r}(),QH=function(r){(0,O.Z)(t,r);var i=(0,y.Z)(t);function t(n,a){var o;return(0,v.Z)(this,t),(o=i.call(this,a)).url=n,XZ((0,I1.Z)(o),a),o}return(0,g.Z)(t,[{key:"toString",value:function(){return KH(this._root)}}]),t}(WH);function XZ(r,i){i.value._routerState=r,i.children.forEach(function(t){return XZ(r,t)})}function KH(r){var i=r.children.length>0?" { ".concat(r.children.map(KH).join(", ")," } "):"";return"".concat(r.value).concat(i)}function $Z(r){if(r.snapshot){var i=r.snapshot,t=r._futureSnapshot;r.snapshot=t,ld(i.queryParams,t.queryParams)||r.queryParams.next(t.queryParams),i.fragment!==t.fragment&&r.fragment.next(t.fragment),ld(i.params,t.params)||r.params.next(t.params),function(r,i){if(r.length!==i.length)return!1;for(var t=0;ta;){if(o-=a,!(n=n.parent))throw new Error("Invalid number of '../'");a=n.segments.length}return new n6(n,!1,a-o)}(t.snapshot._urlSegment,t.snapshot._lastPathIndex+o,r.numberOfDoubleDots)}(o,i,r),l=s.processChildren?bA(s.segmentGroup,s.index,o.commands):eV(s.segmentGroup,s.index,o.commands);return t6(s.segmentGroup,l,i,n,a)}function yA(r){return"object"==typeof r&&null!=r&&!r.outlets&&!r.segmentPath}function F1(r){return"object"==typeof r&&null!=r&&r.outlets}function t6(r,i,t,n,a){var o={};return n&&_s(n,function(s,l){o[l]=Array.isArray(s)?s.map(function(d){return"".concat(d)}):"".concat(s)}),new Gm(t.root===r?i:XH(t.root,r,i),o,a)}function XH(r,i,t){var n={};return _s(r.children,function(a,o){n[o]=a===i?t:XH(a,i,t)}),new Si(r.segments,n)}var $H=function(){function r(i,t,n){if((0,v.Z)(this,r),this.isAbsolute=i,this.numberOfDoubleDots=t,this.commands=n,i&&n.length>0&&yA(n[0]))throw new Error("Root segment cannot have matrix parameters");var a=n.find(F1);if(a&&a!==NH(n))throw new Error("{outlets:{}} has to be the last command")}return(0,g.Z)(r,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),r}(),n6=function r(i,t,n){(0,v.Z)(this,r),this.segmentGroup=i,this.processChildren=t,this.index=n};function eV(r,i,t){if(r||(r=new Si([],{})),0===r.segments.length&&r.hasChildren())return bA(r,i,t);var n=function(r,i,t){for(var n=0,a=i,o={match:!1,pathIndex:0,commandIndex:0};a=t.length)return o;var s=r.segments[a],l=t[n];if(F1(l))break;var d="".concat(l),h=n0&&void 0===d)break;if(d&&h&&"object"==typeof h&&void 0===h.outlets){if(!nV(d,h,s))return o;n+=2}else{if(!nV(d,{},s))return o;n++}a++}return{match:!0,pathIndex:a,commandIndex:n}}(r,i,t),a=t.slice(n.commandIndex);if(n.match&&n.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",t=0;t0)?(0,D.Z)({},oV):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var o=(i.matcher||Ore)(t,r,i);if(!o)return(0,D.Z)({},oV);var s={};_s(o.posParams,function(d,h){s[h]=d.path});var l=o.consumed.length>0?(0,D.Z)((0,D.Z)({},s),o.consumed[o.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:o.consumed,lastChild:o.consumed.length,parameters:l,positionalParamSegments:null!==(n=o.posParams)&&void 0!==n?n:{}}}function TA(r,i,t,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(t.length>0&&Cie(r,t,n)){var o=new Si(i,bie(r,i,n,new Si(t,r.children)));return o._sourceSegment=r,o._segmentIndexShift=i.length,{segmentGroup:o,slicedSegments:[]}}if(0===t.length&&Sie(r,t,n)){var s=new Si(r.segments,yie(r,i,t,n,r.children,a));return s._sourceSegment=r,s._segmentIndexShift=i.length,{segmentGroup:s,slicedSegments:t}}var l=new Si(r.segments,r.children);return l._sourceSegment=r,l._segmentIndexShift=i.length,{segmentGroup:l,slicedSegments:t}}function yie(r,i,t,n,a,o){var d,s={},l=(0,E.Z)(n);try{for(l.s();!(d=l.n()).done;){var h=d.value;if(kA(r,t,h)&&!a[Pu(h)]){var C=new Si([],{});C._sourceSegment=r,C._segmentIndexShift="legacy"===o?r.segments.length:i.length,s[Pu(h)]=C}}}catch(P){l.e(P)}finally{l.f()}return(0,D.Z)((0,D.Z)({},a),s)}function bie(r,i,t,n){var a={};a[_i]=n,n._sourceSegment=r,n._segmentIndexShift=i.length;var s,o=(0,E.Z)(t);try{for(o.s();!(s=o.n()).done;){var l=s.value;if(""===l.path&&Pu(l)!==_i){var d=new Si([],{});d._sourceSegment=r,d._segmentIndexShift=i.length,a[Pu(l)]=d}}}catch(h){o.e(h)}finally{o.f()}return a}function Cie(r,i,t){return t.some(function(n){return kA(r,i,n)&&Pu(n)!==_i})}function Sie(r,i,t){return t.some(function(n){return kA(r,i,n)})}function kA(r,i,t){return(!(r.hasChildren()||i.length>0)||"full"!==t.pathMatch)&&""===t.path}function sV(r,i,t,n){return!!(Pu(r)===n||n!==_i&&kA(i,t,r))&&("**"===r.path||SA(i,r,t).matched)}function lV(r,i,t){return 0===i.length&&!r.children[t]}var V1=function r(i){(0,v.Z)(this,r),this.segmentGroup=i||null},uV=function r(i){(0,v.Z)(this,r),this.urlTree=i};function wA(r){return new wo.y(function(i){return i.error(new V1(r))})}function cV(r){return new wo.y(function(i){return i.error(new uV(r))})}function Tie(r){return new wo.y(function(i){return i.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(r,"'")))})}var xie=function(){function r(i,t,n,a,o){(0,v.Z)(this,r),this.configLoader=t,this.urlSerializer=n,this.urlTree=a,this.config=o,this.allowRedirects=!0,this.ngModule=i.get(e.h0i)}return(0,g.Z)(r,[{key:"apply",value:function(){var t=this,n=TA(this.urlTree.root,[],[],this.config).segmentGroup,a=new Si(n.segments,n.children);return this.expandSegmentGroup(this.ngModule,this.config,a,_i).pipe((0,kr.U)(function(l){return t.createUrlTree(o6(l),t.urlTree.queryParams,t.urlTree.fragment)})).pipe((0,jf.K)(function(l){if(l instanceof uV)return t.allowRedirects=!1,t.match(l.urlTree);throw l instanceof V1?t.noMatchError(l):l}))}},{key:"match",value:function(t){var n=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,_i).pipe((0,kr.U)(function(s){return n.createUrlTree(o6(s),t.queryParams,t.fragment)})).pipe((0,jf.K)(function(s){throw s instanceof V1?n.noMatchError(s):s}))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(t,n,a){var o=t.segments.length>0?new Si([],(0,V.Z)({},_i,t)):t;return new Gm(o,n,a)}},{key:"expandSegmentGroup",value:function(t,n,a,o){return 0===a.segments.length&&a.hasChildren()?this.expandChildren(t,n,a).pipe((0,kr.U)(function(s){return new Si([],s)})):this.expandSegment(t,a,n,a.segments,o,!0)}},{key:"expandChildren",value:function(t,n,a){for(var o=this,s=[],l=0,d=Object.keys(a.children);l1||!o.children[_i])return Tie(t.redirectTo);o=o.children[_i]}}},{key:"applyRedirectCommands",value:function(t,n,a){return this.applyRedirectCreatreUrlTree(n,this.urlSerializer.parse(n),t,a)}},{key:"applyRedirectCreatreUrlTree",value:function(t,n,a,o){var s=this.createSegmentGroup(t,n.root,a,o);return new Gm(s,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}},{key:"createQueryParams",value:function(t,n){var a={};return _s(t,function(o,s){if("string"==typeof o&&o.startsWith(":")){var d=o.substring(1);a[s]=n[d]}else a[s]=o}),a}},{key:"createSegmentGroup",value:function(t,n,a,o){var s=this,l=this.createSegments(t,n.segments,a,o),d={};return _s(n.children,function(h,C){d[C]=s.createSegmentGroup(t,h,a,o)}),new Si(l,d)}},{key:"createSegments",value:function(t,n,a,o){var s=this;return n.map(function(l){return l.path.startsWith(":")?s.findPosParam(t,l,o):s.findOrReturn(l,a)})}},{key:"findPosParam",value:function(t,n,a){var o=a[n.path.substring(1)];if(!o)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(n.path,"'."));return o}},{key:"findOrReturn",value:function(t,n){var s,a=0,o=(0,E.Z)(n);try{for(o.s();!(s=o.n()).done;){var l=s.value;if(l.path===t.path)return n.splice(a),l;a++}}catch(d){o.e(d)}finally{o.f()}return t}}]),r}();function o6(r){for(var i={},t=0,n=Object.keys(r.children);t0||s.hasChildren())&&(i[a]=s)}return function(r){if(1===r.numberOfChildren&&r.children[_i]){var i=r.children[_i];return new Si(r.segments.concat(i.segments),i.children)}return r}(new Si(r.segments,i))}var dV=function r(i){(0,v.Z)(this,r),this.path=i,this.route=this.path[this.path.length-1]},xA=function r(i,t){(0,v.Z)(this,r),this.component=i,this.route=t};function Aie(r,i,t){var n=r._root;return j1(n,i?i._root:null,t,[n.value])}function EA(r,i,t){var n=function(r){if(!r)return null;for(var i=r.parent;i;i=i.parent){var t=i.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(i);return(n?n.module.injector:t).get(r)}function j1(r,i,t,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=z_(i);return r.children.forEach(function(s){Pie(s,o[s.value.outlet],t,n.concat([s.value]),a),delete o[s.value.outlet]}),_s(o,function(s,l){return q1(s,t.getContext(l),a)}),a}function Pie(r,i,t,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=r.value,s=i?i.value:null,l=t?t.getContext(r.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){var d=Iie(s,o,o.routeConfig.runGuardsAndResolvers);d?a.canActivateChecks.push(new dV(n)):(o.data=s.data,o._resolvedData=s._resolvedData),j1(r,i,o.component?l?l.children:null:t,n,a),d&&l&&l.outlet&&l.outlet.isActivated&&a.canDeactivateChecks.push(new xA(l.outlet.component,s))}else s&&q1(i,l,a),a.canActivateChecks.push(new dV(n)),j1(r,null,o.component?l?l.children:null:t,n,a);return a}function Iie(r,i,t){if("function"==typeof t)return t(r,i);switch(t){case"pathParamsChange":return!Ym(r.url,i.url);case"pathParamsOrQueryParamsChange":return!Ym(r.url,i.url)||!ld(r.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!e6(r,i)||!ld(r.queryParams,i.queryParams);default:return!e6(r,i)}}function q1(r,i,t){var n=z_(r),a=r.value;_s(n,function(o,s){q1(o,a.component?i?i.children.getContext(s):null:i,t)}),t.canDeactivateChecks.push(new xA(a.component&&i&&i.outlet&&i.outlet.isActivated?i.outlet.component:null,a))}var Vie=function r(){(0,v.Z)(this,r)};function pV(r){return new wo.y(function(i){return i.error(r)})}var qie=function(){function r(i,t,n,a,o,s){(0,v.Z)(this,r),this.rootComponentType=i,this.config=t,this.urlTree=n,this.url=a,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=s}return(0,g.Z)(r,[{key:"recognize",value:function(){var t=TA(this.urlTree.root,[],[],this.config.filter(function(l){return void 0===l.redirectTo}),this.relativeLinkResolution).segmentGroup,n=this.processSegmentGroup(this.config,t,_i);if(null===n)return null;var a=new _A([],Object.freeze({}),Object.freeze((0,D.Z)({},this.urlTree.queryParams)),this.urlTree.fragment,{},_i,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new yp(a,n),s=new QH(this.url,o);return this.inheritParamsAndData(s._root),s}},{key:"inheritParamsAndData",value:function(t){var n=this,a=t.value,o=JH(a,this.paramsInheritanceStrategy);a.params=Object.freeze(o.params),a.data=Object.freeze(o.data),t.children.forEach(function(s){return n.inheritParamsAndData(s)})}},{key:"processSegmentGroup",value:function(t,n,a){return 0===n.segments.length&&n.hasChildren()?this.processChildren(t,n):this.processSegment(t,n,n.segments,a)}},{key:"processChildren",value:function(t,n){for(var a=[],o=0,s=Object.keys(n.children);o0?NH(a).parameters:{};s=new _A(a,h,Object.freeze((0,D.Z)({},this.urlTree.queryParams)),this.urlTree.fragment,vV(t),Pu(t),t.component,t,hV(n),mV(n)+a.length,gV(t))}else{var C=SA(n,t,a);if(!C.matched)return null;l=C.consumedSegments,d=a.slice(C.lastChild),s=new _A(l,C.parameters,Object.freeze((0,D.Z)({},this.urlTree.queryParams)),this.urlTree.fragment,vV(t),Pu(t),t.component,t,hV(n),mV(n)+l.length,gV(t))}var P=function(r){return r.children?r.children:r.loadChildren?r._loadedConfig.routes:[]}(t),N=TA(n,l,d,P.filter(function($e){return void 0===$e.redirectTo}),this.relativeLinkResolution),q=N.segmentGroup,Q=N.slicedSegments;if(0===Q.length&&q.hasChildren()){var te=this.processChildren(P,q);return null===te?null:[new yp(s,te)]}if(0===P.length&&0===Q.length)return[new yp(s,[])];var se=Pu(t)===o,Te=this.processSegment(P,q,Q,se?_i:o);return null===Te?null:[new yp(s,Te)]}}]),r}();function fV(r){var a,i=[],t=new Set,n=(0,E.Z)(r);try{var o=function(){var N=a.value;if(!function(r){var i=r.value.routeConfig;return i&&""===i.path&&void 0===i.redirectTo}(N))return i.push(N),"continue";var Q,q=i.find(function(te){return N.value.routeConfig===te.value.routeConfig});void 0!==q?((Q=q.children).push.apply(Q,(0,T.Z)(N.children)),t.add(q)):i.push(N)};for(n.s();!(a=n.n()).done;)o()}catch(P){n.e(P)}finally{n.f()}var d,l=(0,E.Z)(t);try{for(l.s();!(d=l.n()).done;){var h=d.value,C=fV(h.children);i.push(new yp(h.value,C))}}catch(P){l.e(P)}finally{l.f()}return i.filter(function(P){return!t.has(P)})}function hV(r){for(var i=r;i._sourceSegment;)i=i._sourceSegment;return i}function mV(r){for(var i=r,t=i._segmentIndexShift?i._segmentIndexShift:0;i._sourceSegment;)t+=(i=i._sourceSegment)._segmentIndexShift?i._segmentIndexShift:0;return t-1}function vV(r){return r.data||{}}function gV(r){return r.resolve||{}}function s6(r){return(0,Ou.w)(function(i){var t=r(i);return t?(0,As.D)(t).pipe((0,kr.U)(function(){return i})):(0,Kn.of)(i)})}var eae=function(){function r(){(0,v.Z)(this,r)}return(0,g.Z)(r,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,n){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,n){return t.routeConfig===n.routeConfig}}]),r}(),tae=function(r){(0,O.Z)(t,r);var i=(0,y.Z)(t);function t(){return(0,v.Z)(this,t),i.apply(this,arguments)}return t}(eae),l6=new e.OlP("ROUTES"),_V=function(){function r(i,t,n,a){(0,v.Z)(this,r),this.injector=i,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=a}return(0,g.Z)(r,[{key:"load",value:function(t,n){var a=this;if(n._loader$)return n._loader$;this.onLoadStartListener&&this.onLoadStartListener(n);var s=this.loadModuleFactory(n.loadChildren).pipe((0,kr.U)(function(l){a.onLoadEndListener&&a.onLoadEndListener(n);var d=l.create(t);return new i6(RH(d.injector.get(l6,void 0,e.XFs.Self|e.XFs.Optional)).map(a6),d)}),(0,jf.K)(function(l){throw n._loader$=void 0,l}));return n._loader$=new gre.c(s,function(){return new Un.xQ}).pipe((0,yre.x)()),n._loader$}},{key:"loadModuleFactory",value:function(t){var n=this;return ud(t()).pipe((0,ao.zg)(function(a){return a instanceof e.YKP?(0,Kn.of)(a):(0,As.D)(n.compiler.compileModuleAsync(a))}))}}]),r}(),rae=function(){function r(){(0,v.Z)(this,r)}return(0,g.Z)(r,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,n){return t}}]),r}();function iae(r){throw r}function aae(r,i,t){return i.parse("/")}function yV(r,i){return(0,Kn.of)(null)}var oae={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},sae={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},xr=function(){var r=function(){function i(t,n,a,o,s,l,d){var h=this;(0,v.Z)(this,i),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=a,this.location=o,this.config=d,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Un.xQ,this.errorHandler=iae,this.malformedUriErrorHandler=aae,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:yV,afterPreactivation:yV},this.urlHandlingStrategy=new rae,this.routeReuseStrategy=new tae,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(e.h0i),this.console=s.get(e.c2e);var N=s.get(e.R0b);this.isNgZoneEnabled=N instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig(d),this.currentUrlTree=new Gm(new Si([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new _V(s,l,function(Q){return h.triggerEvent(new AH(Q))},function(Q){return h.triggerEvent(new DH(Q))}),this.routerState=YH(this.currentUrlTree,this.rootComponentType),this.transitions=new $i.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return(0,g.Z)(i,[{key:"browserPageId",get:function(){var n;return null===(n=this.location.getState())||void 0===n?void 0:n.\u0275routerPageId}},{key:"setupNavigations",value:function(n){var a=this,o=this.events;return n.pipe((0,ea.h)(function(s){return 0!==s.id}),(0,kr.U)(function(s){return(0,D.Z)((0,D.Z)({},s),{},{extractedUrl:a.urlHandlingStrategy.extract(s.rawUrl)})}),(0,Ou.w)(function(s){var l=!1,d=!1;return(0,Kn.of)(s).pipe((0,Ns.b)(function(h){a.currentNavigation={id:h.id,initialUrl:h.currentRawUrl,extractedUrl:h.extractedUrl,trigger:h.source,extras:h.extras,previousNavigation:a.lastSuccessfulNavigation?(0,D.Z)((0,D.Z)({},a.lastSuccessfulNavigation),{},{previousNavigation:null}):null}}),(0,Ou.w)(function(h){var C=a.browserUrlTree.toString(),P=!a.navigated||h.extractedUrl.toString()!==C||C!==a.currentUrlTree.toString();if(("reload"===a.onSameUrlNavigation||P)&&a.urlHandlingStrategy.shouldProcessUrl(h.rawUrl))return MA(h.source)&&(a.browserUrlTree=h.extractedUrl),(0,Kn.of)(h).pipe((0,Ou.w)(function(dt){var Dt=a.transitions.getValue();return o.next(new pA(dt.id,a.serializeUrl(dt.extractedUrl),dt.source,dt.restoredState)),Dt!==a.transitions.getValue()?zm.E:Promise.resolve(dt)}),function(r,i,t,n){return(0,Ou.w)(function(a){return function(r,i,t,n,a){return new xie(r,i,t,n,a).apply()}(r,i,t,a.extractedUrl,n).pipe((0,kr.U)(function(o){return(0,D.Z)((0,D.Z)({},a),{},{urlAfterRedirects:o})}))})}(a.ngModule.injector,a.configLoader,a.urlSerializer,a.config),(0,Ns.b)(function(dt){a.currentNavigation=(0,D.Z)((0,D.Z)({},a.currentNavigation),{},{finalUrl:dt.urlAfterRedirects})}),function(r,i,t,n,a){return(0,ao.zg)(function(o){return function(r,i,t,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var s=new qie(r,i,t,n,a,o).recognize();return null===s?pV(new Vie):(0,Kn.of)(s)}catch(l){return pV(l)}}(r,i,o.urlAfterRedirects,t(o.urlAfterRedirects),n,a).pipe((0,kr.U)(function(s){return(0,D.Z)((0,D.Z)({},o),{},{targetSnapshot:s})}))})}(a.rootComponentType,a.config,function(dt){return a.serializeUrl(dt)},a.paramsInheritanceStrategy,a.relativeLinkResolution),(0,Ns.b)(function(dt){if("eager"===a.urlUpdateStrategy){if(!dt.extras.skipLocationChange){var Dt=a.urlHandlingStrategy.merge(dt.urlAfterRedirects,dt.rawUrl);a.setBrowserUrl(Dt,dt)}a.browserUrlTree=dt.urlAfterRedirects}var St=new bre(dt.id,a.serializeUrl(dt.extractedUrl),a.serializeUrl(dt.urlAfterRedirects),dt.targetSnapshot);o.next(St)}));if(P&&a.rawUrlTree&&a.urlHandlingStrategy.shouldProcessUrl(a.rawUrlTree)){var te=h.extractedUrl,se=h.source,Te=h.restoredState,$e=h.extras,ze=new pA(h.id,a.serializeUrl(te),se,Te);o.next(ze);var rt=YH(te,a.rootComponentType).snapshot;return(0,Kn.of)((0,D.Z)((0,D.Z)({},h),{},{targetSnapshot:rt,urlAfterRedirects:te,extras:(0,D.Z)((0,D.Z)({},$e),{},{skipLocationChange:!1,replaceUrl:!1})}))}return a.rawUrlTree=h.rawUrl,h.resolve(null),zm.E}),s6(function(h){var Q=h.extras;return a.hooks.beforePreactivation(h.targetSnapshot,{navigationId:h.id,appliedUrlTree:h.extractedUrl,rawUrlTree:h.rawUrl,skipLocationChange:!!Q.skipLocationChange,replaceUrl:!!Q.replaceUrl})}),(0,Ns.b)(function(h){var C=new Cre(h.id,a.serializeUrl(h.extractedUrl),a.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);a.triggerEvent(C)}),(0,kr.U)(function(h){return(0,D.Z)((0,D.Z)({},h),{},{guards:Aie(h.targetSnapshot,h.currentSnapshot,a.rootContexts)})}),function(r,i){return(0,ao.zg)(function(t){var n=t.targetSnapshot,a=t.currentSnapshot,o=t.guards,s=o.canActivateChecks,l=o.canDeactivateChecks;return 0===l.length&&0===s.length?(0,Kn.of)((0,D.Z)((0,D.Z)({},t),{},{guardsResult:!0})):function(r,i,t,n){return(0,As.D)(r).pipe((0,ao.zg)(function(a){return function(r,i,t,n,a){var o=i&&i.routeConfig?i.routeConfig.canDeactivate:null;if(!o||0===o.length)return(0,Kn.of)(!0);var s=o.map(function(l){var h,d=EA(l,i,a);if(function(r){return r&&qf(r.canDeactivate)}(d))h=ud(d.canDeactivate(r,i,t,n));else{if(!qf(d))throw new Error("Invalid CanDeactivate guard");h=ud(d(r,i,t,n))}return h.pipe((0,j_.P)())});return(0,Kn.of)(s).pipe(U1())}(a.component,a.route,t,i,n)}),(0,j_.P)(function(a){return!0!==a},!0))}(l,n,a,r).pipe((0,ao.zg)(function(d){return d&&function(r){return"boolean"==typeof r}(d)?function(r,i,t,n){return(0,As.D)(i).pipe((0,R1.b)(function(a){return(0,wH.z)(function(r,i){return null!==r&&i&&i(new wre(r)),(0,Kn.of)(!0)}(a.route.parent,n),function(r,i){return null!==r&&i&&i(new Ere(r)),(0,Kn.of)(!0)}(a.route,n),function(r,i,t){var n=i[i.length-1],a=i.slice(0,i.length-1).reverse().map(function(s){return function(r){var i=r.routeConfig?r.routeConfig.canActivateChild:null;return i&&0!==i.length?{node:r,guards:i}:null}(s)}).filter(function(s){return null!==s}),o=a.map(function(s){return(0,zZ.P)(function(){var l=s.guards.map(function(d){var C,h=EA(d,s.node,t);if(function(r){return r&&qf(r.canActivateChild)}(h))C=ud(h.canActivateChild(n,r));else{if(!qf(h))throw new Error("Invalid CanActivateChild guard");C=ud(h(n,r))}return C.pipe((0,j_.P)())});return(0,Kn.of)(l).pipe(U1())})});return(0,Kn.of)(o).pipe(U1())}(r,a.path,t),function(r,i,t){var n=i.routeConfig?i.routeConfig.canActivate:null;if(!n||0===n.length)return(0,Kn.of)(!0);var a=n.map(function(o){return(0,zZ.P)(function(){var l,s=EA(o,i,t);if(function(r){return r&&qf(r.canActivate)}(s))l=ud(s.canActivate(i,r));else{if(!qf(s))throw new Error("Invalid CanActivate guard");l=ud(s(i,r))}return l.pipe((0,j_.P)())})});return(0,Kn.of)(a).pipe(U1())}(r,a.route,t))}),(0,j_.P)(function(a){return!0!==a},!0))}(n,s,r,i):(0,Kn.of)(d)}),(0,kr.U)(function(d){return(0,D.Z)((0,D.Z)({},t),{},{guardsResult:d})}))})}(a.ngModule.injector,function(h){return a.triggerEvent(h)}),(0,Ns.b)(function(h){if(Jm(h.guardsResult)){var C=YZ('Redirecting to "'.concat(a.serializeUrl(h.guardsResult),'"'));throw C.url=h.guardsResult,C}var P=new Sre(h.id,a.serializeUrl(h.extractedUrl),a.serializeUrl(h.urlAfterRedirects),h.targetSnapshot,!!h.guardsResult);a.triggerEvent(P)}),(0,ea.h)(function(h){return!!h.guardsResult||(a.restoreHistory(h),a.cancelNavigationTransition(h,""),!1)}),s6(function(h){if(h.guards.canActivateChecks.length)return(0,Kn.of)(h).pipe((0,Ns.b)(function(C){var P=new Tre(C.id,a.serializeUrl(C.extractedUrl),a.serializeUrl(C.urlAfterRedirects),C.targetSnapshot);a.triggerEvent(P)}),(0,Ou.w)(function(C){var P=!1;return(0,Kn.of)(C).pipe(function(r,i){return(0,ao.zg)(function(t){var n=t.targetSnapshot,a=t.guards.canActivateChecks;if(!a.length)return(0,Kn.of)(t);var o=0;return(0,As.D)(a).pipe((0,R1.b)(function(s){return function(r,i,t,n){return function(r,i,t,n){var a=Object.keys(r);if(0===a.length)return(0,Kn.of)({});var o={};return(0,As.D)(a).pipe((0,ao.zg)(function(s){return function(r,i,t,n){var a=EA(r,i,n);return ud(a.resolve?a.resolve(i,t):a(i,t))}(r[s],i,t,n).pipe((0,Ns.b)(function(l){o[s]=l}))}),(0,Qg.h)(1),(0,ao.zg)(function(){return Object.keys(o).length===a.length?(0,Kn.of)(o):zm.E}))}(r._resolve,r,i,n).pipe((0,kr.U)(function(o){return r._resolvedData=o,r.data=(0,D.Z)((0,D.Z)({},r.data),JH(r,t).resolve),null}))}(s.route,n,r,i)}),(0,Ns.b)(function(){return o++}),(0,Qg.h)(1),(0,ao.zg)(function(s){return o===a.length?(0,Kn.of)(t):zm.E}))})}(a.paramsInheritanceStrategy,a.ngModule.injector),(0,Ns.b)({next:function(){return P=!0},complete:function(){P||(a.restoreHistory(C),a.cancelNavigationTransition(C,"At least one route resolver didn't emit any value."))}}))}),(0,Ns.b)(function(C){var P=new kre(C.id,a.serializeUrl(C.extractedUrl),a.serializeUrl(C.urlAfterRedirects),C.targetSnapshot);a.triggerEvent(P)}))}),s6(function(h){var Q=h.extras;return a.hooks.afterPreactivation(h.targetSnapshot,{navigationId:h.id,appliedUrlTree:h.extractedUrl,rawUrlTree:h.rawUrl,skipLocationChange:!!Q.skipLocationChange,replaceUrl:!!Q.replaceUrl})}),(0,kr.U)(function(h){var C=function(r,i,t){var n=L1(r,i._root,t?t._root:void 0);return new GH(n,i)}(a.routeReuseStrategy,h.targetSnapshot,h.currentRouterState);return(0,D.Z)((0,D.Z)({},h),{},{targetRouterState:C})}),(0,Ns.b)(function(h){a.currentUrlTree=h.urlAfterRedirects,a.rawUrlTree=a.urlHandlingStrategy.merge(h.urlAfterRedirects,h.rawUrl),a.routerState=h.targetRouterState,"deferred"===a.urlUpdateStrategy&&(h.extras.skipLocationChange||a.setBrowserUrl(a.rawUrlTree,h),a.browserUrlTree=h.urlAfterRedirects)}),function(i,t,n){return(0,kr.U)(function(a){return new lie(t,a.targetRouterState,a.currentRouterState,n).activate(i),a})}(a.rootContexts,a.routeReuseStrategy,function(h){return a.triggerEvent(h)}),(0,Ns.b)({next:function(){l=!0},complete:function(){l=!0}}),(0,EH.x)(function(){var h;if(!l&&!d){var C="Navigation ID ".concat(s.id," is not equal to the current navigation id ").concat(a.navigationId);a.cancelNavigationTransition(s,C)}(null===(h=a.currentNavigation)||void 0===h?void 0:h.id)===s.id&&(a.currentNavigation=null)}),(0,jf.K)(function(h){if(d=!0,function(r){return r&&r[PH]}(h)){var C=Jm(h.url);C||(a.navigated=!0,a.restoreHistory(s,!0));var P=new GZ(s.id,a.serializeUrl(s.extractedUrl),h.message);o.next(P),C?setTimeout(function(){var q=a.urlHandlingStrategy.merge(h.url,a.rawUrlTree),Q={skipLocationChange:s.extras.skipLocationChange,replaceUrl:"eager"===a.urlUpdateStrategy||MA(s.source)};a.scheduleNavigation(q,"imperative",null,Q,{resolve:s.resolve,reject:s.reject,promise:s.promise})},0):s.resolve(!1)}else{a.restoreHistory(s,!0);var N=new MH(s.id,a.serializeUrl(s.extractedUrl),h);o.next(N);try{s.resolve(a.errorHandler(h))}catch(q){s.reject(q)}}return zm.E}))}))}},{key:"resetRootComponentType",value:function(n){this.rootComponentType=n,this.routerState.root.component=this.rootComponentType}},{key:"setTransition",value:function(n){this.transitions.next((0,D.Z)((0,D.Z)({},this.transitions.value),n))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var n=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(a){var o="popstate"===a.type?"popstate":"hashchange";"popstate"===o&&setTimeout(function(){var s,l={replaceUrl:!0},d=null!==(s=a.state)&&void 0!==s&&s.navigationId?a.state:null;if(d){var h=(0,D.Z)({},d);delete h.navigationId,delete h.\u0275routerPageId,0!==Object.keys(h).length&&(l.state=h)}var C=n.parseUrl(a.url);n.scheduleNavigation(C,o,d,l)},0)}))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(n){this.events.next(n)}},{key:"resetConfig",value:function(n){iV(n),this.config=n.map(a6),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=a.relativeTo,s=a.queryParams,l=a.fragment,d=a.queryParamsHandling,h=a.preserveFragment,C=o||this.routerState.root,P=h?this.currentUrlTree.fragment:l,N=null;switch(d){case"merge":N=(0,D.Z)((0,D.Z)({},this.currentUrlTree.queryParams),s);break;case"preserve":N=this.currentUrlTree.queryParams;break;default:N=s||null}return null!==N&&(N=this.removeEmptyProps(N)),eie(C,this.currentUrlTree,n,N,null!=P?P:null)}},{key:"navigateByUrl",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},o=Jm(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,"imperative",null,a)}},{key:"navigate",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return lae(n),this.navigateByUrl(this.createUrlTree(n,a),a)}},{key:"serializeUrl",value:function(n){return this.urlSerializer.serialize(n)}},{key:"parseUrl",value:function(n){var a;try{a=this.urlSerializer.parse(n)}catch(o){a=this.malformedUriErrorHandler(o,this.urlSerializer,n)}return a}},{key:"isActive",value:function(n,a){var o;if(o=!0===a?(0,D.Z)({},oae):!1===a?(0,D.Z)({},sae):a,Jm(n))return LH(this.currentUrlTree,n,o);var s=this.parseUrl(n);return LH(this.currentUrlTree,s,o)}},{key:"removeEmptyProps",value:function(n){return Object.keys(n).reduce(function(a,o){var s=n[o];return null!=s&&(a[o]=s),a},{})}},{key:"processNavigations",value:function(){var n=this;this.navigations.subscribe(function(a){n.navigated=!0,n.lastSuccessfulId=a.id,n.currentPageId=a.targetPageId,n.events.next(new Wm(a.id,n.serializeUrl(a.extractedUrl),n.serializeUrl(n.currentUrlTree))),n.lastSuccessfulNavigation=n.currentNavigation,a.resolve(!0)},function(a){n.console.warn("Unhandled Navigation Error: ".concat(a))})}},{key:"scheduleNavigation",value:function(n,a,o,s,l){var d;if(this.disposed)return Promise.resolve(!1);var Q,te,se,h=this.transitions.value,C=MA(a)&&h&&!MA(h.source),P=h.rawUrl.toString()===n.toString(),N=h.id===(null===(d=this.currentNavigation)||void 0===d?void 0:d.id);if(C&&P&&N)return Promise.resolve(!0);l?(Q=l.resolve,te=l.reject,se=l.promise):se=new Promise(function(Dt,St){Q=Dt,te=St});var $e,Te=++this.navigationId;if("computed"===this.canceledNavigationResolution)if(0===this.currentPageId&&(o=this.location.getState()),o&&o.\u0275routerPageId)$e=o.\u0275routerPageId;else if(s.replaceUrl||s.skipLocationChange){var rt;$e=null!==(rt=this.browserPageId)&&void 0!==rt?rt:0}else{var dt;$e=(null!==(dt=this.browserPageId)&&void 0!==dt?dt:0)+1}else $e=0;return this.setTransition({id:Te,targetPageId:$e,source:a,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:n,extras:s,resolve:Q,reject:te,promise:se,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),se.catch(function(Dt){return Promise.reject(Dt)})}},{key:"setBrowserUrl",value:function(n,a){var o=this.urlSerializer.serialize(n),s=(0,D.Z)((0,D.Z)({},a.extras.state),this.generateNgRouterState(a.id,a.targetPageId));this.location.isCurrentPathEqualTo(o)||a.extras.replaceUrl?this.location.replaceState(o,"",s):this.location.go(o,"",s)}},{key:"restoreHistory",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var o,s,l=this.currentPageId-n.targetPageId,d="popstate"===n.source||"eager"===this.urlUpdateStrategy||this.currentUrlTree===(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl);d&&0!==l?this.location.historyGo(l):this.currentUrlTree===(null===(s=this.currentNavigation)||void 0===s?void 0:s.finalUrl)&&0===l&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(a&&this.resetState(n),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(n,a){var o=new GZ(n.id,this.serializeUrl(n.extractedUrl),a);this.triggerEvent(o),n.resolve(!1)}},{key:"generateNgRouterState",value:function(n,a){return"computed"===this.canceledNavigationResolution?{navigationId:n,"\u0275routerPageId":a}:{navigationId:n}}}]),i}();return r.\u0275fac=function(t){e.$Z()},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r}();function lae(r){for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:{};(0,v.Z)(this,i),this.router=t,this.viewportScroller=n,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration=a.scrollPositionRestoration||"disabled",a.anchorScrolling=a.anchorScrolling||"disabled"}return(0,g.Z)(i,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var n=this;return this.router.events.subscribe(function(a){a instanceof pA?(n.store[n.lastId]=n.viewportScroller.getScrollPosition(),n.lastSource=a.navigationTrigger,n.restoredId=a.restoredState?a.restoredState.navigationId:0):a instanceof Wm&&(n.lastId=a.id,n.scheduleScrollEvent(a,n.router.parseUrl(a.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var n=this;return this.router.events.subscribe(function(a){a instanceof OH&&(a.position?"top"===n.options.scrollPositionRestoration?n.viewportScroller.scrollToPosition([0,0]):"enabled"===n.options.scrollPositionRestoration&&n.viewportScroller.scrollToPosition(a.position):a.anchor&&"enabled"===n.options.anchorScrolling?n.viewportScroller.scrollToAnchor(a.anchor):"disabled"!==n.options.scrollPositionRestoration&&n.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(n,a){this.router.triggerEvent(new OH(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,a))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),i}();return r.\u0275fac=function(t){e.$Z()},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r}(),Qm=new e.OlP("ROUTER_CONFIGURATION"),TV=new e.OlP("ROUTER_FORROOT_GUARD"),pae=[Pt.Ye,{provide:HH,useClass:VH},{provide:xr,useFactory:function(r,i,t,n,a,o){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},l=arguments.length>7?arguments[7]:void 0,d=arguments.length>8?arguments[8]:void 0,h=new xr(null,r,i,t,n,a,RH(o));return l&&(h.urlHandlingStrategy=l),d&&(h.routeReuseStrategy=d),_ae(s,h),s.enableTracing&&h.events.subscribe(function(C){var P,N,q,Q;null===(P=(N=console).group)||void 0===P||P.call(N,"Router Event: ".concat(C.constructor.name)),console.log(C.toString()),console.log(C),null===(q=(Q=console).groupEnd)||void 0===q||q.call(Q)}),h},deps:[HH,H1,Pt.Ye,e.zs3,e.Sil,l6,Qm,[function r(){(0,v.Z)(this,r)},new e.FiY],[function r(){(0,v.Z)(this,r)},new e.FiY]]},H1,{provide:Or,useFactory:function(r){return r.routerState.root},deps:[xr]},SV,CV,dae,{provide:Qm,useValue:{enableTracing:!1}}];function fae(){return new e.PXZ("Router",xr)}var kV=function(){var r=function(){function i(t,n){(0,v.Z)(this,i)}return(0,g.Z)(i,null,[{key:"forRoot",value:function(n,a){return{ngModule:i,providers:[pae,wV(n),{provide:TV,useFactory:vae,deps:[[xr,new e.FiY,new e.tp0]]},{provide:Qm,useValue:a||{}},{provide:Pt.S$,useFactory:mae,deps:[Pt.lw,[new e.tBr(Pt.mr),new e.FiY],Qm]},{provide:u6,useFactory:hae,deps:[xr,Pt.EM,Qm]},{provide:bV,useExisting:a&&a.preloadingStrategy?a.preloadingStrategy:CV},{provide:e.PXZ,multi:!0,useFactory:fae},[c6,{provide:e.ip1,multi:!0,useFactory:bae,deps:[c6]},{provide:xV,useFactory:Cae,deps:[c6]},{provide:e.tb,multi:!0,useExisting:xV}]]}}},{key:"forChild",value:function(n){return{ngModule:i,providers:[wV(n)]}}}]),i}();return r.\u0275fac=function(t){return new(t||r)(e.LFG(TV,8),e.LFG(xr,8))},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({}),r}();function hae(r,i,t){return t.scrollOffset&&i.setOffset(t.scrollOffset),new u6(r,i,t)}function mae(r,i){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.useHash?new Pt.Do(r,i):new Pt.b0(r,i)}function vae(r){return"guarded"}function wV(r){return[{provide:e.deG,multi:!0,useValue:r},{provide:l6,multi:!0,useValue:r}]}function _ae(r,i){r.errorHandler&&(i.errorHandler=r.errorHandler),r.malformedUriErrorHandler&&(i.malformedUriErrorHandler=r.malformedUriErrorHandler),r.onSameUrlNavigation&&(i.onSameUrlNavigation=r.onSameUrlNavigation),r.paramsInheritanceStrategy&&(i.paramsInheritanceStrategy=r.paramsInheritanceStrategy),r.relativeLinkResolution&&(i.relativeLinkResolution=r.relativeLinkResolution),r.urlUpdateStrategy&&(i.urlUpdateStrategy=r.urlUpdateStrategy),r.canceledNavigationResolution&&(i.canceledNavigationResolution=r.canceledNavigationResolution)}var c6=function(){var r=function(){function i(t){(0,v.Z)(this,i),this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Un.xQ}return(0,g.Z)(i,[{key:"appInitializer",value:function(){var n=this;return this.injector.get(Pt.V_,Promise.resolve(null)).then(function(){if(n.destroyed)return Promise.resolve(!0);var o=null,s=new Promise(function(h){return o=h}),l=n.injector.get(xr),d=n.injector.get(Qm);return"disabled"===d.initialNavigation?(l.setUpLocationChangeListener(),o(!0)):"enabled"===d.initialNavigation||"enabledBlocking"===d.initialNavigation?(l.hooks.afterPreactivation=function(){return n.initNavigation?(0,Kn.of)(null):(n.initNavigation=!0,o(!0),n.resultOfPreactivationDone)},l.initialNavigation()):o(!0),s})}},{key:"bootstrapListener",value:function(n){var a=this.injector.get(Qm),o=this.injector.get(SV),s=this.injector.get(u6),l=this.injector.get(xr),d=this.injector.get(e.z2F);n===d.components[0]&&(("enabledNonBlocking"===a.initialNavigation||void 0===a.initialNavigation)&&l.initialNavigation(),o.setUpPreloading(),s.init(),l.resetRootComponentType(d.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),i}();return r.\u0275fac=function(t){return new(t||r)(e.LFG(e.zs3))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r}();function bae(r){return r.appInitializer.bind(r)}function Cae(r){return r.bootstrapListener.bind(r)}var xV=new e.OlP("Router Initializer"),AA=function r(){(0,v.Z)(this,r)},Ja=f(16775),Vr=function(){var r=function(){function i(t){(0,v.Z)(this,i),this.httpServer=t,this.serverIds=[],this.serviceInitialized=new Un.xQ,this.serverIds=this.getServerIds(),this.isServiceInitialized=!0,this.serviceInitialized.next(this.isServiceInitialized)}return(0,g.Z)(i,[{key:"getServerIds",value:function(){var n=localStorage.getItem("serverIds");return(null==n?void 0:n.length)>0?n.split(","):[]}},{key:"updateServerIds",value:function(){localStorage.removeItem("serverIds"),localStorage.setItem("serverIds",this.serverIds.toString())}},{key:"get",value:function(n){var a=JSON.parse(localStorage.getItem("server-".concat(n)));return new Promise(function(s){s(a)})}},{key:"create",value:function(n){return n.id=this.serverIds.length+1,localStorage.setItem("server-".concat(n.id),JSON.stringify(n)),this.serverIds.push("server-".concat(n.id)),this.updateServerIds(),new Promise(function(o){o(n)})}},{key:"update",value:function(n){return localStorage.removeItem("server-".concat(n.id)),localStorage.setItem("server-".concat(n.id),JSON.stringify(n)),new Promise(function(o){o(n)})}},{key:"findAll",value:function(){var n=this;return new Promise(function(o){var s=[];n.serverIds.forEach(function(l){var d=JSON.parse(localStorage.getItem(l));s.push(d)}),o(s)})}},{key:"delete",value:function(n){return localStorage.removeItem("server-".concat(n.id)),this.serverIds=this.serverIds.filter(function(o){return o!=="server-".concat(n.id)}),this.updateServerIds(),new Promise(function(o){o(n.id)})}},{key:"getServerUrl",value:function(n){return"".concat(n.protocol,"//").concat(n.host,":").concat(n.port,"/")}},{key:"checkServerVersion",value:function(n){return this.httpServer.get(n,"/version")}},{key:"getLocalServer",value:function(n,a){var o=this;return new Promise(function(l,d){o.findAll().then(function(h){var C=h.find(function(N){return"bundled"===N.location});if(C)C.host=n,C.port=a,C.protocol=location.protocol,o.update(C).then(function(N){l(N)},d);else{var P=new AA;P.name="local",P.host=n,P.port=a,P.location="bundled",P.protocol=location.protocol,o.create(P).then(function(N){l(N)},d)}},d)})}}]),i}();return r.\u0275fac=function(t){return new(t||r)(e.LFG(Ja.wh))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r}(),z1=function r(i,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,v.Z)(this,r),this.visible=i,this.error=t,this.clear=n},zf=function(){var r=function(){function i(){(0,v.Z)(this,i),this.state=new $i.X(new z1(!1))}return(0,g.Z)(i,[{key:"setError",value:function(n){this.state.next(new z1(!1,n.error))}},{key:"clear",value:function(){this.state.next(new z1(!1,null,!0))}},{key:"activate",value:function(){this.state.next(new z1(!0))}},{key:"deactivate",value:function(){this.state.next(new z1(!1))}}]),i}();return r.\u0275fac=function(t){return new(t||r)},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r}();function Tae(r,i){if(1&r&&(e.O4$(),e._UZ(0,"circle",3)),2&r){var t=e.oxw();e.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),e.uIk("r",t._getCircleRadius())}}function kae(r,i){if(1&r&&(e.O4$(),e._UZ(0,"circle",3)),2&r){var t=e.oxw();e.Udp("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),e.uIk("r",t._getCircleRadius())}}function wae(r,i){if(1&r&&(e.O4$(),e._UZ(0,"circle",3)),2&r){var t=e.oxw();e.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),e.uIk("r",t._getCircleRadius())}}function xae(r,i){if(1&r&&(e.O4$(),e._UZ(0,"circle",3)),2&r){var t=e.oxw();e.Udp("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),e.uIk("r",t._getCircleRadius())}}var Aae=(0,sn.pj)(function(){return function r(i){(0,v.Z)(this,r),this._elementRef=i}}(),"primary"),EV=new e.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),Y_=function(r){(0,O.Z)(t,r);var i=(0,y.Z)(t);function t(n,a,o,s,l){var d;(0,v.Z)(this,t),(d=i.call(this,n))._document=o,d._diameter=100,d._value=0,d.mode="determinate";var h=t._diameters;return d._spinnerAnimationLabel=d._getSpinnerAnimationLabel(),h.has(o.head)||h.set(o.head,new Set([100])),d._noopAnimations="NoopAnimations"===s&&!!l&&!l._forceAnimations,l&&(l.diameter&&(d.diameter=l.diameter),l.strokeWidth&&(d.strokeWidth=l.strokeWidth)),d}return(0,g.Z)(t,[{key:"diameter",get:function(){return this._diameter},set:function(a){this._diameter=(0,Hn.su)(a),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(a){this._strokeWidth=(0,Hn.su)(a)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(a){this._value=Math.max(0,Math.min(100,(0,Hn.su)(a)))}},{key:"ngOnInit",value:function(){var a=this._elementRef.nativeElement;this._styleRoot=(0,vi.kV)(a)||this._document.head,this._attachStyleNode(),a.classList.add("mat-progress-spinner-indeterminate-animation")}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var a=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(a," ").concat(a)}},{key:"_getStrokeCircumference",value:function(){return 2*Math.PI*this._getCircleRadius()}},{key:"_getStrokeDashOffset",value:function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}},{key:"_getCircleStrokeWidth",value:function(){return this.strokeWidth/this.diameter*100}},{key:"_attachStyleNode",value:function(){var a=this._styleRoot,o=this._diameter,s=t._diameters,l=s.get(a);if(!l||!l.has(o)){var d=this._document.createElement("style");d.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),d.textContent=this._getAnimationText(),a.appendChild(d),l||(l=new Set,s.set(a,l)),l.add(o)}}},{key:"_getAnimationText",value:function(){var a=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,"".concat(.95*a)).replace(/END_VALUE/g,"".concat(.2*a)).replace(/DIAMETER/g,"".concat(this._spinnerAnimationLabel))}},{key:"_getSpinnerAnimationLabel",value:function(){return this.diameter.toString().replace(".","_")}}]),t}(Aae);Y_._diameters=new WeakMap,Y_.\u0275fac=function(i){return new(i||Y_)(e.Y36(e.SBq),e.Y36(vi.t4),e.Y36(Pt.K0,8),e.Y36(Js.Qb,8),e.Y36(EV))},Y_.\u0275cmp=e.Xpm({type:Y_,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(i,t){2&i&&(e.uIk("aria-valuemin","determinate"===t.mode?0:null)("aria-valuemax","determinate"===t.mode?100:null)("aria-valuenow","determinate"===t.mode?t.value:null)("mode",t.mode),e.Udp("width",t.diameter,"px")("height",t.diameter,"px"),e.ekj("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[e.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(i,t){1&i&&(e.O4$(),e.TgZ(0,"svg",0),e.YNc(1,Tae,1,9,"circle",1),e.YNc(2,kae,1,7,"circle",2),e.qZA()),2&i&&(e.Udp("width",t.diameter,"px")("height",t.diameter,"px"),e.Q6J("ngSwitch","indeterminate"===t.mode),e.uIk("viewBox",t._getViewBox()),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1))},directives:[Pt.RF,Pt.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0});var DA,MV=function(){var r=function(i){(0,O.Z)(n,i);var t=(0,y.Z)(n);function n(a,o,s,l,d){var h;return(0,v.Z)(this,n),(h=t.call(this,a,o,s,l,d)).mode="indeterminate",h}return n}(Y_);return r.\u0275fac=function(t){return new(t||r)(e.Y36(e.SBq),e.Y36(vi.t4),e.Y36(Pt.K0,8),e.Y36(Js.Qb,8),e.Y36(EV))},r.\u0275cmp=e.Xpm({type:r,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,n){2&t&&(e.Udp("width",n.diameter,"px")("height",n.diameter,"px"),e.ekj("_mat-animation-noopable",n._noopAnimations))},inputs:{color:"color"},features:[e.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,n){1&t&&(e.O4$(),e.TgZ(0,"svg",0),e.YNc(1,wae,1,9,"circle",1),e.YNc(2,xae,1,7,"circle",2),e.qZA()),2&t&&(e.Udp("width",n.diameter,"px")("height",n.diameter,"px"),e.Q6J("ngSwitch","indeterminate"===n.mode),e.uIk("viewBox",n._getViewBox()),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1))},directives:[Pt.RF,Pt.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0}),r}(),Pae=function(){var r=function i(){(0,v.Z)(this,i)};return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[[sn.BQ,Pt.ez],sn.BQ]}),r}(),Iae=f(43334),p6=f(24778),Rae=["*"];function W1(r){var i;return(null===(i=function(){if(void 0===DA&&(DA=null,"undefined"!=typeof window)){var r=window;void 0!==r.trustedTypes&&(DA=r.trustedTypes.createPolicy("angular#components",{createHTML:function(t){return t}}))}return DA}())||void 0===i?void 0:i.createHTML(r))||r}function AV(r){return Error('Unable to find icon with the name "'.concat(r,'"'))}function DV(r){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+"via Angular's DomSanitizer. Attempted URL was \"".concat(r,'".'))}function OV(r){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(r,'".'))}var Km=function r(i,t,n){(0,v.Z)(this,r),this.url=i,this.svgText=t,this.options=n},G1=function(){var r=function(){function i(t,n,a,o){(0,v.Z)(this,i),this._httpClient=t,this._sanitizer=n,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=a}return(0,g.Z)(i,[{key:"addSvgIcon",value:function(n,a,o){return this.addSvgIconInNamespace("",n,a,o)}},{key:"addSvgIconLiteral",value:function(n,a,o){return this.addSvgIconLiteralInNamespace("",n,a,o)}},{key:"addSvgIconInNamespace",value:function(n,a,o,s){return this._addSvgIconConfig(n,a,new Km(o,null,s))}},{key:"addSvgIconResolver",value:function(n){return this._resolvers.push(n),this}},{key:"addSvgIconLiteralInNamespace",value:function(n,a,o,s){var l=this._sanitizer.sanitize(e.q3G.HTML,o);if(!l)throw OV(o);var d=W1(l);return this._addSvgIconConfig(n,a,new Km("",d,s))}},{key:"addSvgIconSet",value:function(n,a){return this.addSvgIconSetInNamespace("",n,a)}},{key:"addSvgIconSetLiteral",value:function(n,a){return this.addSvgIconSetLiteralInNamespace("",n,a)}},{key:"addSvgIconSetInNamespace",value:function(n,a,o){return this._addSvgIconSetConfig(n,new Km(a,null,o))}},{key:"addSvgIconSetLiteralInNamespace",value:function(n,a,o){var s=this._sanitizer.sanitize(e.q3G.HTML,a);if(!s)throw OV(a);var l=W1(s);return this._addSvgIconSetConfig(n,new Km("",l,o))}},{key:"registerFontClassAlias",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;return this._fontCssClassesByAlias.set(n,a),this}},{key:"classNameForFontAlias",value:function(n){return this._fontCssClassesByAlias.get(n)||n}},{key:"setDefaultFontSetClass",value:function(n){return this._defaultFontSetClass=n,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(n){var a=this,o=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,n);if(!o)throw DV(n);var s=this._cachedIconsByUrl.get(o);return s?(0,Kn.of)(OA(s)):this._loadSvgIconFromConfig(new Km(n,null)).pipe((0,Ns.b)(function(l){return a._cachedIconsByUrl.set(o,l)}),(0,kr.U)(function(l){return OA(l)}))}},{key:"getNamedSvgIcon",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=PV(a,n),s=this._svgIconConfigs.get(o);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(a,n))return this._svgIconConfigs.set(o,s),this._getSvgFromConfig(s);var l=this._iconSetConfigs.get(a);return l?this._getSvgFromIconSetConfigs(n,l):(0,Iae._)(AV(o))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(n){return n.svgText?(0,Kn.of)(OA(this._svgElementFromConfig(n))):this._loadSvgIconFromConfig(n).pipe((0,kr.U)(function(a){return OA(a)}))}},{key:"_getSvgFromIconSetConfigs",value:function(n,a){var o=this,s=this._extractIconWithNameFromAnySet(n,a);if(s)return(0,Kn.of)(s);var l=a.filter(function(d){return!d.svgText}).map(function(d){return o._loadSvgIconSetFromConfig(d).pipe((0,jf.K)(function(h){var C=o._sanitizer.sanitize(e.q3G.RESOURCE_URL,d.url),P="Loading icon set URL: ".concat(C," failed: ").concat(h.message);return o._errorHandler.handleError(new Error(P)),(0,Kn.of)(null)}))});return(0,p6.D)(l).pipe((0,kr.U)(function(){var d=o._extractIconWithNameFromAnySet(n,a);if(!d)throw AV(n);return d}))}},{key:"_extractIconWithNameFromAnySet",value:function(n,a){for(var o=a.length-1;o>=0;o--){var s=a[o];if(s.svgText&&s.svgText.toString().indexOf(n)>-1){var l=this._svgElementFromConfig(s),d=this._extractSvgIconFromSet(l,n,s.options);if(d)return d}}return null}},{key:"_loadSvgIconFromConfig",value:function(n){var a=this;return this._fetchIcon(n).pipe((0,Ns.b)(function(o){return n.svgText=o}),(0,kr.U)(function(){return a._svgElementFromConfig(n)}))}},{key:"_loadSvgIconSetFromConfig",value:function(n){return n.svgText?(0,Kn.of)(null):this._fetchIcon(n).pipe((0,Ns.b)(function(a){return n.svgText=a}))}},{key:"_extractSvgIconFromSet",value:function(n,a,o){var s=n.querySelector('[id="'.concat(a,'"]'));if(!s)return null;var l=s.cloneNode(!0);if(l.removeAttribute("id"),"svg"===l.nodeName.toLowerCase())return this._setSvgAttributes(l,o);if("symbol"===l.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(l),o);var d=this._svgElementFromString(W1(""));return d.appendChild(l),this._setSvgAttributes(d,o)}},{key:"_svgElementFromString",value:function(n){var a=this._document.createElement("DIV");a.innerHTML=n;var o=a.querySelector("svg");if(!o)throw Error(" tag not found");return o}},{key:"_toSvgElement",value:function(n){for(var a=this._svgElementFromString(W1("")),o=n.attributes,s=0;s*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),r}(),Yae=function(){var r=function(i){(0,O.Z)(n,i);var t=(0,y.Z)(n);function n(a,o,s){return(0,v.Z)(this,n),t.call(this,o,a,s)}return(0,g.Z)(n,[{key:"_haltDisabledEvents",value:function(o){this.disabled&&(o.preventDefault(),o.stopImmediatePropagation())}}]),n}(En);return r.\u0275fac=function(t){return new(t||r)(e.Y36(Gi.tE),e.Y36(e.SBq),e.Y36(Js.Qb,8))},r.\u0275cmp=e.Xpm({type:r,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(t,n){1&t&&e.NdJ("click",function(o){return n._haltDisabledEvents(o)}),2&t&&(e.uIk("tabindex",n.disabled?-1:n.tabIndex||0)("disabled",n.disabled||null)("aria-disabled",n.disabled.toString()),e.ekj("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mat-button-disabled",n.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[e.qOj],attrs:RV,ngContentSelectors:NV,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,n){1&t&&(e.F$t(),e.TgZ(0,"span",0),e.Hsn(1),e.qZA(),e._UZ(2,"span",1),e._UZ(3,"span",2)),2&t&&(e.xp6(2),e.ekj("mat-button-ripple-round",n.isRoundButton||n.isIconButton),e.Q6J("matRippleDisabled",n._isRippleDisabled())("matRippleCentered",n.isIconButton)("matRippleTrigger",n._getHostElement()))},directives:[sn.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),r}(),PA=function(){var r=function i(){(0,v.Z)(this,i)};return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[[sn.si,sn.BQ],sn.BQ]}),r}(),ui=f(51628),Jae=f(38869),Qae=f(46656),ZV=new Set,Kae=function(){var r=function(){function i(t){(0,v.Z)(this,i),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):$ae}return(0,g.Z)(i,[{key:"matchMedia",value:function(n){return(this._platform.WEBKIT||this._platform.BLINK)&&function(r){if(!ZV.has(r))try{J_||((J_=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(J_)),J_.sheet&&(J_.sheet.insertRule("@media ".concat(r," {body{ }}"),0),ZV.add(r))}catch(i){console.error(i)}}(n),this._matchMedia(n)}}]),i}();return r.\u0275fac=function(t){return new(t||r)(e.LFG(vi.t4))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r}();function $ae(r){return{matches:"all"===r||""===r,media:r,addListener:function(){},removeListener:function(){}}}var h6=function(){var r=function(){function i(t,n){(0,v.Z)(this,i),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new Un.xQ}return(0,g.Z)(i,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(n){var a=this;return LV((0,Hn.Eq)(n)).some(function(s){return a._registerQuery(s).mql.matches})}},{key:"observe",value:function(n){var a=this,s=LV((0,Hn.Eq)(n)).map(function(d){return a._registerQuery(d).observable}),l=(0,tp.aj)(s);return(l=(0,wH.z)(l.pipe((0,Ea.q)(1)),l.pipe((0,Jae.T)(1),(0,Qae.b)(0)))).pipe((0,kr.U)(function(d){var h={matches:!1,breakpoints:{}};return d.forEach(function(C){var P=C.matches,N=C.query;h.matches=h.matches||P,h.breakpoints[N]=P}),h}))}},{key:"_registerQuery",value:function(n){var a=this;if(this._queries.has(n))return this._queries.get(n);var o=this._mediaMatcher.matchMedia(n),l={observable:new wo.y(function(d){var h=function(P){return a._zone.run(function(){return d.next(P)})};return o.addListener(h),function(){o.removeListener(h)}}).pipe((0,$o.O)(o),(0,kr.U)(function(d){return{query:n,matches:d.matches}}),(0,Ai.R)(this._destroySubject)),mql:o};return this._queries.set(n,l),l}}]),i}();return r.\u0275fac=function(t){return new(t||r)(e.LFG(Kae),e.LFG(e.R0b))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r}();function LV(r){return r.map(function(i){return i.split(",")}).reduce(function(i,t){return i.concat(t)}).map(function(i){return i.trim()})}var Wf_Medium="(min-width: 960px) and (max-width: 1279.98px)",Wf_Large="(min-width: 1280px) and (max-width: 1919.98px)",ta=f(5711),eoe={tooltipState:(0,en.X$)("state",[(0,en.SB)("initial, void, hidden",(0,en.oB)({opacity:0,transform:"scale(0)"})),(0,en.SB)("visible",(0,en.oB)({transform:"scale(1)"})),(0,en.eR)("* => visible",(0,en.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,en.F4)([(0,en.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,en.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,en.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,en.eR)("* => hidden",(0,en.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,en.oB)({opacity:0})))])},FV="tooltip-panel",BV=(0,vi.i$)({passive:!0}),UV=new e.OlP("mat-tooltip-scroll-strategy"),ioe={provide:UV,deps:[Ga.aV],useFactory:function(r){return function(){return r.scrollStrategies.reposition({scrollThrottle:20})}}},aoe=new e.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),soe=function(){var r=function(){function i(t,n,a,o,s,l,d,h,C,P,N,q){var Q=this;(0,v.Z)(this,i),this._overlay=t,this._elementRef=n,this._scrollDispatcher=a,this._viewContainerRef=o,this._ngZone=s,this._platform=l,this._ariaDescriber=d,this._focusMonitor=h,this._dir=P,this._defaultOptions=N,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Un.xQ,this._handleKeydown=function(te){Q._isTooltipVisible()&&te.keyCode===ui.hY&&!(0,ui.Vb)(te)&&(te.preventDefault(),te.stopPropagation(),Q._ngZone.run(function(){return Q.hide(0)}))},this._scrollStrategy=C,this._document=q,N&&(N.position&&(this.position=N.position),N.touchGestures&&(this.touchGestures=N.touchGestures)),P.change.pipe((0,Ai.R)(this._destroyed)).subscribe(function(){Q._overlayRef&&Q._updatePosition(Q._overlayRef)}),s.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",Q._handleKeydown)})}return(0,g.Z)(i,[{key:"position",get:function(){return this._position},set:function(n){var a;n!==this._position&&(this._position=n,this._overlayRef)&&(this._updatePosition(this._overlayRef),null===(a=this._tooltipInstance)||void 0===a||a.show(0),this._overlayRef.updatePosition())}},{key:"disabled",get:function(){return this._disabled},set:function(n){this._disabled=(0,Hn.Ig)(n),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(n){var a=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=n?String(n).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){a._ariaDescriber.describe(a._elementRef.nativeElement,a.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(n){this._tooltipClass=n,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var n=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,Ai.R)(this._destroyed)).subscribe(function(a){a?"keyboard"===a&&n._ngZone.run(function(){return n.show()}):n._ngZone.run(function(){return n.hide(0)})})}},{key:"ngOnDestroy",value:function(){var n=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),n.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(a){var o=(0,b.Z)(a,2);n.removeEventListener(o[0],o[1],BV)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(n,this.message,"tooltip"),this._focusMonitor.stopMonitoring(n)}},{key:"show",value:function(){var n=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var o=this._createOverlay();this._detach(),this._portal=this._portal||new ta.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=o.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,Ai.R)(this._destroyed)).subscribe(function(){return n._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(a)}}},{key:"hide",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(n)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var n=this;if(this._overlayRef)return this._overlayRef;var a=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),o=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(a);return o.positionChanges.pipe((0,Ai.R)(this._destroyed)).subscribe(function(s){n._updateCurrentPositionClass(s.connectionPair),n._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&n._tooltipInstance.isVisible()&&n._ngZone.run(function(){return n.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:o,panelClass:"".concat(this._cssClassPrefix,"-").concat(FV),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,Ai.R)(this._destroyed)).subscribe(function(){return n._detach()}),this._overlayRef.outsidePointerEvents().pipe((0,Ai.R)(this._destroyed)).subscribe(function(){var s;return null===(s=n._tooltipInstance)||void 0===s?void 0:s._handleBodyInteraction()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(n){var a=n.getConfig().positionStrategy,o=this._getOrigin(),s=this._getOverlayPosition();a.withPositions([this._addOffset((0,D.Z)((0,D.Z)({},o.main),s.main)),this._addOffset((0,D.Z)((0,D.Z)({},o.fallback),s.fallback))])}},{key:"_addOffset",value:function(n){return n}},{key:"_getOrigin",value:function(){var o,n=!this._dir||"ltr"==this._dir.value,a=this.position;"above"==a||"below"==a?o={originX:"center",originY:"above"==a?"top":"bottom"}:"before"==a||"left"==a&&n||"right"==a&&!n?o={originX:"start",originY:"center"}:("after"==a||"right"==a&&n||"left"==a&&!n)&&(o={originX:"end",originY:"center"});var s=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:s.x,originY:s.y}}}},{key:"_getOverlayPosition",value:function(){var o,n=!this._dir||"ltr"==this._dir.value,a=this.position;"above"==a?o={overlayX:"center",overlayY:"bottom"}:"below"==a?o={overlayX:"center",overlayY:"top"}:"before"==a||"left"==a&&n||"right"==a&&!n?o={overlayX:"end",overlayY:"center"}:("after"==a||"right"==a&&n||"left"==a&&!n)&&(o={overlayX:"start",overlayY:"center"});var s=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:s.x,overlayY:s.y}}}},{key:"_updateTooltipMessage",value:function(){var n=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Ea.q)(1),(0,Ai.R)(this._destroyed)).subscribe(function(){n._tooltipInstance&&n._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(n){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=n,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(n,a){return"above"===this.position||"below"===this.position?"top"===a?a="bottom":"bottom"===a&&(a="top"):"end"===n?n="start":"start"===n&&(n="end"),{x:n,y:a}}},{key:"_updateCurrentPositionClass",value:function(n){var l,a=n.overlayY,o=n.originX;if((l="center"===a?this._dir&&"rtl"===this._dir.value?"end"===o?"left":"right":"start"===o?"left":"right":"bottom"===a&&"top"===n.originY?"above":"below")!==this._currentPosition){var d=this._overlayRef;if(d){var h="".concat(this._cssClassPrefix,"-").concat(FV,"-");d.removePanelClass(h+this._currentPosition),d.addPanelClass(h+l)}this._currentPosition=l}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var n=this;this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){n._setupPointerExitEventsIfNeeded(),n.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){n._setupPointerExitEventsIfNeeded(),clearTimeout(n._touchstartTimeout),n._touchstartTimeout=setTimeout(function(){return n.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var a,n=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var o=[];if(this._platformSupportsMouseEvents())o.push(["mouseleave",function(){return n.hide()}],["wheel",function(l){return n._wheelListener(l)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var s=function(){clearTimeout(n._touchstartTimeout),n.hide(n._defaultOptions.touchendHideDelay)};o.push(["touchend",s],["touchcancel",s])}this._addListeners(o),(a=this._passiveListeners).push.apply(a,o)}}},{key:"_addListeners",value:function(n){var a=this;n.forEach(function(o){var s=(0,b.Z)(o,2);a._elementRef.nativeElement.addEventListener(s[0],s[1],BV)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(n){if(this._isTooltipVisible()){var a=this._document.elementFromPoint(n.clientX,n.clientY),o=this._elementRef.nativeElement;a!==o&&!o.contains(a)&&this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var n=this.touchGestures;if("off"!==n){var a=this._elementRef.nativeElement,o=a.style;("on"===n||"INPUT"!==a.nodeName&&"TEXTAREA"!==a.nodeName)&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),("on"===n||!a.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}}]),i}();return r.\u0275fac=function(t){e.$Z()},r.\u0275dir=e.lG2({type:r,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),r}(),ts=function(){var r=function(i){(0,O.Z)(n,i);var t=(0,y.Z)(n);function n(a,o,s,l,d,h,C,P,N,q,Q,te){var se;return(0,v.Z)(this,n),(se=t.call(this,a,o,s,l,d,h,C,P,N,q,Q,te))._tooltipComponent=uoe,se}return n}(soe);return r.\u0275fac=function(t){return new(t||r)(e.Y36(Ga.aV),e.Y36(e.SBq),e.Y36(ku.mF),e.Y36(e.s_b),e.Y36(e.R0b),e.Y36(vi.t4),e.Y36(Gi.$s),e.Y36(Gi.tE),e.Y36(UV),e.Y36(Ms.Is,8),e.Y36(aoe,8),e.Y36(Pt.K0))},r.\u0275dir=e.lG2({type:r,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[e.qOj]}),r}(),loe=function(){var r=function(){function i(t){(0,v.Z)(this,i),this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Un.xQ}return(0,g.Z)(i,[{key:"show",value:function(n){var a=this;clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){a._visibility="visible",a._showTimeoutId=void 0,a._onShow(),a._markForCheck()},n)}},{key:"hide",value:function(n){var a=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){a._visibility="hidden",a._hideTimeoutId=void 0,a._markForCheck()},n)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(n){var a=n.toState;"hidden"===a&&!this.isVisible()&&this._onHide.next(),("visible"===a||"hidden"===a)&&(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_onShow",value:function(){}}]),i}();return r.\u0275fac=function(t){return new(t||r)(e.Y36(e.sBO))},r.\u0275dir=e.lG2({type:r}),r}(),uoe=function(){var r=function(i){(0,O.Z)(n,i);var t=(0,y.Z)(n);function n(a,o){var s;return(0,v.Z)(this,n),(s=t.call(this,a))._breakpointObserver=o,s._isHandset=s._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),s}return n}(loe);return r.\u0275fac=function(t){return new(t||r)(e.Y36(e.sBO),e.Y36(h6))},r.\u0275cmp=e.Xpm({type:r,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,n){2&t&&e.Udp("zoom","visible"===n._visibility?1:null)},features:[e.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,n){var a;1&t&&(e.TgZ(0,"div",0),e.NdJ("@state.start",function(){return n._animationStart()})("@state.done",function(s){return n._animationDone(s)}),e.ALo(1,"async"),e._uU(2),e.qZA()),2&t&&(e.ekj("mat-tooltip-handset",null==(a=e.lcZ(1,5,n._isHandset))?null:a.matches),e.Q6J("ngClass",n.tooltipClass)("@state",n._visibility),e.xp6(2),e.Oqu(n.message))},directives:[Pt.mk],pipes:[Pt.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[eoe.tooltipState]},changeDetection:0}),r}(),HV=function(){var r=function i(){(0,v.Z)(this,i)};return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({providers:[ioe],imports:[[Gi.rt,Pt.ez,Ga.U8,sn.BQ],sn.BQ,ku.ZD]}),r}();function coe(r,i){1&r&&(e.TgZ(0,"div",4),e._UZ(1,"mat-spinner",5),e.qZA())}function doe(r,i){if(1&r){var t=e.EpF();e.TgZ(0,"div",6),e.TgZ(1,"div",7),e.TgZ(2,"mat-icon"),e._uU(3,"error_outline"),e.qZA(),e.qZA(),e.TgZ(4,"div"),e._uU(5),e.qZA(),e.TgZ(6,"div"),e.TgZ(7,"button",8),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).refresh()}),e.TgZ(8,"mat-icon"),e._uU(9,"refresh"),e.qZA(),e.qZA(),e.TgZ(10,"button",9),e.TgZ(11,"mat-icon"),e._uU(12,"home"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&r){var n=e.oxw(2);e.xp6(5),e.hij("Error occurred: ",n.error.message,"")}}function poe(r,i){if(1&r&&(e.TgZ(0,"div",1),e.YNc(1,coe,2,0,"div",2),e.YNc(2,doe,13,1,"div",3),e.qZA()),2&r){var t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.visible&&!t.error),e.xp6(1),e.Q6J("ngIf",t.error)}}var m6=function(){var r=function(){function i(t,n){(0,v.Z)(this,i),this.progressService=t,this.router=n,this.visible=!1}return(0,g.Z)(i,[{key:"ngOnInit",value:function(){var n=this;this.progressService.state.subscribe(function(a){n.visible=a.visible,a.error&&!n.error&&(n.error=a.error),a.clear&&(n.error=null)}),this.routerSubscription=this.router.events.subscribe(function(){n.progressService.clear()})}},{key:"refresh",value:function(){this.router.navigateByUrl(this.router.url)}},{key:"ngOnDestroy",value:function(){this.routerSubscription.unsubscribe()}}]),i}();return r.\u0275fac=function(t){return new(t||r)(e.Y36(zf),e.Y36(xr))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-progress"]],decls:1,vars:1,consts:[["class","overlay",4,"ngIf"],[1,"overlay"],["class","loading-spinner",4,"ngIf"],["class","error-state",4,"ngIf"],[1,"loading-spinner"],["color","primary"],[1,"error-state"],[1,"error-icon"],["mat-button","","matTooltip","Refresh page","matTooltipClass","custom-tooltip",3,"click"],["mat-button","","routerLink","/","matTooltip","Go to home","matTooltipClass","custom-tooltip"]],template:function(t,n){1&t&&e.YNc(0,poe,3,2,"div",0),2&t&&e.Q6J("ngIf",n.visible||n.error)},directives:[Pt.O5,MV,er,En,ts,go],styles:[".overlay[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;top:0;left:0;right:0;bottom:0;background-color:#00000080;z-index:2000}.loading-spinner[_ngcontent-%COMP%], .error-state[_ngcontent-%COMP%]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}.error-state[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{text-align:center}.error-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px}"]}),r}(),foe=function(){var r=function(){function i(t,n,a,o){(0,v.Z)(this,i),this.router=t,this.serverService=n,this.progressService=a,this.document=o}return(0,g.Z)(i,[{key:"ngOnInit",value:function(){var n=this;this.progressService.activate(),setTimeout(function(){var a;a=parseInt(n.document.location.port,10)?parseInt(n.document.location.port,10):"https:"==n.document.location.protocol?443:80,n.serverService.getLocalServer(n.document.location.hostname,a).then(function(o){n.progressService.deactivate(),n.router.navigate(["/server",o.id,"projects"])})},100)}}]),i}();return r.\u0275fac=function(t){return new(t||r)(e.Y36(xr),e.Y36(Vr),e.Y36(zf),e.Y36(Pt.K0))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-bundled-server-finder"]],decls:1,vars:0,template:function(t,n){1&t&&e._UZ(0,"app-progress")},directives:[m6],styles:[""]}),r}(),Sa=f(61855),IA=function(){var r=function(){function i(){(0,v.Z)(this,i),this.dataChange=new $i.X([])}return(0,g.Z)(i,[{key:"data",get:function(){return this.dataChange.value}},{key:"addServer",value:function(n){var a=this.data.slice();a.push(n),this.dataChange.next(a)}},{key:"addServers",value:function(n){this.dataChange.next(n)}},{key:"remove",value:function(n){var a=this.data.indexOf(n);a>=0&&(this.data.splice(a,1),this.dataChange.next(this.data.slice()))}},{key:"find",value:function(n){return this.data.find(function(a){return a.name===n})}},{key:"findIndex",value:function(n){return this.data.findIndex(function(a){return a.name===n})}},{key:"update",value:function(n){var a=this.findIndex(n.name);a>=0&&(this.data[a]=n,this.dataChange.next(this.data.slice()))}}]),i}();return r.\u0275fac=function(t){return new(t||r)},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r}();function hoe(r,i){if(1&r){var t=e.EpF();e.TgZ(0,"div",1),e.TgZ(1,"button",2),e.NdJ("click",function(){return e.CHM(t),e.oxw().action()}),e._uU(2),e.qZA(),e.qZA()}if(2&r){var n=e.oxw();e.xp6(2),e.Oqu(n.data.action)}}function moe(r,i){}var VV=new e.OlP("MatSnackBarData"),RA=function r(){(0,v.Z)(this,r),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},voe=Math.pow(2,31)-1,v6=function(){function r(i,t){var n=this;(0,v.Z)(this,r),this._overlayRef=t,this._afterDismissed=new Un.xQ,this._afterOpened=new Un.xQ,this._onAction=new Un.xQ,this._dismissedByAction=!1,this.containerInstance=i,this.onAction().subscribe(function(){return n.dismiss()}),i._onExit.subscribe(function(){return n._finishDismiss()})}return(0,g.Z)(r,[{key:"dismiss",value:function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}},{key:"dismissWithAction",value:function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete()),clearTimeout(this._durationTimeoutId)}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(t){var n=this;this._durationTimeoutId=setTimeout(function(){return n.dismiss()},Math.min(t,voe))}},{key:"_open",value:function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}},{key:"_finishDismiss",value:function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}},{key:"afterDismissed",value:function(){return this._afterDismissed}},{key:"afterOpened",value:function(){return this.containerInstance._onEnter}},{key:"onAction",value:function(){return this._onAction}}]),r}(),goe=function(){var r=function(){function i(t,n){(0,v.Z)(this,i),this.snackBarRef=t,this.data=n}return(0,g.Z)(i,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),i}();return r.\u0275fac=function(t){return new(t||r)(e.Y36(v6),e.Y36(VV))},r.\u0275cmp=e.Xpm({type:r,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,n){1&t&&(e.TgZ(0,"span"),e._uU(1),e.qZA(),e.YNc(2,hoe,3,1,"div",0)),2&t&&(e.xp6(1),e.Oqu(n.data.message),e.xp6(1),e.Q6J("ngIf",n.hasAction))},directives:[Pt.O5,En],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),r}(),_oe={snackBarState:(0,en.X$)("state",[(0,en.SB)("void, hidden",(0,en.oB)({transform:"scale(0.8)",opacity:0})),(0,en.SB)("visible",(0,en.oB)({transform:"scale(1)",opacity:1})),(0,en.eR)("* => visible",(0,en.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,en.eR)("* => void, * => hidden",(0,en.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,en.oB)({opacity:0})))])},yoe=function(){var r=function(i){(0,O.Z)(n,i);var t=(0,y.Z)(n);function n(a,o,s,l,d){var h;return(0,v.Z)(this,n),(h=t.call(this))._ngZone=a,h._elementRef=o,h._changeDetectorRef=s,h._platform=l,h.snackBarConfig=d,h._announceDelay=150,h._destroyed=!1,h._onAnnounce=new Un.xQ,h._onExit=new Un.xQ,h._onEnter=new Un.xQ,h._animationState="void",h.attachDomPortal=function(C){return h._assertNotAttached(),h._applySnackBarClasses(),h._portalOutlet.attachDomPortal(C)},h._live="assertive"!==d.politeness||d.announcementMessage?"off"===d.politeness?"off":"polite":"assertive",h._platform.FIREFOX&&("polite"===h._live&&(h._role="status"),"assertive"===h._live&&(h._role="alert")),h}return(0,g.Z)(n,[{key:"attachComponentPortal",value:function(o){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(o)}},{key:"attachTemplatePortal",value:function(o){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(o)}},{key:"onAnimationEnd",value:function(o){var l=o.toState;if(("void"===l&&"void"!==o.fromState||"hidden"===l)&&this._completeExit(),"visible"===l){var d=this._onEnter;this._ngZone.run(function(){d.next(),d.complete()})}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}},{key:"exit",value:function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var o=this;this._ngZone.onMicrotaskEmpty.pipe((0,Ea.q)(1)).subscribe(function(){o._onExit.next(),o._onExit.complete()})}},{key:"_applySnackBarClasses",value:function(){var o=this._elementRef.nativeElement,s=this.snackBarConfig.panelClass;s&&(Array.isArray(s)?s.forEach(function(l){return o.classList.add(l)}):o.classList.add(s)),"center"===this.snackBarConfig.horizontalPosition&&o.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&o.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_screenReaderAnnounce",value:function(){var o=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){o._announceTimeoutId=setTimeout(function(){var s=o._elementRef.nativeElement.querySelector("[aria-hidden]"),l=o._elementRef.nativeElement.querySelector("[aria-live]");if(s&&l){var d,h=null;o._platform.isBrowser&&document.activeElement instanceof HTMLElement&&s.contains(document.activeElement)&&(h=document.activeElement),s.removeAttribute("aria-hidden"),l.appendChild(s),null===(d=h)||void 0===d||d.focus(),o._onAnnounce.next(),o._onAnnounce.complete()}},o._announceDelay)})}}]),n}(ta.en);return r.\u0275fac=function(t){return new(t||r)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(vi.t4),e.Y36(RA))},r.\u0275cmp=e.Xpm({type:r,selectors:[["snack-bar-container"]],viewQuery:function(t,n){var a;1&t&&e.Gf(ta.Pl,7),2&t&&e.iGM(a=e.CRH())&&(n._portalOutlet=a.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(t,n){1&t&&e.WFA("@state.done",function(o){return n.onAnimationEnd(o)}),2&t&&e.d8E("@state",n._animationState)},features:[e.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.YNc(1,moe,0,0,"ng-template",1),e.qZA(),e._UZ(2,"div")),2&t&&(e.xp6(2),e.uIk("aria-live",n._live)("role",n._role))},directives:[ta.Pl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[_oe.snackBarState]}}),r}(),jV=function(){var r=function i(){(0,v.Z)(this,i)};return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[[Ga.U8,ta.eL,Pt.ez,PA,sn.BQ],sn.BQ]}),r}(),boe=new e.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new RA}}),Soe=function(){var r=function(){function i(t,n,a,o,s,l){(0,v.Z)(this,i),this._overlay=t,this._live=n,this._injector=a,this._breakpointObserver=o,this._parentSnackBar=s,this._defaultConfig=l,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=goe,this.snackBarContainerComponent=yoe,this.handsetCssClass="mat-snack-bar-handset"}return(0,g.Z)(i,[{key:"_openedSnackBarRef",get:function(){var n=this._parentSnackBar;return n?n._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(n){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=n:this._snackBarRefAtThisLevel=n}},{key:"openFromComponent",value:function(n,a){return this._attach(n,a)}},{key:"openFromTemplate",value:function(n,a){return this._attach(n,a)}},{key:"open",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,s=(0,D.Z)((0,D.Z)({},this._defaultConfig),o);return s.data={message:n,action:a},s.announcementMessage===n&&(s.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,s)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(n,a){var s=e.zs3.create({parent:a&&a.viewContainerRef&&a.viewContainerRef.injector||this._injector,providers:[{provide:RA,useValue:a}]}),l=new ta.C5(this.snackBarContainerComponent,a.viewContainerRef,s),d=n.attach(l);return d.instance.snackBarConfig=a,d.instance}},{key:"_attach",value:function(n,a){var o=this,s=(0,D.Z)((0,D.Z)((0,D.Z)({},new RA),this._defaultConfig),a),l=this._createOverlay(s),d=this._attachSnackBarContainer(l,s),h=new v6(d,l);if(n instanceof e.Rgc){var C=new ta.UE(n,null,{$implicit:s.data,snackBarRef:h});h.instance=d.attachTemplatePortal(C)}else{var P=this._createInjector(s,h),N=new ta.C5(n,void 0,P),q=d.attachComponentPortal(N);h.instance=q.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe((0,Ai.R)(l.detachments())).subscribe(function(Q){l.overlayElement.classList.toggle(o.handsetCssClass,Q.matches)}),s.announcementMessage&&d._onAnnounce.subscribe(function(){o._live.announce(s.announcementMessage,s.politeness)}),this._animateSnackBar(h,s),this._openedSnackBarRef=h,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(n,a){var o=this;n.afterDismissed().subscribe(function(){o._openedSnackBarRef==n&&(o._openedSnackBarRef=null),a.announcementMessage&&o._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){n.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):n.containerInstance.enter(),a.duration&&a.duration>0&&n.afterOpened().subscribe(function(){return n._dismissAfter(a.duration)})}},{key:"_createOverlay",value:function(n){var a=new Ga.X_;a.direction=n.direction;var o=this._overlay.position().global(),s="rtl"===n.direction,l="left"===n.horizontalPosition||"start"===n.horizontalPosition&&!s||"end"===n.horizontalPosition&&s,d=!l&&"center"!==n.horizontalPosition;return l?o.left("0"):d?o.right("0"):o.centerHorizontally(),"top"===n.verticalPosition?o.top("0"):o.bottom("0"),a.positionStrategy=o,this._overlay.create(a)}},{key:"_createInjector",value:function(n,a){return e.zs3.create({parent:n&&n.viewContainerRef&&n.viewContainerRef.injector||this._injector,providers:[{provide:v6,useValue:a},{provide:VV,useValue:n.data}]})}}]),i}();return r.\u0275fac=function(t){return new(t||r)(e.LFG(Ga.aV),e.LFG(Gi.Kd),e.LFG(e.zs3),e.LFG(h6),e.LFG(r,12),e.LFG(boe))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac,providedIn:jV}),r}(),Yn=function(){var r=function(){function i(t,n){(0,v.Z)(this,i),this.snackbar=t,this.zone=n,this.snackBarConfigForSuccess={duration:4e3,panelClass:["snackabar-success"],MatSnackBarHorizontalPosition:"center",MatSnackBarVerticalPosition:"bottom"},this.snackBarConfigForWarning={duration:4e3,panelClass:["snackabar-warning"],MatSnackBarHorizontalPosition:"center",MatSnackBarVerticalPosition:"bottom"},this.snackBarConfigForError={duration:1e4,panelClass:["snackabar-error"],MatSnackBarHorizontalPosition:"center",MatSnackBarVerticalPosition:"bottom"}}return(0,g.Z)(i,[{key:"error",value:function(n){var a=this;this.zone.run(function(){a.snackbar.open(n,"Close",a.snackBarConfigForError)})}},{key:"warning",value:function(n){var a=this;this.zone.run(function(){a.snackbar.open(n,"Close",a.snackBarConfigForWarning)})}},{key:"success",value:function(n){var a=this;this.zone.run(function(){a.snackbar.open(n,"Close",a.snackBarConfigForSuccess)})}}]),i}();return r.\u0275fac=function(t){return new(t||r)(e.LFG(Soe),e.LFG(e.R0b))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r}(),Toe=["*",[["mat-card-footer"]]],koe=["*","mat-card-footer"],g6=function(){var r=function i(){(0,v.Z)(this,i)};return r.\u0275fac=function(t){return new(t||r)},r.\u0275dir=e.lG2({type:r,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),r}(),qV=function(){var r=function i(){(0,v.Z)(this,i)};return r.\u0275fac=function(t){return new(t||r)},r.\u0275dir=e.lG2({type:r,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),r}(),zV=function(){var r=function i(){(0,v.Z)(this,i)};return r.\u0275fac=function(t){return new(t||r)},r.\u0275dir=e.lG2({type:r,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),r}(),woe=function(){var r=function i(){(0,v.Z)(this,i),this.align="start"};return r.\u0275fac=function(t){return new(t||r)},r.\u0275dir=e.lG2({type:r,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(t,n){2&t&&e.ekj("mat-card-actions-align-end","end"===n.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),r}(),Ti=function(){var r=function i(t){(0,v.Z)(this,i),this._animationMode=t};return r.\u0275fac=function(t){return new(t||r)(e.Y36(Js.Qb,8))},r.\u0275cmp=e.Xpm({type:r,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,n){2&t&&e.ekj("_mat-animation-noopable","NoopAnimations"===n._animationMode)},exportAs:["matCard"],ngContentSelectors:koe,decls:2,vars:0,template:function(t,n){1&t&&(e.F$t(Toe),e.Hsn(0),e.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),r}(),xoe=function(){var r=function i(){(0,v.Z)(this,i)};return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[[sn.BQ],sn.BQ]}),r}(),Ln=f(28167),WV=(0,vi.i$)({passive:!0}),Eoe=function(){var r=function(){function i(t,n){(0,v.Z)(this,i),this._platform=t,this._ngZone=n,this._monitoredElements=new Map}return(0,g.Z)(i,[{key:"monitor",value:function(n){var a=this;if(!this._platform.isBrowser)return zm.E;var o=(0,Hn.fI)(n),s=this._monitoredElements.get(o);if(s)return s.subject;var l=new Un.xQ,d="cdk-text-field-autofilled",h=function(P){"cdk-text-field-autofill-start"!==P.animationName||o.classList.contains(d)?"cdk-text-field-autofill-end"===P.animationName&&o.classList.contains(d)&&(o.classList.remove(d),a._ngZone.run(function(){return l.next({target:P.target,isAutofilled:!1})})):(o.classList.add(d),a._ngZone.run(function(){return l.next({target:P.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){o.addEventListener("animationstart",h,WV),o.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(o,{subject:l,unlisten:function(){o.removeEventListener("animationstart",h,WV)}}),l}},{key:"stopMonitoring",value:function(n){var a=(0,Hn.fI)(n),o=this._monitoredElements.get(a);o&&(o.unlisten(),o.subject.complete(),a.classList.remove("cdk-text-field-autofill-monitored"),a.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(a))}},{key:"ngOnDestroy",value:function(){var n=this;this._monitoredElements.forEach(function(a,o){return n.stopMonitoring(o)})}}]),i}();return r.\u0275fac=function(t){return new(t||r)(e.LFG(vi.t4),e.LFG(e.R0b))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r}(),GV=function(){var r=function i(){(0,v.Z)(this,i)};return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[[vi.ud]]}),r}(),Moe=new e.OlP("MAT_INPUT_VALUE_ACCESSOR"),Aoe=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Doe=0,Ooe=(0,sn.FD)(function(){return function r(i,t,n,a){(0,v.Z)(this,r),this._defaultErrorStateMatcher=i,this._parentForm=t,this._parentFormGroup=n,this.ngControl=a}}()),ir=function(){var r=function(i){(0,O.Z)(n,i);var t=(0,y.Z)(n);function n(a,o,s,l,d,h,C,P,N,q){var Q;(0,v.Z)(this,n),(Q=t.call(this,h,l,d,s))._elementRef=a,Q._platform=o,Q._autofillMonitor=P,Q._formField=q,Q._uid="mat-input-".concat(Doe++),Q.focused=!1,Q.stateChanges=new Un.xQ,Q.controlType="mat-input",Q.autofilled=!1,Q._disabled=!1,Q._type="text",Q._readonly=!1,Q._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(Te){return(0,vi.qK)().has(Te)});var te=Q._elementRef.nativeElement,se=te.nodeName.toLowerCase();return Q._inputValueAccessor=C||te,Q._previousNativeValue=Q.value,Q.id=Q.id,o.IOS&&N.runOutsideAngular(function(){a.nativeElement.addEventListener("keyup",function(Te){var $e=Te.target;!$e.value&&0===$e.selectionStart&&0===$e.selectionEnd&&($e.setSelectionRange(1,1),$e.setSelectionRange(0,0))})}),Q._isServer=!Q._platform.isBrowser,Q._isNativeSelect="select"===se,Q._isTextarea="textarea"===se,Q._isInFormField=!!q,Q._isNativeSelect&&(Q.controlType=te.multiple?"mat-native-select-multiple":"mat-native-select"),Q}return(0,g.Z)(n,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(o){this._disabled=(0,Hn.Ig)(o),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(o){this._id=o||this._uid}},{key:"required",get:function(){var o,s,l,d;return null!==(o=null!==(s=this._required)&&void 0!==s?s:null===(l=this.ngControl)||void 0===l||null===(d=l.control)||void 0===d?void 0:d.hasValidator(re.kI.required))&&void 0!==o&&o},set:function(o){this._required=(0,Hn.Ig)(o)}},{key:"type",get:function(){return this._type},set:function(o){this._type=o||"text",this._validateType(),!this._isTextarea&&(0,vi.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(o){o!==this.value&&(this._inputValueAccessor.value=o,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(o){this._readonly=(0,Hn.Ig)(o)}},{key:"ngAfterViewInit",value:function(){var o=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(s){o.autofilled=s.isAutofilled,o.stateChanges.next()})}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(o){this._elementRef.nativeElement.focus(o)}},{key:"_focusChanged",value:function(o){o!==this.focused&&(this.focused=o,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var o,s,l=null!==(o=this._formField)&&void 0!==o&&null!==(s=o._hideControlPlaceholder)&&void 0!==s&&s.call(o)?null:this.placeholder;if(l!==this._previousPlaceholder){var d=this._elementRef.nativeElement;this._previousPlaceholder=l,l?d.setAttribute("placeholder",l):d.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var o=this._elementRef.nativeElement.value;this._previousNativeValue!==o&&(this._previousNativeValue=o,this.stateChanges.next())}},{key:"_validateType",value:function(){Aoe.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var o=this._elementRef.nativeElement.validity;return o&&o.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var o=this._elementRef.nativeElement,s=o.options[0];return this.focused||o.multiple||!this.empty||!!(o.selectedIndex>-1&&s&&s.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(o){o.length?this._elementRef.nativeElement.setAttribute("aria-describedby",o.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}},{key:"_isInlineSelect",value:function(){var o=this._elementRef.nativeElement;return this._isNativeSelect&&(o.multiple||o.size>1)}}]),n}(Ooe);return r.\u0275fac=function(t){return new(t||r)(e.Y36(e.SBq),e.Y36(vi.t4),e.Y36(re.a5,10),e.Y36(re.F,8),e.Y36(re.sg,8),e.Y36(sn.rD),e.Y36(Moe,10),e.Y36(Eoe),e.Y36(e.R0b),e.Y36(Ln.G_,8))},r.\u0275dir=e.lG2({type:r,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:11,hostBindings:function(t,n){1&t&&e.NdJ("focus",function(){return n._focusChanged(!0)})("blur",function(){return n._focusChanged(!1)})("input",function(){return n._onInput()}),2&t&&(e.Ikx("disabled",n.disabled)("required",n.required),e.uIk("id",n.id)("data-placeholder",n.placeholder)("readonly",n.readonly&&!n._isNativeSelect||null)("aria-invalid",n.empty&&n.required?null:n.errorState)("aria-required",n.required),e.ekj("mat-input-server",n._isServer)("mat-native-select-inline",n._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[e._Bn([{provide:Ln.Eo,useExisting:r}]),e.qOj,e.TTD]}),r}(),Poe=function(){var r=function i(){(0,v.Z)(this,i)};return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({providers:[sn.rD],imports:[[GV,Ln.lN,sn.BQ],GV,Ln.lN]}),r}(),yi=f(16400);function Ioe(r,i){1&r&&(e.TgZ(0,"mat-error"),e._uU(1,"You must enter a value"),e.qZA())}function Roe(r,i){if(1&r&&(e.TgZ(0,"mat-option",14),e._uU(1),e.qZA()),2&r){var t=i.$implicit;e.Q6J("value",t.key),e.xp6(1),e.hij(" ",t.name," ")}}function Noe(r,i){if(1&r&&(e.TgZ(0,"mat-option",14),e._uU(1),e.qZA()),2&r){var t=i.$implicit;e.Q6J("value",t.key),e.xp6(1),e.hij(" ",t.name," ")}}function Zoe(r,i){if(1&r&&(e.TgZ(0,"mat-option",14),e._uU(1),e.qZA()),2&r){var t=i.$implicit;e.Q6J("value",t.key),e.xp6(1),e.hij(" ",t.name," ")}}function Loe(r,i){if(1&r&&(e.TgZ(0,"mat-form-field"),e.TgZ(1,"mat-select",15),e.YNc(2,Zoe,2,2,"mat-option",10),e.qZA(),e.qZA()),2&r){var t=e.oxw();e.xp6(2),e.Q6J("ngForOf",t.authorizations)}}function Foe(r,i){1&r&&(e.TgZ(0,"mat-form-field"),e._UZ(1,"input",16),e.qZA())}function Boe(r,i){1&r&&(e.TgZ(0,"mat-form-field"),e._UZ(1,"input",17),e.qZA())}var Uoe=function(){var r=function(){function i(t,n,a,o,s){(0,v.Z)(this,i),this.serverService=t,this.serverDatabase=n,this.route=a,this.router=o,this.toasterService=s,this.serverOptionsVisibility=!1,this.authorizations=[{key:"none",name:"No authorization"},{key:"basic",name:"Basic authorization"}],this.protocols=[{key:"http:",name:"HTTP"},{key:"https:",name:"HTTPS"}],this.locations=[{key:"local",name:"Local"},{key:"remote",name:"Remote"}],this.serverForm=new re.cw({name:new re.NI("",[re.kI.required]),location:new re.NI(""),protocol:new re.NI("http:"),authorization:new re.NI("none"),login:new re.NI(""),password:new re.NI("")})}return(0,g.Z)(i,[{key:"ngOnInit",value:function(){return(0,Sa.mG)(this,void 0,void 0,k().mark(function n(){var a=this;return k().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:this.serverService.isServiceInitialized&&this.getServers(),this.serverService.serviceInitialized.subscribe(function(l){return(0,Sa.mG)(a,void 0,void 0,k().mark(function d(){return k().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:l&&this.getServers();case 1:case"end":return C.stop()}},d,this)}))});case 2:case"end":return s.stop()}},n,this)}))}},{key:"getServers",value:function(){return(0,Sa.mG)(this,void 0,void 0,k().mark(function n(){var s,a=this;return k().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return this.serverIp=this.route.snapshot.paramMap.get("server_ip"),this.serverPort=+this.route.snapshot.paramMap.get("server_port"),this.projectId=this.route.snapshot.paramMap.get("project_id"),d.next=5,this.serverService.findAll();case 5:(s=d.sent.filter(function(h){return h.host===a.serverIp&&h.port===a.serverPort})[0])?this.router.navigate(["/server",s.id,"project",this.projectId]):this.serverOptionsVisibility=!0;case 8:case"end":return d.stop()}},n,this)}))}},{key:"createServer",value:function(){var n=this;if(this.serverForm.get("name").hasError||this.serverForm.get("location").hasError||this.serverForm.get("protocol").hasError)if("basic"!==this.serverForm.get("authorization").value||this.serverForm.get("login").value||this.serverForm.get("password").value){var a=new AA;a.host=this.serverIp,a.port=this.serverPort,a.name=this.serverForm.get("name").value,a.location=this.serverForm.get("location").value,a.protocol=this.serverForm.get("protocol").value,a.authorization=this.serverForm.get("authorization").value,a.login=this.serverForm.get("login").value,a.password=this.serverForm.get("password").value,this.serverService.create(a).then(function(o){n.router.navigate(["/server",o.id,"project",n.projectId])})}else this.toasterService.error("Please use correct values");else this.toasterService.error("Please use correct values")}}]),i}();return r.\u0275fac=function(t){return new(t||r)(e.Y36(Vr),e.Y36(IA),e.Y36(Or),e.Y36(xr),e.Y36(Yn))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-direct-link"]],decls:23,vars:8,consts:[[1,"content",3,"hidden"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],["matInput","","tabindex","1","formControlName","name","placeholder","Name"],[4,"ngIf"],["placeholder","Location","formControlName","location"],[3,"value",4,"ngFor","ngForOf"],["placeholder","Protocol","formControlName","protocol"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["placeholder","Authorization","formControlName","authorization"],["matInput","","tabindex","1","formControlName","login","placeholder","Login"],["matInput","","type","password","tabindex","1","formControlName","password","placeholder","Password"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Add new server"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"mat-card",5),e.TgZ(7,"form",6),e.TgZ(8,"mat-form-field"),e._UZ(9,"input",7),e.YNc(10,Ioe,2,0,"mat-error",8),e.qZA(),e.TgZ(11,"mat-form-field"),e.TgZ(12,"mat-select",9),e.YNc(13,Roe,2,2,"mat-option",10),e.qZA(),e.qZA(),e.TgZ(14,"mat-form-field"),e.TgZ(15,"mat-select",11),e.YNc(16,Noe,2,2,"mat-option",10),e.qZA(),e.qZA(),e.YNc(17,Loe,3,1,"mat-form-field",8),e.YNc(18,Foe,2,0,"mat-form-field",8),e.YNc(19,Boe,2,0,"mat-form-field",8),e.qZA(),e.qZA(),e.TgZ(20,"div",12),e.TgZ(21,"button",13),e.NdJ("click",function(){return n.createServer()}),e._uU(22,"Add server"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.Q6J("hidden",!n.serverOptionsVisibility),e.xp6(7),e.Q6J("formGroup",n.serverForm),e.xp6(3),e.Q6J("ngIf",n.serverForm.get("name").hasError("required")),e.xp6(3),e.Q6J("ngForOf",n.locations),e.xp6(3),e.Q6J("ngForOf",n.protocols),e.xp6(1),e.Q6J("ngIf","remote"===n.serverForm.get("location").value),e.xp6(1),e.Q6J("ngIf","basic"===n.serverForm.get("authorization").value),e.xp6(1),e.Q6J("ngIf","basic"===n.serverForm.get("authorization").value))},directives:[Ti,re._Y,re.JL,re.sg,Ln.KE,ir,re.Fj,re.JJ,re.u,Pt.O5,yi.gD,Pt.sg,En,Ln.TO,sn.ey],styles:["mat-form-field{width:100%}\n"],encapsulation:2}),r}(),Hoe=0,_6=new e.OlP("CdkAccordion"),Voe=function(){var r=function(){function i(){(0,v.Z)(this,i),this._stateChanges=new Un.xQ,this._openCloseAllActions=new Un.xQ,this.id="cdk-accordion-".concat(Hoe++),this._multi=!1}return(0,g.Z)(i,[{key:"multi",get:function(){return this._multi},set:function(n){this._multi=(0,Hn.Ig)(n)}},{key:"openAll",value:function(){this._multi&&this._openCloseAllActions.next(!0)}},{key:"closeAll",value:function(){this._openCloseAllActions.next(!1)}},{key:"ngOnChanges",value:function(n){this._stateChanges.next(n)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}]),i}();return r.\u0275fac=function(t){return new(t||r)},r.\u0275dir=e.lG2({type:r,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[e._Bn([{provide:_6,useExisting:r}]),e.TTD]}),r}(),joe=0,qoe=function(){var r=function(){function i(t,n,a){var o=this;(0,v.Z)(this,i),this.accordion=t,this._changeDetectorRef=n,this._expansionDispatcher=a,this._openCloseAllSubscription=Lo.w.EMPTY,this.closed=new e.vpe,this.opened=new e.vpe,this.destroyed=new e.vpe,this.expandedChange=new e.vpe,this.id="cdk-accordion-child-".concat(joe++),this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=a.listen(function(s,l){o.accordion&&!o.accordion.multi&&o.accordion.id===l&&o.id!==s&&(o.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return(0,g.Z)(i,[{key:"expanded",get:function(){return this._expanded},set:function(n){n=(0,Hn.Ig)(n),this._expanded!==n&&(this._expanded=n,this.expandedChange.emit(n),n?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(n){this._disabled=(0,Hn.Ig)(n)}},{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var n=this;return this.accordion._openCloseAllActions.subscribe(function(a){n.disabled||(n.expanded=a)})}}]),i}();return r.\u0275fac=function(t){return new(t||r)(e.Y36(_6,12),e.Y36(e.sBO),e.Y36(ma.A8))},r.\u0275dir=e.lG2({type:r,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[e._Bn([{provide:_6,useValue:void 0}])]}),r}(),zoe=function(){var r=function i(){(0,v.Z)(this,i)};return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({}),r}(),Woe=["body"];function Goe(r,i){}var Yoe=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Joe=["mat-expansion-panel-header","*","mat-action-row"];function Qoe(r,i){if(1&r&&e._UZ(0,"span",2),2&r){var t=e.oxw();e.Q6J("@indicatorRotate",t._getExpandedState())}}var Koe=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Xoe=["mat-panel-title","mat-panel-description","*"],y6=new e.OlP("MAT_ACCORDION"),YV="225ms cubic-bezier(0.4,0.0,0.2,1)",JV={indicatorRotate:(0,en.X$)("indicatorRotate",[(0,en.SB)("collapsed, void",(0,en.oB)({transform:"rotate(0deg)"})),(0,en.SB)("expanded",(0,en.oB)({transform:"rotate(180deg)"})),(0,en.eR)("expanded <=> collapsed, void => collapsed",(0,en.jt)(YV))]),bodyExpansion:(0,en.X$)("bodyExpansion",[(0,en.SB)("collapsed, void",(0,en.oB)({height:"0px",visibility:"hidden"})),(0,en.SB)("expanded",(0,en.oB)({height:"*",visibility:"visible"})),(0,en.eR)("expanded <=> collapsed, void => collapsed",(0,en.jt)(YV))])},$oe=function(){var r=function i(t){(0,v.Z)(this,i),this._template=t};return r.\u0275fac=function(t){return new(t||r)(e.Y36(e.Rgc))},r.\u0275dir=e.lG2({type:r,selectors:[["ng-template","matExpansionPanelContent",""]]}),r}(),ese=0,QV=new e.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),_c=function(){var r=function(i){(0,O.Z)(n,i);var t=(0,y.Z)(n);function n(a,o,s,l,d,h,C){var P;return(0,v.Z)(this,n),(P=t.call(this,a,o,s))._viewContainerRef=l,P._animationMode=h,P._hideToggle=!1,P.afterExpand=new e.vpe,P.afterCollapse=new e.vpe,P._inputChanges=new Un.xQ,P._headerId="mat-expansion-panel-header-".concat(ese++),P._bodyAnimationDone=new Un.xQ,P.accordion=a,P._document=d,P._bodyAnimationDone.pipe((0,Qb.x)(function(N,q){return N.fromState===q.fromState&&N.toState===q.toState})).subscribe(function(N){"void"!==N.fromState&&("expanded"===N.toState?P.afterExpand.emit():"collapsed"===N.toState&&P.afterCollapse.emit())}),C&&(P.hideToggle=C.hideToggle),P}return(0,g.Z)(n,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(o){this._hideToggle=(0,Hn.Ig)(o)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(o){this._togglePosition=o}},{key:"_hasSpacing",value:function(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var o=this;this._lazyContent&&this.opened.pipe((0,$o.O)(null),(0,ea.h)(function(){return o.expanded&&!o._portal}),(0,Ea.q)(1)).subscribe(function(){o._portal=new ta.UE(o._lazyContent._template,o._viewContainerRef)})}},{key:"ngOnChanges",value:function(o){this._inputChanges.next(o)}},{key:"ngOnDestroy",value:function(){(0,x.Z)((0,Z.Z)(n.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var o=this._document.activeElement,s=this._body.nativeElement;return o===s||s.contains(o)}return!1}}]),n}(qoe);return r.\u0275fac=function(t){return new(t||r)(e.Y36(y6,12),e.Y36(e.sBO),e.Y36(ma.A8),e.Y36(e.s_b),e.Y36(Pt.K0),e.Y36(Js.Qb,8),e.Y36(QV,8))},r.\u0275cmp=e.Xpm({type:r,selectors:[["mat-expansion-panel"]],contentQueries:function(t,n,a){var o;1&t&&e.Suo(a,$oe,5),2&t&&e.iGM(o=e.CRH())&&(n._lazyContent=o.first)},viewQuery:function(t,n){var a;1&t&&e.Gf(Woe,5),2&t&&e.iGM(a=e.CRH())&&(n._body=a.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,n){2&t&&e.ekj("mat-expanded",n.expanded)("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mat-expansion-panel-spacing",n._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[e._Bn([{provide:y6,useValue:void 0}]),e.qOj,e.TTD],ngContentSelectors:Joe,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,n){1&t&&(e.F$t(Yoe),e.Hsn(0),e.TgZ(1,"div",0,1),e.NdJ("@bodyExpansion.done",function(o){return n._bodyAnimationDone.next(o)}),e.TgZ(3,"div",2),e.Hsn(4,1),e.YNc(5,Goe,0,0,"ng-template",3),e.qZA(),e.Hsn(6,2),e.qZA()),2&t&&(e.xp6(1),e.Q6J("@bodyExpansion",n._getExpandedState())("id",n.id),e.uIk("aria-labelledby",n._headerId),e.xp6(4),e.Q6J("cdkPortalOutlet",n._portal))},directives:[ta.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[JV.bodyExpansion]},changeDetection:0}),r}(),tse=function r(){(0,v.Z)(this,r)},nse=(0,sn.sb)(tse),yc=function(){var r=function(i){(0,O.Z)(n,i);var t=(0,y.Z)(n);function n(a,o,s,l,d,h,C){var P;(0,v.Z)(this,n),(P=t.call(this)).panel=a,P._element=o,P._focusMonitor=s,P._changeDetectorRef=l,P._animationMode=h,P._parentChangeSubscription=Lo.w.EMPTY;var N=a.accordion?a.accordion._stateChanges.pipe((0,ea.h)(function(q){return!(!q.hideToggle&&!q.togglePosition)})):zm.E;return P.tabIndex=parseInt(C||"")||0,P._parentChangeSubscription=(0,Ra.T)(a.opened,a.closed,N,a._inputChanges.pipe((0,ea.h)(function(q){return!!(q.hideToggle||q.disabled||q.togglePosition)}))).subscribe(function(){return P._changeDetectorRef.markForCheck()}),a.closed.pipe((0,ea.h)(function(){return a._containsFocus()})).subscribe(function(){return s.focusVia(o,"program")}),d&&(P.expandedHeight=d.expandedHeight,P.collapsedHeight=d.collapsedHeight),P}return(0,g.Z)(n,[{key:"disabled",get:function(){return this.panel.disabled}},{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_getHeaderHeight",value:function(){var o=this._isExpanded();return o&&this.expandedHeight?this.expandedHeight:!o&&this.collapsedHeight?this.collapsedHeight:null}},{key:"_keydown",value:function(o){switch(o.keyCode){case ui.L_:case ui.K5:(0,ui.Vb)(o)||(o.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(o))}}},{key:"focus",value:function(o,s){o?this._focusMonitor.focusVia(this._element,o,s):this._element.nativeElement.focus(s)}},{key:"ngAfterViewInit",value:function(){var o=this;this._focusMonitor.monitor(this._element).subscribe(function(s){s&&o.panel.accordion&&o.panel.accordion._handleHeaderFocus(o)})}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}]),n}(nse);return r.\u0275fac=function(t){return new(t||r)(e.Y36(_c,1),e.Y36(e.SBq),e.Y36(Gi.tE),e.Y36(e.sBO),e.Y36(QV,8),e.Y36(Js.Qb,8),e.$8M("tabindex"))},r.\u0275cmp=e.Xpm({type:r,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,n){1&t&&e.NdJ("click",function(){return n._toggle()})("keydown",function(o){return n._keydown(o)}),2&t&&(e.uIk("id",n.panel._headerId)("tabindex",n.tabIndex)("aria-controls",n._getPanelId())("aria-expanded",n._isExpanded())("aria-disabled",n.panel.disabled),e.Udp("height",n._getHeaderHeight()),e.ekj("mat-expanded",n._isExpanded())("mat-expansion-toggle-indicator-after","after"===n._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===n._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===n._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[e.qOj],ngContentSelectors:Xoe,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,n){1&t&&(e.F$t(Koe),e.TgZ(0,"span",0),e.Hsn(1),e.Hsn(2,1),e.Hsn(3,2),e.qZA(),e.YNc(4,Qoe,1,1,"span",1)),2&t&&(e.xp6(4),e.Q6J("ngIf",n._showToggle()))},directives:[Pt.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[JV.indicatorRotate]},changeDetection:0}),r}(),rse=function(){var r=function i(){(0,v.Z)(this,i)};return r.\u0275fac=function(t){return new(t||r)},r.\u0275dir=e.lG2({type:r,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),r}(),cd=function(){var r=function i(){(0,v.Z)(this,i)};return r.\u0275fac=function(t){return new(t||r)},r.\u0275dir=e.lG2({type:r,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),r}(),dd=function(){var r=function(i){(0,O.Z)(n,i);var t=(0,y.Z)(n);function n(){var a;return(0,v.Z)(this,n),(a=t.apply(this,arguments))._ownHeaders=new e.n_E,a._hideToggle=!1,a.displayMode="default",a.togglePosition="after",a}return(0,g.Z)(n,[{key:"hideToggle",get:function(){return this._hideToggle},set:function(o){this._hideToggle=(0,Hn.Ig)(o)}},{key:"ngAfterContentInit",value:function(){var o=this;this._headers.changes.pipe((0,$o.O)(this._headers)).subscribe(function(s){o._ownHeaders.reset(s.filter(function(l){return l.panel.accordion===o})),o._ownHeaders.notifyOnChanges()}),this._keyManager=new Gi.Em(this._ownHeaders).withWrap().withHomeAndEnd()}},{key:"_handleHeaderKeydown",value:function(o){this._keyManager.onKeydown(o)}},{key:"_handleHeaderFocus",value:function(o){this._keyManager.updateActiveItem(o)}},{key:"ngOnDestroy",value:function(){(0,x.Z)((0,Z.Z)(n.prototype),"ngOnDestroy",this).call(this),this._ownHeaders.destroy()}}]),n}(Voe);return r.\u0275fac=function(){var i;return function(n){return(i||(i=e.n5z(r)))(n||r)}}(),r.\u0275dir=e.lG2({type:r,selectors:[["mat-accordion"]],contentQueries:function(t,n,a){var o;1&t&&e.Suo(a,yc,5),2&t&&e.iGM(o=e.CRH())&&(n._headers=o)},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,n){2&t&&e.ekj("mat-accordion-multi",n.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[e._Bn([{provide:y6,useExisting:r}]),e.qOj]}),r}(),ise=function(){var r=function i(){(0,v.Z)(this,i)};return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[[Pt.ez,sn.BQ,zoe,ta.eL]]}),r}(),KV=f(85694),b6=["*"],ase=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],ose=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],$V=(0,sn.Id)((0,sn.Kr)(function(){return function r(){(0,v.Z)(this,r)}}())),dse=(0,sn.Kr)(function(){return function r(){(0,v.Z)(this,r)}}()),ej=new e.OlP("MatList"),tj=new e.OlP("MatNavList"),Iu=function(){var r=function(i){(0,O.Z)(n,i);var t=(0,y.Z)(n);function n(){var a;return(0,v.Z)(this,n),(a=t.apply(this,arguments))._stateChanges=new Un.xQ,a}return(0,g.Z)(n,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}($V);return r.\u0275fac=function(){var i;return function(n){return(i||(i=e.n5z(r)))(n||r)}}(),r.\u0275cmp=e.Xpm({type:r,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[e._Bn([{provide:tj,useExisting:r}]),e.qOj,e.TTD],ngContentSelectors:b6,decls:1,vars:0,template:function(t,n){1&t&&(e.F$t(),e.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),r}(),C6=function(){var r=function(i){(0,O.Z)(n,i);var t=(0,y.Z)(n);function n(a){var o;return(0,v.Z)(this,n),(o=t.call(this))._elementRef=a,o._stateChanges=new Un.xQ,"action-list"===o._getListType()&&a.nativeElement.classList.add("mat-action-list"),o}return(0,g.Z)(n,[{key:"_getListType",value:function(){var o=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===o?"list":"mat-action-list"===o?"action-list":null}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}($V);return r.\u0275fac=function(t){return new(t||r)(e.Y36(e.SBq))},r.\u0275cmp=e.Xpm({type:r,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[e._Bn([{provide:ej,useExisting:r}]),e.qOj,e.TTD],ngContentSelectors:b6,decls:1,vars:0,template:function(t,n){1&t&&(e.F$t(),e.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),r}(),nj=function(){var r=function i(){(0,v.Z)(this,i)};return r.\u0275fac=function(t){return new(t||r)},r.\u0275dir=e.lG2({type:r,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),r}(),rj=function(){var r=function i(){(0,v.Z)(this,i)};return r.\u0275fac=function(t){return new(t||r)},r.\u0275dir=e.lG2({type:r,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),r}(),Zs=function(){var r=function(i){(0,O.Z)(n,i);var t=(0,y.Z)(n);function n(a,o,s,l){var d;(0,v.Z)(this,n),(d=t.call(this))._element=a,d._isInteractiveList=!1,d._destroyed=new Un.xQ,d._disabled=!1,d._isInteractiveList=!!(s||l&&"action-list"===l._getListType()),d._list=s||l;var h=d._getHostElement();return"button"===h.nodeName.toLowerCase()&&!h.hasAttribute("type")&&h.setAttribute("type","button"),d._list&&d._list._stateChanges.pipe((0,Ai.R)(d._destroyed)).subscribe(function(){o.markForCheck()}),d}return(0,g.Z)(n,[{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(o){this._disabled=(0,Hn.Ig)(o)}},{key:"ngAfterContentInit",value:function(){(0,sn.E0)(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_isRippleDisabled",value:function(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}},{key:"_getHostElement",value:function(){return this._element.nativeElement}}]),n}(dse);return r.\u0275fac=function(t){return new(t||r)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(tj,8),e.Y36(ej,8))},r.\u0275cmp=e.Xpm({type:r,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,n,a){var o;1&t&&(e.Suo(a,nj,5),e.Suo(a,rj,5),e.Suo(a,sn.X2,5)),2&t&&(e.iGM(o=e.CRH())&&(n._avatar=o.first),e.iGM(o=e.CRH())&&(n._icon=o.first),e.iGM(o=e.CRH())&&(n._lines=o))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,n){2&t&&e.ekj("mat-list-item-disabled",n.disabled)("mat-list-item-avatar",n._avatar||n._icon)("mat-list-item-with-avatar",n._avatar||n._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[e.qOj],ngContentSelectors:ose,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(t,n){1&t&&(e.F$t(ase),e.TgZ(0,"div",0),e._UZ(1,"div",1),e.Hsn(2),e.TgZ(3,"div",2),e.Hsn(4,1),e.qZA(),e.Hsn(5,2),e.qZA()),2&t&&(e.xp6(1),e.Q6J("matRippleTrigger",n._getHostElement())("matRippleDisabled",n._isRippleDisabled()))},directives:[sn.wG],encapsulation:2,changeDetection:0}),r}(),gse=function(){var r=function i(){(0,v.Z)(this,i)};return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[[sn.uc,sn.si,sn.BQ,sn.us,Pt.ez],sn.uc,sn.BQ,sn.us,KV.t]}),r}(),_se=function(){var r=function(){function i(t){(0,v.Z)(this,i),this.httpClient=t,this.thirdpartylicenses="",this.releasenotes=""}return(0,g.Z)(i,[{key:"ngOnInit",value:function(){var n=this;this.httpClient.get(window.location.href+"/3rdpartylicenses.txt",{responseType:"text"}).subscribe(function(a){n.thirdpartylicenses=a.replace(new RegExp("\n","g"),"
")},function(a){404===a.status&&(n.thirdpartylicenses="File not found")}),this.httpClient.get("ReleaseNotes.txt",{responseType:"text"}).subscribe(function(a){n.releasenotes=a.replace(new RegExp("\n","g"),"
")})}},{key:"goToDocumentation",value:function(){window.location.href="https://docs.gns3.com/docs/"}}]),i}();return r.\u0275fac=function(t){return new(t||r)(e.Y36(ic.eN))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-help"]],decls:38,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"innerHTML"],["mat-button","","color","primary",1,"full-width",3,"click"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"h1"),e._uU(3,"Help"),e.qZA(),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"div",3),e.TgZ(6,"mat-accordion"),e.TgZ(7,"mat-expansion-panel"),e.TgZ(8,"mat-expansion-panel-header"),e.TgZ(9,"mat-panel-title"),e._uU(10," Useful shortcuts "),e.qZA(),e.qZA(),e.TgZ(11,"mat-list"),e.TgZ(12,"mat-list-item"),e._uU(13," ctrl + + to zoom in "),e.qZA(),e.TgZ(14,"mat-list-item"),e._uU(15," ctrl + - to zoom out "),e.qZA(),e.TgZ(16,"mat-list-item"),e._uU(17," ctrl + 0 to reset zoom "),e.qZA(),e.TgZ(18,"mat-list-item"),e._uU(19," ctrl + h to hide toolbar "),e.qZA(),e.TgZ(20,"mat-list-item"),e._uU(21," ctrl + a to select all items on map "),e.qZA(),e.TgZ(22,"mat-list-item"),e._uU(23," ctrl + shift + a to deselect all items on map "),e.qZA(),e.TgZ(24,"mat-list-item"),e._uU(25," ctrl + shift + s to go to preferences "),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"mat-expansion-panel"),e.TgZ(27,"mat-expansion-panel-header"),e.TgZ(28,"mat-panel-title"),e._uU(29," Third party components "),e.qZA(),e.qZA(),e._UZ(30,"div",4),e.qZA(),e.TgZ(31,"mat-expansion-panel"),e.TgZ(32,"mat-expansion-panel-header"),e.TgZ(33,"mat-panel-title"),e._uU(34," Release notes "),e.qZA(),e.qZA(),e._UZ(35,"div",4),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"button",5),e.NdJ("click",function(){return n.goToDocumentation()}),e._uU(37,"Go to documentation"),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(30),e.Q6J("innerHTML",n.thirdpartylicenses,e.oJD),e.xp6(5),e.Q6J("innerHTML",n.releasenotes,e.oJD))},directives:[dd,_c,yc,cd,C6,Zs,En],styles:[".full-width[_ngcontent-%COMP%]{width:100%;margin-top:20px}"]}),r}(),aj=function(){var r=function(){function i(t){(0,v.Z)(this,i),this.electronService=t}return(0,g.Z)(i,[{key:"isWindows",value:function(){return"win32"===this.electronService.process.platform}},{key:"isLinux",value:function(){return"linux"===this.electronService.process.platform}},{key:"isDarwin",value:function(){return"darwin"===this.electronService.process.platform}}]),i}();return r.\u0275fac=function(t){return new(t||r)(e.LFG(gs))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r}(),oj=function(){var r=function(){function i(t){(0,v.Z)(this,i),this.platformService=t}return(0,g.Z)(i,[{key:"get",value:function(){return this.platformService.isWindows()?this.getForWindows():this.platformService.isDarwin()?this.getForDarwin():this.getForLinux()}},{key:"getForWindows",value:function(){var n=[{name:"Wireshark",locations:["C:\\Program Files\\Wireshark\\Wireshark.exe"],type:"web",resource:"https://1.na.dl.wireshark.org/win64/all-versions/Wireshark-win64-2.6.3.exe",binary:"Wireshark.exe",sudo:!0,installation_arguments:[],installed:!1,installer:!0}];return n}},{key:"getForLinux",value:function(){return[]}},{key:"getForDarwin",value:function(){return[]}}]),i}();return r.\u0275fac=function(t){return new(t||r)(e.LFG(aj))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r}(),sj=function(){var r=function(){function i(t,n){(0,v.Z)(this,i),this.electronService=t,this.externalSoftwareDefinition=n}return(0,g.Z)(i,[{key:"list",value:function(){var n=this.externalSoftwareDefinition.get(),a=this.electronService.remote.require("./installed-software.js").getInstalledSoftware(n);return n.map(function(o){return o.installed=a[o.name].length>0,o})}}]),i}();return r.\u0275fac=function(t){return new(t||r)(e.LFG(gs),e.LFG(oj))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r}(),yse=[[["caption"]],[["colgroup"],["col"]]],bse=["caption","colgroup, col"],nu=function(){var r=function(i){(0,O.Z)(n,i);var t=(0,y.Z)(n);function n(){var a;return(0,v.Z)(this,n),(a=t.apply(this,arguments)).stickyCssClass="mat-table-sticky",a.needsPositionStickyOnElement=!1,a}return n}(Cf);return r.\u0275fac=function(){var i;return function(n){return(i||(i=e.n5z(r)))(n||r)}}(),r.\u0275cmp=e.Xpm({type:r,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(t,n){2&t&&e.ekj("mat-table-fixed-layout",n.fixedLayout)},exportAs:["matTable"],features:[e._Bn([{provide:ma.k,useClass:ma.yy},{provide:Cf,useExisting:r},{provide:$d,useExisting:r},{provide:qb,useClass:zb},{provide:zg,useValue:null}]),e.qOj],ngContentSelectors:bse,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,n){1&t&&(e.F$t(yse),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0),e.GkF(3,1),e.GkF(4,2),e.GkF(5,3))},directives:[Gg,Wg,Gb,Yg],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),r}(),Sl=function(){var r=function(i){(0,O.Z)(n,i);var t=(0,y.Z)(n);function n(){return(0,v.Z)(this,n),t.apply(this,arguments)}return n}(Jc);return r.\u0275fac=function(){var i;return function(n){return(i||(i=e.n5z(r)))(n||r)}}(),r.\u0275dir=e.lG2({type:r,selectors:[["","matCellDef",""]],features:[e._Bn([{provide:Jc,useExisting:r}]),e.qOj]}),r}(),Tl=function(){var r=function(i){(0,O.Z)(n,i);var t=(0,y.Z)(n);function n(){return(0,v.Z)(this,n),t.apply(this,arguments)}return n}(bf);return r.\u0275fac=function(){var i;return function(n){return(i||(i=e.n5z(r)))(n||r)}}(),r.\u0275dir=e.lG2({type:r,selectors:[["","matHeaderCellDef",""]],features:[e._Bn([{provide:bf,useExisting:r}]),e.qOj]}),r}(),kl=function(){var r=function(i){(0,O.Z)(n,i);var t=(0,y.Z)(n);function n(){return(0,v.Z)(this,n),t.apply(this,arguments)}return(0,g.Z)(n,[{key:"name",get:function(){return this._name},set:function(o){this._setNameInput(o)}},{key:"_updateColumnCssClassName",value:function(){(0,x.Z)((0,Z.Z)(n.prototype),"_updateColumnCssClassName",this).call(this),this._columnCssClassName.push("mat-column-".concat(this.cssClassFriendlyName))}}]),n}(rc);return r.\u0275fac=function(){var i;return function(n){return(i||(i=e.n5z(r)))(n||r)}}(),r.\u0275dir=e.lG2({type:r,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[e._Bn([{provide:rc,useExisting:r},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:r}]),e.qOj]}),r}(),wl=function(){var r=function(i){(0,O.Z)(n,i);var t=(0,y.Z)(n);function n(){return(0,v.Z)(this,n),t.apply(this,arguments)}return n}(Vb);return r.\u0275fac=function(){var i;return function(n){return(i||(i=e.n5z(r)))(n||r)}}(),r.\u0275dir=e.lG2({type:r,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[e.qOj]}),r}(),xl=function(){var r=function(i){(0,O.Z)(n,i);var t=(0,y.Z)(n);function n(){return(0,v.Z)(this,n),t.apply(this,arguments)}return n}(jb);return r.\u0275fac=function(){var i;return function(n){return(i||(i=e.n5z(r)))(n||r)}}(),r.\u0275dir=e.lG2({type:r,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[e.qOj]}),r}(),ru=function(){var r=function(i){(0,O.Z)(n,i);var t=(0,y.Z)(n);function n(){return(0,v.Z)(this,n),t.apply(this,arguments)}return n}(Hg);return r.\u0275fac=function(){var i;return function(n){return(i||(i=e.n5z(r)))(n||r)}}(),r.\u0275dir=e.lG2({type:r,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[e._Bn([{provide:Hg,useExisting:r}]),e.qOj]}),r}(),iu=function(){var r=function(i){(0,O.Z)(n,i);var t=(0,y.Z)(n);function n(){return(0,v.Z)(this,n),t.apply(this,arguments)}return n}(Vg);return r.\u0275fac=function(){var i;return function(n){return(i||(i=e.n5z(r)))(n||r)}}(),r.\u0275dir=e.lG2({type:r,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[e._Bn([{provide:Vg,useExisting:r}]),e.qOj]}),r}(),au=function(){var r=function(i){(0,O.Z)(n,i);var t=(0,y.Z)(n);function n(){return(0,v.Z)(this,n),t.apply(this,arguments)}return n}(ep);return r.\u0275fac=function(){var i;return function(n){return(i||(i=e.n5z(r)))(n||r)}}(),r.\u0275cmp=e.Xpm({type:r,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[e._Bn([{provide:ep,useExisting:r}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,n){1&t&&e.GkF(0,0)},directives:[xu],encapsulation:2}),r}(),ou=function(){var r=function(i){(0,O.Z)(n,i);var t=(0,y.Z)(n);function n(){return(0,v.Z)(this,n),t.apply(this,arguments)}return n}(jg);return r.\u0275fac=function(){var i;return function(n){return(i||(i=e.n5z(r)))(n||r)}}(),r.\u0275cmp=e.Xpm({type:r,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[e._Bn([{provide:jg,useExisting:r}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,n){1&t&&e.GkF(0,0)},directives:[xu],encapsulation:2}),r}(),Dse=function(){var r=function i(){(0,v.Z)(this,i)};return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[[Ox,sn.BQ],sn.BQ]}),r}(),Ose=9007199254740991,Pse=function(r){(0,O.Z)(t,r);var i=(0,y.Z)(t);function t(){var n,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,v.Z)(this,t),(n=i.call(this))._renderData=new $i.X([]),n._filter=new $i.X(""),n._internalPageChanges=new Un.xQ,n._renderChangesSubscription=null,n.sortingDataAccessor=function(o,s){var l=o[s];if((0,Hn.t6)(l)){var d=Number(l);return dN?te=1:P0)){var l=Math.ceil(s.length/s.pageSize)-1||0,d=Math.min(s.pageIndex,l);d!==s.pageIndex&&(s.pageIndex=d,o._internalPageChanges.next())}})}},{key:"connect",value:function(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}},{key:"disconnect",value:function(){var a;null===(a=this._renderChangesSubscription)||void 0===a||a.unsubscribe(),this._renderChangesSubscription=null}}]),t}(ma.o2),lj=function(r){(0,O.Z)(t,r);var i=(0,y.Z)(t);function t(){return(0,v.Z)(this,t),i.apply(this,arguments)}return t}(Pse),Ru=f(2856),Ise=function(i,t){return{hidden:i,lightTheme:t}},Rse=/(.*)<\/a>(.*)\s*