@drayman/elements 1.5.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,(function(e){return t[e]}).bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}({"+7q0":function(t,e,n){var r=n("eN33"),i=n("Pz+s"),o=n("zWgn");t.exports=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o},"+DnP":function(t,e,n){var r=n("W0vE"),i=n("sjzV"),o=n("S3pA"),s=n("wxYD");t.exports=function(t,e){return(s(t)?r:i)(t,o(e,3))}},"+WAL":function(t,e,n){var r=n("0Jj1");t.exports=function(t){try{r(t)}catch(e){if(e instanceof r.CycleException)return!1;throw e}return!0}},"+fUG":function(t,e,n){var r=n("5pfJ"),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},"+jFT":function(t,e,n){"use strict";var r=n("gjtd");function i(t){r.forEach(t.nodes(),(function(e){o(t.node(e))})),r.forEach(t.edges(),(function(e){o(t.edge(e))}))}function o(t){var e=t.width;t.width=t.height,t.height=e}function s(t){t.y=-t.y}function a(t){var e=t.x;t.x=t.y,t.y=e}t.exports={adjust:function(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||i(t)},undo:function(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||function(t){r.forEach(t.nodes(),(function(e){s(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,s),r.has(n,"y")&&s(n)}))}(t),"lr"!==e&&"rl"!==e||(function(t){r.forEach(t.nodes(),(function(e){a(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,a),r.has(n,"x")&&a(n)}))}(t),i(t))}}},"+ooz":function(t,e,n){var r=n("8Zrg"),i=n("kwr2"),o=n("5VYK"),s=n("Coc+"),a=n("LzM7");function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},"+tCn":function(t,e,n){var r=n("tQYX");t.exports=function(t){return t==t&&!r(t)}},"//nZ":function(t,e,n){var r=n("QwI6"),i=n("cH1A")((function(t,e){return null==t?{}:r(t,e)}));t.exports=i},"/30y":function(t,e,n){var r=n("Dhk8"),i=n("tLQN");t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},"/UTG":function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},"/iLo":function(t,e,n){var r=n("6I2w"),i=n("SU8Q"),o=n("T6vp"),s=o&&o.isSet,a=s?i(s):r;t.exports=a},"/oF6":function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n("zyX+"),s=function(t){function e(e){var n=t.call(this)||this,r=e;return r.trigger&&(n.trigger=r.trigger),r.kick&&(n.kick=r.kick),r.drag&&(n.drag=r.drag),r.on&&(n.on=r.on),n.dragstart=n.dragStart=o.Layout.dragStart,n.dragend=n.dragEnd=o.Layout.dragEnd,n}return i(e,t),e.prototype.trigger=function(t){},e.prototype.kick=function(){},e.prototype.drag=function(){},e.prototype.on=function(t,e){return this},e}(o.Layout);e.LayoutAdaptor=s,e.adaptor=function(t){return new s(t)}},"/wCD":function(t,e,n){var r=n("TAtK")(Object.getPrototypeOf,Object);t.exports=r},0:function(t,e,n){t.exports=n("zUnb")},"0+aC":function(t,e,n){var r=n("pFSi");t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},"0Jj1":function(t,e,n){var r=n("Jl0P");function i(t){var e={},n={},i=[];if(r.each(t.sinks(),(function s(a){if(r.has(n,a))throw new o;r.has(e,a)||(n[a]=!0,e[a]=!0,r.each(t.predecessors(a),s),delete n[a],i.push(a))})),r.size(e)!==t.nodeCount())throw new o;return i}function o(){}t.exports=i,i.CycleException=o,o.prototype=new Error},"0Ss3":function(t,e){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},"0gKz":function(t,e,n){var r=n("gjtd"),i=n("xxjf");function o(t,e,n,r,o,s){var a=o[e][s-1],u=i.addDummyNode(t,"border",{width:0,height:0,rank:s,borderType:e},n);o[e][s]=u,t.setParent(u,r),a&&t.setEdge(a,u,{weight:1})}t.exports=function(t){r.forEach(t.children(),(function e(n){var i=t.children(n),s=t.node(n);if(i.length&&r.forEach(i,e),r.has(s,"minRank")){s.borderLeft=[],s.borderRight=[];for(var a=s.minRank,u=s.maxRank+1;a<u;++a)o(t,"borderLeft","_bl",n,s,a),o(t,"borderRight","_br",n,s,a)}}))}},"0iyY":function(t,e,n){var r=n("SJvO"),i=n("BlJA");t.exports=function(t){return null==t?[]:r(t,i(t))}},"1EDM":function(t,e,n){var r=n("EI7Z"),i=n("CEyS"),o=n("i7nn"),s=n("Ypsa");t.exports=function(t){return o(t)?r(s(t)):i(t)}},"1aYn":function(t,e,n){var r=n("S3pA"),i=n("9y2L"),o=n("BlJA");t.exports=function(t){return function(e,n,s){var a=Object(e);if(!i(e)){var u=r(n,3);e=o(e),n=function(t){return u(a[t],t,a)}}var c=t(e,n,s);return c>-1?a[u?e[c]:c]:void 0}}},"1mr4":function(t,e,n){var r=n("SJov"),i=n("z+TE");t.exports=function(t,e){return null!=t&&i(t,e,r)}},"1qSF":function(t,e,n){t.exports={Graph:n("buMw"),version:n("5AdH")}},"1xil":function(t,e,n){var r=n("YpBQ");t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},"1yUy":function(t,e,n){"use strict";var r=n("gjtd"),i=n("fd5j");t.exports={run:function(t){var e="greedy"===t.graph().acyclicer?i(t,function(t){return function(e){return t.edge(e).weight}}(t)):function(t){var e=[],n={},i={};return r.forEach(t.nodes(),(function o(s){r.has(i,s)||(i[s]=!0,n[s]=!0,r.forEach(t.outEdges(s),(function(t){r.has(n,t.w)?e.push(t):o(t.w)})),delete n[s])})),e}(t);r.forEach(e,(function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,r.uniqueId("rev"))}))},undo:function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}}))}}},"21zJ":function(t,e,n){var r=n("5Ck4");t.exports=function(t,e){return r(t,e,"post")}},"2Fbm":function(t,e,n){var r=n("5pfJ");t.exports=function(){this.__data__=r?r(null):{},this.size=0}},"2M3I":function(t,e,n){var r=n("9au6"),i=n("R5u7"),o=n("fWyh");t.exports=function(t){return function(e,n,s){return s&&"number"!=typeof s&&i(e,n,s)&&(n=s=void 0),e=o(e),void 0===n?(n=e,e=0):n=o(n),s=void 0===s?e<n?1:-1:o(s),r(e,n,s,t)}}},"2ZvR":function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},"2q8g":function(t,e,n){var r=n("Dhk8"),i=n("tQYX");t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},"2srY":function(t,e,n){var r=n("w2Tz");t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},"2wsP":function(t,e,n){var r=n("EI7Z")("length");t.exports=r},"3KBa":function(t,e,n){var r=n("IBsm");t.exports=r["__core-js_shared__"]},"3Qlq":function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&n.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},"3ajY":function(t,e,n){(function(t){var r=n("IBsm"),i=n("DjCF"),o=e&&!e.nodeType&&e,s=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=s&&s.exports===o?r.Buffer:void 0;t.exports=(a?a.isBuffer:void 0)||i}).call(this,n("aYSr")(t))},"3vZi":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("gbTj"),i=n("keXZ"),o=n("aj3f"),s=function(){return function(t,e,n){this.id=t,this.rect=e,this.children=n,this.leaf=void 0===n||0===n.length}}();e.NodeWrapper=s;var a=function(){return function(t,e,n,r,i){void 0===r&&(r=null),void 0===i&&(i=null),this.id=t,this.x=e,this.y=n,this.node=r,this.line=i}}();e.Vert=a;var u=function(){function t(e,n){this.s=e,this.t=n;var r=t.findMatch(e,n),i=n.slice(0).reverse(),o=t.findMatch(e,i);r.length>=o.length?(this.length=r.length,this.si=r.si,this.ti=r.ti,this.reversed=!1):(this.length=o.length,this.si=o.si,this.ti=n.length-o.ti-o.length,this.reversed=!0)}return t.findMatch=function(t,e){for(var n=t.length,r=e.length,i={length:0,si:-1,ti:-1},o=new Array(n),s=0;s<n;s++){o[s]=new Array(r);for(var a=0;a<r;a++)if(t[s]===e[a]){var u=o[s][a]=0===s||0===a?1:o[s-1][a-1]+1;u>i.length&&(i.length=u,i.si=s-u+1,i.ti=a-u+1)}else o[s][a]=0}return i},t.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},t}();e.LongestCommonSubsequence=u,e.GridRouter=function(){function t(t,e,n){var i=this;void 0===n&&(n=12),this.originalnodes=t,this.groupPadding=n,this.leaves=null,this.nodes=t.map((function(t,n){return new s(n,e.getBounds(t),e.getChildren(t))})),this.leaves=this.nodes.filter((function(t){return t.leaf})),this.groups=this.nodes.filter((function(t){return!t.leaf})),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach((function(t){return t.children.forEach((function(e){return i.nodes[e].parent=t}))})),this.root={children:[]},this.nodes.forEach((function(t){void 0===t.parent&&(t.parent=i.root,i.root.children.push(t.id)),t.ports=[]})),this.backToFront=this.nodes.slice(0),this.backToFront.sort((function(t,e){return i.getDepth(t)-i.getDepth(e)})),this.backToFront.slice(0).reverse().filter((function(t){return!t.leaf})).forEach((function(t){var e=r.Rectangle.empty();t.children.forEach((function(t){return e=e.union(i.nodes[t].rect)})),t.rect=e.inflate(i.groupPadding)}));var o=this.midPoints(this.cols.map((function(t){return t.pos}))),u=this.midPoints(this.rows.map((function(t){return t.pos}))),c=o[0],l=o[o.length-1],h=u[0],f=u[u.length-1],d=this.rows.map((function(t){return{x1:c,x2:l,y1:t.pos,y2:t.pos}})).concat(u.map((function(t){return{x1:c,x2:l,y1:t,y2:t}}))),p=this.cols.map((function(t){return{x1:t.pos,x2:t.pos,y1:h,y2:f}})).concat(o.map((function(t){return{x1:t,x2:t,y1:h,y2:f}}))),g=d.concat(p);g.forEach((function(t){return t.verts=[]})),this.verts=[],this.edges=[],d.forEach((function(t){return p.forEach((function(e){var n=new a(i.verts.length,e.x1,t.y1);t.verts.push(n),e.verts.push(n),i.verts.push(n);for(var r=i.backToFront.length;r-- >0;){var o=i.backToFront[r],s=o.rect,u=Math.abs(n.x-s.cx()),c=Math.abs(n.y-s.cy());if(u<s.width()/2&&c<s.height()/2){n.node=o;break}}}))})),g.forEach((function(t,e){i.nodes.forEach((function(e,n){e.rect.lineIntersections(t.x1,t.y1,t.x2,t.y2).forEach((function(n,r){var o=new a(i.verts.length,n.x,n.y,e,t);i.verts.push(o),t.verts.push(o),e.ports.push(o)}))}));var n=Math.abs(t.y1-t.y2)<.1,r=function(t,e){return n?e.x-t.x:e.y-t.y};t.verts.sort(r);for(var o=1;o<t.verts.length;o++){var s=t.verts[o-1],u=t.verts[o];s.node&&s.node===u.node&&s.node.leaf||i.edges.push({source:s.id,target:u.id,length:Math.abs(r(s,u))})}}))}return t.prototype.avg=function(t){return t.reduce((function(t,e){return t+e}))/t.length},t.prototype.getGridLines=function(t){for(var e=[],n=this.leaves.slice(0,this.leaves.length);n.length>0;){var r=n.filter((function(e){return e.rect["overlap"+t.toUpperCase()](n[0].rect)})),i={nodes:r,pos:this.avg(r.map((function(e){return e.rect["c"+t]()})))};e.push(i),i.nodes.forEach((function(t){return n.splice(n.indexOf(t),1)}))}return e.sort((function(t,e){return t.pos-e.pos})),e},t.prototype.getDepth=function(t){for(var e=0;t.parent!==this.root;)e++,t=t.parent;return e},t.prototype.midPoints=function(t){for(var e=t[1]-t[0],n=[t[0]-e/2],r=1;r<t.length;r++)n.push((t[r]+t[r-1])/2);return n.push(t[t.length-1]+e/2),n},t.prototype.findLineage=function(t){var e=[t];do{e.push(t=t.parent)}while(t!==this.root);return e.reverse()},t.prototype.findAncestorPathBetween=function(t,e){for(var n=this.findLineage(t),r=this.findLineage(e),i=0;n[i]===r[i];)i++;return{commonAncestor:n[i-1],lineages:n.slice(i).concat(r.slice(i))}},t.prototype.siblingObstacles=function(t,e){var n=this,r=this.findAncestorPathBetween(t,e),i={};r.lineages.forEach((function(t){return i[t.id]={}}));var o=r.commonAncestor.children.filter((function(t){return!(t in i)}));return r.lineages.filter((function(t){return t.parent!==r.commonAncestor})).forEach((function(t){return o=o.concat(t.parent.children.filter((function(e){return e!==t.id})))})),o.map((function(t){return n.nodes[t]}))},t.getSegmentSets=function(t,e,n){for(var r=[],i=0;i<t.length;i++)for(var o=t[i],s=0;s<o.length;s++)(l=o[s]).edgeid=i,l.i=s,Math.abs(l[1][e]-l[0][e])<.1&&r.push(l);r.sort((function(t,n){return t[0][e]-n[0][e]}));for(var a=[],u=null,c=0;c<r.length;c++){var l=r[c];(!u||Math.abs(l[0][e]-u.pos)>.1)&&a.push(u={pos:l[0][e],segments:[]}),u.segments.push(l)}return a},t.nudgeSegs=function(t,e,n,r,o,s){var a=r.length;if(!(a<=1)){for(var u=r.map((function(e){return new i.Variable(e[0][t])})),c=[],l=0;l<a;l++)for(var h=0;h<a;h++)if(l!==h){var f=r[l],d=f.edgeid,p=r[h].edgeid,g=-1,m=-1;"x"==t?o(d,p)&&(f[0][e]<f[1][e]?(g=h,m=l):(g=l,m=h)):o(d,p)&&(f[0][e]<f[1][e]?(g=l,m=h):(g=h,m=l)),g>=0&&c.push(new i.Constraint(u[g],u[m],s))}new i.Solver(u,c).solve(),u.forEach((function(e,i){var o=r[i],s=e.position();o[0][t]=o[1][t]=s;var a=n[o.edgeid];o.i>0&&(a[o.i-1][1][t]=s),o.i<a.length-1&&(a[o.i+1][0][t]=s)}))}},t.nudgeSegments=function(e,n,r,i,o){for(var s=t.getSegmentSets(e,n,r),a=0;a<s.length;a++){for(var u=s[a],c=[],l=0;l<u.segments.length;l++){var h=u.segments[l];c.push({type:0,s:h,pos:Math.min(h[0][r],h[1][r])}),c.push({type:1,s:h,pos:Math.max(h[0][r],h[1][r])})}c.sort((function(t,e){return t.pos-e.pos+t.type-e.type}));var f=[],d=0;c.forEach((function(s){0===s.type?(f.push(s.s),d++):d--,0==d&&(t.nudgeSegs(n,r,e,f,i,o),f=[])}))}},t.prototype.routeEdges=function(e,n,r,i){var o=this,s=e.map((function(t){return o.route(r(t),i(t))})),a=t.orderEdges(s),u=s.map((function(e){return t.makeSegments(e)}));return t.nudgeSegments(u,"x","y",a,n),t.nudgeSegments(u,"y","x",a,n),t.unreverseEdges(u,s),u},t.unreverseEdges=function(t,e){t.forEach((function(t,n){e[n].reversed&&(t.reverse(),t.forEach((function(t){t.reverse()})))}))},t.angleBetween2Lines=function(t,e){var n=Math.atan2(t[0].y-t[1].y,t[0].x-t[1].x),r=Math.atan2(e[0].y-e[1].y,e[0].x-e[1].x),i=n-r;return(i>Math.PI||i<-Math.PI)&&(i=r-n),i},t.isLeft=function(t,e,n){return(e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x)<=0},t.getOrder=function(t){for(var e={},n=0;n<t.length;n++){var r=t[n];void 0===e[r.l]&&(e[r.l]={}),e[r.l][r.r]=!0}return function(t,n){return void 0!==e[t]&&e[t][n]}},t.orderEdges=function(e){for(var n=[],r=0;r<e.length-1;r++)for(var i=r+1;i<e.length;i++){var o,s,a,c=e[r],l=e[i],h=new u(c,l);0!==h.length&&(h.reversed&&(l.reverse(),l.reversed=!0,h=new u(c,l)),(h.si<=0||h.ti<=0)&&(h.si+h.length>=c.length||h.ti+h.length>=l.length)?n.push({l:r,r:i}):(h.si+h.length>=c.length||h.ti+h.length>=l.length?(o=c[h.si+1],a=c[h.si-1],s=l[h.ti-1]):(o=c[h.si+h.length-2],s=c[h.si+h.length],a=l[h.ti+h.length]),t.isLeft(o,s,a)?n.push({l:i,r:r}):n.push({l:r,r:i})))}return t.getOrder(n)},t.makeSegments=function(t){function e(t){return{x:t.x,y:t.y}}for(var n=function(t,e,n){return Math.abs((e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x))<.001},r=[],i=e(t[0]),o=1;o<t.length;o++){var s=e(t[o]),a=o<t.length-1?t[o+1]:null;a&&n(i,s,a)||(r.push([i,s]),i=s)}return r},t.prototype.route=function(t,e){var n=this,r=this.nodes[t],i=this.nodes[e];this.obstacles=this.siblingObstacles(r,i);var s={};this.obstacles.forEach((function(t){return s[t.id]=t})),this.passableEdges=this.edges.filter((function(t){var e=n.verts[t.source],r=n.verts[t.target];return!(e.node&&e.node.id in s||r.node&&r.node.id in s)}));for(var a=1;a<r.ports.length;a++)this.passableEdges.push({source:r.ports[0].id,target:r.ports[a].id,length:0});for(a=1;a<i.ports.length;a++)this.passableEdges.push({source:i.ports[0].id,target:i.ports[a].id,length:0});var u=new o.Calculator(this.verts.length,this.passableEdges,(function(t){return t.source}),(function(t){return t.target}),(function(t){return t.length})).PathFromNodeToNodeWithPrevCost(r.ports[0].id,i.ports[0].id,(function(t,e,o){var s=n.verts[t],a=n.verts[e],u=n.verts[o],c=Math.abs(u.x-s.x),l=Math.abs(u.y-s.y);return s.node===r&&s.node===a.node||a.node===i&&a.node===u.node?0:c>1&&l>1?1e3:0})).reverse().map((function(t){return n.verts[t]}));return u.push(this.nodes[i.id].ports[0]),u.filter((function(t,e){return!(e<u.length-1&&u[e+1].node===r&&t.node===r||e>0&&t.node===i&&u[e-1].node===i)}))},t.getRoutePath=function(e,n,r,i){var o,s,a,u,c,l={routepath:"M "+e[0][0].x+" "+e[0][0].y+" ",arrowpath:""};if(e.length>1)for(var h=0;h<e.length;h++){var f=(s=(o=e[h])[1].x)-o[0].x,d=(a=o[1].y)-o[0].y;if(h<e.length-1){Math.abs(f)>0?s-=f/Math.abs(f)*n:a-=d/Math.abs(d)*n,l.routepath+="L "+s+" "+a+" ";var p=e[h+1],g=p[0].x,m=p[0].y;f=p[1].x-g,d=p[1].y-m;var y,v,_=t.angleBetween2Lines(o,p)<0?1:0;Math.abs(f)>0?(y=g+f/Math.abs(f)*n,v=m):(y=g,v=m+d/Math.abs(d)*n);var w=Math.abs(y-s),b=Math.abs(v-a);l.routepath+="A "+w+" "+b+" 0 0 "+_+" "+y+" "+v+" "}else{var x=[s,a];Math.abs(f)>0?(u=[s-=f/Math.abs(f)*i,a+r],c=[s,a-r]):(u=[s+r,a-=d/Math.abs(d)*i],c=[s-r,a]),l.routepath+="L "+s+" "+a+" ",i>0&&(l.arrowpath="M "+x[0]+" "+x[1]+" L "+u[0]+" "+u[1]+" L "+c[0]+" "+c[1])}}else f=(s=(o=e[0])[1].x)-o[0].x,d=(a=o[1].y)-o[0].y,x=[s,a],Math.abs(f)>0?(u=[s-=f/Math.abs(f)*i,a+r],c=[s,a-r]):(u=[s+r,a-=d/Math.abs(d)*i],c=[s-r,a]),l.routepath+="L "+s+" "+a+" ",i>0&&(l.arrowpath="M "+x[0]+" "+x[1]+" L "+u[0]+" "+u[1]+" L "+c[0]+" "+c[1]);return l},t}()},"4+Vk":function(t,e,n){var r=n("vxC8")(n("IBsm"),"WeakMap");t.exports=r},"4/ik":function(t,e,n){var r=n("+ooz"),i=n("qeCs"),o=n("hyzI");t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<199)return s.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(t,e),this.size=n.size,this}},"4CxS":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("aj3f"),i=n("Lm04"),o=n("gbTj"),s=n("bJjD");e.Link3D=function(){function t(t,e){this.source=t,this.target=e}return t.prototype.actualLength=function(t){var e=this;return Math.sqrt(t.reduce((function(t,n){var r=n[e.target]-n[e.source];return t+r*r}),0))},t}(),e.Node3D=function(){return function(t,e,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),this.x=t,this.y=e,this.z=n}}(),e.Layout3D=function(){function t(e,n,r){var i=this;void 0===r&&(r=1),this.nodes=e,this.links=n,this.idealLinkLength=r,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(t.k);for(var o=0;o<t.k;++o)this.result[o]=new Array(e.length);e.forEach((function(e,n){for(var r=0,o=t.dims;r<o.length;r++){var s=o[r];void 0===e[s]&&(e[s]=Math.random())}i.result[0][n]=e.x,i.result[1][n]=e.y,i.result[2][n]=e.z}))}return t.prototype.linkLength=function(t){return t.actualLength(this.result)},t.prototype.start=function(t){var e=this;void 0===t&&(t=100);var n=this.nodes.length,u=new a;this.useJaccardLinkLengths&&s.jaccardLinkLengths(this.links,u,1.5),this.links.forEach((function(t){return t.length*=e.idealLinkLength}));var c=new r.Calculator(n,this.links,(function(t){return t.source}),(function(t){return t.target}),(function(t){return t.length})).DistanceMatrix(),l=i.Descent.createSquareMatrix(n,(function(t,e){return c[t][e]})),h=i.Descent.createSquareMatrix(n,(function(){return 2}));this.links.forEach((function(t){var e=t.source,n=t.target;return h[e][n]=h[n][e]=1})),this.descent=new i.Descent(this.result,l),this.descent.threshold=.001,this.descent.G=h,this.constraints&&(this.descent.project=new o.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var f=0;f<this.nodes.length;f++){var d=this.nodes[f];d.fixed&&this.descent.locks.add(f,[d.x,d.y,d.z])}return this.descent.run(t),this},t.prototype.tick=function(){this.descent.locks.clear();for(var t=0;t<this.nodes.length;t++){var e=this.nodes[t];e.fixed&&this.descent.locks.add(t,[e.x,e.y,e.z])}return this.descent.rungeKutta()},t.k=(t.dims=["x","y","z"]).length,t}();var a=function(){function t(){}return t.prototype.getSourceIndex=function(t){return t.source},t.prototype.getTargetIndex=function(t){return t.target},t.prototype.getLength=function(t){return t.length},t.prototype.setLength=function(t,e){t.length=e},t}()},"4DVH":function(t,e,n){"use strict";var r=n("K8/D").longestPath,i=n("58Ui"),o=n("EMSI");t.exports=function(t){switch(t.graph().ranker){case"network-simplex":a(t);break;case"tight-tree":!function(t){r(t),i(t)}(t);break;case"longest-path":s(t);break;default:a(t)}};var s=r;function a(t){o(t)}},"4ScB":function(t,e,n){var r=n("LtXa"),i=n("zH+d");t.exports=function(t){return r(t,i(t))}},"4Xgz":function(t,e,n){"use strict";var r,i,o;"undefined"!=typeof window&&window,i=[n("MXs6")],void 0===(o="function"==typeof(r=function(t){var e=function(){var e,n={},r=[];function i(t){t||(t=document.documentElement);var e=window.getComputedStyle(t,null).fontSize;return parseFloat(e)||16}function o(t,e){var n=e.split(/\d/),r=n[n.length-1];switch(e=parseFloat(e),r){case"px":return e;case"em":return e*i(t);case"rem":return e*i();case"vw":return e*document.documentElement.clientWidth/100;case"vh":return e*document.documentElement.clientHeight/100;case"vmin":case"vmax":var o=document.documentElement.clientWidth/100,s=document.documentElement.clientHeight/100;return e*(0,Math["vmin"===r?"min":"max"])(o,s);default:return e}}function s(t,e){var r,i,s,a,u,c,l,h;this.element=t;var f=["min-width","min-height","max-width","max-height"];this.call=function(){for(r in s=function(t){if(!t.getBoundingClientRect)return{width:t.offsetWidth,height:t.offsetHeight};var e=t.getBoundingClientRect();return{width:Math.round(e.width),height:Math.round(e.height)}}(this.element),c={},n[e])n[e].hasOwnProperty(r)&&(a=o(this.element,(i=n[e][r]).value),u="width"===i.property?s.width:s.height,l="","min"===i.mode&&u>=a&&(l+=i.value),"max"===i.mode&&u<=a&&(l+=i.value),c[h=i.mode+"-"+i.property]||(c[h]=""),l&&-1===(" "+c[h]+" ").indexOf(" "+l+" ")&&(c[h]+=" "+l));for(var t in f)f.hasOwnProperty(t)&&(c[f[t]]?this.element.setAttribute(f[t],c[f[t]].substr(1)):this.element.removeAttribute(f[t]))}}function a(e,n){e.elementQueriesSetupInformation||(e.elementQueriesSetupInformation=new s(e,n)),e.elementQueriesSensor||(e.elementQueriesSensor=new t(e,(function(){e.elementQueriesSetupInformation.call()})))}function u(t,i,o,s){if(void 0===n[t]){n[t]=[];var a=r.length;e.innerHTML+="\n"+t+" {animation: 0.1s element-queries;}",e.innerHTML+="\n"+t+" > .resize-sensor {min-width: "+a+"px;}",r.push(t)}n[t].push({mode:i,property:o,value:s})}function c(t){var e;if(document.querySelectorAll&&(e=t?t.querySelectorAll.bind(t):document.querySelectorAll.bind(document)),e||"undefined"==typeof $$||(e=$$),e||"undefined"==typeof jQuery||(e=jQuery),!e)throw"No document.querySelectorAll, jQuery or Mootools's $$ found.";return e}function l(e){var n=[],r=[],i=[],o=0,s=-1,a=[];for(var u in e.children)if(e.children.hasOwnProperty(u)&&e.children[u].tagName&&"img"===e.children[u].tagName.toLowerCase()){n.push(e.children[u]);var c=e.children[u].getAttribute("min-width")||e.children[u].getAttribute("data-min-width"),l=e.children[u].getAttribute("data-src")||e.children[u].getAttribute("url");i.push(l),r.push({minWidth:c}),c?e.children[u].style.display="none":(o=n.length-1,e.children[u].style.display="block")}function h(){var t,u=!1;for(t in n)n.hasOwnProperty(t)&&r[t].minWidth&&e.offsetWidth>r[t].minWidth&&(u=t);if(u||(u=o),s!==u)if(a[u])n[s].style.display="none",n[u].style.display="block",s=u;else{var c=new Image;c.onload=function(){n[u].src=i[u],n[s].style.display="none",n[u].style.display="block",a[u]=!0,s=u},c.src=i[u]}else n[u].src=i[u]}s=o,e.resizeSensorInstance=new t(e,h),h()}var h=/,?[\s\t]*([^,\n]*?)((?:\[[\s\t]*?(?:min|max)-(?:width|height)[\s\t]*?[~$\^]?=[\s\t]*?"[^"]*?"[\s\t]*?])+)([^,\n\s\{]*)/gim,f=/\[[\s\t]*?(min|max)-(width|height)[\s\t]*?[~$\^]?=[\s\t]*?"([^"]*?)"[\s\t]*?]/gim;function d(t){var e,n,r,i;for(t=t.replace(/'/g,'"');null!==(e=h.exec(t));)for(n=e[1]+e[3],r=e[2];null!==(i=f.exec(r));)u(n,i[1],i[2],i[3])}function p(t){var e="";if(t)if("string"==typeof t)-1===(t=t.toLowerCase()).indexOf("min-width")&&-1===t.indexOf("max-width")||d(t);else for(var n=0,r=t.length;n<r;n++)1===t[n].type?-1!==(e=t[n].selectorText||t[n].cssText).indexOf("min-height")||-1!==e.indexOf("max-height")?d(e):-1===e.indexOf("min-width")&&-1===e.indexOf("max-width")||d(e):4===t[n].type?p(t[n].cssRules||t[n].rules):3===t[n].type&&t[n].styleSheet.hasOwnProperty("cssRules")&&p(t[n].styleSheet.cssRules)}var g=!1;this.init=function(){var n="animationstart";void 0!==document.documentElement.style.webkitAnimationName?n="webkitAnimationStart":void 0!==document.documentElement.style.MozAnimationName?n="mozanimationstart":void 0!==document.documentElement.style.OAnimationName&&(n="oanimationstart"),document.body.addEventListener(n,(function(e){var n=e.target,i=n&&window.getComputedStyle(n,null),o=i&&i.getPropertyValue("animation-name");if(o&&-1!==o.indexOf("element-queries")){n.elementQueriesSensor=new t(n,(function(){n.elementQueriesSetupInformation&&n.elementQueriesSetupInformation.call()}));var s=window.getComputedStyle(n.resizeSensor,null).getPropertyValue("min-width");s=parseInt(s.replace("px","")),a(e.target,r[s])}})),g||((e=document.createElement("style")).type="text/css",e.innerHTML="[responsive-image] > img, [data-responsive-image] {overflow: hidden; padding: 0; } [responsive-image] > img, [data-responsive-image] > img {width: 100%;}",e.innerHTML+="\n@keyframes element-queries { 0% { visibility: inherit; } }",document.getElementsByTagName("head")[0].appendChild(e),g=!0);for(var i=0,o=document.styleSheets.length;i<o;i++)try{document.styleSheets[i].href&&0===document.styleSheets[i].href.indexOf("file://")&&console.warn("CssElementQueries: unable to parse local css files, "+document.styleSheets[i].href),p(document.styleSheets[i].cssRules||document.styleSheets[i].rules||document.styleSheets[i].cssText)}catch(s){}!function(){for(var t=c()("[data-responsive-image],[responsive-image]"),e=0,n=t.length;e<n;e++)l(t[e])}()},this.findElementQueriesElements=function(t){!function(t){var e=c(t);for(var r in n)if(n.hasOwnProperty(r))for(var i=e(r,t),o=0,s=i.length;o<s;o++)a(i[o],r)}(t)},this.update=function(){this.init()}};return e.update=function(){e.instance.update()},e.detach=function(t){t.elementQueriesSetupInformation?(t.elementQueriesSensor.detach(),delete t.elementQueriesSetupInformation,delete t.elementQueriesSensor):t.resizeSensorInstance&&(t.resizeSensorInstance.detach(),delete t.resizeSensorInstance)},e.init=function(){e.instance||(e.instance=new e),e.instance.init()},e.findElementQueriesElements=function(t){e.instance.findElementQueriesElements(t)},e.listen=function(){!function(t){if(document.addEventListener)document.addEventListener("DOMContentLoaded",t,!1);else if(/KHTML|WebKit|iCab/i.test(navigator.userAgent))var e=setInterval((function(){/loaded|complete/i.test(document.readyState)&&(t(),clearInterval(e))}),10);else window.onload=t}(e.init)},e})?r.apply(e,i):r)||(t.exports=o)},"4e6e":function(t,e,n){t.exports={graphlib:n("vC4J"),layout:n("Pivv"),debug:n("zmx7"),util:{time:n("xxjf").time,notime:n("xxjf").notime},version:n("VQMV")}},"4jPf":function(t,e){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},"4p/L":function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},"4uJK":function(t,e,n){var r=n("CbIe"),i=n("OtNC"),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},"58Ui":function(t,e,n){"use strict";var r=n("gjtd"),i=n("vC4J").Graph,o=n("K8/D").slack;function s(t,e){return r.forEach(t.nodes(),(function n(i){r.forEach(e.nodeEdges(i),(function(r){var s=r.v,a=i===s?r.w:s;t.hasNode(a)||o(e,r)||(t.setNode(a,{}),t.setEdge(i,a,{}),n(a))}))})),t.nodeCount()}function a(t,e){return r.minBy(e.edges(),(function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return o(e,n)}))}function u(t,e,n){r.forEach(t.nodes(),(function(t){e.node(t).rank+=n}))}t.exports=function(t){var e,n,r=new i({directed:!1}),c=t.nodes()[0],l=t.nodeCount();for(r.setNode(c,{});s(r,t)<l;)e=a(r,t),n=r.hasNode(e.v)?o(t,e):-o(t,e),u(r,t,n);return r}},"5AdH":function(t,e){t.exports="2.1.8"},"5Ck4":function(t,e,n){var r=n("Jl0P");t.exports=function(t,e,n){r.isArray(e)||(e=[e]);var i=(t.isDirected()?t.successors:t.neighbors).bind(t),o=[],s={};return r.each(e,(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);!function t(e,n,i,o,s,a){r.has(o,n)||(o[n]=!0,i||a.push(n),r.each(s(n),(function(n){t(e,n,i,o,s,a)})),i&&a.push(n))}(t,e,"post"===n,s,i,o)})),o}},"5VYK":function(t,e,n){var r=n("6QIk");t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},"5WP5":function(t,e,n){var r=n("dnX/");t.exports=function(t,e,n){for(var i=-1,o=t.criteria,s=e.criteria,a=o.length,u=n.length;++i<a;){var c=r(o[i],s[i]);if(c)return i>=u?c:c*("desc"==n[i]?-1:1)}return t.index-e.index}},"5nKN":function(t,e,n){var r=n("2q8g"),i=n("9vbJ"),o=n("tQYX"),s=n("c18h"),a=/^\[object .+?Constructor\]$/,u=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?u:a).test(s(t))}},"5pfJ":function(t,e,n){var r=n("vxC8")(Object,"create");t.exports=r},"5q8j":function(t,e){t.exports=function(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}},"5vqC":function(t,e,n){t.exports={ResizeSensor:n("MXs6"),ElementQueries:n("4Xgz")}},"6I2w":function(t,e,n){var r=n("kkM+"),i=n("tLQN");t.exports=function(t){return i(t)&&"[object Set]"==r(t)}},"6QIk":function(t,e,n){var r=n("pPzx");t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},"6R5o":function(t,e,n){var r=n("1aYn")(n("FllU"));t.exports=r},"6Rtw":function(t,e,n){var r=n("EAGB");t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},"6UKJ":function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},"6XIJ":function(t,e){var n=/\s/;t.exports=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},"7/jS":function(t,e,n){var r=n("Dhk8"),i=n("t0L4"),o=n("tLQN"),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!s[r(t)]}},"7/we":function(t,e,n){var r=n("ZjRn"),i=n("hMsr"),o=n("0Ss3");t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},"70Le":function(t,e,n){var r=n("W0vE"),i=n("X4R2"),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols;t.exports=s?function(t){return null==t?[]:(t=Object(t),r(s(t),(function(e){return o.call(t,e)})))}:i},"7No3":function(t,e,n){var r=n("EAGB"),i=n("lN3w"),o=n("Bstx"),s=n("bVbG"),a=n("6Rtw");t.exports=function(t,e,n){var u=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new u(+t);case"[object DataView]":return i(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(t,n);case"[object Map]":return new u;case"[object Number]":case"[object String]":return new u(t);case"[object RegExp]":return o(t);case"[object Set]":return new u;case"[object Symbol]":return s(t)}}},"7Pat":function(t,e,n){var r=n("+7q0"),i=n("kG2z")(r);t.exports=i},"7seP":function(t,e,n){var r=n("4uJK"),i=n("kkM+"),o=n("9y2L"),s=n("nDih"),a=n("GVul");t.exports=function(t){if(null==t)return 0;if(o(t))return s(t)?a(t):t.length;var e=i(t);return"[object Map]"==e||"[object Set]"==e?t.size:r(t).length}},"8Zrg":function(t,e){t.exports=function(){this.__data__=[],this.size=0}},"9SCj":function(t,e,n){var r=n("LmOH"),i=n("Q4oW"),o=n("D49j"),s=n("wxYD");t.exports=function(t,e){return(s(t)?r:i)(t,o(e))}},"9SKQ":function(t,e,n){var r=n("JNqh");t.exports=function(t){return r(this,t).has(t)}},"9TP6":function(t,e,n){var r=n("OBn4"),i=n("nnm9"),o=n("XlL0"),s=r&&1/o(new r([,-0]))[1]==1/0?function(t){return new r(t)}:i;t.exports=s},"9au6":function(t,e){var n=Math.ceil,r=Math.max;t.exports=function(t,e,i,o){for(var s=-1,a=r(n((e-t)/(i||1)),0),u=Array(a);a--;)u[o?a:++s]=t,t+=i;return u}},"9vbJ":function(t,e,n){var r,i=n("3KBa"),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},"9y2L":function(t,e,n){var r=n("2q8g"),i=n("t0L4");t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},AjPR:function(t,e,n){var r=n("LtXa"),i=n("70Le");t.exports=function(t,e){return r(t,i(t),e)}},BSqe:function(t,e){t.exports=function(t){return this.__data__.get(t)}},BjSP:function(t,e,n){var r=n("LtXa"),i=n("Xidw");t.exports=function(t,e){return r(t,i(t),e)}},BlJA:function(t,e,n){var r=n("rmhs"),i=n("4uJK"),o=n("9y2L");t.exports=function(t){return o(t)?r(t):i(t)}},BpeN:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=10,i=(1+Math.sqrt(5))/2,o=1e-4;e.applyPacking=function(t,e,n,s,a,u){void 0===a&&(a=1),void 0===u&&(u=!0);var c=e,l=n,h=(a=void 0!==a?a:1,s=void 0!==s?s:0,0),f=0,d=0,p=0,g=[];function m(t,e){g=[],h=0,f=0,p=0;for(var n=0;n<t.length;n++)y(t[n],e);return Math.abs(h/f-a)}function y(t,e){for(var n=void 0,i=0;i<g.length;i++)if(g[i].space_left>=t.height&&g[i].x+g[i].width+t.width+r-e<=o){n=g[i];break}g.push(t),void 0!==n?(t.x=n.x+n.width+r,t.y=n.bottom,t.space_left=t.height,t.bottom=t.y,n.space_left-=t.height+r,n.bottom+=t.height+r):(t.y=p,p+=t.height+r,t.x=0,t.bottom=t.y,t.space_left=t.height),t.y+t.height-f>-1e-4&&(f=t.y+t.height-0),t.x+t.width-h>-1e-4&&(h=t.x+t.width-0)}0!=t.length&&(function(t){t.forEach((function(t){var e,n,r,i,o;e=t,n=Number.MAX_VALUE,r=Number.MAX_VALUE,i=0,o=0,e.array.forEach((function(t){var e=void 0!==t.width?t.width:s,a=void 0!==t.height?t.height:s;e/=2,a/=2,i=Math.max(t.x+e,i),n=Math.min(t.x-e,n),o=Math.max(t.y+a,o),r=Math.min(t.y-a,r)})),e.width=i-n,e.height=o-r}))}(t),function(t,e){var n=Number.POSITIVE_INFINITY,s=0;t.sort((function(t,e){return e.height-t.height}));for(var a=y=d=t.reduce((function(t,e){return t.width<e.width?t.width:e.width})),u=v=function(t){var e=0;return t.forEach((function(t){return e+=t.width+r})),e}(t),c=0,l=Number.MAX_VALUE,h=Number.MAX_VALUE,f=-1,p=Number.MAX_VALUE,g=Number.MAX_VALUE;p>d||g>o;){if(1!=f){var y=u-(u-a)/i;l=m(t,y)}if(0!=f){var v=a+(u-a)/i;h=m(t,v)}if(p=Math.abs(y-v),g=Math.abs(l-h),l<n&&(n=l,s=y),h<n&&(n=h,s=v),l>h?(a=y,y=v,l=h,f=1):(u=v,v=y,h=l,f=0),c++>100)break}m(t,s)}(t),u&&function(t){t.forEach((function(t){var e={x:0,y:0};t.array.forEach((function(t){e.x+=t.x,e.y+=t.y})),e.x/=t.array.length,e.y/=t.array.length;var n=t.x-(e.x-t.width/2)+c/2-h/2,r=t.y-(e.y-t.height/2)+l/2-f/2;t.array.forEach((function(t){t.x+=n,t.y+=r}))}))}(t))},e.separateGraphs=function(t,e){for(var n={},r={},i=[],o=0,s=0;s<e.length;s++){var a=e[s],u=a.source,c=a.target;r[u.index]?r[u.index].push(c):r[u.index]=[c],r[c.index]?r[c.index].push(u):r[c.index]=[u]}for(s=0;s<t.length;s++){var l=t[s];n[l.index]||h(l,!0)}function h(t,e){if(void 0===n[t.index]){e&&(o++,i.push({array:[]})),n[t.index]=o,i[o-1].array.push(t);var s=r[t.index];if(s)for(var a=0;a<s.length;a++)h(s[a],!1)}}return i}},BqUW:function(t,e,n){var r=n("HsnV"),i=n("ZZ+W"),o=n("R3gn"),s=n("yZHP"),a=n("kkM+"),u=n("wxYD"),c=n("3ajY"),l=n("Qd2C"),h="[object Arguments]",f="[object Array]",d="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,g,m,y){var v=u(t),_=u(e),w=v?f:a(t),b=_?f:a(e),x=(w=w==h?d:w)==d,E=(b=b==h?d:b)==d,S=w==b;if(S&&c(t)){if(!c(e))return!1;v=!0,x=!1}if(S&&!x)return y||(y=new r),v||l(t)?i(t,e,n,g,m,y):o(t,e,w,n,g,m,y);if(!(1&n)){var k=x&&p.call(t,"__wrapped__"),C=E&&p.call(e,"__wrapped__");if(k||C){var T=k?t.value():t,A=C?e.value():e;return y||(y=new r),m(T,A,n,g,y)}}return!!S&&(y||(y=new r),s(t,e,n,g,m,y))}},Bstx:function(t,e){var n=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,n.exec(t));return e.lastIndex=t.lastIndex,e}},CEyS:function(t,e,n){var r=n("w2Tz");t.exports=function(t){return function(e){return r(e,t)}}},CZlo:function(t,e){t.exports=function(t){return void 0===t}},CbIe:function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},Cmkl:function(t,e,n){var r=n("2M3I")();t.exports=r},"Coc+":function(t,e,n){var r=n("6QIk");t.exports=function(t){return r(this.__data__,t)>-1}},D49j:function(t,e,n){var r=n("zWgn");t.exports=function(t){return"function"==typeof t?t:r}},D5rW:function(t,e,n){var r=n("gjtd"),i=n("vC4J").Graph;t.exports=function(t,e,n){var o=function(t){for(var e;t.hasNode(e=r.uniqueId("_root")););return e}(t),s=new i({compound:!0}).setGraph({root:o}).setDefaultNodeLabel((function(e){return t.node(e)}));return r.forEach(t.nodes(),(function(i){var a=t.node(i),u=t.parent(i);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(s.setNode(i),s.setParent(i,u||o),r.forEach(t[n](i),(function(e){var n=e.v===i?e.w:e.v,o=s.edge(n,i),a=r.isUndefined(o)?0:o.weight;s.setEdge(n,i,{weight:t.edge(e).weight+a})})),r.has(a,"minRank")&&s.setNode(i,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))})),s}},Dhk8:function(t,e,n){var r=n("Syyo"),i=n("KCLV"),o=n("kHoZ"),s=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?i(t):o(t)}},DjCF:function(t,e){t.exports=function(){return!1}},DuXo:function(t,e){t.exports=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}},DzXQ:function(t,e,n){var r=n("gjtd");t.exports=function(t,e,n){var i,o={};r.forEach(n,(function(n){for(var r,s,a=t.parent(n);a;){if((r=t.parent(a))?(s=o[r],o[r]=a):(s=i,i=a),s&&s!==a)return void e.setEdge(s,a);a=r}}))}},E4ao:function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},EAGB:function(t,e,n){var r=n("mGzy");t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},EI7Z:function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},EMSI:function(t,e,n){"use strict";var r=n("gjtd"),i=n("58Ui"),o=n("K8/D").slack,s=n("K8/D").longestPath,a=n("vC4J").alg.preorder,u=n("vC4J").alg.postorder,c=n("xxjf").simplify;function l(t){t=c(t),s(t);var e,n=i(t);for(d(n),h(n,t);e=g(n);)y(n,t,e,m(n,t,e))}function h(t,e){var n=u(t,t.nodes());n=n.slice(0,n.length-1),r.forEach(n,(function(n){!function(t,e,n){var r=t.node(n);t.edge(n,r.parent).cutvalue=f(t,e,n)}(t,e,n)}))}function f(t,e,n){var i=t.node(n).parent,o=!0,s=e.edge(n,i),a=0;return s||(o=!1,s=e.edge(i,n)),a=s.weight,r.forEach(e.nodeEdges(n),(function(r){var s=r.v===n,u=s?r.w:r.v;if(u!==i){var c=s===o,l=e.edge(r).weight;if(a+=c?l:-l,t.hasEdge(n,u)){var h=t.edge(n,u).cutvalue;a+=c?-h:h}}})),a}function d(t,e){arguments.length<2&&(e=t.nodes()[0]),p(t,{},1,e)}function p(t,e,n,i,o){var s=n,a=t.node(i);return e[i]=!0,r.forEach(t.neighbors(i),(function(o){r.has(e,o)||(n=p(t,e,n,o,i))})),a.low=s,a.lim=n++,o?a.parent=o:delete a.parent,n}function g(t){return r.find(t.edges(),(function(e){return t.edge(e).cutvalue<0}))}function m(t,e,n){var i=n.v,s=n.w;e.hasEdge(i,s)||(i=n.w,s=n.v);var a=t.node(i),u=t.node(s),c=a,l=!1;a.lim>u.lim&&(c=u,l=!0);var h=r.filter(e.edges(),(function(e){return l===v(0,t.node(e.v),c)&&l!==v(0,t.node(e.w),c)}));return r.minBy(h,(function(t){return o(e,t)}))}function y(t,e,n,i){t.removeEdge(n.v,n.w),t.setEdge(i.v,i.w,{}),d(t),h(t,e),function(t,e){var n=r.find(t.nodes(),(function(t){return!e.node(t).parent})),i=a(t,n);i=i.slice(1),r.forEach(i,(function(n){var r=t.node(n).parent,i=e.edge(n,r),o=!1;i||(i=e.edge(r,n),o=!0),e.node(n).rank=e.node(r).rank+(o?i.minlen:-i.minlen)}))}(t,e)}function v(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=l,l.initLowLimValues=d,l.initCutValues=h,l.calcCutValue=f,l.leaveEdge=g,l.enterEdge=m,l.exchangeEdges=y},ENE1:function(t,e,n){var r=n("IBsm");t.exports=function(){return r.Date.now()}},FaiA:function(t,e){t.exports=function(t,e){return t>e}},FllU:function(t,e,n){var r=n("DuXo"),i=n("S3pA"),o=n("m2YG"),s=Math.max;t.exports=function(t,e,n){var a=null==t?0:t.length;if(!a)return-1;var u=null==n?0:o(n);return u<0&&(u=s(a+u,0)),r(t,i(e,3),u)}},GVul:function(t,e,n){var r=n("2wsP"),i=n("GZgP"),o=n("QZ90");t.exports=function(t){return i(t)?o(t):r(t)}},GZgP:function(t,e){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return n.test(t)}},Grae:function(t,e,n){(function(t){var r=n("IBsm"),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===i?r.Buffer:void 0,a=s?s.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=a?a(n):new t.constructor(n);return t.copy(r),r}}).call(this,n("aYSr")(t))},H87J:function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},H8sf:function(t,e,n){var r=n("MzY2"),i=n("wpQC")((function(t,e,n){r(t,e,n)}));t.exports=i},Hp3j:function(t,e,n){"use strict";var r=n("gjtd");t.exports=function(t,e){var n={};return r.forEach(t,(function(t,e){var i=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};r.isUndefined(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)})),r.forEach(e.edges(),(function(t){var e=n[t.v],i=n[t.w];r.isUndefined(e)||r.isUndefined(i)||(i.indegree++,e.out.push(n[t.w]))})),function(t){var e=[];function n(t){return function(e){var n,i,o,s;e.merged||(r.isUndefined(e.barycenter)||r.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&(o=0,s=0,(n=t).weight&&(o+=n.barycenter*n.weight,s+=n.weight),(i=e).weight&&(o+=i.barycenter*i.weight,s+=i.weight),n.vs=i.vs.concat(n.vs),n.barycenter=o/s,n.weight=s,n.i=Math.min(i.i,n.i),i.merged=!0)}}function i(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var o=t.pop();e.push(o),r.forEach(o.in.reverse(),n(o)),r.forEach(o.out,i(o))}return r.map(r.filter(e,(function(t){return!t.merged})),(function(t){return r.pick(t,["vs","i","barycenter","weight"])}))}(r.filter(n,(function(t){return!t.indegree})))}},HsnV:function(t,e,n){var r=n("+ooz"),i=n("RNlM"),o=n("E4ao"),s=n("BSqe"),a=n("L6um"),u=n("4/ik");function c(t){var e=this.__data__=new r(t);this.size=e.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=s,c.prototype.has=a,c.prototype.set=u,t.exports=c},I1fX:function(t,e,n){var r=n("6XIJ"),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},IBsm:function(t,e,n){var r=n("e93E"),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},IS0S:function(t,e,n){var r=n("vxC8")(n("IBsm"),"Promise");t.exports=r},"JBn+":function(t,e,n){var r=n("hyzI"),i=n("qjF7"),o=n("cEmw");function s(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}s.prototype.add=s.prototype.push=i,s.prototype.has=o,t.exports=s},JElN:function(t,e,n){var r=n("a88S");t.exports=function(t,e,n){for(var i=-1,o=t.length;++i<o;){var s=t[i],a=e(s);if(null!=a&&(void 0===u?a==a&&!r(a):n(a,u)))var u=a,c=s}return c}},JNqh:function(t,e,n){var r=n("6UKJ");t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},JUZX:function(t,e,n){var r=n("gjtd");t.exports=function(t){var e=function(t){var e={},n=0;return r.forEach(t.children(),(function i(o){var s=n;r.forEach(t.children(o),i),e[o]={low:s,lim:n++}})),e}(t);r.forEach(t.graph().dummyChains,(function(n){for(var r=t.node(n),i=r.edgeObj,o=function(t,e,n,r){var i,o,s=[],a=[],u=Math.min(e[n].low,e[r].low),c=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),s.push(i)}while(i&&(e[i].low>u||c>e[i].lim));for(o=i,i=r;(i=t.parent(i))!==o;)a.push(i);return{path:s.concat(a.reverse()),lca:o}}(t,e,i.v,i.w),s=o.path,a=o.lca,u=0,c=s[u],l=!0;n!==i.w;){if(r=t.node(n),l){for(;(c=s[u])!==a&&t.node(c).maxRank<r.rank;)u++;c===a&&(l=!1)}if(!l){for(;u<s.length-1&&t.node(c=s[u+1]).minRank<=r.rank;)u++;c=s[u]}t.setParent(n,c),n=t.successors(n)[0]}}))}},JYAe:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){return function(t,e,n){this.source=t,this.target=e,this.type=n}}();e.PowerEdge=r;var i=function(){function t(t,e,n,r){var i=this;if(this.linkAccessor=n,this.modules=new Array(t),this.roots=[],r)this.initModulesFromGroup(r);else{this.roots.push(new s);for(var a=0;a<t;++a)this.roots[0].add(this.modules[a]=new o(a))}this.R=e.length,e.forEach((function(t){var e=i.modules[n.getSourceIndex(t)],r=i.modules[n.getTargetIndex(t)],o=n.getType(t);e.outgoing.add(o,r),r.incoming.add(o,e)}))}return t.prototype.initModulesFromGroup=function(t){var e=new s;this.roots.push(e);for(var n=0;n<t.leaves.length;++n){var r=t.leaves[n],i=new o(r.id);this.modules[r.id]=i,e.add(i)}if(t.groups)for(var u=0;u<t.groups.length;++u){var c=t.groups[u],l={};for(var h in c)"leaves"!==h&&"groups"!==h&&c.hasOwnProperty(h)&&(l[h]=c[h]);e.add(new o(-1-u,new a,new a,this.initModulesFromGroup(c),l))}return e},t.prototype.merge=function(t,e,n){void 0===n&&(n=0);var r=t.incoming.intersection(e.incoming),i=t.outgoing.intersection(e.outgoing),a=new s;a.add(t),a.add(e);var u=new o(this.modules.length,i,r,a);this.modules.push(u);var c=function(n,r,i){n.forAll((function(n,o){n.forAll((function(n){var s=n[r];s.add(o,u),s.remove(o,t),s.remove(o,e),t[i].remove(o,n),e[i].remove(o,n)}))}))};return c(i,"incoming","outgoing"),c(r,"outgoing","incoming"),this.R-=r.count()+i.count(),this.roots[n].remove(t),this.roots[n].remove(e),this.roots[n].add(u),u},t.prototype.rootMerges=function(t){void 0===t&&(t=0);for(var e=this.roots[t].modules(),n=e.length,r=new Array(n*(n-1)),i=0,o=0,s=n-1;o<s;++o)for(var a=o+1;a<n;++a){var u=e[o],c=e[a];r[i]={id:i,nEdges:this.nEdges(u,c),a:u,b:c},i++}return r},t.prototype.greedyMerge=function(){for(var t=0;t<this.roots.length;++t)if(!(this.roots[t].modules().length<2)){var e=this.rootMerges(t).sort((function(t,e){return t.nEdges==e.nEdges?t.id-e.id:t.nEdges-e.nEdges}))[0];if(!(e.nEdges>=this.R))return this.merge(e.a,e.b,t),!0}},t.prototype.nEdges=function(t,e){var n=t.incoming.intersection(e.incoming),r=t.outgoing.intersection(e.outgoing);return this.R-n.count()-r.count()},t.prototype.getGroupHierarchy=function(t){var e=this,n=[];return function t(e,n,r){e.forAll((function(e){if(e.isLeaf())n.leaves||(n.leaves=[]),n.leaves.push(e.id);else{var i=n;if(e.gid=r.length,!e.isIsland()||e.isPredefined()){if(i={id:e.gid},e.isPredefined())for(var o in e.definition)i[o]=e.definition[o];n.groups||(n.groups=[]),n.groups.push(e.gid),r.push(i)}t(e.children,i,r)}}))}(this.roots[0],{},n),this.allEdges().forEach((function(i){var o=e.modules[i.source],s=e.modules[i.target];t.push(new r(void 0===o.gid?i.source:n[o.gid],void 0===s.gid?i.target:n[s.gid],i.type))})),n},t.prototype.allEdges=function(){var e=[];return t.getEdges(this.roots[0],e),e},t.getEdges=function(e,n){e.forAll((function(e){e.getEdges(n),t.getEdges(e.children,n)}))},t}();e.Configuration=i;var o=function(){function t(t,e,n,r,i){void 0===e&&(e=new a),void 0===n&&(n=new a),void 0===r&&(r=new s),this.id=t,this.outgoing=e,this.incoming=n,this.children=r,this.definition=i}return t.prototype.getEdges=function(t){var e=this;this.outgoing.forAll((function(n,i){n.forAll((function(n){t.push(new r(e.id,n.id,i))}))}))},t.prototype.isLeaf=function(){return 0===this.children.count()},t.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},t.prototype.isPredefined=function(){return void 0!==this.definition},t}();e.Module=o;var s=function(){function t(){this.table={}}return t.prototype.count=function(){return Object.keys(this.table).length},t.prototype.intersection=function(e){var n=new t;return n.table=function(t,e){var n={};for(var r in t)r in e&&(n[r]=t[r]);return n}(this.table,e.table),n},t.prototype.intersectionCount=function(t){return this.intersection(t).count()},t.prototype.contains=function(t){return t in this.table},t.prototype.add=function(t){this.table[t.id]=t},t.prototype.remove=function(t){delete this.table[t.id]},t.prototype.forAll=function(t){for(var e in this.table)t(this.table[e])},t.prototype.modules=function(){var t=[];return this.forAll((function(e){e.isPredefined()||t.push(e)})),t},t}();e.ModuleSet=s;var a=function(){function t(){this.sets={},this.n=0}return t.prototype.count=function(){return this.n},t.prototype.contains=function(t){var e=!1;return this.forAllModules((function(n){e||n.id!=t||(e=!0)})),e},t.prototype.add=function(t,e){(t in this.sets?this.sets[t]:this.sets[t]=new s).add(e),++this.n},t.prototype.remove=function(t,e){var n=this.sets[t];n.remove(e),0===n.count()&&delete this.sets[t],--this.n},t.prototype.forAll=function(t){for(var e in this.sets)t(this.sets[e],Number(e))},t.prototype.forAllModules=function(t){this.forAll((function(e,n){return e.forAll(t)}))},t.prototype.intersection=function(e){var n=new t;return this.forAll((function(t,r){if(r in e.sets){var i=t.intersection(e.sets[r]),o=i.count();o>0&&(n.sets[r]=i,n.n+=o)}})),n},t}();e.LinkSets=a,e.getGroups=function(t,e,n,r){for(var o=new i(t.length,e,n,r);o.greedyMerge(););var s=[],a=o.getGroupHierarchy(s);return s.forEach((function(e){var n=function(n){var r=e[n];"number"==typeof r&&(e[n]=t[r])};n("source"),n("target")})),{groups:a,powerEdges:s}}},JYmt:function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},JcJ6:function(t,e,n){var r=n("Syyo"),i=n("H87J"),o=n("wxYD"),s=n("a88S"),a=r?r.prototype:void 0,u=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(s(e))return u?u.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},Jl0P:function(t,e,n){var r;try{r={clone:n("zr3P"),constant:n("eN33"),each:n("h4um"),filter:n("+DnP"),has:n("1mr4"),isArray:n("wxYD"),isEmpty:n("MwrP"),isFunction:n("2q8g"),isUndefined:n("CZlo"),keys:n("BlJA"),map:n("mbB6"),reduce:n("veKZ"),size:n("7seP"),transform:n("cZX/"),union:n("aGtI"),values:n("0iyY")}}catch(i){}r||(r=window._),t.exports=r},"K8/D":function(t,e,n){"use strict";var r=n("gjtd");t.exports={longestPath:function(t){var e={};r.forEach(t.sources(),(function n(i){var o=t.node(i);if(r.has(e,i))return o.rank;e[i]=!0;var s=r.min(r.map(t.outEdges(i),(function(e){return n(e.w)-t.edge(e).minlen})));return s!==Number.POSITIVE_INFINITY&&null!=s||(s=0),o.rank=s}))},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},"KAo/":function(t,e,n){var r=n("NYSw"),i=n("2srY"),o=n("NW/2"),s=n("i7nn"),a=n("+tCn"),u=n("0Ss3"),c=n("Ypsa");t.exports=function(t,e){return s(t)&&a(e)?u(c(t),e):function(n){var s=i(n,t);return void 0===s&&s===e?o(n,t):r(e,s,3)}}},KCLV:function(t,e,n){var r=n("Syyo"),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(u){}var i=s.call(t);return r&&(e?t[a]=n:delete t[a]),i}},Kkar:function(t,e,n){var r=n("Dhk8"),i=n("/wCD"),o=n("tLQN"),s=Function.prototype.toString,a=Object.prototype.hasOwnProperty,u=s.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=a.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==u}},L6um:function(t,e){t.exports=function(t){return this.__data__.has(t)}},LL3N:function(t,e){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},"LPC+":function(t,e,n){var r=n("JElN"),i=n("FaiA"),o=n("zWgn");t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},Lm04:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.locks={}}return t.prototype.add=function(t,e){this.locks[t]=e},t.prototype.clear=function(){this.locks={}},t.prototype.isEmpty=function(){for(var t in this.locks)return!1;return!0},t.prototype.apply=function(t){for(var e in this.locks)t(Number(e),this.locks[e])},t}();e.Locks=r,e.Descent=function(){function t(t,e,n){void 0===n&&(n=null),this.D=e,this.G=n,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new i,this.project=null,this.x=t,this.k=t.length;var o=this.n=t[0].length;this.H=new Array(this.k),this.g=new Array(this.k),this.Hd=new Array(this.k),this.a=new Array(this.k),this.b=new Array(this.k),this.c=new Array(this.k),this.d=new Array(this.k),this.e=new Array(this.k),this.ia=new Array(this.k),this.ib=new Array(this.k),this.xtmp=new Array(this.k),this.locks=new r,this.minD=Number.MAX_VALUE;for(var s,a=o;a--;)for(s=o;--s>a;){var u=e[a][s];u>0&&u<this.minD&&(this.minD=u)}for(this.minD===Number.MAX_VALUE&&(this.minD=1),a=this.k;a--;){for(this.g[a]=new Array(o),this.H[a]=new Array(o),s=o;s--;)this.H[a][s]=new Array(o);this.Hd[a]=new Array(o),this.a[a]=new Array(o),this.b[a]=new Array(o),this.c[a]=new Array(o),this.d[a]=new Array(o),this.e[a]=new Array(o),this.ia[a]=new Array(o),this.ib[a]=new Array(o),this.xtmp[a]=new Array(o)}}return t.createSquareMatrix=function(t,e){for(var n=new Array(t),r=0;r<t;++r){n[r]=new Array(t);for(var i=0;i<t;++i)n[r][i]=e(r,i)}return n},t.prototype.offsetDir=function(){for(var t=this,e=new Array(this.k),n=0,r=0;r<this.k;++r){var i=e[r]=this.random.getNextBetween(.01,1)-.5;n+=i*i}return n=Math.sqrt(n),e.map((function(e){return e*(t.minD/n)}))},t.prototype.computeDerivatives=function(t){var e=this,n=this.n;if(!(n<1)){for(var r,i=new Array(this.k),o=new Array(this.k),s=new Array(this.k),a=0,u=0;u<n;++u){for(r=0;r<this.k;++r)s[r]=this.g[r][u]=0;for(var c=0;c<n;++c)if(u!==c){for(var l=n;l--;){var h=0;for(r=0;r<this.k;++r){var f=i[r]=t[r][u]-t[r][c];h+=o[r]=f*f}if(h>1e-9)break;var d=this.offsetDir();for(r=0;r<this.k;++r)t[r][c]+=d[r]}var p=Math.sqrt(h),g=this.D[u][c],m=null!=this.G?this.G[u][c]:1;if(m>1&&p>g||!isFinite(g))for(r=0;r<this.k;++r)this.H[r][u][c]=0;else{m>1&&(m=1);var y=g*g,v=2*m*(p-g)/(y*p),_=p*p*p,w=2*-m/(y*_);for(isFinite(v)||console.log(v),r=0;r<this.k;++r)this.g[r][u]+=i[r]*v,s[r]-=this.H[r][u][c]=w*(_+g*(o[r]-h)+p*h)}}for(r=0;r<this.k;++r)a=Math.max(a,this.H[r][u][u]=s[r])}var b=this.snapGridSize/2,x=this.snapGridSize,E=this.snapStrength/(b*b),S=this.numGridSnapNodes;for(u=0;u<S;++u)for(r=0;r<this.k;++r){var k=this.x[r][u],C=k/x,T=C%1,A=C-T;-b<(f=Math.abs(T)<=.5?k-A*x:k>0?k-(A+1)*x:k-(A-1)*x)&&f<=b&&(this.scaleSnapByMaxH?(this.g[r][u]+=a*E*f,this.H[r][u][u]+=a*E):(this.g[r][u]+=E*f,this.H[r][u][u]+=E))}this.locks.isEmpty()||this.locks.apply((function(n,i){for(r=0;r<e.k;++r)e.H[r][n][n]+=a,e.g[r][n]-=a*(i[r]-t[r][n])}))}},t.dotProd=function(t,e){for(var n=0,r=t.length;r--;)n+=t[r]*e[r];return n},t.rightMultiply=function(e,n,r){for(var i=e.length;i--;)r[i]=t.dotProd(e[i],n)},t.prototype.computeStepSize=function(e){for(var n=0,r=0,i=0;i<this.k;++i)n+=t.dotProd(this.g[i],e[i]),t.rightMultiply(this.H[i],e[i],this.Hd[i]),r+=t.dotProd(e[i],this.Hd[i]);return 0!==r&&isFinite(r)?1*n/r:0},t.prototype.reduceStress=function(){this.computeDerivatives(this.x);for(var t=this.computeStepSize(this.g),e=0;e<this.k;++e)this.takeDescentStep(this.x[e],this.g[e],t);return this.computeStress()},t.copy=function(t,e){for(var n=t.length,r=e[0].length,i=0;i<n;++i)for(var o=0;o<r;++o)e[i][o]=t[i][o]},t.prototype.stepAndProject=function(e,n,r,i){t.copy(e,n),this.takeDescentStep(n[0],r[0],i),this.project&&this.project[0](e[0],e[1],n[0]),this.takeDescentStep(n[1],r[1],i),this.project&&this.project[1](n[0],e[1],n[1]);for(var o=2;o<this.k;o++)this.takeDescentStep(n[o],r[o],i)},t.mApply=function(t,e,n){for(var r=t;r-- >0;)for(var i=e;i-- >0;)n(r,i)},t.prototype.matrixApply=function(e){t.mApply(this.k,this.n,e)},t.prototype.computeNextPosition=function(t,e){var n=this;this.computeDerivatives(t);var r=this.computeStepSize(this.g);if(this.stepAndProject(t,e,this.g,r),this.project){this.matrixApply((function(r,i){return n.e[r][i]=t[r][i]-e[r][i]}));var i=this.computeStepSize(this.e);i=Math.max(.2,Math.min(i,1)),this.stepAndProject(t,e,this.e,i)}},t.prototype.run=function(t){for(var e=Number.MAX_VALUE,n=!1;!n&&t-- >0;){var r=this.rungeKutta();n=Math.abs(e/r-1)<this.threshold,e=r}return e},t.prototype.rungeKutta=function(){var e=this;this.computeNextPosition(this.x,this.a),t.mid(this.x,this.a,this.ia),this.computeNextPosition(this.ia,this.b),t.mid(this.x,this.b,this.ib),this.computeNextPosition(this.ib,this.c),this.computeNextPosition(this.c,this.d);var n=0;return this.matrixApply((function(t,r){var i=(e.a[t][r]+2*e.b[t][r]+2*e.c[t][r]+e.d[t][r])/6,o=e.x[t][r]-i;n+=o*o,e.x[t][r]=i})),n},t.mid=function(e,n,r){t.mApply(e.length,e[0].length,(function(t,i){return r[t][i]=e[t][i]+(n[t][i]-e[t][i])/2}))},t.prototype.takeDescentStep=function(t,e,n){for(var r=0;r<this.n;++r)t[r]=t[r]-n*e[r]},t.prototype.computeStress=function(){for(var t=0,e=0,n=this.n-1;e<n;++e)for(var r=e+1,i=this.n;r<i;++r){for(var o=0,s=0;s<this.k;++s){var a=this.x[s][e]-this.x[s][r];o+=a*a}o=Math.sqrt(o);var u=this.D[e][r];if(isFinite(u)){var c=u-o;t+=c*c/(u*u)}}return t},t.zeroDistance=1e-10,t}();var i=function(){function t(t){void 0===t&&(t=1),this.seed=t,this.a=214013,this.c=2531011,this.m=2147483648,this.range=32767}return t.prototype.getNext=function(){return this.seed=(this.seed*this.a+this.c)%this.m,(this.seed>>16)/this.range},t.prototype.getNextBetween=function(t,e){return t+this.getNext()*(e-t)},t}();e.PseudoRandom=i},LmOH:function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},LtXa:function(t,e,n){var r=n("c72w"),i=n("wC3K");t.exports=function(t,e,n,o){var s=!n;n||(n={});for(var a=-1,u=e.length;++a<u;){var c=e[a],l=o?o(n[c],t[c],c,n,t):void 0;void 0===l&&(l=t[c]),s?i(n,c,l):r(n,c,l)}return n}},LzM7:function(t,e,n){var r=n("6QIk");t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},M2c1:function(t,e,n){var r=n("Jl0P"),i=n("buMw");function o(t){return r.map(t.nodes(),(function(e){var n=t.node(e),i=t.parent(e),o={v:e};return r.isUndefined(n)||(o.value=n),r.isUndefined(i)||(o.parent=i),o}))}function s(t){return r.map(t.edges(),(function(e){var n=t.edge(e),i={v:e.v,w:e.w};return r.isUndefined(e.name)||(i.name=e.name),r.isUndefined(n)||(i.value=n),i}))}t.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:o(t),edges:s(t)};return r.isUndefined(t.graph())||(e.value=r.clone(t.graph())),e},read:function(t){var e=new i(t.options).setGraph(t.value);return r.each(t.nodes,(function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)})),r.each(t.edges,(function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)})),e}}},MXs6:function(t,e,n){"use strict";var r,i;"undefined"!=typeof window&&window,void 0===(i="function"==typeof(r=function(){if("undefined"==typeof window)return null;var t="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),e=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||function(e){return t.setTimeout(e,20)},n=t.cancelAnimationFrame||t.mozCancelAnimationFrame||t.webkitCancelAnimationFrame||function(e){t.clearTimeout(e)};function r(t,e){var n=Object.prototype.toString.call(t),r="[object Array]"===n||"[object NodeList]"===n||"[object HTMLCollection]"===n||"[object Object]"===n||"undefined"!=typeof jQuery&&t instanceof jQuery||"undefined"!=typeof Elements&&t instanceof Elements,i=0,o=t.length;if(r)for(;i<o;i++)e(t[i]);else e(t)}function i(t){if(!t.getBoundingClientRect)return{width:t.offsetWidth,height:t.offsetHeight};var e=t.getBoundingClientRect();return{width:Math.round(e.width),height:Math.round(e.height)}}function o(t,e){Object.keys(e).forEach((function(n){t.style[n]=e[n]}))}var s=function(t,a){var u=0;function c(){var t,e,n=[];this.add=function(t){n.push(t)},this.call=function(r){for(t=0,e=n.length;t<e;t++)n[t].call(this,r)},this.remove=function(r){var i=[];for(t=0,e=n.length;t<e;t++)n[t]!==r&&i.push(n[t]);n=i},this.length=function(){return n.length}}r(t,(function(t){!function(t,n){if(t)if(t.resizedAttached)t.resizedAttached.add(n);else{t.resizedAttached=new c,t.resizedAttached.add(n),t.resizeSensor=document.createElement("div"),t.resizeSensor.dir="ltr",t.resizeSensor.className="resize-sensor";var r={pointerEvents:"none",position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"},s={position:"absolute",left:"0px",top:"0px",transition:"0s"};o(t.resizeSensor,r);var a=document.createElement("div");a.className="resize-sensor-expand",o(a,r);var l=document.createElement("div");o(l,s),a.appendChild(l);var h=document.createElement("div");h.className="resize-sensor-shrink",o(h,r);var f=document.createElement("div");o(f,s),o(f,{width:"200%",height:"200%"}),h.appendChild(f),t.resizeSensor.appendChild(a),t.resizeSensor.appendChild(h),t.appendChild(t.resizeSensor);var d=window.getComputedStyle(t),p=d?d.getPropertyValue("position"):null;"absolute"!==p&&"relative"!==p&&"fixed"!==p&&"sticky"!==p&&(t.style.position="relative");var g=!1,m=0,y=i(t),v=0,_=0,w=!0;u=0;var b=function(){if(w){if(0===t.offsetWidth&&0===t.offsetHeight)return void(u||(u=e((function(){u=0,b()}))));w=!1}var n,r;r=t.offsetHeight,l.style.width=(n=t.offsetWidth)+10+"px",l.style.height=r+10+"px",a.scrollLeft=n+10,a.scrollTop=r+10,h.scrollLeft=n+10,h.scrollTop=r+10};t.resizeSensor.resetSensor=b;var x=function(){m=0,g&&(v=y.width,_=y.height,t.resizedAttached&&t.resizedAttached.call(y))},E=function(){y=i(t),(g=y.width!==v||y.height!==_)&&!m&&(m=e(x)),b()},S=function(t,e,n){t.attachEvent?t.attachEvent("on"+e,n):t.addEventListener(e,n)};S(a,"scroll",E),S(h,"scroll",E),u=e((function(){u=0,b()}))}}(t,a)})),this.detach=function(e){u||(n(u),u=0),s.detach(t,e)},this.reset=function(){t.resizeSensor.resetSensor()}};if(s.reset=function(t){r(t,(function(t){t.resizeSensor.resetSensor()}))},s.detach=function(t,e){r(t,(function(t){t&&(t.resizedAttached&&"function"==typeof e&&(t.resizedAttached.remove(e),t.resizedAttached.length())||t.resizeSensor&&(t.contains(t.resizeSensor)&&t.removeChild(t.resizeSensor),delete t.resizeSensor,delete t.resizedAttached))}))},"undefined"!=typeof MutationObserver){var a=new MutationObserver((function(t){for(var e in t)if(t.hasOwnProperty(e))for(var n=t[e].addedNodes,r=0;r<n.length;r++)n[r].resizeSensor&&s.reset(n[r])}));document.addEventListener("DOMContentLoaded",(function(t){a.observe(document.body,{childList:!0,subtree:!0})}))}return s})?r.call(e,n,e,t):r)||(t.exports=i)},MwrP:function(t,e,n){var r=n("4uJK"),i=n("kkM+"),o=n("bvyN"),s=n("wxYD"),a=n("9y2L"),u=n("3ajY"),c=n("CbIe"),l=n("Qd2C"),h=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(a(t)&&(s(t)||"string"==typeof t||"function"==typeof t.splice||u(t)||l(t)||o(t)))return!t.length;var e=i(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(c(t))return!r(t).length;for(var n in t)if(h.call(t,n))return!1;return!0}},MzY2:function(t,e,n){var r=n("HsnV"),i=n("amiU"),o=n("UdtX"),s=n("cb1R"),a=n("tQYX"),u=n("zH+d"),c=n("LL3N");t.exports=function t(e,n,l,h,f){e!==n&&o(n,(function(o,u){if(f||(f=new r),a(o))s(e,n,u,l,t,h,f);else{var d=h?h(c(e,u),o,u+"",e,n,f):void 0;void 0===d&&(d=o),i(e,u,d)}}),u)}},NI55:function(t,e,n){"use strict";var r=n("gjtd");t.exports=function(t){var e={},n=r.filter(t.nodes(),(function(e){return!t.children(e).length})),i=r.max(r.map(n,(function(e){return t.node(e).rank}))),o=r.map(r.range(i+1),(function(){return[]})),s=r.sortBy(n,(function(e){return t.node(e).rank}));return r.forEach(s,(function n(i){if(!r.has(e,i)){e[i]=!0;var s=t.node(i);o[s.rank].push(i),r.forEach(t.successors(i),n)}})),o}},"NW/2":function(t,e,n){var r=n("JYmt"),i=n("z+TE");t.exports=function(t,e){return null!=t&&i(t,e,r)}},NYSw:function(t,e,n){var r=n("BqUW"),i=n("tLQN");t.exports=function t(e,n,o,s,a){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,s,t,a))}},NbvU:function(t,e,n){var r=n("gEWz"),i=n("SU8Q"),o=n("T6vp"),s=o&&o.isMap,a=s?i(s):r;t.exports=a},Ndl3:function(t,e,n){var r=n("9y2L"),i=n("tLQN");t.exports=function(t){return i(t)&&r(t)}},Nebv:function(t,e,n){"use strict";var r=n("gjtd"),i=n("xxjf"),o=n("xaOS").positionX;t.exports=function(t){(function(t){var e=i.buildLayerMatrix(t),n=t.graph().ranksep,o=0;r.forEach(e,(function(e){var i=r.max(r.map(e,(function(e){return t.node(e).height})));r.forEach(e,(function(e){t.node(e).y=o+i/2})),o+=i+n}))})(t=i.asNonCompoundGraph(t)),r.forEach(o(t),(function(e,n){t.node(n).x=e}))}},O1Sc:function(t,e,n){var r=n("w2Tz"),i=n("y4bl"),o=n("xoyU");t.exports=function(t,e,n){for(var s=-1,a=e.length,u={};++s<a;){var c=e[s],l=r(t,c);n(l,c)&&i(u,o(c,t),l)}return u}},OAVv:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n("gbTj"),s=function(){return function(){}}();e.Point=s;var a=function(){return function(t,e,n,r){this.x1=t,this.y1=e,this.x2=n,this.y2=r}}();function u(t,e,n){return(e.x-t.x)*(n.y-t.y)-(n.x-t.x)*(e.y-t.y)}function c(t,e,n){return u(t,e,n)>0}function l(t,e,n){return u(t,e,n)<0}function h(t,e){var n,r,i,o,s=e.length-1;if(l(t,e[1],e[0])&&!c(t,e[s-1],e[0]))return 0;for(n=0,r=s;;){if(r-n==1)return c(t,e[n],e[r])?n:r;if((o=l(t,e[(i=Math.floor((n+r)/2))+1],e[i]))&&!c(t,e[i-1],e[i]))return i;c(t,e[n+1],e[n])?o||c(t,e[n],e[i])?r=i:n=i:o&&l(t,e[n],e[i])?r=i:n=i}}function f(t,e){var n,r,i,o,s=e.length-1;if(c(t,e[s-1],e[0])&&!l(t,e[1],e[0]))return 0;for(n=0,r=s;;){if(r-n==1)return l(t,e[n],e[r])?n:r;if(o=l(t,e[(i=Math.floor((n+r)/2))+1],e[i]),c(t,e[i-1],e[i])&&!o)return i;l(t,e[n+1],e[n])?o?l(t,e[n],e[i])?r=i:n=i:r=i:o?n=i:c(t,e[n],e[i])?r=i:n=i}}function d(t,e,n,r,i,o){var s,a;a=r(t[s=n(e[0],t)],e);for(var u=!1;!u;){for(u=!0;s===t.length-1&&(s=0),!i(e[a],t[s],t[s+1]);)++s;for(;0===a&&(a=e.length-1),!o(t[s],e[a],e[a-1]);)--a,u=!1}return{t1:s,t2:a}}function p(t,e){return d(t,e,h,f,c,l)}e.LineSegment=a,e.PolyPoint=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(s),e.isLeft=u,e.ConvexHull=function(t){var e,n=t.slice(0).sort((function(t,e){return t.x!==e.x?e.x-t.x:e.y-t.y})),r=t.length,i=n[0].x;for(e=1;e<r&&n[e].x===i;++e);var o=e-1,s=[];if(s.push(n[0]),o===r-1)n[o].y!==n[0].y&&s.push(n[o]);else{var a,c=r-1,l=n[r-1].x;for(e=r-2;e>=0&&n[e].x===l;e--);for(a=e+1,e=o;++e<=a;)if(!(u(n[0],n[a],n[e])>=0&&e<a)){for(;s.length>1&&!(u(s[s.length-2],s[s.length-1],n[e])>0);)s.length-=1;0!=e&&s.push(n[e])}c!=a&&s.push(n[c]);var h=s.length;for(e=a;--e>=o;)if(!(u(n[c],n[o],n[e])>=0&&e>o)){for(;s.length>h&&!(u(s[s.length-2],s[s.length-1],n[e])>0);)s.length-=1;0!=e&&s.push(n[e])}}return s},e.clockwiseRadialSweep=function(t,e,n){e.slice(0).sort((function(e,n){return Math.atan2(e.y-t.y,e.x-t.x)-Math.atan2(n.y-t.y,n.x-t.x)})).forEach(n)},e.tangent_PolyPolyC=d,e.LRtangent_PolyPolyC=function(t,e){var n=p(e,t);return{t1:n.t2,t2:n.t1}},e.RLtangent_PolyPolyC=p,e.LLtangent_PolyPolyC=function(t,e){return d(t,e,f,f,l,l)},e.RRtangent_PolyPolyC=function(t,e){return d(t,e,h,h,c,c)};var g=function(){return function(t,e){this.t1=t,this.t2=e}}();e.BiTangent=g;var m=function(){return function(){}}();e.BiTangents=m,e.TVGPoint=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(s);var y=function(){return function(t,e,n,r){this.id=t,this.polyid=e,this.polyvertid=n,this.p=r,r.vv=this}}();e.VisibilityVertex=y;var v=function(){function t(t,e){this.source=t,this.target=e}return t.prototype.length=function(){var t=this.source.p.x-this.target.p.x,e=this.source.p.y-this.target.p.y;return Math.sqrt(t*t+e*e)},t}();function _(t,e){for(var n=[],r=1,i=e.length;r<i;++r){var s=o.Rectangle.lineIntersection(t.x1,t.y1,t.x2,t.y2,e[r-1].x,e[r-1].y,e[r].x,e[r].y);s&&n.push(s)}return n}function w(t,e){for(var n=t.length-1,r=e.length-1,i=new m,o=0;o<n;++o)for(var s=0;s<r;++s){var a=t[0==o?n-1:o-1],c=t[o],l=t[o+1],h=e[0==s?r-1:s-1],f=e[s],d=e[s+1],p=u(a,c,f),y=u(c,h,f),v=u(c,f,d),_=u(h,f,c),w=u(f,a,c),b=u(f,c,l);p>=0&&y>=0&&v<0&&_>=0&&w>=0&&b<0?i.ll=new g(o,s):p<=0&&y<=0&&v>0&&_<=0&&w<=0&&b>0?i.rr=new g(o,s):p<=0&&y>0&&v<=0&&_>=0&&w<0&&b>=0?i.rl=new g(o,s):p>=0&&y<0&&v>=0&&_<=0&&w>0&&b<=0&&(i.lr=new g(o,s))}return i}function b(t,e){return!t.every((function(t){return!function(t,e){for(var n=1,r=e.length;n<r;++n)if(l(e[n-1],e[n],t))return!1;return!0}(t,e)}))}e.VisibilityEdge=v,e.TangentVisibilityGraph=function(){function t(t,e){if(this.P=t,this.V=[],this.E=[],e)this.V=e.V.slice(0),this.E=e.E.slice(0);else{for(var n=t.length,r=0;r<n;r++){for(var i=t[r],o=0;o<i.length;++o){var s=new y(this.V.length,r,o,i[o]);this.V.push(s),o>0&&this.E.push(new v(i[o-1].vv,s))}i.length>1&&this.E.push(new v(i[0].vv,i[i.length-1].vv))}for(r=0;r<n-1;r++){var a=t[r];for(o=r+1;o<n;o++){var u=t[o],c=w(a,u);for(var l in c){var h=c[l];this.addEdgeIfVisible(a[h.t1],u[h.t2],r,o)}}}}}return t.prototype.addEdgeIfVisible=function(t,e,n,r){this.intersectsPolys(new a(t.x,t.y,e.x,e.y),n,r)||this.E.push(new v(t.vv,e.vv))},t.prototype.addPoint=function(t,e){var n,r,i,o=this.P.length;this.V.push(new y(this.V.length,o,0,t));for(var s=0;s<o;++s)if(s!==e){var a=this.P[s],u=(n=t,i=void 0,(i=(r=a).slice(0)).push(r[0]),{rtan:h(n,i),ltan:f(n,i)});this.addEdgeIfVisible(t,a[u.ltan],e,s),this.addEdgeIfVisible(t,a[u.rtan],e,s)}return t.vv},t.prototype.intersectsPolys=function(t,e,n){for(var r=0,i=this.P.length;r<i;++r)if(r!=e&&r!=n&&_(t,this.P[r]).length>0)return!0;return!1},t}(),e.tangents=w,e.polysOverlap=function(t,e){if(b(t,e))return!0;if(b(e,t))return!0;for(var n=1,r=t.length;n<r;++n){var i=t[n],o=t[n-1];if(_(new a(o.x,o.y,i.x,i.y),e).length>0)return!0}return!1}},OBn4:function(t,e,n){var r=n("vxC8")(n("IBsm"),"Set");t.exports=r},OSyp:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("zyX+"),i=n("3vZi");e.gridify=function(t,e,n,r){return t.cola.start(0,0,0,10,!1),function(t,e,n,r){t.forEach((function(t){t.routerNode={name:t.name,bounds:t.bounds.inflate(-n)}})),e.forEach((function(e){e.routerNode={bounds:e.bounds.inflate(-r),children:(void 0!==e.groups?e.groups.map((function(e){return t.length+e.id})):[]).concat(void 0!==e.leaves?e.leaves.map((function(t){return t.index})):[])}}));var o=t.concat(e).map((function(t,e){return t.routerNode.id=e,t.routerNode}));return new i.GridRouter(o,{getChildren:function(t){return t.children},getBounds:function(t){return t.bounds}},n-r)}(t.cola.nodes(),t.cola.groups(),n,r).routeEdges(t.powerGraph.powerEdges,e,(function(t){return t.source.routerNode.id}),(function(t){return t.target.routerNode.id}))},e.powerGraphGridLayout=function(t,e,n){var i;t.nodes.forEach((function(t,e){return t.index=e})),(new r.Layout).avoidOverlaps(!1).nodes(t.nodes).links(t.links).powerGraphGroups((function(t){(i=t).groups.forEach((function(t){return t.padding=n}))}));var o=t.nodes.length,s=[],a=t.nodes.slice(0);return a.forEach((function(t,e){return t.index=e})),i.groups.forEach((function(t){var e=t.index=t.id+o;a.push(t),void 0!==t.leaves&&t.leaves.forEach((function(t){return s.push({source:e,target:t.index})})),void 0!==t.groups&&t.groups.forEach((function(t){return s.push({source:e,target:t.id+o})}))})),i.powerEdges.forEach((function(t){s.push({source:t.source.index,target:t.target.index})})),(new r.Layout).size(e).nodes(a).links(s).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:(new r.Layout).convergenceThreshold(.001).size(e).avoidOverlaps(!0).nodes(t.nodes).links(t.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups((function(t){(i=t).groups.forEach((function(t){t.padding=n}))})).start(50,0,100,0,!1),powerGraph:i}}},OUo6:function(t,e,n){var r=n("c72w"),i=n("WvmI");t.exports=function(t,e){return i(t||[],e||[],r)}},OfKG:function(t,e,n){var r=n("c7Qd");t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},OtNC:function(t,e,n){var r=n("TAtK")(Object.keys,Object);t.exports=r},PKEM:function(t,e,n){var r=n("JElN"),i=n("S3pA"),o=n("n+p3");t.exports=function(t,e){return t&&t.length?r(t,i(e,2),o):void 0}},Pa7R:function(t,e,n){var r=n("Jl0P");t.exports=function(t){var e=0,n=[],i={},o=[];return t.nodes().forEach((function(s){r.has(i,s)||function s(a){var u=i[a]={onStack:!0,lowlink:e,index:e++};if(n.push(a),t.successors(a).forEach((function(t){r.has(i,t)?i[t].onStack&&(u.lowlink=Math.min(u.lowlink,i[t].index)):(s(t),u.lowlink=Math.min(u.lowlink,i[t].lowlink))})),u.lowlink===u.index){var c,l=[];do{c=n.pop(),i[c].onStack=!1,l.push(c)}while(a!==c);o.push(l)}}(s)})),o}},Pivv:function(t,e,n){"use strict";var r=n("gjtd"),i=n("1yUy"),o=n("RmLA"),s=n("4DVH"),a=n("xxjf").normalizeRanks,u=n("JUZX"),c=n("xxjf").removeEmptyRanks,l=n("wHMW"),h=n("0gKz"),f=n("+jFT"),d=n("erCh"),p=n("Nebv"),g=n("xxjf"),m=n("vC4J").Graph;t.exports=function(t,e){var n=e&&e.debugTiming?g.time:g.notime;n("layout",(function(){var e=n(" buildLayoutGraph",(function(){return function(t){var e=new m({multigraph:!0,compound:!0}),n=C(t.graph());return e.setGraph(r.merge({},v,k(n,y),r.pick(n,_))),r.forEach(t.nodes(),(function(n){var i=C(t.node(n));e.setNode(n,r.defaults(k(i,w),b)),e.setParent(n,t.parent(n))})),r.forEach(t.edges(),(function(n){var i=C(t.edge(n));e.setEdge(n,r.merge({},E,k(i,x),r.pick(i,S)))})),e}(t)}));n(" runLayout",(function(){!function(t,e){e(" makeSpaceForEdgeLabels",(function(){!function(t){var e=t.graph();e.ranksep/=2,r.forEach(t.edges(),(function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(t)})),e(" removeSelfEdges",(function(){!function(t){r.forEach(t.edges(),(function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}}))}(t)})),e(" acyclic",(function(){i.run(t)})),e(" nestingGraph.run",(function(){l.run(t)})),e(" rank",(function(){s(g.asNonCompoundGraph(t))})),e(" injectEdgeLabelProxies",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i=t.node(e.w);g.addDummyNode(t,"edge-proxy",{rank:(i.rank-r.rank)/2+r.rank,e:e},"_ep")}}))}(t)})),e(" removeEmptyRanks",(function(){c(t)})),e(" nestingGraph.cleanup",(function(){l.cleanup(t)})),e(" normalizeRanks",(function(){a(t)})),e(" assignRankMinMax",(function(){!function(t){var e=0;r.forEach(t.nodes(),(function(n){var i=t.node(n);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=r.max(e,i.maxRank))})),t.graph().maxRank=e}(t)})),e(" removeEdgeLabelProxies",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))}))}(t)})),e(" normalize.run",(function(){o.run(t)})),e(" parentDummyChains",(function(){u(t)})),e(" addBorderSegments",(function(){h(t)})),e(" order",(function(){d(t)})),e(" insertSelfEdges",(function(){!function(t){var e=g.buildLayerMatrix(t);r.forEach(e,(function(e){var n=0;r.forEach(e,(function(e,i){var o=t.node(e);o.order=i+n,r.forEach(o.selfEdges,(function(e){g.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:i+ ++n,e:e.e,label:e.label},"_se")})),delete o.selfEdges}))}))}(t)})),e(" adjustCoordinateSystem",(function(){f.adjust(t)})),e(" position",(function(){p(t)})),e(" positionSelfEdges",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,o=r.y,s=n.x-i,a=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*s/3,y:o-a},{x:i+5*s/6,y:o-a},{x:i+s,y:o},{x:i+5*s/6,y:o+a},{x:i+2*s/3,y:o+a}],n.label.x=n.x,n.label.y=n.y}}))}(t)})),e(" removeBorderNodes",(function(){!function(t){r.forEach(t.nodes(),(function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),o=t.node(n.borderBottom),s=t.node(r.last(n.borderLeft)),a=t.node(r.last(n.borderRight));n.width=Math.abs(a.x-s.x),n.height=Math.abs(o.y-i.y),n.x=s.x+n.width/2,n.y=i.y+n.height/2}})),r.forEach(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}(t)})),e(" normalize.undo",(function(){o.undo(t)})),e(" fixupEdgeLabelCoords",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(t)})),e(" undoCoordinateSystem",(function(){f.undo(t)})),e(" translateGraph",(function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,o=0,s=t.graph(),a=s.marginx||0,u=s.marginy||0;function c(t){var r=t.x,s=t.y,a=t.width,u=t.height;e=Math.min(e,r-a/2),n=Math.max(n,r+a/2),i=Math.min(i,s-u/2),o=Math.max(o,s+u/2)}r.forEach(t.nodes(),(function(e){c(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.has(n,"x")&&c(n)})),e-=a,i-=u,r.forEach(t.nodes(),(function(n){var r=t.node(n);r.x-=e,r.y-=i})),r.forEach(t.edges(),(function(n){var o=t.edge(n);r.forEach(o.points,(function(t){t.x-=e,t.y-=i})),r.has(o,"x")&&(o.x-=e),r.has(o,"y")&&(o.y-=i)})),s.width=n-e+a,s.height=o-i+u}(t)})),e(" assignNodeIntersects",(function(){!function(t){r.forEach(t.edges(),(function(e){var n,r,i=t.edge(e),o=t.node(e.v),s=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=s,r=o),i.points.unshift(g.intersectRect(o,n)),i.points.push(g.intersectRect(s,r))}))}(t)})),e(" reversePoints",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);n.reversed&&n.points.reverse()}))}(t)})),e(" acyclic.undo",(function(){i.undo(t)}))}(e,n)})),n(" updateInputGraph",(function(){!function(t,e){r.forEach(t.nodes(),(function(n){var r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,e.children(n).length&&(r.width=i.width,r.height=i.height))})),r.forEach(t.edges(),(function(n){var i=t.edge(n),o=e.edge(n);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)}))}))};var y=["nodesep","edgesep","ranksep","marginx","marginy"],v={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},_=["acyclicer","ranker","rankdir","align"],w=["width","height"],b={width:0,height:0},x=["minlen","weight","width","height","labeloffset"],E={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},S=["labelpos"];function k(t,e){return r.mapValues(r.pick(t,e),Number)}function C(t){var e={};return r.forEach(t,(function(t,n){e[n.toLowerCase()]=t})),e}},"Pz+s":function(t,e,n){var r=n("vxC8"),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();t.exports=i},Q4oW:function(t,e,n){var r=n("zKkv"),i=n("bz5b")(r);t.exports=i},QF3D:function(t,e,n){var r=n("vxC8")(n("IBsm"),"DataView");t.exports=r},QMz8:function(t,e,n){var r=n("5pfJ"),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},QT01:function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},QZ90:function(t,e){var n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",a="(?:"+n+"|"+r+")?",u="[\\ufe0e\\ufe0f]?",c=u+a+"(?:\\u200d(?:"+[i,o,s].join("|")+")"+u+a+")*",l="(?:"+[i+n+"?",n,o,s,"[\\ud800-\\udfff]"].join("|")+")",h=RegExp(r+"(?="+r+")|"+l+c,"g");t.exports=function(t){for(var e=h.lastIndex=0;h.test(t);)++e;return e}},Qd2C:function(t,e,n){var r=n("7/jS"),i=n("SU8Q"),o=n("T6vp"),s=o&&o.isTypedArray,a=s?i(s):r;t.exports=a},QrYh:function(t,e,n){var r=n("LtXa"),i=n("zH+d");t.exports=function(t,e){return t&&r(e,i(e),t)}},Qsja:function(t,e,n){var r=n("gjtd"),i=n("gP9q"),o=n("Hp3j"),s=n("zBPj");t.exports=function t(e,n,a,u){var c=e.children(n),l=e.node(n),h=l?l.borderLeft:void 0,f=l?l.borderRight:void 0,d={};h&&(c=r.filter(c,(function(t){return t!==h&&t!==f})));var p=i(e,c);r.forEach(p,(function(n){if(e.children(n.v).length){var i=t(e,n.v,a,u);d[n.v]=i,r.has(i,"barycenter")&&(s=i,r.isUndefined((o=n).barycenter)?(o.barycenter=s.barycenter,o.weight=s.weight):(o.barycenter=(o.barycenter*o.weight+s.barycenter*s.weight)/(o.weight+s.weight),o.weight+=s.weight))}var o,s}));var g=o(p,a);!function(t,e){r.forEach(t,(function(t){t.vs=r.flatten(t.vs.map((function(t){return e[t]?e[t].vs:t})),!0)}))}(g,d);var m=s(g,u);if(h&&(m.vs=r.flatten([h,m.vs,f],!0),e.predecessors(h).length)){var y=e.node(e.predecessors(h)[0]),v=e.node(e.predecessors(f)[0]);r.has(m,"barycenter")||(m.barycenter=0,m.weight=0),m.barycenter=(m.barycenter*m.weight+y.order+v.order)/(m.weight+2),m.weight+=2}return m}},QwI6:function(t,e,n){var r=n("O1Sc"),i=n("NW/2");t.exports=function(t,e){return r(t,e,(function(e,n){return i(t,n)}))}},R3TX:function(t,e,n){var r=n("zWgn"),i=n("UAs9"),o=n("7Pat");t.exports=function(t,e){return o(i(t,e,r),t+"")}},R3gn:function(t,e,n){var r=n("Syyo"),i=n("mGzy"),o=n("pPzx"),s=n("ZZ+W"),a=n("aURW"),u=n("XlL0"),c=r?r.prototype:void 0,l=c?c.valueOf:void 0;t.exports=function(t,e,n,r,c,h,f){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!h(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var d=a;case"[object Set]":if(d||(d=u),t.size!=e.size&&!(1&r))return!1;var p=f.get(t);if(p)return p==e;r|=2,f.set(t,e);var g=s(d(t),d(e),r,c,h,f);return f.delete(t),g;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},R5u7:function(t,e,n){var r=n("pPzx"),i=n("9y2L"),o=n("pnw1"),s=n("tQYX");t.exports=function(t,e,n){if(!s(n))return!1;var a=typeof e;return!!("number"==a?i(n)&&o(e,n.length):"string"==a&&e in n)&&r(n[e],t)}},RFxK:function(t,e){t.exports=function(t){return function(e,n,r){for(var i=-1,o=Object(e),s=r(e),a=s.length;a--;){var u=s[t?a:++i];if(!1===n(o[u],u,o))break}return e}}},RNlM:function(t,e,n){var r=n("+ooz");t.exports=function(){this.__data__=new r,this.size=0}},RmLA:function(t,e,n){"use strict";var r=n("gjtd"),i=n("xxjf");t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),(function(e){!function(t,e){var n,r,o,s=e.v,a=t.node(s).rank,u=e.w,c=t.node(u).rank,l=e.name,h=t.edge(e),f=h.labelRank;if(c!==a+1){for(t.removeEdge(e),o=0,++a;a<c;++o,++a)h.points=[],n=i.addDummyNode(t,"edge",r={width:0,height:0,edgeLabel:h,edgeObj:e,rank:a},"_d"),a===f&&(r.width=h.width,r.height=h.height,r.dummy="edge-label",r.labelpos=h.labelpos),t.setEdge(s,n,{weight:h.weight},l),0===o&&t.graph().dummyChains.push(n),s=n;t.setEdge(s,u,{weight:h.weight},l)}}(t,e)}))},undo:function(t){r.forEach(t.graph().dummyChains,(function(e){var n,r=t.node(e),i=r.edgeLabel;for(t.setEdge(r.edgeObj,i);r.dummy;)n=t.successors(e)[0],t.removeNode(e),i.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),r=t.node(e=n)}))}}},S0iI:function(t,e){t.exports=function(t,e){return t.has(e)}},S3pA:function(t,e,n){var r=n("7/we"),i=n("KAo/"),o=n("zWgn"),s=n("wxYD"),a=n("1EDM");t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?s(t)?i(t[0],t[1]):r(t):a(t)}},SJov:function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t,e){return null!=t&&n.call(t,e)}},SJvO:function(t,e,n){var r=n("H87J");t.exports=function(t,e){return r(e,(function(e){return t[e]}))}},SU8Q:function(t,e){t.exports=function(t){return function(e){return t(e)}}},SoOq:function(t,e,n){var r=n("0+aC"),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}));t.exports=s},Syyo:function(t,e,n){var r=n("IBsm");t.exports=r.Symbol},T6vp:function(t,e,n){(function(t){var r=n("e93E"),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===i&&r.process,a=function(){try{return o&&o.require&&o.require("util").types||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=a}).call(this,n("aYSr")(t))},TAtK:function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},Tv3l:function(t,e,n){var r=n("2Fbm"),i=n("VPai"),o=n("+fUG"),s=n("QMz8"),a=n("mUsV");function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},Tx5e:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n("zyX+"),s=function(t){function e(){var e=t.call(this)||this;e.event=d3.dispatch(o.EventType[o.EventType.start],o.EventType[o.EventType.tick],o.EventType[o.EventType.end]);var n=e;return e.drag=function(){if(!t)var t=d3.behavior.drag().origin(o.Layout.dragOrigin).on("dragstart.d3adaptor",o.Layout.dragStart).on("drag.d3adaptor",(function(t){o.Layout.drag(t,d3.event),n.resume()})).on("dragend.d3adaptor",o.Layout.dragEnd);if(!arguments.length)return t;this.call(t)},e}return i(e,t),e.prototype.trigger=function(t){var e={type:o.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event[e.type](e)},e.prototype.kick=function(){var e=this;d3.timer((function(){return t.prototype.tick.call(e)}))},e.prototype.on=function(t,e){return this.event.on("string"==typeof t?t:o.EventType[t],e),this},e}(o.Layout);e.D3StyleLayoutAdaptor=s,e.d3adaptor=function(){return new s}},UAs9:function(t,e,n){var r=n("zaNA"),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,s=-1,a=i(o.length-e,0),u=Array(a);++s<a;)u[s]=o[e+s];s=-1;for(var c=Array(e+1);++s<e;)c[s]=o[s];return c[e]=n(u),r(t,this,c)}}},UdtX:function(t,e,n){var r=n("RFxK")();t.exports=r},V9bN:function(t,e,n){var r=n("Jl0P"),i=n("c9kG");t.exports=function(t,e,n,r){return function(t,e,n,r){var o,s,a={},u=new i,c=function(t){var e=t.v!==o?t.v:t.w,r=a[e],i=n(t),c=s.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);c<r.distance&&(r.distance=c,r.predecessor=o,u.decrease(e,c))};for(t.nodes().forEach((function(t){var n=t===e?0:Number.POSITIVE_INFINITY;a[t]={distance:n},u.add(t,n)}));u.size()>0&&(o=u.removeMin(),(s=a[o]).distance!==Number.POSITIVE_INFINITY);)r(o).forEach(c);return a}(t,String(e),n||o,r||function(e){return t.outEdges(e)})};var o=r.constant(1)},VPai:function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},VQMV:function(t,e){t.exports="0.8.5"},VhCv:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t){this.elem=t,this.subheaps=[]}return t.prototype.toString=function(t){for(var e="",n=!1,r=0;r<this.subheaps.length;++r){var i=this.subheaps[r];i.elem?(n&&(e+=","),e+=i.toString(t),n=!0):n=!1}return""!==e&&(e="("+e+")"),(this.elem?t(this.elem):"")+e},t.prototype.forEach=function(t){this.empty()||(t(this.elem,this),this.subheaps.forEach((function(e){return e.forEach(t)})))},t.prototype.count=function(){return this.empty()?0:1+this.subheaps.reduce((function(t,e){return t+e.count()}),0)},t.prototype.min=function(){return this.elem},t.prototype.empty=function(){return null==this.elem},t.prototype.contains=function(t){if(this===t)return!0;for(var e=0;e<this.subheaps.length;e++)if(this.subheaps[e].contains(t))return!0;return!1},t.prototype.isHeap=function(t){var e=this;return this.subheaps.every((function(n){return t(e.elem,n.elem)&&n.isHeap(t)}))},t.prototype.insert=function(e,n){return this.merge(new t(e),n)},t.prototype.merge=function(t,e){return this.empty()?t:t.empty()?this:e(this.elem,t.elem)?(this.subheaps.push(t),this):(t.subheaps.push(this),t)},t.prototype.removeMin=function(t){return this.empty()?null:this.mergePairs(t)},t.prototype.mergePairs=function(e){if(0==this.subheaps.length)return new t(null);if(1==this.subheaps.length)return this.subheaps[0];var n=this.subheaps.pop().merge(this.subheaps.pop(),e),r=this.mergePairs(e);return n.merge(r,e)},t.prototype.decreaseKey=function(e,n,r,i){var o=e.removeMin(i);e.elem=o.elem,e.subheaps=o.subheaps,null!==r&&null!==o.elem&&r(e.elem,e);var s=new t(n);return null!==r&&r(n,s),this.merge(s,i)},t}();e.PairingHeap=r,e.PriorityQueue=function(){function t(t){this.lessThan=t}return t.prototype.top=function(){return this.empty()?null:this.root.elem},t.prototype.push=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var i,o=0;i=e[o];++o)t=new r(i),this.root=this.empty()?t:this.root.merge(t,this.lessThan);return t},t.prototype.empty=function(){return!this.root||!this.root.elem},t.prototype.isHeap=function(){return this.root.isHeap(this.lessThan)},t.prototype.forEach=function(t){this.root.forEach(t)},t.prototype.pop=function(){if(this.empty())return null;var t=this.root.min();return this.root=this.root.removeMin(this.lessThan),t},t.prototype.reduceKey=function(t,e,n){void 0===n&&(n=null),this.root=this.root.decreaseKey(t,e,n,this.lessThan)},t.prototype.toString=function(t){return this.root.toString(t)},t.prototype.count=function(){return this.root.count()},t}()},W0vE:function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}},W8B9:function(t,e,n){var r=n("Jl0P"),i=n("Pa7R");t.exports=function(t){return r.filter(i(t),(function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])}))}},WHWN:function(t,e,n){var r=n("R3TX"),i=n("pPzx"),o=n("R5u7"),s=n("zH+d"),a=Object.prototype,u=a.hasOwnProperty,c=r((function(t,e){t=Object(t);var n=-1,r=e.length,c=r>2?e[2]:void 0;for(c&&o(e[0],e[1],c)&&(r=1);++n<r;)for(var l=e[n],h=s(l),f=-1,d=h.length;++f<d;){var p=h[f],g=t[p];(void 0===g||i(g,a[p])&&!u.call(t,p))&&(t[p]=l[p])}return t}));t.exports=c},"WcC/":function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n("zyX+");e.D3StyleLayoutAdaptor=function(t){function e(e){var n=t.call(this)||this;n.d3Context=e,n.event=e.dispatch(o.EventType[o.EventType.start],o.EventType[o.EventType.tick],o.EventType[o.EventType.end]);var r=n;return n.drag=function(){if(!t)var t=e.drag().subject(o.Layout.dragOrigin).on("start.d3adaptor",o.Layout.dragStart).on("drag.d3adaptor",(function(t){o.Layout.drag(t,e.event),r.resume()})).on("end.d3adaptor",o.Layout.dragEnd);if(!arguments.length)return t;arguments[0].call(t)},n}return i(e,t),e.prototype.trigger=function(t){var e={type:o.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event.call(e.type,e)},e.prototype.kick=function(){var e=this,n=this.d3Context.timer((function(){return t.prototype.tick.call(e)&&n.stop()}))},e.prototype.on=function(t,e){return this.event.on("string"==typeof t?t:o.EventType[t],e),this},e}(o.Layout)},WvmI:function(t,e){t.exports=function(t,e,n){for(var r=-1,i=t.length,o=e.length,s={};++r<i;)n(s,t[r],r<o?e[r]:void 0);return s}},X4R2:function(t,e){t.exports=function(){return[]}},Xidw:function(t,e,n){var r=n("y/9h"),i=n("/wCD"),o=n("70Le"),s=n("X4R2");t.exports=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,o(t)),t=i(t);return e}:s},XlL0:function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},YZb2:function(t,e,n){"use strict";var r=n("gjtd");function i(t,e,n){for(var i=r.zipObject(n,r.map(n,(function(t,e){return e}))),o=r.flatten(r.map(e,(function(e){return r.sortBy(r.map(t.outEdges(e),(function(e){return{pos:i[e.w],weight:t.edge(e).weight}})),"pos")})),!0),s=1;s<n.length;)s<<=1;var a=2*s-1;s-=1;var u=r.map(new Array(a),(function(){return 0})),c=0;return r.forEach(o.forEach((function(t){var e=t.pos+s;u[e]+=t.weight;for(var n=0;e>0;)e%2&&(n+=u[e+1]),u[e=e-1>>1]+=t.weight;c+=t.weight*n}))),c}t.exports=function(t,e){for(var n=0,r=1;r<e.length;++r)n+=i(t,e[r-1],e[r]);return n}},YlUH:function(t,e,n){var r=n("1qSF");t.exports={Graph:r.Graph,json:n("M2c1"),alg:n("ZCKZ"),version:r.version}},YpBQ:function(t,e,n){var r=n("y/9h"),i=n("oCTG");t.exports=function t(e,n,o,s,a){var u=-1,c=e.length;for(o||(o=i),a||(a=[]);++u<c;){var l=e[u];n>0&&o(l)?n>1?t(l,n-1,o,s,a):r(a,l):s||(a[a.length]=l)}return a}},Ypsa:function(t,e,n){var r=n("a88S");t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},Z3AG:function(t,e,n){var r=n("JElN"),i=n("n+p3"),o=n("zWgn");t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},ZCKZ:function(t,e,n){t.exports={components:n("qC43"),dijkstra:n("V9bN"),dijkstraAll:n("a271"),findCycles:n("W8B9"),floydWarshall:n("hq5n"),isAcyclic:n("+WAL"),postorder:n("21zJ"),preorder:n("j+bJ"),prim:n("xGdc"),tarjan:n("Pa7R"),topsort:n("0Jj1")}},ZVKf:function(t,e,n){var r=n("UdtX"),i=n("D49j"),o=n("zH+d");t.exports=function(t,e){return null==t?t:r(t,i(e),o)}},"ZZ+W":function(t,e,n){var r=n("JBn+"),i=n("myUI"),o=n("S0iI");t.exports=function(t,e,n,s,a,u){var c=1&n,l=t.length,h=e.length;if(l!=h&&!(c&&h>l))return!1;var f=u.get(t),d=u.get(e);if(f&&d)return f==e&&d==t;var p=-1,g=!0,m=2&n?new r:void 0;for(u.set(t,e),u.set(e,t);++p<l;){var y=t[p],v=e[p];if(s)var _=c?s(v,y,p,e,t,u):s(y,v,p,t,e,u);if(void 0!==_){if(_)continue;g=!1;break}if(m){if(!i(e,(function(t,e){if(!o(m,e)&&(y===t||a(y,t,n,s,u)))return m.push(e)}))){g=!1;break}}else if(y!==v&&!a(y,v,n,s,u)){g=!1;break}}return u.delete(t),u.delete(e),g}},ZjRn:function(t,e,n){var r=n("HsnV"),i=n("NYSw");t.exports=function(t,e,n,o){var s=n.length,a=s,u=!o;if(null==t)return!a;for(t=Object(t);s--;){var c=n[s];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++s<a;){var l=(c=n[s])[0],h=t[l],f=c[1];if(u&&c[2]){if(void 0===h&&!(l in t))return!1}else{var d=new r;if(o)var p=o(h,f,l,t,e,d);if(!(void 0===p?i(f,h,3,o,d):p))return!1}}return!0}},a271:function(t,e,n){var r=n("V9bN"),i=n("Jl0P");t.exports=function(t,e,n){return i.transform(t.nodes(),(function(i,o){i[o]=r(t,o,e,n)}),{})}},a88S:function(t,e,n){var r=n("Dhk8"),i=n("tLQN");t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},aGtI:function(t,e,n){var r=n("YpBQ"),i=n("R3TX"),o=n("s+R0"),s=n("Ndl3"),a=i((function(t){return o(r(t,1,s,!0))}));t.exports=a},aURW:function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},aYSr:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},aj3f:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("VhCv"),i=function(){return function(t,e){this.id=t,this.distance=e}}(),o=function(){return function(t){this.id=t,this.neighbours=[]}}(),s=function(){return function(t,e,n){this.node=t,this.prev=e,this.d=n}}();e.Calculator=function(){function t(t,e,n,r,s){this.n=t,this.es=e,this.neighbours=new Array(this.n);for(var a=this.n;a--;)this.neighbours[a]=new o(a);for(a=this.es.length;a--;){var u=this.es[a],c=n(u),l=r(u),h=s(u);this.neighbours[c].neighbours.push(new i(l,h)),this.neighbours[l].neighbours.push(new i(c,h))}}return t.prototype.DistanceMatrix=function(){for(var t=new Array(this.n),e=0;e<this.n;++e)t[e]=this.dijkstraNeighbours(e);return t},t.prototype.DistancesFromNode=function(t){return this.dijkstraNeighbours(t)},t.prototype.PathFromNodeToNode=function(t,e){return this.dijkstraNeighbours(t,e)},t.prototype.PathFromNodeToNodeWithPrevCost=function(t,e,n){var i=new r.PriorityQueue((function(t,e){return t.d<=e.d})),o=this.neighbours[t],a=new s(o,null,0),u={};for(i.push(a);!i.empty()&&(o=(a=i.pop()).node).id!==e;)for(var c=o.neighbours.length;c--;){var l=o.neighbours[c],h=this.neighbours[l.id];if(!a.prev||h.id!==a.prev.node.id){var f=h.id+","+o.id;if(!(f in u&&u[f]<=a.d)){var d=a.prev?n(a.prev.node.id,o.id,h.id):0,p=a.d+l.distance+d;u[f]=p,i.push(new s(h,a,p))}}}for(var g=[];a.prev;)g.push((a=a.prev).node.id);return g},t.prototype.dijkstraNeighbours=function(t,e){void 0===e&&(e=-1);for(var n=new r.PriorityQueue((function(t,e){return t.d<=e.d})),i=this.neighbours.length,o=new Array(i);i--;){var s=this.neighbours[i];s.d=i===t?0:Number.POSITIVE_INFINITY,s.q=n.push(s)}for(;!n.empty();){var a=n.pop();if(o[a.id]=a.d,a.id===e){for(var u=[],c=a;void 0!==c.prev;)u.push(c.prev.id),c=c.prev;return u}for(i=a.neighbours.length;i--;){var l=a.neighbours[i],h=(c=this.neighbours[l.id],a.d+l.distance);a.d!==Number.MAX_VALUE&&c.d>h&&(c.d=h,c.prev=a,n.reduceKey(c.q,c,(function(t,e){return t.q=e})))}}return o},t}()},amiU:function(t,e,n){var r=n("wC3K"),i=n("pPzx");t.exports=function(t,e,n){(void 0!==n&&!i(t[e],n)||void 0===n&&!(e in t))&&r(t,e,n)}},bFjY:function(t,e,n){var r=n("Q4oW"),i=n("9y2L");t.exports=function(t,e){var n=-1,o=i(t)?Array(t.length):[];return r(t,(function(t,r,i){o[++n]=e(t,r,i)})),o}},bJjD:function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)n[r]={};for(var r in e)n[r]={};return Object.keys(n).length}function i(t,e){var n=0;for(var r in t)void 0!==e[r]&&++n;return n}function o(t,e,n,r){var i=function(t,e){var n={},r=function(t,e){void 0===n[t]&&(n[t]={}),n[t][e]={}};return t.forEach((function(t){var n=e.getSourceIndex(t),i=e.getTargetIndex(t);r(n,i),r(i,n)})),n}(t,r);t.forEach((function(t){var o=i[r.getSourceIndex(t)],s=i[r.getTargetIndex(t)];r.setLength(t,1+e*n(o,s))}))}function s(t,e,n){var r=[],i=0,o=[],s=[];function a(t){t.index=t.lowlink=i++,o.push(t),t.onStack=!0;for(var e=0,n=t.out;e<n.length;e++){var r=n[e];void 0===r.index?(a(r),t.lowlink=Math.min(t.lowlink,r.lowlink)):r.onStack&&(t.lowlink=Math.min(t.lowlink,r.index))}if(t.lowlink===t.index){for(var u=[];o.length&&((r=o.pop()).onStack=!1,u.push(r),r!==t););s.push(u.map((function(t){return t.id})))}}for(var u=0;u<t;u++)r.push({id:u,out:[]});for(var c=0,l=e;c<l.length;c++){var h=l[c],f=r[n.getSourceIndex(h)],d=r[n.getTargetIndex(h)];f.out.push(d)}for(var p=0,g=r;p<g.length;p++){var m=g[p];void 0===m.index&&a(m)}return s}Object.defineProperty(e,"__esModule",{value:!0}),e.symmetricDiffLinkLengths=function(t,e,n){void 0===n&&(n=1),o(t,n,(function(t,e){return Math.sqrt(r(t,e)-i(t,e))}),e)},e.jaccardLinkLengths=function(t,e,n){void 0===n&&(n=1),o(t,n,(function(t,e){return Math.min(Object.keys(t).length,Object.keys(e).length)<1.1?0:i(t,e)/r(t,e)}),e)},e.generateDirectedEdgeConstraints=function(t,e,n,r){var i=s(t,e,r),o={};i.forEach((function(t,e){return t.forEach((function(t){return o[t]=e}))}));var a=[];return e.forEach((function(t){var e=r.getSourceIndex(t),i=r.getTargetIndex(t);o[e]!==o[i]&&a.push({axis:n,left:e,right:i,gap:r.getMinSeparation(t)})})),a},e.stronglyConnectedComponents=s},bVbG:function(t,e,n){var r=n("Syyo"),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;t.exports=function(t){return o?Object(o.call(t)):{}}},buMw:function(t,e,n){"use strict";var r=n("Jl0P");t.exports=o;var i="\0";function o(t){this._isDirected=!r.has(t,"directed")||t.directed,this._isMultigraph=!!r.has(t,"multigraph")&&t.multigraph,this._isCompound=!!r.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function s(t,e){t[e]?t[e]++:t[e]=1}function a(t,e){--t[e]||delete t[e]}function u(t,e,n,i){var o=""+e,s=""+n;if(!t&&o>s){var a=o;o=s,s=a}return o+"\x01"+s+"\x01"+(r.isUndefined(i)?"\0":i)}function c(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var s=i;i=o,o=s}var a={v:i,w:o};return r&&(a.name=r),a}function l(t,e){return u(t,e.v,e.w,e.name)}o.prototype._nodeCount=0,o.prototype._edgeCount=0,o.prototype.isDirected=function(){return this._isDirected},o.prototype.isMultigraph=function(){return this._isMultigraph},o.prototype.isCompound=function(){return this._isCompound},o.prototype.setGraph=function(t){return this._label=t,this},o.prototype.graph=function(){return this._label},o.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},o.prototype.nodeCount=function(){return this._nodeCount},o.prototype.nodes=function(){return r.keys(this._nodes)},o.prototype.sources=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._in[e])}))},o.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._out[e])}))},o.prototype.setNodes=function(t,e){var n=arguments,i=this;return r.each(t,(function(t){n.length>1?i.setNode(t,e):i.setNode(t)})),this},o.prototype.setNode=function(t,e){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=i,this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},o.prototype.node=function(t){return this._nodes[t]},o.prototype.hasNode=function(t){return r.has(this._nodes,t)},o.prototype.removeNode=function(t){var e=this;if(r.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},o.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e=i;else{for(var n=e+="";!r.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},o.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},o.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if(e!==i)return e}},o.prototype.children=function(t){if(r.isUndefined(t)&&(t=i),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else{if(t===i)return this.nodes();if(this.hasNode(t))return[]}},o.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},o.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},o.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},o.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},o.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;r.each(this._nodes,(function(n,r){t(r)&&e.setNode(r,n)})),r.each(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))}));var i={};return this._isCompound&&r.each(e.nodes(),(function(t){e.setParent(t,function t(r){var o=n.parent(r);return void 0===o||e.hasNode(o)?(i[r]=o,o):o in i?i[o]:t(o)}(t))})),e},o.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},o.prototype.edgeCount=function(){return this._edgeCount},o.prototype.edges=function(){return r.values(this._edgeObjs)},o.prototype.setPath=function(t,e){var n=this,i=arguments;return r.reduce(t,(function(t,r){return i.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r})),this},o.prototype.setEdge=function(){var t,e,n,i,o=!1,a=arguments[0];"object"==typeof a&&null!==a&&"v"in a?(t=a.v,e=a.w,n=a.name,2===arguments.length&&(i=arguments[1],o=!0)):(t=a,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],o=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var l=u(this._isDirected,t,e,n);if(r.has(this._edgeLabels,l))return o&&(this._edgeLabels[l]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[l]=o?i:this._defaultEdgeLabelFn(t,e,n);var h=c(this._isDirected,t,e,n);return t=h.v,e=h.w,Object.freeze(h),this._edgeObjs[l]=h,s(this._preds[e],t),s(this._sucs[t],e),this._in[e][l]=h,this._out[t][l]=h,this._edgeCount++,this},o.prototype.edge=function(t,e,n){var r=1===arguments.length?l(this._isDirected,arguments[0]):u(this._isDirected,t,e,n);return this._edgeLabels[r]},o.prototype.hasEdge=function(t,e,n){var i=1===arguments.length?l(this._isDirected,arguments[0]):u(this._isDirected,t,e,n);return r.has(this._edgeLabels,i)},o.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?l(this._isDirected,arguments[0]):u(this._isDirected,t,e,n),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],a(this._preds[e],t),a(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},o.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.v===e})):i}},o.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.w===e})):i}},o.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},bvyN:function(t,e,n){var r=n("/30y"),i=n("tLQN"),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=u},bz5b:function(t,e,n){var r=n("9y2L");t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var o=n.length,s=e?o:-1,a=Object(n);(e?s--:++s<o)&&!1!==i(a[s],s,a););return n}}},c18h:function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(e){}try{return t+""}catch(e){}}return""}},c2re:function(t,e,n){var r=n("kn3Q");t.exports=function(t){return r(t,5)}},c72w:function(t,e,n){var r=n("wC3K"),i=n("pPzx"),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var s=t[e];o.call(t,e)&&i(s,n)&&(void 0!==n||e in t)||r(t,e,n)}},c7Qd:function(t,e,n){var r=n("DuXo"),i=n("z9Jh"),o=n("n1QJ");t.exports=function(t,e,n){return e==e?o(t,e,n):r(t,i,n)}},c9kG:function(t,e,n){var r=n("Jl0P");function i(){this._arr=[],this._keyIndices={}}t.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map((function(t){return t.key}))},i.prototype.has=function(t){return r.has(this._keyIndices,t)},i.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var i=this._arr,o=i.length;return n[t]=o,i.push({key:t,priority:e}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},i.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},i.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n<e.length&&(i=e[n].priority<e[i].priority?n:i,r<e.length&&(i=e[r].priority<e[i].priority?r:i),i!==t&&(this._swap(t,i),this._heapify(i)))},i.prototype._decrease=function(t){for(var e,n=this._arr,r=n[t].priority;0!==t&&!(n[e=t>>1].priority<r);)this._swap(t,e),t=e},i.prototype._swap=function(t,e){var n=this._arr,r=this._keyIndices,i=n[t],o=n[e];n[t]=o,n[e]=i,r[o.key]=t,r[i.key]=e}},cEmw:function(t,e){t.exports=function(t){return this.__data__.has(t)}},cH1A:function(t,e,n){var r=n("1xil"),i=n("UAs9"),o=n("7Pat");t.exports=function(t){return o(i(t,void 0,r),t+"")}},cPMt:function(t,e){t.exports=function(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}},"cZX/":function(t,e,n){var r=n("LmOH"),i=n("vGGS"),o=n("zKkv"),s=n("S3pA"),a=n("/wCD"),u=n("wxYD"),c=n("3ajY"),l=n("2q8g"),h=n("tQYX"),f=n("Qd2C");t.exports=function(t,e,n){var d=u(t),p=d||c(t)||f(t);if(e=s(e,4),null==n){var g=t&&t.constructor;n=p?d?new g:[]:h(t)&&l(g)?i(a(t)):{}}return(p?r:o)(t,(function(t,r,i){return e(n,t,r,i)})),n}},cb1R:function(t,e,n){var r=n("amiU"),i=n("Grae"),o=n("6Rtw"),s=n("QT01"),a=n("sD1O"),u=n("bvyN"),c=n("wxYD"),l=n("Ndl3"),h=n("3ajY"),f=n("2q8g"),d=n("tQYX"),p=n("Kkar"),g=n("Qd2C"),m=n("LL3N"),y=n("4ScB");t.exports=function(t,e,n,v,_,w,b){var x=m(t,n),E=m(e,n),S=b.get(E);if(S)r(t,n,S);else{var k=w?w(x,E,n+"",t,e,b):void 0,C=void 0===k;if(C){var T=c(E),A=!T&&h(E),N=!T&&!A&&g(E);k=E,T||A||N?c(x)?k=x:l(x)?k=s(x):A?(C=!1,k=i(E,!0)):N?(C=!1,k=o(E,!0)):k=[]:p(E)||u(E)?(k=x,u(x)?k=y(x):d(x)&&!f(x)||(k=a(E))):C=!1}C&&(b.set(E,k),_(k,E,v,w,b),b.delete(E)),r(t,n,k)}}},d0UJ:function(t,e,n){var r=n("JNqh");t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},"dnX/":function(t,e,n){var r=n("a88S");t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,o=t==t,s=r(t),a=void 0!==e,u=null===e,c=e==e,l=r(e);if(!u&&!l&&!s&&t>e||s&&a&&c&&!u&&!l||i&&a&&c||!n&&c||!o)return 1;if(!i&&!s&&!l&&t<e||l&&n&&o&&!i&&!s||u&&n&&o||!a&&o||!c)return-1}return 0}},dw5g:function(t,e,n){var r=n("JcJ6");t.exports=function(t){return null==t?"":r(t)}},e63W:function(t,e,n){var r=n("JNqh");t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},e93E:function(t,e){var n="object"==typeof global&&global&&global.Object===Object&&global;t.exports=n},eErA:function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),r(n("/oF6")),r(n("osTN")),r(n("Lm04")),r(n("OAVv")),r(n("3vZi")),r(n("BpeN")),r(n("zyX+")),r(n("4CxS")),r(n("bJjD")),r(n("JYAe")),r(n("VhCv")),r(n("vpOK")),r(n("gbTj")),r(n("aj3f")),r(n("keXZ")),r(n("OSyp"))},eHpp:function(t,e,n){var r=n("H87J"),i=n("w2Tz"),o=n("S3pA"),s=n("bFjY"),a=n("4jPf"),u=n("SU8Q"),c=n("5WP5"),l=n("zWgn"),h=n("wxYD");t.exports=function(t,e,n){e=e.length?r(e,(function(t){return h(t)?function(e){return i(e,1===t.length?t[0]:t)}:t})):[l];var f=-1;e=r(e,u(o));var d=s(t,(function(t,n,i){return{criteria:r(e,(function(e){return e(t)})),index:++f,value:t}}));return a(d,(function(t,e){return c(t,e,n)}))}},eN33:function(t,e){t.exports=function(t){return function(){return t}}},eask:function(t,e,n){var r=n("JNqh");t.exports=function(t){return r(this,t).get(t)}},erCh:function(t,e,n){"use strict";var r=n("gjtd"),i=n("NI55"),o=n("YZb2"),s=n("Qsja"),a=n("D5rW"),u=n("DzXQ"),c=n("vC4J").Graph,l=n("xxjf");function h(t,e,n){return r.map(e,(function(e){return a(t,e,n)}))}function f(t,e){var n=new c;r.forEach(t,(function(t){var i=t.graph().root,o=s(t,i,n,e);r.forEach(o.vs,(function(e,n){t.node(e).order=n})),u(t,n,o.vs)}))}function d(t,e){r.forEach(e,(function(e){r.forEach(e,(function(e,n){t.node(e).order=n}))}))}t.exports=function(t){var e=l.maxRank(t),n=h(t,r.range(1,e+1),"inEdges"),s=h(t,r.range(e-1,-1,-1),"outEdges"),a=i(t);d(t,a);for(var u,c=Number.POSITIVE_INFINITY,p=0,g=0;g<4;++p,++g){f(p%2?n:s,p%4>=2),a=l.buildLayerMatrix(t);var m=o(t,a);m<c&&(g=0,u=r.cloneDeep(a),c=m)}d(t,u)}},fWyh:function(t,e,n){var r=n("nvU9");t.exports=function(t){return t?1/0===(t=r(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},fd5j:function(t,e,n){var r=n("gjtd"),i=n("vC4J").Graph,o=n("ge/d");t.exports=function(t,e){if(t.nodeCount()<=1)return[];var n=function(t,e){var n=new i,s=0,a=0;r.forEach(t.nodes(),(function(t){n.setNode(t,{v:t,in:0,out:0})})),r.forEach(t.edges(),(function(t){var r=n.edge(t.v,t.w)||0,i=e(t);n.setEdge(t.v,t.w,r+i),a=Math.max(a,n.node(t.v).out+=i),s=Math.max(s,n.node(t.w).in+=i)}));var c=r.range(a+s+3).map((function(){return new o})),l=s+1;return r.forEach(n.nodes(),(function(t){u(c,l,n.node(t))})),{graph:n,buckets:c,zeroIdx:l}}(t,e||s),c=function(t,e,n){for(var r,i=[],o=e[e.length-1],s=e[0];t.nodeCount();){for(;r=s.dequeue();)a(t,e,n,r);for(;r=o.dequeue();)a(t,e,n,r);if(t.nodeCount())for(var u=e.length-2;u>0;--u)if(r=e[u].dequeue()){i=i.concat(a(t,e,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(c,(function(e){return t.outEdges(e.v,e.w)})),!0)};var s=r.constant(1);function a(t,e,n,i,o){var s=o?[]:void 0;return r.forEach(t.inEdges(i.v),(function(r){var i=t.edge(r),a=t.node(r.v);o&&s.push({v:r.v,w:r.w}),a.out-=i,u(e,n,a)})),r.forEach(t.outEdges(i.v),(function(r){var i=t.edge(r),o=t.node(r.w);o.in-=i,u(e,n,o)})),t.removeNode(i.v),s}function u(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},gEWz:function(t,e,n){var r=n("kkM+"),i=n("tLQN");t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},gP9q:function(t,e,n){var r=n("gjtd");t.exports=function(t,e){return r.map(e,(function(e){var n=t.inEdges(e);if(n.length){var i=r.reduce(n,(function(e,n){var r=t.edge(n),i=t.node(n.v);return{sum:e.sum+r.weight*i.order,weight:e.weight+r.weight}}),{sum:0,weight:0});return{v:e,barycenter:i.sum/i.weight,weight:i.weight}}return{v:e}}))}},gbTj:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=n("keXZ"),s=n("vpOK");function a(t){return t.bounds=void 0!==t.leaves?t.leaves.reduce((function(t,e){return e.bounds.union(t)}),u.empty()):u.empty(),void 0!==t.groups&&(t.bounds=t.groups.reduce((function(t,e){return a(e).union(t)}),t.bounds)),t.bounds=t.bounds.inflate(t.padding),t.bounds}e.computeGroupBounds=a;var u=function(){function t(t,e,n,r){this.x=t,this.X=e,this.y=n,this.Y=r}return t.empty=function(){return new t(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},t.prototype.cx=function(){return(this.x+this.X)/2},t.prototype.cy=function(){return(this.y+this.Y)/2},t.prototype.overlapX=function(t){var e=this.cx(),n=t.cx();return e<=n&&t.x<this.X?this.X-t.x:n<=e&&this.x<t.X?t.X-this.x:0},t.prototype.overlapY=function(t){var e=this.cy(),n=t.cy();return e<=n&&t.y<this.Y?this.Y-t.y:n<=e&&this.y<t.Y?t.Y-this.y:0},t.prototype.setXCentre=function(t){var e=t-this.cx();this.x+=e,this.X+=e},t.prototype.setYCentre=function(t){var e=t-this.cy();this.y+=e,this.Y+=e},t.prototype.width=function(){return this.X-this.x},t.prototype.height=function(){return this.Y-this.y},t.prototype.union=function(e){return new t(Math.min(this.x,e.x),Math.max(this.X,e.X),Math.min(this.y,e.y),Math.max(this.Y,e.Y))},t.prototype.lineIntersections=function(e,n,r,i){for(var o=[[this.x,this.y,this.X,this.y],[this.X,this.y,this.X,this.Y],[this.X,this.Y,this.x,this.Y],[this.x,this.Y,this.x,this.y]],s=[],a=0;a<4;++a){var u=t.lineIntersection(e,n,r,i,o[a][0],o[a][1],o[a][2],o[a][3]);null!==u&&s.push({x:u.x,y:u.y})}return s},t.prototype.rayIntersection=function(t,e){var n=this.lineIntersections(this.cx(),this.cy(),t,e);return n.length>0?n[0]:null},t.prototype.vertices=function(){return[{x:this.x,y:this.y},{x:this.X,y:this.y},{x:this.X,y:this.Y},{x:this.x,y:this.Y}]},t.lineIntersection=function(t,e,n,r,i,o,s,a){var u=n-t,c=s-i,l=r-e,h=a-o,f=h*u-c*l;if(0==f)return null;var d=t-i,p=e-o,g=(c*p-h*d)/f,m=(u*p-l*d)/f;return g>=0&&g<=1&&m>=0&&m<=1?{x:t+g*u,y:e+g*l}:null},t.prototype.inflate=function(e){return new t(this.x-e,this.X+e,this.y-e,this.Y+e)},t}();e.Rectangle=u,e.makeEdgeBetween=function(t,e,n){var r=t.rayIntersection(e.cx(),e.cy())||{x:t.cx(),y:t.cy()},i=e.rayIntersection(t.cx(),t.cy())||{x:e.cx(),y:e.cy()},o=i.x-r.x,s=i.y-r.y,a=Math.sqrt(o*o+s*s),u=a-n;return{sourceIntersection:r,targetIntersection:i,arrowStart:{x:r.x+u*o/a,y:r.y+u*s/a}}},e.makeEdgeTo=function(t,e,n){var r=e.rayIntersection(t.x,t.y);r||(r={x:e.cx(),y:e.cy()});var i=r.x-t.x,o=r.y-t.y,s=Math.sqrt(i*i+o*o);return{x:r.x-n*i/s,y:r.y-n*o/s}};var c=function(){return function(t,e,n){this.v=t,this.r=e,this.pos=n,this.prev=f(),this.next=f()}}(),l=function(){return function(t,e,n){this.isOpen=t,this.v=e,this.pos=n}}();function h(t,e){return t.pos>e.pos?1:t.pos<e.pos||t.isOpen?-1:e.isOpen?1:0}function f(){return new s.RBTree((function(t,e){return t.pos-e.pos}))}var d={getCentre:function(t){return t.cx()},getOpen:function(t){return t.y},getClose:function(t){return t.Y},getSize:function(t){return t.width()},makeRect:function(t,e,n,r){return new u(n-r/2,n+r/2,t,e)},findNeighbours:function(t,e){var n=function(n,r){for(var i,o=e.findIter(t);null!==(i=o[n]());){var s=i.r.overlapX(t.r);if((s<=0||s<=i.r.overlapY(t.r))&&(t[n].insert(i),i[r].insert(t)),s<=0)break}};n("next","prev"),n("prev","next")}},p={getCentre:function(t){return t.cy()},getOpen:function(t){return t.x},getClose:function(t){return t.X},getSize:function(t){return t.height()},makeRect:function(t,e,n,r){return new u(t,e,n-r/2,n+r/2)},findNeighbours:function(t,e){var n=function(n,r){var i=e.findIter(t)[n]();null!==i&&i.r.overlapX(t.r)>0&&(t[n].insert(i),i[r].insert(t))};n("next","prev"),n("prev","next")}};function g(t,e,n,r){void 0===r&&(r=!1);var i=t.padding,o=void 0!==t.groups?t.groups.length:0,s=void 0!==t.leaves?t.leaves.length:0,a=o?t.groups.reduce((function(t,r){return t.concat(g(r,e,n,!0))}),[]):[],u=(r?2:0)+s+o,c=new Array(u),l=new Array(u),h=0,f=function(t,e){l[h]=t,c[h++]=e};if(r){var d=t.bounds,p=e.getCentre(d),y=e.getSize(d)/2,v=e.getOpen(d),_=e.getClose(d),w=p-y+i/2,b=p+y-i/2;t.minVar.desiredPosition=w,f(e.makeRect(v,_,w,i),t.minVar),t.maxVar.desiredPosition=b,f(e.makeRect(v,_,b,i),t.maxVar)}s&&t.leaves.forEach((function(t){return f(t.bounds,t.variable)})),o&&t.groups.forEach((function(t){var n=t.bounds;f(e.makeRect(e.getOpen(n),e.getClose(n),e.getCentre(n),e.getSize(n)),t.minVar)}));var x=m(l,c,e,n);return o&&(c.forEach((function(t){t.cOut=[],t.cIn=[]})),x.forEach((function(t){t.left.cOut.push(t),t.right.cIn.push(t)})),t.groups.forEach((function(t){var n=(t.padding-e.getSize(t.bounds))/2;t.minVar.cIn.forEach((function(t){return t.gap+=n})),t.minVar.cOut.forEach((function(e){e.left=t.maxVar,e.gap+=n}))}))),a.concat(x)}function m(t,e,n,r){var i,s=t.length,a=2*s;console.assert(e.length>=s);var u=new Array(a);for(i=0;i<s;++i){var d=t[i],p=new c(e[i],d,n.getCentre(d));u[i]=new l(!0,p,n.getOpen(d)),u[i+s]=new l(!1,p,n.getClose(d))}u.sort(h);var g=new Array,m=f();for(i=0;i<a;++i){var y=u[i];if(p=y.v,y.isOpen)m.insert(p),n.findNeighbours(p,m);else{m.remove(p);var v=function(t,e){var i=(n.getSize(t.r)+n.getSize(e.r))/2+r;g.push(new o.Constraint(t.v,e.v,i))},_=function(t,e,n){for(var r,i=p[t].iterator();null!==(r=i[t]());)n(r,p),r[e].remove(p)};_("prev","next",(function(t,e){return v(t,e)})),_("next","prev",(function(t,e){return v(e,t)}))}}return console.assert(0===m.size),g}function y(t,e){return m(t,e,d,1e-6)}function v(t,e){return m(t,e,p,1e-6)}function _(t){return g(t,d,1e-6)}function w(t){return g(t,p,1e-6)}e.generateXConstraints=y,e.generateYConstraints=v,e.generateXGroupConstraints=_,e.generateYGroupConstraints=w,e.removeOverlaps=function(t){var e=t.map((function(t){return new o.Variable(t.cx())})),n=y(t,e),r=new o.Solver(e,n);r.solve(),e.forEach((function(e,n){return t[n].setXCentre(e.position())})),e=t.map((function(t){return new o.Variable(t.cy())})),n=v(t,e),(r=new o.Solver(e,n)).solve(),e.forEach((function(e,n){return t[n].setYCentre(e.position())}))};var b=function(t){function e(e,n){var r=t.call(this,0,n)||this;return r.index=e,r}return i(e,t),e}(o.Variable);e.IndexedVariable=b,e.Projection=function(){function t(t,e,n,r,i){var o=this;if(void 0===n&&(n=null),void 0===r&&(r=null),void 0===i&&(i=!1),this.nodes=t,this.groups=e,this.rootGroup=n,this.avoidOverlaps=i,this.variables=t.map((function(t,e){return t.variable=new b(e,1)})),r&&this.createConstraints(r),i&&n&&void 0!==n.groups){t.forEach((function(t){if(t.width&&t.height){var e=t.width/2,n=t.height/2;t.bounds=new u(t.x-e,t.x+e,t.y-n,t.y+n)}else t.bounds=new u(t.x,t.x,t.y,t.y)})),a(n);var s=t.length;e.forEach((function(t){o.variables[s]=t.minVar=new b(s++,void 0!==t.stiffness?t.stiffness:.01),o.variables[s]=t.maxVar=new b(s++,void 0!==t.stiffness?t.stiffness:.01)}))}}return t.prototype.createSeparation=function(t){return new o.Constraint(this.nodes[t.left].variable,this.nodes[t.right].variable,t.gap,void 0!==t.equality&&t.equality)},t.prototype.makeFeasible=function(t){var e=this;if(this.avoidOverlaps){var n="x",r="width";"x"===t.axis&&(n="y",r="height");var i=t.offsets.map((function(t){return e.nodes[t.node]})).sort((function(t,e){return t[n]-e[n]})),o=null;i.forEach((function(t){if(o){var e=o[n]+o[r];e>t[n]&&(t[n]=e)}o=t}))}},t.prototype.createAlignment=function(t){var e=this,n=this.nodes[t.offsets[0].node].variable;this.makeFeasible(t);var r="x"===t.axis?this.xConstraints:this.yConstraints;t.offsets.slice(1).forEach((function(t){r.push(new o.Constraint(n,e.nodes[t.node].variable,t.offset,!0))}))},t.prototype.createConstraints=function(t){var e=this,n=function(t){return void 0===t.type||"separation"===t.type};this.xConstraints=t.filter((function(t){return"x"===t.axis&&n(t)})).map((function(t){return e.createSeparation(t)})),this.yConstraints=t.filter((function(t){return"y"===t.axis&&n(t)})).map((function(t){return e.createSeparation(t)})),t.filter((function(t){return"alignment"===t.type})).forEach((function(t){return e.createAlignment(t)}))},t.prototype.setupVariablesAndBounds=function(t,e,n,r){this.nodes.forEach((function(i,o){i.fixed?(i.variable.weight=i.fixedWeight?i.fixedWeight:1e3,n[o]=r(i)):i.variable.weight=1;var s=(i.width||0)/2,a=(i.height||0)/2,c=t[o],l=e[o];i.bounds=new u(c-s,c+s,l-a,l+a)}))},t.prototype.xProject=function(t,e,n){(this.rootGroup||this.avoidOverlaps||this.xConstraints)&&this.project(t,e,t,n,(function(t){return t.px}),this.xConstraints,_,(function(t){return t.bounds.setXCentre(n[t.variable.index]=t.variable.position())}),(function(t){var e=n[t.minVar.index]=t.minVar.position(),r=n[t.maxVar.index]=t.maxVar.position(),i=t.padding/2;t.bounds.x=e-i,t.bounds.X=r+i}))},t.prototype.yProject=function(t,e,n){(this.rootGroup||this.yConstraints)&&this.project(t,e,e,n,(function(t){return t.py}),this.yConstraints,w,(function(t){return t.bounds.setYCentre(n[t.variable.index]=t.variable.position())}),(function(t){var e=n[t.minVar.index]=t.minVar.position(),r=n[t.maxVar.index]=t.maxVar.position(),i=t.padding/2;t.bounds.y=e-i,t.bounds.Y=r+i}))},t.prototype.projectFunctions=function(){var t=this;return[function(e,n,r){return t.xProject(e,n,r)},function(e,n,r){return t.yProject(e,n,r)}]},t.prototype.project=function(t,e,n,r,i,o,s,u,c){this.setupVariablesAndBounds(t,e,r,i),this.rootGroup&&this.avoidOverlaps&&(a(this.rootGroup),o=o.concat(s(this.rootGroup))),this.solve(this.variables,o,n,r),this.nodes.forEach(u),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(c),a(this.rootGroup))},t.prototype.solve=function(t,e,n,r){var i=new o.Solver(t,e);i.setStartingPositions(n),i.setDesiredPositions(r),i.solve()},t}()},"ge/d":function(t,e){function n(){var t={};t._next=t._prev=t,this._sentinel=t}function r(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function i(t,e){if("_next"!==t&&"_prev"!==t)return e}t.exports=n,n.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return r(e),e},n.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&r(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},n.prototype.toString=function(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,i)),n=n._prev;return"["+t.join(", ")+"]"}},gjtd:function(t,e,n){var r;try{r={cloneDeep:n("c2re"),constant:n("eN33"),defaults:n("WHWN"),each:n("h4um"),filter:n("+DnP"),find:n("6R5o"),flatten:n("1xil"),forEach:n("9SCj"),forIn:n("ZVKf"),has:n("1mr4"),isUndefined:n("CZlo"),last:n("p1C/"),map:n("mbB6"),mapValues:n("y2Ah"),max:n("LPC+"),merge:n("H8sf"),min:n("Z3AG"),minBy:n("PKEM"),now:n("ENE1"),pick:n("//nZ"),range:n("Cmkl"),reduce:n("veKZ"),sortBy:n("u6DZ"),uniqueId:n("w0mW"),values:n("0iyY"),zipObject:n("OUo6")}}catch(i){}r||(r=window._),t.exports=r},h4um:function(t,e,n){t.exports=n("9SCj")},hMsr:function(t,e,n){var r=n("+tCn"),i=n("BlJA");t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],s=t[o];e[n]=[o,s,r(s)]}return e}},hq5n:function(t,e,n){var r=n("Jl0P");t.exports=function(t,e,n){return function(t,e,n){var r={},i=t.nodes();return i.forEach((function(t){r[t]={},r[t][t]={distance:0},i.forEach((function(e){t!==e&&(r[t][e]={distance:Number.POSITIVE_INFINITY})})),n(t).forEach((function(n){var i=n.v===t?n.w:n.v,o=e(n);r[t][i]={distance:o,predecessor:t}}))})),i.forEach((function(t){var e=r[t];i.forEach((function(n){var o=r[n];i.forEach((function(n){var r=e[n],i=o[n],s=o[t].distance+r.distance;s<i.distance&&(i.distance=s,i.predecessor=r.predecessor)}))}))})),r}(t,e||i,n||function(e){return t.outEdges(e)})};var i=r.constant(1)},hyzI:function(t,e,n){var r=n("m5o6"),i=n("d0UJ"),o=n("eask"),s=n("9SKQ"),a=n("e63W");function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},i7nn:function(t,e,n){var r=n("wxYD"),i=n("a88S"),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||s.test(t)||!o.test(t)||null!=e&&t in Object(e)}},"j+bJ":function(t,e,n){var r=n("5Ck4");t.exports=function(t,e){return r(t,e,"pre")}},kG2z:function(t,e){var n=Date.now;t.exports=function(t){var e=0,r=0;return function(){var i=n(),o=16-(i-r);if(r=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},kHoZ:function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},keXZ:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t){this.scale=t,this.AB=0,this.AD=0,this.A2=0}return t.prototype.addVariable=function(t){var e=this.scale/t.scale,n=t.weight;this.AB+=n*e*(t.offset/t.scale),this.AD+=n*e*t.desiredPosition,this.A2+=n*e*e},t.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},t}();e.PositionStats=r;var i=function(){function t(t,e,n,r){void 0===r&&(r=!1),this.left=t,this.right=e,this.gap=n,this.equality=r,this.active=!1,this.unsatisfiable=!1,this.left=t,this.right=e,this.gap=n,this.equality=r}return t.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},t}();e.Constraint=i;var o=function(){function t(t,e,n){void 0===e&&(e=1),void 0===n&&(n=1),this.desiredPosition=t,this.weight=e,this.scale=n,this.offset=0}return t.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},t.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},t.prototype.visitNeighbours=function(t,e){var n=function(n,r){return n.active&&t!==r&&e(n,r)};this.cOut.forEach((function(t){return n(t,t.right)})),this.cIn.forEach((function(t){return n(t,t.left)}))},t}();e.Variable=o;var s=function(){function t(t){this.vars=[],t.offset=0,this.ps=new r(t.scale),this.addVariable(t)}return t.prototype.addVariable=function(t){t.block=this,this.vars.push(t),this.ps.addVariable(t),this.posn=this.ps.getPosn()},t.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var t=0,e=this.vars.length;t<e;++t)this.ps.addVariable(this.vars[t]);this.posn=this.ps.getPosn()},t.prototype.compute_lm=function(t,e,n){var r=this,i=t.dfdv();return t.visitNeighbours(e,(function(e,o){var s=r.compute_lm(o,t,n);o===e.right?(i+=s*e.left.scale,e.lm=s):(i+=s*e.right.scale,e.lm=-s),n(e)})),i/t.scale},t.prototype.populateSplitBlock=function(t,e){var n=this;t.visitNeighbours(e,(function(e,r){r.offset=t.offset+(r===e.right?e.gap:-e.gap),n.addVariable(r),n.populateSplitBlock(r,t)}))},t.prototype.traverse=function(t,e,n,r){var i=this;void 0===n&&(n=this.vars[0]),void 0===r&&(r=null),n.visitNeighbours(r,(function(r,o){e.push(t(r)),i.traverse(t,e,o,n)}))},t.prototype.findMinLM=function(){var t=null;return this.compute_lm(this.vars[0],null,(function(e){!e.equality&&(null===t||e.lm<t.lm)&&(t=e)})),t},t.prototype.findMinLMBetween=function(t,e){this.compute_lm(t,null,(function(){}));var n=null;return this.findPath(t,null,e,(function(t,e){!t.equality&&t.right===e&&(null===n||t.lm<n.lm)&&(n=t)})),n},t.prototype.findPath=function(t,e,n,r){var i=this,o=!1;return t.visitNeighbours(e,(function(e,s){o||s!==n&&!i.findPath(s,t,n,r)||(o=!0,r(e,s))})),o},t.prototype.isActiveDirectedPathBetween=function(t,e){if(t===e)return!0;for(var n=t.cOut.length;n--;){var r=t.cOut[n];if(r.active&&this.isActiveDirectedPathBetween(r.right,e))return!0}return!1},t.split=function(e){return e.active=!1,[t.createSplitBlock(e.left),t.createSplitBlock(e.right)]},t.createSplitBlock=function(e){var n=new t(e);return n.populateSplitBlock(e,null),n},t.prototype.splitBetween=function(e,n){var r=this.findMinLMBetween(e,n);if(null!==r){var i=t.split(r);return{constraint:r,lb:i[0],rb:i[1]}}return null},t.prototype.mergeAcross=function(t,e,n){e.active=!0;for(var r=0,i=t.vars.length;r<i;++r){var o=t.vars[r];o.offset+=n,this.addVariable(o)}this.posn=this.ps.getPosn()},t.prototype.cost=function(){for(var t=0,e=this.vars.length;e--;){var n=this.vars[e],r=n.position()-n.desiredPosition;t+=r*r*n.weight}return t},t}();e.Block=s;var a=function(){function t(t){this.vs=t;var e=t.length;for(this.list=new Array(e);e--;){var n=new s(t[e]);this.list[e]=n,n.blockInd=e}}return t.prototype.cost=function(){for(var t=0,e=this.list.length;e--;)t+=this.list[e].cost();return t},t.prototype.insert=function(t){t.blockInd=this.list.length,this.list.push(t)},t.prototype.remove=function(t){var e=this.list.length-1,n=this.list[e];this.list.length=e,t!==n&&(this.list[t.blockInd]=n,n.blockInd=t.blockInd)},t.prototype.merge=function(t){var e=t.left.block,n=t.right.block,r=t.right.offset-t.left.offset-t.gap;e.vars.length<n.vars.length?(n.mergeAcross(e,t,r),this.remove(e)):(e.mergeAcross(n,t,-r),this.remove(n))},t.prototype.forEach=function(t){this.list.forEach(t)},t.prototype.updateBlockPositions=function(){this.list.forEach((function(t){return t.updateWeightedPosition()}))},t.prototype.split=function(t){var e=this;this.updateBlockPositions(),this.list.forEach((function(n){var r=n.findMinLM();null!==r&&r.lm<u.LAGRANGIAN_TOLERANCE&&(n=r.left.block,s.split(r).forEach((function(t){return e.insert(t)})),e.remove(n),t.push(r))}))},t}();e.Blocks=a;var u=function(){function t(t,e){this.vs=t,this.cs=e,this.vs=t,t.forEach((function(t){t.cIn=[],t.cOut=[]})),this.cs=e,e.forEach((function(t){t.left.cOut.push(t),t.right.cIn.push(t)})),this.inactive=e.map((function(t){return t.active=!1,t})),this.bs=null}return t.prototype.cost=function(){return this.bs.cost()},t.prototype.setStartingPositions=function(t){this.inactive=this.cs.map((function(t){return t.active=!1,t})),this.bs=new a(this.vs),this.bs.forEach((function(e,n){return e.posn=t[n]}))},t.prototype.setDesiredPositions=function(t){this.vs.forEach((function(e,n){return e.desiredPosition=t[n]}))},t.prototype.mostViolated=function(){for(var e=Number.MAX_VALUE,n=null,r=this.inactive,i=r.length,o=i,s=0;s<i;++s){var a=r[s];if(!a.unsatisfiable){var u=a.slack();if((a.equality||u<e)&&(e=u,n=a,o=s,a.equality))break}}return o!==i&&(e<t.ZERO_UPPERBOUND&&!n.active||n.equality)&&(r[o]=r[i-1],r.length=i-1),n},t.prototype.satisfy=function(){null==this.bs&&(this.bs=new a(this.vs)),this.bs.split(this.inactive);for(var e=null;(e=this.mostViolated())&&(e.equality||e.slack()<t.ZERO_UPPERBOUND&&!e.active);){var n=e.left.block;if(n!==e.right.block)this.bs.merge(e);else{if(n.isActiveDirectedPathBetween(e.right,e.left)){e.unsatisfiable=!0;continue}var r=n.splitBetween(e.left,e.right);if(null===r){e.unsatisfiable=!0;continue}this.bs.insert(r.lb),this.bs.insert(r.rb),this.bs.remove(n),this.inactive.push(r.constraint),e.slack()>=0?this.inactive.push(e):this.bs.merge(e)}}},t.prototype.solve=function(){this.satisfy();for(var t=Number.MAX_VALUE,e=this.bs.cost();Math.abs(t-e)>1e-4;)this.satisfy(),t=e,e=this.bs.cost();return e},t.LAGRANGIAN_TOLERANCE=-1e-4,t.ZERO_UPPERBOUND=-1e-10,t}();e.Solver=u,e.removeOverlapInOneDimension=function(t,e,n){for(var r=t.map((function(t){return new o(t.desiredCenter)})),s=[],a=t.length,c=0;c<a-1;c++)s.push(new i(r[c],r[c+1],(t[c].size+t[c+1].size)/2));var l=r[0],h=r[a-1],f=t[0].size/2,d=t[a-1].size/2,p=null,g=null;return e&&(p=new o(e,1e3*l.weight),r.push(p),s.push(new i(p,l,f))),n&&(g=new o(n,1e3*h.weight),r.push(g),s.push(new i(h,g,d))),new u(r,s).solve(),{newCenters:r.slice(0,t.length).map((function(t){return t.position()})),lowerBound:p?p.position():l.position()-f,upperBound:g?g.position():h.position()+d}}},"kkM+":function(t,e,n){var r=n("QF3D"),i=n("qeCs"),o=n("IS0S"),s=n("OBn4"),a=n("4+Vk"),u=n("Dhk8"),c=n("c18h"),l="[object Map]",h="[object Promise]",f="[object Set]",d="[object WeakMap]",p="[object DataView]",g=c(r),m=c(i),y=c(o),v=c(s),_=c(a),w=u;(r&&w(new r(new ArrayBuffer(1)))!=p||i&&w(new i)!=l||o&&w(o.resolve())!=h||s&&w(new s)!=f||a&&w(new a)!=d)&&(w=function(t){var e=u(t),n="[object Object]"==e?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case g:return p;case m:return l;case y:return h;case v:return f;case _:return d}return e}),t.exports=w},kn3Q:function(t,e,n){var r=n("HsnV"),i=n("LmOH"),o=n("c72w"),s=n("tPQG"),a=n("QrYh"),u=n("Grae"),c=n("QT01"),l=n("AjPR"),h=n("BjSP"),f=n("tlBq"),d=n("zF5n"),p=n("kkM+"),g=n("3Qlq"),m=n("7No3"),y=n("sD1O"),v=n("wxYD"),_=n("3ajY"),w=n("NbvU"),b=n("tQYX"),x=n("/iLo"),E=n("BlJA"),S=n("zH+d"),k="[object Arguments]",C="[object Function]",T="[object Object]",A={};A[k]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[T]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[C]=A["[object WeakMap]"]=!1,t.exports=function t(e,n,N,M,O,D){var I,j=1&n,P=2&n,F=4&n;if(N&&(I=O?N(e,M,O,D):N(e)),void 0!==I)return I;if(!b(e))return e;var L=v(e);if(L){if(I=g(e),!j)return c(e,I)}else{var R=p(e),z=R==C||"[object GeneratorFunction]"==R;if(_(e))return u(e,j);if(R==T||R==k||z&&!O){if(I=P||z?{}:y(e),!j)return P?h(e,a(I,e)):l(e,s(I,e))}else{if(!A[R])return O?e:{};I=m(e,R,j)}}D||(D=new r);var V=D.get(e);if(V)return V;D.set(e,I),x(e)?e.forEach((function(r){I.add(t(r,n,N,r,e,D))})):w(e)&&e.forEach((function(r,i){I.set(i,t(r,n,N,i,e,D))}));var B=L?void 0:(F?P?d:f:P?S:E)(e);return i(B||e,(function(r,i){B&&(r=e[i=r]),o(I,i,t(r,n,N,i,e,D))})),I}},kwr2:function(t,e,n){var r=n("6QIk"),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():i.call(e,n,1),--this.size,0))}},lN3w:function(t,e,n){var r=n("EAGB");t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},m2YG:function(t,e,n){var r=n("fWyh");t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},m5o6:function(t,e,n){var r=n("Tv3l"),i=n("+ooz"),o=n("qeCs");t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},mGzy:function(t,e,n){var r=n("IBsm");t.exports=r.Uint8Array},mUsV:function(t,e,n){var r=n("5pfJ");t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},mbB6:function(t,e,n){var r=n("H87J"),i=n("S3pA"),o=n("bFjY"),s=n("wxYD");t.exports=function(t,e){return(s(t)?r:o)(t,i(e,3))}},myUI:function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},"n+p3":function(t,e){t.exports=function(t,e){return t<e}},n1QJ:function(t,e){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},nDih:function(t,e,n){var r=n("Dhk8"),i=n("wxYD"),o=n("tLQN");t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},nnm9:function(t,e){t.exports=function(){}},nvU9:function(t,e,n){var r=n("I1fX"),i=n("tQYX"),o=n("a88S"),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=a.test(t);return n||u.test(t)?c(t.slice(2),n?2:8):s.test(t)?NaN:+t}},oCTG:function(t,e,n){var r=n("Syyo"),i=n("bvyN"),o=n("wxYD"),s=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(s&&t&&t[s])}},osTN:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("Tx5e"),i=n("WcC/");e.d3adaptor=function(t){return!t||function(t){return t.version&&null!==t.version.match(/^3\./)}(t)?new r.D3StyleLayoutAdaptor:new i.D3StyleLayoutAdaptor(t)}},"p1C/":function(t,e){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},p2lg:function(t,e,n){var r=n("tQYX"),i=n("CbIe"),o=n("/UTG"),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=i(t),n=[];for(var a in t)("constructor"!=a||!e&&s.call(t,a))&&n.push(a);return n}},pFSi:function(t,e,n){var r=n("hyzI");function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},pIod:function(t,e,n){var r=n("y/9h"),i=n("wxYD");t.exports=function(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}},pPzx:function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},pnw1:function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},qC43:function(t,e,n){var r=n("Jl0P");t.exports=function(t){var e,n={},i=[];function o(i){r.has(n,i)||(n[i]=!0,e.push(i),r.each(t.successors(i),o),r.each(t.predecessors(i),o))}return r.each(t.nodes(),(function(t){e=[],o(t),e.length&&i.push(e)})),i}},qeCs:function(t,e,n){var r=n("vxC8")(n("IBsm"),"Map");t.exports=r},qjF7:function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},rmhs:function(t,e,n){var r=n("2ZvR"),i=n("bvyN"),o=n("wxYD"),s=n("3ajY"),a=n("pnw1"),u=n("Qd2C"),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),l=!n&&i(t),h=!n&&!l&&s(t),f=!n&&!l&&!h&&u(t),d=n||l||h||f,p=d?r(t.length,String):[],g=p.length;for(var m in t)!e&&!c.call(t,m)||d&&("length"==m||h&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,g))||p.push(m);return p}},"s+R0":function(t,e,n){var r=n("JBn+"),i=n("OfKG"),o=n("sCL+"),s=n("S0iI"),a=n("9TP6"),u=n("XlL0");t.exports=function(t,e,n){var c=-1,l=i,h=t.length,f=!0,d=[],p=d;if(n)f=!1,l=o;else if(h>=200){var g=e?null:a(t);if(g)return u(g);f=!1,l=s,p=new r}else p=e?[]:d;t:for(;++c<h;){var m=t[c],y=e?e(m):m;if(m=n||0!==m?m:0,f&&y==y){for(var v=p.length;v--;)if(p[v]===y)continue t;e&&p.push(y),d.push(m)}else l(p,y,n)||(p!==d&&p.push(y),d.push(m))}return d}},"sCL+":function(t,e){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}},sD1O:function(t,e,n){var r=n("vGGS"),i=n("/wCD"),o=n("CbIe");t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:r(i(t))}},sjzV:function(t,e,n){var r=n("Q4oW");t.exports=function(t,e){var n=[];return r(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}},t0L4:function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},tLQN:function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},tPQG:function(t,e,n){var r=n("LtXa"),i=n("BlJA");t.exports=function(t,e){return t&&r(e,i(e),t)}},tQYX:function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},tlBq:function(t,e,n){var r=n("pIod"),i=n("70Le"),o=n("BlJA");t.exports=function(t){return r(t,o,i)}},u6DZ:function(t,e,n){var r=n("YpBQ"),i=n("eHpp"),o=n("R3TX"),s=n("R5u7"),a=o((function(t,e){if(null==t)return[];var n=e.length;return n>1&&s(t,e[0],e[1])?e=[]:n>2&&s(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])}));t.exports=a},vC4J:function(t,e,n){var r;try{r=n("YlUH")}catch(i){}r||(r=window.graphlib),t.exports=r},vGGS:function(t,e,n){var r=n("tQYX"),i=Object.create,o=function(){function t(){}return function(e){if(!r(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=o},veKZ:function(t,e,n){var r=n("cPMt"),i=n("Q4oW"),o=n("S3pA"),s=n("5q8j"),a=n("wxYD");t.exports=function(t,e,n){var u=a(t)?r:s,c=arguments.length<3;return u(t,o(e,4),n,c,i)}},vpOK:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(){this.findIter=function(t){for(var e=this._root,n=this.iterator();null!==e;){var r=this._comparator(t,e.data);if(0===r)return n._cursor=e,n;n._ancestors.push(e),e=e.get_child(r>0)}return null}}return t.prototype.clear=function(){this._root=null,this.size=0},t.prototype.find=function(t){for(var e=this._root;null!==e;){var n=this._comparator(t,e.data);if(0===n)return e.data;e=e.get_child(n>0)}return null},t.prototype.lowerBound=function(t){return this._bound(t,this._comparator)},t.prototype.upperBound=function(t){var e=this._comparator;return this._bound(t,(function(t,n){return e(n,t)}))},t.prototype.min=function(){var t=this._root;if(null===t)return null;for(;null!==t.left;)t=t.left;return t.data},t.prototype.max=function(){var t=this._root;if(null===t)return null;for(;null!==t.right;)t=t.right;return t.data},t.prototype.iterator=function(){return new s(this)},t.prototype.each=function(t){for(var e,n=this.iterator();null!==(e=n.next());)t(e)},t.prototype.reach=function(t){for(var e,n=this.iterator();null!==(e=n.prev());)t(e)},t.prototype._bound=function(t,e){for(var n=this._root,r=this.iterator();null!==n;){var i=this._comparator(t,n.data);if(0===i)return r._cursor=n,r;r._ancestors.push(n),n=n.get_child(i>0)}for(var o=r._ancestors.length-1;o>=0;--o)if(e(t,(n=r._ancestors[o]).data)>0)return r._cursor=n,r._ancestors.length=o,r;return r._ancestors.length=0,r},t}();e.TreeBase=o;var s=function(){function t(t){this._tree=t,this._ancestors=[],this._cursor=null}return t.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},t.prototype.next=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._minNode(t)}else{var e;if(null===this._cursor.right)do{if(e=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===e);else this._ancestors.push(this._cursor),this._minNode(this._cursor.right)}return null!==this._cursor?this._cursor.data:null},t.prototype.prev=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._maxNode(t)}else{var e;if(null===this._cursor.left)do{if(e=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===e);else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left)}return null!==this._cursor?this._cursor.data:null},t.prototype._minNode=function(t){for(;null!==t.left;)this._ancestors.push(t),t=t.left;this._cursor=t},t.prototype._maxNode=function(t){for(;null!==t.right;)this._ancestors.push(t),t=t.right;this._cursor=t},t}();e.Iterator=s;var a=function(){function t(t){this.data=t,this.left=null,this.right=null,this.red=!0}return t.prototype.get_child=function(t){return t?this.right:this.left},t.prototype.set_child=function(t,e){t?this.right=e:this.left=e},t}();e.RBTree=function(t){function e(e){var n=t.call(this)||this;return n._root=null,n._comparator=e,n.size=0,n}return i(e,t),e.prototype.insert=function(t){var n=!1;if(null===this._root)this._root=new a(t),n=!0,this.size++;else{var r=new a(void 0),i=!1,o=!1,s=null,u=r,c=null,l=this._root;for(u.right=this._root;;){if(null===l?(l=new a(t),c.set_child(i,l),n=!0,this.size++):e.is_red(l.left)&&e.is_red(l.right)&&(l.red=!0,l.left.red=!1,l.right.red=!1),e.is_red(l)&&e.is_red(c)){var h=u.right===s;l===c.get_child(o)?u.set_child(h,e.single_rotate(s,!o)):u.set_child(h,e.double_rotate(s,!o))}var f=this._comparator(l.data,t);if(0===f)break;o=i,null!==s&&(u=s),s=c,c=l,l=l.get_child(i=f<0)}this._root=r.right}return this._root.red=!1,n},e.prototype.remove=function(t){if(null===this._root)return!1;var n=new a(void 0),r=n;r.right=this._root;for(var i=null,o=null,s=null,u=!0;null!==r.get_child(u);){var c=u;o=i,i=r,r=r.get_child(u);var l=this._comparator(t,r.data);if(u=l>0,0===l&&(s=r),!e.is_red(r)&&!e.is_red(r.get_child(u)))if(e.is_red(r.get_child(!u))){var h=e.single_rotate(r,u);i.set_child(c,h),i=h}else if(!e.is_red(r.get_child(!u))){var f=i.get_child(!c);if(null!==f)if(e.is_red(f.get_child(!c))||e.is_red(f.get_child(c))){var d=o.right===i;e.is_red(f.get_child(c))?o.set_child(d,e.double_rotate(i,c)):e.is_red(f.get_child(!c))&&o.set_child(d,e.single_rotate(i,c));var p=o.get_child(d);p.red=!0,r.red=!0,p.left.red=!1,p.right.red=!1}else i.red=!1,f.red=!0,r.red=!0}}return null!==s&&(s.data=r.data,i.set_child(i.right===r,r.get_child(null===r.left)),this.size--),this._root=n.right,null!==this._root&&(this._root.red=!1),null!==s},e.is_red=function(t){return null!==t&&t.red},e.single_rotate=function(t,e){var n=t.get_child(!e);return t.set_child(!e,n.get_child(e)),n.set_child(e,t),t.red=!0,n.red=!1,n},e.double_rotate=function(t,n){return t.set_child(!n,e.single_rotate(t.get_child(!n),!n)),e.single_rotate(t,n)},e}(o)},vxC8:function(t,e,n){var r=n("5nKN"),i=n("4p/L");t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},w0mW:function(t,e,n){var r=n("dw5g"),i=0;t.exports=function(t){var e=++i;return r(t)+e}},w2Tz:function(t,e,n){var r=n("xoyU"),i=n("Ypsa");t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[i(e[n++])];return n&&n==o?t:void 0}},wC3K:function(t,e,n){var r=n("Pz+s");t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},wHMW:function(t,e,n){var r=n("gjtd"),i=n("xxjf");t.exports={run:function(t){var e=i.addDummyNode(t,"root",{},"_root"),n=function(t){var e={};return r.forEach(t.children(),(function(n){!function n(i,o){var s=t.children(i);s&&s.length&&r.forEach(s,(function(t){n(t,o+1)})),e[i]=o}(n,1)})),e}(t),o=r.max(r.values(n))-1,s=2*o+1;t.graph().nestingRoot=e,r.forEach(t.edges(),(function(e){t.edge(e).minlen*=s}));var a=function(t){return r.reduce(t.edges(),(function(e,n){return e+t.edge(n).weight}),0)}(t)+1;r.forEach(t.children(),(function(u){!function t(e,n,o,s,a,u,c){var l=e.children(c);if(l.length){var h=i.addBorderNode(e,"_bt"),f=i.addBorderNode(e,"_bb"),d=e.node(c);e.setParent(h,c),d.borderTop=h,e.setParent(f,c),d.borderBottom=f,r.forEach(l,(function(r){t(e,n,o,s,a,u,r);var i=e.node(r),l=i.borderTop?i.borderTop:r,d=i.borderBottom?i.borderBottom:r,p=i.borderTop?s:2*s,g=l!==d?1:a-u[c]+1;e.setEdge(h,l,{weight:p,minlen:g,nestingEdge:!0}),e.setEdge(d,f,{weight:p,minlen:g,nestingEdge:!0})})),e.parent(c)||e.setEdge(n,h,{weight:0,minlen:a+u[c]})}else c!==n&&e.setEdge(n,c,{weight:0,minlen:o})}(t,e,s,a,o,n,u)})),t.graph().nodeRankFactor=s},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.forEach(t.edges(),(function(e){t.edge(e).nestingEdge&&t.removeEdge(e)}))}}},wpQC:function(t,e,n){var r=n("R3TX"),i=n("R5u7");t.exports=function(t){return r((function(e,n){var r=-1,o=n.length,s=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(s=t.length>3&&"function"==typeof s?(o--,s):void 0,a&&i(n[0],n[1],a)&&(s=o<3?void 0:s,o=1),e=Object(e);++r<o;){var u=n[r];u&&t(e,u,r,s)}return e}))}},wxYD:function(t,e){t.exports=Array.isArray},xGdc:function(t,e,n){var r=n("Jl0P"),i=n("buMw"),o=n("c9kG");t.exports=function(t,e){var n,s=new i,a={},u=new o;function c(t){var r=t.v===n?t.w:t.v,i=u.priority(r);if(void 0!==i){var o=e(t);o<i&&(a[r]=n,u.decrease(r,o))}}if(0===t.nodeCount())return s;r.each(t.nodes(),(function(t){u.add(t,Number.POSITIVE_INFINITY),s.setNode(t)})),u.decrease(t.nodes()[0],0);for(var l=!1;u.size()>0;){if(n=u.removeMin(),r.has(a,n))s.setEdge(n,a[n]);else{if(l)throw new Error("Input graph is not connected: "+t);l=!0}t.nodeEdges(n).forEach(c)}return s}},xaOS:function(t,e,n){"use strict";var r=n("gjtd"),i=n("vC4J").Graph,o=n("xxjf");function s(t,e){var n={};return r.reduce(e,(function(e,i){var o=0,s=0,a=e.length,c=r.last(i);return r.forEach(i,(function(e,l){var h=function(t,e){if(t.node(e).dummy)return r.find(t.predecessors(e),(function(e){return t.node(e).dummy}))}(t,e),f=h?t.node(h).order:a;(h||e===c)&&(r.forEach(i.slice(s,l+1),(function(e){r.forEach(t.predecessors(e),(function(r){var i=t.node(r),s=i.order;!(s<o||f<s)||i.dummy&&t.node(e).dummy||u(n,r,e)}))})),s=l+1,o=f)})),i})),n}function a(t,e){var n={};function i(e,i,o,s,a){var c;r.forEach(r.range(i,o),(function(i){t.node(c=e[i]).dummy&&r.forEach(t.predecessors(c),(function(e){var r=t.node(e);r.dummy&&(r.order<s||r.order>a)&&u(n,e,c)}))}))}return r.reduce(e,(function(e,n){var o,s=-1,a=0;return r.forEach(n,(function(r,u){if("border"===t.node(r).dummy){var c=t.predecessors(r);c.length&&(o=t.node(c[0]).order,i(n,a,u,s,o),a=u,s=o)}i(n,a,n.length,o,e.length)})),n})),n}function u(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function c(t,e,n){if(e>n){var i=e;e=n,n=i}return r.has(t[e],n)}function l(t,e,n,i){var o={},s={},a={};return r.forEach(e,(function(t){r.forEach(t,(function(t,e){o[t]=t,s[t]=t,a[t]=e}))})),r.forEach(e,(function(t){var e=-1;r.forEach(t,(function(t){var u=i(t);if(u.length)for(var l=((u=r.sortBy(u,(function(t){return a[t]}))).length-1)/2,h=Math.floor(l),f=Math.ceil(l);h<=f;++h){var d=u[h];s[t]===t&&e<a[d]&&!c(n,t,d)&&(s[d]=t,s[t]=o[t]=o[d],e=a[d])}}))})),{root:o,align:s}}function h(t,e,n,o,s){var a={},u=function(t,e,n,o){var s=new i,a=t.graph(),u=function(t,e,n){return function(i,o,s){var a,u=i.node(o),c=i.node(s),l=0;if(l+=u.width/2,r.has(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":a=-u.width/2;break;case"r":a=u.width/2}if(a&&(l+=n?a:-a),a=0,l+=(u.dummy?e:t)/2,l+=(c.dummy?e:t)/2,l+=c.width/2,r.has(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":a=c.width/2;break;case"r":a=-c.width/2}return a&&(l+=n?a:-a),a=0,l}}(a.nodesep,a.edgesep,o);return r.forEach(e,(function(e){var i;r.forEach(e,(function(e){var r=n[e];if(s.setNode(r),i){var o=n[i],a=s.edge(o,r);s.setEdge(o,r,Math.max(u(t,e,i),a||0))}i=e}))})),s}(t,e,n,s),c=s?"borderLeft":"borderRight";function l(t,e){for(var n=u.nodes(),r=n.pop(),i={};r;)i[r]?t(r):(i[r]=!0,n.push(r),n=n.concat(e(r))),r=n.pop()}return l((function(t){a[t]=u.inEdges(t).reduce((function(t,e){return Math.max(t,a[e.v]+u.edge(e))}),0)}),u.predecessors.bind(u)),l((function(e){var n=u.outEdges(e).reduce((function(t,e){return Math.min(t,a[e.w]-u.edge(e))}),Number.POSITIVE_INFINITY),r=t.node(e);n!==Number.POSITIVE_INFINITY&&r.borderType!==c&&(a[e]=Math.max(a[e],n))}),u.successors.bind(u)),r.forEach(o,(function(t){a[t]=a[n[t]]})),a}function f(t,e){return r.minBy(r.values(e),(function(e){var n=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return r.forIn(e,(function(e,r){var o=function(t,e){return t.node(e).width}(t,r)/2;n=Math.max(e+o,n),i=Math.min(e-o,i)})),n-i}))}function d(t,e){var n=r.values(e),i=r.min(n),o=r.max(n);r.forEach(["u","d"],(function(n){r.forEach(["l","r"],(function(s){var a,u=n+s,c=t[u];if(c!==e){var l=r.values(c);(a="l"===s?i-r.min(l):o-r.max(l))&&(t[u]=r.mapValues(c,(function(t){return t+a})))}}))}))}function p(t,e){return r.mapValues(t.ul,(function(n,i){if(e)return t[e.toLowerCase()][i];var o=r.sortBy(r.map(t,i));return(o[1]+o[2])/2}))}t.exports={positionX:function(t){var e,n=o.buildLayerMatrix(t),i=r.merge(s(t,n),a(t,n)),u={};r.forEach(["u","d"],(function(o){e="u"===o?n:r.values(n).reverse(),r.forEach(["l","r"],(function(n){"r"===n&&(e=r.map(e,(function(t){return r.values(t).reverse()})));var s=("u"===o?t.predecessors:t.successors).bind(t),a=l(0,e,i,s),c=h(t,e,a.root,a.align,"r"===n);"r"===n&&(c=r.mapValues(c,(function(t){return-t}))),u[o+n]=c}))}));var c=f(t,u);return d(u,c),p(u,t.graph().align)},findType1Conflicts:s,findType2Conflicts:a,addConflict:u,hasConflict:c,verticalAlignment:l,horizontalCompaction:h,alignCoordinates:d,findSmallestWidthAlignment:f,balance:p}},xoyU:function(t,e,n){var r=n("wxYD"),i=n("i7nn"),o=n("SoOq"),s=n("dw5g");t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(s(t))}},xxjf:function(t,e,n){"use strict";var r=n("gjtd"),i=n("vC4J").Graph;function o(t,e,n,i){var o;do{o=r.uniqueId(i)}while(t.hasNode(o));return n.dummy=e,t.setNode(o,n),o}function s(t){return r.max(r.map(t.nodes(),(function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n})))}t.exports={addDummyNode:o,simplify:function(t){var e=(new i).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),e},asNonCompoundGraph:function(t){var e=new i({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e},successorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.outEdges(e),(function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.inEdges(e),(function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,i=t.x,o=t.y,s=e.x-i,a=e.y-o,u=t.width/2,c=t.height/2;if(!s&&!a)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(a)*u>Math.abs(s)*c?(a<0&&(c=-c),n=c*s/a,r=c):(s<0&&(u=-u),n=u,r=u*a/s),{x:i+n,y:o+r}},buildLayerMatrix:function(t){var e=r.map(r.range(s(t)+1),(function(){return[]}));return r.forEach(t.nodes(),(function(n){var i=t.node(n),o=i.rank;r.isUndefined(o)||(e[o][i.order]=n)})),e},normalizeRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank})));r.forEach(t.nodes(),(function(n){var i=t.node(n);r.has(i,"rank")&&(i.rank-=e)}))},removeEmptyRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank}))),n=[];r.forEach(t.nodes(),(function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)}));var i=0,o=t.graph().nodeRankFactor;r.forEach(n,(function(e,n){r.isUndefined(e)&&n%o!=0?--i:i&&r.forEach(e,(function(e){t.node(e).rank+=i}))}))},addBorderNode:function(t,e,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),o(t,"border",i,e)},maxRank:s,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n},time:function(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}},notime:function(t,e){return e()}}},"y/9h":function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},y2Ah:function(t,e,n){var r=n("wC3K"),i=n("zKkv"),o=n("S3pA");t.exports=function(t,e){var n={};return e=o(e,3),i(t,(function(t,i,o){r(n,i,e(t,i,o))})),n}},y4bl:function(t,e,n){var r=n("c72w"),i=n("xoyU"),o=n("pnw1"),s=n("tQYX"),a=n("Ypsa");t.exports=function(t,e,n,u){if(!s(t))return t;for(var c=-1,l=(e=i(e,t)).length,h=l-1,f=t;null!=f&&++c<l;){var d=a(e[c]),p=n;if("__proto__"===d||"constructor"===d||"prototype"===d)return t;if(c!=h){var g=f[d];void 0===(p=u?u(g,d,f):void 0)&&(p=s(g)?g:o(e[c+1])?[]:{})}r(f,d,p),f=f[d]}return t}},yZHP:function(t,e,n){var r=n("tlBq"),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,s,a){var u=1&n,c=r(t),l=c.length;if(l!=r(e).length&&!u)return!1;for(var h=l;h--;){var f=c[h];if(!(u?f in e:i.call(e,f)))return!1}var d=a.get(t),p=a.get(e);if(d&&p)return d==e&&p==t;var g=!0;a.set(t,e),a.set(e,t);for(var m=u;++h<l;){var y=t[f=c[h]],v=e[f];if(o)var _=u?o(v,y,f,e,t,a):o(y,v,f,t,e,a);if(!(void 0===_?y===v||s(y,v,n,o,a):_)){g=!1;break}m||(m="constructor"==f)}if(g&&!m){var w=t.constructor,b=e.constructor;w==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof b&&b instanceof b||(g=!1)}return a.delete(t),a.delete(e),g}},"z+TE":function(t,e,n){var r=n("xoyU"),i=n("bvyN"),o=n("wxYD"),s=n("pnw1"),a=n("t0L4"),u=n("Ypsa");t.exports=function(t,e,n){for(var c=-1,l=(e=r(e,t)).length,h=!1;++c<l;){var f=u(e[c]);if(!(h=null!=t&&n(t,f)))break;t=t[f]}return h||++c!=l?h:!!(l=null==t?0:t.length)&&a(l)&&s(f,l)&&(o(t)||i(t))}},z9Jh:function(t,e){t.exports=function(t){return t!=t}},zBPj:function(t,e,n){var r=n("gjtd"),i=n("xxjf");function o(t,e,n){for(var i;e.length&&(i=r.last(e)).i<=n;)e.pop(),t.push(i.vs),n++;return n}t.exports=function(t,e){var n,s=i.partition(t,(function(t){return r.has(t,"barycenter")})),a=s.lhs,u=r.sortBy(s.rhs,(function(t){return-t.i})),c=[],l=0,h=0,f=0;a.sort((n=!!e,function(t,e){return t.barycenter<e.barycenter?-1:t.barycenter>e.barycenter?1:n?e.i-t.i:t.i-e.i})),f=o(c,u,f),r.forEach(a,(function(t){f+=t.vs.length,c.push(t.vs),l+=t.barycenter*t.weight,h+=t.weight,f=o(c,u,f)}));var d={vs:r.flatten(c,!0)};return h&&(d.barycenter=l/h,d.weight=h),d}},zF5n:function(t,e,n){var r=n("pIod"),i=n("Xidw"),o=n("zH+d");t.exports=function(t){return r(t,o,i)}},"zH+d":function(t,e,n){var r=n("rmhs"),i=n("p2lg"),o=n("9y2L");t.exports=function(t){return o(t)?r(t,!0):i(t)}},zKkv:function(t,e,n){var r=n("UdtX"),i=n("BlJA");t.exports=function(t,e){return t&&r(t,e,i)}},zUnb:function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"forceCenter",(function(){return yb})),n.d(r,"forceCollide",(function(){return Mb})),n.d(r,"forceLink",(function(){return zb})),n.d(r,"forceManyBody",(function(){return Ub})),n.d(r,"forceRadial",(function(){return qb})),n.d(r,"forceSimulation",(function(){return Gb})),n.d(r,"forceX",(function(){return Yb})),n.d(r,"forceY",(function(){return $b}));var i={};n.r(i),n.d(i,"dispatch",(function(){return Yp}));var o={};function s(t){return"function"==typeof t}n.r(o),n.d(o,"now",(function(){return Wg})),n.d(o,"timer",(function(){return Xg})),n.d(o,"timerFlush",(function(){return Kg})),n.d(o,"timeout",(function(){return nm})),n.d(o,"interval",(function(){return Qb}));let a=!1;const u={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else a&&console.log("RxJS: Back to a better error behavior. Thank you. <3");a=t},get useDeprecatedSynchronousErrorHandling(){return a}};function c(t){setTimeout(()=>{throw t},0)}const l={closed:!0,next(t){},error(t){if(u.useDeprecatedSynchronousErrorHandling)throw t;c(t)},complete(){}},h=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function f(t){return null!==t&&"object"==typeof t}const d=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let p=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:r,_unsubscribe:i,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;t<n.length;++t)n[t].remove(this);if(s(i)){r&&(this._unsubscribe=void 0);try{i.call(this)}catch(a){e=a instanceof d?g(a.errors):[a]}}if(h(o)){let t=-1,n=o.length;for(;++t<n;){const n=o[t];if(f(n))try{n.unsubscribe()}catch(a){e=e||[],a instanceof d?e=e.concat(g(a.errors)):e.push(a)}}}if(e)throw new d(e)}add(e){let n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){const e=n;n=new t,n._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:r}=n;if(null===r)n._parentOrParents=this;else if(r instanceof t){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}const i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}var e;return t.EMPTY=((e=new t).closed=!0,e),t})();function g(t){return t.reduce((t,e)=>t.concat(e instanceof d?e.errors:e),[])}const m=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class y extends p{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=l;break;case 1:if(!t){this.destination=l;break}if("object"==typeof t){t instanceof y?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new v(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new v(this,t,e,n)}}[m](){return this}static create(t,e,n){const r=new y(t,e,n);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class v extends y{constructor(t,e,n,r){let i;super(),this._parentSubscriber=t;let o=this;s(e)?i=e:e&&(i=e.next,n=e.error,r=e.complete,e!==l&&(o=Object.create(e),s(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=i,this._error=n,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;u.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=u;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):c(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;c(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);u.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),u.useDeprecatedSynchronousErrorHandling)throw n;c(n)}}__tryOrSetError(t,e,n){if(!u.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return u.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(c(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const _=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function w(t){return t}let b=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:r}=this,i=function(t,e,n){if(t){if(t instanceof y)return t;if(t[m])return t[m]()}return t||e||n?new y(t,e,n):new y(l)}(t,e,n);if(i.add(r?r.call(i,this.source):this.source||u.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),u.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}_trySubscribe(t){try{return this._subscribe(t)}catch(e){u.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof y?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=x(e))((e,n)=>{let r;r=this.subscribe(e=>{try{t(e)}catch(i){n(i),r&&r.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[_](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?w:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=x(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function x(t){if(t||(t=u.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const E=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class S extends p{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class k extends y{constructor(t){super(t),this.destination=t}}let C=(()=>{class t extends b{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[m](){return new k(this)}lift(t){const e=new T(this,this);return e.operator=t,e}next(t){if(this.closed)throw new E;if(!this.isStopped){const{observers:e}=this,n=e.length,r=e.slice();for(let i=0;i<n;i++)r[i].next(t)}}error(t){if(this.closed)throw new E;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,r=e.slice();for(let i=0;i<n;i++)r[i].error(t);this.observers.length=0}complete(){if(this.closed)throw new E;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let r=0;r<e;r++)n[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new E;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new E;return this.hasError?(t.error(this.thrownError),p.EMPTY):this.isStopped?(t.complete(),p.EMPTY):(this.observers.push(t),new S(this,t))}asObservable(){const t=new b;return t.source=this,t}}return t.create=(t,e)=>new T(t,e),t})();class T extends C{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):p.EMPTY}}function A(t){return t&&"function"==typeof t.schedule}function N(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new M(t,e))}}class M{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new O(t,this.project,this.thisArg))}}class O extends y{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const D=t=>e=>{for(let n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()};function I(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const j=I(),P=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function F(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const L=t=>{if(t&&"function"==typeof t[_])return r=t,t=>{const e=r[_]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(P(t))return D(t);if(F(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,c),t);if(t&&"function"==typeof t[j])return e=t,t=>{const n=e[j]();for(;;){let e;try{e=n.next()}catch(r){return t.error(r),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=f(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,r};function R(t,e){return new b(n=>{const r=new p;let i=0;return r.add(e.schedule((function(){i!==t.length?(n.next(t[i++]),n.closed||r.add(this.schedule())):n.complete()}))),r})}function z(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[_]}(t))return function(t,e){return new b(n=>{const r=new p;return r.add(e.schedule(()=>{const i=t[_]();r.add(i.subscribe({next(t){r.add(e.schedule(()=>n.next(t)))},error(t){r.add(e.schedule(()=>n.error(t)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r})}(t,e);if(F(t))return function(t,e){return new b(n=>{const r=new p;return r.add(e.schedule(()=>t.then(t=>{r.add(e.schedule(()=>{n.next(t),r.add(e.schedule(()=>n.complete()))}))},t=>{r.add(e.schedule(()=>n.error(t)))}))),r})}(t,e);if(P(t))return R(t,e);if(function(t){return t&&"function"==typeof t[j]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new b(n=>{const r=new p;let i;return r.add(()=>{i&&"function"==typeof i.return&&i.return()}),r.add(e.schedule(()=>{i=t[j](),r.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=i.next();t=n.value,e=n.done}catch(r){return void n.error(r)}e?n.complete():(n.next(t),this.schedule())})))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof b?t:new b(L(t))}class V extends y{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class B extends y{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function H(t,e){if(!e.closed)return t instanceof b?t.subscribe(e):L(t)(e)}class G{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new U(t,this.project,this.concurrent))}}class U extends B{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e)}_innerSub(t){const e=new V(this),n=this.destination;n.add(e);const r=H(t,e);r!==e&&n.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function q(t,e){return e?R(t,e):new b(D(t))}function Y(...t){let e=Number.POSITIVE_INFINITY,n=null,r=t[t.length-1];return A(r)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof r&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof b?t[0]:function(t=Number.POSITIVE_INFINITY){return function t(e,n,r=Number.POSITIVE_INFINITY){return"function"==typeof n?i=>i.pipe(t((t,r)=>z(e(t,r)).pipe(N((e,i)=>n(t,e,r,i))),r)):("number"==typeof n&&(r=n),t=>t.lift(new G(e,r)))}(w,t)}(e)(q(t,n))}function $(){return function(t){return t.lift(new W(t))}}class W{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const r=new Q(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i}}class Q extends y{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}class Z extends b{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new p,t.add(this.source.subscribe(new K(this.getSubject(),this))),t.closed&&(this._connection=null,t=p.EMPTY)),t}refCount(){return $()(this)}}const X=(()=>{const t=Z.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class K extends k{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function J(){return new C}function tt(t){return{toString:t}.toString()}const et="__parameters__";function nt(t,e,n){return tt(()=>{const r=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function i(...t){if(this instanceof i)return r.apply(this,t),this;const e=new i(...t);return n.annotation=e,n;function n(t,n,r){const i=t.hasOwnProperty(et)?t[et]:Object.defineProperty(t,et,{value:[]})[et];for(;i.length<=r;)i.push(null);return(i[r]=i[r]||[]).push(e),t}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}const rt=nt("Inject",t=>({token:t})),it=nt("Optional"),ot=nt("Self"),st=nt("SkipSelf");var at=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function ut(t){for(let e in t)if(t[e]===ut)return e;throw Error("Could not find renamed property on target object.")}function ct(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function lt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ht(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function ft(t){return dt(t,t[gt])||dt(t,t[vt])}function dt(t,e){return e&&e.token===t?e:null}function pt(t){return t&&(t.hasOwnProperty(mt)||t.hasOwnProperty(_t))?t[mt]:null}const gt=ut({"\u0275prov":ut}),mt=ut({"\u0275inj":ut}),yt=ut({"\u0275provFallback":ut}),vt=ut({ngInjectableDef:ut}),_t=ut({ngInjectorDef:ut});function wt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(wt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function bt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const xt=ut({__forward_ref__:ut});function Et(t){return t.__forward_ref__=Et,t.toString=function(){return wt(this())},t}function St(t){return"function"==typeof(e=t)&&e.hasOwnProperty(xt)&&e.__forward_ref__===Et?t():t;var e}const kt="undefined"!=typeof globalThis&&globalThis,Ct="undefined"!=typeof window&&window,Tt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,At="undefined"!=typeof global&&global,Nt=kt||At||Ct||Tt,Mt=ut({"\u0275cmp":ut}),Ot=ut({"\u0275dir":ut}),Dt=ut({"\u0275pipe":ut}),It=ut({"\u0275mod":ut}),jt=ut({"\u0275loc":ut}),Pt=ut({"\u0275fac":ut}),Ft=ut({__NG_ELEMENT_ID__:ut});class Lt{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=lt({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const Rt=new Lt("INJECTOR",-1),zt={},Vt=/\n/gm,Bt="__source",Ht=ut({provide:String,useValue:ut});let Gt,Ut=void 0;function qt(t){const e=Ut;return Ut=t,e}function Yt(t){const e=Gt;return Gt=t,e}function $t(t,e=at.Default){if(void 0===Ut)throw new Error("inject() must be called from an injection context");return null===Ut?Qt(t,void 0,e):Ut.get(t,e&at.Optional?null:void 0,e)}function Wt(t,e=at.Default){return(Gt||$t)(St(t),e)}function Qt(t,e,n){const r=ft(t);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&at.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${wt(t)}]`)}function Zt(t){const e=[];for(let n=0;n<t.length;n++){const r=St(t[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let t=void 0,n=at.Default;for(let e=0;e<r.length;e++){const i=r[e];i instanceof it||"Optional"===i.ngMetadataName||i===it?n|=at.Optional:i instanceof st||"SkipSelf"===i.ngMetadataName||i===st?n|=at.SkipSelf:i instanceof ot||"Self"===i.ngMetadataName||i===ot?n|=at.Self:t=i instanceof rt||i===rt?i.token:i}e.push(Wt(t,n))}else e.push(Wt(r))}return e}class Xt{get(t,e=zt){if(e===zt){const e=new Error(`NullInjectorError: No provider for ${wt(t)}!`);throw e.name="NullInjectorError",e}return e}}class Kt{}function Jt(t,e){t.forEach(t=>Array.isArray(t)?Jt(t,e):e(t))}function te(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function ee(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function ne(t,e){const n=[];for(let r=0;r<t;r++)n.push(e);return n}function re(t,e,n){let r=oe(t,e);return r>=0?t[1|r]=n:(r=~r,function(t,e,n,r){let i=t.length;if(i==e)t.push(n,r);else if(1===i)t.push(r,t[0]),t[0]=n;else{for(i--,t.push(t[i-1],t[i]);i>e;)t[i]=t[i-2],i--;t[e]=n,t[e+1]=r}}(t,r,e,n)),r}function ie(t,e){const n=oe(t,e);if(n>=0)return t[1|n]}function oe(t,e){return function(t,e,n){let r=0,i=t.length>>1;for(;i!==r;){const n=r+(i-r>>1),o=t[n<<1];if(e===o)return n<<1;o>e?i=n:r=n+1}return~(i<<1)}(t,e)}var se=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),ae=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const ue={},ce=[];let le=0;function he(t){return tt(()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===se.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||ce,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||ae.Emulated,id:"c",styles:t.styles||ce,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.directives,i=t.features,o=t.pipes;return n.id+=le++,n.inputs=me(t.inputs,e),n.outputs=me(t.outputs),i&&i.forEach(t=>t(n)),n.directiveDefs=r?()=>("function"==typeof r?r():r).map(fe):null,n.pipeDefs=o?()=>("function"==typeof o?o():o).map(de):null,n})}function fe(t){return ve(t)||function(t){return t[Ot]||null}(t)}function de(t){return function(t){return t[Dt]||null}(t)}const pe={};function ge(t){const e={type:t.type,bootstrap:t.bootstrap||ce,declarations:t.declarations||ce,imports:t.imports||ce,exports:t.exports||ce,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&tt(()=>{pe[t.id]=t.type}),e}function me(t,e){if(null==t)return ue;const n={};for(const r in t)if(t.hasOwnProperty(r)){let i=t[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,e&&(e[i]=o)}return n}const ye=he;function ve(t){return t[Mt]||null}function _e(t,e){return t.hasOwnProperty(Pt)?t[Pt]:null}function we(t,e){const n=t[It]||null;if(!n&&!0===e)throw new Error(`Type ${wt(t)} does not have '\u0275mod' property.`);return n}const be=20,xe=10;function Ee(t){return Array.isArray(t)&&"object"==typeof t[1]}function Se(t){return Array.isArray(t)&&!0===t[1]}function ke(t){return 0!=(8&t.flags)}function Ce(t){return 2==(2&t.flags)}function Te(t){return 1==(1&t.flags)}function Ae(t){return null!==t.template}function Ne(t){return 0!=(512&t[2])}class Me{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Oe(){return De}function De(t){return t.type.prototype.ngOnChanges&&(t.setInput=je),Ie}function Ie(){const t=Pe(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===ue)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function je(t,e,n,r){const i=Pe(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:ue,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[n],u=s[a];o[a]=new Me(u&&u.currentValue,e,s===ue),t[r]=e}function Pe(t){return t.__ngSimpleChanges__||null}Oe.ngInherit=!0;const Fe="http://www.w3.org/2000/svg";let Le=void 0;function Re(){return void 0!==Le?Le:"undefined"!=typeof document?document:void 0}function ze(t){return!!t.listen}const Ve={createRenderer:(t,e)=>Re()};function Be(t){for(;Array.isArray(t);)t=t[0];return t}function He(t,e){return Be(e[t+be])}function Ge(t,e){return Be(e[t.index])}function Ue(t,e){return t.data[e+be]}function qe(t,e){const n=e[t];return Ee(n)?n:n[0]}function Ye(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function $e(t){return 4==(4&t[2])}function We(t){return 128==(128&t[2])}function Qe(t,e){return null===t||null==e?null:t[e]}function Ze(t){t[18]=0}function Xe(t,e){t[5]+=e;let n=t,r=t[3];for(;null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}const Ke={lFrame:wn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Je(){return Ke.bindingsEnabled}function tn(){return Ke.lFrame.lView}function en(){return Ke.lFrame.tView}function nn(t){Ke.lFrame.contextLView=t}function rn(){return Ke.lFrame.previousOrParentTNode}function on(t,e){Ke.lFrame.previousOrParentTNode=t,Ke.lFrame.isParent=e}function sn(){return Ke.lFrame.isParent}function an(){Ke.lFrame.isParent=!1}function un(){return Ke.checkNoChangesMode}function cn(t){Ke.checkNoChangesMode=t}function ln(){const t=Ke.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function hn(){return Ke.lFrame.bindingIndex++}function fn(t){const e=Ke.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function dn(t,e){const n=Ke.lFrame;n.bindingIndex=n.bindingRootIndex=t,pn(e)}function pn(t){Ke.lFrame.currentDirectiveIndex=t}function gn(){return Ke.lFrame.currentQueryIndex}function mn(t){Ke.lFrame.currentQueryIndex=t}function yn(t,e){const n=_n();Ke.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function vn(t,e){const n=_n(),r=t[1];Ke.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=r,n.contextLView=t,n.bindingIndex=r.bindingStartIndex}function _n(){const t=Ke.lFrame,e=null===t?null:t.child;return null===e?wn(t):e}function wn(t){const e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function bn(){const t=Ke.lFrame;return Ke.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}const xn=bn;function En(){const t=bn();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Sn(){return Ke.lFrame.selectedIndex}function kn(t){Ke.lFrame.selectedIndex=t}function Cn(){const t=Ke.lFrame;return Ue(t.tView,t.selectedIndex)}function Tn(){Ke.lFrame.currentNamespace=Fe}function An(){Ke.lFrame.currentNamespace=null}function Nn(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){const e=t.data[n].type.prototype,{ngAfterContentInit:r,ngAfterContentChecked:i,ngAfterViewInit:o,ngAfterViewChecked:s,ngOnDestroy:a}=e;r&&(t.contentHooks||(t.contentHooks=[])).push(-n,r),i&&((t.contentHooks||(t.contentHooks=[])).push(n,i),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,i)),o&&(t.viewHooks||(t.viewHooks=[])).push(-n,o),s&&((t.viewHooks||(t.viewHooks=[])).push(n,s),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,s)),null!=a&&(t.destroyHooks||(t.destroyHooks=[])).push(n,a)}}function Mn(t,e,n){In(t,e,3,n)}function On(t,e,n,r){(3&t[2])===n&&In(t,e,n,r)}function Dn(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function In(t,e,n,r){const i=null!=r?r:-1;let o=0;for(let s=void 0!==r?65535&t[18]:0;s<e.length;s++)if("number"==typeof e[s+1]){if(o=e[s],null!=r&&o>=r)break}else e[s]<0&&(t[18]+=65536),(o<i||-1==i)&&(jn(t,n,e,s),t[18]=(4294901760&t[18])+s+2),s++}function jn(t,e,n,r){const i=n[r]<0,o=n[r+1],s=t[i?-n[r]:n[r]];i?t[2]>>11<t[18]>>16&&(3&t[2])===e&&(t[2]+=2048,o.call(s)):o.call(s)}class Pn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Fn(t,e,n){const r=ze(t);let i=0;for(;i<n.length;){const o=n[i];if("number"==typeof o){if(0!==o)break;i++;const s=n[i++],a=n[i++],u=n[i++];r?t.setAttribute(e,a,u,s):e.setAttributeNS(s,a,u)}else{const s=o,a=n[++i];Ln(s)?r&&t.setProperty(e,s,a):r?t.setAttribute(e,s,a):e.setAttribute(s,a),i++}}return i}function Ln(t){return 64===t.charCodeAt(0)}function Rn(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){const i=e[r];"number"==typeof i?n=i:0===n||zn(t,n,i,null,-1===n||2===n?e[++r]:null)}}return t}function zn(t,e,n,r,i){let o=0,s=t.length;if(-1===e)s=-1;else for(;o<t.length;){const n=t[o++];if("number"==typeof n){if(n===e){s=-1;break}if(n>e){s=o-1;break}}}for(;o<t.length;){const e=t[o];if("number"==typeof e)break;if(e===n){if(null===r)return void(null!==i&&(t[o+1]=i));if(r===t[o+1])return void(t[o+2]=i)}o++,null!==r&&o++,null!==i&&o++}-1!==s&&(t.splice(s,0,e),o=s+1),t.splice(o++,0,n),null!==r&&t.splice(o++,0,r),null!==i&&t.splice(o++,0,i)}function Vn(t){return-1!==t}function Bn(t){return 32767&t}function Hn(t){return t>>16}function Gn(t,e){let n=Hn(t),r=e;for(;n>0;)r=r[15],n--;return r}function Un(t){return"string"==typeof t?t:null==t?"":""+t}function qn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Un(t)}const Yn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Nt))();function $n(t){return{name:"window",target:t.ownerDocument.defaultView}}function Wn(t){return{name:"document",target:t.ownerDocument}}function Qn(t){return t instanceof Function?t():t}let Zn=!0;function Xn(t){const e=Zn;return Zn=t,e}let Kn=0;function Jn(t,e){const n=er(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,tr(r.data,t),tr(e,null),tr(r.blueprint,null));const i=nr(t,e),o=t.injectorIndex;if(Vn(i)){const t=Bn(i),n=Gn(i,e),r=n[1].data;for(let i=0;i<8;i++)e[o+i]=n[t+i]|r[t+i]}return e[o+8]=i,o}function tr(t,e){t.push(0,0,0,0,0,0,0,0,e)}function er(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function nr(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=e[6],r=1;for(;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,r++;return n?n.injectorIndex|r<<16:-1}function rr(t,e,n){!function(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ft)&&(r=n[Ft]),null==r&&(r=n[Ft]=Kn++);const i=255&r,o=1<<i,s=64&i,a=32&i,u=e.data;128&i?s?a?u[t+7]|=o:u[t+6]|=o:a?u[t+5]|=o:u[t+4]|=o:s?a?u[t+3]|=o:u[t+2]|=o:a?u[t+1]|=o:u[t]|=o}(t,e,n)}function ir(t,e,n,r=at.Default,i){if(null!==t){const i=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(Ft)?t[Ft]:void 0;return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof i){yn(e,t);try{const t=i();if(null!=t||r&at.Optional)return t;throw new Error(`No provider for ${qn(n)}!`)}finally{xn()}}else if("number"==typeof i){if(-1===i)return new hr(t,e);let o=null,s=er(t,e),a=-1,u=r&at.Host?e[16][6]:null;for((-1===s||r&at.SkipSelf)&&(a=-1===s?nr(t,e):e[s+8],lr(r,!1)?(o=e[1],s=Bn(a),e=Gn(a,e)):s=-1);-1!==s;){a=e[s+8];const t=e[1];if(cr(i,s,t.data)){const t=sr(s,e,n,o,r,u);if(t!==or)return t}lr(r,e[1].data[s+8]===u)&&cr(i,s,e)?(o=t,s=Bn(a),e=Gn(a,e)):s=-1}}}if(r&at.Optional&&void 0===i&&(i=null),0==(r&(at.Self|at.Host))){const t=e[9],o=Yt(void 0);try{return t?t.get(n,i,r&at.Optional):Qt(n,i,r&at.Optional)}finally{Yt(o)}}if(r&at.Optional)return i;throw new Error(`NodeInjector: NOT_FOUND [${qn(n)}]`)}const or={};function sr(t,e,n,r,i,o){const s=e[1],a=s.data[t+8],u=ar(a,s,n,null==r?Ce(a)&&Zn:r!=s&&3===a.type,i&at.Host&&o===a);return null!==u?ur(e,s,u,a):or}function ar(t,e,n,r,i){const o=t.providerIndexes,s=e.data,a=1048575&o,u=t.directiveStart,c=o>>20,l=i?a+c:t.directiveEnd;for(let h=r?a:a+c;h<l;h++){const t=s[h];if(h<u&&n===t||h>=u&&t.type===n)return h}if(i){const t=s[u];if(t&&Ae(t)&&t.type===n)return u}return null}function ur(t,e,n,r){let i=t[n];const o=e.data;if(i instanceof Pn){const s=i;if(s.resolving)throw new Error("Circular dep for "+qn(o[n]));const a=Xn(s.canSeeViewProviders);let u;s.resolving=!0,s.injectImpl&&(u=Yt(s.injectImpl)),yn(t,r);try{i=t[n]=s.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(r){const r=De(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o))}(n,o[n],e)}finally{s.injectImpl&&Yt(u),Xn(a),s.resolving=!1,xn()}}return i}function cr(t,e,n){const r=64&t,i=32&t;let o;return o=128&t?r?i?n[e+7]:n[e+6]:i?n[e+5]:n[e+4]:r?i?n[e+3]:n[e+2]:i?n[e+1]:n[e],!!(o&1<<t)}function lr(t,e){return!(t&at.Self||t&at.Host&&e)}class hr{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return ir(this._tNode,this._lView,t,void 0,e)}}function fr(t){return t.ngDebugContext}function dr(t){return t.ngOriginalError}function pr(t,...e){t.error(...e)}class gr{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t.ngErrorLogger||pr}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?fr(t)?fr(t):this._findContext(dr(t)):null}_findOriginalError(t){let e=dr(t);for(;e&&dr(e);)e=dr(e);return e}}class mr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class yr extends mr{getTypeName(){return"HTML"}}class vr extends mr{getTypeName(){return"Style"}}class _r extends mr{getTypeName(){return"Script"}}class wr extends mr{getTypeName(){return"URL"}}class br extends mr{getTypeName(){return"ResourceURL"}}function xr(t){return t instanceof mr?t.changingThisBreaksApplicationSecurity:t}function Er(t,e){const n=Sr(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}function Sr(t){return t instanceof mr&&t.getTypeName()||null}let kr=!0,Cr=!1;function Tr(){return Cr=!0,kr}class Ar{getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}}class Nr{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;const n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0<r;r--){const n=e.item(r).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||t.removeAttribute(n)}let n=t.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const Mr=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Or=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Dr(t){return(t=String(t)).match(Mr)||t.match(Or)?t:(Tr()&&console.warn(`WARNING: sanitizing unsafe URL value ${t} (see http://g.co/ng/security#xss)`),"unsafe:"+t)}function Ir(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function jr(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const Pr=Ir("area,br,col,hr,img,wbr"),Fr=Ir("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Lr=Ir("rp,rt"),Rr=jr(Lr,Fr),zr=jr(Pr,jr(Fr,Ir("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),jr(Lr,Ir("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Rr),Vr=Ir("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Br=Ir("srcset"),Hr=jr(Vr,Br,Ir("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Ir("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Gr=Ir("script,style,template");class Ur{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!zr.hasOwnProperty(e))return this.sanitizedSomething=!0,!Gr.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let i=0;i<n.length;i++){const t=n.item(i),e=t.name,o=e.toLowerCase();if(!Hr.hasOwnProperty(o)){this.sanitizedSomething=!0;continue}let s=t.value;Vr[o]&&(s=Dr(s)),Br[o]&&(r=s,s=(r=String(r)).split(",").map(t=>Dr(t.trim())).join(", ")),this.buf.push(" ",e,'="',$r(s),'"')}var r;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();zr.hasOwnProperty(e)&&!Pr.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push($r(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e}}const qr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Yr=/([^\#-~ |!])/g;function $r(t){return t.replace(/&/g,"&amp;").replace(qr,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Yr,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Wr;function Qr(t,e){let n=null;try{Wr=Wr||function(t){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(t){return!1}}()?new Ar:new Nr(t)}(t);let r=e?String(e):"";n=Wr.getInertBodyElement(r);let i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=Wr.getInertBodyElement(r)}while(r!==o);const s=new Ur,a=s.sanitizeChildren(Zr(n)||n);return Tr()&&s.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=Zr(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function Zr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Xr=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function Kr(t){const e=function(){const t=tn();return t&&t[12]}();return e?e.sanitize(Xr.HTML,t)||"":Er(t,"HTML")?xr(t):Qr(Re(),Un(t))}function Jr(t,e){t.__ngContext__=e}function ti(t){throw new Error("Multiple components match node with tagname "+t.tagName)}function ei(){throw new Error("Cannot mix multi providers and regular providers")}function ni(t,e,n){let r=t.length;for(;;){const i=t.indexOf(e,n);if(-1===i)return i;if(0===i||t.charCodeAt(i-1)<=32){const n=e.length;if(i+n===r||t.charCodeAt(i+n)<=32)return i}n=i+1}}const ri="ng-template";function ii(t,e,n){let r=0;for(;r<t.length;){let i=t[r++];if(n&&"class"===i){if(i=t[r],-1!==ni(i.toLowerCase(),e,0))return!0}else if(1===i){for(;r<t.length&&"string"==typeof(i=t[r++]);)if(i.toLowerCase()===e)return!0;return!1}}return!1}function oi(t){return 0===t.type&&t.tagName!==ri}function si(t,e,n){return e===(0!==t.type||n?t.tagName:ri)}function ai(t,e,n){let r=4;const i=t.attrs||[],o=function(t){for(let n=0;n<t.length;n++)if(3===(e=t[n])||4===e||6===e)return n;var e;return t.length}(i);let s=!1;for(let a=0;a<e.length;a++){const u=e[a];if("number"!=typeof u){if(!s)if(4&r){if(r=2|1&r,""!==u&&!si(t,u,n)||""===u&&1===e.length){if(ui(r))return!1;s=!0}}else{const c=8&r?u:e[++a];if(8&r&&null!==t.attrs){if(!ii(t.attrs,c,n)){if(ui(r))return!1;s=!0}continue}const l=ci(8&r?"class":u,i,oi(t),n);if(-1===l){if(ui(r))return!1;s=!0;continue}if(""!==c){let t;t=l>o?"":i[l+1].toLowerCase();const e=8&r?t:null;if(e&&-1!==ni(e,c,0)||2&r&&c!==t){if(ui(r))return!1;s=!0}}}}else{if(!s&&!ui(r)&&!ui(u))return!1;if(s&&ui(u))continue;s=!1,r=u|1&r}}return ui(r)||s}function ui(t){return 0==(1&t)}function ci(t,e,n,r){if(null===e)return-1;let i=0;if(r||!n){let n=!1;for(;i<e.length;){const r=e[i];if(r===t)return i;if(3===r||6===r)n=!0;else{if(1===r||2===r){let t=e[++i];for(;"string"==typeof t;)t=e[++i];continue}if(4===r)break;if(0===r){i+=4;continue}}i+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const r=t[n];if("number"==typeof r)return-1;if(r===e)return n;n++}return-1}(e,t)}function li(t,e,n=!1){for(let r=0;r<e.length;r++)if(ai(t,e[r],n))return!0;return!1}function hi(t,e){t:for(let n=0;n<e.length;n++){const r=e[n];if(t.length===r.length){for(let e=0;e<t.length;e++)if(t[e]!==r[e])continue t;return!0}}return!1}function fi(t,e){return t?":not("+e.trim()+")":e}function di(t){let e=t[0],n=1,r=2,i="",o=!1;for(;n<t.length;){let s=t[n];if("string"==typeof s)if(2&r){const e=t[++n];i+="["+s+(e.length>0?'="'+e+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""===i||ui(s)||(e+=fi(o,i),i=""),r=s,o=o||!ui(r);n++}return""!==i&&(e+=fi(o,i)),e}const pi={};function gi(t){const e=t[3];return Se(e)?e[3]:e}function mi(t){return vi(t[13])}function yi(t){return vi(t[4])}function vi(t){for(;null!==t&&!Se(t);)t=t[4];return t}function _i(t){wi(en(),tn(),Sn()+t,un())}function wi(t,e,n,r){if(!r)if(3==(3&e[2])){const r=t.preOrderCheckHooks;null!==r&&Mn(e,r,n)}else{const r=t.preOrderHooks;null!==r&&On(e,r,0,n)}kn(n)}function bi(t,e){return t<<17|e<<2}function xi(t){return t>>17&32767}function Ei(t){return 2|t}function Si(t){return(131068&t)>>2}function ki(t,e){return-131069&t|e<<2}function Ci(t){return 1|t}function Ti(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const i=n[r],o=n[r+1];if(-1!==o){const n=t.data[o];mn(i),n.contentQueries(2,e[o],o)}}}function Ai(t,e,n){return ze(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Ni(t,e,n,r,i,o,s,a,u,c){const l=e.blueprint.slice();return l[0]=i,l[2]=140|r,Ze(l),l[3]=l[15]=t,l[8]=n,l[10]=s||t&&t[10],l[11]=a||t&&t[11],l[12]=u||t&&t[12]||null,l[9]=c||t&&t[9]||null,l[6]=o,l[16]=2==e.type?t[16]:l,l}function Mi(t,e,n,r,i,o){const s=n+be,a=t.data[s]||function(t,e,n,r,i,o){const s=rn(),a=sn(),u=a?s:s&&s.parent,c=t.data[n]=Bi(0,u&&u!==e?u:null,r,n,i,o);return null===t.firstChild&&(t.firstChild=c),s&&(!a||null!=s.child||null===c.parent&&2!==s.type?a||(s.next=c):s.child=c),c}(t,e,s,r,i,o);return on(a,!0),a}function Oi(t,e,n){vn(e,e[6]);try{const r=t.viewQuery;null!==r&&uo(1,r,n);const i=t.template;null!==i&&ji(t,e,i,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Ti(t,e),t.staticViewQueries&&uo(2,t.viewQuery,n);const o=t.components;null!==o&&function(t,e){for(let n=0;n<e.length;n++)ro(t,e[n])}(e,o)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),r}finally{e[2]&=-5,En()}}function Di(t,e,n,r){const i=e[2];if(256==(256&i))return;vn(e,e[6]);const o=un();try{Ze(e),Ke.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&ji(t,e,n,2,r);const s=3==(3&i);if(!o)if(s){const n=t.preOrderCheckHooks;null!==n&&Mn(e,n,null)}else{const n=t.preOrderHooks;null!==n&&On(e,n,0,null),Dn(e,0)}if(function(t){for(let e=mi(t);null!==e;e=yi(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const n=t[e],r=n[3];0==(1024&n[2])&&Xe(r,1),n[2]|=1024}}}(e),function(t){for(let e=mi(t);null!==e;e=yi(e))for(let t=xe;t<e.length;t++){const n=e[t],r=n[1];We(n)&&Di(r,n,r.template,n[8])}}(e),null!==t.contentQueries&&Ti(t,e),!o)if(s){const n=t.contentCheckHooks;null!==n&&Mn(e,n)}else{const n=t.contentHooks;null!==n&&On(e,n,1),Dn(e,1)}!function(t,e){try{const n=t.expandoInstructions;if(null!==n){let r=t.expandoStartIndex,i=-1,o=-1;for(let t=0;t<n.length;t++){const s=n[t];"number"==typeof s?s<=0?(o=0-s,kn(o),r+=9+n[++t],i=r):r+=s:(null!==s&&(dn(r,i),s(2,e[i])),i++)}}}finally{kn(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)no(t,e[n])}(e,a);const u=t.viewQuery;if(null!==u&&uo(2,u,r),!o)if(s){const n=t.viewCheckHooks;null!==n&&Mn(e,n)}else{const n=t.viewHooks;null!==n&&On(e,n,2),Dn(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),o||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,Xe(e[3],-1))}finally{En()}}function Ii(t,e,n,r){const i=e[10],o=!un(),s=$e(e);try{o&&!s&&i.begin&&i.begin(),s&&Oi(t,e,r),Di(t,e,n,r)}finally{o&&!s&&i.end&&i.end()}}function ji(t,e,n,r,i){const o=Sn();try{kn(-1),2&r&&e.length>be&&wi(t,e,0,un()),n(r,i)}finally{kn(o)}}function Pi(t,e,n){if(ke(e)){const r=e.directiveEnd;for(let i=e.directiveStart;i<r;i++){const e=t.data[i];e.contentQueries&&e.contentQueries(1,n[i],i)}}}function Fi(t,e,n){Je()&&(function(t,e,n,r){const i=n.directiveStart,o=n.directiveEnd;t.firstCreatePass||Jn(n,e),Jr(r,e);const s=n.initialInputs;for(let a=i;a<o;a++){const r=t.data[a],o=Ae(r);o&&Ki(e,n,r);const u=ur(e,t,a,n);Jr(u,e),null!==s&&Ji(0,a-i,u,r,0,s),o&&(qe(n.index,e)[8]=u)}}(t,e,n,Ge(n,e)),128==(128&n.flags)&&function(t,e,n){const r=n.directiveStart,i=n.directiveEnd,o=t.expandoInstructions,s=t.firstCreatePass,a=n.index-be,u=Ke.lFrame.currentDirectiveIndex;try{kn(a);for(let n=r;n<i;n++){const r=t.data[n],i=e[n];pn(n),null!==r.hostBindings||0!==r.hostVars||null!==r.hostAttrs?Yi(r,i):s&&o.push(null)}}finally{kn(-1),pn(u)}}(t,e,n))}function Li(t,e,n=Ge){const r=e.localNames;if(null!==r){let i=e.index+1;for(let o=0;o<r.length;o+=2){const s=r[o+1],a=-1===s?n(e,t):t[s];t[i++]=a}}}function Ri(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=zi(1,-1,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function zi(t,e,n,r,i,o,s,a,u,c){const l=be+r,h=l+i,f=function(t,e){const n=[];for(let r=0;r<e;r++)n.push(r<t?null:pi);return n}(l,h),d="function"==typeof c?c():c;return f[1]={type:t,id:e,blueprint:f,template:n,queries:null,viewQuery:a,node:null,data:f.slice().fill(null,l),bindingStartIndex:l,expandoStartIndex:h,expandoInstructions:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:u,consts:d,incompleteFirstPass:!1}}function Vi(t,e,n,r){const i=lo(e);i.push(n),t.firstCreatePass&&function(t){return t.cleanup||(t.cleanup=[])}(t).push(r,i.length-1)}function Bi(t,e,n,r,i,o){return{type:n,index:r,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Hi(t,e,n){for(let r in t)if(t.hasOwnProperty(r)){const i=t[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(e,i):n[r]=[e,i]}return n}function Gi(t,e,n,r){let i=!1;if(Je()){const o=function(t,e,n){const r=t.directiveRegistry;let i=null;if(r)for(let o=0;o<r.length;o++){const s=r[o];li(n,s.selectors,!1)&&(i||(i=[]),rr(Jn(n,e),t,s.type),Ae(s)?(2&n.flags&&ti(n),Wi(t,n),i.unshift(s)):i.push(s))}return i}(t,e,n),s=null===r?null:{"":-1};if(null!==o){let r=0;i=!0,Zi(n,t.data.length,o.length);for(let t=0;t<o.length;t++){const e=o[t];e.providersResolver&&e.providersResolver(e)}$i(t,n,o.length);let a=!1,u=!1;for(let i=0;i<o.length;i++){const c=o[i];n.mergedAttrs=Rn(n.mergedAttrs,c.hostAttrs),Xi(t,e,c),Qi(t.data.length-1,c,s),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128);const l=c.type.prototype;!a&&(l.ngOnChanges||l.ngOnInit||l.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index-be),a=!0),u||!l.ngOnChanges&&!l.ngDoCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index-be),u=!0),Ui(t,c),r+=c.hostVars}!function(t,e){const n=e.directiveEnd,r=t.data,i=e.attrs,o=[];let s=null,a=null;for(let u=e.directiveStart;u<n;u++){const t=r[u],n=t.inputs,c=null===i||oi(e)?null:to(n,i);o.push(c),s=Hi(n,u,s),a=Hi(t.outputs,u,a)}null!==s&&(s.hasOwnProperty("class")&&(e.flags|=16),s.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=s,e.outputs=a}(t,n),qi(t,e,r)}s&&function(t,e,n){if(e){const r=t.localNames=[];for(let t=0;t<e.length;t+=2){const i=n[e[t+1]];if(null==i)throw new Error(`Export of name '${e[t+1]}' not found!`);r.push(e[t],i)}}}(n,r,s)}return n.mergedAttrs=Rn(n.mergedAttrs,n.attrs),i}function Ui(t,e){const n=t.expandoInstructions;n.push(e.hostBindings),0!==e.hostVars&&n.push(e.hostVars)}function qi(t,e,n){for(let r=0;r<n;r++)e.push(pi),t.blueprint.push(pi),t.data.push(null)}function Yi(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function $i(t,e,n){const r=be-e.index,i=t.data.length-(1048575&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(r,i,n)}function Wi(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Qi(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;Ae(e)&&(n[""]=t)}}function Zi(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Xi(t,e,n){t.data.push(n);const r=n.factory||(n.factory=_e(n.type)),i=new Pn(r,Ae(n),null);t.blueprint.push(i),e.push(i)}function Ki(t,e,n){const r=Ge(e,t),i=Ri(n),o=t[10],s=io(t,Ni(t,i,null,n.onPush?64:16,r,e,o,o.createRenderer(r,n)));t[e.index]=s}function Ji(t,e,n,r,i,o){const s=o[e];if(null!==s){const t=r.setInput;for(let e=0;e<s.length;){const i=s[e++],o=s[e++],a=s[e++];null!==t?r.setInput(n,a,i,o):n[o]=a}}}function to(t,e){let n=null,r=0;for(;r<e.length;){const i=e[r];if(0!==i)if(5!==i){if("number"==typeof i)break;t.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,t[i],e[r+1])),r+=2}else r+=2;else r+=4}return n}function eo(t,e,n,r){return new Array(t,!0,!1,e,null,0,r,n,null,null)}function no(t,e){const n=qe(e,t);if(We(n)){const t=n[1];80&n[2]?Di(t,n,t.template,n[8]):n[5]>0&&function t(e){for(let r=mi(e);null!==r;r=yi(r))for(let e=xe;e<r.length;e++){const n=r[e];if(1024&n[2]){const t=n[1];Di(t,n,t.template,n[8])}else n[5]>0&&t(n)}const n=e[1].components;if(null!==n)for(let r=0;r<n.length;r++){const i=qe(n[r],e);We(i)&&i[5]>0&&t(i)}}(n)}}function ro(t,e){const n=qe(e,t),r=n[1];!function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(r,n),Oi(r,n,n[8])}function io(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function oo(t){for(;t;){t[2]|=64;const e=gi(t);if(Ne(t)&&!e)return t;t=e}return null}function so(t,e,n){const r=e[10];r.begin&&r.begin();try{Di(t,e,t.template,n)}catch(i){throw ho(e,i),i}finally{r.end&&r.end()}}function ao(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],r=Ye(n),i=r[1];Ii(i,r,i.template,n)}}(t[8])}function uo(t,e,n){mn(0),e(t,n)}const co=(()=>Promise.resolve(null))();function lo(t){return t[7]||(t[7]=[])}function ho(t,e){const n=t[9],r=n?n.get(gr,null):null;r&&r.handleError(e)}function fo(t,e,n,r,i){for(let o=0;o<n.length;){const s=n[o++],a=n[o++],u=e[s],c=t.data[s];null!==c.setInput?c.setInput(u,i,r,a):u[a]=i}}function po(t,e){const n=e[3];return-1===t.index?Se(n)?n:null:n}function go(t,e){const n=po(t,e);return n?To(e[11],n[7]):null}function mo(t,e,n,r,i){if(null!=r){let o,s=!1;Se(r)?o=r:Ee(r)&&(s=!0,r=r[0]);const a=Be(r);0===t&&null!==n?null==i?ko(e,n,a):So(e,n,a,i||null):1===t&&null!==n?So(e,n,a,i||null):2===t?function(t,e,n){const r=To(t,e);r&&function(t,e,n,r){ze(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}(e,a,s):3===t&&e.destroyNode(a),null!=o&&function(t,e,n,r,i){const o=n[7];o!==Be(n)&&mo(e,t,r,o,i);for(let s=xe;s<n.length;s++){const i=n[s];Do(i[1],i,t,e,r,o)}}(e,t,o,n,i)}}function yo(t,e,n,r){const i=go(t.node,e);i&&Do(t,e,e[11],n?1:2,i,r)}function vo(t,e){const n=t[9],r=n.indexOf(e);1024&e[2]&&Xe(e[3],-1),n.splice(r,1)}function _o(t,e){if(t.length<=xe)return;const n=xe+e,r=t[n];if(r){const i=r[17];null!==i&&i!==t&&vo(i,r),e>0&&(t[n-1][4]=r[4]);const o=ee(t,xe+e);yo(r[1],r,!1,null);const s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function wo(t,e){if(!(256&e[2])){const n=e[11];ze(n)&&n.destroyNode&&Do(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return xo(t[1],t);for(;e;){let n=null;if(Ee(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Ee(e)&&xo(e[1],e),e=bo(e,t);null===e&&(e=t),Ee(e)&&xo(e[1],e),n=e&&e[4]}e=n}}(e)}}function bo(t,e){let n;return Ee(t)&&(n=t[6])&&2===n.type?po(n,t):t[3]===e?null:t[3]}function xo(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let r=0;r<n.length;r+=2){const t=e[n[r]];if(!(t instanceof Pn)){const e=n[r+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2)e[n+1].call(t[e[n]]);else e.call(t)}}}(t,e),function(t,e){const n=t.cleanup;if(null!==n){const t=e[7];for(let r=0;r<n.length-1;r+=2)if("string"==typeof n[r]){const i=n[r+1],o="function"==typeof i?i(e):Be(e[i]),s=t[n[r+2]],a=n[r+3];"boolean"==typeof a?o.removeEventListener(n[r],s,a):a>=0?t[a]():t[-a].unsubscribe(),r+=2}else n[r].call(t[n[r+1]]);e[7]=null}}(t,e);const n=e[6];n&&3===n.type&&ze(e[11])&&e[11].destroy();const r=e[17];if(null!==r&&Se(e[3])){r!==e[3]&&vo(r,e);const n=e[19];null!==n&&n.detachView(t)}}}function Eo(t,e,n){let r=e.parent;for(;null!=r&&(4===r.type||5===r.type);)r=(e=r).parent;if(null==r){const t=n[6];return 2===t.type?go(t,n):n[0]}if(e&&5===e.type&&4&e.flags)return Ge(e,n).parentNode;if(2&r.flags){const e=t.data,n=e[e[r.index].directiveStart].encapsulation;if(n!==ae.ShadowDom&&n!==ae.Native)return null}return Ge(r,n)}function So(t,e,n,r){ze(t)?t.insertBefore(e,n,r):e.insertBefore(n,r,!0)}function ko(t,e,n){ze(t)?t.appendChild(e,n):e.appendChild(n)}function Co(t,e,n,r){null!==r?So(t,e,n,r):ko(t,e,n)}function To(t,e){return ze(t)?t.parentNode(e):e.parentNode}function Ao(t,e){if(2===t.type){const n=po(t,e);return null===n?null:Mo(n.indexOf(e,xe)-xe,n)}return 4===t.type||5===t.type?Ge(t,e):null}function No(t,e,n,r){const i=Eo(t,r,e);if(null!=i){const t=e[11],o=Ao(r.parent||e[6],e);if(Array.isArray(n))for(let e=0;e<n.length;e++)Co(t,i,n[e],o);else Co(t,i,n,o)}}function Mo(t,e){const n=xe+t+1;if(n<e.length){const t=e[n],r=t[1].firstChild;if(null!==r)return function t(e,n){if(null!==n){const r=n.type;if(3===r)return Ge(n,e);if(0===r)return Mo(-1,e[n.index]);if(4===r||5===r){const r=n.child;if(null!==r)return t(e,r);{const t=e[n.index];return Se(t)?Mo(-1,t):Be(t)}}{const r=e[16],i=r[6],o=gi(r),s=i.projection[n.projection];return null!=s?t(o,s):t(e,n.next)}}return null}(t,r)}return e[7]}function Oo(t,e,n,r,i,o,s){for(;null!=n;){const a=r[n.index],u=n.type;s&&0===e&&(a&&Jr(Be(a),r),n.flags|=4),64!=(64&n.flags)&&(4===u||5===u?(Oo(t,e,n.child,r,i,o,!1),mo(e,t,i,a,o)):1===u?Io(t,e,r,n,i,o):mo(e,t,i,a,o)),n=s?n.projectionNext:n.next}}function Do(t,e,n,r,i,o){Oo(n,r,t.node.child,e,i,o,!1)}function Io(t,e,n,r,i,o){const s=n[16],a=s[6].projection[r.projection];if(Array.isArray(a))for(let u=0;u<a.length;u++)mo(e,t,i,a[u],o);else Oo(t,e,a,s[3],i,o,!0)}function jo(t,e,n){ze(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function Po(t,e,n){ze(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}class Fo{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._viewContainerRef=null}get rootNodes(){const t=this._lView;return null==t[0]?function t(e,n,r,i,o=!1){for(;null!==r;){const s=n[r.index];if(null!==s&&i.push(Be(s)),Se(s))for(let e=xe;e<s.length;e++){const n=s[e],r=n[1].firstChild;null!==r&&t(n[1],n,r,i)}const a=r.type;if(4===a||5===a)t(e,n,r.child,i);else if(1===a){const e=n[16],o=e[6].projection[r.projection];if(Array.isArray(o))i.push(...o);else{const n=gi(e);t(n[1],n,o,i,!0)}}r=o?r.projectionNext:r.next}return i}(t[1],t,t[6].child,[]):[]}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){const t=this._viewContainerRef.indexOf(this);t>-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}wo(this._lView[1],this._lView)}onDestroy(t){Vi(this._lView[1],this._lView,null,t)}markForCheck(){oo(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){so(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){cn(!0);try{so(t,e,n)}finally{cn(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,Do(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Lo extends Fo{constructor(t){super(t),this._view=t}detectChanges(){ao(this._view)}checkNoChanges(){!function(t){cn(!0);try{ao(t)}finally{cn(!1)}}(this._view)}get context(){return null}}let Ro,zo,Vo;function Bo(t,e,n){return Ro||(Ro=class extends t{}),new Ro(Ge(e,n))}function Ho(t,e,n,r){return zo||(zo=class extends t{constructor(t,e,n){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Ni(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];const r=this._declarationView[19];return null!==r&&(n[19]=r.createEmbeddedView(e)),Oi(e,n,t),new Fo(n)}}),0===n.type?new zo(r,n,Bo(e,n,r)):null}function Go(t,e,n,r){let i;Vo||(Vo=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return Bo(e,this._hostTNode,this._hostView)}get injector(){return new hr(this._hostTNode,this._hostView)}get parentInjector(){const t=nr(this._hostTNode,this._hostView),e=Gn(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){const t=n.parent.injectorIndex;let e=n.parent;for(;null!=e.parent&&t==e.parent.injectorIndex;)e=e.parent;return e}let r=Hn(t),i=e,o=e[6];for(;r>1;)i=i[15],o=i[6],r--;return o}(t,this._hostView,this._hostTNode);return Vn(t)&&null!=n?new hr(n,e):new hr(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-xe}createEmbeddedView(t,e,n){const r=t.createEmbeddedView(e||{});return this.insert(r,n),r}createComponent(t,e,n,r,i){const o=n||this.parentInjector;if(!i&&null==t.ngModule&&o){const t=o.get(Kt,null);t&&(i=t)}const s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s}insert(t,e){const n=t._lView,r=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Se(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],r=new Vo(e,e[6],e[3]);r.detach(r.indexOf(t))}}const i=this._adjustIndex(e);return function(t,e,n,r){const i=xe+r,o=n.length;r>0&&(n[i-1][4]=e),r<o-xe?(e[4]=n[i],te(n,xe+r,e)):(n.push(e),e[4]=null),e[3]=n;const s=e[17];null!==s&&n!==s&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(s,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(r,n,this._lContainer,i),yo(r,n,!0,Mo(i,this._lContainer)),t.attachToViewContainerRef(this),te(this._lContainer[8],i,t),t}move(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(t,e)}indexOf(t){const e=this._lContainer[8];return null!==e?e.indexOf(t):-1}remove(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=_o(this._lContainer,e);n&&(ee(this._lContainer[8],e),wo(n[1],n))}detach(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=_o(this._lContainer,e);return n&&null!=ee(this._lContainer[8],e)?new Fo(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const o=r[n.index];if(Se(o))i=o;else{let t;if(4===n.type)t=Be(o);else if(t=r[11].createComment(""),Ne(r)){const e=r[11],i=Ge(n,r);So(e,To(e,i),t,function(t,e){return ze(t)?t.nextSibling(e):e.nextSibling}(e,i))}else No(r[1],r,t,n);r[n.index]=i=eo(o,r,t,n),io(r,i)}return new Vo(i,n,r)}let Uo=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>qo(),t})();const qo=function(t=!1){return function(t,e,n){if(!n&&Ce(t)){const n=qe(t.index,e);return new Fo(n,n)}return 3===t.type||0===t.type||4===t.type||5===t.type?new Fo(e[16],e):null}(rn(),tn(),t)},Yo=new Lt("Set Injector scope."),$o={},Wo={},Qo=[];let Zo=void 0;function Xo(){return void 0===Zo&&(Zo=new Xt),Zo}function Ko(t,e=null,n=null,r){return new Jo(t,n,e||Xo(),r)}class Jo{constructor(t,e,n,r=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const i=[];e&&Jt(e,n=>this.processProvider(n,t,e)),Jt([t],t=>this.processInjectorType(t,[],i)),this.records.set(Rt,ns(void 0,this));const o=this.records.get(Yo);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof t?null:wt(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=zt,n=at.Default){this.assertNotDestroyed();const r=qt(this);try{if(!(n&at.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(i=t)||"object"==typeof i&&i instanceof Lt)&&ft(t);e=n&&this.injectableDefInScope(n)?ns(ts(t),$o):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&at.Self?Xo():this.parent).get(t,e=n&at.Optional&&e===zt?null:e)}catch(o){if("NullInjectorError"===o.name){if((o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(wt(t)),r)throw o;return function(t,e,n,r){const i=t.ngTempTokenPath;throw e[Bt]&&i.unshift(e[Bt]),t.message=function(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let i=wt(e);if(Array.isArray(e))i=e.map(wt).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];t.push(n+":"+("string"==typeof r?JSON.stringify(r):wt(r)))}i=`{${t.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${t.replace(Vt,"\n ")}`}("\n"+t.message,i,n,r),t.ngTokenPath=i,t.ngTempTokenPath=null,t}(o,t,"R3InjectorError",this.source)}throw o}finally{qt(r)}var i}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(wt(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=St(t)))return!1;let r=pt(t);const i=null==r&&t.ngModule||void 0,o=void 0===i?t:i,s=-1!==n.indexOf(o);if(void 0!==i&&(r=pt(i)),null==r)return!1;if(null!=r.imports&&!s){let t;n.push(o);try{Jt(r.imports,r=>{this.processInjectorType(r,e,n)&&(void 0===t&&(t=[]),t.push(r))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:r}=t[e];Jt(r,t=>this.processProvider(t,n,r||Qo))}}this.injectorDefTypes.add(o),this.records.set(o,ns(r.factory,$o));const a=r.providers;if(null!=a&&!s){const e=t;Jt(a,t=>this.processProvider(t,e,a))}return void 0!==i&&void 0!==t.providers}processProvider(t,e,n){let r=is(t=St(t))?t:St(t&&t.provide);const i=function(t,e,n){return rs(t)?ns(void 0,t.useValue):ns(es(t,e,n),$o)}(t,e,n);if(is(t)||!0!==t.multi){const t=this.records.get(r);t&&void 0!==t.multi&&ei()}else{let e=this.records.get(r);e?void 0===e.multi&&ei():(e=ns(void 0,$o,!0),e.factory=()=>Zt(e.multi),this.records.set(r,e)),r=t,e.multi.push(t)}this.records.set(r,i)}hydrate(t,e){var n;return e.value===Wo?function(t){throw new Error("Cannot instantiate cyclic dependency! "+t)}(wt(t)):e.value===$o&&(e.value=Wo,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function ts(t){const e=ft(t),n=null!==e?e.factory:_e(t);if(null!==n)return n;const r=pt(t);if(null!==r)return r.factory;if(t instanceof Lt)throw new Error(`Token ${wt(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=ne(e,"?");throw new Error(`Can't resolve all parameters for ${wt(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[gt]||t[vt]||t[yt]&&t[yt]());if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function es(t,e,n){let r=void 0;if(is(t)){const e=St(t);return _e(e)||ts(e)}if(rs(t))r=()=>St(t.useValue);else if((i=t)&&i.useFactory)r=()=>t.useFactory(...Zt(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>Wt(St(t.useExisting));else{const i=St(t&&(t.useClass||t.provide));if(i||function(t,e,n){let r="";throw t&&e&&(r=` - only instances of Provider and Type are allowed, got: [${e.map(t=>t==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${wt(t)}'`+r)}(e,n,t),!function(t){return!!t.deps}(t))return _e(i)||ts(i);r=()=>new i(...Zt(t.deps))}var i;return r}function ns(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function rs(t){return null!==t&&"object"==typeof t&&Ht in t}function is(t){return"function"==typeof t}const os=function(t,e,n){return function(t,e=null,n=null,r){const i=Ko(t,e,n,r);return i._resolveInjectorDefTypes(),i}({name:n},e,t,n)};let ss=(()=>{class t{static create(t,e){return Array.isArray(t)?os(t,e,""):os(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=zt,t.NULL=new Xt,t.\u0275prov=lt({token:t,providedIn:"any",factory:()=>Wt(Rt)}),t.__NG_ELEMENT_ID__=-1,t})();function as(t,e,n){let r=n?t.styles:null,i=n?t.classes:null,o=0;if(null!==e)for(let s=0;s<e.length;s++){const t=e[s];"number"==typeof t?o=t:1==o?i=bt(i,t):2==o&&(r=bt(r,t+": "+e[++s]+";"))}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=i:t.classesWithoutHost=i}let us=null;function cs(){if(!us){const t=Nt.Symbol;if(t&&t.iterator)us=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(us=n)}}}return us}function ls(t){return!!hs(t)&&(Array.isArray(t)||!(t instanceof Map)&&cs()in t)}function hs(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function fs(t,e,n){return t[e]=n}function ds(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function ps(t,e,n,r){const i=tn();return ds(i,hn(),e)&&(en(),function(t,e,n,r,i,o){const s=Ge(t,e),a=e[11];if(null==r)ze(a)?a.removeAttribute(s,n,o):s.removeAttribute(n);else{const e=null==i?Un(r):i(r,t.tagName||"",n);ze(a)?a.setAttribute(s,n,e,o):o?s.setAttributeNS(o,n,e):s.setAttribute(n,e)}}(Cn(),i,t,e,n,r)),ps}function gs(t,e,n,r){return ds(t,hn(),n)?e+Un(n)+r:pi}function ms(t,e,n,r,i,o,s,a){const u=tn(),c=en(),l=t+be,h=c.firstCreatePass?function(t,e,n,r,i,o,s,a,u){const c=e.consts,l=Mi(e,n[6],t,0,s||null,Qe(c,a));Gi(e,n,l,Qe(c,u)),Nn(e,l);const h=l.tViews=zi(2,-1,r,i,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c),f=Bi(0,null,2,-1,null,null);return f.injectorIndex=l.injectorIndex,h.node=f,null!==e.queries&&(e.queries.template(e,l),h.queries=e.queries.embeddedTView(l)),l}(t,c,u,e,n,r,i,o,s):c.data[l];on(h,!1);const f=u[11].createComment("");No(c,u,f,h),Jr(f,u),io(u,u[l]=eo(f,u,f,h)),Te(h)&&Fi(c,u,h),null!=s&&Li(u,h,a)}function ys(t,e=at.Default){const n=tn();return null==n?Wt(t,e):ir(rn(),n,St(t),e)}function vs(t,e,n){const r=tn();return ds(r,hn(),e)&&function(t,e,n,r,i,o,s,a){const u=Ge(e,n);let c,l=e.inputs;var h;null!=l&&(c=l[r])?(fo(t,n,c,r,i),Ce(e)&&function(t,e){const n=qe(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3===e.type&&(r="class"===(h=r)?"className":"for"===h?"htmlFor":"formaction"===h?"formAction":"innerHtml"===h?"innerHTML":"readonly"===h?"readOnly":"tabindex"===h?"tabIndex":h,i=null!=s?s(i,e.tagName||"",r):i,ze(o)?o.setProperty(u,r,i):Ln(r)||(u.setProperty?u.setProperty(r,i):u[r]=i))}(en(),Cn(),r,t,e,r[11],n),vs}function _s(t,e,n,r,i){const o=i?"class":"style";fo(t,n,e.inputs[o],o,r)}function ws(t,e,n,r){const i=tn(),o=en(),s=be+t,a=i[11],u=i[s]=Ai(e,a,Ke.lFrame.currentNamespace),c=o.firstCreatePass?function(t,e,n,r,i,o,s){const a=e.consts,u=Qe(a,o),c=Mi(e,n[6],t,3,i,u);return Gi(e,n,c,Qe(a,s)),null!==c.attrs&&as(c,c.attrs,!1),null!==c.mergedAttrs&&as(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(t,o,i,0,e,n,r):o.data[s];on(c,!0);const l=c.mergedAttrs;null!==l&&Fn(a,u,l);const h=c.classes;null!==h&&Po(a,u,h);const f=c.styles;null!==f&&jo(a,u,f),No(o,i,u,c),0===Ke.lFrame.elementDepthCount&&Jr(u,i),Ke.lFrame.elementDepthCount++,Te(c)&&(Fi(o,i,c),Pi(o,c,i)),null!==r&&Li(i,c)}function bs(){let t=rn();sn()?an():(t=t.parent,on(t,!1));const e=t;Ke.lFrame.elementDepthCount--;const n=en();n.firstCreatePass&&(Nn(n,t),ke(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&_s(n,e,tn(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&_s(n,e,tn(),e.stylesWithoutHost,!1)}function xs(t,e,n,r){ws(t,e,n,r),bs()}function Es(t,e,n){(function(t,e,n){const r=tn(),i=en(),o=t+be,s=i.firstCreatePass?function(t,e,n,r,i){const o=e.consts,s=Qe(o,r),a=Mi(e,n[6],t,4,"ng-container",s);return null!==s&&as(a,s,!0),Gi(e,n,a,Qe(o,i)),null!==e.queries&&e.queries.elementStart(e,a),a}(t,i,r,e,n):i.data[o];on(s,!0);const a=r[o]=r[11].createComment("");No(i,r,a,s),Jr(a,r),Te(s)&&(Fi(i,r,s),Pi(i,s,r)),null!=n&&Li(r,s)})(t,e,n),function(){let t=rn();const e=en();sn()?an():(t=t.parent,on(t,!1)),e.firstCreatePass&&(Nn(e,t),ke(t)&&e.queries.elementEnd(t))}()}function Ss(){return tn()}function ks(t){return!!t&&"function"==typeof t.then}function Cs(t,e,n=!1,r){const i=tn(),o=en(),s=rn();return function(t,e,n,r,i,o,s=!1,a){const u=Te(r),c=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),l=lo(e);let h=!0;if(3===r.type){const f=Ge(r,e),d=a?a(f):ue,p=d.target||f,g=l.length,m=a?t=>a(Be(t[r.index])).target:r.index;if(ze(n)){let s=null;if(!a&&u&&(s=function(t,e,n,r){const i=t.cleanup;if(null!=i)for(let o=0;o<i.length-1;o+=2){const t=i[o];if(t===n&&i[o+1]===r){const t=e[7],n=i[o+2];return t.length>n?t[n]:null}"string"==typeof t&&(o+=2)}return null}(t,e,i,r.index)),null!==s)(s.__ngLastListenerFn__||s).__ngNextListenerFn__=o,s.__ngLastListenerFn__=o,h=!1;else{o=As(r,e,o,!1);const t=n.listen(d.name||p,i,o);l.push(o,t),c&&c.push(i,m,g,g+1)}}else o=As(r,e,o,!0),p.addEventListener(i,o,s),l.push(o),c&&c.push(i,m,g,s)}const f=r.outputs;let d;if(h&&null!==f&&(d=f[i])){const t=d.length;if(t)for(let n=0;n<t;n+=2){const t=e[d[n]][d[n+1]].subscribe(o),s=l.length;l.push(o,t),c&&c.push(i,r.index,s,-(s+1))}}}(o,i,i[11],s,t,e,n,r),Cs}function Ts(t,e,n){try{return!1!==e(n)}catch(r){return ho(t,r),!1}}function As(t,e,n,r){return function i(o){if(o===Function)return n;const s=2&t.flags?qe(t.index,e):e;0==(32&e[2])&&oo(s);let a=Ts(e,n,o),u=i.__ngNextListenerFn__;for(;u;)a=Ts(e,u,o)&&a,u=u.__ngNextListenerFn__;return r&&!1===a&&(o.preventDefault(),o.returnValue=!1),a}}function Ns(t=1){return function(t){return(Ke.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Ke.lFrame.contextLView))[8]}(t)}function Ms(t,e){let n=null;const r=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let i=0;i<e.length;i++){const o=e[i];if("*"!==o){if(null===r?li(t,o,!0):hi(r,o))return i}else n=i}return n}function Os(t){const e=tn()[16][6];if(!e.projection){const n=e.projection=ne(t?t.length:1,null),r=n.slice();let i=e.child;for(;null!==i;){const e=t?Ms(i,t):0;null!==e&&(r[e]?r[e].projectionNext=i:n[e]=i,r[e]=i),i=i.next}}}function Ds(t,e=0,n){const r=tn(),i=en(),o=Mi(i,r[6],t,1,null,n||null);null===o.projection&&(o.projection=e),an(),function(t,e,n){Io(e[11],0,e,n,Eo(t,n,e),Ao(n.parent||e[6],e))}(i,r,o)}const Is=[];function js(t,e,n,r,i){const o=t[n+1],s=null===e;let a=r?xi(o):Si(o),u=!1;for(;0!==a&&(!1===u||s);){const n=t[a+1];Ps(t[a],e)&&(u=!0,t[a+1]=r?Ci(n):Ei(n)),a=r?xi(n):Si(n)}u&&(t[n+1]=r?Ei(o):Ci(o))}function Ps(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&oe(t,e)>=0}const Fs={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ls(t){return t.substring(Fs.key,Fs.keyEnd)}function Rs(t,e){const n=Fs.textEnd;return n===e?-1:(e=Fs.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,Fs.key=e,n),zs(t,e,n))}function zs(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function Vs(t,e,n){return Gs(t,e,n,!1),Vs}function Bs(t,e){return Gs(t,e,null,!0),Bs}function Hs(t,e){for(let n=function(t){return function(t){Fs.key=0,Fs.keyEnd=0,Fs.value=0,Fs.valueEnd=0,Fs.textEnd=t.length}(t),Rs(t,zs(t,0,Fs.textEnd))}(e);n>=0;n=Rs(e,n))re(t,Ls(e),!0)}function Gs(t,e,n,r){const i=tn(),o=en(),s=fn(2);o.firstUpdatePass&&Ys(o,t,s,r),e!==pi&&ds(i,s,e)&&Qs(o,o.data[Sn()+be],i,i[11],t,i[s+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=wt(xr(t)))),t}(e,n),r,s)}function Us(t,e,n,r){const i=en(),o=fn(2);i.firstUpdatePass&&Ys(i,null,o,r);const s=tn();if(n!==pi&&ds(s,o,n)){const a=i.data[Sn()+be];if(Ks(a,r)&&!qs(i,o)){let t=r?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=bt(t,n||"")),_s(i,a,s,n,r)}else!function(t,e,n,r,i,o,s,a){i===pi&&(i=Is);let u=0,c=0,l=0<i.length?i[0]:null,h=0<o.length?o[0]:null;for(;null!==l||null!==h;){const f=u<i.length?i[u+1]:void 0,d=c<o.length?o[c+1]:void 0;let p=null,g=void 0;l===h?(u+=2,c+=2,f!==d&&(p=h,g=d)):null===h||null!==l&&l<h?(u+=2,p=l):(c+=2,p=h,g=d),null!==p&&Qs(t,e,n,r,p,g,s,a),l=u<i.length?i[u]:null,h=c<o.length?o[c]:null}}(i,a,s,s[11],s[o+1],s[o+1]=function(t,e,n){if(null==n||""===n)return Is;const r=[],i=xr(n);if(Array.isArray(i))for(let o=0;o<i.length;o++)t(r,i[o],!0);else if("object"==typeof i)for(const o in i)i.hasOwnProperty(o)&&t(r,o,i[o]);else"string"==typeof i&&e(r,i);return r}(t,e,n),r,o)}}function qs(t,e){return e>=t.expandoStartIndex}function Ys(t,e,n,r){const i=t.data;if(null===i[n+1]){const o=i[Sn()+be],s=qs(t,n);Ks(o,r)&&null===e&&!s&&(e=!1),e=function(t,e,n,r){const i=function(t){const e=Ke.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let o=r?e.residualClasses:e.residualStyles;if(null===i)0===(r?e.classBindings:e.styleBindings)&&(n=Ws(n=$s(null,t,e,n,r),e.attrs,r),o=null);else{const s=e.directiveStylingLast;if(-1===s||t[s]!==i)if(n=$s(i,t,e,n,r),null===o){let n=function(t,e,n){const r=n?e.classBindings:e.styleBindings;if(0!==Si(r))return t[xi(r)]}(t,e,r);void 0!==n&&Array.isArray(n)&&(n=$s(null,t,e,n[1],r),n=Ws(n,e.attrs,r),function(t,e,n,r){t[xi(n?e.classBindings:e.styleBindings)]=r}(t,e,r,n))}else o=function(t,e,n){let r=void 0;const i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o<i;o++)r=Ws(r,t[o].hostAttrs,n);return Ws(r,e.attrs,n)}(t,e,r)}return void 0!==o&&(r?e.residualClasses=o:e.residualStyles=o),n}(i,o,e,r),function(t,e,n,r,i,o){let s=o?e.classBindings:e.styleBindings,a=xi(s),u=Si(s);t[r]=n;let c,l=!1;if(Array.isArray(n)){const t=n;c=t[1],(null===c||oe(t,c)>0)&&(l=!0)}else c=n;if(i)if(0!==u){const e=xi(t[a+1]);t[r+1]=bi(e,a),0!==e&&(t[e+1]=ki(t[e+1],r)),t[a+1]=131071&t[a+1]|r<<17}else t[r+1]=bi(a,0),0!==a&&(t[a+1]=ki(t[a+1],r)),a=r;else t[r+1]=bi(u,0),0===a?a=r:t[u+1]=ki(t[u+1],r),u=r;l&&(t[r+1]=Ei(t[r+1])),js(t,c,r,!0),js(t,c,r,!1),function(t,e,n,r,i){const o=i?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&oe(o,e)>=0&&(n[r+1]=Ci(n[r+1]))}(e,c,t,r,o),s=bi(a,u),o?e.classBindings=s:e.styleBindings=s}(i,o,e,n,s,r)}}function $s(t,e,n,r,i){let o=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<s&&(o=e[a],r=Ws(r,o.hostAttrs,i),o!==t);)a++;return null!==t&&(n.directiveStylingLast=a),r}function Ws(t,e,n){const r=n?1:2;let i=-1;if(null!==e)for(let o=0;o<e.length;o++){const s=e[o];"number"==typeof s?i=s:i===r&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),re(t,s,!!n||e[++o]))}return void 0===t?null:t}function Qs(t,e,n,r,i,o,s,a){if(3!==e.type)return;const u=t.data,c=u[a+1];Xs(1==(1&c)?Zs(u,e,n,i,Si(c),s):void 0)||(Xs(o)||2==(2&c)&&(o=Zs(u,null,n,i,a,s)),function(t,e,n,r,i){const o=ze(t);if(e)i?o?t.addClass(n,r):n.classList.add(r):o?t.removeClass(n,r):n.classList.remove(r);else{const e=-1==r.indexOf("-")?void 0:2;null==i?o?t.removeStyle(n,r,e):n.style.removeProperty(r):o?t.setStyle(n,r,i,e):n.style.setProperty(r,i)}}(r,s,He(Sn(),n),i,o))}function Zs(t,e,n,r,i,o){const s=null===e;let a=void 0;for(;i>0;){const e=t[i],o=Array.isArray(e),u=o?e[1]:e,c=null===u;let l=n[i+1];l===pi&&(l=c?Is:void 0);let h=c?ie(l,r):u===r?l:void 0;if(o&&!Xs(h)&&(h=ie(e,r)),Xs(h)&&(a=h,s))return a;const f=t[i+1];i=s?xi(f):Si(f)}if(null!==e){let t=o?e.residualClasses:e.residualStyles;null!=t&&(a=ie(t,r))}return a}function Xs(t){return void 0!==t}function Ks(t,e){return 0!=(t.flags&(e?16:32))}function Js(t,e=""){const n=tn(),r=en(),i=t+be,o=r.firstCreatePass?Mi(r,n[6],t,3,null,null):r.data[i],s=n[i]=function(t,e){return ze(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);No(r,n,s,o),on(o,!1)}function ta(t){return ea("",t,""),ta}function ea(t,e,n){const r=tn(),i=gs(r,t,e,n);return i!==pi&&function(t,e,n){const r=He(e,t),i=t[11];ze(i)?i.setValue(r,n):r.textContent=n}(r,Sn(),i),ea}function na(t,e){const n=Ye(t)[1],r=n.data.length-1;Nn(n,{directiveStart:r,directiveEnd:r+1})}function ra(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const r=[t];for(;e;){let i=void 0;if(Ae(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");i=e.\u0275dir}if(i){if(n){r.push(i);const e=t;e.inputs=ia(t.inputs),e.declaredInputs=ia(t.declaredInputs),e.outputs=ia(t.outputs);const n=i.hostBindings;n&&aa(t,n);const o=i.viewQuery,s=i.contentQueries;if(o&&oa(t,o),s&&sa(t,s),ct(t.inputs,i.inputs),ct(t.declaredInputs,i.declaredInputs),ct(t.outputs,i.outputs),Ae(i)&&i.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(i.data.animation)}}const e=i.features;if(e)for(let r=0;r<e.length;r++){const i=e[r];i&&i.ngInherit&&i(t),i===ra&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let r=t.length-1;r>=0;r--){const i=t[r];i.hostVars=e+=i.hostVars,i.hostAttrs=Rn(i.hostAttrs,n=Rn(n,i.hostAttrs))}}(r)}function ia(t){return t===ue?{}:t===ce?[]:t}function oa(t,e){const n=t.viewQuery;t.viewQuery=n?(t,r)=>{e(t,r),n(t,r)}:e}function sa(t,e){const n=t.contentQueries;t.contentQueries=n?(t,r,i)=>{e(t,r,i),n(t,r,i)}:e}function aa(t,e){const n=t.hostBindings;t.hostBindings=n?(t,r)=>{e(t,r),n(t,r)}:e}function ua(t,e,n,r,i){if(t=St(t),Array.isArray(t))for(let o=0;o<t.length;o++)ua(t[o],e,n,r,i);else{const o=en(),s=tn();let a=is(t)?t:St(t.provide),u=es(t);const c=rn(),l=1048575&c.providerIndexes,h=c.directiveStart,f=c.providerIndexes>>20;if(is(t)||!t.multi){const r=new Pn(u,i,ys),d=ha(a,e,i?l:l+f,h);-1===d?(rr(Jn(c,s),o,a),ca(o,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(r),s.push(r)):(n[d]=r,s[d]=r)}else{const d=ha(a,e,l+f,h),p=ha(a,e,l,l+f),g=d>=0&&n[d],m=p>=0&&n[p];if(i&&!m||!i&&!g){rr(Jn(c,s),o,a);const l=function(t,e,n,r,i){const o=new Pn(t,n,ys);return o.multi=[],o.index=e,o.componentProviders=0,la(o,i,r&&!n),o}(i?da:fa,n.length,i,r,u);!i&&m&&(n[p].providerFactory=l),ca(o,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(l),s.push(l)}else ca(o,t,d>-1?d:p,la(n[i?p:d],u,!i&&r));!i&&r&&m&&n[p].componentProviders++}}}function ca(t,e,n,r){const i=is(e);if(i||e.useClass){const o=(e.useClass||e).prototype.ngOnDestroy;if(o){const s=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){const t=s.indexOf(n);-1===t?s.push(n,[r,o]):s[t+1].push(r,o)}else s.push(n,o)}}}function la(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function ha(t,e,n,r){for(let i=n;i<r;i++)if(e[i]===t)return i;return-1}function fa(t,e,n,r){return pa(this.multi,[])}function da(t,e,n,r){const i=this.multi;let o;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=ur(n,n[1],this.providerFactory.index,r);o=e.slice(0,t),pa(i,o);for(let n=t;n<e.length;n++)o.push(e[n])}else o=[],pa(i,o);return o}function pa(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function ga(t,e=[]){return n=>{n.providersResolver=(n,r)=>function(t,e,n){const r=en();if(r.firstCreatePass){const i=Ae(t);ua(n,r.data,r.blueprint,i,!0),ua(e,r.data,r.blueprint,i,!1)}}(n,r?r(t):t,e)}}class ma{}class ya{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${wt(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let va=(()=>{class t{}return t.NULL=new ya,t})(),_a=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>wa(t),t})();const wa=function(t){return Bo(t,rn(),tn())};class ba{}var xa=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});let Ea=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Sa(),t})();const Sa=function(){const t=tn(),e=qe(rn().index,t);return function(t){const e=t[11];if(ze(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Ee(e)?e:t)};let ka=(()=>{class t{}return t.\u0275prov=lt({token:t,providedIn:"root",factory:()=>null}),t})();class Ca{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ta=new Ca("10.1.0");class Aa{constructor(){}supports(t){return ls(t)}create(t){return new Ma(t)}}const Na=(t,e)=>e;class Ma{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Na}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,r=0,i=null;for(;e||n;){const o=!n||e&&e.currentIndex<ja(n,r,i)?e:n,s=ja(o,r,i),a=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{i||(i=[]);const t=s-r,e=a-r;if(t!=e){for(let n=0;n<t;n++){const r=n<i.length?i[n]:i[n]=0,o=r+n;e<=o&&o<t&&(i[n]=r+1)}i[o.previousIndex]=e-t}}s!==a&&t(o,s,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!ls(t))throw new Error(`Error trying to diff '${wt(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,r,i=this._itHead,o=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],r=this._trackByFn(e,n),null!==i&&Object.is(i.trackById,r)?(o&&(i=this._verifyReinsertion(i,n,r,e)),Object.is(i.item,n)||this._addIdentityChange(i,n)):(i=this._mismatch(i,n,r,e),o=!0),i=i._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[cs()]();let r;for(;!(r=n.next()).done;)e(r.value)}}(t,t=>{r=this._trackByFn(e,t),null!==i&&Object.is(i.trackById,r)?(o&&(i=this._verifyReinsertion(i,t,r,e)),Object.is(i.item,t)||this._addIdentityChange(i,t)):(i=this._mismatch(i,t,r,e),o=!0),i=i._next,e++}),this.length=e;return this._truncate(i),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t,e;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,r){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,r)):t=this._addAfter(new Oa(e,n),i,r),t}_verifyReinsertion(t,e,n,r){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,i=t._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Ia),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ia),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Oa{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Da{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Ia{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Da,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ja(t,e,n){const r=t.previousIndex;if(null===r)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+e+i}class Pa{constructor(){}supports(t){return t instanceof Map||hs(t)}create(){return new Fa}}class Fa{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||hs(t)))throw new Error(`Error trying to diff '${wt(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}const n=new La(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class La{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let Ra=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new st,new it]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=lt({token:t,providedIn:"root",factory:()=>new t([new Aa])}),t})(),za=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new st,new it]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=lt({token:t,providedIn:"root",factory:()=>new t([new Pa])}),t})();const Va=[new Pa],Ba=new Ra([new Aa]),Ha=new za(Va);let Ga=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ua(t,_a),t})();const Ua=function(t,e){return Ho(t,e,rn(),tn())};let qa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ya(t,_a),t})();const Ya=function(t,e){return Go(t,e,rn(),tn())},$a={};class Wa extends va{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=ve(t);return new Xa(e,this.ngModule)}}function Qa(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const Za=new Lt("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Yn});class Xa extends ma{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(di).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Qa(this.componentDef.inputs)}get outputs(){return Qa(this.componentDef.outputs)}create(t,e,n,r){const i=(r=r||this.ngModule)?function(t,e){return{get:(n,r,i)=>{const o=t.get(n,$a,i);return o!==$a||r===$a?o:e.get(n,r,i)}}}(t,r.injector):t,o=i.get(ba,Ve),s=i.get(ka,null),a=o.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(ze(t))return t.selectRootElement(e,n===ae.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(a,n,this.componentDef.encapsulation):Ai(u,o.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?Fe:"math"===e?"http://www.w3.org/1998/MathML/":null}(u)),l=this.componentDef.onPush?576:528,h={components:[],scheduler:Yn,clean:co,playerHandler:null,flags:0},f=zi(0,-1,null,1,0,null,null,null,null,null),d=Ni(null,f,h,l,null,null,o,a,s,i);let p,g;vn(d,null);try{const t=function(t,e,n,r,i,o){const s=n[1];n[20]=t;const a=Mi(s,null,0,3,null,null),u=a.mergedAttrs=e.hostAttrs;null!==u&&(as(a,u,!0),null!==t&&(Fn(i,t,u),null!==a.classes&&Po(i,t,a.classes),null!==a.styles&&jo(i,t,a.styles)));const c=r.createRenderer(t,e),l=Ni(n,Ri(e),null,e.onPush?64:16,n[20],a,r,c,void 0);return s.firstCreatePass&&(rr(Jn(a,n),s,e.type),Wi(s,a),Zi(a,n.length,1)),io(n,l),n[20]=l}(c,this.componentDef,d,o,a);if(c)if(n)Fn(a,c,["ng-version",Ta.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let r=1,i=2;for(;r<t.length;){let o=t[r];if("string"==typeof o)2===i?""!==o&&e.push(o,t[++r]):8===i&&n.push(o);else{if(!ui(i))break;i=o}r++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&Fn(a,c,t),e&&e.length>0&&Po(a,c,e.join(" "))}if(g=Ue(f,0),void 0!==e){const t=g.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const r=e[n];t.push(null!=r?Array.from(r):null)}}p=function(t,e,n,r,i){const o=n[1],s=function(t,e,n){const r=rn();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),$i(t,r,1),Xi(t,e,n));const i=ur(e,t,e.length-1,r);Jr(i,e);const o=Ge(r,e);return o&&Jr(o,e),i}(o,n,e);r.components.push(s),t[8]=s,i&&i.forEach(t=>t(s,e)),e.contentQueries&&e.contentQueries(1,s,n.length-1);const a=rn();if(o.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){kn(a.index-be);const t=n[1];Ui(t,e),qi(t,n,e.hostVars),Yi(e,s)}return s}(t,this.componentDef,d,h,[na]),Oi(f,d,null)}finally{En()}const m=new Ka(this.componentType,p,Bo(_a,g,d),d,g);return f.node.child=g,m}}class Ka extends class{}{constructor(t,e,n,r,i){super(),this.location=n,this._rootLView=r,this._tNode=i,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new Lo(r),function(t,e,n,r){let i=t.node;null==i&&(t.node=i=Bi(0,null,2,-1,null,null)),r[6]=i}(r[1],0,0,r),this.componentType=t}get injector(){return new hr(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const Ja=void 0;var tu=["en",[["a","p"],["AM","PM"],Ja],[["AM","PM"],Ja,Ja],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Ja,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Ja,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Ja,"{1} 'at' {0}",Ja],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let eu={};function nu(t){return t in eu||(eu[t]=Nt.ng&&Nt.ng.common&&Nt.ng.common.locales&&Nt.ng.common.locales[t]),eu[t]}var ru=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});const iu="en-US";let ou=iu;function su(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,r){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(ou=t.toLowerCase().replace(/_/g,"-"))}const au=new Map;class uu extends Kt{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Wa(this);const n=we(t),r=t[jt]||null;r&&su(r),this._bootstrapComponents=Qn(n.bootstrap),this._r3Injector=Ko(t,e,[{provide:Kt,useValue:this},{provide:va,useValue:this.componentFactoryResolver}],wt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=ss.THROW_IF_NOT_FOUND,n=at.Default){return t===ss||t===Kt||t===Rt?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class cu extends class{}{constructor(t){super(),this.moduleType=t,null!==we(t)&&function t(e){if(null!==e.\u0275mod.id){const t=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${wt(e)} vs ${wt(e.name)}`)})(t,au.get(t),e),au.set(t,e)}let n=e.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(e=>t(e))}(t)}create(t){return new uu(this.moduleType,t)}}function lu(t,e,n,r){return function(t,e,n,r,i,o){const s=e+n;return ds(t,s,i)?fs(t,s+1,o?r.call(o,i):r(i)):hu(t,s+1)}(tn(),ln(),t,e,n,r)}function hu(t,e){const n=t[e];return n===pi?void 0:n}const fu=class extends C{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let r,i=t=>null,o=()=>null;t&&"object"==typeof t?(r=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(i=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(o=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(r=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(i=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(o=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const s=super.subscribe(r,i,o);return t instanceof p&&t.add(s),s}};function du(){return this._results[cs()]()}class pu{constructor(){this.dirty=!0,this._results=[],this.changes=new fu,this.length=0;const t=cs(),e=pu.prototype;e[t]||(e[t]=du)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=function t(e,n){void 0===n&&(n=e);for(let r=0;r<e.length;r++){let i=e[r];Array.isArray(i)?(n===e&&(n=e.slice(0,r)),t(i,n)):n!==e&&n.push(i)}return n}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class gu{constructor(t){this.queryList=t,this.matches=null}clone(){return new gu(this.queryList)}setDirty(){this.queryList.setDirty()}}class mu{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,r=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);r.push(this.queries[n.indexInDeclarationView].clone())}return new mu(r)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==Mu(t,e).matches&&this.queries[e].setDirty()}}class yu{constructor(t,e,n,r=null){this.predicate=t,this.descendants=e,this.isStatic=n,this.read=r}}class vu{constructor(t=[]){this.queries=t}elementStart(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let n=0;n<this.length;n++){const r=null!==e?e.length:0,i=this.getByIndex(n).embeddedTView(t,r);i&&(i.indexInDeclarationView=n,null!==e?e.push(i):e=[i])}return null!==e?new vu(e):null}template(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class _u{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new _u(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&4===n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const n=this.metadata.predicate;if(Array.isArray(n))for(let r=0;r<n.length;r++){const i=n[r];this.matchTNodeWithReadOption(t,e,wu(e,i)),this.matchTNodeWithReadOption(t,e,ar(e,t,i,!1,!1))}else n===Ga?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,ar(e,t,n,!1,!1))}matchTNodeWithReadOption(t,e,n){if(null!==n){const r=this.metadata.read;if(null!==r)if(r===_a||r===qa||r===Ga&&0===e.type)this.addMatch(e.index,-2);else{const n=ar(e,t,r,!1,!1);null!==n&&this.addMatch(e.index,n)}else this.addMatch(e.index,n)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function wu(t,e){const n=t.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===e)return n[r+1];return null}function bu(t,e,n,r){return-1===n?function(t,e){return 3===t.type||4===t.type?Bo(_a,t,e):0===t.type?Ho(Ga,_a,t,e):null}(e,t):-2===n?function(t,e,n){return n===_a?Bo(_a,e,t):n===Ga?Ho(Ga,_a,e,t):n===qa?Go(qa,_a,e,t):void 0}(t,e,r):ur(t,t[1],n,e)}function xu(t,e,n,r){const i=e[19].queries[r];if(null===i.matches){const r=t.data,o=n.matches,s=[];for(let t=0;t<o.length;t+=2){const i=o[t];s.push(i<0?null:bu(e,r[i],o[t+1],n.metadata.read))}i.matches=s}return i.matches}function Eu(t){const e=tn(),n=en(),r=gn();mn(r+1);const i=Mu(n,r);if(t.dirty&&$e(e)===i.metadata.isStatic){if(null===i.matches)t.reset([]);else{const o=i.crossesNgTemplate?function t(e,n,r,i){const o=e.queries.getByIndex(r),s=o.matches;if(null!==s){const a=xu(e,n,o,r);for(let e=0;e<s.length;e+=2){const r=s[e];if(r>0)i.push(a[e/2]);else{const o=s[e+1],a=n[-r];for(let e=xe;e<a.length;e++){const n=a[e];n[17]===n[3]&&t(n[1],n,o,i)}if(null!==a[9]){const e=a[9];for(let n=0;n<e.length;n++){const r=e[n];t(r[1],r,o,i)}}}}}return i}(n,e,r,[]):xu(n,e,i,r);t.reset(o),t.notifyOnChanges()}return!0}return!1}function Su(t,e,n){ku(en(),tn(),t,e,n,!1)}function ku(t,e,n,r,i,o){t.firstCreatePass&&(Nu(t,new yu(n,r,o,i),-1),o&&(t.staticViewQueries=!0)),Au(t,e)}function Cu(t,e,n,r){!function(t,e,n,r,i,o,s,a){t.firstCreatePass&&(Nu(t,new yu(n,r,false,i),s.index),function(t,e){const n=t.contentQueries||(t.contentQueries=[]);e!==(t.contentQueries.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(t,a)),Au(t,e)}(en(),tn(),e,n,r,0,rn(),t)}function Tu(){return t=tn(),e=gn(),t[19].queries[e].queryList;var t,e}function Au(t,e){const n=new pu;Vi(t,e,n,n.destroy),null===e[19]&&(e[19]=new mu),e[19].queries.push(new gu(n))}function Nu(t,e,n){null===t.queries&&(t.queries=new vu),t.queries.track(new _u(e,n))}function Mu(t,e){return t.queries.getByIndex(e)}function Ou(t,e){return Ho(Ga,_a,t,e)}const Du=new Lt("Application Initializer");let Iu=(()=>{class t{constructor(t){this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const e=this.appInits[n]();ks(e)&&t.push(e)}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Wt(Du,8))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const ju=new Lt("AppId"),Pu={provide:ju,useFactory:function(){return`${Fu()}${Fu()}${Fu()}`},deps:[]};function Fu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Lu=new Lt("Platform Initializer"),Ru=new Lt("Platform ID"),zu=new Lt("appBootstrapListener");let Vu=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const Bu=new Lt("LocaleId"),Hu=new Lt("DefaultCurrencyCode");class Gu{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Uu=function(t){return new cu(t)},qu=Uu,Yu=function(t){return Promise.resolve(Uu(t))},$u=function(t){const e=Uu(t),n=Qn(we(t).declarations).reduce((t,e)=>{const n=ve(e);return n&&t.push(new Xa(n)),t},[]);return new Gu(e,n)},Wu=$u,Qu=function(t){return Promise.resolve($u(t))};let Zu=(()=>{class t{constructor(){this.compileModuleSync=qu,this.compileModuleAsync=Yu,this.compileModuleAndAllComponentsSync=Wu,this.compileModuleAndAllComponentsAsync=Qu}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const Xu=(()=>Promise.resolve(0))();function Ku(t){"undefined"==typeof Zone?Xu.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Ju{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new fu(!1),this.onMicrotaskEmpty=new fu(!1),this.onStable=new fu(!1),this.onError=new fu(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.wtfZoneSpec&&(n._inner=n._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=e,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let t=Nt.requestAnimationFrame,e=Nt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Nt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,rc(t),nc(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),rc(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,r,i,o,s,a)=>{try{return ic(t),n.invokeTask(i,o,s,a)}finally{e&&"eventTask"===o.type&&e(),oc(t)}},onInvoke:(e,n,r,i,o,s,a)=>{try{return ic(t),e.invoke(r,i,o,s,a)}finally{oc(t)}},onHasTask:(e,n,r,i)=>{e.hasTask(r,i),n===r&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,rc(t),nc(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(e,n,r,i)=>(e.handleError(r,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ju.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ju.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,r){const i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,t,ec,tc,tc);try{return i.runTask(o,e,n)}finally{i.cancelTask(o)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function tc(){}const ec={};function nc(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function rc(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function ic(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function oc(t){t._nesting--,nc(t)}class sc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new fu,this.onMicrotaskEmpty=new fu,this.onStable=new fu,this.onError=new fu}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,r){return t.apply(e,n)}}let ac=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ju.assertNotInAngularZone(),Ku(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Ku(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let r=-1;e&&e>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==r),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(Wt(Ju))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),uc=(()=>{class t{constructor(){this._applications=new Map,hc.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return hc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();class cc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let lc,hc=new cc;const fc=new Lt("AllowMultipleToken");function dc(t,e,n=[]){const r="Platform: "+e,i=new Lt(r);return(e=[])=>{let o=pc();if(!o||o.injector.get(fc,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{const t=n.concat(e).concat({provide:i,useValue:!0},{provide:Yo,useValue:"platform"});!function(t){if(lc&&!lc.destroyed&&!lc.injector.get(fc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");lc=t.get(gc);const e=t.get(Lu,null);e&&e.forEach(t=>t())}(ss.create({providers:t,name:r}))}return function(t){const e=pc();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(i)}}function pc(){return lc&&!lc.destroyed?lc:null}let gc=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new sc:("zone.js"===t?void 0:t)||new Ju({enableLongStackTrace:Tr(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),r=[{provide:Ju,useValue:n}];return n.run(()=>{const e=ss.create({providers:r,parent:this.injector,name:t.moduleType.name}),i=t.create(e),o=i.injector.get(gr,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(()=>vc(this._modules,i)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{o.handleError(t)}})),function(t,e,n){try{const r=n();return ks(r)?r.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(o,n,()=>{const t=i.injector.get(Iu);return t.runInitializers(),t.donePromise.then(()=>(su(i.injector.get(Bu,iu)||iu),this._moduleDoBootstrap(i),i))})})}bootstrapModule(t,e=[]){const n=mc({},e);return function(t,e,n){const r=new cu(n);return Promise.resolve(r)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(yc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${wt(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Wt(ss))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();function mc(t,e){return Array.isArray(e)?e.reduce(mc,t):Object.assign(Object.assign({},t),e)}let yc=(()=>{class t{constructor(t,e,n,r,i,o){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Tr(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const s=new b(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new b(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Ju.assertNotInAngularZone(),Ku(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Ju.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=Y(s,a.pipe(t=>{return $()((e=J,function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,X);return r.source=t,r.subjectFactory=n,r})(t));var e}))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof ma?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(Kt),i=n.create(ss.NULL,[],e||n.selector,r);i.onDestroy(()=>{this._unloadComponent(i)});const o=i.injector.get(ac,null);return o&&i.injector.get(uc).registerApplication(i.location.nativeElement,o),this._loadComponent(i),Tr()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),i}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;vc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(zu,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),vc(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Wt(Ju),Wt(Vu),Wt(ss),Wt(gr),Wt(va),Wt(Iu))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();function vc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const _c=dc(null,"core",[{provide:Ru,useValue:"unknown"},{provide:gc,deps:[ss]},{provide:uc,deps:[]},{provide:Vu,deps:[]}]),wc=[{provide:yc,useClass:yc,deps:[Ju,Vu,ss,gr,va,Iu]},{provide:Za,deps:[Ju],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Iu,useClass:Iu,deps:[[new it,Du]]},{provide:Zu,useClass:Zu,deps:[]},Pu,{provide:Ra,useFactory:function(){return Ba},deps:[]},{provide:za,useFactory:function(){return Ha},deps:[]},{provide:Bu,useFactory:function(t){return su(t=t||"undefined"!=typeof $localize&&$localize.locale||iu),t},deps:[[new rt(Bu),new it,new st]]},{provide:Hu,useValue:"USD"}];let bc=(()=>{class t{constructor(t){}}return t.\u0275mod=ge({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)(Wt(yc))},providers:wc}),t})();class xc extends p{constructor(t,e){super()}schedule(t,e=0){return this}}class Ec extends xc{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,r=void 0;try{this.work(t)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}class Sc extends Ec{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}let kc=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class Cc extends kc{constructor(t,e=kc.now){super(t,()=>Cc.delegate&&Cc.delegate!==this?Cc.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return Cc.delegate&&Cc.delegate!==this?Cc.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}class Tc extends Cc{}const Ac=new Tc(Sc),Nc=new b(t=>t.complete());function Mc(t){return t?function(t){return new b(e=>t.schedule(()=>e.complete()))}(t):Nc}function Oc(...t){let e=t[t.length-1];return A(e)?(t.pop(),R(t,e)):q(t)}let Dc=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return Oc(this.value);case"E":return t=this.error,new b(e=>e.error(t));case"C":return Mc()}var t;throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();class Ic extends y{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(Ic.dispatch,this.delay,new jc(t,this.destination)))}_next(t){this.scheduleMessage(Dc.createNext(t))}_error(t){this.scheduleMessage(Dc.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(Dc.createComplete()),this.unsubscribe()}}class jc{constructor(t,e){this.notification=t,this.destination=e}}class Pc extends C{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new Fc(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,i=n.length;let o;if(this.closed)throw new E;if(this.isStopped||this.hasError?o=p.EMPTY:(this.observers.push(t),o=new S(this,t)),r&&t.add(t=new Ic(t,r)),e)for(let s=0;s<i&&!t.closed;s++)t.next(n[s]);else for(let s=0;s<i&&!t.closed;s++)t.next(n[s].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),o}_getNow(){return(this.scheduler||Ac).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,n=this._windowTime,r=this._events,i=r.length;let o=0;for(;o<i&&!(t-r[o].time<n);)o++;return i>e&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r}}class Fc{constructor(t,e){this.time=t,this.value=e}}class Lc{constructor(t){this.project=t}call(t,e){return e.subscribe(new Rc(t,this.project))}}class Rc extends B{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new V(this),r=this.destination;r.add(n),this.innerSubscription=H(t,n),this.innerSubscription!==n&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const zc=(()=>{const t=Element.prototype;return t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector})(),Vc={schedule(t,e){const n=setTimeout(t,e);return()=>clearTimeout(n)},scheduleBeforeRender(t){if("undefined"==typeof window)return Vc.schedule(t,0);if(void 0===window.requestAnimationFrame)return Vc.schedule(t,16);const e=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(e)}};function Bc(t,e,n){let r=n;return function(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}(t)&&e.some((e,n)=>!("*"===e||!function(t,e){return zc.call(t,e)}(t,e)||(r=n,0))),r}class Hc{constructor(t,e){this.componentFactory=e.get(va).resolveComponentFactory(t)}create(t){return new Gc(this.componentFactory,t)}}class Gc{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new Pc(1),this.events=this.eventEmitters.pipe(function t(e,n){return"function"==typeof n?r=>r.pipe(t((t,r)=>z(e(t,r)).pipe(N((e,i)=>n(t,e,r,i))))):t=>t.lift(new Lc(e))}(t=>Y(...t))),this.componentRef=null,this.inputChanges=null,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set,this.ngZone=this.injector.get(Ju),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null!==this.componentRef&&null===this.scheduledDestroyFn&&(this.scheduledDestroyFn=Vc.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){this.runInZone(()=>{var n,r;null!==this.componentRef?((n=e)!==(r=this.getInputValue(t))&&(n==n||r==r)||void 0===e&&this.unchangedInputs.has(t))&&(this.recordInputChange(t,e),this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)})}initializeComponent(t){const e=ss.create({providers:[],parent:this.injector}),n=function(t,e){const n=t.childNodes,r=e.map(()=>[]);let i=-1;e.some((t,e)=>"*"===t&&(i=e,!0));for(let o=0,s=n.length;o<s;++o){const t=n[o],s=Bc(t,e,i);-1!==s&&r[s].push(t)}return r}(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,n,t),this.implementsOnChanges="function"==typeof this.componentRef.instance.ngOnChanges,this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(yc).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:t})=>{this.implementsOnChanges&&this.unchangedInputs.add(t),this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:e,templateName:n})=>t.instance[e].pipe(N(t=>({name:n,value:t}))));this.eventEmitters.next(e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Vc.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(null!==this.componentRef&&!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const n=this.inputChanges[t];if(n)return void(n.currentValue=e);const r=this.unchangedInputs.has(t);this.unchangedInputs.delete(t);const i=r?void 0:this.getInputValue(t);this.inputChanges[t]=new Me(i,e,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class Uc extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function qc(t,e){t.forEach(({propName:t})=>{Object.defineProperty(e,t,{get(){return this.ngElementStrategy.getInputValue(t)},set(e){this.ngElementStrategy.setInputValue(t,e)},configurable:!0,enumerable:!0})})}let Yc=null;function $c(){return Yc}const Wc=new Lt("DocumentToken");var Qc=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({});class Zc{}let Xc=(()=>{class t extends Zc{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=nu(e);if(n)return n;const r=e.split("-")[0];if(n=nu(r),n)return n;if("en"===r)return tu;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[ru.PluralCase]}(e||this.locale)(t)){case Qc.Zero:return"zero";case Qc.One:return"one";case Qc.Two:return"two";case Qc.Few:return"few";case Qc.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(Wt(Bu))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();class Kc{constructor(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Jc=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){Tr()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,r)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Kc(null,this._ngForOf,-1,-1),null===r?void 0:r),i=new tl(t,n);e.push(i)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const i=this._viewContainer.get(n);this._viewContainer.move(i,r);const o=new tl(t,i);e.push(o)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,r=this._viewContainer.length;n<r;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=r,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(ys(qa),ys(Ga),ys(Ra))},t.\u0275dir=ye({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class tl{constructor(t,e){this.record=t,this.view=e}}let el=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new nl,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){rl("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){rl("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(ys(qa),ys(Ga))},t.\u0275dir=ye({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class nl{constructor(){this.$implicit=null,this.ngIf=null}}function rl(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${wt(e)}'.`)}let il=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(let t of n)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}return t.\u0275fac=function(e){return new(e||t)(ys(qa))},t.\u0275dir=ye({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[Oe]}),t})(),ol=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},providers:[{provide:Zc,useClass:Xc}]}),t})();class sl extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new sl,Yc||(Yc=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=ul||(ul=document.querySelector("base"),ul)?ul.getAttribute("href"):null;return null==e?null:(n=e,al||(al=document.createElement("a")),al.setAttribute("href",n),"/"===al.pathname.charAt(0)?al.pathname:"/"+al.pathname);var n}resetBaseElement(){ul=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return function(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[r,i]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(r.trim()===e)return decodeURIComponent(i)}return null}(document.cookie,t)}}let al,ul=null;const cl=new Lt("TRANSITION_ID"),ll=[{provide:Du,useFactory:function(t,e,n){return()=>{n.get(Iu).donePromise.then(()=>{const n=$c();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[cl,Wc,ss],multi:!0}];class hl{static init(){var t;t=new hl,hc=t}addToWindow(t){Nt.getAngularTestability=(e,n=!0)=>{const r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},Nt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Nt.getAllAngularRootElements=()=>t.getAllRootElements(),Nt.frameworkStabilizers||(Nt.frameworkStabilizers=[]),Nt.frameworkStabilizers.push(t=>{const e=Nt.getAllAngularTestabilities();let n=e.length,r=!1;const i=function(e){r=r||e,n--,0==n&&t(r)};e.forEach((function(t){t.whenStable(i)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:n?$c().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const fl=new Lt("EventManagerPlugins");let dl=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let r=0;r<n.length;r++){const e=n[r];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error("No event manager plugin found for event "+t)}}return t.\u0275fac=function(e){return new(e||t)(Wt(fl),Wt(Ju))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();class pl{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const r=$c().getGlobalEventTarget(this._doc,t);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,n)}}let gl=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),ml=(()=>{class t extends gl{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>$c().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(Wt(Wc))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const yl={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},vl=/%COMP%/g;function _l(t,e,n){for(let r=0;r<e.length;r++){let i=e[r];Array.isArray(i)?_l(t,i,n):(i=i.replace(vl,t),n.push(i))}return n}function wl(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let bl=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new xl(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case ae.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new El(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case ae.Native:case ae.ShadowDom:return new Sl(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=_l(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(Wt(dl),Wt(ml),Wt(ju))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();class xl{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(yl[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,r){if(r){e=r+":"+e;const i=yl[r];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const r=yl[n];r?t.removeAttributeNS(r,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,r){r&xa.DashCase?t.style.setProperty(e,n,r&xa.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&xa.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,wl(n)):this.eventManager.addEventListener(t,e,wl(n))}}class El extends xl{constructor(t,e,n,r){super(t),this.component=n;const i=_l(r+"-"+n.id,n.styles,[]);e.addStyles(i),this.contentAttr="_ngcontent-%COMP%".replace(vl,r+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(vl,r+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class Sl extends xl{constructor(t,e,n,r){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===ae.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const i=_l(r.id,r.styles,[]);for(let o=0;o<i.length;o++){const t=document.createElement("style");t.textContent=i[o],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let kl=(()=>{class t extends pl{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(Wt(Wc))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const Cl=["alt","control","meta","shift"],Tl={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Al={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Nl={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Ml=(()=>{class t extends pl{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const i=t.parseEventName(n),o=t.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>$c().onAndCancel(e,i.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const i=t._normalizeKey(n.pop());let o="";if(Cl.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")}),o+=i,0!=n.length||0===i.length)return null;const s={};return s.domEventName=r,s.fullKey=o,s}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&Al.hasOwnProperty(e)&&(e=Al[e]))}return Tl[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Cl.forEach(r=>{r!=n&&(0,Nl[r])(t)&&(e+=r+".")}),e+=n,e}static eventCallback(e,n,r){return i=>{t.getEventFullKey(i)===e&&r.runGuarded(()=>n(i))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(Wt(Wc))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),Ol=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({factory:function(){return Wt(Dl)},token:t,providedIn:"root"}),t})(),Dl=(()=>{class t extends Ol{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case Xr.NONE:return e;case Xr.HTML:return Er(e,"HTML")?xr(e):Qr(this._doc,String(e));case Xr.STYLE:return Er(e,"Style")?xr(e):e;case Xr.SCRIPT:if(Er(e,"Script"))return xr(e);throw new Error("unsafe value used in a script context");case Xr.URL:return Sr(e),Er(e,"URL")?xr(e):Dr(String(e));case Xr.RESOURCE_URL:if(Er(e,"ResourceURL"))return xr(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new yr(t)}bypassSecurityTrustStyle(t){return new vr(t)}bypassSecurityTrustScript(t){return new _r(t)}bypassSecurityTrustUrl(t){return new wr(t)}bypassSecurityTrustResourceUrl(t){return new br(t)}}return t.\u0275fac=function(e){return new(e||t)(Wt(Wc))},t.\u0275prov=lt({factory:function(){return t=Wt(Rt),new Dl(t.get(Wc));var t},token:t,providedIn:"root"}),t})();const Il=dc(_c,"browser",[{provide:Ru,useValue:"browser"},{provide:Lu,useValue:function(){sl.makeCurrent(),hl.init()},multi:!0},{provide:Wc,useFactory:function(){return function(t){Le=t}(document),document},deps:[]}]),jl=[[],{provide:Yo,useValue:"root"},{provide:gr,useFactory:function(){return new gr},deps:[]},{provide:fl,useClass:kl,multi:!0,deps:[Wc,Ju,Ru]},{provide:fl,useClass:Ml,multi:!0,deps:[Wc]},[],{provide:bl,useClass:bl,deps:[dl,ml,ju]},{provide:ba,useExisting:bl},{provide:gl,useExisting:ml},{provide:ml,useClass:ml,deps:[Wc]},{provide:ac,useClass:ac,deps:[Ju]},{provide:dl,useClass:dl,deps:[fl,Ju]},[]];let Pl=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:ju,useValue:e.appId},{provide:cl,useExisting:ju},ll]}}}return t.\u0275mod=ge({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)(Wt(t,12))},providers:jl,imports:[ol,bc]}),t})();"undefined"!=typeof window&&window;class Fl{}const Ll="*";function Rl(t,e){return{type:7,name:t,definitions:e,options:{}}}function zl(t,e=null){return{type:4,styles:e,timings:t}}function Vl(t,e=null){return{type:2,steps:t,options:e}}function Bl(t){return{type:6,styles:t,offset:null}}function Hl(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function Gl(t){Promise.resolve(null).then(t)}class Ul{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Gl(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class ql{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,r=0;const i=this.players.length;0==i?Gl(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==i&&this._onFinish()}),t.onDestroy(()=>{++n==i&&this._onDestroy()}),t.onStart(()=>{++r==i&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){let t=0;return this.players.forEach(e=>{const n=e.getPosition();t=Math.min(n,t)}),t}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function Yl(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function $l(t){switch(t.length){case 0:return new Ul;case 1:return t[0];default:return new ql(t)}}function Wl(t,e,n,r,i={},o={}){const s=[],a=[];let u=-1,c=null;if(r.forEach(t=>{const n=t.offset,r=n==u,l=r&&c||{};Object.keys(t).forEach(n=>{let r=n,a=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,s),a){case"!":a=i[n];break;case Ll:a=o[n];break;default:a=e.normalizeStyleValue(n,r,a,s)}l[r]=a}),r||a.push(l),c=l,u=n}),s.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${s.join(t)}`)}return a}function Ql(t,e,n,r){switch(e){case"start":t.onStart(()=>r(n&&Zl(n,"start",t)));break;case"done":t.onDone(()=>r(n&&Zl(n,"done",t)));break;case"destroy":t.onDestroy(()=>r(n&&Zl(n,"destroy",t)))}}function Zl(t,e,n){const r=n.totalTime,i=Xl(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==r?t.totalTime:r,!!n.disabled),o=t._data;return null!=o&&(i._data=o),i}function Xl(t,e,n,r,i="",o=0,s){return{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function Kl(t,e,n){let r;return t instanceof Map?(r=t.get(e),r||t.set(e,r=n)):(r=t[e],r||(r=t[e]=n)),r}function Jl(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let th=(t,e)=>!1,eh=(t,e)=>!1,nh=(t,e,n)=>[];const rh=Yl();(rh||"undefined"!=typeof Element)&&(th=(t,e)=>t.contains(e),eh=(()=>{if(rh||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):eh}})(),nh=(t,e,n)=>{let r=[];if(n)r.push(...t.querySelectorAll(e));else{const n=t.querySelector(e);n&&r.push(n)}return r});let ih=null,oh=!1;function sh(t){ih||(ih=("undefined"!=typeof document?document.body:null)||{},oh=!!ih.style&&"WebkitAppearance"in ih.style);let e=!0;return ih.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in ih.style,!e&&oh)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in ih.style),e}const ah=eh,uh=th,ch=nh;function lh(t){const e={};return Object.keys(t).forEach(n=>{const r=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[r]=t[n]}),e}let hh=(()=>{class t{validateStyleProperty(t){return sh(t)}matchesElement(t,e){return ah(t,e)}containsElement(t,e){return uh(t,e)}query(t,e,n){return ch(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,r,i,o=[],s){return new Ul(n,r)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),fh=(()=>{class t{}return t.NOOP=new hh,t})();const dh="ng-enter",ph="ng-leave",gh="ng-trigger",mh=".ng-trigger",yh="ng-animating",vh=".ng-animating";function _h(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:wh(parseFloat(e[1]),e[2])}function wh(t,e){switch(e){case"s":return 1e3*t;default:return t}}function bh(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let r,i=0,o="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};r=wh(parseFloat(n[1]),n[2]);const s=n[3];null!=s&&(i=wh(parseFloat(s),n[4]));const a=n[5];a&&(o=a)}else r=t;if(!n){let n=!1,o=e.length;r<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),i<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(o,0,`The provided timing value "${t}" is invalid.`)}return{duration:r,delay:i,easing:o}}(t,e,n)}function xh(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function Eh(t,e,n={}){if(e)for(let r in t)n[r]=t[r];else xh(t,n);return n}function Sh(t,e,n){return n?e+":"+n+";":""}function kh(t){let e="";for(let n=0;n<t.style.length;n++){const r=t.style.item(n);e+=Sh(0,r,t.style.getPropertyValue(r))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=Sh(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n]));t.setAttribute("style",e)}function Ch(t,e,n){t.style&&(Object.keys(e).forEach(r=>{const i=jh(r);n&&!n.hasOwnProperty(r)&&(n[r]=t.style[i]),t.style[i]=e[r]}),Yl()&&kh(t))}function Th(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=jh(e);t.style[n]=""}),Yl()&&kh(t))}function Ah(t){return Array.isArray(t)?1==t.length?t[0]:Vl(t):t}const Nh=new RegExp("{{\\s*(.+?)\\s*}}","g");function Mh(t){let e=[];if("string"==typeof t){let n;for(;n=Nh.exec(t);)e.push(n[1]);Nh.lastIndex=0}return e}function Oh(t,e,n){const r=t.toString(),i=r.replace(Nh,(t,r)=>{let i=e[r];return e.hasOwnProperty(r)||(n.push("Please provide a value for the animation param "+r),i=""),i.toString()});return i==r?t:i}function Dh(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const Ih=/-+([a-z0-9])/g;function jh(t){return t.replace(Ih,(...t)=>t[1].toUpperCase())}function Ph(t,e){return 0===t||0===e}function Fh(t,e,n){const r=Object.keys(n);if(r.length&&e.length){let o=e[0],s=[];if(r.forEach(t=>{o.hasOwnProperty(t)||s.push(t),o[t]=n[t]}),s.length)for(var i=1;i<e.length;i++){let n=e[i];s.forEach((function(e){n[e]=Rh(t,e)}))}}return e}function Lh(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error("Unable to resolve animation metadata node #"+e.type)}}function Rh(t,e){return window.getComputedStyle(t)[e]}const zh="*";function Vh(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(t=>function(t,e,n){if(":"==t[0]){const r=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e)<parseFloat(t);default:return e.push(`The transition alias value "${t}" is not supported`),"* => *"}}(t,n);if("function"==typeof r)return void e.push(r);t=r}const r=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const i=r[1],o=r[2],s=r[3];e.push(Gh(i,s)),"<"!=o[0]||i==zh&&s==zh||e.push(Gh(s,i))}(t,n,e)):n.push(t),n}const Bh=new Set(["true","1"]),Hh=new Set(["false","0"]);function Gh(t,e){const n=Bh.has(t)||Hh.has(t),r=Bh.has(e)||Hh.has(e);return(i,o)=>{let s=t==zh||t==i,a=e==zh||e==o;return!s&&n&&"boolean"==typeof i&&(s=i?Bh.has(t):Hh.has(t)),!a&&r&&"boolean"==typeof o&&(a=o?Bh.has(e):Hh.has(e)),s&&a}}const Uh=new RegExp("s*:selfs*,?","g");function qh(t,e,n){return new Yh(t).build(e,n)}class Yh{constructor(t){this._driver=t}build(t,e){const n=new $h(e);return this._resetContextStyleTimingState(n),Lh(this,Ah(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,r=e.depCount=0;const i=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,r=n.name;r.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,i.push(this.visitState(n,e))}),n.name=r}else if(1==t.type){const i=this.visitTransition(t,e);n+=i.queryCount,r+=i.depCount,o.push(i)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:i,transitions:o,queryCount:n,depCount:r,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(n.containsDynamicStyles){const i=new Set,o=r||{};if(n.styles.forEach(t=>{if(Wh(t)){const e=t;Object.keys(e).forEach(t=>{Mh(e[t]).forEach(t=>{o.hasOwnProperty(t)||i.add(t)})})}}),i.size){const n=Dh(i.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=Lh(this,Ah(t.animation),e);return{type:1,matchers:Vh(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Qh(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>Lh(this,t,e)),options:Qh(t.options)}}visitGroup(t,e){const n=e.currentTime;let r=0;const i=t.steps.map(t=>{e.currentTime=n;const i=Lh(this,t,e);return r=Math.max(r,e.currentTime),i});return e.currentTime=r,{type:3,steps:i,options:Qh(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return Zh(bh(t,e).duration,0,"");const r=t;if(r.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=Zh(0,0,"");return t.dynamic=!0,t.strValue=r,t}return n=n||bh(r,e),Zh(n.duration,n.delay,n.easing)}(t.timings,e.errors);let r;e.currentAnimateTimings=n;let i=t.styles?t.styles:Bl({});if(5==i.type)r=this.visitKeyframes(i,e);else{let i=t.styles,o=!1;if(!i){o=!0;const t={};n.easing&&(t.easing=n.easing),i=Bl(t)}e.currentTime+=n.duration+n.delay;const s=this.visitStyle(i,e);s.isEmptyStep=o,r=s}return e.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==Ll?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let r=!1,i=null;return n.forEach(t=>{if(Wh(t)){const e=t,n=e.easing;if(n&&(i=n,delete e.easing),!r)for(let t in e)if(e[t].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:i,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let r=e.currentTime,i=e.currentTime;n&&i>0&&(i-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const o=e.collectedStyles[e.currentQuerySelector],s=o[n];let a=!0;s&&(i!=r&&i>=s.startTime&&r<=s.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${s.startTime}ms" and "${s.endTime}ms" is also being animated in a parallel animation between the times of "${i}ms" and "${r}ms"`),a=!1),i=s.startTime),a&&(o[n]={startTime:i,endTime:r}),e.options&&function(t,e,n){const r=e.params||{},i=Mh(t);i.length&&i.forEach(t=>{r.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let r=0;const i=[];let o=!1,s=!1,a=0;const u=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let u=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(Wh(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(Wh(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=u&&(r++,c=n.offset=u),s=s||c<0||c>1,o=o||c<a,a=c,i.push(c),n});s&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),o&&e.errors.push("Please ensure that all keyframe offsets are in order");const c=t.steps.length;let l=0;r>0&&r<c?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==r&&(l=1/(c-1));const h=c-1,f=e.currentTime,d=e.currentAnimateTimings,p=d.duration;return u.forEach((t,r)=>{const o=l>0?r==h?1:l*r:i[r],s=o*p;e.currentTime=f+d.delay+s,d.duration=s,this._validateStyleAst(t,e),t.offset=o,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:Lh(this,Ah(t.animation),e),options:Qh(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Qh(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Qh(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[i,o]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(Uh,"")),[t=t.replace(/@\*/g,mh).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,vh),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+i:i,Kl(e.collectedStyles,e.currentQuerySelector,{});const s=Lh(this,Ah(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:i,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:s,originalSelector:t.selector,options:Qh(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:bh(t.timings,e.errors,!0);return{type:12,animation:Lh(this,Ah(t.animation),e),timings:n,options:null}}}class $h{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Wh(t){return!Array.isArray(t)&&"object"==typeof t}function Qh(t){var e;return t?(t=xh(t)).params&&(t.params=(e=t.params)?xh(e):null):t={},t}function Zh(t,e,n){return{duration:t,delay:e,easing:n}}function Xh(t,e,n,r,i,o,s=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}class Kh{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const Jh=new RegExp(":enter","g"),tf=new RegExp(":leave","g");function ef(t,e,n,r,i,o={},s={},a,u,c=[]){return(new nf).buildKeyframes(t,e,n,r,i,o,s,a,u,c)}class nf{buildKeyframes(t,e,n,r,i,o,s,a,u,c=[]){u=u||new Kh;const l=new of(t,e,u,r,i,c,[]);l.options=a,l.currentTimeline.setStyles([o],null,l.errors,a),Lh(this,n,l);const h=l.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(s).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([s],null,l.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[Xh(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const r=e.createSubContext(t.options),i=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let r=e.currentTimeline.currentTime;const i=null!=n.duration?_h(n.duration):null,o=null!=n.delay?_h(n.delay):null;return 0!==i&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,i,o);r=Math.max(r,n.duration+n.delay)}),r}visitReference(t,e){e.updateOptions(t.options,!0),Lh(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let r=e;const i=t.options;if(i&&(i.params||i.delay)&&(r=e.createSubContext(i),r.transformIntoNewTimeline(),null!=i.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=rf);const t=_h(i.delay);r.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>Lh(this,t,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let r=e.currentTimeline.currentTime;const i=t.options&&t.options.delay?_h(t.options.delay):0;t.steps.forEach(o=>{const s=e.createSubContext(t.options);i&&s.delayNextStep(i),Lh(this,o,s),r=Math.max(r,s.currentTimeline.currentTime),n.push(s.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return bh(e.params?Oh(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());const i=t.style;5==i.type?this.visitKeyframes(i,e):(e.incrementTime(n.duration),this.visitStyle(i,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();const i=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(i):n.setStyles(t.styles,i,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,r=e.currentTimeline.duration,i=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach(t=>{o.forwardTime((t.offset||0)*i),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(r+i),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,r=t.options||{},i=r.delay?_h(r.delay):0;i&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=rf);let o=n;const s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;let a=null;s.forEach((n,r)=>{e.currentQueryIndex=r;const s=e.createSubContext(t.options,n);i&&s.delayNextStep(i),n===e.element&&(a=s.currentTimeline),Lh(this,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,s.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,r=e.currentTimeline,i=t.timings,o=Math.abs(i.duration),s=o*(e.currentQueryTotal-1);let a=o*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}const u=e.currentTimeline;a&&u.delayNextStep(a);const c=u.currentTime;Lh(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-c+(r.startTime-n.currentTimeline.startTime)}}const rf={};class of{constructor(t,e,n,r,i,o,s,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=rf,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new sf(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let r=this.options;null!=n.duration&&(r.duration=_h(n.duration)),null!=n.delay&&(r.delay=_h(n.delay));const i=n.params;if(i){let t=r.params;t||(t=this.options.params={}),Object.keys(i).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=Oh(i[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const r=e||this.element,i=new of(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(t),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(t){return this.previousNode=rf,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},i=new af(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(i),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,r,i,o){let s=[];if(r&&s.push(this.element),t.length>0){t=(t=t.replace(Jh,"."+this._enterClassName)).replace(tf,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),s.push(...e)}return i||0!=s.length||o.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),s}}class sf{constructor(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new sf(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||Ll,this._currentKeyframe[t]=Ll}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,r){e&&(this._previousKeyframe.easing=e);const i=r&&r.params||{},o=function(t,e){const n={};let r;return t.forEach(t=>{"*"===t?(r=r||Object.keys(e),r.forEach(t=>{n[t]=Ll})):Eh(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(o).forEach(t=>{const e=Oh(o[t],i,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:Ll),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],r=t._styleSummary[e];(!n||r.time>n.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((i,o)=>{const s=Eh(i,!0);Object.keys(s).forEach(n=>{const r=s[n];"!"==r?t.add(n):r==Ll&&e.add(n)}),n||(s.offset=o/this.duration),r.push(s)});const i=t.size?Dh(t.values()):[],o=e.size?Dh(e.values()):[];if(n){const t=r[0],e=xh(t);t.offset=0,e.offset=1,r=[t,e]}return Xh(this.element,r,i,o,this.duration,this.startTime,this.easing,!1)}}class af extends sf{constructor(t,e,n,r,i,o,s=!1){super(t,e,o.delay),this.element=e,this.keyframes=n,this.preStyleProps=r,this.postStyleProps=i,this._stretchStartingKeyframe=s,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const i=[],o=n+e,s=e/o,a=Eh(t[0],!1);a.offset=0,i.push(a);const u=Eh(t[0],!1);u.offset=uf(s),i.push(u);const c=t.length-1;for(let r=1;r<=c;r++){let s=Eh(t[r],!1);s.offset=uf((e+s.offset*n)/o),i.push(s)}n=o,e=0,r="",t=i}return Xh(this.element,t,this.preStyleProps,this.postStyleProps,n,e,r,!0)}}function uf(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class cf{}class lf extends cf{normalizePropertyName(t,e){return jh(t)}normalizeStyleValue(t,e,n,r){let i="";const o=n.toString().trim();if(hf[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&r.push(`Please provide a CSS unit value for ${t}:${n}`)}return o+i}}const hf=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function ff(t,e,n,r,i,o,s,a,u,c,l,h,f){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:u,preStyleProps:c,postStyleProps:l,totalTime:h,errors:f}}const df={};class pf{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,r){return function(t,e,n,r,i){return t.some(t=>t(e,n,r,i))}(this.ast.matchers,t,e,n,r)}buildStyles(t,e,n){const r=this._stateStyles["*"],i=this._stateStyles[t],o=r?r.buildStyles(e,n):{};return i?i.buildStyles(e,n):o}build(t,e,n,r,i,o,s,a,u,c){const l=[],h=this.ast.options&&this.ast.options.params||df,f=this.buildStyles(n,s&&s.params||df,l),d=a&&a.params||df,p=this.buildStyles(r,d,l),g=new Set,m=new Map,y=new Map,v="void"===r,_={params:Object.assign(Object.assign({},h),d)},w=c?[]:ef(t,e,this.ast.animation,i,o,f,p,_,u,l);let b=0;if(w.forEach(t=>{b=Math.max(t.duration+t.delay,b)}),l.length)return ff(e,this._triggerName,n,r,v,f,p,[],[],m,y,b,l);w.forEach(t=>{const n=t.element,r=Kl(m,n,{});t.preStyleProps.forEach(t=>r[t]=!0);const i=Kl(y,n,{});t.postStyleProps.forEach(t=>i[t]=!0),n!==e&&g.add(n)});const x=Dh(g.values());return ff(e,this._triggerName,n,r,v,f,p,w,x,m,y,b)}}class gf{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},r=xh(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(r[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const i=t;Object.keys(i).forEach(t=>{let o=i[t];o.length>1&&(o=Oh(o,r,e)),n[t]=o})}}),n}}class mf{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new gf(t.style,t.options&&t.options.params||{})}),yf(this.states,"true","1"),yf(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new pf(t,e,this.states))}),this.fallbackTransition=new pf(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,r){return this.transitionFactories.find(i=>i.match(t,e,n,r))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function yf(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const vf=new Kh;class _f{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],r=qh(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=r}_buildPlayer(t,e,n){const r=t.element,i=Wl(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,i,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const r=[],i=this._animations[t];let o;const s=new Map;if(i?(o=ef(this._driver,e,i,dh,ph,{},{},n,vf,r),o.forEach(t=>{const e=Kl(s,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(r.push("The requested animation doesn't exist or has already been destroyed"),o=[]),r.length)throw new Error("Unable to create the animation due to the following errors: "+r.join("\n"));s.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,Ll)})});const a=$l(o.map(t=>{const e=s.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e}listen(t,e,n,r){const i=Xl(e,"","","");return Ql(this._getPlayer(t),n,i,r),()=>{}}command(t,e,n,r){if("register"==n)return void this.register(t,r[0]);if("create"==n)return void this.create(t,e,r[0]||{});const i=this._getPlayer(t);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const wf="ng-animate-queued",bf="ng-animate-disabled",xf=".ng-animate-disabled",Ef=[],Sf={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},kf={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Cf{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(r=n?t.value:t)?r:null,n){const e=xh(t);delete e.value,this.options=e}else this.options={};var r;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const Tf="void",Af=new Cf(Tf);class Nf{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Ff(e,this._hostClassName)}listen(t,e,n,r){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(i=n)&&"done"!=i)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var i;const o=Kl(this._elementListeners,t,[]),s={name:e,phase:n,callback:r};o.push(s);const a=Kl(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Ff(t,gh),Ff(t,"ng-trigger-"+e),a[e]=Af),()=>{this._engine.afterFlush(()=>{const t=o.indexOf(s);t>=0&&o.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,r=!0){const i=this._getTrigger(e),o=new Of(this.id,e,t);let s=this._engine.statesByElement.get(t);s||(Ff(t,gh),Ff(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));let a=s[e];const u=new Cf(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&u.absorbOptions(a.options),s[e]=u,a||(a=Af),u.value!==Tf&&a.value===u.value){if(!function(t,e){const n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(let i=0;i<n.length;i++){const r=n[i];if(!e.hasOwnProperty(r)||t[r]!==e[r])return!1}return!0}(a.params,u.params)){const e=[],n=i.matchStyles(a.value,a.params,e),r=i.matchStyles(u.value,u.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{Th(t,n),Ch(t,r)})}return}const c=Kl(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let l=i.matchTransition(a.value,u.value,t,u.params),h=!1;if(!l){if(!r)return;l=i.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:l,fromState:a,toState:u,player:o,isFallbackTransition:h}),h||(Ff(t,wf),o.onStart(()=>{Lf(t,wf)})),o.onDone(()=>{let e=this.players.indexOf(o);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(o);t>=0&&n.splice(t,1)}}),this.players.push(o),c.push(o),o}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,mh,!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,r){const i=this._engine.statesByElement.get(t);if(i){const o=[];if(Object.keys(i).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,Tf,r);n&&o.push(n)}}),o.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&$l(o).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const n=new Set;e.forEach(e=>{const r=e.name;if(n.has(r))return;n.add(r);const i=this._triggers[r].fallbackTransition,o=this._engine.statesByElement.get(t)[r]||Af,s=new Cf(Tf),a=new Of(this.id,r,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:r,transition:i,fromState:o,toState:s,player:a,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)r=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)n.markElementAsRemoved(this.id,t,!1,e);else{const r=t.__ng_removed;r&&r!==Sf||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Ff(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const i=n.element,o=this._elementListeners.get(i);o&&o.forEach(e=>{if(e.name==n.triggerName){const r=Xl(i,n.triggerName,n.fromState.value,n.toState.value);r._data=t,Ql(n.player,e.phase,r,e.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,r=e.transition.ast.depCount;return 0==n||0==r?n-r:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class Mf{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new Nf(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let r=!1;for(let i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,e)){this._namespaceList.splice(i+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let r=0;r<t.length;r++){const i=n[t[r]].namespaceId;if(i){const t=this._fetchNamespace(i);t&&e.add(t)}}}return e}trigger(t,e,n,r){if(Df(e)){const i=this._fetchNamespace(t);if(i)return i.trigger(e,n,r),!0}return!1}insertNode(t,e,n,r){if(!Df(e))return;const i=e.__ng_removed;if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const r=this._fetchNamespace(t);r&&r.insertNode(e,n)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Ff(t,bf)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Lf(t,bf))}removeNode(t,e,n,r){if(Df(e)){const i=t?this._fetchNamespace(t):null;if(i?i.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,n,r){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,r,i){return Df(e)?this._fetchNamespace(t).listen(e,n,r,i):()=>{}}_buildInstruction(t,e,n,r,i){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e,i)}destroyInnerAnimations(t){let e=this.driver.query(t,mh,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,vh,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return $l(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=Sf,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,xf)&&this.markElementAsDisabled(t,!1),this.driver.query(t,xf,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)Ff(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{e=this._flushAnimations(n,t)}finally{for(let t=0;t<n.length;t++)n[t]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?$l(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))}_flushAnimations(t,e){const n=new Kh,r=[],i=new Map,o=[],s=new Map,a=new Map,u=new Map,c=new Set;this.disabledNodes.forEach(t=>{c.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n<e.length;n++)c.add(e[n])});const l=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=Pf(h,this.collectedEnterElements),d=new Map;let p=0;f.forEach((t,e)=>{const n=dh+p++;d.set(e,n),t.forEach(t=>Ff(t,n))});const g=[],m=new Set,y=new Set;for(let M=0;M<this.collectedLeaveElements.length;M++){const t=this.collectedLeaveElements[M],e=t.__ng_removed;e&&e.setForRemoval&&(g.push(t),m.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>m.add(t)):y.add(t))}const v=new Map,_=Pf(h,Array.from(m));_.forEach((t,e)=>{const n=ph+p++;v.set(e,n),t.forEach(t=>Ff(t,n))}),t.push(()=>{f.forEach((t,e)=>{const n=d.get(e);t.forEach(t=>Lf(t,n))}),_.forEach((t,e)=>{const n=v.get(e);t.forEach(t=>Lf(t,n))}),g.forEach(t=>{this.processLeaveNode(t)})});const w=[],b=[];for(let M=this._namespaceList.length-1;M>=0;M--)this._namespaceList[M].drainQueuedTransitions(e).forEach(t=>{const e=t.player,i=t.element;if(w.push(e),this.collectedEnterElements.length){const t=i.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const c=!l||!this.driver.containsElement(l,i),h=v.get(i),f=d.get(i),p=this._buildInstruction(t,n,f,h,c);if(p.errors&&p.errors.length)b.push(p);else{if(c)return e.onStart(()=>Th(i,p.fromStyles)),e.onDestroy(()=>Ch(i,p.toStyles)),void r.push(e);if(t.isFallbackTransition)return e.onStart(()=>Th(i,p.fromStyles)),e.onDestroy(()=>Ch(i,p.toStyles)),void r.push(e);p.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(i,p.timelines),o.push({instruction:p,player:e,element:i}),p.queriedElements.forEach(t=>Kl(s,t,[]).push(e)),p.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=a.get(e);t||a.set(e,t=new Set),n.forEach(e=>t.add(e))}}),p.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let r=u.get(e);r||u.set(e,r=new Set),n.forEach(t=>r.add(t))})}});if(b.length){const t=[];b.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),w.forEach(t=>t.destroy()),this.reportError(t)}const x=new Map,E=new Map;o.forEach(t=>{const e=t.element;n.has(e)&&(E.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,x))}),r.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{Kl(x,e,[]).push(t),t.destroy()})});const S=g.filter(t=>zf(t,a,u)),k=new Map;jf(k,this.driver,y,u,Ll).forEach(t=>{zf(t,a,u)&&S.push(t)});const C=new Map;f.forEach((t,e)=>{jf(C,this.driver,new Set(t),a,"!")}),S.forEach(t=>{const e=k.get(t),n=C.get(t);k.set(t,Object.assign(Object.assign({},e),n))});const T=[],A=[],N={};o.forEach(t=>{const{element:e,player:o,instruction:s}=t;if(n.has(e)){if(c.has(e))return o.onDestroy(()=>Ch(e,s.toStyles)),o.disabled=!0,o.overrideTotalTime(s.totalTime),void r.push(o);let t=N;if(E.size>1){let n=e;const r=[];for(;n=n.parentNode;){const e=E.get(n);if(e){t=e;break}r.push(n)}r.forEach(e=>E.set(e,t))}const n=this._buildAnimation(o.namespaceId,s,x,i,C,k);if(o.setRealPlayer(n),t===N)T.push(o);else{const e=this.playersByElement.get(t);e&&e.length&&(o.parentPlayer=$l(e)),r.push(o)}}else Th(e,s.fromStyles),o.onDestroy(()=>Ch(e,s.toStyles)),A.push(o),c.has(e)&&r.push(o)}),A.forEach(t=>{const e=i.get(t.element);if(e&&e.length){const n=$l(e);t.setRealPlayer(n)}}),r.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let M=0;M<g.length;M++){const t=g[M],e=t.__ng_removed;if(Lf(t,ph),e&&e.hasAnimation)continue;let n=[];if(s.size){let e=s.get(t);e&&e.length&&n.push(...e);let r=this.driver.query(t,vh,!0);for(let t=0;t<r.length;t++){let e=s.get(r[t]);e&&e.length&&n.push(...e)}}const r=n.filter(t=>!t.destroyed);r.length?Rf(this,t,r):this.processLeaveNode(t)}return g.length=0,T.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),T}elementContainsData(t,e){let n=!1;const r=e.__ng_removed;return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,r,i){let o=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(o=e)}else{const e=this.playersByElement.get(t);if(e){const t=!i||i==Tf;e.forEach(e=>{e.queued||(t||e.triggerName==r)&&o.push(e)})}}return(n||r)&&(o=o.filter(t=>!(n&&n!=t.namespaceId||r&&r!=t.triggerName))),o}_beforeAnimationBuild(t,e,n){const r=e.element,i=e.isRemovalTransition?void 0:t,o=e.isRemovalTransition?void 0:e.triggerName;for(const s of e.timelines){const t=s.element,a=t!==r,u=Kl(n,t,[]);this._getPreviousPlayers(t,a,i,o,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),u.push(t)})}Th(r,e.fromStyles)}_buildAnimation(t,e,n,r,i,o){const s=e.triggerName,a=e.element,u=[],c=new Set,l=new Set,h=e.timelines.map(e=>{const h=e.element;c.add(h);const f=h.__ng_removed;if(f&&f.removedBeforeQueried)return new Ul(e.duration,e.delay);const d=h!==a,p=function(t){const e=[];return function t(e,n){for(let r=0;r<e.length;r++){const i=e[r];i instanceof ql?t(i.players,n):n.push(i)}}(t,e),e}((n.get(h)||Ef).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===h),g=i.get(h),m=o.get(h),y=Wl(0,this._normalizer,0,e.keyframes,g,m),v=this._buildPlayer(e,y,p);if(e.subTimeline&&r&&l.add(h),d){const e=new Of(t,s,h);e.setRealPlayer(v),u.push(e)}return v});u.forEach(t=>{Kl(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let r;if(t instanceof Map){if(r=t.get(e),r){if(r.length){const t=r.indexOf(n);r.splice(t,1)}0==r.length&&t.delete(e)}}else if(r=t[e],r){if(r.length){const t=r.indexOf(n);r.splice(t,1)}0==r.length&&delete t[e]}return r}(this.playersByQueriedElement,t.element,t))}),c.forEach(t=>Ff(t,yh));const f=$l(h);return f.onDestroy(()=>{c.forEach(t=>Lf(t,yh)),Ch(a,e.toStyles)}),l.forEach(t=>{Kl(r,t,[]).push(f)}),f}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Ul(t.duration,t.delay)}}class Of{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new Ul,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>Ql(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Kl(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Df(t){return t&&1===t.nodeType}function If(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function jf(t,e,n,r,i){const o=[];n.forEach(t=>o.push(If(t)));const s=[];r.forEach((n,r)=>{const o={};n.forEach(t=>{const n=o[t]=e.computeStyle(r,t,i);n&&0!=n.length||(r.__ng_removed=kf,s.push(r))}),t.set(r,o)});let a=0;return n.forEach(t=>If(t,o[a++])),s}function Pf(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const r=new Set(e),i=new Map;return e.forEach(t=>{const e=function t(e){if(!e)return 1;let o=i.get(e);if(o)return o;const s=e.parentNode;return o=n.has(s)?s:r.has(s)?1:t(s),i.set(e,o),o}(t);1!==e&&n.get(e).push(t)}),n}function Ff(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Lf(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function Rf(t,e,n){$l(n).onDone(()=>t.processLeaveNode(e))}function zf(t,e,n){const r=n.get(t);if(!r)return!1;let i=e.get(t);return i?r.forEach(t=>i.add(t)):e.set(t,r),n.delete(t),!0}class Vf{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Mf(t,e,n),this._timelineEngine=new _f(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,r,i){const o=t+"-"+r;let s=this._triggerCache[o];if(!s){const t=[],e=qh(this._driver,i,t);if(t.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);s=function(t,e){return new mf(t,e)}(r,e),this._triggerCache[o]=s}this._transitionEngine.registerTrigger(e,r,s)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)}onRemove(t,e,n,r){this._transitionEngine.removeNode(t,e,r||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,r){if("@"==n.charAt(0)){const[t,i]=Jl(n);this._timelineEngine.command(t,e,i,r)}else this._transitionEngine.trigger(t,e,n,r)}listen(t,e,n,r,i){if("@"==n.charAt(0)){const[t,r]=Jl(n);return this._timelineEngine.listen(t,e,r,i)}return this._transitionEngine.listen(t,e,n,r,i)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Bf(t,e){let n=null,r=null;return Array.isArray(e)&&e.length?(n=Gf(e[0]),e.length>1&&(r=Gf(e[e.length-1]))):e&&(n=Gf(e)),n||r?new Hf(t,n,r):null}let Hf=(()=>{class t{constructor(e,n,r){this._element=e,this._startStyles=n,this._endStyles=r,this._state=0;let i=t.initialStylesByElement.get(e);i||t.initialStylesByElement.set(e,i={}),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&Ch(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ch(this._element,this._initialStyles),this._endStyles&&(Ch(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Th(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Th(this._element,this._endStyles),this._endStyles=null),Ch(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Gf(t){let e=null;const n=Object.keys(t);for(let r=0;r<n.length;r++){const i=n[r];Uf(i)&&(e=e||{},e[i]=t[i])}return e}function Uf(t){return"display"===t||"position"===t}const qf="animation",Yf="animationend";class $f{constructor(t,e,n,r,i,o,s){this._element=t,this._name=e,this._duration=n,this._delay=r,this._easing=i,this._fillMode=o,this._onDoneFn=s,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){!function(t,e){const n=Jf(t,"").trim();n.length&&(function(t,e){let n=0;for(let r=0;r<t.length;r++)","===t.charAt(r)&&n++}(n),e=`${n}, ${e}`),Kf(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Xf(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){Wf(this._element,this._name,"paused")}resume(){Wf(this._element,this._name,"running")}setPosition(t){const e=Qf(this._element,this._name);this._position=t*this._duration,Kf(this._element,"Delay",`-${this._position}ms`,e)}getPosition(){return this._position}_handleCallback(t){const e=t._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Xf(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=Jf(t,"").split(","),r=Zf(n,e);r>=0&&(n.splice(r,1),Kf(t,"",n.join(",")))}(this._element,this._name))}}function Wf(t,e,n){Kf(t,"PlayState",n,Qf(t,e))}function Qf(t,e){const n=Jf(t,"");return n.indexOf(",")>0?Zf(n.split(","),e):Zf([n],e)}function Zf(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function Xf(t,e,n){n?t.removeEventListener(Yf,e):t.addEventListener(Yf,e)}function Kf(t,e,n,r){const i=qf+e;if(null!=r){const e=t.style[i];if(e.length){const t=e.split(",");t[r]=n,n=t.join(",")}}t.style[i]=n}function Jf(t,e){return t.style[qf+e]}class td{constructor(t,e,n,r,i,o,s,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=r,this._delay=i,this._finalStyles=s,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=r+i,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new $f(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:Rh(this.element,n))})}this.currentSnapshot=t}}class ed extends Ul{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=lh(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class nd{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return sh(t)}matchesElement(t,e){return ah(t,e)}containsElement(t,e){return uh(t,e)}query(t,e,n){return ch(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>lh(t));let r=`@keyframes ${e} {\n`,i="";n.forEach(t=>{i=" ";const e=parseFloat(t.offset);r+=`${i}${100*e}% {\n`,i+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(r+=`${i}animation-timing-function: ${n};\n`));default:return void(r+=`${i}${e}: ${n};\n`)}}),r+=i+"}\n"}),r+="}\n";const o=document.createElement("style");return o.innerHTML=r,o}animate(t,e,n,r,i,o=[],s){s&&this._notifyFaultyScrubber();const a=o.filter(t=>t instanceof td),u={};Ph(n,r)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>u[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=Fh(t,e,u));if(0==n)return new ed(t,c);const l="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,l,e);document.querySelector("head").appendChild(h);const f=Bf(t,e),d=new td(t,e,l,n,r,i,c,f);return d.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),d}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class rd{constructor(t,e,n,r){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:Rh(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class id{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(od().toString()),this._cssKeyframesDriver=new nd}validateStyleProperty(t){return sh(t)}matchesElement(t,e){return ah(t,e)}containsElement(t,e){return uh(t,e)}query(t,e,n){return ch(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,r,i,o=[],s){if(!s&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,r,i,o);const a={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(a.easing=i);const u={},c=o.filter(t=>t instanceof rd);Ph(n,r)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>u[t]=e[t])});const l=Bf(t,e=Fh(t,e=e.map(t=>Eh(t,!1)),u));return new rd(t,e,a,l)}}function od(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let sd=(()=>{class t extends Fl{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:ae.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?Vl(t):t;return cd(this._renderer,null,e,"register",[n]),new ad(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(Wt(ba),Wt(Wc))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();class ad extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new ud(this._id,t,e||{},this._renderer)}}class ud{constructor(t,e,n,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return cd(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function cd(t,e,n,r,i){return t.setProperty(e,`@@${n}:${r}`,i)}const ld="@",hd="@.disabled";let fd=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new dd("",n,this.engine),this._rendererCache.set(n,t)),t}const r=e.id,i=e.id+"-"+this._currentId;this._currentId++,this.engine.register(i,t);const o=e=>{Array.isArray(e)?e.forEach(o):this.engine.registerTrigger(r,i,t,e.name,e)};return e.data.animation.forEach(o),new pd(this,i,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&t<this._microtaskId?this._zone.run(()=>e(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(Wt(ba),Wt(Vf),Wt(Ju))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();class dd{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,r){this.delegate.setAttribute(t,e,n,r)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,r){this.delegate.setStyle(t,e,n,r)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){e.charAt(0)==ld&&e==hd?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class pd extends dd{constructor(t,e,n,r){super(e,n,r),this.factory=t,this.namespaceId=e}setProperty(t,e,n){e.charAt(0)==ld?"."==e.charAt(1)&&e==hd?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if(e.charAt(0)==ld){const r=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let i=e.substr(1),o="";return i.charAt(0)!=ld&&([i,o]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(i)),this.engine.listen(this.namespaceId,r,i,o,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let gd=(()=>{class t extends Vf{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(Wt(Wc),Wt(fh),Wt(cf))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();const md=[{provide:fh,useFactory:function(){return"function"==typeof od()?new id:new nd}},{provide:new Lt("AnimationModuleType"),useValue:"BrowserAnimations"},{provide:Fl,useClass:sd},{provide:cf,useFactory:function(){return new lf}},{provide:Vf,useClass:gd},{provide:ba,useFactory:function(t,e,n){return new fd(t,e,n)},deps:[bl,Vf,Ju]}];let yd=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},providers:md,imports:[Pl]}),t})();class vd{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class _d extends vd{constructor(t,e,n,r){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=r}}class wd extends vd{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class bd extends vd{constructor(t){super(),this.element=t instanceof _a?t.nativeElement:t}}class xd extends class extends class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof _d?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof wd?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof bd?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(t,e,n,r,i){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=r,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=i}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}{}function Ed(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function Sd(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}const kd=new Cc(Ec);class Cd{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new Td(t,this.dueTime,this.scheduler))}}class Td extends y{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Ad,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function Ad(t){t.debouncedNext()}function Nd(){}var Md=function(t){return null==t?Nd:function(){return this.querySelector(t)}};function Od(){return[]}var Dd=function(t){return null==t?Od:function(){return this.querySelectorAll(t)}},Id=function(t){return function(){return this.matches(t)}},jd=function(t){return new Array(t.length)};function Pd(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function Fd(t,e,n,r,i,o){for(var s,a=0,u=e.length,c=o.length;a<c;++a)(s=e[a])?(s.__data__=o[a],r[a]=s):n[a]=new Pd(t,o[a]);for(;a<u;++a)(s=e[a])&&(i[a]=s)}function Ld(t,e,n,r,i,o,s){var a,u,c,l={},h=e.length,f=o.length,d=new Array(h);for(a=0;a<h;++a)(u=e[a])&&(d[a]=c="$"+s.call(u,u.__data__,a,e),c in l?i[a]=u:l[c]=u);for(a=0;a<f;++a)(u=l[c="$"+s.call(t,o[a],a,o)])?(r[a]=u,u.__data__=o[a],l[c]=null):n[a]=new Pd(t,o[a]);for(a=0;a<h;++a)(u=e[a])&&l[d[a]]===u&&(i[a]=u)}function Rd(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}Pd.prototype={constructor:Pd,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var zd="http://www.w3.org/1999/xhtml",Vd={svg:"http://www.w3.org/2000/svg",xhtml:zd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Bd=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Vd.hasOwnProperty(e)?{space:Vd[e],local:t}:t};function Hd(t){return function(){this.removeAttribute(t)}}function Gd(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ud(t,e){return function(){this.setAttribute(t,e)}}function qd(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Yd(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function $d(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var Wd=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function Qd(t){return function(){this.style.removeProperty(t)}}function Zd(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Xd(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Kd(t,e){return t.style.getPropertyValue(e)||Wd(t).getComputedStyle(t,null).getPropertyValue(e)}function Jd(t){return function(){delete this[t]}}function tp(t,e){return function(){this[t]=e}}function ep(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function np(t){return t.trim().split(/^|\s+/)}function rp(t){return t.classList||new ip(t)}function ip(t){this._node=t,this._names=np(t.getAttribute("class")||"")}function op(t,e){for(var n=rp(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function sp(t,e){for(var n=rp(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function ap(t){return function(){op(this,t)}}function up(t){return function(){sp(this,t)}}function cp(t,e){return function(){(e.apply(this,arguments)?op:sp)(this,t)}}function lp(){this.textContent=""}function hp(t){return function(){this.textContent=t}}function fp(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function dp(){this.innerHTML=""}function pp(t){return function(){this.innerHTML=t}}function gp(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function mp(){this.nextSibling&&this.parentNode.appendChild(this)}function yp(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function vp(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===zd&&e.documentElement.namespaceURI===zd?e.createElement(t):e.createElementNS(n,t)}}function _p(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}ip.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var wp=function(t){var e=Bd(t);return(e.local?_p:vp)(e)};function bp(){return null}function xp(){var t=this.parentNode;t&&t.removeChild(this)}function Ep(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Sp(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var kp={},Cp=null;function Tp(t,e,n){return t=Ap(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function Ap(t,e,n){return function(r){var i=Cp;Cp=r;try{t.call(this,this.__data__,e,n)}finally{Cp=i}}}function Np(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function Mp(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?e.length=i:delete this.__on}}}function Op(t,e,n){var r=kp.hasOwnProperty(t.type)?Tp:Ap;return function(i,o,s){var a,u=this.__on,c=r(e,o,s);if(u)for(var l=0,h=u.length;l<h;++l)if((a=u[l]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=c,a.capture=n),void(a.value=e);this.addEventListener(t.type,c,n),a={type:t.type,name:t.name,value:e,listener:c,capture:n},u?u.push(a):this.__on=[a]}}function Dp(t,e,n){var r=Wd(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function Ip(t,e){return function(){return Dp(this,t,e)}}function jp(t,e){return function(){return Dp(this,t,e.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(kp={mouseenter:"mouseover",mouseleave:"mouseout"}));var Pp=[null];function Fp(t,e){this._groups=t,this._parents=e}function Lp(){return new Fp([[document.documentElement]],Pp)}Fp.prototype=Lp.prototype={constructor:Fp,select:function(t){"function"!=typeof t&&(t=Md(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,s,a=e[i],u=a.length,c=r[i]=new Array(u),l=0;l<u;++l)(o=a[l])&&(s=t.call(o,o.__data__,l,a))&&("__data__"in o&&(s.__data__=o.__data__),c[l]=s);return new Fp(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=Dd(t));for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var s,a=e[o],u=a.length,c=0;c<u;++c)(s=a[c])&&(r.push(t.call(s,s.__data__,c,a)),i.push(s));return new Fp(r,i)},filter:function(t){"function"!=typeof t&&(t=Id(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,s=e[i],a=s.length,u=r[i]=[],c=0;c<a;++c)(o=s[c])&&t.call(o,o.__data__,c,s)&&u.push(o);return new Fp(r,this._parents)},data:function(t,e){if(!t)return p=new Array(this.size()),l=-1,this.each((function(t){p[++l]=t})),p;var n,r=e?Ld:Fd,i=this._parents,o=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var s=o.length,a=new Array(s),u=new Array(s),c=new Array(s),l=0;l<s;++l){var h=i[l],f=o[l],d=f.length,p=t.call(h,h&&h.__data__,l,i),g=p.length,m=u[l]=new Array(g),y=a[l]=new Array(g);r(h,f,m,y,c[l]=new Array(d),p,e);for(var v,_,w=0,b=0;w<g;++w)if(v=m[w]){for(w>=b&&(b=w+1);!(_=y[b])&&++b<g;);v._next=_||null}}return(a=new Fp(a,i))._enter=u,a._exit=c,a},enter:function(){return new Fp(this._enter||this._groups.map(jd),this._parents)},exit:function(){return new Fp(this._exit||this._groups.map(jd),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,o=this.exit();return r="function"==typeof t?t(r):r.append(t+""),null!=e&&(i=e(i)),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(t){for(var e=this._groups,n=t._groups,r=e.length,i=Math.min(r,n.length),o=new Array(r),s=0;s<i;++s)for(var a,u=e[s],c=n[s],l=u.length,h=o[s]=new Array(l),f=0;f<l;++f)(a=u[f]||c[f])&&(h[f]=a);for(;s<r;++s)o[s]=e[s];return new Fp(o,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,s=i[o];--o>=0;)(r=i[o])&&(s&&4^r.compareDocumentPosition(s)&&s.parentNode.insertBefore(r,s),s=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Rd);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var s,a=n[o],u=a.length,c=i[o]=new Array(u),l=0;l<u;++l)(s=a[l])&&(c[l]=s);c.sort(e)}return new Fp(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],s=0,a=o.length;s<a;++s)(i=o[s])&&t.call(i,i.__data__,s,o);return this},attr:function(t,e){var n=Bd(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?Gd:Hd:"function"==typeof e?n.local?$d:Yd:n.local?qd:Ud)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?Qd:"function"==typeof e?Xd:Zd)(t,e,null==n?"":n)):Kd(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Jd:"function"==typeof e?ep:tp)(t,e)):this.node()[t]},classed:function(t,e){var n=np(t+"");if(arguments.length<2){for(var r=rp(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?cp:e?ap:up)(n,e))},text:function(t){return arguments.length?this.each(null==t?lp:("function"==typeof t?fp:hp)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?dp:("function"==typeof t?gp:pp)(t)):this.node().innerHTML},raise:function(){return this.each(mp)},lower:function(){return this.each(yp)},append:function(t){var e="function"==typeof t?t:wp(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:wp(t),r=null==e?bp:"function"==typeof e?e:Md(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(xp)},clone:function(t){return this.select(t?Sp:Ep)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,o=Np(t+""),s=o.length;if(!(arguments.length<2)){for(a=e?Op:Mp,null==n&&(n=!1),r=0;r<s;++r)this.each(a(o[r],e,n));return this}var a=this.node().__on;if(a)for(var u,c=0,l=a.length;c<l;++c)for(r=0,u=a[c];r<s;++r)if((i=o[r]).type===u.type&&i.name===u.name)return u.value},dispatch:function(t,e){return this.each(("function"==typeof e?jp:Ip)(t,e))}};var Rp=Lp,zp=function(t){return"string"==typeof t?new Fp([[document.querySelector(t)]],[document.documentElement]):new Fp([[t]],Pp)},Vp={value:function(){}};function Bp(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new Hp(r)}function Hp(t){this._=t}function Gp(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function Up(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function qp(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=Vp,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}Hp.prototype=Bp.prototype={constructor:Hp,on:function(t,e){var n,r=this._,i=Gp(t+"",r),o=-1,s=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++o<s;)if(n=(t=i[o]).type)r[n]=qp(r[n],t.name,e);else if(null==e)for(n in r)r[n]=qp(r[n],t.name,null);return this}for(;++o<s;)if((n=(t=i[o]).type)&&(n=Up(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Hp(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(r=this._[t]).length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};var Yp=Bp,$p=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function Wp(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Qp(){}var Zp=.7,Xp=1/Zp,Kp="\\s*([+-]?\\d+)\\s*",Jp="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",tg="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",eg=/^#([0-9a-f]{3,8})$/,ng=new RegExp("^rgb\\("+[Kp,Kp,Kp]+"\\)$"),rg=new RegExp("^rgb\\("+[tg,tg,tg]+"\\)$"),ig=new RegExp("^rgba\\("+[Kp,Kp,Kp,Jp]+"\\)$"),og=new RegExp("^rgba\\("+[tg,tg,tg,Jp]+"\\)$"),sg=new RegExp("^hsl\\("+[Jp,tg,tg]+"\\)$"),ag=new RegExp("^hsla\\("+[Jp,tg,tg,Jp]+"\\)$"),ug={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function cg(){return this.rgb().formatHex()}function lg(){return this.rgb().formatRgb()}function hg(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=eg.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?fg(e):3===n?new mg(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?dg(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?dg(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=ng.exec(t))?new mg(e[1],e[2],e[3],1):(e=rg.exec(t))?new mg(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=ig.exec(t))?dg(e[1],e[2],e[3],e[4]):(e=og.exec(t))?dg(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=sg.exec(t))?wg(e[1],e[2]/100,e[3]/100,1):(e=ag.exec(t))?wg(e[1],e[2]/100,e[3]/100,e[4]):ug.hasOwnProperty(t)?fg(ug[t]):"transparent"===t?new mg(NaN,NaN,NaN,0):null}function fg(t){return new mg(t>>16&255,t>>8&255,255&t,1)}function dg(t,e,n,r){return r<=0&&(t=e=n=NaN),new mg(t,e,n,r)}function pg(t){return t instanceof Qp||(t=hg(t)),t?new mg((t=t.rgb()).r,t.g,t.b,t.opacity):new mg}function gg(t,e,n,r){return 1===arguments.length?pg(t):new mg(t,e,n,null==r?1:r)}function mg(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function yg(){return"#"+_g(this.r)+_g(this.g)+_g(this.b)}function vg(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function _g(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function wg(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new xg(t,e,n,r)}function bg(t){if(t instanceof xg)return new xg(t.h,t.s,t.l,t.opacity);if(t instanceof Qp||(t=hg(t)),!t)return new xg;if(t instanceof xg)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,a=o-i,u=(o+i)/2;return a?(s=e===o?(n-r)/a+6*(n<r):n===o?(r-e)/a+2:(e-n)/a+4,a/=u<.5?o+i:2-o-i,s*=60):a=u>0&&u<1?0:s,new xg(s,a,u,t.opacity)}function xg(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Eg(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Sg(t,e,n,r,i){var o=t*t,s=o*t;return((1-3*t+3*o-s)*e+(4-6*o+3*s)*n+(1+3*t+3*o-3*s)*r+s*i)/6}$p(Qp,hg,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:cg,formatHex:cg,formatHsl:function(){return bg(this).formatHsl()},formatRgb:lg,toString:lg}),$p(mg,gg,Wp(Qp,{brighter:function(t){return t=null==t?Xp:Math.pow(Xp,t),new mg(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Zp:Math.pow(Zp,t),new mg(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:yg,formatHex:yg,formatRgb:vg,toString:vg})),$p(xg,(function(t,e,n,r){return 1===arguments.length?bg(t):new xg(t,e,n,null==r?1:r)}),Wp(Qp,{brighter:function(t){return t=null==t?Xp:Math.pow(Xp,t),new xg(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Zp:Math.pow(Zp,t),new xg(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new mg(Eg(t>=240?t-240:t+120,i,r),Eg(t,i,r),Eg(t<120?t+240:t-120,i,r),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},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var kg=function(t){return function(){return t}};function Cg(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):kg(isNaN(t)?e:t)}var Tg=function t(e){var n=function(t){return 1==(t=+t)?Cg:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):kg(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=gg(t)).r,(e=gg(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),s=Cg(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=s(e),t+""}}return r.gamma=t,r}(1);function Ag(t){return function(e){var n,r,i=e.length,o=new Array(i),s=new Array(i),a=new Array(i);for(n=0;n<i;++n)r=gg(e[n]),o[n]=r.r||0,s[n]=r.g||0,a[n]=r.b||0;return o=t(o),s=t(s),a=t(a),r.opacity=1,function(t){return r.r=o(t),r.g=s(t),r.b=a(t),r+""}}}Ag((function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1];return Sg((n-r/e)*e,r>0?t[r-1]:2*i-o,i,o,r<e-1?t[r+2]:2*o-i)}})),Ag((function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e);return Sg((n-r/e)*e,t[(r+e-1)%e],t[r%e],t[(r+1)%e],t[(r+2)%e])}}));var Ng=function(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}};function Mg(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),s=new Array(r);for(n=0;n<i;++n)o[n]=zg(t[n],e[n]);for(;n<r;++n)s[n]=e[n];return function(t){for(n=0;n<i;++n)s[n]=o[n](t);return s}}var Og,Dg,Ig=function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}},jg=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},Pg=function(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=zg(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}},Fg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Lg=new RegExp(Fg.source,"g"),Rg=function(t,e){var n,r,i,o=Fg.lastIndex=Lg.lastIndex=0,s=-1,a=[],u=[];for(t+="",e+="";(n=Fg.exec(t))&&(r=Lg.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),a[s]?a[s]+=i:a[++s]=i),(n=n[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,u.push({i:s,x:jg(n,r)})),o=Lg.lastIndex;return o<e.length&&(i=e.slice(o),a[s]?a[s]+=i:a[++s]=i),a.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var n,r=0;r<e;++r)a[(n=u[r]).i]=n.x(t);return a.join("")})},zg=function(t,e){var n,r,i=typeof e;return null==e||"boolean"===i?kg(e):("number"===i?jg:"string"===i?(n=hg(e))?(e=n,Tg):Rg:e instanceof hg?Tg:e instanceof Date?Ig:(r=e,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(e)?Mg:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Pg:jg:Ng))(t,e)},Vg=0,Bg=0,Hg=0,Gg=0,Ug=0,qg=0,Yg="object"==typeof performance&&performance.now?performance:Date,$g="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Wg(){return Ug||($g(Qg),Ug=Yg.now()+qg)}function Qg(){Ug=0}function Zg(){this._call=this._time=this._next=null}function Xg(t,e,n){var r=new Zg;return r.restart(t,e,n),r}function Kg(){Wg(),++Vg;for(var t,e=Og;e;)(t=Ug-e._time)>=0&&e._call.call(null,t),e=e._next;--Vg}function Jg(){Ug=(Gg=Yg.now())+qg,Vg=Bg=0;try{Kg()}finally{Vg=0,function(){for(var t,e,n=Og,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Og=e);Dg=t,em(r)}(),Ug=0}}function tm(){var t=Yg.now(),e=t-Gg;e>1e3&&(qg-=e,Gg=t)}function em(t){Vg||(Bg&&(Bg=clearTimeout(Bg)),t-Ug>24?(t<1/0&&(Bg=setTimeout(Jg,t-Yg.now()-qg)),Hg&&(Hg=clearInterval(Hg))):(Hg||(Gg=Yg.now(),Hg=setInterval(tm,1e3)),Vg=1,$g(Jg)))}Zg.prototype=Xg.prototype={constructor:Zg,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Wg():+n)+(null==e?0:+e),this._next||Dg===this||(Dg?Dg._next=this:Og=this,Dg=this),this._call=t,this._time=n,em()},stop:function(){this._call&&(this._call=null,this._time=1/0,em())}};var nm=function(t,e,n){var r=new Zg;return r.restart((function(n){r.stop(),t(n+e)}),e=null==e?0:+e,n),r},rm=Yp("start","end","cancel","interrupt"),im=[],om=function(t,e,n,r,i,o){var s=t.__transition;if(s){if(n in s)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(u){var c,l,h,f;if(1!==n.state)return a();for(c in i)if((f=i[c]).name===n.name){if(3===f.state)return nm(o);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[c]):+c<e&&(f.state=6,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[c])}if(nm((function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(u))})),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(h=n.tween.length),c=0,l=-1;c<h;++c)(f=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(r[++l]=f);r.length=l+1}}function s(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(a),n.state=5,1),o=-1,s=r.length;++o<s;)r[o].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),a())}function a(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=Xg((function(t){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)}),0,n.time)}(t,n,{name:e,index:r,group:i,on:rm,tween:im,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})};function sm(t,e){var n=um(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function am(t,e){var n=um(t,e);if(n.state>3)throw new Error("too late; already running");return n}function um(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var cm,lm,hm,fm,dm=180/Math.PI,pm={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},gm=function(t,e,n,r,i,o){var s,a,u;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,u/=a),t*r<e*n&&(t=-t,e=-e,u=-u,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*dm,skewX:Math.atan(u)*dm,scaleX:s,scaleY:a}};function mm(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(o,s){var a=[],u=[];return o=t(o),s=t(s),function(t,r,i,o,s,a){if(t!==i||r!==o){var u=s.push("translate(",null,e,null,n);a.push({i:u-4,x:jg(t,i)},{i:u-2,x:jg(r,o)})}else(i||o)&&s.push("translate("+i+e+o+n)}(o.translateX,o.translateY,s.translateX,s.translateY,a,u),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:jg(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,s.rotate,a,u),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:jg(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,s.skewX,a,u),function(t,e,n,r,o,s){if(t!==n||e!==r){var a=o.push(i(o)+"scale(",null,",",null,")");s.push({i:a-4,x:jg(t,n)},{i:a-2,x:jg(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,a,u),o=s=null,function(t){for(var e,n=-1,r=u.length;++n<r;)a[(e=u[n]).i]=e.x(t);return a.join("")}}}var ym=mm((function(t){return"none"===t?pm:(cm||(cm=document.createElement("DIV"),lm=document.documentElement,hm=document.defaultView),cm.style.transform=t,t=hm.getComputedStyle(lm.appendChild(cm),null).getPropertyValue("transform"),lm.removeChild(cm),t=t.slice(7,-1).split(","),gm(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),vm=mm((function(t){return null==t?pm:(fm||(fm=document.createElementNS("http://www.w3.org/2000/svg","g")),fm.setAttribute("transform",t),(t=fm.transform.baseVal.consolidate())?gm((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):pm)}),", ",")",")");function _m(t,e){var n,r;return function(){var i=am(this,t),o=i.tween;if(o!==n)for(var s=0,a=(r=n=o).length;s<a;++s)if(r[s].name===e){(r=r.slice()).splice(s,1);break}i.tween=r}}function wm(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=am(this,t),s=o.tween;if(s!==r){i=(r=s).slice();for(var a={name:e,value:n},u=0,c=i.length;u<c;++u)if(i[u].name===e){i[u]=a;break}u===c&&i.push(a)}o.tween=i}}function bm(t,e,n){var r=t._id;return t.each((function(){var t=am(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return um(t,r).value[e]}}var xm=function(t,e){var n;return("number"==typeof e?jg:e instanceof hg?Tg:(n=hg(e))?(e=n,Tg):Rg)(t,e)};function Em(t){return function(){this.removeAttribute(t)}}function Sm(t){return function(){this.removeAttributeNS(t.space,t.local)}}function km(t,e,n){var r,i,o=n+"";return function(){var s=this.getAttribute(t);return s===o?null:s===r?i:i=e(r=s,n)}}function Cm(t,e,n){var r,i,o=n+"";return function(){var s=this.getAttributeNS(t.space,t.local);return s===o?null:s===r?i:i=e(r=s,n)}}function Tm(t,e,n){var r,i,o;return function(){var s,a,u=n(this);if(null!=u)return(s=this.getAttribute(t))===(a=u+"")?null:s===r&&a===i?o:(i=a,o=e(r=s,u));this.removeAttribute(t)}}function Am(t,e,n){var r,i,o;return function(){var s,a,u=n(this);if(null!=u)return(s=this.getAttributeNS(t.space,t.local))===(a=u+"")?null:s===r&&a===i?o:(i=a,o=e(r=s,u));this.removeAttributeNS(t.space,t.local)}}function Nm(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Mm(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Om(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&Mm(t,i)),n}return i._value=e,i}function Dm(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&Nm(t,i)),n}return i._value=e,i}function Im(t,e){return function(){sm(this,t).delay=+e.apply(this,arguments)}}function jm(t,e){return e=+e,function(){sm(this,t).delay=e}}function Pm(t,e){return function(){am(this,t).duration=+e.apply(this,arguments)}}function Fm(t,e){return e=+e,function(){am(this,t).duration=e}}function Lm(t,e){if("function"!=typeof e)throw new Error;return function(){am(this,t).ease=e}}function Rm(t,e,n){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?sm:am;return function(){var s=o(this,t),a=s.on;a!==r&&(i=(r=a).copy()).on(e,n),s.on=i}}var zm=Rp.prototype.constructor;function Vm(t){return function(){this.style.removeProperty(t)}}function Bm(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Hm(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&Bm(t,o,n)),r}return o._value=e,o}function Gm(t){return function(e){this.textContent=t.call(this,e)}}function Um(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Gm(r)),e}return r._value=t,r}var qm=0;function Ym(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function $m(){return++qm}var Wm=Rp.prototype;Ym.prototype=(function(t){return Rp().transition(t)}).prototype={constructor:Ym,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Md(t));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s<i;++s)for(var a,u,c=r[s],l=c.length,h=o[s]=new Array(l),f=0;f<l;++f)(a=c[f])&&(u=t.call(a,a.__data__,f,c))&&("__data__"in a&&(u.__data__=a.__data__),h[f]=u,om(h[f],e,n,f,h,um(a,n)));return new Ym(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Dd(t));for(var r=this._groups,i=r.length,o=[],s=[],a=0;a<i;++a)for(var u,c=r[a],l=c.length,h=0;h<l;++h)if(u=c[h]){for(var f,d=t.call(u,u.__data__,h,c),p=um(u,n),g=0,m=d.length;g<m;++g)(f=d[g])&&om(f,e,n,g,d,p);o.push(d),s.push(u)}return new Ym(o,s,e,n)},filter:function(t){"function"!=typeof t&&(t=Id(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,s=e[i],a=s.length,u=r[i]=[],c=0;c<a;++c)(o=s[c])&&t.call(o,o.__data__,c,s)&&u.push(o);return new Ym(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=Math.min(r,n.length),o=new Array(r),s=0;s<i;++s)for(var a,u=e[s],c=n[s],l=u.length,h=o[s]=new Array(l),f=0;f<l;++f)(a=u[f]||c[f])&&(h[f]=a);for(;s<r;++s)o[s]=e[s];return new Ym(o,this._parents,this._name,this._id)},selection:function(){return new zm(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=$m(),r=this._groups,i=r.length,o=0;o<i;++o)for(var s,a=r[o],u=a.length,c=0;c<u;++c)if(s=a[c]){var l=um(s,e);om(s,t,n,c,a,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new Ym(r,this._parents,t,n)},call:Wm.call,nodes:Wm.nodes,node:Wm.node,size:Wm.size,empty:Wm.empty,each:Wm.each,on:function(t,e){var n=this._id;return arguments.length<2?um(this.node(),n).on.on(t):this.each(Rm(n,t,e))},attr:function(t,e){var n=Bd(t),r="transform"===n?vm:xm;return this.attrTween(t,"function"==typeof e?(n.local?Am:Tm)(n,r,bm(this,"attr."+t,e)):null==e?(n.local?Sm:Em)(n):(n.local?Cm:km)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=Bd(t);return this.tween(n,(r.local?Om:Dm)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?ym:xm;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var o=Kd(this,t),s=(this.style.removeProperty(t),Kd(this,t));return o===s?null:o===n&&s===r?i:i=e(n=o,r=s)}}(t,r)).on("end.style."+t,Vm(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,o;return function(){var s=Kd(this,t),a=n(this),u=a+"";return null==a&&(this.style.removeProperty(t),u=a=Kd(this,t)),s===u?null:s===r&&u===i?o:(i=u,o=e(r=s,a))}}(t,r,bm(this,"style."+t,e))).each(function(t,e){var n,r,i,o,s="style."+e,a="end."+s;return function(){var u=am(this,t),c=u.on,l=null==u.value[s]?o||(o=Vm(e)):void 0;c===n&&i===l||(r=(n=c).copy()).on(a,i=l),u.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,o=n+"";return function(){var s=Kd(this,t);return s===o?null:s===r?i:i=e(r=s,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,Hm(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(bm(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,Um(t))},remove:function(){return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}));var t},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=um(this.node(),n).tween,o=0,s=i.length;o<s;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?_m:wm)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Im:jm)(e,t)):um(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Pm:Fm)(e,t)):um(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(Lm(e,t)):um(this.node(),e).ease},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(o,s){var a={value:s},u={value:function(){0==--i&&o()}};n.each((function(){var n=am(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(u)),n.on=e}))}))}};var Qm={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function Zm(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return Qm.time=Wg(),Qm;return n}function Xm(t){return{type:t}}Rp.prototype.interrupt=function(t){return this.each((function(){!function(t,e){var n,r,i,o=t.__transition,s=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):s=!1;s&&delete t.__transition}}(this,t)}))},Rp.prototype.transition=function(t){var e,n;t instanceof Ym?(e=t._id,t=t._name):(e=$m(),(n=Qm).time=Wg(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var s,a=r[o],u=a.length,c=0;c<u;++c)(s=a[c])&&om(s,t,e,c,a,n||Zm(s,e));return new Ym(r,this._parents,t,e)},["w","e"].map(Xm),["n","s"].map(Xm),["n","w","e","s","nw","ne","sw","se"].map(Xm);var Km=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},Jm=function(t){let e=t,n=t;function r(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){const o=r+i>>>1;n(t[o],e)<0?r=o+1:i=o}return r}return 1===t.length&&(e=(e,n)=>t(e)-n,n=function(t){return(e,n)=>Km(t(e),n)}(t)),{left:r,center:function(t,n,i,o){null==i&&(i=0),null==o&&(o=t.length);const s=r(t,n,i,o-1);return s>i&&e(t[s-1],n)>-e(t[s],n)?s-1:s},right:function(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){const o=r+i>>>1;n(t[o],e)>0?i=o:r=o+1}return r}}},ty=Math.sqrt(50),ey=Math.sqrt(10),ny=Math.sqrt(2);function ry(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=ty?10:o>=ey?5:o>=ny?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=ty?10:o>=ey?5:o>=ny?2:1)}function iy(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=ty?i*=10:o>=ey?i*=5:o>=ny&&(i*=2),e<t?-i:i}const oy=1e3,sy=6e4,ay=36e5,uy=864e5,cy=6048e5,ly=31536e6;var hy=new Date,fy=new Date;function dy(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,o){var s,a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;do{a.push(s=new Date(+n)),e(n,o),t(n)}while(s<n&&n<r);return a},i.filter=function(n){return dy((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return hy.setTime(+e),fy.setTime(+r),t(hy),t(fy),Math.floor(n(hy,fy))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var py=dy((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));py.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?dy((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):py:null};var gy=py,my=dy((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*oy)}),(function(t,e){return(e-t)/oy}),(function(t){return t.getUTCSeconds()})),yy=dy((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*oy)}),(function(t,e){t.setTime(+t+e*sy)}),(function(t,e){return(e-t)/sy}),(function(t){return t.getMinutes()})),vy=dy((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*oy-t.getMinutes()*sy)}),(function(t,e){t.setTime(+t+e*ay)}),(function(t,e){return(e-t)/ay}),(function(t){return t.getHours()})),_y=dy(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*sy)/uy,t=>t.getDate()-1);function wy(t){return dy((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*sy)/cy}))}var by=wy(0),xy=(wy(1),wy(2),wy(3),wy(4),wy(5),wy(6),dy((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}))),Ey=dy((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Ey.every=function(t){return isFinite(t=Math.floor(t))&&t>0?dy((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var Sy=Ey,ky=dy((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*sy)}),(function(t,e){return(e-t)/sy}),(function(t){return t.getUTCMinutes()})),Cy=dy((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*ay)}),(function(t,e){return(e-t)/ay}),(function(t){return t.getUTCHours()})),Ty=dy((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/uy}),(function(t){return t.getUTCDate()-1}));function Ay(t){return dy((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/cy}))}var Ny=Ay(0),My=(Ay(1),Ay(2),Ay(3),Ay(4),Ay(5),Ay(6),dy((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}))),Oy=dy((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));Oy.every=function(t){return isFinite(t=Math.floor(t))&&t>0?dy((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var Dy=Oy;function Iy(t,e,n,r,i,o){const s=[[my,1,oy],[my,5,5e3],[my,15,15e3],[my,30,3e4],[o,1,sy],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,ay],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,uy],[r,2,1728e5],[n,1,cy],[e,1,2592e6],[e,3,7776e6],[t,1,ly]];function a(e,n,r){const i=Math.abs(n-e)/r,o=Jm(([,,t])=>t).right(s,i);if(o===s.length)return t.every(iy(e/ly,n/ly,r));if(0===o)return gy.every(Math.max(iy(e,n,r),1));const[a,u]=s[i/s[o-1][2]<s[o][2]/i?o-1:o];return a.every(u)}return[function(t,e,n){const r=e<t;r&&([t,e]=[e,t]);const i=n&&"function"==typeof n.range?n:a(t,e,n),o=i?i.range(t,+e+1):[];return r?o.reverse():o},a]}const[jy,Py]=Iy(Dy,My,Ny,Ty,Cy,ky),[Fy,Ly]=Iy(Sy,xy,by,_y,vy,yy);var Ry=new Date,zy=new Date;function Vy(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,o){var s,a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;do{a.push(s=new Date(+n)),e(n,o),t(n)}while(s<n&&n<r);return a},i.filter=function(n){return Vy((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return Ry.setTime(+e),zy.setTime(+r),t(Ry),t(zy),Math.floor(n(Ry,zy))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var By=864e5,Hy=6048e5;function Gy(t){return Vy((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/Hy}))}var Uy=Gy(0),qy=Gy(1),Yy=(Gy(2),Gy(3),Gy(4)),$y=(Gy(5),Gy(6),Vy((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/By}),(function(t){return t.getUTCDate()-1})));function Wy(t){return Vy((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/Hy}))}var Qy=Wy(0),Zy=Wy(1),Xy=(Wy(2),Wy(3),Wy(4)),Ky=(Wy(5),Wy(6),Vy((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/By}),(function(t){return t.getDate()-1}))),Jy=Vy((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Jy.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Vy((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var tv=Jy,ev=Vy((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));ev.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Vy((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var nv=ev;var rv={"-":"",_:" ",0:"0"},iv=/[\\^$*+?|[\]().{}]/g;function ov(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function sv(t){return t.replace(iv,"\\$&")}function av(t){return new RegExp("^(?:"+t.map(sv).join("|")+")","i")}function uv(t){for(var e={},n=-1,r=t.length;++n<r;)e[t[n].toLowerCase()]=n;return e}function cv(t,e){return ov(t.getDate(),e,2)}function lv(t,e){return ov(t.getHours(),e,2)}function hv(t,e){return ov(t.getHours()%12||12,e,2)}function fv(t,e){return ov(1+Ky.count(tv(t),t),e,3)}function dv(t,e){return ov(t.getMilliseconds(),e,3)}function pv(t,e){return dv(t,e)+"000"}function gv(t,e){return ov(t.getMonth()+1,e,2)}function mv(t,e){return ov(t.getMinutes(),e,2)}function yv(t,e){return ov(t.getSeconds(),e,2)}function vv(t){var e=t.getDay();return 0===e?7:e}function _v(t,e){return ov(Qy.count(tv(t)-1,t),e,2)}function wv(t){var e=t.getDay();return e>=4||0===e?Xy(t):Xy.ceil(t)}function bv(t,e){return t=wv(t),ov(Xy.count(tv(t),t)+(4===tv(t).getDay()),e,2)}function xv(t){return t.getDay()}function Ev(t,e){return ov(Zy.count(tv(t)-1,t),e,2)}function Sv(t,e){return ov(t.getFullYear()%100,e,2)}function kv(t,e){return ov((t=wv(t)).getFullYear()%100,e,2)}function Cv(t,e){return ov(t.getFullYear()%1e4,e,4)}function Tv(t,e){var n=t.getDay();return ov((t=n>=4||0===n?Xy(t):Xy.ceil(t)).getFullYear()%1e4,e,4)}function Av(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+ov(e/60|0,"0",2)+ov(e%60,"0",2)}function Nv(t,e){return ov(t.getUTCDate(),e,2)}function Mv(t,e){return ov(t.getUTCHours(),e,2)}function Ov(t,e){return ov(t.getUTCHours()%12||12,e,2)}function Dv(t,e){return ov(1+$y.count(nv(t),t),e,3)}function Iv(t,e){return ov(t.getUTCMilliseconds(),e,3)}function jv(t,e){return Iv(t,e)+"000"}function Pv(t,e){return ov(t.getUTCMonth()+1,e,2)}function Fv(t,e){return ov(t.getUTCMinutes(),e,2)}function Lv(t,e){return ov(t.getUTCSeconds(),e,2)}function Rv(t){var e=t.getUTCDay();return 0===e?7:e}function zv(t,e){return ov(Uy.count(nv(t)-1,t),e,2)}function Vv(t){var e=t.getUTCDay();return e>=4||0===e?Yy(t):Yy.ceil(t)}function Bv(t,e){return t=Vv(t),ov(Yy.count(nv(t),t)+(4===nv(t).getUTCDay()),e,2)}function Hv(t){return t.getUTCDay()}function Gv(t,e){return ov(qy.count(nv(t)-1,t),e,2)}function Uv(t,e){return ov(t.getUTCFullYear()%100,e,2)}function qv(t,e){return ov((t=Vv(t)).getUTCFullYear()%100,e,2)}function Yv(t,e){return ov(t.getUTCFullYear()%1e4,e,4)}function $v(t,e){var n=t.getUTCDay();return ov((t=n>=4||0===n?Yy(t):Yy.ceil(t)).getUTCFullYear()%1e4,e,4)}function Wv(){return"+0000"}function Qv(){return"%"}function Zv(t){return+t}function Xv(t){return Math.floor(+t/1e3)}!function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,s=t.shortDays,a=t.months,u=t.shortMonths,c=(av(i),uv(i),av(o),uv(o),av(s),uv(s),av(a),uv(a),av(u),uv(u),{a:function(t){return s[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:cv,e:cv,f:pv,g:kv,G:Tv,H:lv,I:hv,j:fv,L:dv,m:gv,M:mv,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Zv,s:Xv,S:yv,u:vv,U:_v,V:bv,w:xv,W:Ev,x:null,X:null,y:Sv,Y:Cv,Z:Av,"%":Qv}),l={a:function(t){return s[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:Nv,e:Nv,f:jv,g:qv,G:$v,H:Mv,I:Ov,j:Dv,L:Iv,m:Pv,M:Fv,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Zv,s:Xv,S:Lv,u:Rv,U:zv,V:Bv,w:Hv,W:Gv,x:null,X:null,y:Uv,Y:Yv,Z:Wv,"%":Qv};function h(t,e){return function(n){var r,i,o,s=[],a=-1,u=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++a<c;)37===t.charCodeAt(a)&&(s.push(t.slice(u,a)),null!=(i=rv[r=t.charAt(++a)])?r=t.charAt(++a):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),s.push(r),u=a+1);return s.push(t.slice(u,a)),s.join("")}}c.x=h(n,c),c.X=h(r,c),c.c=h(e,c),l.x=h(n,l),l.X=h(r,l),l.c=h(e,l)}({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 Kv=function(t){return null===t?NaN:+t};const Jv=Jm(Km).right;Jm(Kv);var t_=Jv,e_=function(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}};function n_(t){return+t}var r_=[0,1];function i_(t){return t}function o_(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function s_(t,e,n){var r=t[0],i=t[1],o=e[0],s=e[1];return i<r?(r=o_(i,r),o=n(s,o)):(r=o_(r,i),o=n(o,s)),function(t){return o(r(t))}}function a_(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),s=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<r;)i[s]=o_(t[s],t[s+1]),o[s]=n(e[s],e[s+1]);return function(e){var n=t_(t,e,1,r)-1;return o[n](i[n](e))}}function u_(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function c_(){return function(){var t,e,n,r,i,o,s=r_,a=r_,u=zg,c=i_;function l(){var t,e,n,u=Math.min(s.length,a.length);return c!==i_&&((t=s[0])>(e=s[u-1])&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),r=u>2?a_:s_,i=o=null,h}function h(e){return null==e||isNaN(e=+e)?n:(i||(i=r(s.map(t),a,u)))(t(c(e)))}return h.invert=function(n){return c(e((o||(o=r(a,s.map(t),jg)))(n)))},h.domain=function(t){return arguments.length?(s=Array.from(t,n_),l()):s.slice()},h.range=function(t){return arguments.length?(a=Array.from(t),l()):a.slice()},h.rangeRound=function(t){return a=Array.from(t),u=e_,l()},h.clamp=function(t){return arguments.length?(c=!!t||i_,l()):c!==i_},h.interpolate=function(t){return arguments.length?(u=t,l()):u},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,l()}}()(i_,i_)}function l_(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var h_=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function f_(t){if(!(e=h_.exec(t)))throw new Error("invalid format: "+t);var e;return new d_({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function d_(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function p_(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}f_.prototype=d_.prototype,d_.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var g_,m_,y_,v_,__=function(t){return(t=p_(Math.abs(t)))?t[1]:NaN},w_=function(t,e){var n=p_(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},b_={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return w_(100*t,e)},r:w_,s:function(t,e){var n=p_(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(g_=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+p_(t,Math.max(0,e+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},x_=function(t){return t},E_=Array.prototype.map,S_=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function k_(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){var r,i,o,s,a=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(s=ry(t,e,n))||!isFinite(s))return[];if(s>0){let n=Math.round(t/s),r=Math.round(e/s);for(n*s<t&&++n,r*s>e&&--r,o=new Array(i=r-n+1);++a<i;)o[a]=(n+a)*s}else{s=-s;let n=Math.round(t*s),r=Math.round(e*s);for(n/s<t&&++n,r/s>e&&--r,o=new Array(i=r-n+1);++a<i;)o[a]=(n+a)/s}return r&&o.reverse(),o}(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return function(t,e,n,r){var i,o=iy(t,e,n);switch((r=f_(null==r?",f":r)).type){case"s":var s=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(__(e)/3)))-__(Math.abs(t)))}(o,s))||(r.precision=i),v_(r,s);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,__(e)-__(t))+1}(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-__(Math.abs(t)))}(o))||(r.precision=i-2*("%"===r.type))}return y_(r)}(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,o=e(),s=0,a=o.length-1,u=o[s],c=o[a],l=10;for(c<u&&(i=u,u=c,c=i,i=s,s=a,a=i);l-- >0;){if((i=ry(u,c,n))===r)return o[s]=u,o[a]=c,e(o);if(i>0)u=Math.floor(u/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;u=Math.ceil(u*i)/i,c=Math.floor(c*i)/i}r=i}return t},t}function C_(){var t=c_();return t.copy=function(){return u_(t,C_())},l_.apply(t,arguments),k_(t)}m_=function(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?x_:(e=E_.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],s=0,a=e[0],u=0;i>0&&a>0&&(u+a+1>r&&(a=Math.max(1,r-u)),o.push(t.substring(i-=a,i+a)),!((u+=a+1)>r));)a=e[s=(s+1)%e.length];return o.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?x_:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(E_.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"-":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function h(t){var e=(t=f_(t)).fill,n=t.align,h=t.sign,f=t.symbol,d=t.zero,p=t.width,g=t.comma,m=t.precision,y=t.trim,v=t.type;"n"===v?(g=!0,v="g"):b_[v]||(void 0===m&&(m=12),y=!0,v="g"),(d||"0"===e&&"="===n)&&(d=!0,e="0",n="=");var _="$"===f?i:"#"===f&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",w="$"===f?o:/[%p]/.test(v)?u:"",b=b_[v],x=/[defgprs%]/.test(v);function E(t){var i,o,u,f=_,E=w;if("c"===v)E=b(t)+E,t="";else{var S=(t=+t)<0||1/t<0;if(t=isNaN(t)?l:b(Math.abs(t),m),y&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),S&&0==+t&&"+"!==h&&(S=!1),f=(S?"("===h?h:c:"-"===h||"("===h?"":h)+f,E=("s"===v?S_[8+g_/3]:"")+E+(S&&"("===h?")":""),x)for(i=-1,o=t.length;++i<o;)if(48>(u=t.charCodeAt(i))||u>57){E=(46===u?s+t.slice(i+1):t.slice(i))+E,t=t.slice(0,i);break}}g&&!d&&(t=r(t,1/0));var k=f.length+t.length+E.length,C=k<p?new Array(p-k+1).join(e):"";switch(g&&d&&(t=r(C+t,C.length?p-E.length:1/0),C=""),n){case"<":t=f+t+E+C;break;case"=":t=f+C+t+E;break;case"^":t=C.slice(0,k=C.length>>1)+f+t+E+C.slice(k);break;default:t=C+f+t+E}return a(t)}return m=void 0===m?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),E.toString=function(){return t+""},E}return{format:h,formatPrefix:function(t,e){var n=h(((t=f_(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(__(e)/3))),i=Math.pow(10,-r),o=S_[8+r/3];return function(t){return n(i*t)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),y_=m_.format,v_=m_.formatPrefix;var T_=function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r<i;)o[r]=t+r*n;return o};const A_=Symbol("implicit");function N_(){var t=new Map,e=[],n=[],r=A_;function i(i){var o=i+"",s=t.get(o);if(!s){if(r!==A_)return r;t.set(o,s=e.push(i))}return n[(s-1)%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new Map;for(const r of n){const n=r+"";t.has(n)||t.set(n,e.push(r))}return i},i.range=function(t){return arguments.length?(n=Array.from(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return N_(e,n).unknown(r)},l_.apply(i,arguments),i}function M_(t,e,n=Kv){if(r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),s=+n(t[o],o,t);return s+(+n(t[o+1],o+1,t)-s)*(i-o)}}function O_(t){this._context=t}O_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var D_=function(t){return new O_(t)},I_=Math.PI,j_=2*I_,P_=1e-6,F_=j_-P_;function L_(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function R_(){return new L_}L_.prototype=R_.prototype={constructor:L_,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,e,n,r,i){var o=this._x1,s=this._y1,a=(n=+n)-(t=+t),u=(r=+r)-(e=+e),c=o-t,l=s-e,h=c*c+l*l;if((i=+i)<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>P_)if(Math.abs(l*a-u*c)>P_&&i){var f=n-o,d=r-s,p=a*a+u*u,g=f*f+d*d,m=Math.sqrt(p),y=Math.sqrt(h),v=i*Math.tan((I_-Math.acos((p+h-g)/(2*m*y)))/2),_=v/y,w=v/m;Math.abs(_-1)>P_&&(this._+="L"+(t+_*c)+","+(e+_*l)),this._+="A"+i+","+i+",0,0,"+ +(l*f>c*d)+","+(this._x1=t+w*a)+","+(this._y1=e+w*u)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,r,i,o){t=+t,e=+e,o=!!o;var s=(n=+n)*Math.cos(r),a=n*Math.sin(r),u=t+s,c=e+a,l=1^o,h=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+c:(Math.abs(this._x1-u)>P_||Math.abs(this._y1-c)>P_)&&(this._+="L"+u+","+c),n&&(h<0&&(h=h%j_+j_),h>F_?this._+="A"+n+","+n+",0,1,"+l+","+(t-s)+","+(e-a)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):h>P_&&(this._+="A"+n+","+n+",0,"+ +(h>=I_)+","+l+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var z_=R_,V_=function(t){return function(){return t}};function B_(t){return t[0]}function H_(t){return t[1]}var G_=function(){};function U_(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function q_(t,e){this._context=t,this._k=(1-e)/6}function Y_(t,e){this._context=t,this._k=(1-e)/6}function $_(t){this._curve=t}q_.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:U_(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:U_(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new q_(t,e)}return n.tension=function(e){return t(+e)},n}(0),Y_.prototype={areaStart:G_,areaEnd:G_,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:U_(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new Y_(t,e)}return n.tension=function(e){return t(+e)},n}(0),$_.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}},Math,Math,Math,Math,Math,Math,Math,Math;var W_=function(t,e,n,r,i){for(var o,s=t.children,a=-1,u=s.length,c=t.value&&(r-e)/t.value;++a<u;)(o=s[a]).y0=n,o.y1=i,o.x0=e,o.x1=e+=o.value*c},Q_=function(t,e,n,r,i){for(var o,s=t.children,a=-1,u=s.length,c=t.value&&(i-n)/t.value;++a<u;)(o=s[a]).x0=e,o.x1=r,o.y0=n,o.y1=n+=o.value*c};function Z_(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function X_(t,e){var n,r,i,o,s,a=new ew(t),u=+t.value&&(a.value=t.value),c=[a];for(null==e&&(e=K_);n=c.pop();)if(u&&(n.value=+n.data.value),(i=e(n.data))&&(s=i.length))for(n.children=new Array(s),o=s-1;o>=0;--o)c.push(r=n.children[o]=new ew(i[o])),r.parent=n,r.depth=n.depth+1;return a.eachBefore(tw)}function K_(t){return t.children}function J_(t){t.data=t.data.data}function tw(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function ew(t){this.data=t,this.depth=this.height=0,this.parent=null}!function t(e){function n(t,n,r,i,o){!function(t,e,n,r,i,o){for(var s,a,u,c,l,h,f,d,p,g,m,y=[],v=e.children,_=0,w=0,b=v.length,x=e.value;_<b;){u=i-n,c=o-r;do{l=v[w++].value}while(!l&&w<b);for(h=f=l,m=l*l*(g=Math.max(c/u,u/c)/(x*t)),p=Math.max(f/m,m/h);w<b;++w){if(l+=a=v[w].value,a<h&&(h=a),a>f&&(f=a),m=l*l*g,(d=Math.max(f/m,m/h))>p){l-=a;break}p=d}y.push(s={value:l,dice:u<c,children:v.slice(_,w)}),s.dice?W_(s,n,r,i,x?r+=c*l/x:o):Q_(s,n,r,x?n+=u*l/x:i,o),x-=l,_=w}}(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}((1+Math.sqrt(5))/2),ew.prototype=X_.prototype={constructor:ew,count:function(){return this.eachAfter(Z_)},each:function(t){var e,n,r,i,o=this,s=[o];do{for(e=s.reverse(),s=[];o=e.pop();)if(t(o),n=o.children)for(r=0,i=n.length;r<i;++r)s.push(n[r])}while(s.length);return this},eachAfter:function(t){for(var e,n,r,i=this,o=[i],s=[];i=o.pop();)if(s.push(i),e=i.children)for(n=0,r=e.length;n<r;++n)o.push(e[n]);for(;i=s.pop();)t(i);return this},eachBefore:function(t){for(var e,n,r=this,i=[r];r=i.pop();)if(t(r),e=r.children)for(n=e.length-1;n>=0;--n)i.push(e[n]);return this},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)r.push(e=e.parent);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return X_(this).eachBefore(J_)}};const nw=["caretElm"];function rw(t,e){}const iw=function(t){return{model:t}};function ow(t,e){if(1&t&&(ws(0,"span"),ms(1,rw,0,0,"ng-template",5),bs()),2&t){const t=Ns();_i(1),vs("ngTemplateOutlet",t.template)("ngTemplateOutletContext",lu(2,iw,t.context))}}function sw(t,e){1&t&&xs(0,"span",6),2&t&&vs("innerHTML",Ns().title,Kr)}function aw(t,e){if(1&t&&(Tn(),An(),xs(0,"ngx-charts-scale-legend",4)),2&t){const t=Ns();vs("horizontal",t.legendOptions&&"below"===t.legendOptions.position)("valueRange",t.legendOptions.domain)("colors",t.legendOptions.colors)("height",t.view[1])("width",t.legendWidth)}}function uw(t,e){if(1&t){const t=Ss();Tn(),An(),ws(0,"ngx-charts-legend",5),Cs("labelClick",(function(e){return nn(t),Ns().legendLabelClick.emit(e)}))("labelActivate",(function(e){return nn(t),Ns().legendLabelActivate.emit(e)}))("labelDeactivate",(function(e){return nn(t),Ns().legendLabelDeactivate.emit(e)})),bs()}if(2&t){const t=Ns();vs("horizontal",t.legendOptions&&"below"===t.legendOptions.position)("data",t.legendOptions.domain)("title",t.legendOptions.title)("colors",t.legendOptions.colors)("height",t.view[1])("width",t.legendWidth)("activeEntries",t.activeEntries)}}const cw=["*"];function lw(t,e){if(1&t&&(ws(0,"header",4),ws(1,"span",5),Js(2),bs(),bs()),2&t){const t=Ns();_i(2),ta(t.title)}}function hw(t,e){if(1&t){const t=Ss();ws(0,"li",6),ws(1,"ngx-charts-legend-entry",7),Cs("select",(function(e){return nn(t),Ns().labelClick.emit(e)}))("activate",(function(e){return nn(t),Ns().activate(e)}))("deactivate",(function(e){return nn(t),Ns().deactivate(e)})),bs(),bs()}if(2&t){const t=e.$implicit,n=Ns();_i(1),vs("label",t.label)("formattedLabel",t.formattedLabel)("color",t.color)("isActive",n.isActive(t))}}let fw=(()=>{class t{constructor(t,e,n){this.applicationRef=t,this.componentFactoryResolver=e,this.injector=n}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(t){this._container=t}getComponentRootNode(t){return t.element?t.element.nativeElement:t.hostView&&t.hostView.rootNodes.length>0?t.hostView.rootNodes[0]:t.location.nativeElement}getRootViewContainerNode(t){return this.getComponentRootNode(t)}projectComponentBindings(t,e){if(e){if(void 0!==e.inputs){const n=Object.getOwnPropertyNames(e.inputs);for(const r of n)t.instance[r]=e.inputs[r]}if(void 0!==e.outputs){const n=Object.getOwnPropertyNames(e.outputs);for(const r of n)t.instance[r]=e.outputs[r]}}return t}appendComponent(t,e={},n){n||(n=this.getRootViewContainer());const r=this.getComponentRootNode(n),i=new xd(r,this.componentFactoryResolver,this.applicationRef,this.injector),o=new _d(t),s=i.attach(o);return this.projectComponentBindings(s,e),s}}return t.\u0275fac=function(e){return new(e||t)(Wt(yc),Wt(va),Wt(ss))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function dw(t,e,n){let r,i,o;n=n||{};let s=null,a=0;function u(){a=!1===n.leading?0:+new Date,s=null,o=t.apply(r,i)}return function(){const c=+new Date;a||!1!==n.leading||(a=c);const l=e-(c-a);return r=this,i=arguments,l<=0?(clearTimeout(s),s=null,a=c,o=t.apply(r,i)):s||!1===n.trailing||(s=setTimeout(u,l)),o}}var pw=function(t){return t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right",t}({});function gw(t,e,n){return"top"===n?t.top-7:"bottom"===n?t.top+t.height-e.height+7:"center"===n?t.top+t.height/2-e.height/2:void 0}function mw(t,e,n){return"left"===n?t.left-7:"right"===n?t.left+t.width-e.width+7:"center"===n?t.left+t.width/2-e.width/2:void 0}class yw{static calculateVerticalAlignment(t,e,n){let r=gw(t,e,n);return r+e.height>window.innerHeight&&(r=window.innerHeight-e.height),r}static calculateVerticalCaret(t,e,n,r){let i;"top"===r&&(i=t.height/2-n.height/2+7),"bottom"===r&&(i=e.height-t.height/2-n.height/2-7),"center"===r&&(i=e.height/2-n.height/2);const o=gw(t,e,r);return o+e.height>window.innerHeight&&(i+=o+e.height-window.innerHeight),i}static calculateHorizontalAlignment(t,e,n){let r=mw(t,e,n);return r+e.width>window.innerWidth&&(r=window.innerWidth-e.width),r}static calculateHorizontalCaret(t,e,n,r){let i;"left"===r&&(i=t.width/2-n.width/2+7),"right"===r&&(i=e.width-t.width/2-n.width/2-7),"center"===r&&(i=e.width/2-n.width/2);const o=mw(t,e,r);return o+e.width>window.innerWidth&&(i+=o+e.width-window.innerWidth),i}static shouldFlip(t,e,n,r){let i=!1;return"right"===n&&t.left+t.width+e.width+r>window.innerWidth&&(i=!0),"left"===n&&t.left-e.width-r<0&&(i=!0),"top"===n&&t.top-e.height-r<0&&(i=!0),"bottom"===n&&t.top+t.height+e.height+r>window.innerHeight&&(i=!0),i}static positionCaret(t,e,n,r,i){let o=0,s=0;return t===pw.right?(s=-7,o=yw.calculateVerticalCaret(n,e,r,i)):t===pw.left?(s=e.width,o=yw.calculateVerticalCaret(n,e,r,i)):t===pw.top?(o=e.height,s=yw.calculateHorizontalCaret(n,e,r,i)):t===pw.bottom&&(o=-7,s=yw.calculateHorizontalCaret(n,e,r,i)),{top:o,left:s}}static positionContent(t,e,n,r,i){let o=0,s=0;return t===pw.right?(s=n.left+n.width+r,o=yw.calculateVerticalAlignment(n,e,i)):t===pw.left?(s=n.left-e.width-r,o=yw.calculateVerticalAlignment(n,e,i)):t===pw.top?(o=n.top-e.height-r,s=yw.calculateHorizontalAlignment(n,e,i)):t===pw.bottom&&(o=n.top+n.height+r,s=yw.calculateHorizontalAlignment(n,e,i)),{top:o,left:s}}static determinePlacement(t,e,n,r){if(yw.shouldFlip(n,e,t,r)){if(t===pw.right)return pw.left;if(t===pw.left)return pw.right;if(t===pw.top)return pw.bottom;if(t===pw.bottom)return pw.top}return t}}let vw,_w=(()=>{class t{constructor(t,e){this.element=t,this.renderer=e}get cssClasses(){let t="ngx-charts-tooltip-content";return t+=" position-"+this.placement,t+=" type-"+this.type,t+=" "+this.cssClass,t}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){const t=this.element.nativeElement,e=this.host.nativeElement.getBoundingClientRect();if(!e.height&&!e.width)return;const n=t.getBoundingClientRect();this.checkFlip(e,n),this.positionContent(t,e,n),this.showCaret&&this.positionCaret(e,n),setTimeout(()=>this.renderer.addClass(t,"animate"),1)}positionContent(t,e,n){const{top:r,left:i}=yw.positionContent(this.placement,n,e,this.spacing,this.alignment);this.renderer.setStyle(t,"top",r+"px"),this.renderer.setStyle(t,"left",i+"px")}positionCaret(t,e){const n=this.caretElm.nativeElement,r=n.getBoundingClientRect(),{top:i,left:o}=yw.positionCaret(this.placement,e,t,r,this.alignment);this.renderer.setStyle(n,"top",i+"px"),this.renderer.setStyle(n,"left",o+"px")}checkFlip(t,e){this.placement=yw.determinePlacement(this.placement,e,t,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(ys(_a),ys(Ea))},t.\u0275cmp=he({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(t,e){var n;1&t&&Su(nw,!0),2&t&&Eu(n=Tu())&&(e.caretElm=n.first)},hostVars:2,hostBindings:function(t,e){1&t&&Cs("resize",(function(){return e.onWindowResize()}),!1,$n),2&t&&Us(re,Hs,e.cssClasses,!0)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(t,e){var n;1&t&&(ws(0,"div"),xs(1,"span",0,1),ws(3,"div",2),ms(4,ow,2,4,"span",3),ms(5,sw,1,1,"span",4),bs(),bs()),2&t&&(_i(1),"tooltip-caret position-",n=e.placement,"",Us(re,Hs,gs(tn(),"tooltip-caret position-",n,""),!0),vs("hidden",!e.showCaret),_i(3),vs("ngIf",!e.title),_i(1),vs("ngIf",e.title))},directives:[el,il],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),Ed([function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:dw(n.value,100,void 0)}),this[e]}}}],t.prototype,"onWindowResize",null),t})(),ww=(()=>{class t extends class{constructor(t){this.injectionService=t,this.defaults={},this.components=new Map}getByType(t=this.type){return this.components.get(t)}create(t){return this.createByType(this.type,t)}createByType(t,e){e=this.assignDefaults(e);const n=this.injectComponent(t,e);return this.register(t,n),n}destroy(t){const e=this.components.get(t.componentType);if(e&&e.length){const n=e.indexOf(t);n>-1&&(e[n].destroy(),e.splice(n,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(t){const e=this.components.get(t);if(e&&e.length){let t=e.length-1;for(;t>=0;)this.destroy(e[t--])}}injectComponent(t,e){return this.injectionService.appendComponent(t,e)}assignDefaults(t){const e=Object.assign({},this.defaults.inputs),n=Object.assign({},this.defaults.outputs);return t.inputs||t.outputs||(t={inputs:t}),e&&(t.inputs=Object.assign(Object.assign({},e),t.inputs)),n&&(t.outputs=Object.assign(Object.assign({},n),t.outputs)),t}register(t,e){this.components.has(t)||this.components.set(t,[]),this.components.get(t).push(e)}}{constructor(t){super(t),this.type=_w}}return t.\u0275fac=function(e){return new(e||t)(Wt(fw))},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})(),bw=(()=>{class t{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new fu,this.legendLabelActivate=new fu,this.legendLabelDeactivate=new fu}ngOnChanges(t){this.update()}update(){let t=0;this.showLegend&&(this.legendType=this.getLegendType(),this.legendOptions&&"right"!==this.legendOptions.position||(t="scaleLegend"===this.legendType?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-t)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:Math.floor(this.view[0]*t/12)}getLegendType(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=he({type:t,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",data:"data",legendData:"legendData",colors:"colors",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[ga([ww]),Oe],ngContentSelectors:cw,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(t,e){1&t&&(Os(),ws(0,"div",0),Tn(),ws(1,"svg",1),Ds(2),bs(),ms(3,aw,1,5,"ngx-charts-scale-legend",2),ms(4,uw,1,7,"ngx-charts-legend",3),bs()),2&t&&(Vs("width",e.view[0],"px"),vs("@animationState","active")("@.disabled",!e.animations),_i(1),ps("width",e.chartWidth)("height",e.view[1]),_i(2),vs("ngIf",e.showLegend&&"scaleLegend"===e.legendType),_i(1),vs("ngIf",e.showLegend&&"legend"===e.legendType))},directives:function(){return[el,Nw,Tw]},encapsulation:2,data:{animation:[Rl("animationState",[Hl(":enter",[Bl({opacity:0}),zl("500ms 100ms",Bl({opacity:1}))])])]},changeDetection:0}),t})(),xw=(()=>{class t{constructor(t,e){this.element=t,this.zone=e,this.visible=new fu,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const t=()=>{if(!this.element)return;const{offsetHeight:e,offsetWidth:n}=this.element.nativeElement;e&&n?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>t(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>t())})}}return t.\u0275fac=function(e){return new(e||t)(ys(_a),ys(Ju))},t.\u0275dir=ye({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t})(),Ew=(()=>{class t{constructor(t,e,n){this.chartElement=t,this.zone=e,this.cd=n,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new fu}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new xw(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(t){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const t=this.getContainerDims();t&&(this.width=t.width,this.height=t.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let t,e;const n=this.chartElement.nativeElement;if(null!==n.parentNode){const r=n.parentNode.getBoundingClientRect();t=r.width,e=r.height}return t&&e?{width:t,height:e}:null}formatDates(){for(let t=0;t<this.results.length;t++){const e=this.results[t];if(e.label=e.name,e.label instanceof Date&&(e.label=e.label.toLocaleDateString()),e.series)for(let t=0;t<e.series.length;t++){const n=e.series[t];n.label=n.name,n.label instanceof Date&&(n.label=n.label.toLocaleDateString())}}}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){const t=function t(e,n,r,i){return s(r)&&(i=r,r=void 0),i?t(e,n,r).pipe(N(t=>h(t)?i(...t):i(t))):new b(t=>{!function t(e,n,r,i,o){let s;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(n,r,o),s=()=>t.removeEventListener(n,r,o)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(n,r),s=()=>t.off(n,r)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(n,r),s=()=>t.removeListener(n,r)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let s=0,a=e.length;s<a;s++)t(e[s],n,r,i,o)}i.add(s)}(e,n,(function(e){t.next(arguments.length>1?Array.prototype.slice.call(arguments):e)}),t,r)})}(window,"resize").pipe(function(t,e=kd){return n=>n.lift(new Cd(t,e))}(200)).subscribe(t=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=t}cloneData(t){const e=[];for(const n of t){const t={name:n.name};if(void 0!==n.value&&(t.value=n.value),void 0!==n.series){t.series=[];for(const e of n.series){const n=Object.assign({},e);t.series.push(n)}}void 0!==n.extra&&(t.extra=JSON.parse(JSON.stringify(n.extra))),e.push(t)}return e}}return t.\u0275fac=function(e){return new(e||t)(ys(_a),ys(Ju),ys(Uo))},t.\u0275cmp=he({type:t,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[Oe],decls:1,vars:0,template:function(t,e){1&t&&xs(0,"div")},encapsulation:2}),t})(),Sw=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[ol]]}),t})(),kw=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},providers:[fw,ww],imports:[[ol]]}),t})();function Cw(t){return t instanceof Date?t.toLocaleDateString():t.toLocaleString()}"undefined"!=typeof window?vw=window:"undefined"!=typeof global&&(vw=global);let Tw=(()=>{class t{constructor(t){this.cd=t,this.horizontal=!1,this.labelClick=new fu,this.labelActivate=new fu,this.labelDeactivate=new fu,this.legendEntries=[]}ngOnChanges(t){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const t=[];for(const e of this.data){const n=Cw(e);-1===t.findIndex(t=>t.label===n)&&t.push({label:e,formattedLabel:n,color:this.colors.getColor(e)})}return t}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(e=>t.label===e.name)}activate(t){this.labelActivate.emit(t)}deactivate(t){this.labelDeactivate.emit(t)}trackBy(t,e){return e.label}}return t.\u0275fac=function(e){return new(e||t)(ys(Uo))},t.\u0275cmp=he({type:t,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[Oe],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(t,e){1&t&&(ws(0,"div"),ms(1,lw,3,1,"header",0),ws(2,"div",1),ws(3,"ul",2),ms(4,hw,2,4,"li",3),bs(),bs(),bs()),2&t&&(Vs("width",e.width,"px"),_i(1),vs("ngIf",(null==e.title?null:e.title.length)>0),_i(2),Vs("max-height",e.height-45,"px"),Bs("horizontal-legend",e.horizontal),_i(1),vs("ngForOf",e.legendEntries)("ngForTrackBy",e.trackBy))},directives:function(){return[el,Jc,Aw]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{font-size:14px;font-weight:700;margin-bottom:5px;margin-left:10px;overflow:hidden;white-space:nowrap}.chart-legend li,.chart-legend ul{list-style:none;margin:0;padding:0}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{background:rgba(0,0,0,.05);border-radius:3px;float:left;line-height:85%;list-style:none;overflow-x:hidden;overflow-y:auto;text-align:left;white-space:nowrap;width:100%}.chart-legend .legend-label{color:#afb7c8;cursor:pointer;font-size:90%;margin:8px}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{border-radius:3px;color:#5b646b;display:inline-block;height:15px;margin-right:5px;width:15px}.chart-legend .legend-label-text{font-size:12px;line-height:15px;vertical-align:top;width:calc(100% - 20px)}.chart-legend .legend-label-text,.chart-legend .legend-title-text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-legend .legend-title-text{line-height:16px;vertical-align:bottom}"],encapsulation:2,changeDetection:0}),t})(),Aw=(()=>{class t{constructor(){this.isActive=!1,this.select=new fu,this.activate=new fu,this.deactivate=new fu,this.toggle=new fu}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=he({type:t,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(t,e){1&t&&Cs("mouseenter",(function(){return e.onMouseEnter()}))("mouseleave",(function(){return e.onMouseLeave()}))},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(t,e){1&t&&(ws(0,"span",0),Cs("click",(function(){return e.select.emit(e.formattedLabel)})),ws(1,"span",1),Cs("click",(function(){return e.toggle.emit(e.formattedLabel)})),bs(),ws(2,"span",2),Js(3),bs(),bs()),2&t&&(Bs("active",e.isActive),vs("title",e.formattedLabel),_i(1),Vs("background-color",e.color),_i(2),ea(" ",e.trimmedLabel," "))},encapsulation:2,changeDetection:0}),t})(),Nw=(()=>{class t{constructor(t){this.sanitizer=t,this.horizontal=!1}ngOnChanges(t){const e=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${e})`)}gradientString(t,e){e.push(1);const n=[];return t.reverse().forEach((t,r)=>{n.push(`${t} ${Math.round(100*e[r])}%`)}),n.join(", ")}}return t.\u0275fac=function(e){return new(e||t)(ys(Ol))},t.\u0275cmp=he({type:t,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[Oe],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(t,e){1&t&&(ws(0,"div",0),ws(1,"div",1),ws(2,"span"),Js(3),bs(),bs(),xs(4,"div",2),ws(5,"div",1),ws(6,"span"),Js(7),bs(),bs(),bs()),2&t&&(Vs("height",e.horizontal?void 0:e.height,"px")("width",e.width,"px"),Bs("horizontal-legend",e.horizontal),_i(3),ta(e.valueRange[1].toLocaleString()),_i(1),Vs("background",e.gradient),_i(3),ta(e.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{display:flex;flex-direction:column;text-align:center}.chart-legend .scale-legend-wrap{border-radius:5px;display:inline-block;flex:1;margin:0 auto;width:30px}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{height:30px;margin:0 16px;width:auto}"],encapsulation:2,changeDetection:0}),t})(),Mw=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[ol,Sw,kw],ol,Sw,kw]}),t})(),Ow=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class Dw{constructor(t,e,n,r){"string"==typeof t&&(t=Ow.find(e=>e.name===t)),this.colorDomain=t.domain,this.scaleType=e,this.domain=n,this.customColors=r,this.scale=this.generateColorScheme(t,e,this.domain)}generateColorScheme(t,e,n){let r;if("string"==typeof t&&(t=Ow.find(e=>e.name===t)),"quantile"===e)r=function t(){var e,n=[],r=[],i=[];function o(){var t=0,e=Math.max(1,r.length);for(i=new Array(e-1);++t<e;)i[t-1]=M_(n,t/e);return s}function s(t){return null==t||isNaN(t=+t)?e:r[t_(i,t)]}return s.invertExtent=function(t){var e=r.indexOf(t);return e<0?[NaN,NaN]:[e>0?i[e-1]:n[0],e<i.length?i[e]:n[n.length-1]]},s.domain=function(t){if(!arguments.length)return n.slice();n=[];for(let e of t)null==e||isNaN(e=+e)||n.push(e);return n.sort(Km),o()},s.range=function(t){return arguments.length?(r=Array.from(t),o()):r.slice()},s.unknown=function(t){return arguments.length?(e=t,s):e},s.quantiles=function(){return i.slice()},s.copy=function(){return t().domain(n).range(r).unknown(e)},l_.apply(s,arguments)}().range(t.domain).domain(n);else if("ordinal"===e)r=N_().range(t.domain).domain(n);else if("linear"===e){const e=[...t.domain];1===e.length&&(e.push(e[0]),this.colorDomain=e);const n=T_(0,1,1/e.length);r=C_().domain(n).range(e)}return r}getColor(t){if(null==t)throw new Error("Value can not be null");if("linear"===this.scaleType){const e=C_().domain(this.domain).range([0,1]);return this.scale(e(t))}{if("function"==typeof this.customColors)return this.customColors(t);const e=t.toString();let n;return this.customColors&&this.customColors.length>0&&(n=this.customColors.find(t=>t.name.toLowerCase()===e.toLowerCase())),n?n.value:this.scale(t)}}getLinearGradientStops(t,e){void 0===e&&(e=this.domain[0]);const n=C_().domain(this.domain).range([0,1]),r=function t(){var e,n,r=N_().unknown(void 0),i=r.domain,o=r.range,s=0,a=1,u=!1,c=0,l=0,h=.5;function f(){var t=i().length,r=a<s,f=r?a:s,d=r?s:a;e=(d-f)/Math.max(1,t-c+2*l),u&&(e=Math.floor(e)),f+=(d-f-e*(t-c))*h,n=e*(1-c),u&&(f=Math.round(f),n=Math.round(n));var p=T_(t).map((function(t){return f+e*t}));return o(r?p.reverse():p)}return delete r.unknown,r.domain=function(t){return arguments.length?(i(t),f()):i()},r.range=function(t){return arguments.length?([s,a]=t,s=+s,a=+a,f()):[s,a]},r.rangeRound=function(t){return[s,a]=t,s=+s,a=+a,u=!0,f()},r.bandwidth=function(){return n},r.step=function(){return e},r.round=function(t){return arguments.length?(u=!!t,f()):u},r.padding=function(t){return arguments.length?(c=Math.min(1,l=+t),f()):c},r.paddingInner=function(t){return arguments.length?(c=Math.min(1,t),f()):c},r.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},r.align=function(t){return arguments.length?(h=Math.max(0,Math.min(1,t)),f()):h},r.copy=function(){return t(i(),[s,a]).round(u).paddingInner(c).paddingOuter(l).align(h)},l_.apply(f(),arguments)}().domain(this.colorDomain).range([0,1]),i=this.getColor(t),o=n(e),s=this.getColor(e),a=n(t);let u=1,c=o;const l=[];for(l.push({color:s,offset:o,originalOffset:o,opacity:1});c<a&&u<this.colorDomain.length;){const t=this.colorDomain[u],e=r(t);if(e<=o)u++;else{if(e.toFixed(4)>=(a-r.bandwidth()).toFixed(4))break;l.push({color:t,offset:e,opacity:1}),c=e,u++}}if(l[l.length-1].offset<100&&l.push({color:i,offset:a,opacity:1}),a===o)l[0].offset=0,l[1].offset=100;else if(100!==l[l.length-1].offset)for(const h of l)h.offset=(h.offset-o)/(a-o)*100;return l}}let Iw=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[Mw]]}),t})(),jw=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[Mw]]}),t})(),Pw=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[Mw]]}),t})(),Fw=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[Mw]]}),t})(),Lw=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[Mw]]}),t})();Math;let Rw=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[Mw]]}),t})(),zw=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[Mw,Rw,Lw]]}),t})(),Vw=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[Mw]]}),t})(),Bw=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[Mw]]}),t})(),Hw=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[Mw,Rw,jw]]}),t})(),Gw=(()=>{class t{constructor(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}}return t.\u0275mod=ge({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[Mw,Iw,jw,Pw,Fw,Lw,zw,Vw,Rw,Bw,Hw]}),t})();function Uw(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function qw(t){this._context=t}function Yw(t,e){this._basis=new qw(t),this._beta=e}qw.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:Uw(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Uw(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Yw.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],o=e[0],s=t[n]-i,a=e[n]-o,u=-1;++u<=n;)this._basis.point(this._beta*t[u]+(1-this._beta)*(i+(r=u/n)*s),this._beta*e[u]+(1-this._beta)*(o+r*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var $w=function t(e){function n(t){return 1===e?new qw(t):new Yw(t,e)}return n.beta=function(e){return t(+e)},n}(.85),Ww=Math.PI;function Qw(t){return(1-Math.cos(Ww*t))/2}const Zw=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function Xw(t,e){return function(n){return n.lift(new Kw(t,e))}}class Kw{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Jw(t,this.predicate,this.thisArg))}}class Jw extends y{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}const tb=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function eb(t){return e=>0===t?Mc():e.lift(new nb(t))}class nb{constructor(t){if(this.total=t,this.total<0)throw new tb}call(t,e){return e.subscribe(new rb(t,this.total))}}class rb extends y{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function ib(t=null){return e=>e.lift(new ob(t))}class ob{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new sb(t,this.defaultValue))}}class sb extends y{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function ab(t=lb){return e=>e.lift(new ub(t))}class ub{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new cb(t,this.errorFactory))}}class cb extends y{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function lb(){return new Zw}function hb(t){return void 0===t}function fb(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{a:1,c:0,e:t,b:0,d:1,f:e}}function db(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function pb(t){return Array.isArray(t)?t:Array.from(t)}function gb(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=function(t,e){return{a:t.a*e.a+t.c*e.b,c:t.a*e.c+t.c*e.d,e:t.a*e.e+t.c*e.f+t.e,b:t.b*e.a+t.d*e.b,d:t.b*e.c+t.d*e.d,f:t.b*e.e+t.d*e.f+t.f}};switch((e=Array.isArray(e[0])?e[0]:e).length){case 0:throw new Error("no matrices provided");case 1:return e[0];case 2:return r(e[0],e[1]);default:var i=e,o=pb(i),s=o[0],a=o[1],u=o.slice(2),c=r(s,a);return gb.apply(void 0,[c].concat(db(u)))}}"function"==typeof Symbol&&Symbol,Math,Math,Math,Math;var mb=n("4e6e"),yb=function(t,e){var n;function r(){var r,i,o=n.length,s=0,a=0;for(r=0;r<o;++r)s+=(i=n[r]).x,a+=i.y;for(s=s/o-t,a=a/o-e,r=0;r<o;++r)(i=n[r]).x-=s,i.y-=a}return null==t&&(t=0),null==e&&(e=0),r.initialize=function(t){n=t},r.x=function(e){return arguments.length?(t=+e,r):t},r.y=function(t){return arguments.length?(e=+t,r):e},r},vb=function(t){return function(){return t}},_b=function(){return 1e-6*(Math.random()-.5)};function wb(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,o,s,a,u,c,l,h,f,d=t._root,p={data:r},g=t._x0,m=t._y0,y=t._x1,v=t._y1;if(!d)return t._root=p,t;for(;d.length;)if((c=e>=(o=(g+y)/2))?g=o:y=o,(l=n>=(s=(m+v)/2))?m=s:v=s,i=d,!(d=d[h=l<<1|c]))return i[h]=p,t;if(a=+t._x.call(null,d.data),u=+t._y.call(null,d.data),e===a&&n===u)return p.next=d,i?i[h]=p:t._root=p,t;do{i=i?i[h]=new Array(4):t._root=new Array(4),(c=e>=(o=(g+y)/2))?g=o:y=o,(l=n>=(s=(m+v)/2))?m=s:v=s}while((h=l<<1|c)==(f=(u>=s)<<1|a>=o));return i[f]=d,i[h]=p,t}var bb=function(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i};function xb(t){return t[0]}function Eb(t){return t[1]}function Sb(t,e,n){var r=new kb(null==e?xb:e,null==n?Eb:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function kb(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function Cb(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Tb=Sb.prototype=kb.prototype;function Ab(t){return t.x+t.vx}function Nb(t){return t.y+t.vy}Tb.copy=function(){var t,e,n=new kb(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=Cb(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=Cb(e));return n},Tb.add=function(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return wb(this.cover(e,n),e,n,t)},Tb.addAll=function(t){var e,n,r,i,o=t.length,s=new Array(o),a=new Array(o),u=1/0,c=1/0,l=-1/0,h=-1/0;for(n=0;n<o;++n)isNaN(r=+this._x.call(null,e=t[n]))||isNaN(i=+this._y.call(null,e))||(s[n]=r,a[n]=i,r<u&&(u=r),r>l&&(l=r),i<c&&(c=i),i>h&&(h=i));if(u>l||c>h)return this;for(this.cover(u,c).cover(l,h),n=0;n<o;++n)wb(this,s[n],a[n],t[n]);return this},Tb.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(t))+1,o=(r=Math.floor(e))+1;else{for(var s,a,u=i-n,c=this._root;n>t||t>=i||r>e||e>=o;)switch(a=(e<r)<<1|t<n,(s=new Array(4))[a]=c,c=s,u*=2,a){case 0:i=n+u,o=r+u;break;case 1:n=i-u,o=r+u;break;case 2:i=n+u,r=o-u;break;case 3:n=i-u,r=o-u}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this},Tb.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},Tb.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},Tb.find=function(t,e,n){var r,i,o,s,a,u,c,l=this._x0,h=this._y0,f=this._x1,d=this._y1,p=[],g=this._root;for(g&&p.push(new bb(g,l,h,f,d)),null==n?n=1/0:(l=t-n,h=e-n,f=t+n,d=e+n,n*=n);u=p.pop();)if(!(!(g=u.node)||(i=u.x0)>f||(o=u.y0)>d||(s=u.x1)<l||(a=u.y1)<h))if(g.length){var m=(i+s)/2,y=(o+a)/2;p.push(new bb(g[3],m,y,s,a),new bb(g[2],i,y,m,a),new bb(g[1],m,o,s,y),new bb(g[0],i,o,m,y)),(c=(e>=y)<<1|t>=m)&&(u=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=u)}else{var v=t-+this._x.call(null,g.data),_=e-+this._y.call(null,g.data),w=v*v+_*_;if(w<n){var b=Math.sqrt(n=w);l=t-b,h=e-b,f=t+b,d=e+b,r=g.data}}return r},Tb.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(s=+this._y.call(null,t)))return this;var e,n,r,i,o,s,a,u,c,l,h,f,d=this._root,p=this._x0,g=this._y0,m=this._x1,y=this._y1;if(!d)return this;if(d.length)for(;;){if((c=o>=(a=(p+m)/2))?p=a:m=a,(l=s>=(u=(g+y)/2))?g=u:y=u,e=d,!(d=d[h=l<<1|c]))return this;if(!d.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(n=e,f=h)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[h]=i:delete e[h],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[f]=d:this._root=d),this):(this._root=i,this)},Tb.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},Tb.root=function(){return this._root},Tb.size=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},Tb.visit=function(t){var e,n,r,i,o,s,a=[],u=this._root;for(u&&a.push(new bb(u,this._x0,this._y0,this._x1,this._y1));e=a.pop();)if(!t(u=e.node,r=e.x0,i=e.y0,o=e.x1,s=e.y1)&&u.length){var c=(r+o)/2,l=(i+s)/2;(n=u[3])&&a.push(new bb(n,c,l,o,s)),(n=u[2])&&a.push(new bb(n,r,l,c,s)),(n=u[1])&&a.push(new bb(n,c,i,o,l)),(n=u[0])&&a.push(new bb(n,r,i,c,l))}return this},Tb.visitAfter=function(t){var e,n=[],r=[];for(this._root&&n.push(new bb(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var i=e.node;if(i.length){var o,s=e.x0,a=e.y0,u=e.x1,c=e.y1,l=(s+u)/2,h=(a+c)/2;(o=i[0])&&n.push(new bb(o,s,a,l,h)),(o=i[1])&&n.push(new bb(o,l,a,u,h)),(o=i[2])&&n.push(new bb(o,s,h,l,c)),(o=i[3])&&n.push(new bb(o,l,h,u,c))}r.push(e)}for(;e=r.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},Tb.x=function(t){return arguments.length?(this._x=t,this):this._x},Tb.y=function(t){return arguments.length?(this._y=t,this):this._y};var Mb=function(t){var e,n,r=1,i=1;function o(){for(var t,o,a,u,c,l,h,f=e.length,d=0;d<i;++d)for(o=Sb(e,Ab,Nb).visitAfter(s),t=0;t<f;++t)h=(l=n[(a=e[t]).index])*l,u=a.x+a.vx,c=a.y+a.vy,o.visit(p);function p(t,e,n,i,o){var s=t.data,f=t.r,d=l+f;if(!s)return e>u+d||i<u-d||n>c+d||o<c-d;if(s.index>a.index){var p=u-s.x-s.vx,g=c-s.y-s.vy,m=p*p+g*g;m<d*d&&(0===p&&(m+=(p=_b())*p),0===g&&(m+=(g=_b())*g),m=(d-(m=Math.sqrt(m)))/m*r,a.vx+=(p*=m)*(d=(f*=f)/(h+f)),a.vy+=(g*=m)*d,s.vx-=p*(d=1-d),s.vy-=g*d)}}}function s(t){if(t.data)return t.r=n[t.data.index];for(var e=t.r=0;e<4;++e)t[e]&&t[e].r>t.r&&(t.r=t[e].r)}function a(){if(e){var r,i,o=e.length;for(n=new Array(o),r=0;r<o;++r)n[(i=e[r]).index]=+t(i,r,e)}}return"function"!=typeof t&&(t=vb(null==t?1:+t)),o.initialize=function(t){e=t,a()},o.iterations=function(t){return arguments.length?(i=+t,o):i},o.strength=function(t){return arguments.length?(r=+t,o):r},o.radius=function(e){return arguments.length?(t="function"==typeof e?e:vb(+e),a(),o):t},o},Ob="$";function Db(){}function Ib(t,e){var n=new Db;if(t instanceof Db)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==e)for(;++i<o;)n.set(i,t[i]);else for(;++i<o;)n.set(e(r=t[i],i,t),r)}else if(t)for(var s in t)n.set(s,t[s]);return n}Db.prototype=Ib.prototype={constructor:Db,has:function(t){return Ob+t in this},get:function(t){return this[Ob+t]},set:function(t,e){return this[Ob+t]=e,this},remove:function(t){var e=Ob+t;return e in this&&delete this[e]},clear:function(){for(var t in this)t[0]===Ob&&delete this[t]},keys:function(){var t=[];for(var e in this)e[0]===Ob&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)e[0]===Ob&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)e[0]===Ob&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)e[0]===Ob&&++t;return t},empty:function(){for(var t in this)if(t[0]===Ob)return!1;return!0},each:function(t){for(var e in this)e[0]===Ob&&t(this[e],e.slice(1),this)}};var jb=Ib;function Pb(){}var Fb=jb.prototype;function Lb(t){return t.index}function Rb(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}Pb.prototype=(function(t,e){var n=new Pb;if(t instanceof Pb)t.each((function(t){n.add(t)}));else if(t){var r=-1,i=t.length;if(null==e)for(;++r<i;)n.add(t[r]);else for(;++r<i;)n.add(e(t[r],r,t))}return n}).prototype={constructor:Pb,has:Fb.has,add:function(t){return this[Ob+(t+="")]=t,this},remove:Fb.remove,clear:Fb.clear,values:Fb.keys,size:Fb.size,empty:Fb.empty,each:Fb.each};var zb=function(t){var e,n,r,i,o,s=Lb,a=function(t){return 1/Math.min(i[t.source.index],i[t.target.index])},u=vb(30),c=1;function l(r){for(var i=0,s=t.length;i<c;++i)for(var a,u,l,h,f,d,p,g=0;g<s;++g)h=(l=(a=t[g]).target).x+l.vx-(u=a.source).x-u.vx||_b(),f=l.y+l.vy-u.y-u.vy||_b(),f*=d=((d=Math.sqrt(h*h+f*f))-n[g])/d*r*e[g],l.vx-=(h*=d)*(p=o[g]),l.vy-=f*p,u.vx+=h*(p=1-p),u.vy+=f*p}function h(){if(r){var a,u,c=r.length,l=t.length,h=jb(r,s);for(a=0,i=new Array(c);a<l;++a)(u=t[a]).index=a,"object"!=typeof u.source&&(u.source=Rb(h,u.source)),"object"!=typeof u.target&&(u.target=Rb(h,u.target)),i[u.source.index]=(i[u.source.index]||0)+1,i[u.target.index]=(i[u.target.index]||0)+1;for(a=0,o=new Array(l);a<l;++a)o[a]=i[(u=t[a]).source.index]/(i[u.source.index]+i[u.target.index]);e=new Array(l),f(),n=new Array(l),d()}}function f(){if(r)for(var n=0,i=t.length;n<i;++n)e[n]=+a(t[n],n,t)}function d(){if(r)for(var e=0,i=t.length;e<i;++e)n[e]=+u(t[e],e,t)}return null==t&&(t=[]),l.initialize=function(t){r=t,h()},l.links=function(e){return arguments.length?(t=e,h(),l):t},l.id=function(t){return arguments.length?(s=t,l):s},l.iterations=function(t){return arguments.length?(c=+t,l):c},l.strength=function(t){return arguments.length?(a="function"==typeof t?t:vb(+t),f(),l):a},l.distance=function(t){return arguments.length?(u="function"==typeof t?t:vb(+t),d(),l):u},l};function Vb(t){return t.x}function Bb(t){return t.y}var Hb=Math.PI*(3-Math.sqrt(5)),Gb=function(t){var e,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,s=.6,a=jb(),u=Xg(l),c=Yp("tick","end");function l(){h(),c.call("tick",e),n<r&&(u.stop(),c.call("end",e))}function h(r){var u,c,l=t.length;void 0===r&&(r=1);for(var h=0;h<r;++h)for(n+=(o-n)*i,a.each((function(t){t(n)})),u=0;u<l;++u)null==(c=t[u]).fx?c.x+=c.vx*=s:(c.x=c.fx,c.vx=0),null==c.fy?c.y+=c.vy*=s:(c.y=c.fy,c.vy=0);return e}function f(){for(var e,n=0,r=t.length;n<r;++n){if((e=t[n]).index=n,null!=e.fx&&(e.x=e.fx),null!=e.fy&&(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var i=10*Math.sqrt(n),o=n*Hb;e.x=i*Math.cos(o),e.y=i*Math.sin(o)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function d(e){return e.initialize&&e.initialize(t),e}return null==t&&(t=[]),f(),e={tick:h,restart:function(){return u.restart(l),e},stop:function(){return u.stop(),e},nodes:function(n){return arguments.length?(t=n,f(),a.each(d),e):t},alpha:function(t){return arguments.length?(n=+t,e):n},alphaMin:function(t){return arguments.length?(r=+t,e):r},alphaDecay:function(t){return arguments.length?(i=+t,e):+i},alphaTarget:function(t){return arguments.length?(o=+t,e):o},velocityDecay:function(t){return arguments.length?(s=1-t,e):1-s},force:function(t,n){return arguments.length>1?(null==n?a.remove(t):a.set(t,d(n)),e):a.get(t)},find:function(e,n,r){var i,o,s,a,u,c=0,l=t.length;for(null==r?r=1/0:r*=r,c=0;c<l;++c)(s=(i=e-(a=t[c]).x)*i+(o=n-a.y)*o)<r&&(u=a,r=s);return u},on:function(t,n){return arguments.length>1?(c.on(t,n),e):c.on(t)}}},Ub=function(){var t,e,n,r,i=vb(-30),o=1,s=1/0,a=.81;function u(r){var i,o=t.length,s=Sb(t,Vb,Bb).visitAfter(l);for(n=r,i=0;i<o;++i)e=t[i],s.visit(h)}function c(){if(t){var e,n,o=t.length;for(r=new Array(o),e=0;e<o;++e)r[(n=t[e]).index]=+i(n,e,t)}}function l(t){var e,n,i,o,s,a=0,u=0;if(t.length){for(i=o=s=0;s<4;++s)(e=t[s])&&(n=Math.abs(e.value))&&(a+=e.value,u+=n,i+=n*e.x,o+=n*e.y);t.x=i/u,t.y=o/u}else{(e=t).x=e.data.x,e.y=e.data.y;do{a+=r[e.data.index]}while(e=e.next)}t.value=a}function h(t,i,u,c){if(!t.value)return!0;var l=t.x-e.x,h=t.y-e.y,f=c-i,d=l*l+h*h;if(f*f/a<d)return d<s&&(0===l&&(d+=(l=_b())*l),0===h&&(d+=(h=_b())*h),d<o&&(d=Math.sqrt(o*d)),e.vx+=l*t.value*n/d,e.vy+=h*t.value*n/d),!0;if(!(t.length||d>=s)){(t.data!==e||t.next)&&(0===l&&(d+=(l=_b())*l),0===h&&(d+=(h=_b())*h),d<o&&(d=Math.sqrt(o*d)));do{t.data!==e&&(e.vx+=l*(f=r[t.data.index]*n/d),e.vy+=h*f)}while(t=t.next)}}return u.initialize=function(e){t=e,c()},u.strength=function(t){return arguments.length?(i="function"==typeof t?t:vb(+t),c(),u):i},u.distanceMin=function(t){return arguments.length?(o=t*t,u):Math.sqrt(o)},u.distanceMax=function(t){return arguments.length?(s=t*t,u):Math.sqrt(s)},u.theta=function(t){return arguments.length?(a=t*t,u):Math.sqrt(a)},u},qb=function(t,e,n){var r,i,o,s=vb(.1);function a(t){for(var s=0,a=r.length;s<a;++s){var u=r[s],c=u.x-e||1e-6,l=u.y-n||1e-6,h=Math.sqrt(c*c+l*l),f=(o[s]-h)*i[s]*t/h;u.vx+=c*f,u.vy+=l*f}}function u(){if(r){var e,n=r.length;for(i=new Array(n),o=new Array(n),e=0;e<n;++e)o[e]=+t(r[e],e,r),i[e]=isNaN(o[e])?0:+s(r[e],e,r)}}return"function"!=typeof t&&(t=vb(+t)),null==e&&(e=0),null==n&&(n=0),a.initialize=function(t){r=t,u()},a.strength=function(t){return arguments.length?(s="function"==typeof t?t:vb(+t),u(),a):s},a.radius=function(e){return arguments.length?(t="function"==typeof e?e:vb(+e),u(),a):t},a.x=function(t){return arguments.length?(e=+t,a):e},a.y=function(t){return arguments.length?(n=+t,a):n},a},Yb=function(t){var e,n,r,i=vb(.1);function o(t){for(var i,o=0,s=e.length;o<s;++o)(i=e[o]).vx+=(r[o]-i.x)*n[o]*t}function s(){if(e){var o,s=e.length;for(n=new Array(s),r=new Array(s),o=0;o<s;++o)n[o]=isNaN(r[o]=+t(e[o],o,e))?0:+i(e[o],o,e)}}return"function"!=typeof t&&(t=vb(null==t?0:+t)),o.initialize=function(t){e=t,s()},o.strength=function(t){return arguments.length?(i="function"==typeof t?t:vb(+t),s(),o):i},o.x=function(e){return arguments.length?(t="function"==typeof e?e:vb(+e),s(),o):t},o},$b=function(t){var e,n,r,i=vb(.1);function o(t){for(var i,o=0,s=e.length;o<s;++o)(i=e[o]).vy+=(r[o]-i.y)*n[o]*t}function s(){if(e){var o,s=e.length;for(n=new Array(s),r=new Array(s),o=0;o<s;++o)n[o]=isNaN(r[o]=+t(e[o],o,e))?0:+i(e[o],o,e)}}return"function"!=typeof t&&(t=vb(null==t?0:+t)),o.initialize=function(t){e=t,s()},o.strength=function(t){return arguments.length?(i="function"==typeof t?t:vb(+t),s(),o):i},o.y=function(e){return arguments.length?(t="function"==typeof e?e:vb(+e),s(),o):t},o},Wb=n("eErA"),Qb=function(t,e,n){var r=new Zg,i=e;return null==e?(r.restart(t,e,n),r):(e=+e,n=null==n?Wg():+n,r.restart((function o(s){s+=i,r.restart(o,i+=e,n),t(s)}),e,n),r)};const Zb=["linkTemplate"],Xb=["nodeTemplate"],Kb=["clusterTemplate"],Jb=["defsTemplate"],tx=["miniMapNodeTemplate"],ex=["nodeElement"],nx=["linkElement"];function rx(t,e){1&t&&(Tn(),Es(0,13)),2&t&&vs("ngTemplateOutlet",Ns(2).defsTemplate)}function ix(t,e){if(1&t&&(Tn(),xs(0,"path",14)),2&t){const t=e.$implicit;ps("d",t.textPath)("id",t.id)}}const ox=function(t){return{$implicit:t}};function sx(t,e){if(1&t&&(Tn(),Es(0,19)),2&t){const t=Ns().$implicit;vs("ngTemplateOutlet",Ns(2).clusterTemplate)("ngTemplateOutletContext",lu(2,ox,t))}}function ax(t,e){if(1&t&&(Tn(),ws(0,"g",20),xs(1,"rect"),ws(2,"text",21),Js(3),bs(),bs()),2&t){const t=Ns().$implicit;_i(1),ps("width",t.dimension.width)("height",t.dimension.height)("fill",null==t.data?null:t.data.color),_i(1),ps("x",10)("y",t.dimension.height/2),_i(1),ea(" ",t.label," ")}}function ux(t,e){if(1&t){const t=Ss();Tn(),ws(0,"g",15,16),Cs("click",(function(){nn(t);const n=e.$implicit;return Ns(2).onClick(n)})),ms(2,sx,1,4,"ng-container",17),ms(3,ax,4,6,"g",18),bs()}if(2&t){const t=e.$implicit,n=Ns(2);Bs("old-node",n.animate&&n.oldClusters.has(t.id)),vs("id",t.id),ps("transform",t.transform),_i(2),vs("ngIf",n.clusterTemplate),_i(1),vs("ngIf",!n.clusterTemplate)}}function cx(t,e){if(1&t&&(Tn(),Es(0,19)),2&t){const t=Ns().$implicit;vs("ngTemplateOutlet",Ns(2).linkTemplate)("ngTemplateOutletContext",lu(2,ox,t))}}function lx(t,e){1&t&&(Tn(),xs(0,"path",25)),2&t&&ps("d",Ns().$implicit.line)}function hx(t,e){if(1&t&&(Tn(),ws(0,"g",22,23),ms(2,cx,1,4,"ng-container",17),ms(3,lx,1,1,"path",24),bs()),2&t){const t=e.$implicit,n=Ns(2);vs("id",t.id),_i(2),vs("ngIf",n.linkTemplate),_i(1),vs("ngIf",!n.linkTemplate)}}function fx(t,e){if(1&t&&(Tn(),Es(0,19)),2&t){const t=Ns().$implicit;vs("ngTemplateOutlet",Ns(2).nodeTemplate)("ngTemplateOutletContext",lu(2,ox,t))}}function dx(t,e){if(1&t&&(Tn(),xs(0,"circle",29)),2&t){const t=Ns().$implicit;ps("cx",t.dimension.width/2)("cy",t.dimension.height/2)("fill",null==t.data?null:t.data.color)}}function px(t,e){if(1&t){const t=Ss();Tn(),ws(0,"g",26,27),Cs("click",(function(){nn(t);const n=e.$implicit;return Ns(2).onClick(n)}))("mousedown",(function(n){nn(t);const r=e.$implicit;return Ns(2).onNodeMouseDown(n,r)})),ms(2,fx,1,4,"ng-container",17),ms(3,dx,1,3,"circle",28),bs()}if(2&t){const t=e.$implicit,n=Ns(2);Bs("old-node",n.animate&&n.oldNodes.has(t.id)),vs("id",t.id),ps("transform",t.transform),_i(2),vs("ngIf",n.nodeTemplate),_i(1),vs("ngIf",!n.nodeTemplate)}}function gx(t,e){if(1&t){const t=Ss();Tn(),ws(0,"g",3),Cs("touchstart",(function(e){return nn(t),Ns().onTouchStart(e)}))("touchend",(function(e){return nn(t),Ns().onTouchEnd(e)})),ws(1,"defs"),ms(2,rx,1,1,"ng-container",4),ms(3,ix,1,2,"path",5),bs(),ws(4,"rect",6),Cs("mousedown",(function(){return nn(t),Ns().isPanning=!0})),bs(),Ds(5),ws(6,"g",7),ms(7,ux,4,6,"g",8),bs(),ws(8,"g",9),ms(9,hx,4,3,"g",10),bs(),ws(10,"g",11),ms(11,px,4,6,"g",12),bs(),bs()}if(2&t){const t=Ns();ps("transform",t.transform),_i(2),vs("ngIf",t.defsTemplate),_i(1),vs("ngForOf",t.graph.edges),_i(1),ps("width",100*t.dims.width)("height",100*t.dims.height)("transform","translate("+50*(-t.dims.width||0)+","+50*(-t.dims.height||0)+")"),_i(3),vs("ngForOf",t.graph.clusters)("ngForTrackBy",t.trackNodeBy),_i(2),vs("ngForOf",t.graph.edges)("ngForTrackBy",t.trackLinkBy),_i(2),vs("ngForOf",t.graph.nodes)("ngForTrackBy",t.trackNodeBy)}}function mx(t,e){if(1&t&&(Tn(),Es(0,19)),2&t){const t=Ns().$implicit;vs("ngTemplateOutlet",Ns(2).miniMapNodeTemplate)("ngTemplateOutletContext",lu(2,ox,t))}}function yx(t,e){if(1&t&&(Tn(),Es(0,19)),2&t){const t=Ns().$implicit;vs("ngTemplateOutlet",Ns(2).nodeTemplate)("ngTemplateOutletContext",lu(2,ox,t))}}function vx(t,e){if(1&t&&(Tn(),xs(0,"circle",29)),2&t){const t=Ns().$implicit,e=Ns(2);ps("cx",t.dimension.width/2/e.minimapScaleCoefficient)("cy",t.dimension.height/2/e.minimapScaleCoefficient)("fill",null==t.data?null:t.data.color)}}function _x(t,e){if(1&t&&(Tn(),ws(0,"g",35,27),ms(2,mx,1,4,"ng-container",17),ms(3,yx,1,4,"ng-container",17),ms(4,vx,1,3,"circle",28),bs()),2&t){const t=e.$implicit,n=Ns(2);Bs("old-node",n.animate&&n.oldNodes.has(t.id)),vs("id",t.id),ps("transform",t.transform),_i(2),vs("ngIf",n.miniMapNodeTemplate),_i(1),vs("ngIf",!n.miniMapNodeTemplate&&n.nodeTemplate),_i(1),vs("ngIf",!n.nodeTemplate&&!n.miniMapNodeTemplate)}}function wx(t,e){if(1&t){const t=Ss();Tn(),ws(0,"g",30),ws(1,"rect",31),Cs("mousedown",(function(e){return nn(t),Ns().onMinimapPanTo(e)})),bs(),ws(2,"g"),ws(3,"g",32),ms(4,_x,5,7,"g",33),bs(),ws(5,"rect",34),Cs("mousedown",(function(){return nn(t),Ns().onMinimapDragMouseDown()})),bs(),bs(),bs()}if(2&t){const t=Ns();ps("transform",t.minimapTransform)("clip-path","url(#"+t.minimapClipPathId+")"),_i(1),ps("width",t.graphDims.width/t.minimapScaleCoefficient)("height",t.graphDims.height/t.minimapScaleCoefficient),_i(1),Vs("transform","translate("+-t.minimapOffsetX/t.minimapScaleCoefficient+"px,"+-t.minimapOffsetY/t.minimapScaleCoefficient+"px)"),_i(1),Vs("transform","scale("+1/t.minimapScaleCoefficient+")"),_i(1),vs("ngForOf",t.graph.nodes)("ngForTrackBy",t.trackNodeBy),_i(1),Bs("panning",t.isMinimapPanning),ps("transform","translate("+t.panOffsetX/t.zoomLevel/-t.minimapScaleCoefficient+","+t.panOffsetY/t.zoomLevel/-t.minimapScaleCoefficient+")")("width",t.width/t.minimapScaleCoefficient/t.zoomLevel)("height",t.height/t.minimapScaleCoefficient/t.zoomLevel)}}const bx=function(t,e){return[t,e]},xx=["*"],Ex={};function Sx(){let t=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return t="a"+t,Ex[t]?Sx():(Ex[t]=!0,t)}var kx=function(t){return t.LEFT_TO_RIGHT="LR",t.RIGHT_TO_LEFT="RL",t.TOP_TO_BOTTOM="TB",t.BOTTOM_TO_TOM="BT",t}({});function Cx(t){return"string"==typeof t?{id:t,x:0,y:0}:t}function Tx(t,e){return"number"==typeof e?t[e]:e}const Ax={dagre:class{constructor(){this.defaultSettings={orientation:kx.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(t){this.createDagreGraph(t),Object(mb.layout)(this.dagreGraph),t.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const n=this.dagreGraph._nodes[e],r=t.nodes.find(t=>t.id===n.id);r.position={x:n.x,y:n.y},r.dimension={width:n.width,height:n.height}}return t}updateEdge(t,e){const n=t.nodes.find(t=>t.id===e.source),r=t.nodes.find(t=>t.id===e.target),i=n.position.y<=r.position.y?-1:1;return e.points=[{x:n.position.x,y:n.position.y-i*(n.dimension.height/2)},{x:r.position.x,y:r.position.y+i*(r.dimension.height/2)}],t}createDagreGraph(t){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new mb.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=t.nodes.map(t=>{const e=Object.assign({},t);return e.width=t.dimension.width,e.height=t.dimension.height,e.x=t.position.x,e.y=t.position.y,e}),this.dagreEdges=t.edges.map(t=>{const e=Object.assign({},t);return e.id||(e.id=Sx()),e});for(const n of this.dagreNodes)n.width||(n.width=20),n.height||(n.height=30),this.dagreGraph.setNode(n.id,n);for(const n of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(n.source,n.target,n,n.id):this.dagreGraph.setEdge(n.source,n.target);return this.dagreGraph}},dagreCluster:class{constructor(){this.defaultSettings={orientation:kx.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(t){this.createDagreGraph(t),Object(mb.layout)(this.dagreGraph),t.edgeLabels=this.dagreGraph._edgeLabels;const e=t=>{const e=this.dagreGraph._nodes[t.id];return Object.assign(Object.assign({},t),{position:{x:e.x,y:e.y},dimension:{width:e.width,height:e.height}})};return t.clusters=(t.clusters||[]).map(e),t.nodes=t.nodes.map(e),t}updateEdge(t,e){const n=t.nodes.find(t=>t.id===e.source),r=t.nodes.find(t=>t.id===e.target),i=n.position.y<=r.position.y?-1:1;return e.points=[{x:n.position.x,y:n.position.y-i*(n.dimension.height/2)},{x:r.position.x,y:r.position.y+i*(r.dimension.height/2)}],t}createDagreGraph(t){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new mb.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=t.nodes.map(t=>{const e=Object.assign({},t);return e.width=t.dimension.width,e.height=t.dimension.height,e.x=t.position.x,e.y=t.position.y,e}),this.dagreClusters=t.clusters||[],this.dagreEdges=t.edges.map(t=>{const e=Object.assign({},t);return e.id||(e.id=Sx()),e});for(const n of this.dagreNodes)this.dagreGraph.setNode(n.id,n);for(const n of this.dagreClusters)this.dagreGraph.setNode(n.id,n),n.childNodeIds.forEach(t=>{this.dagreGraph.setParent(t,n.id)});for(const n of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(n.source,n.target,n,n.id):this.dagreGraph.setEdge(n.source,n.target);return this.dagreGraph}},dagreNodesOnly:class{constructor(){this.defaultSettings={orientation:kx.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,curveDistance:20,multigraph:!0,compound:!0},this.settings={}}run(t){this.createDagreGraph(t),Object(mb.layout)(this.dagreGraph),t.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const n=this.dagreGraph._nodes[e],r=t.nodes.find(t=>t.id===n.id);r.position={x:n.x,y:n.y},r.dimension={width:n.width,height:n.height}}for(const e of t.edges)this.updateEdge(t,e);return t}updateEdge(t,e){const n=t.nodes.find(t=>t.id===e.source),r=t.nodes.find(t=>t.id===e.target),i="BT"===this.settings.orientation||"TB"===this.settings.orientation?"y":"x",o="y"===i?"x":"y",s="y"===i?"height":"width",a=n.position[i]<=r.position[i]?-1:1,u={[o]:n.position[o],[i]:n.position[i]-a*(n.dimension[s]/2)},c={[o]:r.position[o],[i]:r.position[i]+a*(r.dimension[s]/2)},l=this.settings.curveDistance||this.defaultSettings.curveDistance;e.points=[u,{[o]:u[o],[i]:u[i]-a*l},{[o]:c[o],[i]:c[i]+a*l},c];const h=t.edgeLabels[`${e.source}\x01${e.target}\x01\0`];return h&&(h.points=e.points),t}createDagreGraph(t){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new mb.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=t.nodes.map(t=>{const e=Object.assign({},t);return e.width=t.dimension.width,e.height=t.dimension.height,e.x=t.position.x,e.y=t.position.y,e}),this.dagreEdges=t.edges.map(t=>{const e=Object.assign({},t);return e.id||(e.id=Sx()),e});for(const n of this.dagreNodes)n.width||(n.width=20),n.height||(n.height=30),this.dagreGraph.setNode(n.id,n);for(const n of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(n.source,n.target,n,n.id):this.dagreGraph.setEdge(n.source,n.target);return this.dagreGraph}},d3ForceDirected:class{constructor(){this.defaultSettings={force:Gb().force("charge",Ub().strength(-150)).force("collide",Mb(5)),forceLink:zb().id(t=>t.id).distance(()=>100)},this.settings={},this.outputGraph$=new C}run(t){return this.inputGraph=t,this.d3Graph={nodes:[...this.inputGraph.nodes.map(t=>Object.assign({},t))],edges:[...this.inputGraph.edges.map(t=>Object.assign({},t))]},this.outputGraph={nodes:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&this.settings.force.nodes(this.d3Graph.nodes).force("link",this.settings.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}updateEdge(t,e){const n=Object.assign({},this.defaultSettings,this.settings);return n.force&&n.force.nodes(this.d3Graph.nodes).force("link",n.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}d3GraphToOutputGraph(t){return this.outputGraph.nodes=this.d3Graph.nodes.map(t=>Object.assign(Object.assign({},t),{id:t.id||Sx(),position:{x:t.x,y:t.y},dimension:{width:t.dimension&&t.dimension.width||20,height:t.dimension&&t.dimension.height||20},transform:`translate(${t.x-(t.dimension&&t.dimension.width||20)/2||0}, ${t.y-(t.dimension&&t.dimension.height||20)/2||0})`})),this.outputGraph.edges=this.d3Graph.edges.map(t=>Object.assign(Object.assign({},t),{source:Cx(t.source).id,target:Cx(t.target).id,points:[{x:Cx(t.source).x,y:Cx(t.source).y},{x:Cx(t.target).x,y:Cx(t.target).y}]})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(t,e){this.settings.force.alphaTarget(.3).restart();const n=this.d3Graph.nodes.find(e=>e.id===t.id);n&&(this.draggingStart={x:e.x-n.x,y:e.y-n.y},n.fx=e.x-this.draggingStart.x,n.fy=e.y-this.draggingStart.y)}onDrag(t,e){if(!t)return;const n=this.d3Graph.nodes.find(e=>e.id===t.id);n&&(n.fx=e.x-this.draggingStart.x,n.fy=e.y-this.draggingStart.y)}onDragEnd(t,e){if(!t)return;const n=this.d3Graph.nodes.find(e=>e.id===t.id);n&&(this.settings.force.alphaTarget(0),n.fx=void 0,n.fy=void 0)}},colaForceDirected:class{constructor(){this.defaultSettings={force:Object(Wb.d3adaptor)(Object.assign(Object.assign(Object.assign({},i),r),o)).linkDistance(150).avoidOverlaps(!0),viewDimensions:{width:600,height:600,xOffset:0}},this.settings={},this.outputGraph$=new C}run(t){return this.inputGraph=t,this.inputGraph.clusters||(this.inputGraph.clusters=[]),this.internalGraph={nodes:[...this.inputGraph.nodes.map(t=>Object.assign(Object.assign({},t),{width:t.dimension?t.dimension.width:20,height:t.dimension?t.dimension.height:20}))],groups:[...this.inputGraph.clusters.map(t=>({padding:5,groups:t.childNodeIds.map(t=>this.inputGraph.clusters.findIndex(e=>e.id===t)).filter(t=>t>=0),leaves:t.childNodeIds.map(t=>this.inputGraph.nodes.findIndex(e=>e.id===t)).filter(t=>t>=0)}))],links:[...this.inputGraph.edges.map(t=>{const e=this.inputGraph.nodes.findIndex(e=>t.source===e.id),n=this.inputGraph.nodes.findIndex(e=>t.target===e.id);if(-1!==e&&-1!==n)return Object.assign(Object.assign({},t),{source:e,target:n})}).filter(t=>!!t)],groupLinks:[...this.inputGraph.edges.map(t=>{const e=this.inputGraph.nodes.findIndex(e=>t.source===e.id),n=this.inputGraph.nodes.findIndex(e=>t.target===e.id);if(!(e>=0&&n>=0))return t}).filter(t=>!!t)]},this.outputGraph={nodes:[],clusters:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&(this.settings.force=this.settings.force.nodes(this.internalGraph.nodes).groups(this.internalGraph.groups).links(this.internalGraph.links).alpha(.5).on("tick",()=>{this.settings.onTickListener&&this.settings.onTickListener(this.internalGraph),this.outputGraph$.next(this.internalGraphToOutputGraph(this.internalGraph))}),this.settings.viewDimensions&&(this.settings.force=this.settings.force.size([this.settings.viewDimensions.width,this.settings.viewDimensions.height])),this.settings.forceModifierFn&&(this.settings.force=this.settings.forceModifierFn(this.settings.force)),this.settings.force.start()),this.outputGraph$.asObservable()}updateEdge(t,e){const n=Object.assign({},this.defaultSettings,this.settings);return n.force&&n.force.start(),this.outputGraph$.asObservable()}internalGraphToOutputGraph(t){return this.outputGraph.nodes=t.nodes.map(t=>Object.assign(Object.assign({},t),{id:t.id||Sx(),position:{x:t.x,y:t.y},dimension:{width:t.dimension&&t.dimension.width||20,height:t.dimension&&t.dimension.height||20},transform:`translate(${t.x-(t.dimension&&t.dimension.width||20)/2||0}, ${t.y-(t.dimension&&t.dimension.height||20)/2||0})`})),this.outputGraph.edges=t.links.map(e=>{const n=Tx(t.nodes,e.source),r=Tx(t.nodes,e.target);return Object.assign(Object.assign({},e),{source:n.id,target:r.id,points:[n.bounds.rayIntersection(r.bounds.cx(),r.bounds.cy()),r.bounds.rayIntersection(n.bounds.cx(),n.bounds.cy())]})}).concat(t.groupLinks.map(e=>{const n=t.nodes.find(t=>t.id===e.source),r=t.nodes.find(t=>t.id===e.target),i=n||t.groups.find(t=>t.id===e.source),o=r||t.groups.find(t=>t.id===e.target);return Object.assign(Object.assign({},e),{source:i.id,target:o.id,points:[i.bounds.rayIntersection(o.bounds.cx(),o.bounds.cy()),o.bounds.rayIntersection(i.bounds.cx(),i.bounds.cy())]})})),this.outputGraph.clusters=t.groups.map((t,e)=>Object.assign(Object.assign({},this.inputGraph.clusters[e]),{dimension:{width:t.bounds?t.bounds.width():20,height:t.bounds?t.bounds.height():20},position:{x:t.bounds?t.bounds.x+t.bounds.width()/2:0,y:t.bounds?t.bounds.y+t.bounds.height()/2:0}})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(t,e){const n=this.outputGraph.nodes.findIndex(e=>e.id===t.id),r=this.internalGraph.nodes[n];r&&(this.draggingStart={x:r.x-e.x,y:r.y-e.y},r.fixed=1,this.settings.force.start())}onDrag(t,e){if(!t)return;const n=this.outputGraph.nodes.findIndex(e=>e.id===t.id),r=this.internalGraph.nodes[n];r&&(r.x=this.draggingStart.x+e.x,r.y=this.draggingStart.y+e.y)}onDragEnd(t,e){if(!t)return;const n=this.outputGraph.nodes.findIndex(e=>e.id===t.id),r=this.internalGraph.nodes[n];r&&(r.fixed=0)}}};let Nx=(()=>{class t{getLayout(t){if(Ax[t])return new Ax[t];throw new Error(`Unknown layout type '${t}'`)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=lt({token:t,factory:t.\u0275fac}),t})();var Mx=function(t){return t.Both="both",t.Horizontal="horizontal",t.Vertical="vertical",t}({}),Ox=function(t){return t.UpperLeft="UpperLeft",t.UpperRight="UpperRight",t}({});function Dx(t,e,n){let r,i,o;n=n||{};let s=null,a=0;function u(){a=!1===n.leading?0:+new Date,s=null,o=t.apply(r,i)}return function(){const c=+new Date;a||!1!==n.leading||(a=c);const l=e-(c-a);return r=this,i=arguments,l<=0?(clearTimeout(s),s=null,a=c,o=t.apply(r,i)):s||!1===n.trailing||(s=setTimeout(u,l)),o}}let Ix=(()=>{class t extends Ew{constructor(t,e,n,r){super(t,e,n),this.el=t,this.zone=e,this.cd=n,this.layoutService=r,this.legend=!1,this.nodes=[],this.clusters=[],this.links=[],this.activeEntries=[],this.draggingEnabled=!0,this.panningEnabled=!0,this.panningAxis=Mx.Both,this.enableZoom=!0,this.zoomSpeed=.1,this.minZoomLevel=.1,this.maxZoomLevel=4,this.autoZoom=!1,this.panOnZoom=!0,this.animate=!1,this.autoCenter=!1,this.enableTrackpadSupport=!1,this.showMiniMap=!1,this.miniMapMaxWidth=100,this.miniMapPosition=Ox.UpperRight,this.activate=new fu,this.deactivate=new fu,this.zoomChange=new fu,this.clickHandler=new fu,this.isMouseMoveCalled=!1,this.graphSubscription=new p,this.subscriptions=[],this.margin=[0,0,0,0],this.results=[],this.isPanning=!1,this.isDragging=!1,this.initialized=!1,this.graphDims={width:0,height:0},this._oldLinks=[],this.oldNodes=new Set,this.oldClusters=new Set,this.transformationMatrix={a:1,c:0,e:0,b:0,d:1,f:0},this._touchLastX=null,this._touchLastY=null,this.minimapScaleCoefficient=3,this.minimapOffsetX=0,this.minimapOffsetY=0,this.isMinimapPanning=!1,this.groupResultsBy=t=>t.label}get zoomLevel(){return this.transformationMatrix.a}set zoomLevel(t){this.zoomTo(Number(t))}get panOffsetX(){return this.transformationMatrix.e}set panOffsetX(t){this.panTo(Number(t),null)}get panOffsetY(){return this.transformationMatrix.f}set panOffsetY(t){this.panTo(null,Number(t))}ngOnInit(){this.update$&&this.subscriptions.push(this.update$.subscribe(()=>{this.update()})),this.center$&&this.subscriptions.push(this.center$.subscribe(()=>{this.center()})),this.zoomToFit$&&this.subscriptions.push(this.zoomToFit$.subscribe(()=>{this.zoomToFit()})),this.panToNode$&&this.subscriptions.push(this.panToNode$.subscribe(t=>{this.panToNodeId(t)})),this.minimapClipPathId="minimapClip"+Sx()}ngOnChanges(t){const{layoutSettings:e}=t;this.setLayout(this.layout),e&&this.setLayoutSettings(this.layoutSettings),this.update()}setLayout(t){this.initialized=!1,t||(t="dagre"),"string"==typeof t&&(this.layout=this.layoutService.getLayout(t),this.setLayoutSettings(this.layoutSettings))}setLayoutSettings(t){this.layout&&"string"!=typeof this.layout&&(this.layout.settings=t)}ngOnDestroy(){super.ngOnDestroy();for(const t of this.subscriptions)t.unsubscribe();this.subscriptions=null}ngAfterViewInit(){super.ngAfterViewInit(),setTimeout(()=>this.update())}update(){super.update(),this.curve||(this.curve=$w.beta(1)),this.zone.run(()=>{this.dims=function({width:t,height:e,margins:n,showXAxis:r=!1,showYAxis:i=!1,xAxisHeight:o=0,yAxisWidth:s=0,showXLabel:a=!1,showYLabel:u=!1,showLegend:c=!1,legendType:l="ordinal",legendPosition:h="right",columns:f=12}){let d=n[3],p=t,g=e-n[0]-n[2];if(c&&"right"===h&&(f-="ordinal"===l?2:1),p=p*f/12,p=p-n[1]-n[3],r&&(g-=5,g-=o,a)&&(g-=30),i&&(p-=5,p-=s,d+=s,d+=10,u)){const t=30;p-=t,d+=t}return p=Math.max(0,p),g=Math.max(0,g),{width:Math.floor(p),height:Math.floor(g),xOffset:Math.floor(d)}}({width:this.width,height:this.height,margins:this.margin,showLegend:this.legend}),this.seriesDomain=this.getSeriesDomain(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.createGraph(),this.updateTransform(),this.initialized=!0})}createGraph(){this.graphSubscription.unsubscribe(),this.graphSubscription=new p;const t=t=>(t.meta||(t.meta={}),t.id||(t.id=Sx()),t.dimension?t.meta.forceDimensions=void 0===t.meta.forceDimensions||t.meta.forceDimensions:(t.dimension={width:this.nodeWidth?this.nodeWidth:30,height:this.nodeHeight?this.nodeHeight:30},t.meta.forceDimensions=!1),t.position={x:0,y:0},t.data=t.data?t.data:{},t);this.graph={nodes:this.nodes.length>0?[...this.nodes].map(t):[],clusters:this.clusters&&this.clusters.length>0?[...this.clusters].map(t):[],edges:this.links.length>0?[...this.links].map(t=>(t.id||(t.id=Sx()),t)):[]},requestAnimationFrame(()=>this.draw())}draw(){if(!this.layout||"string"==typeof this.layout)return;this.applyNodeDimensions();const t=this.layout.run(this.graph),e=t instanceof b?t:Oc(t);this.graphSubscription.add(e.subscribe(t=>{this.graph=t,this.tick()})),0!==this.graph.nodes.length&&e.pipe(function(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Xw((e,n)=>t(e,n,r)):w,eb(1),n?ib(e):ab(()=>new Zw))}()).subscribe(()=>this.applyNodeDimensions())}tick(){const t=new Set;this.graph.nodes.map(e=>{e.transform=`translate(${e.position.x-e.dimension.width/2||0}, ${e.position.y-e.dimension.height/2||0})`,e.data||(e.data={}),e.data.color=this.colors.getColor(this.groupResultsBy(e)),t.add(e.id)});const e=new Set;(this.graph.clusters||[]).map(t=>{t.transform=`translate(${t.position.x-t.dimension.width/2||0}, ${t.position.y-t.dimension.height/2||0})`,t.data||(t.data={}),t.data.color=this.colors.getColor(this.groupResultsBy(t)),e.add(t.id)}),setTimeout(()=>{this.oldNodes=t,this.oldClusters=e},500);const n=[];for(const r in this.graph.edgeLabels){const t=this.graph.edgeLabels[r],e=r.replace(/[^\w-]*/g,""),i=this.layout&&"string"!=typeof this.layout&&this.layout.settings&&this.layout.settings.multigraph;let o=this._oldLinks.find(i?t=>`${t.source}${t.target}${t.id}`===e:t=>`${t.source}${t.target}`===e);const s=this.graph.edges.find(i?t=>`${t.source}${t.target}${t.id}`===e:t=>`${t.source}${t.target}`===e);o?o.data&&s&&s.data&&JSON.stringify(o.data)!==JSON.stringify(s.data)&&(o.data=s.data):o=s||t,o.oldLine=o.line;const a=t.points,u=this.generateLine(a),c=Object.assign({},o);c.line=u,c.points=a,this.updateMidpointOnEdge(c,a);const l=a[Math.floor(a.length/2)];l&&(c.textTransform=`translate(${l.x||0},${l.y||0})`),c.textAngle=0,c.oldLine||(c.oldLine=c.line),this.calcDominantBaseline(c),n.push(c)}this.graph.edges=n,this.graph.edges&&(this._oldLinks=this.graph.edges.map(t=>{const e=Object.assign({},t);return e.oldLine=t.line,e})),this.updateMinimap(),this.autoZoom&&this.zoomToFit(),this.autoCenter&&this.center(),requestAnimationFrame(()=>this.redrawLines()),this.cd.markForCheck()}getMinimapTransform(){switch(this.miniMapPosition){case Ox.UpperLeft:return"";case Ox.UpperRight:return"translate("+(this.dims.width-this.graphDims.width/this.minimapScaleCoefficient)+",0)";default:return""}}updateGraphDims(){let t=1/0,e=-1/0,n=1/0,r=-1/0;for(let i=0;i<this.graph.nodes.length;i++){const o=this.graph.nodes[i];t=o.position.x<t?o.position.x:t,n=o.position.y<n?o.position.y:n,e=o.position.x+o.dimension.width>e?o.position.x+o.dimension.width:e,r=o.position.y+o.dimension.height>r?o.position.y+o.dimension.height:r}t-=100,n-=100,e+=100,r+=100,this.graphDims.width=e-t,this.graphDims.height=r-n,this.minimapOffsetX=t,this.minimapOffsetY=n}updateMinimap(){this.graph.nodes&&this.graph.nodes.length&&(this.updateGraphDims(),this.miniMapMaxWidth&&(this.minimapScaleCoefficient=this.graphDims.width/this.miniMapMaxWidth),this.miniMapMaxHeight&&(this.minimapScaleCoefficient=Math.max(this.minimapScaleCoefficient,this.graphDims.height/this.miniMapMaxHeight)),this.minimapTransform=this.getMinimapTransform())}applyNodeDimensions(){this.nodeElements&&this.nodeElements.length&&this.nodeElements.map(t=>{const e=t.nativeElement,n=this.graph.nodes.find(t=>t.id===e.id);if(!n)return;let r;try{if(r=e.getBBox(),!r.width||!r.height)return}catch(i){return}if(n.dimension.height=this.nodeHeight?n.dimension.height&&n.meta.forceDimensions?n.dimension.height:this.nodeHeight:n.dimension.height&&n.meta.forceDimensions?n.dimension.height:r.height,this.nodeMaxHeight&&(n.dimension.height=Math.max(n.dimension.height,this.nodeMaxHeight)),this.nodeMinHeight&&(n.dimension.height=Math.min(n.dimension.height,this.nodeMinHeight)),this.nodeWidth)n.dimension.width=n.dimension.width&&n.meta.forceDimensions?n.dimension.width:this.nodeWidth;else if(e.getElementsByTagName("text").length){let t;try{for(const n of e.getElementsByTagName("text")){const e=n.getBBox();t?(e.width>t.width&&(t.width=e.width),e.height>t.height&&(t.height=e.height)):t=e}}catch(i){return}n.dimension.width=n.dimension.width&&n.meta.forceDimensions?n.dimension.width:t.width+20}else n.dimension.width=n.dimension.width&&n.meta.forceDimensions?n.dimension.width:r.width;this.nodeMaxWidth&&(n.dimension.width=Math.max(n.dimension.width,this.nodeMaxWidth)),this.nodeMinWidth&&(n.dimension.width=Math.min(n.dimension.width,this.nodeMinWidth))})}redrawLines(t=this.animate){this.linkElements.map(e=>{const n=this.graph.edges.find(t=>t.id===e.nativeElement.id);n&&(zp(e.nativeElement).select(".line").attr("d",n.oldLine).transition().ease(Qw).duration(t?500:0).attr("d",n.line),zp(this.chartElement.nativeElement).select("#"+n.id).attr("d",n.oldTextPath).transition().ease(Qw).duration(t?500:0).attr("d",n.textPath),this.updateMidpointOnEdge(n,n.points))})}calcDominantBaseline(t){const e=t.points[0],n=t.points[t.points.length-1];t.oldTextPath=t.textPath,n.x<e.x?(t.dominantBaseline="text-before-edge",t.textPath=this.generateLine([...t.points].reverse())):(t.dominantBaseline="text-after-edge",t.textPath=t.line)}generateLine(t){return function(){var t=B_,e=H_,n=V_(!0),r=null,i=D_,o=null;function s(s){var a,u,c,l=s.length,h=!1;for(null==r&&(o=i(c=z_())),a=0;a<=l;++a)!(a<l&&n(u=s[a],a,s))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(u,a,s),+e(u,a,s));if(c)return o=null,c+""||null}return s.x=function(e){return arguments.length?(t="function"==typeof e?e:V_(+e),s):t},s.y=function(t){return arguments.length?(e="function"==typeof t?t:V_(+t),s):e},s.defined=function(t){return arguments.length?(n="function"==typeof t?t:V_(!!t),s):n},s.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),s):i},s.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),s):r},s}().x(t=>t.x).y(t=>t.y).curve(this.curve)(t)}onZoom(t,e){if(this.enableTrackpadSupport&&!t.ctrlKey)return void this.pan(-1*t.deltaX,-1*t.deltaY);const n=1+("in"===e?this.zoomSpeed:-this.zoomSpeed),r=this.zoomLevel*n;if(!(r<=this.minZoomLevel||r>=this.maxZoomLevel)&&this.enableZoom)if(!0===this.panOnZoom&&t){const e=t.clientX,r=t.clientY,i=this.chart.nativeElement.querySelector("svg"),o=i.querySelector("g.chart"),s=i.createSVGPoint();s.x=e,s.y=r;const a=s.matrixTransform(o.getScreenCTM().inverse());this.pan(a.x,a.y,!0),this.zoom(n),this.pan(-a.x,-a.y,!0)}else this.zoom(n)}pan(t,e,n=!1){const r=n?1:this.zoomLevel;this.transformationMatrix=gb(this.transformationMatrix,fb(t/r,e/r)),this.updateTransform()}panTo(t,e){null==t||isNaN(t)||null==e||isNaN(e)||(this.transformationMatrix=gb(this.transformationMatrix,fb((-this.panOffsetX-t*this.zoomLevel+this.dims.width/2)/this.zoomLevel,(-this.panOffsetY-e*this.zoomLevel+this.dims.height/2)/this.zoomLevel)),this.updateTransform())}zoom(t){this.transformationMatrix=gb(this.transformationMatrix,function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return hb(e)&&(e=t),{a:t,c:0,e:0,b:0,d:e,f:0}}(t,t)),this.zoomChange.emit(this.zoomLevel),this.updateTransform()}zoomTo(t){this.transformationMatrix.a=isNaN(t)?this.transformationMatrix.a:Number(t),this.transformationMatrix.d=isNaN(t)?this.transformationMatrix.d:Number(t),this.zoomChange.emit(this.zoomLevel),this.updateTransform(),this.update()}onDrag(t){if(!this.draggingEnabled)return;const e=this.draggingNode;this.layout&&"string"!=typeof this.layout&&this.layout.onDrag&&this.layout.onDrag(e,t),e.position.x+=t.movementX/this.zoomLevel,e.position.y+=t.movementY/this.zoomLevel,e.transform=`translate(${e.position.x-e.dimension.width/2}, ${e.position.y-e.dimension.height/2})`;for(const n of this.graph.edges)if((n.target===e.id||n.source===e.id||n.target.id===e.id||n.source.id===e.id)&&this.layout&&"string"!=typeof this.layout){const t=this.layout.updateEdge(this.graph,n),e=t instanceof b?t:Oc(t);this.graphSubscription.add(e.subscribe(t=>{this.graph=t,this.redrawEdge(n)}))}this.redrawLines(!1),this.updateMinimap()}redrawEdge(t){const e=this.generateLine(t.points);this.calcDominantBaseline(t),t.oldLine=t.line,t.line=e}updateTransform(){var t;this.transform="matrix("+(t=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e10;return{a:Math.round(t.a*e)/e,b:Math.round(t.b*e)/e,c:Math.round(t.c*e)/e,d:Math.round(t.d*e)/e,e:Math.round(t.e*e)/e,f:Math.round(t.f*e)/e}}(this.transformationMatrix,100)).a+","+t.b+","+t.c+","+t.d+","+t.e+","+t.f+")"}onClick(t){this.select.emit(t)}onActivate(t){this.activeEntries.indexOf(t)>-1||(this.activeEntries=[t,...this.activeEntries],this.activate.emit({value:t,entries:this.activeEntries}))}onDeactivate(t){const e=this.activeEntries.indexOf(t);this.activeEntries.splice(e,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:t,entries:this.activeEntries})}getSeriesDomain(){return this.nodes.map(t=>this.groupResultsBy(t)).reduce((t,e)=>-1!==t.indexOf(e)?t:t.concat([e]),[]).sort()}trackLinkBy(t,e){return e.id}trackNodeBy(t,e){return e.id}setColors(){this.colors=new Dw(this.scheme,"ordinal",this.seriesDomain,this.customColors)}getLegendOptions(){return{scaleType:"ordinal",domain:this.seriesDomain,colors:this.colors}}onMouseMove(t){this.isMouseMoveCalled=!0,(this.isPanning||this.isMinimapPanning)&&this.panningEnabled?this.panWithConstraints(this.panningAxis,t):this.isDragging&&this.draggingEnabled&&this.onDrag(t)}onMouseDown(t){this.isMouseMoveCalled=!1}graphClick(t){this.isMouseMoveCalled||this.clickHandler.emit(t)}onTouchStart(t){this._touchLastX=t.changedTouches[0].clientX,this._touchLastY=t.changedTouches[0].clientY,this.isPanning=!0}onTouchMove(t){if(this.isPanning&&this.panningEnabled){const e=t.changedTouches[0].clientX,n=t.changedTouches[0].clientY,r=e-this._touchLastX,i=n-this._touchLastY;this._touchLastX=e,this._touchLastY=n,this.pan(r,i)}}onTouchEnd(t){this.isPanning=!1}onMouseUp(t){this.isDragging=!1,this.isPanning=!1,this.isMinimapPanning=!1,this.layout&&"string"!=typeof this.layout&&this.layout.onDragEnd&&this.layout.onDragEnd(this.draggingNode,t)}onNodeMouseDown(t,e){this.draggingEnabled&&(this.isDragging=!0,this.draggingNode=e,this.layout&&"string"!=typeof this.layout&&this.layout.onDragStart&&this.layout.onDragStart(e,t))}onMinimapDragMouseDown(){this.isMinimapPanning=!0}onMinimapPanTo(t){this.panTo((t.offsetX-(this.dims.width-(this.graphDims.width+this.minimapOffsetX)/this.minimapScaleCoefficient))*this.minimapScaleCoefficient,(t.offsetY+this.minimapOffsetY/this.minimapScaleCoefficient)*this.minimapScaleCoefficient),this.isMinimapPanning=!0}center(){this.panTo(this.graphDims.width/2,this.graphDims.height/2)}zoomToFit(){let t=Math.min(this.dims.height/this.graphDims.height,this.dims.width/this.graphDims.width,1);t<this.minZoomLevel&&(t=this.minZoomLevel),t>this.maxZoomLevel&&(t=this.maxZoomLevel),t!==this.zoomLevel&&(this.zoomLevel=t,this.updateTransform(),this.zoomChange.emit(this.zoomLevel))}panToNodeId(t){const e=this.graph.nodes.find(e=>e.id===t);e&&this.panTo(e.position.x,e.position.y)}panWithConstraints(t,e){let n=e.movementX,r=e.movementY;switch(this.isMinimapPanning&&(n=-this.minimapScaleCoefficient*n*this.zoomLevel,r=-this.minimapScaleCoefficient*r*this.zoomLevel),t){case Mx.Horizontal:this.pan(n,0);break;case Mx.Vertical:this.pan(0,r);break;default:this.pan(n,r)}}updateMidpointOnEdge(t,e){if(t&&e)if(e.length%2==1)t.midPoint=e[Math.floor(e.length/2)];else{const n=e[e.length/2],r=e[e.length/2-1];t.midPoint={x:(n.x+r.x)/2,y:(n.y+r.y)/2}}}}return t.\u0275fac=function(e){return new(e||t)(ys(_a),ys(Ju),ys(Uo),ys(Nx))},t.\u0275cmp=he({type:t,selectors:[["ngx-graph"]],contentQueries:function(t,e,n){var r;1&t&&(Cu(n,Zb,!0),Cu(n,Xb,!0),Cu(n,Kb,!0),Cu(n,Jb,!0),Cu(n,tx,!0)),2&t&&(Eu(r=Tu())&&(e.linkTemplate=r.first),Eu(r=Tu())&&(e.nodeTemplate=r.first),Eu(r=Tu())&&(e.clusterTemplate=r.first),Eu(r=Tu())&&(e.defsTemplate=r.first),Eu(r=Tu())&&(e.miniMapNodeTemplate=r.first))},viewQuery:function(t,e){var n,r,i;1&t&&(r=bw,!0,i=_a,ku(en(),tn(),r,true,i,!0),Su(ex,!0),Su(nx,!0)),2&t&&(Eu(n=Tu())&&(e.chart=n.first),Eu(n=Tu())&&(e.nodeElements=n),Eu(n=Tu())&&(e.linkElements=n))},hostBindings:function(t,e){1&t&&Cs("mousemove",(function(t){return e.onMouseMove(t)}),!1,Wn)("mousedown",(function(t){return e.onMouseDown(t)}),!1,Wn)("click",(function(t){return e.graphClick(t)}),!1,Wn)("touchmove",(function(t){return e.onTouchMove(t)}),!1,Wn)("mouseup",(function(t){return e.onMouseUp(t)}),!1,Wn)},inputs:{legend:"legend",nodes:"nodes",clusters:"clusters",links:"links",activeEntries:"activeEntries",draggingEnabled:"draggingEnabled",panningEnabled:"panningEnabled",panningAxis:"panningAxis",enableZoom:"enableZoom",zoomSpeed:"zoomSpeed",minZoomLevel:"minZoomLevel",maxZoomLevel:"maxZoomLevel",autoZoom:"autoZoom",panOnZoom:"panOnZoom",animate:"animate",autoCenter:"autoCenter",enableTrackpadSupport:"enableTrackpadSupport",showMiniMap:"showMiniMap",miniMapMaxWidth:"miniMapMaxWidth",miniMapPosition:"miniMapPosition",groupResultsBy:"groupResultsBy",zoomLevel:"zoomLevel",panOffsetX:"panOffsetX",panOffsetY:"panOffsetY",layout:"layout",curve:"curve",nodeHeight:"nodeHeight",nodeMaxHeight:"nodeMaxHeight",nodeMinHeight:"nodeMinHeight",nodeWidth:"nodeWidth",nodeMinWidth:"nodeMinWidth",nodeMaxWidth:"nodeMaxWidth",update$:"update$",center$:"center$",zoomToFit$:"zoomToFit$",panToNode$:"panToNode$",layoutSettings:"layoutSettings",miniMapMaxHeight:"miniMapMaxHeight"},outputs:{activate:"activate",deactivate:"deactivate",zoomChange:"zoomChange",clickHandler:"clickHandler"},features:[ra,Oe],ngContentSelectors:xx,decls:5,vars:11,consts:[["mouseWheel","",3,"view","showLegend","legendOptions","legendLabelClick","legendLabelActivate","legendLabelDeactivate","mouseWheelUp","mouseWheelDown"],["class","graph chart",3,"touchstart","touchend",4,"ngIf"],["class","minimap",4,"ngIf"],[1,"graph","chart",3,"touchstart","touchend"],[3,"ngTemplateOutlet",4,"ngIf"],["class","text-path",4,"ngFor","ngForOf"],[1,"panning-rect",3,"mousedown"],[1,"clusters"],["class","node-group",3,"old-node","id","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"links"],["class","link-group",3,"id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"nodes"],["class","node-group",3,"old-node","id","click","mousedown",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngTemplateOutlet"],[1,"text-path"],[1,"node-group",3,"id","click"],["clusterElement",""],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["class","node cluster",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"node","cluster"],["alignment-baseline","central"],[1,"link-group",3,"id"],["linkElement",""],["class","edge",4,"ngIf"],[1,"edge"],[1,"node-group",3,"id","click","mousedown"],["nodeElement",""],["r","10",4,"ngIf"],["r","10"],[1,"minimap"],[1,"minimap-background",3,"mousedown"],[1,"minimap-nodes"],["class","node-group",3,"old-node","id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"minimap-drag",3,"mousedown"],[1,"node-group",3,"id"]],template:function(t,e){var n,r,i,o,s;1&t&&(Os(),ws(0,"ngx-charts-chart",0),Cs("legendLabelClick",(function(t){return e.onClick(t)}))("legendLabelActivate",(function(t){return e.onActivate(t)}))("legendLabelDeactivate",(function(t){return e.onDeactivate(t)}))("mouseWheelUp",(function(t){return e.onZoom(t,"in")}))("mouseWheelDown",(function(t){return e.onZoom(t,"out")})),ms(1,gx,12,12,"g",1),Tn(),ws(2,"clipPath"),xs(3,"rect"),bs(),ms(4,wx,6,15,"g",2),bs()),2&t&&(vs("view",(n=8,r=bx,i=e.width,o=e.height,function(t,e,n,r,i,o,s){const a=e+n;return function(t,e,n,r){const i=ds(t,e,n);return ds(t,e+1,r)||i}(t,a,i,o)?fs(t,a+2,s?r.call(s,i,o):r(i,o)):hu(t,a+2)}(tn(),ln(),n,r,i,o,s)))("showLegend",e.legend)("legendOptions",e.legendOptions),_i(1),vs("ngIf",e.initialized&&e.graph),_i(1),ps("id",e.minimapClipPathId),_i(1),ps("width",e.graphDims.width/e.minimapScaleCoefficient)("height",e.graphDims.height/e.minimapScaleCoefficient),_i(1),vs("ngIf",e.showMiniMap))},directives:function(){return[bw,jx,el,Jc,il]},styles:[".minimap .minimap-background{fill:rgba(0,0,0,.1)}.minimap .minimap-drag{cursor:pointer;fill:rgba(0,0,0,.2);stroke:#fff;stroke-dasharray:2px;stroke-dashoffset:2px;stroke-width:1px}.minimap .minimap-drag.panning{fill:rgba(0,0,0,.3)}.minimap .minimap-nodes{opacity:.5;pointer-events:none}.graph{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;user-select:none}.graph .edge{fill:none;stroke:#666}.graph .edge .edge-label{fill:#251e1e;font-size:12px;stroke:none}.graph .panning-rect{cursor:move;fill:transparent}.graph .node-group.old-node{transition:transform .5s ease-in-out}.graph .node-group .node:focus{outline:none}.graph .cluster rect{opacity:.2}"],encapsulation:2,changeDetection:0}),Ed([function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:Dx(n.value,500,void 0)}),this[e]}}},Sd("design:type",Function),Sd("design:paramtypes",[]),Sd("design:returntype",void 0)],t.prototype,"updateMinimap",null),t})(),jx=(()=>{class t{constructor(){this.mouseWheelUp=new fu,this.mouseWheelDown=new fu}onMouseWheelChrome(t){this.mouseWheelFunc(t)}onMouseWheelFirefox(t){this.mouseWheelFunc(t)}onWheel(t){this.mouseWheelFunc(t)}onMouseWheelIE(t){this.mouseWheelFunc(t)}mouseWheelFunc(t){window.event&&(t=window.event);const e=Math.max(-1,Math.min(1,t.wheelDelta||-t.detail||t.deltaY||t.deltaX)),n=t.wheelDelta?e<0:e>0;(t.wheelDelta?e>0:e<0)?this.mouseWheelUp.emit(t):n&&this.mouseWheelDown.emit(t),t.returnValue=!1,t.preventDefault&&t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ye({type:t,selectors:[["","mouseWheel",""]],hostBindings:function(t,e){1&t&&Cs("mousewheel",(function(t){return e.onMouseWheelChrome(t)}))("DOMMouseScroll",(function(t){return e.onMouseWheelFirefox(t)}))("wheel",(function(t){return e.onWheel(t)}))("onmousewheel",(function(t){return e.onMouseWheelIE(t)}))},outputs:{mouseWheelUp:"mouseWheelUp",mouseWheelDown:"mouseWheelDown"}}),t})(),Px=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},providers:[Nx],imports:[[Mw]]}),t})(),Fx=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[Gw],Px]}),t})();var Lx=n("5vqC");class Rx{constructor(t,e,n,r,i){this.element=t,this.newWidth=e,this.newHeight=n,this.oldWidth=r,this.oldHeight=i}}let zx=(()=>{class t{constructor(t){this.element=t,this.resized=new fu}ngOnInit(){Lx.ResizeSensor&&(this.resizeSensor=new Lx.ResizeSensor(this.element.nativeElement,()=>this.onResized()))}ngOnDestroy(){this.resizeSensor&&this.resizeSensor.detach()}onResized(){const t=this.element.nativeElement.clientWidth,e=this.element.nativeElement.clientHeight;if(t===this.oldWidth&&e===this.oldHeight)return;const n=new Rx(this.element,t,e,this.oldWidth,this.oldHeight);this.oldWidth=this.element.nativeElement.clientWidth,this.oldHeight=this.element.nativeElement.clientHeight,this.resized.emit(n)}}return t.\u0275fac=function(e){return new(e||t)(ys(_a))},t.\u0275dir=ye({type:t,selectors:[["","resized",""]],outputs:{resized:"resized"}}),t})(),Vx=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)},imports:[[]]}),t})();function Bx(t,e){1&t&&(Tn(),ws(0,"marker",6),xs(1,"path",7),bs())}function Hx(t,e){if(1&t&&(Tn(),ws(0,"g",8),xs(1,"rect"),ws(2,"text",9),Js(3),bs(),bs()),2&t){const t=e.$implicit;_i(1),ps("width",t.dimension.width)("height",t.dimension.height)("fill",t.data.customColor||t.data.color),_i(1),ps("x",10)("y",t.dimension.height/2),_i(1),ea(" ",t.label," ")}}function Gx(t,e){if(1&t&&(Tn(),ws(0,"g",10),xs(1,"path",11),ws(2,"text",12),ws(3,"textPath",13),Js(4),bs(),bs(),bs()),2&t){const t=e.$implicit;_i(3),Vs("dominant-baseline",t.dominantBaseline),ps("href","#"+t.id),_i(1),ea(" ",t.label," ")}}function Ux(t,e){if(1&t&&(ws(0,"ngx-graph",2),ms(1,Bx,2,0,"ng-template",null,3,Ou),ms(3,Hx,4,6,"ng-template",null,4,Ou),ms(5,Gx,5,4,"ng-template",null,5,Ou),bs()),2&t){const t=Ns();vs("showMiniMap",null==t.options?null:t.options.showMiniMap)("draggingEnabled",null==t.options?null:t.options.draggingEnabled)("links",null==t.options?null:t.options.links)("nodes",null==t.options?null:t.options.nodes)("autoCenter",null==t.options?null:t.options.autoCenter)("autoZoom",null==t.options?null:t.options.autoZoom)}}let qx=(()=>{class t{ngOnChanges(){}onResized(t){window.dispatchEvent(new Event("resize"))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=he({type:t,selectors:[["drayman-ngx-graph-internal"]],inputs:{links:"links",nodes:"nodes",clusters:"clusters",showMiniMap:"showMiniMap",draggingEnabled:"draggingEnabled",autoCenter:"autoCenter",autoZoom:"autoZoom"},features:[Oe],decls:2,vars:1,consts:[[2,"width","100%","height","100%",3,"resized"],[3,"showMiniMap","draggingEnabled","links","nodes","autoCenter","autoZoom",4,"ngIf"],[3,"showMiniMap","draggingEnabled","links","nodes","autoCenter","autoZoom"],["defsTemplate",""],["nodeTemplate",""],["linkTemplate",""],["id","arrow","viewBox","0 -5 10 10","refX","8","refY","0","markerWidth","4","markerHeight","4","orient","auto"],["d","M0,-5L10,0L0,5",1,"arrow-head"],[1,"node"],["alignment-baseline","central"],[1,"edge"],["stroke-width","2","marker-end","url(#arrow)",1,"line"],["text-anchor","middle",1,"edge-label"],["startOffset","50%",1,"text-path"]],template:function(t,e){1&t&&(ws(0,"div",0),Cs("resized",(function(t){return e.onResized(t)})),ms(1,Ux,7,6,"ngx-graph",1),bs()),2&t&&(_i(1),vs("ngIf",null==e.nodes?null:e.nodes.length))},directives:[zx,el,Ix],styles:[""]}),t})(),Yx=(()=>{class t{constructor(t){this.injector=t}ngDoBootstrap(){const t=function(t,e){const n=function(t,e){return e.get(va).resolveComponentFactory(t).inputs}(t,e.injector),r=e.strategyFactory||new Hc(t,e.injector),i=function(t){const e={};return t.forEach(({propName:t,templateName:n})=>{var r;e[(r=n,r.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()))]=t}),e}(n);class o extends Uc{constructor(t){super(),this.injector=t}get ngElementStrategy(){if(!this._ngElementStrategy){const t=this._ngElementStrategy=r.create(this.injector||e.injector),i=n.filter(({propName:t})=>this.hasOwnProperty(t)).map(({propName:t})=>[t,this[t]]);this instanceof o?i.forEach(([t])=>delete this[t]):qc(n,this),i.forEach(([e,n])=>t.setInputValue(e,n))}return this._ngElementStrategy}attributeChangedCallback(t,e,n,r){this.ngElementStrategy.setInputValue(i[t],n)}connectedCallback(){let t=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),t=!0),this.ngElementStrategy.connect(this),t||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(t=>{const e=function(t,e,n){if("function"!=typeof CustomEvent){const r=t.createEvent("CustomEvent");return r.initCustomEvent(e,!1,!1,n),r}return new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:n})}(this.ownerDocument,t.name,t.value);this.dispatchEvent(e)})}}return o.observedAttributes=Object.keys(i),Object.defineProperty(o.prototype,"ngElementStrategy",{enumerable:!0}),qc(n,o.prototype),o}(qx,{injector:this.injector});customElements.define("drayman-ngx-graph",t)}}return t.\u0275mod=ge({type:t}),t.\u0275inj=ht({factory:function(e){return new(e||t)(Wt(ss))},imports:[[Pl,yd,Gw,Fx,Vx]]}),t})();(function(){if(Cr)throw new Error("Cannot enable prod mode after platform setup.");kr=!1})(),Il().bootstrapModule(Yx).catch(t=>console.error(t))},zWgn:function(t,e){t.exports=function(t){return t}},zaNA:function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},zmx7:function(t,e,n){var r=n("gjtd"),i=n("xxjf"),o=n("vC4J").Graph;t.exports={debugOrdering:function(t){var e=i.buildLayerMatrix(t),n=new o({compound:!0,multigraph:!0}).setGraph({});return r.forEach(t.nodes(),(function(e){n.setNode(e,{label:e}),n.setParent(e,"layer"+t.node(e).rank)})),r.forEach(t.edges(),(function(t){n.setEdge(t.v,t.w,{},t.name)})),r.forEach(e,(function(t,e){n.setNode("layer"+e,{rank:"same"}),r.reduce(t,(function(t,e){return n.setEdge(t,e,{style:"invis"}),e}))})),n}}},zn8P:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"},zr3P:function(t,e,n){var r=n("kn3Q");t.exports=function(t){return r(t,4)}},"zyX+":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("JYAe"),i=n("bJjD"),o=n("Lm04"),s=n("gbTj"),a=n("aj3f"),u=n("OAVv"),c=n("BpeN"),l=e.EventType=function(t){return t[t.start=0]="start",t[t.tick=1]="tick",t[t.end=2]="end",t}(e.EventType||{});function h(t){return void 0!==t.leaves||void 0!==t.groups}e.Layout=function(){function t(){var e=this;this._canvasSize=[1,1],this._linkDistance=20,this._defaultNodeSize=10,this._linkLengthCalculator=null,this._linkType=null,this._avoidOverlaps=!1,this._handleDisconnected=!0,this._running=!1,this._nodes=[],this._groups=[],this._rootGroup=null,this._links=[],this._constraints=[],this._distanceMatrix=null,this._descent=null,this._directedLinkConstraints=null,this._threshold=.01,this._visibilityGraph=null,this._groupCompactness=1e-6,this.event=null,this.linkAccessor={getSourceIndex:t.getSourceIndex,getTargetIndex:t.getTargetIndex,setLength:t.setLinkLength,getType:function(t){return"function"==typeof e._linkType?e._linkType(t):0}}}return t.prototype.on=function(t,e){return this.event||(this.event={}),"string"==typeof t?this.event[l[t]]=e:this.event[t]=e,this},t.prototype.trigger=function(t){this.event&&void 0!==this.event[t.type]&&this.event[t.type](t)},t.prototype.kick=function(){for(;!this.tick(););},t.prototype.tick=function(){if(this._alpha<this._threshold)return this._running=!1,this.trigger({type:l.end,alpha:this._alpha=0,stress:this._lastStress}),!0;var t,e,n=this._nodes.length;for(this._descent.locks.clear(),e=0;e<n;++e)(t=this._nodes[e]).fixed&&(void 0!==t.px&&void 0!==t.py||(t.px=t.x,t.py=t.y),this._descent.locks.add(e,[t.px,t.py]));var r=this._descent.rungeKutta();return 0===r?this._alpha=0:void 0!==this._lastStress&&(this._alpha=r),this._lastStress=r,this.updateNodePositions(),this.trigger({type:l.tick,alpha:this._alpha,stress:this._lastStress}),!1},t.prototype.updateNodePositions=function(){for(var t,e=this._descent.x[0],n=this._descent.x[1],r=this._nodes.length;r--;)(t=this._nodes[r]).x=e[r],t.y=n[r]},t.prototype.nodes=function(t){if(!t){if(0===this._nodes.length&&this._links.length>0){var e=0;this._links.forEach((function(t){e=Math.max(e,t.source,t.target)})),this._nodes=new Array(++e);for(var n=0;n<e;++n)this._nodes[n]={}}return this._nodes}return this._nodes=t,this},t.prototype.groups=function(t){var e=this;return t?(this._groups=t,this._rootGroup={},this._groups.forEach((function(t){void 0===t.padding&&(t.padding=1),void 0!==t.leaves&&t.leaves.forEach((function(n,r){"number"==typeof n&&((t.leaves[r]=e._nodes[n]).parent=t)})),void 0!==t.groups&&t.groups.forEach((function(n,r){"number"==typeof n&&((t.groups[r]=e._groups[n]).parent=t)}))})),this._rootGroup.leaves=this._nodes.filter((function(t){return void 0===t.parent})),this._rootGroup.groups=this._groups.filter((function(t){return void 0===t.parent})),this):this._groups},t.prototype.powerGraphGroups=function(t){var e=r.getGroups(this._nodes,this._links,this.linkAccessor,this._rootGroup);return this.groups(e.groups),t(e),this},t.prototype.avoidOverlaps=function(t){return arguments.length?(this._avoidOverlaps=t,this):this._avoidOverlaps},t.prototype.handleDisconnected=function(t){return arguments.length?(this._handleDisconnected=t,this):this._handleDisconnected},t.prototype.flowLayout=function(t,e){return arguments.length||(t="y"),this._directedLinkConstraints={axis:t,getMinSeparation:"number"==typeof e?function(){return e}:e},this},t.prototype.links=function(t){return arguments.length?(this._links=t,this):this._links},t.prototype.constraints=function(t){return arguments.length?(this._constraints=t,this):this._constraints},t.prototype.distanceMatrix=function(t){return arguments.length?(this._distanceMatrix=t,this):this._distanceMatrix},t.prototype.size=function(t){return t?(this._canvasSize=t,this):this._canvasSize},t.prototype.defaultNodeSize=function(t){return t?(this._defaultNodeSize=t,this):this._defaultNodeSize},t.prototype.groupCompactness=function(t){return t?(this._groupCompactness=t,this):this._groupCompactness},t.prototype.linkDistance=function(t){return t?(this._linkDistance="function"==typeof t?t:+t,this._linkLengthCalculator=null,this):this._linkDistance},t.prototype.linkType=function(t){return this._linkType=t,this},t.prototype.convergenceThreshold=function(t){return t?(this._threshold="function"==typeof t?t:+t,this):this._threshold},t.prototype.alpha=function(t){return arguments.length?(t=+t,this._alpha?this._alpha=t>0?t:0:t>0&&(this._running||(this._running=!0,this.trigger({type:l.start,alpha:this._alpha=t}),this.kick())),this):this._alpha},t.prototype.getLinkLength=function(t){return"function"==typeof this._linkDistance?+this._linkDistance(t):this._linkDistance},t.setLinkLength=function(t,e){t.length=e},t.prototype.getLinkType=function(t){return"function"==typeof this._linkType?this._linkType(t):0},t.prototype.symmetricDiffLinkLengths=function(t,e){var n=this;return void 0===e&&(e=1),this.linkDistance((function(e){return t*e.length})),this._linkLengthCalculator=function(){return i.symmetricDiffLinkLengths(n._links,n.linkAccessor,e)},this},t.prototype.jaccardLinkLengths=function(t,e){var n=this;return void 0===e&&(e=1),this.linkDistance((function(e){return t*e.length})),this._linkLengthCalculator=function(){return i.jaccardLinkLengths(n._links,n.linkAccessor,e)},this},t.prototype.start=function(e,n,r,u,c,l){var h=this;void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),void 0===u&&(u=0),void 0===c&&(c=!0),void 0===l&&(l=!0);var f,d=this.nodes().length,p=d+2*this._groups.length,g=this._canvasSize[0],m=this._canvasSize[1],y=new Array(p),v=new Array(p),_=null,w=this._avoidOverlaps;this._nodes.forEach((function(t,e){t.index=e,void 0===t.x&&(t.x=g/2,t.y=m/2),y[e]=t.x,v[e]=t.y})),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?f=this._distanceMatrix:(f=new a.Calculator(p,this._links,t.getSourceIndex,t.getTargetIndex,(function(t){return h.getLinkLength(t)})).DistanceMatrix(),_=o.Descent.createSquareMatrix(p,(function(){return 2})),this._links.forEach((function(t){"number"==typeof t.source&&(t.source=h._nodes[t.source]),"number"==typeof t.target&&(t.target=h._nodes[t.target])})),this._links.forEach((function(e){var n=t.getSourceIndex(e),r=t.getTargetIndex(e);_[n][r]=_[r][n]=e.weight||1})));var b=o.Descent.createSquareMatrix(p,(function(t,e){return f[t][e]}));if(this._rootGroup&&void 0!==this._rootGroup.groups){var x=d;this._groups.forEach((function(t){!function(t,e,n,r){_[t][e]=_[e][t]=n,b[t][e]=b[e][t]=.1}(x,x+1,h._groupCompactness),y[x]=0,v[x++]=0,y[x]=0,v[x++]=0}))}else this._rootGroup={leaves:this._nodes,groups:[]};var E=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,E=E.concat(i.generateDirectedEdgeConstraints(d,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new o.Descent([y,v],b),this._descent.locks.clear(),x=0;x<d;++x){var S=this._nodes[x];S.fixed&&(S.px=S.x,S.py=S.y,this._descent.locks.add(x,[S.x,S.y]))}if(this._descent.threshold=this._threshold,this.initialLayout(e,y,v),E.length>0&&(this._descent.project=new s.Projection(this._nodes,this._groups,this._rootGroup,E).projectFunctions()),this._descent.run(n),this.separateOverlappingComponents(g,m,l),this.avoidOverlaps(w),w&&(this._nodes.forEach((function(t,e){t.x=y[e],t.y=v[e]})),this._descent.project=new s.Projection(this._nodes,this._groups,this._rootGroup,E,!0).projectFunctions(),this._nodes.forEach((function(t,e){y[e]=t.x,v[e]=t.y}))),this._descent.G=_,this._descent.run(r),u){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=d,this._descent.scaleSnapByMaxH=d!=p;var k=o.Descent.createSquareMatrix(p,(function(t,e){return t>=d||e>=d?_[t][e]:0}));this._descent.G=k,this._descent.run(u)}return this.updateNodePositions(),this.separateOverlappingComponents(g,m,l),c?this.resume():this},t.prototype.initialLayout=function(e,n,r){if(this._groups.length>0&&e>0){var i=this._nodes.length,o=this._links.map((function(t){return{source:t.source.index,target:t.target.index}})),s=this._nodes.map((function(t){return{index:t.index}}));this._groups.forEach((function(t,e){s.push({index:t.index=i+e})})),this._groups.forEach((function(t,e){void 0!==t.leaves&&t.leaves.forEach((function(e){return o.push({source:t.index,target:e.index})})),void 0!==t.groups&&t.groups.forEach((function(e){return o.push({source:t.index,target:e.index})}))})),(new t).size(this.size()).nodes(s).links(o).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(e,0,0,0,!1),this._nodes.forEach((function(t){n[t.index]=s[t.index].x,r[t.index]=s[t.index].y}))}else this._descent.run(e)},t.prototype.separateOverlappingComponents=function(t,e,n){var r=this;if(void 0===n&&(n=!0),!this._distanceMatrix&&this._handleDisconnected){var i=this._descent.x[0],o=this._descent.x[1];this._nodes.forEach((function(t,e){t.x=i[e],t.y=o[e]}));var s=c.separateGraphs(this._nodes,this._links);c.applyPacking(s,t,e,this._defaultNodeSize,1,n),this._nodes.forEach((function(t,e){r._descent.x[0][e]=t.x,r._descent.x[1][e]=t.y,t.bounds&&(t.bounds.setXCentre(t.x),t.bounds.setYCentre(t.y))}))}},t.prototype.resume=function(){return this.alpha(.1)},t.prototype.stop=function(){return this.alpha(0)},t.prototype.prepareEdgeRouting=function(t){void 0===t&&(t=0),this._visibilityGraph=new u.TangentVisibilityGraph(this._nodes.map((function(e){return e.bounds.inflate(-t).vertices()})))},t.prototype.routeEdge=function(t,e,n){void 0===e&&(e=5);var r=[],i=new u.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),o={x:t.source.x,y:t.source.y},c={x:t.target.x,y:t.target.y},l=i.addPoint(o,t.source.index),h=i.addPoint(c,t.target.index);i.addEdgeIfVisible(o,c,t.source.index,t.target.index),void 0!==n&&n(i);var f=new a.Calculator(i.V.length,i.E,(function(t){return t.source.id}),(function(t){return t.target.id}),(function(t){return t.length()})).PathFromNodeToNode(l.id,h.id);if(1===f.length||f.length===i.V.length){var d=s.makeEdgeBetween(t.source.innerBounds,t.target.innerBounds,e);r=[d.sourceIntersection,d.arrowStart]}else{for(var p=f.length-2,g=i.V[f[p]].p,m=i.V[f[0]].p,y=(r=[t.source.innerBounds.rayIntersection(g.x,g.y)],p);y>=0;--y)r.push(i.V[f[y]].p);r.push(s.makeEdgeTo(m,t.target.innerBounds,e))}return r},t.getSourceIndex=function(t){return"number"==typeof t.source?t.source:t.source.index},t.getTargetIndex=function(t){return"number"==typeof t.target?t.target:t.target.index},t.linkId=function(e){return t.getSourceIndex(e)+"-"+t.getTargetIndex(e)},t.dragStart=function(e){h(e)?t.storeOffset(e,t.dragOrigin(e)):(t.stopNode(e),e.fixed|=2)},t.stopNode=function(t){t.px=t.x,t.py=t.y},t.storeOffset=function(e,n){void 0!==e.leaves&&e.leaves.forEach((function(e){e.fixed|=2,t.stopNode(e),e._dragGroupOffsetX=e.x-n.x,e._dragGroupOffsetY=e.y-n.y})),void 0!==e.groups&&e.groups.forEach((function(e){return t.storeOffset(e,n)}))},t.dragOrigin=function(t){return h(t)?{x:t.bounds.cx(),y:t.bounds.cy()}:t},t.drag=function(e,n){h(e)?(void 0!==e.leaves&&e.leaves.forEach((function(t){e.bounds.setXCentre(n.x),e.bounds.setYCentre(n.y),t.px=t._dragGroupOffsetX+n.x,t.py=t._dragGroupOffsetY+n.y})),void 0!==e.groups&&e.groups.forEach((function(e){return t.drag(e,n)}))):(e.px=n.x,e.py=n.y)},t.dragEnd=function(e){h(e)?(void 0!==e.leaves&&e.leaves.forEach((function(e){t.dragEnd(e),delete e._dragGroupOffsetX,delete e._dragGroupOffsetY})),void 0!==e.groups&&e.groups.forEach(t.dragEnd)):e.fixed&=-7},t.mouseOver=function(t){t.fixed|=4,t.px=t.x,t.py=t.y},t.mouseOut=function(t){t.fixed&=-5},t}()}});
1
+ !function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,(function(e){return t[e]}).bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}({"+7q0":function(t,e,n){var i=n("eN33"),r=n("Pz+s"),s=n("zWgn");t.exports=r?function(t,e){return r(t,"toString",{configurable:!0,enumerable:!1,value:i(e),writable:!0})}:s},"+DnP":function(t,e,n){var i=n("W0vE"),r=n("sjzV"),s=n("S3pA"),o=n("wxYD");t.exports=function(t,e){return(o(t)?i:r)(t,s(e,3))}},"+WAL":function(t,e,n){var i=n("0Jj1");t.exports=function(t){try{i(t)}catch(e){if(e instanceof i.CycleException)return!1;throw e}return!0}},"+fUG":function(t,e,n){var i=n("5pfJ"),r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(i){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return r.call(e,t)?e[t]:void 0}},"+jFT":function(t,e,n){"use strict";var i=n("gjtd");function r(t){i.forEach(t.nodes(),(function(e){s(t.node(e))})),i.forEach(t.edges(),(function(e){s(t.edge(e))}))}function s(t){var e=t.width;t.width=t.height,t.height=e}function o(t){t.y=-t.y}function a(t){var e=t.x;t.x=t.y,t.y=e}t.exports={adjust:function(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||r(t)},undo:function(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||function(t){i.forEach(t.nodes(),(function(e){o(t.node(e))})),i.forEach(t.edges(),(function(e){var n=t.edge(e);i.forEach(n.points,o),i.has(n,"y")&&o(n)}))}(t),"lr"!==e&&"rl"!==e||(function(t){i.forEach(t.nodes(),(function(e){a(t.node(e))})),i.forEach(t.edges(),(function(e){var n=t.edge(e);i.forEach(n.points,a),i.has(n,"x")&&a(n)}))}(t),r(t))}}},"+ooz":function(t,e,n){var i=n("8Zrg"),r=n("kwr2"),s=n("5VYK"),o=n("Coc+"),a=n("LzM7");function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}u.prototype.clear=i,u.prototype.delete=r,u.prototype.get=s,u.prototype.has=o,u.prototype.set=a,t.exports=u},"+tCn":function(t,e,n){var i=n("tQYX");t.exports=function(t){return t==t&&!i(t)}},"//nZ":function(t,e,n){var i=n("QwI6"),r=n("cH1A")((function(t,e){return null==t?{}:i(t,e)}));t.exports=r},"/30y":function(t,e,n){var i=n("Dhk8"),r=n("tLQN");t.exports=function(t){return r(t)&&"[object Arguments]"==i(t)}},"/UTG":function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},"/iLo":function(t,e,n){var i=n("6I2w"),r=n("SU8Q"),s=n("T6vp"),o=s&&s.isSet,a=o?r(o):i;t.exports=a},"/oF6":function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("zyX+"),o=function(t){function e(e){var n=t.call(this)||this,i=e;return i.trigger&&(n.trigger=i.trigger),i.kick&&(n.kick=i.kick),i.drag&&(n.drag=i.drag),i.on&&(n.on=i.on),n.dragstart=n.dragStart=s.Layout.dragStart,n.dragend=n.dragEnd=s.Layout.dragEnd,n}return r(e,t),e.prototype.trigger=function(t){},e.prototype.kick=function(){},e.prototype.drag=function(){},e.prototype.on=function(t,e){return this},e}(s.Layout);e.LayoutAdaptor=o,e.adaptor=function(t){return new o(t)}},"/wCD":function(t,e,n){var i=n("TAtK")(Object.getPrototypeOf,Object);t.exports=i},0:function(t,e,n){t.exports=n("zUnb")},"0+aC":function(t,e,n){var i=n("pFSi");t.exports=function(t){var e=i(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},"0Jj1":function(t,e,n){var i=n("Jl0P");function r(t){var e={},n={},r=[];if(i.each(t.sinks(),(function o(a){if(i.has(n,a))throw new s;i.has(e,a)||(n[a]=!0,e[a]=!0,i.each(t.predecessors(a),o),delete n[a],r.push(a))})),i.size(e)!==t.nodeCount())throw new s;return r}function s(){}t.exports=r,r.CycleException=s,s.prototype=new Error},"0Ss3":function(t,e){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},"0gKz":function(t,e,n){var i=n("gjtd"),r=n("xxjf");function s(t,e,n,i,s,o){var a=s[e][o-1],u=r.addDummyNode(t,"border",{width:0,height:0,rank:o,borderType:e},n);s[e][o]=u,t.setParent(u,i),a&&t.setEdge(a,u,{weight:1})}t.exports=function(t){i.forEach(t.children(),(function e(n){var r=t.children(n),o=t.node(n);if(r.length&&i.forEach(r,e),i.has(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var a=o.minRank,u=o.maxRank+1;a<u;++a)s(t,"borderLeft","_bl",n,o,a),s(t,"borderRight","_br",n,o,a)}}))}},"0iyY":function(t,e,n){var i=n("SJvO"),r=n("BlJA");t.exports=function(t){return null==t?[]:i(t,r(t))}},"1EDM":function(t,e,n){var i=n("EI7Z"),r=n("CEyS"),s=n("i7nn"),o=n("Ypsa");t.exports=function(t){return s(t)?i(o(t)):r(t)}},"1aYn":function(t,e,n){var i=n("S3pA"),r=n("9y2L"),s=n("BlJA");t.exports=function(t){return function(e,n,o){var a=Object(e);if(!r(e)){var u=i(n,3);e=s(e),n=function(t){return u(a[t],t,a)}}var c=t(e,n,o);return c>-1?a[u?e[c]:c]:void 0}}},"1mr4":function(t,e,n){var i=n("SJov"),r=n("z+TE");t.exports=function(t,e){return null!=t&&r(t,e,i)}},"1qSF":function(t,e,n){t.exports={Graph:n("buMw"),version:n("5AdH")}},"1xil":function(t,e,n){var i=n("YpBQ");t.exports=function(t){return null!=t&&t.length?i(t,1):[]}},"1yUy":function(t,e,n){"use strict";var i=n("gjtd"),r=n("fd5j");t.exports={run:function(t){var e="greedy"===t.graph().acyclicer?r(t,function(t){return function(e){return t.edge(e).weight}}(t)):function(t){var e=[],n={},r={};return i.forEach(t.nodes(),(function s(o){i.has(r,o)||(r[o]=!0,n[o]=!0,i.forEach(t.outEdges(o),(function(t){i.has(n,t.w)?e.push(t):s(t.w)})),delete n[o])})),e}(t);i.forEach(e,(function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,i.uniqueId("rev"))}))},undo:function(t){i.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var i=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,i)}}))}}},"21zJ":function(t,e,n){var i=n("5Ck4");t.exports=function(t,e){return i(t,e,"post")}},"2Fbm":function(t,e,n){var i=n("5pfJ");t.exports=function(){this.__data__=i?i(null):{},this.size=0}},"2M3I":function(t,e,n){var i=n("9au6"),r=n("R5u7"),s=n("fWyh");t.exports=function(t){return function(e,n,o){return o&&"number"!=typeof o&&r(e,n,o)&&(n=o=void 0),e=s(e),void 0===n?(n=e,e=0):n=s(n),o=void 0===o?e<n?1:-1:s(o),i(e,n,o,t)}}},"2ZvR":function(t,e){t.exports=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}},"2q8g":function(t,e,n){var i=n("Dhk8"),r=n("tQYX");t.exports=function(t){if(!r(t))return!1;var e=i(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},"2srY":function(t,e,n){var i=n("w2Tz");t.exports=function(t,e,n){var r=null==t?void 0:i(t,e);return void 0===r?n:r}},"2wsP":function(t,e,n){var i=n("EI7Z")("length");t.exports=i},"3KBa":function(t,e,n){var i=n("IBsm");t.exports=i["__core-js_shared__"]},"3Qlq":function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,i=new t.constructor(e);return e&&"string"==typeof t[0]&&n.call(t,"index")&&(i.index=t.index,i.input=t.input),i}},"3ajY":function(t,e,n){(function(t){var i=n("IBsm"),r=n("DjCF"),s=e&&!e.nodeType&&e,o=s&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===s?i.Buffer:void 0;t.exports=(a?a.isBuffer:void 0)||r}).call(this,n("aYSr")(t))},"3vZi":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("gbTj"),r=n("keXZ"),s=n("aj3f"),o=function(){return function(t,e,n){this.id=t,this.rect=e,this.children=n,this.leaf=void 0===n||0===n.length}}();e.NodeWrapper=o;var a=function(){return function(t,e,n,i,r){void 0===i&&(i=null),void 0===r&&(r=null),this.id=t,this.x=e,this.y=n,this.node=i,this.line=r}}();e.Vert=a;var u=function(){function t(e,n){this.s=e,this.t=n;var i=t.findMatch(e,n),r=n.slice(0).reverse(),s=t.findMatch(e,r);i.length>=s.length?(this.length=i.length,this.si=i.si,this.ti=i.ti,this.reversed=!1):(this.length=s.length,this.si=s.si,this.ti=n.length-s.ti-s.length,this.reversed=!0)}return t.findMatch=function(t,e){for(var n=t.length,i=e.length,r={length:0,si:-1,ti:-1},s=new Array(n),o=0;o<n;o++){s[o]=new Array(i);for(var a=0;a<i;a++)if(t[o]===e[a]){var u=s[o][a]=0===o||0===a?1:s[o-1][a-1]+1;u>r.length&&(r.length=u,r.si=o-u+1,r.ti=a-u+1)}else s[o][a]=0}return r},t.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},t}();e.LongestCommonSubsequence=u,e.GridRouter=function(){function t(t,e,n){var r=this;void 0===n&&(n=12),this.originalnodes=t,this.groupPadding=n,this.leaves=null,this.nodes=t.map((function(t,n){return new o(n,e.getBounds(t),e.getChildren(t))})),this.leaves=this.nodes.filter((function(t){return t.leaf})),this.groups=this.nodes.filter((function(t){return!t.leaf})),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach((function(t){return t.children.forEach((function(e){return r.nodes[e].parent=t}))})),this.root={children:[]},this.nodes.forEach((function(t){void 0===t.parent&&(t.parent=r.root,r.root.children.push(t.id)),t.ports=[]})),this.backToFront=this.nodes.slice(0),this.backToFront.sort((function(t,e){return r.getDepth(t)-r.getDepth(e)})),this.backToFront.slice(0).reverse().filter((function(t){return!t.leaf})).forEach((function(t){var e=i.Rectangle.empty();t.children.forEach((function(t){return e=e.union(r.nodes[t].rect)})),t.rect=e.inflate(r.groupPadding)}));var s=this.midPoints(this.cols.map((function(t){return t.pos}))),u=this.midPoints(this.rows.map((function(t){return t.pos}))),c=s[0],l=s[s.length-1],h=u[0],d=u[u.length-1],f=this.rows.map((function(t){return{x1:c,x2:l,y1:t.pos,y2:t.pos}})).concat(u.map((function(t){return{x1:c,x2:l,y1:t,y2:t}}))),p=this.cols.map((function(t){return{x1:t.pos,x2:t.pos,y1:h,y2:d}})).concat(s.map((function(t){return{x1:t,x2:t,y1:h,y2:d}}))),g=f.concat(p);g.forEach((function(t){return t.verts=[]})),this.verts=[],this.edges=[],f.forEach((function(t){return p.forEach((function(e){var n=new a(r.verts.length,e.x1,t.y1);t.verts.push(n),e.verts.push(n),r.verts.push(n);for(var i=r.backToFront.length;i-- >0;){var s=r.backToFront[i],o=s.rect,u=Math.abs(n.x-o.cx()),c=Math.abs(n.y-o.cy());if(u<o.width()/2&&c<o.height()/2){n.node=s;break}}}))})),g.forEach((function(t,e){r.nodes.forEach((function(e,n){e.rect.lineIntersections(t.x1,t.y1,t.x2,t.y2).forEach((function(n,i){var s=new a(r.verts.length,n.x,n.y,e,t);r.verts.push(s),t.verts.push(s),e.ports.push(s)}))}));var n=Math.abs(t.y1-t.y2)<.1,i=function(t,e){return n?e.x-t.x:e.y-t.y};t.verts.sort(i);for(var s=1;s<t.verts.length;s++){var o=t.verts[s-1],u=t.verts[s];o.node&&o.node===u.node&&o.node.leaf||r.edges.push({source:o.id,target:u.id,length:Math.abs(i(o,u))})}}))}return t.prototype.avg=function(t){return t.reduce((function(t,e){return t+e}))/t.length},t.prototype.getGridLines=function(t){for(var e=[],n=this.leaves.slice(0,this.leaves.length);n.length>0;){var i=n.filter((function(e){return e.rect["overlap"+t.toUpperCase()](n[0].rect)})),r={nodes:i,pos:this.avg(i.map((function(e){return e.rect["c"+t]()})))};e.push(r),r.nodes.forEach((function(t){return n.splice(n.indexOf(t),1)}))}return e.sort((function(t,e){return t.pos-e.pos})),e},t.prototype.getDepth=function(t){for(var e=0;t.parent!==this.root;)e++,t=t.parent;return e},t.prototype.midPoints=function(t){for(var e=t[1]-t[0],n=[t[0]-e/2],i=1;i<t.length;i++)n.push((t[i]+t[i-1])/2);return n.push(t[t.length-1]+e/2),n},t.prototype.findLineage=function(t){var e=[t];do{e.push(t=t.parent)}while(t!==this.root);return e.reverse()},t.prototype.findAncestorPathBetween=function(t,e){for(var n=this.findLineage(t),i=this.findLineage(e),r=0;n[r]===i[r];)r++;return{commonAncestor:n[r-1],lineages:n.slice(r).concat(i.slice(r))}},t.prototype.siblingObstacles=function(t,e){var n=this,i=this.findAncestorPathBetween(t,e),r={};i.lineages.forEach((function(t){return r[t.id]={}}));var s=i.commonAncestor.children.filter((function(t){return!(t in r)}));return i.lineages.filter((function(t){return t.parent!==i.commonAncestor})).forEach((function(t){return s=s.concat(t.parent.children.filter((function(e){return e!==t.id})))})),s.map((function(t){return n.nodes[t]}))},t.getSegmentSets=function(t,e,n){for(var i=[],r=0;r<t.length;r++)for(var s=t[r],o=0;o<s.length;o++)(l=s[o]).edgeid=r,l.i=o,Math.abs(l[1][e]-l[0][e])<.1&&i.push(l);i.sort((function(t,n){return t[0][e]-n[0][e]}));for(var a=[],u=null,c=0;c<i.length;c++){var l=i[c];(!u||Math.abs(l[0][e]-u.pos)>.1)&&a.push(u={pos:l[0][e],segments:[]}),u.segments.push(l)}return a},t.nudgeSegs=function(t,e,n,i,s,o){var a=i.length;if(!(a<=1)){for(var u=i.map((function(e){return new r.Variable(e[0][t])})),c=[],l=0;l<a;l++)for(var h=0;h<a;h++)if(l!==h){var d=i[l],f=d.edgeid,p=i[h].edgeid,g=-1,m=-1;"x"==t?s(f,p)&&(d[0][e]<d[1][e]?(g=h,m=l):(g=l,m=h)):s(f,p)&&(d[0][e]<d[1][e]?(g=l,m=h):(g=h,m=l)),g>=0&&c.push(new r.Constraint(u[g],u[m],o))}new r.Solver(u,c).solve(),u.forEach((function(e,r){var s=i[r],o=e.position();s[0][t]=s[1][t]=o;var a=n[s.edgeid];s.i>0&&(a[s.i-1][1][t]=o),s.i<a.length-1&&(a[s.i+1][0][t]=o)}))}},t.nudgeSegments=function(e,n,i,r,s){for(var o=t.getSegmentSets(e,n,i),a=0;a<o.length;a++){for(var u=o[a],c=[],l=0;l<u.segments.length;l++){var h=u.segments[l];c.push({type:0,s:h,pos:Math.min(h[0][i],h[1][i])}),c.push({type:1,s:h,pos:Math.max(h[0][i],h[1][i])})}c.sort((function(t,e){return t.pos-e.pos+t.type-e.type}));var d=[],f=0;c.forEach((function(o){0===o.type?(d.push(o.s),f++):f--,0==f&&(t.nudgeSegs(n,i,e,d,r,s),d=[])}))}},t.prototype.routeEdges=function(e,n,i,r){var s=this,o=e.map((function(t){return s.route(i(t),r(t))})),a=t.orderEdges(o),u=o.map((function(e){return t.makeSegments(e)}));return t.nudgeSegments(u,"x","y",a,n),t.nudgeSegments(u,"y","x",a,n),t.unreverseEdges(u,o),u},t.unreverseEdges=function(t,e){t.forEach((function(t,n){e[n].reversed&&(t.reverse(),t.forEach((function(t){t.reverse()})))}))},t.angleBetween2Lines=function(t,e){var n=Math.atan2(t[0].y-t[1].y,t[0].x-t[1].x),i=Math.atan2(e[0].y-e[1].y,e[0].x-e[1].x),r=n-i;return(r>Math.PI||r<-Math.PI)&&(r=i-n),r},t.isLeft=function(t,e,n){return(e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x)<=0},t.getOrder=function(t){for(var e={},n=0;n<t.length;n++){var i=t[n];void 0===e[i.l]&&(e[i.l]={}),e[i.l][i.r]=!0}return function(t,n){return void 0!==e[t]&&e[t][n]}},t.orderEdges=function(e){for(var n=[],i=0;i<e.length-1;i++)for(var r=i+1;r<e.length;r++){var s,o,a,c=e[i],l=e[r],h=new u(c,l);0!==h.length&&(h.reversed&&(l.reverse(),l.reversed=!0,h=new u(c,l)),(h.si<=0||h.ti<=0)&&(h.si+h.length>=c.length||h.ti+h.length>=l.length)?n.push({l:i,r:r}):(h.si+h.length>=c.length||h.ti+h.length>=l.length?(s=c[h.si+1],a=c[h.si-1],o=l[h.ti-1]):(s=c[h.si+h.length-2],o=c[h.si+h.length],a=l[h.ti+h.length]),t.isLeft(s,o,a)?n.push({l:r,r:i}):n.push({l:i,r:r})))}return t.getOrder(n)},t.makeSegments=function(t){function e(t){return{x:t.x,y:t.y}}for(var n=function(t,e,n){return Math.abs((e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x))<.001},i=[],r=e(t[0]),s=1;s<t.length;s++){var o=e(t[s]),a=s<t.length-1?t[s+1]:null;a&&n(r,o,a)||(i.push([r,o]),r=o)}return i},t.prototype.route=function(t,e){var n=this,i=this.nodes[t],r=this.nodes[e];this.obstacles=this.siblingObstacles(i,r);var o={};this.obstacles.forEach((function(t){return o[t.id]=t})),this.passableEdges=this.edges.filter((function(t){var e=n.verts[t.source],i=n.verts[t.target];return!(e.node&&e.node.id in o||i.node&&i.node.id in o)}));for(var a=1;a<i.ports.length;a++)this.passableEdges.push({source:i.ports[0].id,target:i.ports[a].id,length:0});for(a=1;a<r.ports.length;a++)this.passableEdges.push({source:r.ports[0].id,target:r.ports[a].id,length:0});var u=new s.Calculator(this.verts.length,this.passableEdges,(function(t){return t.source}),(function(t){return t.target}),(function(t){return t.length})).PathFromNodeToNodeWithPrevCost(i.ports[0].id,r.ports[0].id,(function(t,e,s){var o=n.verts[t],a=n.verts[e],u=n.verts[s],c=Math.abs(u.x-o.x),l=Math.abs(u.y-o.y);return o.node===i&&o.node===a.node||a.node===r&&a.node===u.node?0:c>1&&l>1?1e3:0})).reverse().map((function(t){return n.verts[t]}));return u.push(this.nodes[r.id].ports[0]),u.filter((function(t,e){return!(e<u.length-1&&u[e+1].node===i&&t.node===i||e>0&&t.node===r&&u[e-1].node===r)}))},t.getRoutePath=function(e,n,i,r){var s,o,a,u,c,l={routepath:"M "+e[0][0].x+" "+e[0][0].y+" ",arrowpath:""};if(e.length>1)for(var h=0;h<e.length;h++){var d=(o=(s=e[h])[1].x)-s[0].x,f=(a=s[1].y)-s[0].y;if(h<e.length-1){Math.abs(d)>0?o-=d/Math.abs(d)*n:a-=f/Math.abs(f)*n,l.routepath+="L "+o+" "+a+" ";var p=e[h+1],g=p[0].x,m=p[0].y;d=p[1].x-g,f=p[1].y-m;var y,v,_=t.angleBetween2Lines(s,p)<0?1:0;Math.abs(d)>0?(y=g+d/Math.abs(d)*n,v=m):(y=g,v=m+f/Math.abs(f)*n);var b=Math.abs(y-o),w=Math.abs(v-a);l.routepath+="A "+b+" "+w+" 0 0 "+_+" "+y+" "+v+" "}else{var x=[o,a];Math.abs(d)>0?(u=[o-=d/Math.abs(d)*r,a+i],c=[o,a-i]):(u=[o+i,a-=f/Math.abs(f)*r],c=[o-i,a]),l.routepath+="L "+o+" "+a+" ",r>0&&(l.arrowpath="M "+x[0]+" "+x[1]+" L "+u[0]+" "+u[1]+" L "+c[0]+" "+c[1])}}else d=(o=(s=e[0])[1].x)-s[0].x,f=(a=s[1].y)-s[0].y,x=[o,a],Math.abs(d)>0?(u=[o-=d/Math.abs(d)*r,a+i],c=[o,a-i]):(u=[o+i,a-=f/Math.abs(f)*r],c=[o-i,a]),l.routepath+="L "+o+" "+a+" ",r>0&&(l.arrowpath="M "+x[0]+" "+x[1]+" L "+u[0]+" "+u[1]+" L "+c[0]+" "+c[1]);return l},t}()},"4+Vk":function(t,e,n){var i=n("vxC8")(n("IBsm"),"WeakMap");t.exports=i},"4/ik":function(t,e,n){var i=n("+ooz"),r=n("qeCs"),s=n("hyzI");t.exports=function(t,e){var n=this.__data__;if(n instanceof i){var o=n.__data__;if(!r||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new s(o)}return n.set(t,e),this.size=n.size,this}},"4CxS":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("aj3f"),r=n("Lm04"),s=n("gbTj"),o=n("bJjD");e.Link3D=function(){function t(t,e){this.source=t,this.target=e}return t.prototype.actualLength=function(t){var e=this;return Math.sqrt(t.reduce((function(t,n){var i=n[e.target]-n[e.source];return t+i*i}),0))},t}(),e.Node3D=function(){return function(t,e,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),this.x=t,this.y=e,this.z=n}}(),e.Layout3D=function(){function t(e,n,i){var r=this;void 0===i&&(i=1),this.nodes=e,this.links=n,this.idealLinkLength=i,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(t.k);for(var s=0;s<t.k;++s)this.result[s]=new Array(e.length);e.forEach((function(e,n){for(var i=0,s=t.dims;i<s.length;i++){var o=s[i];void 0===e[o]&&(e[o]=Math.random())}r.result[0][n]=e.x,r.result[1][n]=e.y,r.result[2][n]=e.z}))}return t.prototype.linkLength=function(t){return t.actualLength(this.result)},t.prototype.start=function(t){var e=this;void 0===t&&(t=100);var n=this.nodes.length,u=new a;this.useJaccardLinkLengths&&o.jaccardLinkLengths(this.links,u,1.5),this.links.forEach((function(t){return t.length*=e.idealLinkLength}));var c=new i.Calculator(n,this.links,(function(t){return t.source}),(function(t){return t.target}),(function(t){return t.length})).DistanceMatrix(),l=r.Descent.createSquareMatrix(n,(function(t,e){return c[t][e]})),h=r.Descent.createSquareMatrix(n,(function(){return 2}));this.links.forEach((function(t){var e=t.source,n=t.target;return h[e][n]=h[n][e]=1})),this.descent=new r.Descent(this.result,l),this.descent.threshold=.001,this.descent.G=h,this.constraints&&(this.descent.project=new s.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var d=0;d<this.nodes.length;d++){var f=this.nodes[d];f.fixed&&this.descent.locks.add(d,[f.x,f.y,f.z])}return this.descent.run(t),this},t.prototype.tick=function(){this.descent.locks.clear();for(var t=0;t<this.nodes.length;t++){var e=this.nodes[t];e.fixed&&this.descent.locks.add(t,[e.x,e.y,e.z])}return this.descent.rungeKutta()},t.k=(t.dims=["x","y","z"]).length,t}();var a=function(){function t(){}return t.prototype.getSourceIndex=function(t){return t.source},t.prototype.getTargetIndex=function(t){return t.target},t.prototype.getLength=function(t){return t.length},t.prototype.setLength=function(t,e){t.length=e},t}()},"4DVH":function(t,e,n){"use strict";var i=n("K8/D").longestPath,r=n("58Ui"),s=n("EMSI");t.exports=function(t){switch(t.graph().ranker){case"network-simplex":a(t);break;case"tight-tree":!function(t){i(t),r(t)}(t);break;case"longest-path":o(t);break;default:a(t)}};var o=i;function a(t){s(t)}},"4ScB":function(t,e,n){var i=n("LtXa"),r=n("zH+d");t.exports=function(t){return i(t,r(t))}},"4Xgz":function(t,e,n){"use strict";var i,r,s;"undefined"!=typeof window&&window,r=[n("MXs6")],void 0===(s="function"==typeof(i=function(t){var e=function(){var e,n={},i=[];function r(t){t||(t=document.documentElement);var e=window.getComputedStyle(t,null).fontSize;return parseFloat(e)||16}function s(t,e){var n=e.split(/\d/),i=n[n.length-1];switch(e=parseFloat(e),i){case"px":return e;case"em":return e*r(t);case"rem":return e*r();case"vw":return e*document.documentElement.clientWidth/100;case"vh":return e*document.documentElement.clientHeight/100;case"vmin":case"vmax":var s=document.documentElement.clientWidth/100,o=document.documentElement.clientHeight/100;return e*(0,Math["vmin"===i?"min":"max"])(s,o);default:return e}}function o(t,e){var i,r,o,a,u,c,l,h;this.element=t;var d=["min-width","min-height","max-width","max-height"];this.call=function(){for(i in o=function(t){if(!t.getBoundingClientRect)return{width:t.offsetWidth,height:t.offsetHeight};var e=t.getBoundingClientRect();return{width:Math.round(e.width),height:Math.round(e.height)}}(this.element),c={},n[e])n[e].hasOwnProperty(i)&&(a=s(this.element,(r=n[e][i]).value),u="width"===r.property?o.width:o.height,l="","min"===r.mode&&u>=a&&(l+=r.value),"max"===r.mode&&u<=a&&(l+=r.value),c[h=r.mode+"-"+r.property]||(c[h]=""),l&&-1===(" "+c[h]+" ").indexOf(" "+l+" ")&&(c[h]+=" "+l));for(var t in d)d.hasOwnProperty(t)&&(c[d[t]]?this.element.setAttribute(d[t],c[d[t]].substr(1)):this.element.removeAttribute(d[t]))}}function a(e,n){e.elementQueriesSetupInformation||(e.elementQueriesSetupInformation=new o(e,n)),e.elementQueriesSensor||(e.elementQueriesSensor=new t(e,(function(){e.elementQueriesSetupInformation.call()})))}function u(t,r,s,o){if(void 0===n[t]){n[t]=[];var a=i.length;e.innerHTML+="\n"+t+" {animation: 0.1s element-queries;}",e.innerHTML+="\n"+t+" > .resize-sensor {min-width: "+a+"px;}",i.push(t)}n[t].push({mode:r,property:s,value:o})}function c(t){var e;if(document.querySelectorAll&&(e=t?t.querySelectorAll.bind(t):document.querySelectorAll.bind(document)),e||"undefined"==typeof $$||(e=$$),e||"undefined"==typeof jQuery||(e=jQuery),!e)throw"No document.querySelectorAll, jQuery or Mootools's $$ found.";return e}function l(e){var n=[],i=[],r=[],s=0,o=-1,a=[];for(var u in e.children)if(e.children.hasOwnProperty(u)&&e.children[u].tagName&&"img"===e.children[u].tagName.toLowerCase()){n.push(e.children[u]);var c=e.children[u].getAttribute("min-width")||e.children[u].getAttribute("data-min-width"),l=e.children[u].getAttribute("data-src")||e.children[u].getAttribute("url");r.push(l),i.push({minWidth:c}),c?e.children[u].style.display="none":(s=n.length-1,e.children[u].style.display="block")}function h(){var t,u=!1;for(t in n)n.hasOwnProperty(t)&&i[t].minWidth&&e.offsetWidth>i[t].minWidth&&(u=t);if(u||(u=s),o!==u)if(a[u])n[o].style.display="none",n[u].style.display="block",o=u;else{var c=new Image;c.onload=function(){n[u].src=r[u],n[o].style.display="none",n[u].style.display="block",a[u]=!0,o=u},c.src=r[u]}else n[u].src=r[u]}o=s,e.resizeSensorInstance=new t(e,h),h()}var h=/,?[\s\t]*([^,\n]*?)((?:\[[\s\t]*?(?:min|max)-(?:width|height)[\s\t]*?[~$\^]?=[\s\t]*?"[^"]*?"[\s\t]*?])+)([^,\n\s\{]*)/gim,d=/\[[\s\t]*?(min|max)-(width|height)[\s\t]*?[~$\^]?=[\s\t]*?"([^"]*?)"[\s\t]*?]/gim;function f(t){var e,n,i,r;for(t=t.replace(/'/g,'"');null!==(e=h.exec(t));)for(n=e[1]+e[3],i=e[2];null!==(r=d.exec(i));)u(n,r[1],r[2],r[3])}function p(t){var e="";if(t)if("string"==typeof t)-1===(t=t.toLowerCase()).indexOf("min-width")&&-1===t.indexOf("max-width")||f(t);else for(var n=0,i=t.length;n<i;n++)1===t[n].type?-1!==(e=t[n].selectorText||t[n].cssText).indexOf("min-height")||-1!==e.indexOf("max-height")?f(e):-1===e.indexOf("min-width")&&-1===e.indexOf("max-width")||f(e):4===t[n].type?p(t[n].cssRules||t[n].rules):3===t[n].type&&t[n].styleSheet.hasOwnProperty("cssRules")&&p(t[n].styleSheet.cssRules)}var g=!1;this.init=function(){var n="animationstart";void 0!==document.documentElement.style.webkitAnimationName?n="webkitAnimationStart":void 0!==document.documentElement.style.MozAnimationName?n="mozanimationstart":void 0!==document.documentElement.style.OAnimationName&&(n="oanimationstart"),document.body.addEventListener(n,(function(e){var n=e.target,r=n&&window.getComputedStyle(n,null),s=r&&r.getPropertyValue("animation-name");if(s&&-1!==s.indexOf("element-queries")){n.elementQueriesSensor=new t(n,(function(){n.elementQueriesSetupInformation&&n.elementQueriesSetupInformation.call()}));var o=window.getComputedStyle(n.resizeSensor,null).getPropertyValue("min-width");o=parseInt(o.replace("px","")),a(e.target,i[o])}})),g||((e=document.createElement("style")).type="text/css",e.innerHTML="[responsive-image] > img, [data-responsive-image] {overflow: hidden; padding: 0; } [responsive-image] > img, [data-responsive-image] > img {width: 100%;}",e.innerHTML+="\n@keyframes element-queries { 0% { visibility: inherit; } }",document.getElementsByTagName("head")[0].appendChild(e),g=!0);for(var r=0,s=document.styleSheets.length;r<s;r++)try{document.styleSheets[r].href&&0===document.styleSheets[r].href.indexOf("file://")&&console.warn("CssElementQueries: unable to parse local css files, "+document.styleSheets[r].href),p(document.styleSheets[r].cssRules||document.styleSheets[r].rules||document.styleSheets[r].cssText)}catch(o){}!function(){for(var t=c()("[data-responsive-image],[responsive-image]"),e=0,n=t.length;e<n;e++)l(t[e])}()},this.findElementQueriesElements=function(t){!function(t){var e=c(t);for(var i in n)if(n.hasOwnProperty(i))for(var r=e(i,t),s=0,o=r.length;s<o;s++)a(r[s],i)}(t)},this.update=function(){this.init()}};return e.update=function(){e.instance.update()},e.detach=function(t){t.elementQueriesSetupInformation?(t.elementQueriesSensor.detach(),delete t.elementQueriesSetupInformation,delete t.elementQueriesSensor):t.resizeSensorInstance&&(t.resizeSensorInstance.detach(),delete t.resizeSensorInstance)},e.init=function(){e.instance||(e.instance=new e),e.instance.init()},e.findElementQueriesElements=function(t){e.instance.findElementQueriesElements(t)},e.listen=function(){!function(t){if(document.addEventListener)document.addEventListener("DOMContentLoaded",t,!1);else if(/KHTML|WebKit|iCab/i.test(navigator.userAgent))var e=setInterval((function(){/loaded|complete/i.test(document.readyState)&&(t(),clearInterval(e))}),10);else window.onload=t}(e.init)},e})?i.apply(e,r):i)||(t.exports=s)},"4e6e":function(t,e,n){t.exports={graphlib:n("vC4J"),layout:n("Pivv"),debug:n("zmx7"),util:{time:n("xxjf").time,notime:n("xxjf").notime},version:n("VQMV")}},"4jPf":function(t,e){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},"4p/L":function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},"4uJK":function(t,e,n){var i=n("CbIe"),r=n("OtNC"),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(!i(t))return r(t);var e=[];for(var n in Object(t))s.call(t,n)&&"constructor"!=n&&e.push(n);return e}},"58Ui":function(t,e,n){"use strict";var i=n("gjtd"),r=n("vC4J").Graph,s=n("K8/D").slack;function o(t,e){return i.forEach(t.nodes(),(function n(r){i.forEach(e.nodeEdges(r),(function(i){var o=i.v,a=r===o?i.w:o;t.hasNode(a)||s(e,i)||(t.setNode(a,{}),t.setEdge(r,a,{}),n(a))}))})),t.nodeCount()}function a(t,e){return i.minBy(e.edges(),(function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return s(e,n)}))}function u(t,e,n){i.forEach(t.nodes(),(function(t){e.node(t).rank+=n}))}t.exports=function(t){var e,n,i=new r({directed:!1}),c=t.nodes()[0],l=t.nodeCount();for(i.setNode(c,{});o(i,t)<l;)e=a(i,t),n=i.hasNode(e.v)?s(t,e):-s(t,e),u(i,t,n);return i}},"5AdH":function(t,e){t.exports="2.1.8"},"5Ck4":function(t,e,n){var i=n("Jl0P");t.exports=function(t,e,n){i.isArray(e)||(e=[e]);var r=(t.isDirected()?t.successors:t.neighbors).bind(t),s=[],o={};return i.each(e,(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);!function t(e,n,r,s,o,a){i.has(s,n)||(s[n]=!0,r||a.push(n),i.each(o(n),(function(n){t(e,n,r,s,o,a)})),r&&a.push(n))}(t,e,"post"===n,o,r,s)})),s}},"5VYK":function(t,e,n){var i=n("6QIk");t.exports=function(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]}},"5WP5":function(t,e,n){var i=n("dnX/");t.exports=function(t,e,n){for(var r=-1,s=t.criteria,o=e.criteria,a=s.length,u=n.length;++r<a;){var c=i(s[r],o[r]);if(c)return r>=u?c:c*("desc"==n[r]?-1:1)}return t.index-e.index}},"5nKN":function(t,e,n){var i=n("2q8g"),r=n("9vbJ"),s=n("tQYX"),o=n("c18h"),a=/^\[object .+?Constructor\]$/,u=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!s(t)||r(t))&&(i(t)?u:a).test(o(t))}},"5pfJ":function(t,e,n){var i=n("vxC8")(Object,"create");t.exports=i},"5q8j":function(t,e){t.exports=function(t,e,n,i,r){return r(t,(function(t,r,s){n=i?(i=!1,t):e(n,t,r,s)})),n}},"5vqC":function(t,e,n){t.exports={ResizeSensor:n("MXs6"),ElementQueries:n("4Xgz")}},"6I2w":function(t,e,n){var i=n("kkM+"),r=n("tLQN");t.exports=function(t){return r(t)&&"[object Set]"==i(t)}},"6QIk":function(t,e,n){var i=n("pPzx");t.exports=function(t,e){for(var n=t.length;n--;)if(i(t[n][0],e))return n;return-1}},"6R5o":function(t,e,n){var i=n("1aYn")(n("FllU"));t.exports=i},"6Rtw":function(t,e,n){var i=n("EAGB");t.exports=function(t,e){var n=e?i(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},"6UKJ":function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},"6XIJ":function(t,e){var n=/\s/;t.exports=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},"7/jS":function(t,e,n){var i=n("Dhk8"),r=n("t0L4"),s=n("tLQN"),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,t.exports=function(t){return s(t)&&r(t.length)&&!!o[i(t)]}},"7/we":function(t,e,n){var i=n("ZjRn"),r=n("hMsr"),s=n("0Ss3");t.exports=function(t){var e=r(t);return 1==e.length&&e[0][2]?s(e[0][0],e[0][1]):function(n){return n===t||i(n,t,e)}}},"70Le":function(t,e,n){var i=n("W0vE"),r=n("X4R2"),s=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols;t.exports=o?function(t){return null==t?[]:(t=Object(t),i(o(t),(function(e){return s.call(t,e)})))}:r},"7No3":function(t,e,n){var i=n("EAGB"),r=n("lN3w"),s=n("Bstx"),o=n("bVbG"),a=n("6Rtw");t.exports=function(t,e,n){var u=t.constructor;switch(e){case"[object ArrayBuffer]":return i(t);case"[object Boolean]":case"[object Date]":return new u(+t);case"[object DataView]":return r(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(t,n);case"[object Map]":return new u;case"[object Number]":case"[object String]":return new u(t);case"[object RegExp]":return s(t);case"[object Set]":return new u;case"[object Symbol]":return o(t)}}},"7Pat":function(t,e,n){var i=n("+7q0"),r=n("kG2z")(i);t.exports=r},"7seP":function(t,e,n){var i=n("4uJK"),r=n("kkM+"),s=n("9y2L"),o=n("nDih"),a=n("GVul");t.exports=function(t){if(null==t)return 0;if(s(t))return o(t)?a(t):t.length;var e=r(t);return"[object Map]"==e||"[object Set]"==e?t.size:i(t).length}},"8Zrg":function(t,e){t.exports=function(){this.__data__=[],this.size=0}},"9SCj":function(t,e,n){var i=n("LmOH"),r=n("Q4oW"),s=n("D49j"),o=n("wxYD");t.exports=function(t,e){return(o(t)?i:r)(t,s(e))}},"9SKQ":function(t,e,n){var i=n("JNqh");t.exports=function(t){return i(this,t).has(t)}},"9TP6":function(t,e,n){var i=n("OBn4"),r=n("nnm9"),s=n("XlL0"),o=i&&1/s(new i([,-0]))[1]==1/0?function(t){return new i(t)}:r;t.exports=o},"9au6":function(t,e){var n=Math.ceil,i=Math.max;t.exports=function(t,e,r,s){for(var o=-1,a=i(n((e-t)/(r||1)),0),u=Array(a);a--;)u[s?a:++o]=t,t+=r;return u}},"9vbJ":function(t,e,n){var i,r=n("3KBa"),s=(i=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";t.exports=function(t){return!!s&&s in t}},"9y2L":function(t,e,n){var i=n("2q8g"),r=n("t0L4");t.exports=function(t){return null!=t&&r(t.length)&&!i(t)}},AjPR:function(t,e,n){var i=n("LtXa"),r=n("70Le");t.exports=function(t,e){return i(t,r(t),e)}},BSqe:function(t,e){t.exports=function(t){return this.__data__.get(t)}},BjSP:function(t,e,n){var i=n("LtXa"),r=n("Xidw");t.exports=function(t,e){return i(t,r(t),e)}},BlJA:function(t,e,n){var i=n("rmhs"),r=n("4uJK"),s=n("9y2L");t.exports=function(t){return s(t)?i(t):r(t)}},BpeN:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=10,r=(1+Math.sqrt(5))/2,s=1e-4;e.applyPacking=function(t,e,n,o,a,u){void 0===a&&(a=1),void 0===u&&(u=!0);var c=e,l=n,h=(a=void 0!==a?a:1,o=void 0!==o?o:0,0),d=0,f=0,p=0,g=[];function m(t,e){g=[],h=0,d=0,p=0;for(var n=0;n<t.length;n++)y(t[n],e);return Math.abs(h/d-a)}function y(t,e){for(var n=void 0,r=0;r<g.length;r++)if(g[r].space_left>=t.height&&g[r].x+g[r].width+t.width+i-e<=s){n=g[r];break}g.push(t),void 0!==n?(t.x=n.x+n.width+i,t.y=n.bottom,t.space_left=t.height,t.bottom=t.y,n.space_left-=t.height+i,n.bottom+=t.height+i):(t.y=p,p+=t.height+i,t.x=0,t.bottom=t.y,t.space_left=t.height),t.y+t.height-d>-1e-4&&(d=t.y+t.height-0),t.x+t.width-h>-1e-4&&(h=t.x+t.width-0)}0!=t.length&&(function(t){t.forEach((function(t){var e,n,i,r,s;e=t,n=Number.MAX_VALUE,i=Number.MAX_VALUE,r=0,s=0,e.array.forEach((function(t){var e=void 0!==t.width?t.width:o,a=void 0!==t.height?t.height:o;e/=2,a/=2,r=Math.max(t.x+e,r),n=Math.min(t.x-e,n),s=Math.max(t.y+a,s),i=Math.min(t.y-a,i)})),e.width=r-n,e.height=s-i}))}(t),function(t,e){var n=Number.POSITIVE_INFINITY,o=0;t.sort((function(t,e){return e.height-t.height}));for(var a=y=f=t.reduce((function(t,e){return t.width<e.width?t.width:e.width})),u=v=function(t){var e=0;return t.forEach((function(t){return e+=t.width+i})),e}(t),c=0,l=Number.MAX_VALUE,h=Number.MAX_VALUE,d=-1,p=Number.MAX_VALUE,g=Number.MAX_VALUE;p>f||g>s;){if(1!=d){var y=u-(u-a)/r;l=m(t,y)}if(0!=d){var v=a+(u-a)/r;h=m(t,v)}if(p=Math.abs(y-v),g=Math.abs(l-h),l<n&&(n=l,o=y),h<n&&(n=h,o=v),l>h?(a=y,y=v,l=h,d=1):(u=v,v=y,h=l,d=0),c++>100)break}m(t,o)}(t),u&&function(t){t.forEach((function(t){var e={x:0,y:0};t.array.forEach((function(t){e.x+=t.x,e.y+=t.y})),e.x/=t.array.length,e.y/=t.array.length;var n=t.x-(e.x-t.width/2)+c/2-h/2,i=t.y-(e.y-t.height/2)+l/2-d/2;t.array.forEach((function(t){t.x+=n,t.y+=i}))}))}(t))},e.separateGraphs=function(t,e){for(var n={},i={},r=[],s=0,o=0;o<e.length;o++){var a=e[o],u=a.source,c=a.target;i[u.index]?i[u.index].push(c):i[u.index]=[c],i[c.index]?i[c.index].push(u):i[c.index]=[u]}for(o=0;o<t.length;o++){var l=t[o];n[l.index]||h(l,!0)}function h(t,e){if(void 0===n[t.index]){e&&(s++,r.push({array:[]})),n[t.index]=s,r[s-1].array.push(t);var o=i[t.index];if(o)for(var a=0;a<o.length;a++)h(o[a],!1)}}return r}},BqUW:function(t,e,n){var i=n("HsnV"),r=n("ZZ+W"),s=n("R3gn"),o=n("yZHP"),a=n("kkM+"),u=n("wxYD"),c=n("3ajY"),l=n("Qd2C"),h="[object Arguments]",d="[object Array]",f="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,g,m,y){var v=u(t),_=u(e),b=v?d:a(t),w=_?d:a(e),x=(b=b==h?f:b)==f,E=(w=w==h?f:w)==f,C=b==w;if(C&&c(t)){if(!c(e))return!1;v=!0,x=!1}if(C&&!x)return y||(y=new i),v||l(t)?r(t,e,n,g,m,y):s(t,e,b,n,g,m,y);if(!(1&n)){var S=x&&p.call(t,"__wrapped__"),k=E&&p.call(e,"__wrapped__");if(S||k){var T=S?t.value():t,O=k?e.value():e;return y||(y=new i),m(T,O,n,g,y)}}return!!C&&(y||(y=new i),o(t,e,n,g,m,y))}},Bstx:function(t,e){var n=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,n.exec(t));return e.lastIndex=t.lastIndex,e}},CEyS:function(t,e,n){var i=n("w2Tz");t.exports=function(t){return function(e){return i(e,t)}}},CZlo:function(t,e){t.exports=function(t){return void 0===t}},CbIe:function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},Cmkl:function(t,e,n){var i=n("2M3I")();t.exports=i},"Coc+":function(t,e,n){var i=n("6QIk");t.exports=function(t){return i(this.__data__,t)>-1}},D49j:function(t,e,n){var i=n("zWgn");t.exports=function(t){return"function"==typeof t?t:i}},D5rW:function(t,e,n){var i=n("gjtd"),r=n("vC4J").Graph;t.exports=function(t,e,n){var s=function(t){for(var e;t.hasNode(e=i.uniqueId("_root")););return e}(t),o=new r({compound:!0}).setGraph({root:s}).setDefaultNodeLabel((function(e){return t.node(e)}));return i.forEach(t.nodes(),(function(r){var a=t.node(r),u=t.parent(r);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(o.setNode(r),o.setParent(r,u||s),i.forEach(t[n](r),(function(e){var n=e.v===r?e.w:e.v,s=o.edge(n,r),a=i.isUndefined(s)?0:s.weight;o.setEdge(n,r,{weight:t.edge(e).weight+a})})),i.has(a,"minRank")&&o.setNode(r,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))})),o}},Dhk8:function(t,e,n){var i=n("Syyo"),r=n("KCLV"),s=n("kHoZ"),o=i?i.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":o&&o in Object(t)?r(t):s(t)}},DjCF:function(t,e){t.exports=function(){return!1}},DuXo:function(t,e){t.exports=function(t,e,n,i){for(var r=t.length,s=n+(i?1:-1);i?s--:++s<r;)if(e(t[s],s,t))return s;return-1}},DzXQ:function(t,e,n){var i=n("gjtd");t.exports=function(t,e,n){var r,s={};i.forEach(n,(function(n){for(var i,o,a=t.parent(n);a;){if((i=t.parent(a))?(o=s[i],s[i]=a):(o=r,r=a),o&&o!==a)return void e.setEdge(o,a);a=i}}))}},E4ao:function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},EAGB:function(t,e,n){var i=n("mGzy");t.exports=function(t){var e=new t.constructor(t.byteLength);return new i(e).set(new i(t)),e}},EI7Z:function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},EMSI:function(t,e,n){"use strict";var i=n("gjtd"),r=n("58Ui"),s=n("K8/D").slack,o=n("K8/D").longestPath,a=n("vC4J").alg.preorder,u=n("vC4J").alg.postorder,c=n("xxjf").simplify;function l(t){t=c(t),o(t);var e,n=r(t);for(f(n),h(n,t);e=g(n);)y(n,t,e,m(n,t,e))}function h(t,e){var n=u(t,t.nodes());n=n.slice(0,n.length-1),i.forEach(n,(function(n){!function(t,e,n){var i=t.node(n);t.edge(n,i.parent).cutvalue=d(t,e,n)}(t,e,n)}))}function d(t,e,n){var r=t.node(n).parent,s=!0,o=e.edge(n,r),a=0;return o||(s=!1,o=e.edge(r,n)),a=o.weight,i.forEach(e.nodeEdges(n),(function(i){var o=i.v===n,u=o?i.w:i.v;if(u!==r){var c=o===s,l=e.edge(i).weight;if(a+=c?l:-l,t.hasEdge(n,u)){var h=t.edge(n,u).cutvalue;a+=c?-h:h}}})),a}function f(t,e){arguments.length<2&&(e=t.nodes()[0]),p(t,{},1,e)}function p(t,e,n,r,s){var o=n,a=t.node(r);return e[r]=!0,i.forEach(t.neighbors(r),(function(s){i.has(e,s)||(n=p(t,e,n,s,r))})),a.low=o,a.lim=n++,s?a.parent=s:delete a.parent,n}function g(t){return i.find(t.edges(),(function(e){return t.edge(e).cutvalue<0}))}function m(t,e,n){var r=n.v,o=n.w;e.hasEdge(r,o)||(r=n.w,o=n.v);var a=t.node(r),u=t.node(o),c=a,l=!1;a.lim>u.lim&&(c=u,l=!0);var h=i.filter(e.edges(),(function(e){return l===v(0,t.node(e.v),c)&&l!==v(0,t.node(e.w),c)}));return i.minBy(h,(function(t){return s(e,t)}))}function y(t,e,n,r){t.removeEdge(n.v,n.w),t.setEdge(r.v,r.w,{}),f(t),h(t,e),function(t,e){var n=i.find(t.nodes(),(function(t){return!e.node(t).parent})),r=a(t,n);r=r.slice(1),i.forEach(r,(function(n){var i=t.node(n).parent,r=e.edge(n,i),s=!1;r||(r=e.edge(i,n),s=!0),e.node(n).rank=e.node(i).rank+(s?r.minlen:-r.minlen)}))}(t,e)}function v(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=l,l.initLowLimValues=f,l.initCutValues=h,l.calcCutValue=d,l.leaveEdge=g,l.enterEdge=m,l.exchangeEdges=y},ENE1:function(t,e,n){var i=n("IBsm");t.exports=function(){return i.Date.now()}},FaiA:function(t,e){t.exports=function(t,e){return t>e}},FllU:function(t,e,n){var i=n("DuXo"),r=n("S3pA"),s=n("m2YG"),o=Math.max;t.exports=function(t,e,n){var a=null==t?0:t.length;if(!a)return-1;var u=null==n?0:s(n);return u<0&&(u=o(a+u,0)),i(t,r(e,3),u)}},GVul:function(t,e,n){var i=n("2wsP"),r=n("GZgP"),s=n("QZ90");t.exports=function(t){return r(t)?s(t):i(t)}},GZgP:function(t,e){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return n.test(t)}},Grae:function(t,e,n){(function(t){var i=n("IBsm"),r=e&&!e.nodeType&&e,s=r&&"object"==typeof t&&t&&!t.nodeType&&t,o=s&&s.exports===r?i.Buffer:void 0,a=o?o.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,i=a?a(n):new t.constructor(n);return t.copy(i),i}}).call(this,n("aYSr")(t))},H87J:function(t,e){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r}},H8sf:function(t,e,n){var i=n("MzY2"),r=n("wpQC")((function(t,e,n){i(t,e,n)}));t.exports=r},Hp3j:function(t,e,n){"use strict";var i=n("gjtd");t.exports=function(t,e){var n={};return i.forEach(t,(function(t,e){var r=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};i.isUndefined(t.barycenter)||(r.barycenter=t.barycenter,r.weight=t.weight)})),i.forEach(e.edges(),(function(t){var e=n[t.v],r=n[t.w];i.isUndefined(e)||i.isUndefined(r)||(r.indegree++,e.out.push(n[t.w]))})),function(t){var e=[];function n(t){return function(e){var n,r,s,o;e.merged||(i.isUndefined(e.barycenter)||i.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&(s=0,o=0,(n=t).weight&&(s+=n.barycenter*n.weight,o+=n.weight),(r=e).weight&&(s+=r.barycenter*r.weight,o+=r.weight),n.vs=r.vs.concat(n.vs),n.barycenter=s/o,n.weight=o,n.i=Math.min(r.i,n.i),r.merged=!0)}}function r(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var s=t.pop();e.push(s),i.forEach(s.in.reverse(),n(s)),i.forEach(s.out,r(s))}return i.map(i.filter(e,(function(t){return!t.merged})),(function(t){return i.pick(t,["vs","i","barycenter","weight"])}))}(i.filter(n,(function(t){return!t.indegree})))}},HsnV:function(t,e,n){var i=n("+ooz"),r=n("RNlM"),s=n("E4ao"),o=n("BSqe"),a=n("L6um"),u=n("4/ik");function c(t){var e=this.__data__=new i(t);this.size=e.size}c.prototype.clear=r,c.prototype.delete=s,c.prototype.get=o,c.prototype.has=a,c.prototype.set=u,t.exports=c},I1fX:function(t,e,n){var i=n("6XIJ"),r=/^\s+/;t.exports=function(t){return t?t.slice(0,i(t)+1).replace(r,""):t}},IBsm:function(t,e,n){var i=n("e93E"),r="object"==typeof self&&self&&self.Object===Object&&self,s=i||r||Function("return this")();t.exports=s},IS0S:function(t,e,n){var i=n("vxC8")(n("IBsm"),"Promise");t.exports=i},"JBn+":function(t,e,n){var i=n("hyzI"),r=n("qjF7"),s=n("cEmw");function o(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new i;++e<n;)this.add(t[e])}o.prototype.add=o.prototype.push=r,o.prototype.has=s,t.exports=o},JElN:function(t,e,n){var i=n("a88S");t.exports=function(t,e,n){for(var r=-1,s=t.length;++r<s;){var o=t[r],a=e(o);if(null!=a&&(void 0===u?a==a&&!i(a):n(a,u)))var u=a,c=o}return c}},JNqh:function(t,e,n){var i=n("6UKJ");t.exports=function(t,e){var n=t.__data__;return i(e)?n["string"==typeof e?"string":"hash"]:n.map}},JUZX:function(t,e,n){var i=n("gjtd");t.exports=function(t){var e=function(t){var e={},n=0;return i.forEach(t.children(),(function r(s){var o=n;i.forEach(t.children(s),r),e[s]={low:o,lim:n++}})),e}(t);i.forEach(t.graph().dummyChains,(function(n){for(var i=t.node(n),r=i.edgeObj,s=function(t,e,n,i){var r,s,o=[],a=[],u=Math.min(e[n].low,e[i].low),c=Math.max(e[n].lim,e[i].lim);r=n;do{r=t.parent(r),o.push(r)}while(r&&(e[r].low>u||c>e[r].lim));for(s=r,r=i;(r=t.parent(r))!==s;)a.push(r);return{path:o.concat(a.reverse()),lca:s}}(t,e,r.v,r.w),o=s.path,a=s.lca,u=0,c=o[u],l=!0;n!==r.w;){if(i=t.node(n),l){for(;(c=o[u])!==a&&t.node(c).maxRank<i.rank;)u++;c===a&&(l=!1)}if(!l){for(;u<o.length-1&&t.node(c=o[u+1]).minRank<=i.rank;)u++;c=o[u]}t.setParent(n,c),n=t.successors(n)[0]}}))}},JYAe:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){return function(t,e,n){this.source=t,this.target=e,this.type=n}}();e.PowerEdge=i;var r=function(){function t(t,e,n,i){var r=this;if(this.linkAccessor=n,this.modules=new Array(t),this.roots=[],i)this.initModulesFromGroup(i);else{this.roots.push(new o);for(var a=0;a<t;++a)this.roots[0].add(this.modules[a]=new s(a))}this.R=e.length,e.forEach((function(t){var e=r.modules[n.getSourceIndex(t)],i=r.modules[n.getTargetIndex(t)],s=n.getType(t);e.outgoing.add(s,i),i.incoming.add(s,e)}))}return t.prototype.initModulesFromGroup=function(t){var e=new o;this.roots.push(e);for(var n=0;n<t.leaves.length;++n){var i=t.leaves[n],r=new s(i.id);this.modules[i.id]=r,e.add(r)}if(t.groups)for(var u=0;u<t.groups.length;++u){var c=t.groups[u],l={};for(var h in c)"leaves"!==h&&"groups"!==h&&c.hasOwnProperty(h)&&(l[h]=c[h]);e.add(new s(-1-u,new a,new a,this.initModulesFromGroup(c),l))}return e},t.prototype.merge=function(t,e,n){void 0===n&&(n=0);var i=t.incoming.intersection(e.incoming),r=t.outgoing.intersection(e.outgoing),a=new o;a.add(t),a.add(e);var u=new s(this.modules.length,r,i,a);this.modules.push(u);var c=function(n,i,r){n.forAll((function(n,s){n.forAll((function(n){var o=n[i];o.add(s,u),o.remove(s,t),o.remove(s,e),t[r].remove(s,n),e[r].remove(s,n)}))}))};return c(r,"incoming","outgoing"),c(i,"outgoing","incoming"),this.R-=i.count()+r.count(),this.roots[n].remove(t),this.roots[n].remove(e),this.roots[n].add(u),u},t.prototype.rootMerges=function(t){void 0===t&&(t=0);for(var e=this.roots[t].modules(),n=e.length,i=new Array(n*(n-1)),r=0,s=0,o=n-1;s<o;++s)for(var a=s+1;a<n;++a){var u=e[s],c=e[a];i[r]={id:r,nEdges:this.nEdges(u,c),a:u,b:c},r++}return i},t.prototype.greedyMerge=function(){for(var t=0;t<this.roots.length;++t)if(!(this.roots[t].modules().length<2)){var e=this.rootMerges(t).sort((function(t,e){return t.nEdges==e.nEdges?t.id-e.id:t.nEdges-e.nEdges}))[0];if(!(e.nEdges>=this.R))return this.merge(e.a,e.b,t),!0}},t.prototype.nEdges=function(t,e){var n=t.incoming.intersection(e.incoming),i=t.outgoing.intersection(e.outgoing);return this.R-n.count()-i.count()},t.prototype.getGroupHierarchy=function(t){var e=this,n=[];return function t(e,n,i){e.forAll((function(e){if(e.isLeaf())n.leaves||(n.leaves=[]),n.leaves.push(e.id);else{var r=n;if(e.gid=i.length,!e.isIsland()||e.isPredefined()){if(r={id:e.gid},e.isPredefined())for(var s in e.definition)r[s]=e.definition[s];n.groups||(n.groups=[]),n.groups.push(e.gid),i.push(r)}t(e.children,r,i)}}))}(this.roots[0],{},n),this.allEdges().forEach((function(r){var s=e.modules[r.source],o=e.modules[r.target];t.push(new i(void 0===s.gid?r.source:n[s.gid],void 0===o.gid?r.target:n[o.gid],r.type))})),n},t.prototype.allEdges=function(){var e=[];return t.getEdges(this.roots[0],e),e},t.getEdges=function(e,n){e.forAll((function(e){e.getEdges(n),t.getEdges(e.children,n)}))},t}();e.Configuration=r;var s=function(){function t(t,e,n,i,r){void 0===e&&(e=new a),void 0===n&&(n=new a),void 0===i&&(i=new o),this.id=t,this.outgoing=e,this.incoming=n,this.children=i,this.definition=r}return t.prototype.getEdges=function(t){var e=this;this.outgoing.forAll((function(n,r){n.forAll((function(n){t.push(new i(e.id,n.id,r))}))}))},t.prototype.isLeaf=function(){return 0===this.children.count()},t.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},t.prototype.isPredefined=function(){return void 0!==this.definition},t}();e.Module=s;var o=function(){function t(){this.table={}}return t.prototype.count=function(){return Object.keys(this.table).length},t.prototype.intersection=function(e){var n=new t;return n.table=function(t,e){var n={};for(var i in t)i in e&&(n[i]=t[i]);return n}(this.table,e.table),n},t.prototype.intersectionCount=function(t){return this.intersection(t).count()},t.prototype.contains=function(t){return t in this.table},t.prototype.add=function(t){this.table[t.id]=t},t.prototype.remove=function(t){delete this.table[t.id]},t.prototype.forAll=function(t){for(var e in this.table)t(this.table[e])},t.prototype.modules=function(){var t=[];return this.forAll((function(e){e.isPredefined()||t.push(e)})),t},t}();e.ModuleSet=o;var a=function(){function t(){this.sets={},this.n=0}return t.prototype.count=function(){return this.n},t.prototype.contains=function(t){var e=!1;return this.forAllModules((function(n){e||n.id!=t||(e=!0)})),e},t.prototype.add=function(t,e){(t in this.sets?this.sets[t]:this.sets[t]=new o).add(e),++this.n},t.prototype.remove=function(t,e){var n=this.sets[t];n.remove(e),0===n.count()&&delete this.sets[t],--this.n},t.prototype.forAll=function(t){for(var e in this.sets)t(this.sets[e],Number(e))},t.prototype.forAllModules=function(t){this.forAll((function(e,n){return e.forAll(t)}))},t.prototype.intersection=function(e){var n=new t;return this.forAll((function(t,i){if(i in e.sets){var r=t.intersection(e.sets[i]),s=r.count();s>0&&(n.sets[i]=r,n.n+=s)}})),n},t}();e.LinkSets=a,e.getGroups=function(t,e,n,i){for(var s=new r(t.length,e,n,i);s.greedyMerge(););var o=[],a=s.getGroupHierarchy(o);return o.forEach((function(e){var n=function(n){var i=e[n];"number"==typeof i&&(e[n]=t[i])};n("source"),n("target")})),{groups:a,powerEdges:o}}},JYmt:function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},JcJ6:function(t,e,n){var i=n("Syyo"),r=n("H87J"),s=n("wxYD"),o=n("a88S"),a=i?i.prototype:void 0,u=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(s(e))return r(e,t)+"";if(o(e))return u?u.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},Jl0P:function(t,e,n){var i;try{i={clone:n("zr3P"),constant:n("eN33"),each:n("h4um"),filter:n("+DnP"),has:n("1mr4"),isArray:n("wxYD"),isEmpty:n("MwrP"),isFunction:n("2q8g"),isUndefined:n("CZlo"),keys:n("BlJA"),map:n("mbB6"),reduce:n("veKZ"),size:n("7seP"),transform:n("cZX/"),union:n("aGtI"),values:n("0iyY")}}catch(r){}i||(i=window._),t.exports=i},"K8/D":function(t,e,n){"use strict";var i=n("gjtd");t.exports={longestPath:function(t){var e={};i.forEach(t.sources(),(function n(r){var s=t.node(r);if(i.has(e,r))return s.rank;e[r]=!0;var o=i.min(i.map(t.outEdges(r),(function(e){return n(e.w)-t.edge(e).minlen})));return o!==Number.POSITIVE_INFINITY&&null!=o||(o=0),s.rank=o}))},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},"KAo/":function(t,e,n){var i=n("NYSw"),r=n("2srY"),s=n("NW/2"),o=n("i7nn"),a=n("+tCn"),u=n("0Ss3"),c=n("Ypsa");t.exports=function(t,e){return o(t)&&a(e)?u(c(t),e):function(n){var o=r(n,t);return void 0===o&&o===e?s(n,t):i(e,o,3)}}},KCLV:function(t,e,n){var i=n("Syyo"),r=Object.prototype,s=r.hasOwnProperty,o=r.toString,a=i?i.toStringTag:void 0;t.exports=function(t){var e=s.call(t,a),n=t[a];try{t[a]=void 0;var i=!0}catch(u){}var r=o.call(t);return i&&(e?t[a]=n:delete t[a]),r}},Kkar:function(t,e,n){var i=n("Dhk8"),r=n("/wCD"),s=n("tLQN"),o=Function.prototype.toString,a=Object.prototype.hasOwnProperty,u=o.call(Object);t.exports=function(t){if(!s(t)||"[object Object]"!=i(t))return!1;var e=r(t);if(null===e)return!0;var n=a.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&o.call(n)==u}},L6um:function(t,e){t.exports=function(t){return this.__data__.has(t)}},LL3N:function(t,e){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},"LPC+":function(t,e,n){var i=n("JElN"),r=n("FaiA"),s=n("zWgn");t.exports=function(t){return t&&t.length?i(t,s,r):void 0}},Lm04:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){this.locks={}}return t.prototype.add=function(t,e){this.locks[t]=e},t.prototype.clear=function(){this.locks={}},t.prototype.isEmpty=function(){for(var t in this.locks)return!1;return!0},t.prototype.apply=function(t){for(var e in this.locks)t(Number(e),this.locks[e])},t}();e.Locks=i,e.Descent=function(){function t(t,e,n){void 0===n&&(n=null),this.D=e,this.G=n,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new r,this.project=null,this.x=t,this.k=t.length;var s=this.n=t[0].length;this.H=new Array(this.k),this.g=new Array(this.k),this.Hd=new Array(this.k),this.a=new Array(this.k),this.b=new Array(this.k),this.c=new Array(this.k),this.d=new Array(this.k),this.e=new Array(this.k),this.ia=new Array(this.k),this.ib=new Array(this.k),this.xtmp=new Array(this.k),this.locks=new i,this.minD=Number.MAX_VALUE;for(var o,a=s;a--;)for(o=s;--o>a;){var u=e[a][o];u>0&&u<this.minD&&(this.minD=u)}for(this.minD===Number.MAX_VALUE&&(this.minD=1),a=this.k;a--;){for(this.g[a]=new Array(s),this.H[a]=new Array(s),o=s;o--;)this.H[a][o]=new Array(s);this.Hd[a]=new Array(s),this.a[a]=new Array(s),this.b[a]=new Array(s),this.c[a]=new Array(s),this.d[a]=new Array(s),this.e[a]=new Array(s),this.ia[a]=new Array(s),this.ib[a]=new Array(s),this.xtmp[a]=new Array(s)}}return t.createSquareMatrix=function(t,e){for(var n=new Array(t),i=0;i<t;++i){n[i]=new Array(t);for(var r=0;r<t;++r)n[i][r]=e(i,r)}return n},t.prototype.offsetDir=function(){for(var t=this,e=new Array(this.k),n=0,i=0;i<this.k;++i){var r=e[i]=this.random.getNextBetween(.01,1)-.5;n+=r*r}return n=Math.sqrt(n),e.map((function(e){return e*(t.minD/n)}))},t.prototype.computeDerivatives=function(t){var e=this,n=this.n;if(!(n<1)){for(var i,r=new Array(this.k),s=new Array(this.k),o=new Array(this.k),a=0,u=0;u<n;++u){for(i=0;i<this.k;++i)o[i]=this.g[i][u]=0;for(var c=0;c<n;++c)if(u!==c){for(var l=n;l--;){var h=0;for(i=0;i<this.k;++i){var d=r[i]=t[i][u]-t[i][c];h+=s[i]=d*d}if(h>1e-9)break;var f=this.offsetDir();for(i=0;i<this.k;++i)t[i][c]+=f[i]}var p=Math.sqrt(h),g=this.D[u][c],m=null!=this.G?this.G[u][c]:1;if(m>1&&p>g||!isFinite(g))for(i=0;i<this.k;++i)this.H[i][u][c]=0;else{m>1&&(m=1);var y=g*g,v=2*m*(p-g)/(y*p),_=p*p*p,b=2*-m/(y*_);for(isFinite(v)||console.log(v),i=0;i<this.k;++i)this.g[i][u]+=r[i]*v,o[i]-=this.H[i][u][c]=b*(_+g*(s[i]-h)+p*h)}}for(i=0;i<this.k;++i)a=Math.max(a,this.H[i][u][u]=o[i])}var w=this.snapGridSize/2,x=this.snapGridSize,E=this.snapStrength/(w*w),C=this.numGridSnapNodes;for(u=0;u<C;++u)for(i=0;i<this.k;++i){var S=this.x[i][u],k=S/x,T=k%1,O=k-T;-w<(d=Math.abs(T)<=.5?S-O*x:S>0?S-(O+1)*x:S-(O-1)*x)&&d<=w&&(this.scaleSnapByMaxH?(this.g[i][u]+=a*E*d,this.H[i][u][u]+=a*E):(this.g[i][u]+=E*d,this.H[i][u][u]+=E))}this.locks.isEmpty()||this.locks.apply((function(n,r){for(i=0;i<e.k;++i)e.H[i][n][n]+=a,e.g[i][n]-=a*(r[i]-t[i][n])}))}},t.dotProd=function(t,e){for(var n=0,i=t.length;i--;)n+=t[i]*e[i];return n},t.rightMultiply=function(e,n,i){for(var r=e.length;r--;)i[r]=t.dotProd(e[r],n)},t.prototype.computeStepSize=function(e){for(var n=0,i=0,r=0;r<this.k;++r)n+=t.dotProd(this.g[r],e[r]),t.rightMultiply(this.H[r],e[r],this.Hd[r]),i+=t.dotProd(e[r],this.Hd[r]);return 0!==i&&isFinite(i)?1*n/i:0},t.prototype.reduceStress=function(){this.computeDerivatives(this.x);for(var t=this.computeStepSize(this.g),e=0;e<this.k;++e)this.takeDescentStep(this.x[e],this.g[e],t);return this.computeStress()},t.copy=function(t,e){for(var n=t.length,i=e[0].length,r=0;r<n;++r)for(var s=0;s<i;++s)e[r][s]=t[r][s]},t.prototype.stepAndProject=function(e,n,i,r){t.copy(e,n),this.takeDescentStep(n[0],i[0],r),this.project&&this.project[0](e[0],e[1],n[0]),this.takeDescentStep(n[1],i[1],r),this.project&&this.project[1](n[0],e[1],n[1]);for(var s=2;s<this.k;s++)this.takeDescentStep(n[s],i[s],r)},t.mApply=function(t,e,n){for(var i=t;i-- >0;)for(var r=e;r-- >0;)n(i,r)},t.prototype.matrixApply=function(e){t.mApply(this.k,this.n,e)},t.prototype.computeNextPosition=function(t,e){var n=this;this.computeDerivatives(t);var i=this.computeStepSize(this.g);if(this.stepAndProject(t,e,this.g,i),this.project){this.matrixApply((function(i,r){return n.e[i][r]=t[i][r]-e[i][r]}));var r=this.computeStepSize(this.e);r=Math.max(.2,Math.min(r,1)),this.stepAndProject(t,e,this.e,r)}},t.prototype.run=function(t){for(var e=Number.MAX_VALUE,n=!1;!n&&t-- >0;){var i=this.rungeKutta();n=Math.abs(e/i-1)<this.threshold,e=i}return e},t.prototype.rungeKutta=function(){var e=this;this.computeNextPosition(this.x,this.a),t.mid(this.x,this.a,this.ia),this.computeNextPosition(this.ia,this.b),t.mid(this.x,this.b,this.ib),this.computeNextPosition(this.ib,this.c),this.computeNextPosition(this.c,this.d);var n=0;return this.matrixApply((function(t,i){var r=(e.a[t][i]+2*e.b[t][i]+2*e.c[t][i]+e.d[t][i])/6,s=e.x[t][i]-r;n+=s*s,e.x[t][i]=r})),n},t.mid=function(e,n,i){t.mApply(e.length,e[0].length,(function(t,r){return i[t][r]=e[t][r]+(n[t][r]-e[t][r])/2}))},t.prototype.takeDescentStep=function(t,e,n){for(var i=0;i<this.n;++i)t[i]=t[i]-n*e[i]},t.prototype.computeStress=function(){for(var t=0,e=0,n=this.n-1;e<n;++e)for(var i=e+1,r=this.n;i<r;++i){for(var s=0,o=0;o<this.k;++o){var a=this.x[o][e]-this.x[o][i];s+=a*a}s=Math.sqrt(s);var u=this.D[e][i];if(isFinite(u)){var c=u-s;t+=c*c/(u*u)}}return t},t.zeroDistance=1e-10,t}();var r=function(){function t(t){void 0===t&&(t=1),this.seed=t,this.a=214013,this.c=2531011,this.m=2147483648,this.range=32767}return t.prototype.getNext=function(){return this.seed=(this.seed*this.a+this.c)%this.m,(this.seed>>16)/this.range},t.prototype.getNextBetween=function(t,e){return t+this.getNext()*(e-t)},t}();e.PseudoRandom=r},LmOH:function(t,e){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t}},LtXa:function(t,e,n){var i=n("c72w"),r=n("wC3K");t.exports=function(t,e,n,s){var o=!n;n||(n={});for(var a=-1,u=e.length;++a<u;){var c=e[a],l=s?s(n[c],t[c],c,n,t):void 0;void 0===l&&(l=t[c]),o?r(n,c,l):i(n,c,l)}return n}},LzM7:function(t,e,n){var i=n("6QIk");t.exports=function(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}},M2c1:function(t,e,n){var i=n("Jl0P"),r=n("buMw");function s(t){return i.map(t.nodes(),(function(e){var n=t.node(e),r=t.parent(e),s={v:e};return i.isUndefined(n)||(s.value=n),i.isUndefined(r)||(s.parent=r),s}))}function o(t){return i.map(t.edges(),(function(e){var n=t.edge(e),r={v:e.v,w:e.w};return i.isUndefined(e.name)||(r.name=e.name),i.isUndefined(n)||(r.value=n),r}))}t.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:s(t),edges:o(t)};return i.isUndefined(t.graph())||(e.value=i.clone(t.graph())),e},read:function(t){var e=new r(t.options).setGraph(t.value);return i.each(t.nodes,(function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)})),i.each(t.edges,(function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)})),e}}},MXs6:function(t,e,n){"use strict";var i,r;"undefined"!=typeof window&&window,void 0===(r="function"==typeof(i=function(){if("undefined"==typeof window)return null;var t="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),e=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||function(e){return t.setTimeout(e,20)},n=t.cancelAnimationFrame||t.mozCancelAnimationFrame||t.webkitCancelAnimationFrame||function(e){t.clearTimeout(e)};function i(t,e){var n=Object.prototype.toString.call(t),i="[object Array]"===n||"[object NodeList]"===n||"[object HTMLCollection]"===n||"[object Object]"===n||"undefined"!=typeof jQuery&&t instanceof jQuery||"undefined"!=typeof Elements&&t instanceof Elements,r=0,s=t.length;if(i)for(;r<s;r++)e(t[r]);else e(t)}function r(t){if(!t.getBoundingClientRect)return{width:t.offsetWidth,height:t.offsetHeight};var e=t.getBoundingClientRect();return{width:Math.round(e.width),height:Math.round(e.height)}}function s(t,e){Object.keys(e).forEach((function(n){t.style[n]=e[n]}))}var o=function(t,a){var u=0;function c(){var t,e,n=[];this.add=function(t){n.push(t)},this.call=function(i){for(t=0,e=n.length;t<e;t++)n[t].call(this,i)},this.remove=function(i){var r=[];for(t=0,e=n.length;t<e;t++)n[t]!==i&&r.push(n[t]);n=r},this.length=function(){return n.length}}i(t,(function(t){!function(t,n){if(t)if(t.resizedAttached)t.resizedAttached.add(n);else{t.resizedAttached=new c,t.resizedAttached.add(n),t.resizeSensor=document.createElement("div"),t.resizeSensor.dir="ltr",t.resizeSensor.className="resize-sensor";var i={pointerEvents:"none",position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"},o={position:"absolute",left:"0px",top:"0px",transition:"0s"};s(t.resizeSensor,i);var a=document.createElement("div");a.className="resize-sensor-expand",s(a,i);var l=document.createElement("div");s(l,o),a.appendChild(l);var h=document.createElement("div");h.className="resize-sensor-shrink",s(h,i);var d=document.createElement("div");s(d,o),s(d,{width:"200%",height:"200%"}),h.appendChild(d),t.resizeSensor.appendChild(a),t.resizeSensor.appendChild(h),t.appendChild(t.resizeSensor);var f=window.getComputedStyle(t),p=f?f.getPropertyValue("position"):null;"absolute"!==p&&"relative"!==p&&"fixed"!==p&&"sticky"!==p&&(t.style.position="relative");var g=!1,m=0,y=r(t),v=0,_=0,b=!0;u=0;var w=function(){if(b){if(0===t.offsetWidth&&0===t.offsetHeight)return void(u||(u=e((function(){u=0,w()}))));b=!1}var n,i;i=t.offsetHeight,l.style.width=(n=t.offsetWidth)+10+"px",l.style.height=i+10+"px",a.scrollLeft=n+10,a.scrollTop=i+10,h.scrollLeft=n+10,h.scrollTop=i+10};t.resizeSensor.resetSensor=w;var x=function(){m=0,g&&(v=y.width,_=y.height,t.resizedAttached&&t.resizedAttached.call(y))},E=function(){y=r(t),(g=y.width!==v||y.height!==_)&&!m&&(m=e(x)),w()},C=function(t,e,n){t.attachEvent?t.attachEvent("on"+e,n):t.addEventListener(e,n)};C(a,"scroll",E),C(h,"scroll",E),u=e((function(){u=0,w()}))}}(t,a)})),this.detach=function(e){u||(n(u),u=0),o.detach(t,e)},this.reset=function(){t.resizeSensor.resetSensor()}};if(o.reset=function(t){i(t,(function(t){t.resizeSensor.resetSensor()}))},o.detach=function(t,e){i(t,(function(t){t&&(t.resizedAttached&&"function"==typeof e&&(t.resizedAttached.remove(e),t.resizedAttached.length())||t.resizeSensor&&(t.contains(t.resizeSensor)&&t.removeChild(t.resizeSensor),delete t.resizeSensor,delete t.resizedAttached))}))},"undefined"!=typeof MutationObserver){var a=new MutationObserver((function(t){for(var e in t)if(t.hasOwnProperty(e))for(var n=t[e].addedNodes,i=0;i<n.length;i++)n[i].resizeSensor&&o.reset(n[i])}));document.addEventListener("DOMContentLoaded",(function(t){a.observe(document.body,{childList:!0,subtree:!0})}))}return o})?i.call(e,n,e,t):i)||(t.exports=r)},MwrP:function(t,e,n){var i=n("4uJK"),r=n("kkM+"),s=n("bvyN"),o=n("wxYD"),a=n("9y2L"),u=n("3ajY"),c=n("CbIe"),l=n("Qd2C"),h=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(a(t)&&(o(t)||"string"==typeof t||"function"==typeof t.splice||u(t)||l(t)||s(t)))return!t.length;var e=r(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(c(t))return!i(t).length;for(var n in t)if(h.call(t,n))return!1;return!0}},MzY2:function(t,e,n){var i=n("HsnV"),r=n("amiU"),s=n("UdtX"),o=n("cb1R"),a=n("tQYX"),u=n("zH+d"),c=n("LL3N");t.exports=function t(e,n,l,h,d){e!==n&&s(n,(function(s,u){if(d||(d=new i),a(s))o(e,n,u,l,t,h,d);else{var f=h?h(c(e,u),s,u+"",e,n,d):void 0;void 0===f&&(f=s),r(e,u,f)}}),u)}},NI55:function(t,e,n){"use strict";var i=n("gjtd");t.exports=function(t){var e={},n=i.filter(t.nodes(),(function(e){return!t.children(e).length})),r=i.max(i.map(n,(function(e){return t.node(e).rank}))),s=i.map(i.range(r+1),(function(){return[]})),o=i.sortBy(n,(function(e){return t.node(e).rank}));return i.forEach(o,(function n(r){if(!i.has(e,r)){e[r]=!0;var o=t.node(r);s[o.rank].push(r),i.forEach(t.successors(r),n)}})),s}},"NW/2":function(t,e,n){var i=n("JYmt"),r=n("z+TE");t.exports=function(t,e){return null!=t&&r(t,e,i)}},NYSw:function(t,e,n){var i=n("BqUW"),r=n("tLQN");t.exports=function t(e,n,s,o,a){return e===n||(null==e||null==n||!r(e)&&!r(n)?e!=e&&n!=n:i(e,n,s,o,t,a))}},NbvU:function(t,e,n){var i=n("gEWz"),r=n("SU8Q"),s=n("T6vp"),o=s&&s.isMap,a=o?r(o):i;t.exports=a},Ndl3:function(t,e,n){var i=n("9y2L"),r=n("tLQN");t.exports=function(t){return r(t)&&i(t)}},Nebv:function(t,e,n){"use strict";var i=n("gjtd"),r=n("xxjf"),s=n("xaOS").positionX;t.exports=function(t){(function(t){var e=r.buildLayerMatrix(t),n=t.graph().ranksep,s=0;i.forEach(e,(function(e){var r=i.max(i.map(e,(function(e){return t.node(e).height})));i.forEach(e,(function(e){t.node(e).y=s+r/2})),s+=r+n}))})(t=r.asNonCompoundGraph(t)),i.forEach(s(t),(function(e,n){t.node(n).x=e}))}},O1Sc:function(t,e,n){var i=n("w2Tz"),r=n("y4bl"),s=n("xoyU");t.exports=function(t,e,n){for(var o=-1,a=e.length,u={};++o<a;){var c=e[o],l=i(t,c);n(l,c)&&r(u,s(c,t),l)}return u}},OAVv:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("gbTj"),o=function(){return function(){}}();e.Point=o;var a=function(){return function(t,e,n,i){this.x1=t,this.y1=e,this.x2=n,this.y2=i}}();function u(t,e,n){return(e.x-t.x)*(n.y-t.y)-(n.x-t.x)*(e.y-t.y)}function c(t,e,n){return u(t,e,n)>0}function l(t,e,n){return u(t,e,n)<0}function h(t,e){var n,i,r,s,o=e.length-1;if(l(t,e[1],e[0])&&!c(t,e[o-1],e[0]))return 0;for(n=0,i=o;;){if(i-n==1)return c(t,e[n],e[i])?n:i;if((s=l(t,e[(r=Math.floor((n+i)/2))+1],e[r]))&&!c(t,e[r-1],e[r]))return r;c(t,e[n+1],e[n])?s||c(t,e[n],e[r])?i=r:n=r:s&&l(t,e[n],e[r])?i=r:n=r}}function d(t,e){var n,i,r,s,o=e.length-1;if(c(t,e[o-1],e[0])&&!l(t,e[1],e[0]))return 0;for(n=0,i=o;;){if(i-n==1)return l(t,e[n],e[i])?n:i;if(s=l(t,e[(r=Math.floor((n+i)/2))+1],e[r]),c(t,e[r-1],e[r])&&!s)return r;l(t,e[n+1],e[n])?s?l(t,e[n],e[r])?i=r:n=r:i=r:s?n=r:c(t,e[n],e[r])?i=r:n=r}}function f(t,e,n,i,r,s){var o,a;a=i(t[o=n(e[0],t)],e);for(var u=!1;!u;){for(u=!0;o===t.length-1&&(o=0),!r(e[a],t[o],t[o+1]);)++o;for(;0===a&&(a=e.length-1),!s(t[o],e[a],e[a-1]);)--a,u=!1}return{t1:o,t2:a}}function p(t,e){return f(t,e,h,d,c,l)}e.LineSegment=a,e.PolyPoint=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(o),e.isLeft=u,e.ConvexHull=function(t){var e,n=t.slice(0).sort((function(t,e){return t.x!==e.x?e.x-t.x:e.y-t.y})),i=t.length,r=n[0].x;for(e=1;e<i&&n[e].x===r;++e);var s=e-1,o=[];if(o.push(n[0]),s===i-1)n[s].y!==n[0].y&&o.push(n[s]);else{var a,c=i-1,l=n[i-1].x;for(e=i-2;e>=0&&n[e].x===l;e--);for(a=e+1,e=s;++e<=a;)if(!(u(n[0],n[a],n[e])>=0&&e<a)){for(;o.length>1&&!(u(o[o.length-2],o[o.length-1],n[e])>0);)o.length-=1;0!=e&&o.push(n[e])}c!=a&&o.push(n[c]);var h=o.length;for(e=a;--e>=s;)if(!(u(n[c],n[s],n[e])>=0&&e>s)){for(;o.length>h&&!(u(o[o.length-2],o[o.length-1],n[e])>0);)o.length-=1;0!=e&&o.push(n[e])}}return o},e.clockwiseRadialSweep=function(t,e,n){e.slice(0).sort((function(e,n){return Math.atan2(e.y-t.y,e.x-t.x)-Math.atan2(n.y-t.y,n.x-t.x)})).forEach(n)},e.tangent_PolyPolyC=f,e.LRtangent_PolyPolyC=function(t,e){var n=p(e,t);return{t1:n.t2,t2:n.t1}},e.RLtangent_PolyPolyC=p,e.LLtangent_PolyPolyC=function(t,e){return f(t,e,d,d,l,l)},e.RRtangent_PolyPolyC=function(t,e){return f(t,e,h,h,c,c)};var g=function(){return function(t,e){this.t1=t,this.t2=e}}();e.BiTangent=g;var m=function(){return function(){}}();e.BiTangents=m,e.TVGPoint=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(o);var y=function(){return function(t,e,n,i){this.id=t,this.polyid=e,this.polyvertid=n,this.p=i,i.vv=this}}();e.VisibilityVertex=y;var v=function(){function t(t,e){this.source=t,this.target=e}return t.prototype.length=function(){var t=this.source.p.x-this.target.p.x,e=this.source.p.y-this.target.p.y;return Math.sqrt(t*t+e*e)},t}();function _(t,e){for(var n=[],i=1,r=e.length;i<r;++i){var o=s.Rectangle.lineIntersection(t.x1,t.y1,t.x2,t.y2,e[i-1].x,e[i-1].y,e[i].x,e[i].y);o&&n.push(o)}return n}function b(t,e){for(var n=t.length-1,i=e.length-1,r=new m,s=0;s<n;++s)for(var o=0;o<i;++o){var a=t[0==s?n-1:s-1],c=t[s],l=t[s+1],h=e[0==o?i-1:o-1],d=e[o],f=e[o+1],p=u(a,c,d),y=u(c,h,d),v=u(c,d,f),_=u(h,d,c),b=u(d,a,c),w=u(d,c,l);p>=0&&y>=0&&v<0&&_>=0&&b>=0&&w<0?r.ll=new g(s,o):p<=0&&y<=0&&v>0&&_<=0&&b<=0&&w>0?r.rr=new g(s,o):p<=0&&y>0&&v<=0&&_>=0&&b<0&&w>=0?r.rl=new g(s,o):p>=0&&y<0&&v>=0&&_<=0&&b>0&&w<=0&&(r.lr=new g(s,o))}return r}function w(t,e){return!t.every((function(t){return!function(t,e){for(var n=1,i=e.length;n<i;++n)if(l(e[n-1],e[n],t))return!1;return!0}(t,e)}))}e.VisibilityEdge=v,e.TangentVisibilityGraph=function(){function t(t,e){if(this.P=t,this.V=[],this.E=[],e)this.V=e.V.slice(0),this.E=e.E.slice(0);else{for(var n=t.length,i=0;i<n;i++){for(var r=t[i],s=0;s<r.length;++s){var o=new y(this.V.length,i,s,r[s]);this.V.push(o),s>0&&this.E.push(new v(r[s-1].vv,o))}r.length>1&&this.E.push(new v(r[0].vv,r[r.length-1].vv))}for(i=0;i<n-1;i++){var a=t[i];for(s=i+1;s<n;s++){var u=t[s],c=b(a,u);for(var l in c){var h=c[l];this.addEdgeIfVisible(a[h.t1],u[h.t2],i,s)}}}}}return t.prototype.addEdgeIfVisible=function(t,e,n,i){this.intersectsPolys(new a(t.x,t.y,e.x,e.y),n,i)||this.E.push(new v(t.vv,e.vv))},t.prototype.addPoint=function(t,e){var n,i,r,s=this.P.length;this.V.push(new y(this.V.length,s,0,t));for(var o=0;o<s;++o)if(o!==e){var a=this.P[o],u=(n=t,r=void 0,(r=(i=a).slice(0)).push(i[0]),{rtan:h(n,r),ltan:d(n,r)});this.addEdgeIfVisible(t,a[u.ltan],e,o),this.addEdgeIfVisible(t,a[u.rtan],e,o)}return t.vv},t.prototype.intersectsPolys=function(t,e,n){for(var i=0,r=this.P.length;i<r;++i)if(i!=e&&i!=n&&_(t,this.P[i]).length>0)return!0;return!1},t}(),e.tangents=b,e.polysOverlap=function(t,e){if(w(t,e))return!0;if(w(e,t))return!0;for(var n=1,i=t.length;n<i;++n){var r=t[n],s=t[n-1];if(_(new a(s.x,s.y,r.x,r.y),e).length>0)return!0}return!1}},OBn4:function(t,e,n){var i=n("vxC8")(n("IBsm"),"Set");t.exports=i},OSyp:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("zyX+"),r=n("3vZi");e.gridify=function(t,e,n,i){return t.cola.start(0,0,0,10,!1),function(t,e,n,i){t.forEach((function(t){t.routerNode={name:t.name,bounds:t.bounds.inflate(-n)}})),e.forEach((function(e){e.routerNode={bounds:e.bounds.inflate(-i),children:(void 0!==e.groups?e.groups.map((function(e){return t.length+e.id})):[]).concat(void 0!==e.leaves?e.leaves.map((function(t){return t.index})):[])}}));var s=t.concat(e).map((function(t,e){return t.routerNode.id=e,t.routerNode}));return new r.GridRouter(s,{getChildren:function(t){return t.children},getBounds:function(t){return t.bounds}},n-i)}(t.cola.nodes(),t.cola.groups(),n,i).routeEdges(t.powerGraph.powerEdges,e,(function(t){return t.source.routerNode.id}),(function(t){return t.target.routerNode.id}))},e.powerGraphGridLayout=function(t,e,n){var r;t.nodes.forEach((function(t,e){return t.index=e})),(new i.Layout).avoidOverlaps(!1).nodes(t.nodes).links(t.links).powerGraphGroups((function(t){(r=t).groups.forEach((function(t){return t.padding=n}))}));var s=t.nodes.length,o=[],a=t.nodes.slice(0);return a.forEach((function(t,e){return t.index=e})),r.groups.forEach((function(t){var e=t.index=t.id+s;a.push(t),void 0!==t.leaves&&t.leaves.forEach((function(t){return o.push({source:e,target:t.index})})),void 0!==t.groups&&t.groups.forEach((function(t){return o.push({source:e,target:t.id+s})}))})),r.powerEdges.forEach((function(t){o.push({source:t.source.index,target:t.target.index})})),(new i.Layout).size(e).nodes(a).links(o).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:(new i.Layout).convergenceThreshold(.001).size(e).avoidOverlaps(!0).nodes(t.nodes).links(t.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups((function(t){(r=t).groups.forEach((function(t){t.padding=n}))})).start(50,0,100,0,!1),powerGraph:r}}},OUo6:function(t,e,n){var i=n("c72w"),r=n("WvmI");t.exports=function(t,e){return r(t||[],e||[],i)}},OfKG:function(t,e,n){var i=n("c7Qd");t.exports=function(t,e){return!(null==t||!t.length)&&i(t,e,0)>-1}},OtNC:function(t,e,n){var i=n("TAtK")(Object.keys,Object);t.exports=i},PKEM:function(t,e,n){var i=n("JElN"),r=n("S3pA"),s=n("n+p3");t.exports=function(t,e){return t&&t.length?i(t,r(e,2),s):void 0}},Pa7R:function(t,e,n){var i=n("Jl0P");t.exports=function(t){var e=0,n=[],r={},s=[];return t.nodes().forEach((function(o){i.has(r,o)||function o(a){var u=r[a]={onStack:!0,lowlink:e,index:e++};if(n.push(a),t.successors(a).forEach((function(t){i.has(r,t)?r[t].onStack&&(u.lowlink=Math.min(u.lowlink,r[t].index)):(o(t),u.lowlink=Math.min(u.lowlink,r[t].lowlink))})),u.lowlink===u.index){var c,l=[];do{c=n.pop(),r[c].onStack=!1,l.push(c)}while(a!==c);s.push(l)}}(o)})),s}},Pivv:function(t,e,n){"use strict";var i=n("gjtd"),r=n("1yUy"),s=n("RmLA"),o=n("4DVH"),a=n("xxjf").normalizeRanks,u=n("JUZX"),c=n("xxjf").removeEmptyRanks,l=n("wHMW"),h=n("0gKz"),d=n("+jFT"),f=n("erCh"),p=n("Nebv"),g=n("xxjf"),m=n("vC4J").Graph;t.exports=function(t,e){var n=e&&e.debugTiming?g.time:g.notime;n("layout",(function(){var e=n(" buildLayoutGraph",(function(){return function(t){var e=new m({multigraph:!0,compound:!0}),n=k(t.graph());return e.setGraph(i.merge({},v,S(n,y),i.pick(n,_))),i.forEach(t.nodes(),(function(n){var r=k(t.node(n));e.setNode(n,i.defaults(S(r,b),w)),e.setParent(n,t.parent(n))})),i.forEach(t.edges(),(function(n){var r=k(t.edge(n));e.setEdge(n,i.merge({},E,S(r,x),i.pick(r,C)))})),e}(t)}));n(" runLayout",(function(){!function(t,e){e(" makeSpaceForEdgeLabels",(function(){!function(t){var e=t.graph();e.ranksep/=2,i.forEach(t.edges(),(function(n){var i=t.edge(n);i.minlen*=2,"c"!==i.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?i.width+=i.labeloffset:i.height+=i.labeloffset)}))}(t)})),e(" removeSelfEdges",(function(){!function(t){i.forEach(t.edges(),(function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}}))}(t)})),e(" acyclic",(function(){r.run(t)})),e(" nestingGraph.run",(function(){l.run(t)})),e(" rank",(function(){o(g.asNonCompoundGraph(t))})),e(" injectEdgeLabelProxies",(function(){!function(t){i.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.width&&n.height){var i=t.node(e.v),r=t.node(e.w);g.addDummyNode(t,"edge-proxy",{rank:(r.rank-i.rank)/2+i.rank,e:e},"_ep")}}))}(t)})),e(" removeEmptyRanks",(function(){c(t)})),e(" nestingGraph.cleanup",(function(){l.cleanup(t)})),e(" normalizeRanks",(function(){a(t)})),e(" assignRankMinMax",(function(){!function(t){var e=0;i.forEach(t.nodes(),(function(n){var r=t.node(n);r.borderTop&&(r.minRank=t.node(r.borderTop).rank,r.maxRank=t.node(r.borderBottom).rank,e=i.max(e,r.maxRank))})),t.graph().maxRank=e}(t)})),e(" removeEdgeLabelProxies",(function(){!function(t){i.forEach(t.nodes(),(function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))}))}(t)})),e(" normalize.run",(function(){s.run(t)})),e(" parentDummyChains",(function(){u(t)})),e(" addBorderSegments",(function(){h(t)})),e(" order",(function(){f(t)})),e(" insertSelfEdges",(function(){!function(t){var e=g.buildLayerMatrix(t);i.forEach(e,(function(e){var n=0;i.forEach(e,(function(e,r){var s=t.node(e);s.order=r+n,i.forEach(s.selfEdges,(function(e){g.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:s.rank,order:r+ ++n,e:e.e,label:e.label},"_se")})),delete s.selfEdges}))}))}(t)})),e(" adjustCoordinateSystem",(function(){d.adjust(t)})),e(" position",(function(){p(t)})),e(" positionSelfEdges",(function(){!function(t){i.forEach(t.nodes(),(function(e){var n=t.node(e);if("selfedge"===n.dummy){var i=t.node(n.e.v),r=i.x+i.width/2,s=i.y,o=n.x-r,a=i.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:r+2*o/3,y:s-a},{x:r+5*o/6,y:s-a},{x:r+o,y:s},{x:r+5*o/6,y:s+a},{x:r+2*o/3,y:s+a}],n.label.x=n.x,n.label.y=n.y}}))}(t)})),e(" removeBorderNodes",(function(){!function(t){i.forEach(t.nodes(),(function(e){if(t.children(e).length){var n=t.node(e),r=t.node(n.borderTop),s=t.node(n.borderBottom),o=t.node(i.last(n.borderLeft)),a=t.node(i.last(n.borderRight));n.width=Math.abs(a.x-o.x),n.height=Math.abs(s.y-r.y),n.x=o.x+n.width/2,n.y=r.y+n.height/2}})),i.forEach(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}(t)})),e(" normalize.undo",(function(){s.undo(t)})),e(" fixupEdgeLabelCoords",(function(){!function(t){i.forEach(t.edges(),(function(e){var n=t.edge(e);if(i.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(t)})),e(" undoCoordinateSystem",(function(){d.undo(t)})),e(" translateGraph",(function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,r=Number.POSITIVE_INFINITY,s=0,o=t.graph(),a=o.marginx||0,u=o.marginy||0;function c(t){var i=t.x,o=t.y,a=t.width,u=t.height;e=Math.min(e,i-a/2),n=Math.max(n,i+a/2),r=Math.min(r,o-u/2),s=Math.max(s,o+u/2)}i.forEach(t.nodes(),(function(e){c(t.node(e))})),i.forEach(t.edges(),(function(e){var n=t.edge(e);i.has(n,"x")&&c(n)})),e-=a,r-=u,i.forEach(t.nodes(),(function(n){var i=t.node(n);i.x-=e,i.y-=r})),i.forEach(t.edges(),(function(n){var s=t.edge(n);i.forEach(s.points,(function(t){t.x-=e,t.y-=r})),i.has(s,"x")&&(s.x-=e),i.has(s,"y")&&(s.y-=r)})),o.width=n-e+a,o.height=s-r+u}(t)})),e(" assignNodeIntersects",(function(){!function(t){i.forEach(t.edges(),(function(e){var n,i,r=t.edge(e),s=t.node(e.v),o=t.node(e.w);r.points?(n=r.points[0],i=r.points[r.points.length-1]):(r.points=[],n=o,i=s),r.points.unshift(g.intersectRect(s,n)),r.points.push(g.intersectRect(o,i))}))}(t)})),e(" reversePoints",(function(){!function(t){i.forEach(t.edges(),(function(e){var n=t.edge(e);n.reversed&&n.points.reverse()}))}(t)})),e(" acyclic.undo",(function(){r.undo(t)}))}(e,n)})),n(" updateInputGraph",(function(){!function(t,e){i.forEach(t.nodes(),(function(n){var i=t.node(n),r=e.node(n);i&&(i.x=r.x,i.y=r.y,e.children(n).length&&(i.width=r.width,i.height=r.height))})),i.forEach(t.edges(),(function(n){var r=t.edge(n),s=e.edge(n);r.points=s.points,i.has(s,"x")&&(r.x=s.x,r.y=s.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)}))}))};var y=["nodesep","edgesep","ranksep","marginx","marginy"],v={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},_=["acyclicer","ranker","rankdir","align"],b=["width","height"],w={width:0,height:0},x=["minlen","weight","width","height","labeloffset"],E={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},C=["labelpos"];function S(t,e){return i.mapValues(i.pick(t,e),Number)}function k(t){var e={};return i.forEach(t,(function(t,n){e[n.toLowerCase()]=t})),e}},"Pz+s":function(t,e,n){var i=n("vxC8"),r=function(){try{var t=i(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();t.exports=r},Q4oW:function(t,e,n){var i=n("zKkv"),r=n("bz5b")(i);t.exports=r},QF3D:function(t,e,n){var i=n("vxC8")(n("IBsm"),"DataView");t.exports=i},QMz8:function(t,e,n){var i=n("5pfJ"),r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return i?void 0!==e[t]:r.call(e,t)}},QT01:function(t,e){t.exports=function(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e}},QZ90:function(t,e){var n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",r="[^\\ud800-\\udfff]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",a="(?:"+n+"|"+i+")?",u="[\\ufe0e\\ufe0f]?",c=u+a+"(?:\\u200d(?:"+[r,s,o].join("|")+")"+u+a+")*",l="(?:"+[r+n+"?",n,s,o,"[\\ud800-\\udfff]"].join("|")+")",h=RegExp(i+"(?="+i+")|"+l+c,"g");t.exports=function(t){for(var e=h.lastIndex=0;h.test(t);)++e;return e}},Qd2C:function(t,e,n){var i=n("7/jS"),r=n("SU8Q"),s=n("T6vp"),o=s&&s.isTypedArray,a=o?r(o):i;t.exports=a},QrYh:function(t,e,n){var i=n("LtXa"),r=n("zH+d");t.exports=function(t,e){return t&&i(e,r(e),t)}},Qsja:function(t,e,n){var i=n("gjtd"),r=n("gP9q"),s=n("Hp3j"),o=n("zBPj");t.exports=function t(e,n,a,u){var c=e.children(n),l=e.node(n),h=l?l.borderLeft:void 0,d=l?l.borderRight:void 0,f={};h&&(c=i.filter(c,(function(t){return t!==h&&t!==d})));var p=r(e,c);i.forEach(p,(function(n){if(e.children(n.v).length){var r=t(e,n.v,a,u);f[n.v]=r,i.has(r,"barycenter")&&(o=r,i.isUndefined((s=n).barycenter)?(s.barycenter=o.barycenter,s.weight=o.weight):(s.barycenter=(s.barycenter*s.weight+o.barycenter*o.weight)/(s.weight+o.weight),s.weight+=o.weight))}var s,o}));var g=s(p,a);!function(t,e){i.forEach(t,(function(t){t.vs=i.flatten(t.vs.map((function(t){return e[t]?e[t].vs:t})),!0)}))}(g,f);var m=o(g,u);if(h&&(m.vs=i.flatten([h,m.vs,d],!0),e.predecessors(h).length)){var y=e.node(e.predecessors(h)[0]),v=e.node(e.predecessors(d)[0]);i.has(m,"barycenter")||(m.barycenter=0,m.weight=0),m.barycenter=(m.barycenter*m.weight+y.order+v.order)/(m.weight+2),m.weight+=2}return m}},QwI6:function(t,e,n){var i=n("O1Sc"),r=n("NW/2");t.exports=function(t,e){return i(t,e,(function(e,n){return r(t,n)}))}},R3TX:function(t,e,n){var i=n("zWgn"),r=n("UAs9"),s=n("7Pat");t.exports=function(t,e){return s(r(t,e,i),t+"")}},R3gn:function(t,e,n){var i=n("Syyo"),r=n("mGzy"),s=n("pPzx"),o=n("ZZ+W"),a=n("aURW"),u=n("XlL0"),c=i?i.prototype:void 0,l=c?c.valueOf:void 0;t.exports=function(t,e,n,i,c,h,d){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!h(new r(t),new r(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return s(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var f=a;case"[object Set]":if(f||(f=u),t.size!=e.size&&!(1&i))return!1;var p=d.get(t);if(p)return p==e;i|=2,d.set(t,e);var g=o(f(t),f(e),i,c,h,d);return d.delete(t),g;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},R5u7:function(t,e,n){var i=n("pPzx"),r=n("9y2L"),s=n("pnw1"),o=n("tQYX");t.exports=function(t,e,n){if(!o(n))return!1;var a=typeof e;return!!("number"==a?r(n)&&s(e,n.length):"string"==a&&e in n)&&i(n[e],t)}},RFxK:function(t,e){t.exports=function(t){return function(e,n,i){for(var r=-1,s=Object(e),o=i(e),a=o.length;a--;){var u=o[t?a:++r];if(!1===n(s[u],u,s))break}return e}}},RNlM:function(t,e,n){var i=n("+ooz");t.exports=function(){this.__data__=new i,this.size=0}},RmLA:function(t,e,n){"use strict";var i=n("gjtd"),r=n("xxjf");t.exports={run:function(t){t.graph().dummyChains=[],i.forEach(t.edges(),(function(e){!function(t,e){var n,i,s,o=e.v,a=t.node(o).rank,u=e.w,c=t.node(u).rank,l=e.name,h=t.edge(e),d=h.labelRank;if(c!==a+1){for(t.removeEdge(e),s=0,++a;a<c;++s,++a)h.points=[],n=r.addDummyNode(t,"edge",i={width:0,height:0,edgeLabel:h,edgeObj:e,rank:a},"_d"),a===d&&(i.width=h.width,i.height=h.height,i.dummy="edge-label",i.labelpos=h.labelpos),t.setEdge(o,n,{weight:h.weight},l),0===s&&t.graph().dummyChains.push(n),o=n;t.setEdge(o,u,{weight:h.weight},l)}}(t,e)}))},undo:function(t){i.forEach(t.graph().dummyChains,(function(e){var n,i=t.node(e),r=i.edgeLabel;for(t.setEdge(i.edgeObj,r);i.dummy;)n=t.successors(e)[0],t.removeNode(e),r.points.push({x:i.x,y:i.y}),"edge-label"===i.dummy&&(r.x=i.x,r.y=i.y,r.width=i.width,r.height=i.height),i=t.node(e=n)}))}}},S0iI:function(t,e){t.exports=function(t,e){return t.has(e)}},S3pA:function(t,e,n){var i=n("7/we"),r=n("KAo/"),s=n("zWgn"),o=n("wxYD"),a=n("1EDM");t.exports=function(t){return"function"==typeof t?t:null==t?s:"object"==typeof t?o(t)?r(t[0],t[1]):i(t):a(t)}},SJov:function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t,e){return null!=t&&n.call(t,e)}},SJvO:function(t,e,n){var i=n("H87J");t.exports=function(t,e){return i(e,(function(e){return t[e]}))}},SU8Q:function(t,e){t.exports=function(t){return function(e){return t(e)}}},SoOq:function(t,e,n){var i=n("0+aC"),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,o=i((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(r,(function(t,n,i,r){e.push(i?r.replace(s,"$1"):n||t)})),e}));t.exports=o},Syyo:function(t,e,n){var i=n("IBsm");t.exports=i.Symbol},T6vp:function(t,e,n){(function(t){var i=n("e93E"),r=e&&!e.nodeType&&e,s=r&&"object"==typeof t&&t&&!t.nodeType&&t,o=s&&s.exports===r&&i.process,a=function(){try{return s&&s.require&&s.require("util").types||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=a}).call(this,n("aYSr")(t))},TAtK:function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},Tv3l:function(t,e,n){var i=n("2Fbm"),r=n("VPai"),s=n("+fUG"),o=n("QMz8"),a=n("mUsV");function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}u.prototype.clear=i,u.prototype.delete=r,u.prototype.get=s,u.prototype.has=o,u.prototype.set=a,t.exports=u},Tx5e:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("zyX+"),o=function(t){function e(){var e=t.call(this)||this;e.event=d3.dispatch(s.EventType[s.EventType.start],s.EventType[s.EventType.tick],s.EventType[s.EventType.end]);var n=e;return e.drag=function(){if(!t)var t=d3.behavior.drag().origin(s.Layout.dragOrigin).on("dragstart.d3adaptor",s.Layout.dragStart).on("drag.d3adaptor",(function(t){s.Layout.drag(t,d3.event),n.resume()})).on("dragend.d3adaptor",s.Layout.dragEnd);if(!arguments.length)return t;this.call(t)},e}return r(e,t),e.prototype.trigger=function(t){var e={type:s.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event[e.type](e)},e.prototype.kick=function(){var e=this;d3.timer((function(){return t.prototype.tick.call(e)}))},e.prototype.on=function(t,e){return this.event.on("string"==typeof t?t:s.EventType[t],e),this},e}(s.Layout);e.D3StyleLayoutAdaptor=o,e.d3adaptor=function(){return new o}},UAs9:function(t,e,n){var i=n("zaNA"),r=Math.max;t.exports=function(t,e,n){return e=r(void 0===e?t.length-1:e,0),function(){for(var s=arguments,o=-1,a=r(s.length-e,0),u=Array(a);++o<a;)u[o]=s[e+o];o=-1;for(var c=Array(e+1);++o<e;)c[o]=s[o];return c[e]=n(u),i(t,this,c)}}},UdtX:function(t,e,n){var i=n("RFxK")();t.exports=i},V9bN:function(t,e,n){var i=n("Jl0P"),r=n("c9kG");t.exports=function(t,e,n,i){return function(t,e,n,i){var s,o,a={},u=new r,c=function(t){var e=t.v!==s?t.v:t.w,i=a[e],r=n(t),c=o.distance+r;if(r<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+r);c<i.distance&&(i.distance=c,i.predecessor=s,u.decrease(e,c))};for(t.nodes().forEach((function(t){var n=t===e?0:Number.POSITIVE_INFINITY;a[t]={distance:n},u.add(t,n)}));u.size()>0&&(s=u.removeMin(),(o=a[s]).distance!==Number.POSITIVE_INFINITY);)i(s).forEach(c);return a}(t,String(e),n||s,i||function(e){return t.outEdges(e)})};var s=i.constant(1)},VPai:function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},VQMV:function(t,e){t.exports="0.8.5"},VhCv:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t){this.elem=t,this.subheaps=[]}return t.prototype.toString=function(t){for(var e="",n=!1,i=0;i<this.subheaps.length;++i){var r=this.subheaps[i];r.elem?(n&&(e+=","),e+=r.toString(t),n=!0):n=!1}return""!==e&&(e="("+e+")"),(this.elem?t(this.elem):"")+e},t.prototype.forEach=function(t){this.empty()||(t(this.elem,this),this.subheaps.forEach((function(e){return e.forEach(t)})))},t.prototype.count=function(){return this.empty()?0:1+this.subheaps.reduce((function(t,e){return t+e.count()}),0)},t.prototype.min=function(){return this.elem},t.prototype.empty=function(){return null==this.elem},t.prototype.contains=function(t){if(this===t)return!0;for(var e=0;e<this.subheaps.length;e++)if(this.subheaps[e].contains(t))return!0;return!1},t.prototype.isHeap=function(t){var e=this;return this.subheaps.every((function(n){return t(e.elem,n.elem)&&n.isHeap(t)}))},t.prototype.insert=function(e,n){return this.merge(new t(e),n)},t.prototype.merge=function(t,e){return this.empty()?t:t.empty()?this:e(this.elem,t.elem)?(this.subheaps.push(t),this):(t.subheaps.push(this),t)},t.prototype.removeMin=function(t){return this.empty()?null:this.mergePairs(t)},t.prototype.mergePairs=function(e){if(0==this.subheaps.length)return new t(null);if(1==this.subheaps.length)return this.subheaps[0];var n=this.subheaps.pop().merge(this.subheaps.pop(),e),i=this.mergePairs(e);return n.merge(i,e)},t.prototype.decreaseKey=function(e,n,i,r){var s=e.removeMin(r);e.elem=s.elem,e.subheaps=s.subheaps,null!==i&&null!==s.elem&&i(e.elem,e);var o=new t(n);return null!==i&&i(n,o),this.merge(o,r)},t}();e.PairingHeap=i,e.PriorityQueue=function(){function t(t){this.lessThan=t}return t.prototype.top=function(){return this.empty()?null:this.root.elem},t.prototype.push=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r,s=0;r=e[s];++s)t=new i(r),this.root=this.empty()?t:this.root.merge(t,this.lessThan);return t},t.prototype.empty=function(){return!this.root||!this.root.elem},t.prototype.isHeap=function(){return this.root.isHeap(this.lessThan)},t.prototype.forEach=function(t){this.root.forEach(t)},t.prototype.pop=function(){if(this.empty())return null;var t=this.root.min();return this.root=this.root.removeMin(this.lessThan),t},t.prototype.reduceKey=function(t,e,n){void 0===n&&(n=null),this.root=this.root.decreaseKey(t,e,n,this.lessThan)},t.prototype.toString=function(t){return this.root.toString(t)},t.prototype.count=function(){return this.root.count()},t}()},W0vE:function(t,e){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length,r=0,s=[];++n<i;){var o=t[n];e(o,n,t)&&(s[r++]=o)}return s}},W8B9:function(t,e,n){var i=n("Jl0P"),r=n("Pa7R");t.exports=function(t){return i.filter(r(t),(function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])}))}},WHWN:function(t,e,n){var i=n("R3TX"),r=n("pPzx"),s=n("R5u7"),o=n("zH+d"),a=Object.prototype,u=a.hasOwnProperty,c=i((function(t,e){t=Object(t);var n=-1,i=e.length,c=i>2?e[2]:void 0;for(c&&s(e[0],e[1],c)&&(i=1);++n<i;)for(var l=e[n],h=o(l),d=-1,f=h.length;++d<f;){var p=h[d],g=t[p];(void 0===g||r(g,a[p])&&!u.call(t,p))&&(t[p]=l[p])}return t}));t.exports=c},"WcC/":function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("zyX+");e.D3StyleLayoutAdaptor=function(t){function e(e){var n=t.call(this)||this;n.d3Context=e,n.event=e.dispatch(s.EventType[s.EventType.start],s.EventType[s.EventType.tick],s.EventType[s.EventType.end]);var i=n;return n.drag=function(){if(!t)var t=e.drag().subject(s.Layout.dragOrigin).on("start.d3adaptor",s.Layout.dragStart).on("drag.d3adaptor",(function(t){s.Layout.drag(t,e.event),i.resume()})).on("end.d3adaptor",s.Layout.dragEnd);if(!arguments.length)return t;arguments[0].call(t)},n}return r(e,t),e.prototype.trigger=function(t){var e={type:s.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event.call(e.type,e)},e.prototype.kick=function(){var e=this,n=this.d3Context.timer((function(){return t.prototype.tick.call(e)&&n.stop()}))},e.prototype.on=function(t,e){return this.event.on("string"==typeof t?t:s.EventType[t],e),this},e}(s.Layout)},WvmI:function(t,e){t.exports=function(t,e,n){for(var i=-1,r=t.length,s=e.length,o={};++i<r;)n(o,t[i],i<s?e[i]:void 0);return o}},X4R2:function(t,e){t.exports=function(){return[]}},Xidw:function(t,e,n){var i=n("y/9h"),r=n("/wCD"),s=n("70Le"),o=n("X4R2");t.exports=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)i(e,s(t)),t=r(t);return e}:o},XlL0:function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},YZb2:function(t,e,n){"use strict";var i=n("gjtd");function r(t,e,n){for(var r=i.zipObject(n,i.map(n,(function(t,e){return e}))),s=i.flatten(i.map(e,(function(e){return i.sortBy(i.map(t.outEdges(e),(function(e){return{pos:r[e.w],weight:t.edge(e).weight}})),"pos")})),!0),o=1;o<n.length;)o<<=1;var a=2*o-1;o-=1;var u=i.map(new Array(a),(function(){return 0})),c=0;return i.forEach(s.forEach((function(t){var e=t.pos+o;u[e]+=t.weight;for(var n=0;e>0;)e%2&&(n+=u[e+1]),u[e=e-1>>1]+=t.weight;c+=t.weight*n}))),c}t.exports=function(t,e){for(var n=0,i=1;i<e.length;++i)n+=r(t,e[i-1],e[i]);return n}},YlUH:function(t,e,n){var i=n("1qSF");t.exports={Graph:i.Graph,json:n("M2c1"),alg:n("ZCKZ"),version:i.version}},YpBQ:function(t,e,n){var i=n("y/9h"),r=n("oCTG");t.exports=function t(e,n,s,o,a){var u=-1,c=e.length;for(s||(s=r),a||(a=[]);++u<c;){var l=e[u];n>0&&s(l)?n>1?t(l,n-1,s,o,a):i(a,l):o||(a[a.length]=l)}return a}},Ypsa:function(t,e,n){var i=n("a88S");t.exports=function(t){if("string"==typeof t||i(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},Z3AG:function(t,e,n){var i=n("JElN"),r=n("n+p3"),s=n("zWgn");t.exports=function(t){return t&&t.length?i(t,s,r):void 0}},ZCKZ:function(t,e,n){t.exports={components:n("qC43"),dijkstra:n("V9bN"),dijkstraAll:n("a271"),findCycles:n("W8B9"),floydWarshall:n("hq5n"),isAcyclic:n("+WAL"),postorder:n("21zJ"),preorder:n("j+bJ"),prim:n("xGdc"),tarjan:n("Pa7R"),topsort:n("0Jj1")}},ZVKf:function(t,e,n){var i=n("UdtX"),r=n("D49j"),s=n("zH+d");t.exports=function(t,e){return null==t?t:i(t,r(e),s)}},"ZZ+W":function(t,e,n){var i=n("JBn+"),r=n("myUI"),s=n("S0iI");t.exports=function(t,e,n,o,a,u){var c=1&n,l=t.length,h=e.length;if(l!=h&&!(c&&h>l))return!1;var d=u.get(t),f=u.get(e);if(d&&f)return d==e&&f==t;var p=-1,g=!0,m=2&n?new i:void 0;for(u.set(t,e),u.set(e,t);++p<l;){var y=t[p],v=e[p];if(o)var _=c?o(v,y,p,e,t,u):o(y,v,p,t,e,u);if(void 0!==_){if(_)continue;g=!1;break}if(m){if(!r(e,(function(t,e){if(!s(m,e)&&(y===t||a(y,t,n,o,u)))return m.push(e)}))){g=!1;break}}else if(y!==v&&!a(y,v,n,o,u)){g=!1;break}}return u.delete(t),u.delete(e),g}},ZjRn:function(t,e,n){var i=n("HsnV"),r=n("NYSw");t.exports=function(t,e,n,s){var o=n.length,a=o,u=!s;if(null==t)return!a;for(t=Object(t);o--;){var c=n[o];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++o<a;){var l=(c=n[o])[0],h=t[l],d=c[1];if(u&&c[2]){if(void 0===h&&!(l in t))return!1}else{var f=new i;if(s)var p=s(h,d,l,t,e,f);if(!(void 0===p?r(d,h,3,s,f):p))return!1}}return!0}},a271:function(t,e,n){var i=n("V9bN"),r=n("Jl0P");t.exports=function(t,e,n){return r.transform(t.nodes(),(function(r,s){r[s]=i(t,s,e,n)}),{})}},a88S:function(t,e,n){var i=n("Dhk8"),r=n("tLQN");t.exports=function(t){return"symbol"==typeof t||r(t)&&"[object Symbol]"==i(t)}},aGtI:function(t,e,n){var i=n("YpBQ"),r=n("R3TX"),s=n("s+R0"),o=n("Ndl3"),a=r((function(t){return s(i(t,1,o,!0))}));t.exports=a},aURW:function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n}},aYSr:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},aj3f:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("VhCv"),r=function(){return function(t,e){this.id=t,this.distance=e}}(),s=function(){return function(t){this.id=t,this.neighbours=[]}}(),o=function(){return function(t,e,n){this.node=t,this.prev=e,this.d=n}}();e.Calculator=function(){function t(t,e,n,i,o){this.n=t,this.es=e,this.neighbours=new Array(this.n);for(var a=this.n;a--;)this.neighbours[a]=new s(a);for(a=this.es.length;a--;){var u=this.es[a],c=n(u),l=i(u),h=o(u);this.neighbours[c].neighbours.push(new r(l,h)),this.neighbours[l].neighbours.push(new r(c,h))}}return t.prototype.DistanceMatrix=function(){for(var t=new Array(this.n),e=0;e<this.n;++e)t[e]=this.dijkstraNeighbours(e);return t},t.prototype.DistancesFromNode=function(t){return this.dijkstraNeighbours(t)},t.prototype.PathFromNodeToNode=function(t,e){return this.dijkstraNeighbours(t,e)},t.prototype.PathFromNodeToNodeWithPrevCost=function(t,e,n){var r=new i.PriorityQueue((function(t,e){return t.d<=e.d})),s=this.neighbours[t],a=new o(s,null,0),u={};for(r.push(a);!r.empty()&&(s=(a=r.pop()).node).id!==e;)for(var c=s.neighbours.length;c--;){var l=s.neighbours[c],h=this.neighbours[l.id];if(!a.prev||h.id!==a.prev.node.id){var d=h.id+","+s.id;if(!(d in u&&u[d]<=a.d)){var f=a.prev?n(a.prev.node.id,s.id,h.id):0,p=a.d+l.distance+f;u[d]=p,r.push(new o(h,a,p))}}}for(var g=[];a.prev;)g.push((a=a.prev).node.id);return g},t.prototype.dijkstraNeighbours=function(t,e){void 0===e&&(e=-1);for(var n=new i.PriorityQueue((function(t,e){return t.d<=e.d})),r=this.neighbours.length,s=new Array(r);r--;){var o=this.neighbours[r];o.d=r===t?0:Number.POSITIVE_INFINITY,o.q=n.push(o)}for(;!n.empty();){var a=n.pop();if(s[a.id]=a.d,a.id===e){for(var u=[],c=a;void 0!==c.prev;)u.push(c.prev.id),c=c.prev;return u}for(r=a.neighbours.length;r--;){var l=a.neighbours[r],h=(c=this.neighbours[l.id],a.d+l.distance);a.d!==Number.MAX_VALUE&&c.d>h&&(c.d=h,c.prev=a,n.reduceKey(c.q,c,(function(t,e){return t.q=e})))}}return s},t}()},amiU:function(t,e,n){var i=n("wC3K"),r=n("pPzx");t.exports=function(t,e,n){(void 0!==n&&!r(t[e],n)||void 0===n&&!(e in t))&&i(t,e,n)}},bFjY:function(t,e,n){var i=n("Q4oW"),r=n("9y2L");t.exports=function(t,e){var n=-1,s=r(t)?Array(t.length):[];return i(t,(function(t,i,r){s[++n]=e(t,i,r)})),s}},bJjD:function(t,e,n){"use strict";function i(t,e){var n={};for(var i in t)n[i]={};for(var i in e)n[i]={};return Object.keys(n).length}function r(t,e){var n=0;for(var i in t)void 0!==e[i]&&++n;return n}function s(t,e,n,i){var r=function(t,e){var n={},i=function(t,e){void 0===n[t]&&(n[t]={}),n[t][e]={}};return t.forEach((function(t){var n=e.getSourceIndex(t),r=e.getTargetIndex(t);i(n,r),i(r,n)})),n}(t,i);t.forEach((function(t){var s=r[i.getSourceIndex(t)],o=r[i.getTargetIndex(t)];i.setLength(t,1+e*n(s,o))}))}function o(t,e,n){var i=[],r=0,s=[],o=[];function a(t){t.index=t.lowlink=r++,s.push(t),t.onStack=!0;for(var e=0,n=t.out;e<n.length;e++){var i=n[e];void 0===i.index?(a(i),t.lowlink=Math.min(t.lowlink,i.lowlink)):i.onStack&&(t.lowlink=Math.min(t.lowlink,i.index))}if(t.lowlink===t.index){for(var u=[];s.length&&((i=s.pop()).onStack=!1,u.push(i),i!==t););o.push(u.map((function(t){return t.id})))}}for(var u=0;u<t;u++)i.push({id:u,out:[]});for(var c=0,l=e;c<l.length;c++){var h=l[c],d=i[n.getSourceIndex(h)],f=i[n.getTargetIndex(h)];d.out.push(f)}for(var p=0,g=i;p<g.length;p++){var m=g[p];void 0===m.index&&a(m)}return o}Object.defineProperty(e,"__esModule",{value:!0}),e.symmetricDiffLinkLengths=function(t,e,n){void 0===n&&(n=1),s(t,n,(function(t,e){return Math.sqrt(i(t,e)-r(t,e))}),e)},e.jaccardLinkLengths=function(t,e,n){void 0===n&&(n=1),s(t,n,(function(t,e){return Math.min(Object.keys(t).length,Object.keys(e).length)<1.1?0:r(t,e)/i(t,e)}),e)},e.generateDirectedEdgeConstraints=function(t,e,n,i){var r=o(t,e,i),s={};r.forEach((function(t,e){return t.forEach((function(t){return s[t]=e}))}));var a=[];return e.forEach((function(t){var e=i.getSourceIndex(t),r=i.getTargetIndex(t);s[e]!==s[r]&&a.push({axis:n,left:e,right:r,gap:i.getMinSeparation(t)})})),a},e.stronglyConnectedComponents=o},bVbG:function(t,e,n){var i=n("Syyo"),r=i?i.prototype:void 0,s=r?r.valueOf:void 0;t.exports=function(t){return s?Object(s.call(t)):{}}},buMw:function(t,e,n){"use strict";var i=n("Jl0P");t.exports=s;var r="\0";function s(t){this._isDirected=!i.has(t,"directed")||t.directed,this._isMultigraph=!!i.has(t,"multigraph")&&t.multigraph,this._isCompound=!!i.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=i.constant(void 0),this._defaultEdgeLabelFn=i.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function o(t,e){t[e]?t[e]++:t[e]=1}function a(t,e){--t[e]||delete t[e]}function u(t,e,n,r){var s=""+e,o=""+n;if(!t&&s>o){var a=s;s=o,o=a}return s+"\x01"+o+"\x01"+(i.isUndefined(r)?"\0":r)}function c(t,e,n,i){var r=""+e,s=""+n;if(!t&&r>s){var o=r;r=s,s=o}var a={v:r,w:s};return i&&(a.name=i),a}function l(t,e){return u(t,e.v,e.w,e.name)}s.prototype._nodeCount=0,s.prototype._edgeCount=0,s.prototype.isDirected=function(){return this._isDirected},s.prototype.isMultigraph=function(){return this._isMultigraph},s.prototype.isCompound=function(){return this._isCompound},s.prototype.setGraph=function(t){return this._label=t,this},s.prototype.graph=function(){return this._label},s.prototype.setDefaultNodeLabel=function(t){return i.isFunction(t)||(t=i.constant(t)),this._defaultNodeLabelFn=t,this},s.prototype.nodeCount=function(){return this._nodeCount},s.prototype.nodes=function(){return i.keys(this._nodes)},s.prototype.sources=function(){var t=this;return i.filter(this.nodes(),(function(e){return i.isEmpty(t._in[e])}))},s.prototype.sinks=function(){var t=this;return i.filter(this.nodes(),(function(e){return i.isEmpty(t._out[e])}))},s.prototype.setNodes=function(t,e){var n=arguments,r=this;return i.each(t,(function(t){n.length>1?r.setNode(t,e):r.setNode(t)})),this},s.prototype.setNode=function(t,e){return i.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=r,this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},s.prototype.node=function(t){return this._nodes[t]},s.prototype.hasNode=function(t){return i.has(this._nodes,t)},s.prototype.removeNode=function(t){var e=this;if(i.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],i.each(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),i.each(i.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],i.each(i.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},s.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(i.isUndefined(e))e=r;else{for(var n=e+="";!i.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},s.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},s.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if(e!==r)return e}},s.prototype.children=function(t){if(i.isUndefined(t)&&(t=r),this._isCompound){var e=this._children[t];if(e)return i.keys(e)}else{if(t===r)return this.nodes();if(this.hasNode(t))return[]}},s.prototype.predecessors=function(t){var e=this._preds[t];if(e)return i.keys(e)},s.prototype.successors=function(t){var e=this._sucs[t];if(e)return i.keys(e)},s.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return i.union(e,this.successors(t))},s.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},s.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;i.each(this._nodes,(function(n,i){t(i)&&e.setNode(i,n)})),i.each(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))}));var r={};return this._isCompound&&i.each(e.nodes(),(function(t){e.setParent(t,function t(i){var s=n.parent(i);return void 0===s||e.hasNode(s)?(r[i]=s,s):s in r?r[s]:t(s)}(t))})),e},s.prototype.setDefaultEdgeLabel=function(t){return i.isFunction(t)||(t=i.constant(t)),this._defaultEdgeLabelFn=t,this},s.prototype.edgeCount=function(){return this._edgeCount},s.prototype.edges=function(){return i.values(this._edgeObjs)},s.prototype.setPath=function(t,e){var n=this,r=arguments;return i.reduce(t,(function(t,i){return r.length>1?n.setEdge(t,i,e):n.setEdge(t,i),i})),this},s.prototype.setEdge=function(){var t,e,n,r,s=!1,a=arguments[0];"object"==typeof a&&null!==a&&"v"in a?(t=a.v,e=a.w,n=a.name,2===arguments.length&&(r=arguments[1],s=!0)):(t=a,e=arguments[1],n=arguments[3],arguments.length>2&&(r=arguments[2],s=!0)),t=""+t,e=""+e,i.isUndefined(n)||(n=""+n);var l=u(this._isDirected,t,e,n);if(i.has(this._edgeLabels,l))return s&&(this._edgeLabels[l]=r),this;if(!i.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[l]=s?r:this._defaultEdgeLabelFn(t,e,n);var h=c(this._isDirected,t,e,n);return t=h.v,e=h.w,Object.freeze(h),this._edgeObjs[l]=h,o(this._preds[e],t),o(this._sucs[t],e),this._in[e][l]=h,this._out[t][l]=h,this._edgeCount++,this},s.prototype.edge=function(t,e,n){var i=1===arguments.length?l(this._isDirected,arguments[0]):u(this._isDirected,t,e,n);return this._edgeLabels[i]},s.prototype.hasEdge=function(t,e,n){var r=1===arguments.length?l(this._isDirected,arguments[0]):u(this._isDirected,t,e,n);return i.has(this._edgeLabels,r)},s.prototype.removeEdge=function(t,e,n){var i=1===arguments.length?l(this._isDirected,arguments[0]):u(this._isDirected,t,e,n),r=this._edgeObjs[i];return r&&(t=r.v,e=r.w,delete this._edgeLabels[i],delete this._edgeObjs[i],a(this._preds[e],t),a(this._sucs[t],e),delete this._in[e][i],delete this._out[t][i],this._edgeCount--),this},s.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var r=i.values(n);return e?i.filter(r,(function(t){return t.v===e})):r}},s.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var r=i.values(n);return e?i.filter(r,(function(t){return t.w===e})):r}},s.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},bvyN:function(t,e,n){var i=n("/30y"),r=n("tLQN"),s=Object.prototype,o=s.hasOwnProperty,a=s.propertyIsEnumerable,u=i(function(){return arguments}())?i:function(t){return r(t)&&o.call(t,"callee")&&!a.call(t,"callee")};t.exports=u},bz5b:function(t,e,n){var i=n("9y2L");t.exports=function(t,e){return function(n,r){if(null==n)return n;if(!i(n))return t(n,r);for(var s=n.length,o=e?s:-1,a=Object(n);(e?o--:++o<s)&&!1!==r(a[o],o,a););return n}}},c18h:function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(e){}try{return t+""}catch(e){}}return""}},c2re:function(t,e,n){var i=n("kn3Q");t.exports=function(t){return i(t,5)}},c72w:function(t,e,n){var i=n("wC3K"),r=n("pPzx"),s=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var o=t[e];s.call(t,e)&&r(o,n)&&(void 0!==n||e in t)||i(t,e,n)}},c7Qd:function(t,e,n){var i=n("DuXo"),r=n("z9Jh"),s=n("n1QJ");t.exports=function(t,e,n){return e==e?s(t,e,n):i(t,r,n)}},c9kG:function(t,e,n){var i=n("Jl0P");function r(){this._arr=[],this._keyIndices={}}t.exports=r,r.prototype.size=function(){return this._arr.length},r.prototype.keys=function(){return this._arr.map((function(t){return t.key}))},r.prototype.has=function(t){return i.has(this._keyIndices,t)},r.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},r.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},r.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!i.has(n,t)){var r=this._arr,s=r.length;return n[t]=s,r.push({key:t,priority:e}),this._decrease(s),!0}return!1},r.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},r.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},r.prototype._heapify=function(t){var e=this._arr,n=2*t,i=n+1,r=t;n<e.length&&(r=e[n].priority<e[r].priority?n:r,i<e.length&&(r=e[i].priority<e[r].priority?i:r),r!==t&&(this._swap(t,r),this._heapify(r)))},r.prototype._decrease=function(t){for(var e,n=this._arr,i=n[t].priority;0!==t&&!(n[e=t>>1].priority<i);)this._swap(t,e),t=e},r.prototype._swap=function(t,e){var n=this._arr,i=this._keyIndices,r=n[t],s=n[e];n[t]=s,n[e]=r,i[s.key]=t,i[r.key]=e}},cEmw:function(t,e){t.exports=function(t){return this.__data__.has(t)}},cH1A:function(t,e,n){var i=n("1xil"),r=n("UAs9"),s=n("7Pat");t.exports=function(t){return s(r(t,void 0,i),t+"")}},cPMt:function(t,e){t.exports=function(t,e,n,i){var r=-1,s=null==t?0:t.length;for(i&&s&&(n=t[++r]);++r<s;)n=e(n,t[r],r,t);return n}},"cZX/":function(t,e,n){var i=n("LmOH"),r=n("vGGS"),s=n("zKkv"),o=n("S3pA"),a=n("/wCD"),u=n("wxYD"),c=n("3ajY"),l=n("2q8g"),h=n("tQYX"),d=n("Qd2C");t.exports=function(t,e,n){var f=u(t),p=f||c(t)||d(t);if(e=o(e,4),null==n){var g=t&&t.constructor;n=p?f?new g:[]:h(t)&&l(g)?r(a(t)):{}}return(p?i:s)(t,(function(t,i,r){return e(n,t,i,r)})),n}},cb1R:function(t,e,n){var i=n("amiU"),r=n("Grae"),s=n("6Rtw"),o=n("QT01"),a=n("sD1O"),u=n("bvyN"),c=n("wxYD"),l=n("Ndl3"),h=n("3ajY"),d=n("2q8g"),f=n("tQYX"),p=n("Kkar"),g=n("Qd2C"),m=n("LL3N"),y=n("4ScB");t.exports=function(t,e,n,v,_,b,w){var x=m(t,n),E=m(e,n),C=w.get(E);if(C)i(t,n,C);else{var S=b?b(x,E,n+"",t,e,w):void 0,k=void 0===S;if(k){var T=c(E),O=!T&&h(E),A=!T&&!O&&g(E);S=E,T||O||A?c(x)?S=x:l(x)?S=o(x):O?(k=!1,S=r(E,!0)):A?(k=!1,S=s(E,!0)):S=[]:p(E)||u(E)?(S=x,u(x)?S=y(x):f(x)&&!d(x)||(S=a(E))):k=!1}k&&(w.set(E,S),_(S,E,v,b,w),w.delete(E)),i(t,n,S)}}},d0UJ:function(t,e,n){var i=n("JNqh");t.exports=function(t){var e=i(this,t).delete(t);return this.size-=e?1:0,e}},"dnX/":function(t,e,n){var i=n("a88S");t.exports=function(t,e){if(t!==e){var n=void 0!==t,r=null===t,s=t==t,o=i(t),a=void 0!==e,u=null===e,c=e==e,l=i(e);if(!u&&!l&&!o&&t>e||o&&a&&c&&!u&&!l||r&&a&&c||!n&&c||!s)return 1;if(!r&&!o&&!l&&t<e||l&&n&&s&&!r&&!o||u&&n&&s||!a&&s||!c)return-1}return 0}},dw5g:function(t,e,n){var i=n("JcJ6");t.exports=function(t){return null==t?"":i(t)}},e63W:function(t,e,n){var i=n("JNqh");t.exports=function(t,e){var n=i(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}},e93E:function(t,e){var n="object"==typeof global&&global&&global.Object===Object&&global;t.exports=n},eErA:function(t,e,n){"use strict";function i(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),i(n("/oF6")),i(n("osTN")),i(n("Lm04")),i(n("OAVv")),i(n("3vZi")),i(n("BpeN")),i(n("zyX+")),i(n("4CxS")),i(n("bJjD")),i(n("JYAe")),i(n("VhCv")),i(n("vpOK")),i(n("gbTj")),i(n("aj3f")),i(n("keXZ")),i(n("OSyp"))},eHpp:function(t,e,n){var i=n("H87J"),r=n("w2Tz"),s=n("S3pA"),o=n("bFjY"),a=n("4jPf"),u=n("SU8Q"),c=n("5WP5"),l=n("zWgn"),h=n("wxYD");t.exports=function(t,e,n){e=e.length?i(e,(function(t){return h(t)?function(e){return r(e,1===t.length?t[0]:t)}:t})):[l];var d=-1;e=i(e,u(s));var f=o(t,(function(t,n,r){return{criteria:i(e,(function(e){return e(t)})),index:++d,value:t}}));return a(f,(function(t,e){return c(t,e,n)}))}},eN33:function(t,e){t.exports=function(t){return function(){return t}}},eask:function(t,e,n){var i=n("JNqh");t.exports=function(t){return i(this,t).get(t)}},erCh:function(t,e,n){"use strict";var i=n("gjtd"),r=n("NI55"),s=n("YZb2"),o=n("Qsja"),a=n("D5rW"),u=n("DzXQ"),c=n("vC4J").Graph,l=n("xxjf");function h(t,e,n){return i.map(e,(function(e){return a(t,e,n)}))}function d(t,e){var n=new c;i.forEach(t,(function(t){var r=t.graph().root,s=o(t,r,n,e);i.forEach(s.vs,(function(e,n){t.node(e).order=n})),u(t,n,s.vs)}))}function f(t,e){i.forEach(e,(function(e){i.forEach(e,(function(e,n){t.node(e).order=n}))}))}t.exports=function(t){var e=l.maxRank(t),n=h(t,i.range(1,e+1),"inEdges"),o=h(t,i.range(e-1,-1,-1),"outEdges"),a=r(t);f(t,a);for(var u,c=Number.POSITIVE_INFINITY,p=0,g=0;g<4;++p,++g){d(p%2?n:o,p%4>=2),a=l.buildLayerMatrix(t);var m=s(t,a);m<c&&(g=0,u=i.cloneDeep(a),c=m)}f(t,u)}},fWyh:function(t,e,n){var i=n("nvU9");t.exports=function(t){return t?1/0===(t=i(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},fd5j:function(t,e,n){var i=n("gjtd"),r=n("vC4J").Graph,s=n("ge/d");t.exports=function(t,e){if(t.nodeCount()<=1)return[];var n=function(t,e){var n=new r,o=0,a=0;i.forEach(t.nodes(),(function(t){n.setNode(t,{v:t,in:0,out:0})})),i.forEach(t.edges(),(function(t){var i=n.edge(t.v,t.w)||0,r=e(t);n.setEdge(t.v,t.w,i+r),a=Math.max(a,n.node(t.v).out+=r),o=Math.max(o,n.node(t.w).in+=r)}));var c=i.range(a+o+3).map((function(){return new s})),l=o+1;return i.forEach(n.nodes(),(function(t){u(c,l,n.node(t))})),{graph:n,buckets:c,zeroIdx:l}}(t,e||o),c=function(t,e,n){for(var i,r=[],s=e[e.length-1],o=e[0];t.nodeCount();){for(;i=o.dequeue();)a(t,e,n,i);for(;i=s.dequeue();)a(t,e,n,i);if(t.nodeCount())for(var u=e.length-2;u>0;--u)if(i=e[u].dequeue()){r=r.concat(a(t,e,n,i,!0));break}}return r}(n.graph,n.buckets,n.zeroIdx);return i.flatten(i.map(c,(function(e){return t.outEdges(e.v,e.w)})),!0)};var o=i.constant(1);function a(t,e,n,r,s){var o=s?[]:void 0;return i.forEach(t.inEdges(r.v),(function(i){var r=t.edge(i),a=t.node(i.v);s&&o.push({v:i.v,w:i.w}),a.out-=r,u(e,n,a)})),i.forEach(t.outEdges(r.v),(function(i){var r=t.edge(i),s=t.node(i.w);s.in-=r,u(e,n,s)})),t.removeNode(r.v),o}function u(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},gEWz:function(t,e,n){var i=n("kkM+"),r=n("tLQN");t.exports=function(t){return r(t)&&"[object Map]"==i(t)}},gP9q:function(t,e,n){var i=n("gjtd");t.exports=function(t,e){return i.map(e,(function(e){var n=t.inEdges(e);if(n.length){var r=i.reduce(n,(function(e,n){var i=t.edge(n),r=t.node(n.v);return{sum:e.sum+i.weight*r.order,weight:e.weight+i.weight}}),{sum:0,weight:0});return{v:e,barycenter:r.sum/r.weight,weight:r.weight}}return{v:e}}))}},gbTj:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=n("keXZ"),o=n("vpOK");function a(t){return t.bounds=void 0!==t.leaves?t.leaves.reduce((function(t,e){return e.bounds.union(t)}),u.empty()):u.empty(),void 0!==t.groups&&(t.bounds=t.groups.reduce((function(t,e){return a(e).union(t)}),t.bounds)),t.bounds=t.bounds.inflate(t.padding),t.bounds}e.computeGroupBounds=a;var u=function(){function t(t,e,n,i){this.x=t,this.X=e,this.y=n,this.Y=i}return t.empty=function(){return new t(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},t.prototype.cx=function(){return(this.x+this.X)/2},t.prototype.cy=function(){return(this.y+this.Y)/2},t.prototype.overlapX=function(t){var e=this.cx(),n=t.cx();return e<=n&&t.x<this.X?this.X-t.x:n<=e&&this.x<t.X?t.X-this.x:0},t.prototype.overlapY=function(t){var e=this.cy(),n=t.cy();return e<=n&&t.y<this.Y?this.Y-t.y:n<=e&&this.y<t.Y?t.Y-this.y:0},t.prototype.setXCentre=function(t){var e=t-this.cx();this.x+=e,this.X+=e},t.prototype.setYCentre=function(t){var e=t-this.cy();this.y+=e,this.Y+=e},t.prototype.width=function(){return this.X-this.x},t.prototype.height=function(){return this.Y-this.y},t.prototype.union=function(e){return new t(Math.min(this.x,e.x),Math.max(this.X,e.X),Math.min(this.y,e.y),Math.max(this.Y,e.Y))},t.prototype.lineIntersections=function(e,n,i,r){for(var s=[[this.x,this.y,this.X,this.y],[this.X,this.y,this.X,this.Y],[this.X,this.Y,this.x,this.Y],[this.x,this.Y,this.x,this.y]],o=[],a=0;a<4;++a){var u=t.lineIntersection(e,n,i,r,s[a][0],s[a][1],s[a][2],s[a][3]);null!==u&&o.push({x:u.x,y:u.y})}return o},t.prototype.rayIntersection=function(t,e){var n=this.lineIntersections(this.cx(),this.cy(),t,e);return n.length>0?n[0]:null},t.prototype.vertices=function(){return[{x:this.x,y:this.y},{x:this.X,y:this.y},{x:this.X,y:this.Y},{x:this.x,y:this.Y}]},t.lineIntersection=function(t,e,n,i,r,s,o,a){var u=n-t,c=o-r,l=i-e,h=a-s,d=h*u-c*l;if(0==d)return null;var f=t-r,p=e-s,g=(c*p-h*f)/d,m=(u*p-l*f)/d;return g>=0&&g<=1&&m>=0&&m<=1?{x:t+g*u,y:e+g*l}:null},t.prototype.inflate=function(e){return new t(this.x-e,this.X+e,this.y-e,this.Y+e)},t}();e.Rectangle=u,e.makeEdgeBetween=function(t,e,n){var i=t.rayIntersection(e.cx(),e.cy())||{x:t.cx(),y:t.cy()},r=e.rayIntersection(t.cx(),t.cy())||{x:e.cx(),y:e.cy()},s=r.x-i.x,o=r.y-i.y,a=Math.sqrt(s*s+o*o),u=a-n;return{sourceIntersection:i,targetIntersection:r,arrowStart:{x:i.x+u*s/a,y:i.y+u*o/a}}},e.makeEdgeTo=function(t,e,n){var i=e.rayIntersection(t.x,t.y);i||(i={x:e.cx(),y:e.cy()});var r=i.x-t.x,s=i.y-t.y,o=Math.sqrt(r*r+s*s);return{x:i.x-n*r/o,y:i.y-n*s/o}};var c=function(){return function(t,e,n){this.v=t,this.r=e,this.pos=n,this.prev=d(),this.next=d()}}(),l=function(){return function(t,e,n){this.isOpen=t,this.v=e,this.pos=n}}();function h(t,e){return t.pos>e.pos?1:t.pos<e.pos||t.isOpen?-1:e.isOpen?1:0}function d(){return new o.RBTree((function(t,e){return t.pos-e.pos}))}var f={getCentre:function(t){return t.cx()},getOpen:function(t){return t.y},getClose:function(t){return t.Y},getSize:function(t){return t.width()},makeRect:function(t,e,n,i){return new u(n-i/2,n+i/2,t,e)},findNeighbours:function(t,e){var n=function(n,i){for(var r,s=e.findIter(t);null!==(r=s[n]());){var o=r.r.overlapX(t.r);if((o<=0||o<=r.r.overlapY(t.r))&&(t[n].insert(r),r[i].insert(t)),o<=0)break}};n("next","prev"),n("prev","next")}},p={getCentre:function(t){return t.cy()},getOpen:function(t){return t.x},getClose:function(t){return t.X},getSize:function(t){return t.height()},makeRect:function(t,e,n,i){return new u(t,e,n-i/2,n+i/2)},findNeighbours:function(t,e){var n=function(n,i){var r=e.findIter(t)[n]();null!==r&&r.r.overlapX(t.r)>0&&(t[n].insert(r),r[i].insert(t))};n("next","prev"),n("prev","next")}};function g(t,e,n,i){void 0===i&&(i=!1);var r=t.padding,s=void 0!==t.groups?t.groups.length:0,o=void 0!==t.leaves?t.leaves.length:0,a=s?t.groups.reduce((function(t,i){return t.concat(g(i,e,n,!0))}),[]):[],u=(i?2:0)+o+s,c=new Array(u),l=new Array(u),h=0,d=function(t,e){l[h]=t,c[h++]=e};if(i){var f=t.bounds,p=e.getCentre(f),y=e.getSize(f)/2,v=e.getOpen(f),_=e.getClose(f),b=p-y+r/2,w=p+y-r/2;t.minVar.desiredPosition=b,d(e.makeRect(v,_,b,r),t.minVar),t.maxVar.desiredPosition=w,d(e.makeRect(v,_,w,r),t.maxVar)}o&&t.leaves.forEach((function(t){return d(t.bounds,t.variable)})),s&&t.groups.forEach((function(t){var n=t.bounds;d(e.makeRect(e.getOpen(n),e.getClose(n),e.getCentre(n),e.getSize(n)),t.minVar)}));var x=m(l,c,e,n);return s&&(c.forEach((function(t){t.cOut=[],t.cIn=[]})),x.forEach((function(t){t.left.cOut.push(t),t.right.cIn.push(t)})),t.groups.forEach((function(t){var n=(t.padding-e.getSize(t.bounds))/2;t.minVar.cIn.forEach((function(t){return t.gap+=n})),t.minVar.cOut.forEach((function(e){e.left=t.maxVar,e.gap+=n}))}))),a.concat(x)}function m(t,e,n,i){var r,o=t.length,a=2*o;console.assert(e.length>=o);var u=new Array(a);for(r=0;r<o;++r){var f=t[r],p=new c(e[r],f,n.getCentre(f));u[r]=new l(!0,p,n.getOpen(f)),u[r+o]=new l(!1,p,n.getClose(f))}u.sort(h);var g=new Array,m=d();for(r=0;r<a;++r){var y=u[r];if(p=y.v,y.isOpen)m.insert(p),n.findNeighbours(p,m);else{m.remove(p);var v=function(t,e){var r=(n.getSize(t.r)+n.getSize(e.r))/2+i;g.push(new s.Constraint(t.v,e.v,r))},_=function(t,e,n){for(var i,r=p[t].iterator();null!==(i=r[t]());)n(i,p),i[e].remove(p)};_("prev","next",(function(t,e){return v(t,e)})),_("next","prev",(function(t,e){return v(e,t)}))}}return console.assert(0===m.size),g}function y(t,e){return m(t,e,f,1e-6)}function v(t,e){return m(t,e,p,1e-6)}function _(t){return g(t,f,1e-6)}function b(t){return g(t,p,1e-6)}e.generateXConstraints=y,e.generateYConstraints=v,e.generateXGroupConstraints=_,e.generateYGroupConstraints=b,e.removeOverlaps=function(t){var e=t.map((function(t){return new s.Variable(t.cx())})),n=y(t,e),i=new s.Solver(e,n);i.solve(),e.forEach((function(e,n){return t[n].setXCentre(e.position())})),e=t.map((function(t){return new s.Variable(t.cy())})),n=v(t,e),(i=new s.Solver(e,n)).solve(),e.forEach((function(e,n){return t[n].setYCentre(e.position())}))};var w=function(t){function e(e,n){var i=t.call(this,0,n)||this;return i.index=e,i}return r(e,t),e}(s.Variable);e.IndexedVariable=w,e.Projection=function(){function t(t,e,n,i,r){var s=this;if(void 0===n&&(n=null),void 0===i&&(i=null),void 0===r&&(r=!1),this.nodes=t,this.groups=e,this.rootGroup=n,this.avoidOverlaps=r,this.variables=t.map((function(t,e){return t.variable=new w(e,1)})),i&&this.createConstraints(i),r&&n&&void 0!==n.groups){t.forEach((function(t){if(t.width&&t.height){var e=t.width/2,n=t.height/2;t.bounds=new u(t.x-e,t.x+e,t.y-n,t.y+n)}else t.bounds=new u(t.x,t.x,t.y,t.y)})),a(n);var o=t.length;e.forEach((function(t){s.variables[o]=t.minVar=new w(o++,void 0!==t.stiffness?t.stiffness:.01),s.variables[o]=t.maxVar=new w(o++,void 0!==t.stiffness?t.stiffness:.01)}))}}return t.prototype.createSeparation=function(t){return new s.Constraint(this.nodes[t.left].variable,this.nodes[t.right].variable,t.gap,void 0!==t.equality&&t.equality)},t.prototype.makeFeasible=function(t){var e=this;if(this.avoidOverlaps){var n="x",i="width";"x"===t.axis&&(n="y",i="height");var r=t.offsets.map((function(t){return e.nodes[t.node]})).sort((function(t,e){return t[n]-e[n]})),s=null;r.forEach((function(t){if(s){var e=s[n]+s[i];e>t[n]&&(t[n]=e)}s=t}))}},t.prototype.createAlignment=function(t){var e=this,n=this.nodes[t.offsets[0].node].variable;this.makeFeasible(t);var i="x"===t.axis?this.xConstraints:this.yConstraints;t.offsets.slice(1).forEach((function(t){i.push(new s.Constraint(n,e.nodes[t.node].variable,t.offset,!0))}))},t.prototype.createConstraints=function(t){var e=this,n=function(t){return void 0===t.type||"separation"===t.type};this.xConstraints=t.filter((function(t){return"x"===t.axis&&n(t)})).map((function(t){return e.createSeparation(t)})),this.yConstraints=t.filter((function(t){return"y"===t.axis&&n(t)})).map((function(t){return e.createSeparation(t)})),t.filter((function(t){return"alignment"===t.type})).forEach((function(t){return e.createAlignment(t)}))},t.prototype.setupVariablesAndBounds=function(t,e,n,i){this.nodes.forEach((function(r,s){r.fixed?(r.variable.weight=r.fixedWeight?r.fixedWeight:1e3,n[s]=i(r)):r.variable.weight=1;var o=(r.width||0)/2,a=(r.height||0)/2,c=t[s],l=e[s];r.bounds=new u(c-o,c+o,l-a,l+a)}))},t.prototype.xProject=function(t,e,n){(this.rootGroup||this.avoidOverlaps||this.xConstraints)&&this.project(t,e,t,n,(function(t){return t.px}),this.xConstraints,_,(function(t){return t.bounds.setXCentre(n[t.variable.index]=t.variable.position())}),(function(t){var e=n[t.minVar.index]=t.minVar.position(),i=n[t.maxVar.index]=t.maxVar.position(),r=t.padding/2;t.bounds.x=e-r,t.bounds.X=i+r}))},t.prototype.yProject=function(t,e,n){(this.rootGroup||this.yConstraints)&&this.project(t,e,e,n,(function(t){return t.py}),this.yConstraints,b,(function(t){return t.bounds.setYCentre(n[t.variable.index]=t.variable.position())}),(function(t){var e=n[t.minVar.index]=t.minVar.position(),i=n[t.maxVar.index]=t.maxVar.position(),r=t.padding/2;t.bounds.y=e-r,t.bounds.Y=i+r}))},t.prototype.projectFunctions=function(){var t=this;return[function(e,n,i){return t.xProject(e,n,i)},function(e,n,i){return t.yProject(e,n,i)}]},t.prototype.project=function(t,e,n,i,r,s,o,u,c){this.setupVariablesAndBounds(t,e,i,r),this.rootGroup&&this.avoidOverlaps&&(a(this.rootGroup),s=s.concat(o(this.rootGroup))),this.solve(this.variables,s,n,i),this.nodes.forEach(u),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(c),a(this.rootGroup))},t.prototype.solve=function(t,e,n,i){var r=new s.Solver(t,e);r.setStartingPositions(n),r.setDesiredPositions(i),r.solve()},t}()},"ge/d":function(t,e){function n(){var t={};t._next=t._prev=t,this._sentinel=t}function i(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function r(t,e){if("_next"!==t&&"_prev"!==t)return e}t.exports=n,n.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return i(e),e},n.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&i(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},n.prototype.toString=function(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,r)),n=n._prev;return"["+t.join(", ")+"]"}},gjtd:function(t,e,n){var i;try{i={cloneDeep:n("c2re"),constant:n("eN33"),defaults:n("WHWN"),each:n("h4um"),filter:n("+DnP"),find:n("6R5o"),flatten:n("1xil"),forEach:n("9SCj"),forIn:n("ZVKf"),has:n("1mr4"),isUndefined:n("CZlo"),last:n("p1C/"),map:n("mbB6"),mapValues:n("y2Ah"),max:n("LPC+"),merge:n("H8sf"),min:n("Z3AG"),minBy:n("PKEM"),now:n("ENE1"),pick:n("//nZ"),range:n("Cmkl"),reduce:n("veKZ"),sortBy:n("u6DZ"),uniqueId:n("w0mW"),values:n("0iyY"),zipObject:n("OUo6")}}catch(r){}i||(i=window._),t.exports=i},h4um:function(t,e,n){t.exports=n("9SCj")},hMsr:function(t,e,n){var i=n("+tCn"),r=n("BlJA");t.exports=function(t){for(var e=r(t),n=e.length;n--;){var s=e[n],o=t[s];e[n]=[s,o,i(o)]}return e}},hq5n:function(t,e,n){var i=n("Jl0P");t.exports=function(t,e,n){return function(t,e,n){var i={},r=t.nodes();return r.forEach((function(t){i[t]={},i[t][t]={distance:0},r.forEach((function(e){t!==e&&(i[t][e]={distance:Number.POSITIVE_INFINITY})})),n(t).forEach((function(n){var r=n.v===t?n.w:n.v,s=e(n);i[t][r]={distance:s,predecessor:t}}))})),r.forEach((function(t){var e=i[t];r.forEach((function(n){var s=i[n];r.forEach((function(n){var i=e[n],r=s[n],o=s[t].distance+i.distance;o<r.distance&&(r.distance=o,r.predecessor=i.predecessor)}))}))})),i}(t,e||r,n||function(e){return t.outEdges(e)})};var r=i.constant(1)},hyzI:function(t,e,n){var i=n("m5o6"),r=n("d0UJ"),s=n("eask"),o=n("9SKQ"),a=n("e63W");function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}u.prototype.clear=i,u.prototype.delete=r,u.prototype.get=s,u.prototype.has=o,u.prototype.set=a,t.exports=u},i7nn:function(t,e,n){var i=n("wxYD"),r=n("a88S"),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;t.exports=function(t,e){if(i(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!r(t))||o.test(t)||!s.test(t)||null!=e&&t in Object(e)}},"j+bJ":function(t,e,n){var i=n("5Ck4");t.exports=function(t,e){return i(t,e,"pre")}},kG2z:function(t,e){var n=Date.now;t.exports=function(t){var e=0,i=0;return function(){var r=n(),s=16-(r-i);if(i=r,s>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},kHoZ:function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},keXZ:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t){this.scale=t,this.AB=0,this.AD=0,this.A2=0}return t.prototype.addVariable=function(t){var e=this.scale/t.scale,n=t.weight;this.AB+=n*e*(t.offset/t.scale),this.AD+=n*e*t.desiredPosition,this.A2+=n*e*e},t.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},t}();e.PositionStats=i;var r=function(){function t(t,e,n,i){void 0===i&&(i=!1),this.left=t,this.right=e,this.gap=n,this.equality=i,this.active=!1,this.unsatisfiable=!1,this.left=t,this.right=e,this.gap=n,this.equality=i}return t.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},t}();e.Constraint=r;var s=function(){function t(t,e,n){void 0===e&&(e=1),void 0===n&&(n=1),this.desiredPosition=t,this.weight=e,this.scale=n,this.offset=0}return t.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},t.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},t.prototype.visitNeighbours=function(t,e){var n=function(n,i){return n.active&&t!==i&&e(n,i)};this.cOut.forEach((function(t){return n(t,t.right)})),this.cIn.forEach((function(t){return n(t,t.left)}))},t}();e.Variable=s;var o=function(){function t(t){this.vars=[],t.offset=0,this.ps=new i(t.scale),this.addVariable(t)}return t.prototype.addVariable=function(t){t.block=this,this.vars.push(t),this.ps.addVariable(t),this.posn=this.ps.getPosn()},t.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var t=0,e=this.vars.length;t<e;++t)this.ps.addVariable(this.vars[t]);this.posn=this.ps.getPosn()},t.prototype.compute_lm=function(t,e,n){var i=this,r=t.dfdv();return t.visitNeighbours(e,(function(e,s){var o=i.compute_lm(s,t,n);s===e.right?(r+=o*e.left.scale,e.lm=o):(r+=o*e.right.scale,e.lm=-o),n(e)})),r/t.scale},t.prototype.populateSplitBlock=function(t,e){var n=this;t.visitNeighbours(e,(function(e,i){i.offset=t.offset+(i===e.right?e.gap:-e.gap),n.addVariable(i),n.populateSplitBlock(i,t)}))},t.prototype.traverse=function(t,e,n,i){var r=this;void 0===n&&(n=this.vars[0]),void 0===i&&(i=null),n.visitNeighbours(i,(function(i,s){e.push(t(i)),r.traverse(t,e,s,n)}))},t.prototype.findMinLM=function(){var t=null;return this.compute_lm(this.vars[0],null,(function(e){!e.equality&&(null===t||e.lm<t.lm)&&(t=e)})),t},t.prototype.findMinLMBetween=function(t,e){this.compute_lm(t,null,(function(){}));var n=null;return this.findPath(t,null,e,(function(t,e){!t.equality&&t.right===e&&(null===n||t.lm<n.lm)&&(n=t)})),n},t.prototype.findPath=function(t,e,n,i){var r=this,s=!1;return t.visitNeighbours(e,(function(e,o){s||o!==n&&!r.findPath(o,t,n,i)||(s=!0,i(e,o))})),s},t.prototype.isActiveDirectedPathBetween=function(t,e){if(t===e)return!0;for(var n=t.cOut.length;n--;){var i=t.cOut[n];if(i.active&&this.isActiveDirectedPathBetween(i.right,e))return!0}return!1},t.split=function(e){return e.active=!1,[t.createSplitBlock(e.left),t.createSplitBlock(e.right)]},t.createSplitBlock=function(e){var n=new t(e);return n.populateSplitBlock(e,null),n},t.prototype.splitBetween=function(e,n){var i=this.findMinLMBetween(e,n);if(null!==i){var r=t.split(i);return{constraint:i,lb:r[0],rb:r[1]}}return null},t.prototype.mergeAcross=function(t,e,n){e.active=!0;for(var i=0,r=t.vars.length;i<r;++i){var s=t.vars[i];s.offset+=n,this.addVariable(s)}this.posn=this.ps.getPosn()},t.prototype.cost=function(){for(var t=0,e=this.vars.length;e--;){var n=this.vars[e],i=n.position()-n.desiredPosition;t+=i*i*n.weight}return t},t}();e.Block=o;var a=function(){function t(t){this.vs=t;var e=t.length;for(this.list=new Array(e);e--;){var n=new o(t[e]);this.list[e]=n,n.blockInd=e}}return t.prototype.cost=function(){for(var t=0,e=this.list.length;e--;)t+=this.list[e].cost();return t},t.prototype.insert=function(t){t.blockInd=this.list.length,this.list.push(t)},t.prototype.remove=function(t){var e=this.list.length-1,n=this.list[e];this.list.length=e,t!==n&&(this.list[t.blockInd]=n,n.blockInd=t.blockInd)},t.prototype.merge=function(t){var e=t.left.block,n=t.right.block,i=t.right.offset-t.left.offset-t.gap;e.vars.length<n.vars.length?(n.mergeAcross(e,t,i),this.remove(e)):(e.mergeAcross(n,t,-i),this.remove(n))},t.prototype.forEach=function(t){this.list.forEach(t)},t.prototype.updateBlockPositions=function(){this.list.forEach((function(t){return t.updateWeightedPosition()}))},t.prototype.split=function(t){var e=this;this.updateBlockPositions(),this.list.forEach((function(n){var i=n.findMinLM();null!==i&&i.lm<u.LAGRANGIAN_TOLERANCE&&(n=i.left.block,o.split(i).forEach((function(t){return e.insert(t)})),e.remove(n),t.push(i))}))},t}();e.Blocks=a;var u=function(){function t(t,e){this.vs=t,this.cs=e,this.vs=t,t.forEach((function(t){t.cIn=[],t.cOut=[]})),this.cs=e,e.forEach((function(t){t.left.cOut.push(t),t.right.cIn.push(t)})),this.inactive=e.map((function(t){return t.active=!1,t})),this.bs=null}return t.prototype.cost=function(){return this.bs.cost()},t.prototype.setStartingPositions=function(t){this.inactive=this.cs.map((function(t){return t.active=!1,t})),this.bs=new a(this.vs),this.bs.forEach((function(e,n){return e.posn=t[n]}))},t.prototype.setDesiredPositions=function(t){this.vs.forEach((function(e,n){return e.desiredPosition=t[n]}))},t.prototype.mostViolated=function(){for(var e=Number.MAX_VALUE,n=null,i=this.inactive,r=i.length,s=r,o=0;o<r;++o){var a=i[o];if(!a.unsatisfiable){var u=a.slack();if((a.equality||u<e)&&(e=u,n=a,s=o,a.equality))break}}return s!==r&&(e<t.ZERO_UPPERBOUND&&!n.active||n.equality)&&(i[s]=i[r-1],i.length=r-1),n},t.prototype.satisfy=function(){null==this.bs&&(this.bs=new a(this.vs)),this.bs.split(this.inactive);for(var e=null;(e=this.mostViolated())&&(e.equality||e.slack()<t.ZERO_UPPERBOUND&&!e.active);){var n=e.left.block;if(n!==e.right.block)this.bs.merge(e);else{if(n.isActiveDirectedPathBetween(e.right,e.left)){e.unsatisfiable=!0;continue}var i=n.splitBetween(e.left,e.right);if(null===i){e.unsatisfiable=!0;continue}this.bs.insert(i.lb),this.bs.insert(i.rb),this.bs.remove(n),this.inactive.push(i.constraint),e.slack()>=0?this.inactive.push(e):this.bs.merge(e)}}},t.prototype.solve=function(){this.satisfy();for(var t=Number.MAX_VALUE,e=this.bs.cost();Math.abs(t-e)>1e-4;)this.satisfy(),t=e,e=this.bs.cost();return e},t.LAGRANGIAN_TOLERANCE=-1e-4,t.ZERO_UPPERBOUND=-1e-10,t}();e.Solver=u,e.removeOverlapInOneDimension=function(t,e,n){for(var i=t.map((function(t){return new s(t.desiredCenter)})),o=[],a=t.length,c=0;c<a-1;c++)o.push(new r(i[c],i[c+1],(t[c].size+t[c+1].size)/2));var l=i[0],h=i[a-1],d=t[0].size/2,f=t[a-1].size/2,p=null,g=null;return e&&(p=new s(e,1e3*l.weight),i.push(p),o.push(new r(p,l,d))),n&&(g=new s(n,1e3*h.weight),i.push(g),o.push(new r(h,g,f))),new u(i,o).solve(),{newCenters:i.slice(0,t.length).map((function(t){return t.position()})),lowerBound:p?p.position():l.position()-d,upperBound:g?g.position():h.position()+f}}},"kkM+":function(t,e,n){var i=n("QF3D"),r=n("qeCs"),s=n("IS0S"),o=n("OBn4"),a=n("4+Vk"),u=n("Dhk8"),c=n("c18h"),l="[object Map]",h="[object Promise]",d="[object Set]",f="[object WeakMap]",p="[object DataView]",g=c(i),m=c(r),y=c(s),v=c(o),_=c(a),b=u;(i&&b(new i(new ArrayBuffer(1)))!=p||r&&b(new r)!=l||s&&b(s.resolve())!=h||o&&b(new o)!=d||a&&b(new a)!=f)&&(b=function(t){var e=u(t),n="[object Object]"==e?t.constructor:void 0,i=n?c(n):"";if(i)switch(i){case g:return p;case m:return l;case y:return h;case v:return d;case _:return f}return e}),t.exports=b},kn3Q:function(t,e,n){var i=n("HsnV"),r=n("LmOH"),s=n("c72w"),o=n("tPQG"),a=n("QrYh"),u=n("Grae"),c=n("QT01"),l=n("AjPR"),h=n("BjSP"),d=n("tlBq"),f=n("zF5n"),p=n("kkM+"),g=n("3Qlq"),m=n("7No3"),y=n("sD1O"),v=n("wxYD"),_=n("3ajY"),b=n("NbvU"),w=n("tQYX"),x=n("/iLo"),E=n("BlJA"),C=n("zH+d"),S="[object Arguments]",k="[object Function]",T="[object Object]",O={};O[S]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O[T]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O[k]=O["[object WeakMap]"]=!1,t.exports=function t(e,n,A,M,N,D){var I,P=1&n,j=2&n,L=4&n;if(A&&(I=N?A(e,M,N,D):A(e)),void 0!==I)return I;if(!w(e))return e;var F=v(e);if(F){if(I=g(e),!P)return c(e,I)}else{var R=p(e),z=R==k||"[object GeneratorFunction]"==R;if(_(e))return u(e,P);if(R==T||R==S||z&&!N){if(I=j||z?{}:y(e),!P)return j?h(e,a(I,e)):l(e,o(I,e))}else{if(!O[R])return N?e:{};I=m(e,R,P)}}D||(D=new i);var B=D.get(e);if(B)return B;D.set(e,I),x(e)?e.forEach((function(i){I.add(t(i,n,A,i,e,D))})):b(e)&&e.forEach((function(i,r){I.set(r,t(i,n,A,r,e,D))}));var V=F?void 0:(L?j?f:d:j?C:E)(e);return r(V||e,(function(i,r){V&&(i=e[r=i]),s(I,r,t(i,n,A,r,e,D))})),I}},kwr2:function(t,e,n){var i=n("6QIk"),r=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=i(e,t);return!(n<0||(n==e.length-1?e.pop():r.call(e,n,1),--this.size,0))}},lN3w:function(t,e,n){var i=n("EAGB");t.exports=function(t,e){var n=e?i(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},m2YG:function(t,e,n){var i=n("fWyh");t.exports=function(t){var e=i(t),n=e%1;return e==e?n?e-n:e:0}},m5o6:function(t,e,n){var i=n("Tv3l"),r=n("+ooz"),s=n("qeCs");t.exports=function(){this.size=0,this.__data__={hash:new i,map:new(s||r),string:new i}}},mGzy:function(t,e,n){var i=n("IBsm");t.exports=i.Uint8Array},mUsV:function(t,e,n){var i=n("5pfJ");t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=i&&void 0===e?"__lodash_hash_undefined__":e,this}},mbB6:function(t,e,n){var i=n("H87J"),r=n("S3pA"),s=n("bFjY"),o=n("wxYD");t.exports=function(t,e){return(o(t)?i:s)(t,r(e,3))}},myUI:function(t,e){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}},"n+p3":function(t,e){t.exports=function(t,e){return t<e}},n1QJ:function(t,e){t.exports=function(t,e,n){for(var i=n-1,r=t.length;++i<r;)if(t[i]===e)return i;return-1}},nDih:function(t,e,n){var i=n("Dhk8"),r=n("wxYD"),s=n("tLQN");t.exports=function(t){return"string"==typeof t||!r(t)&&s(t)&&"[object String]"==i(t)}},nnm9:function(t,e){t.exports=function(){}},nvU9:function(t,e,n){var i=n("I1fX"),r=n("tQYX"),s=n("a88S"),o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(s(t))return NaN;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=i(t);var n=a.test(t);return n||u.test(t)?c(t.slice(2),n?2:8):o.test(t)?NaN:+t}},oCTG:function(t,e,n){var i=n("Syyo"),r=n("bvyN"),s=n("wxYD"),o=i?i.isConcatSpreadable:void 0;t.exports=function(t){return s(t)||r(t)||!!(o&&t&&t[o])}},osTN:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("Tx5e"),r=n("WcC/");e.d3adaptor=function(t){return!t||function(t){return t.version&&null!==t.version.match(/^3\./)}(t)?new i.D3StyleLayoutAdaptor:new r.D3StyleLayoutAdaptor(t)}},"p1C/":function(t,e){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},p2lg:function(t,e,n){var i=n("tQYX"),r=n("CbIe"),s=n("/UTG"),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!i(t))return s(t);var e=r(t),n=[];for(var a in t)("constructor"!=a||!e&&o.call(t,a))&&n.push(a);return n}},pFSi:function(t,e,n){var i=n("hyzI");function r(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],s=n.cache;if(s.has(r))return s.get(r);var o=t.apply(this,i);return n.cache=s.set(r,o)||s,o};return n.cache=new(r.Cache||i),n}r.Cache=i,t.exports=r},pIod:function(t,e,n){var i=n("y/9h"),r=n("wxYD");t.exports=function(t,e,n){var s=e(t);return r(t)?s:i(s,n(t))}},pPzx:function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},pnw1:function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var i=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==i||"symbol"!=i&&n.test(t))&&t>-1&&t%1==0&&t<e}},qC43:function(t,e,n){var i=n("Jl0P");t.exports=function(t){var e,n={},r=[];function s(r){i.has(n,r)||(n[r]=!0,e.push(r),i.each(t.successors(r),s),i.each(t.predecessors(r),s))}return i.each(t.nodes(),(function(t){e=[],s(t),e.length&&r.push(e)})),r}},qeCs:function(t,e,n){var i=n("vxC8")(n("IBsm"),"Map");t.exports=i},qjF7:function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},rmhs:function(t,e,n){var i=n("2ZvR"),r=n("bvyN"),s=n("wxYD"),o=n("3ajY"),a=n("pnw1"),u=n("Qd2C"),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=s(t),l=!n&&r(t),h=!n&&!l&&o(t),d=!n&&!l&&!h&&u(t),f=n||l||h||d,p=f?i(t.length,String):[],g=p.length;for(var m in t)!e&&!c.call(t,m)||f&&("length"==m||h&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,g))||p.push(m);return p}},"s+R0":function(t,e,n){var i=n("JBn+"),r=n("OfKG"),s=n("sCL+"),o=n("S0iI"),a=n("9TP6"),u=n("XlL0");t.exports=function(t,e,n){var c=-1,l=r,h=t.length,d=!0,f=[],p=f;if(n)d=!1,l=s;else if(h>=200){var g=e?null:a(t);if(g)return u(g);d=!1,l=o,p=new i}else p=e?[]:f;t:for(;++c<h;){var m=t[c],y=e?e(m):m;if(m=n||0!==m?m:0,d&&y==y){for(var v=p.length;v--;)if(p[v]===y)continue t;e&&p.push(y),f.push(m)}else l(p,y,n)||(p!==f&&p.push(y),f.push(m))}return f}},"sCL+":function(t,e){t.exports=function(t,e,n){for(var i=-1,r=null==t?0:t.length;++i<r;)if(n(e,t[i]))return!0;return!1}},sD1O:function(t,e,n){var i=n("vGGS"),r=n("/wCD"),s=n("CbIe");t.exports=function(t){return"function"!=typeof t.constructor||s(t)?{}:i(r(t))}},sjzV:function(t,e,n){var i=n("Q4oW");t.exports=function(t,e){var n=[];return i(t,(function(t,i,r){e(t,i,r)&&n.push(t)})),n}},t0L4:function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},tLQN:function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},tPQG:function(t,e,n){var i=n("LtXa"),r=n("BlJA");t.exports=function(t,e){return t&&i(e,r(e),t)}},tQYX:function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},tlBq:function(t,e,n){var i=n("pIod"),r=n("70Le"),s=n("BlJA");t.exports=function(t){return i(t,s,r)}},u6DZ:function(t,e,n){var i=n("YpBQ"),r=n("eHpp"),s=n("R3TX"),o=n("R5u7"),a=s((function(t,e){if(null==t)return[];var n=e.length;return n>1&&o(t,e[0],e[1])?e=[]:n>2&&o(e[0],e[1],e[2])&&(e=[e[0]]),r(t,i(e,1),[])}));t.exports=a},vC4J:function(t,e,n){var i;try{i=n("YlUH")}catch(r){}i||(i=window.graphlib),t.exports=i},vGGS:function(t,e,n){var i=n("tQYX"),r=Object.create,s=function(){function t(){}return function(e){if(!i(e))return{};if(r)return r(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=s},veKZ:function(t,e,n){var i=n("cPMt"),r=n("Q4oW"),s=n("S3pA"),o=n("5q8j"),a=n("wxYD");t.exports=function(t,e,n){var u=a(t)?i:o,c=arguments.length<3;return u(t,s(e,4),n,c,r)}},vpOK:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(){this.findIter=function(t){for(var e=this._root,n=this.iterator();null!==e;){var i=this._comparator(t,e.data);if(0===i)return n._cursor=e,n;n._ancestors.push(e),e=e.get_child(i>0)}return null}}return t.prototype.clear=function(){this._root=null,this.size=0},t.prototype.find=function(t){for(var e=this._root;null!==e;){var n=this._comparator(t,e.data);if(0===n)return e.data;e=e.get_child(n>0)}return null},t.prototype.lowerBound=function(t){return this._bound(t,this._comparator)},t.prototype.upperBound=function(t){var e=this._comparator;return this._bound(t,(function(t,n){return e(n,t)}))},t.prototype.min=function(){var t=this._root;if(null===t)return null;for(;null!==t.left;)t=t.left;return t.data},t.prototype.max=function(){var t=this._root;if(null===t)return null;for(;null!==t.right;)t=t.right;return t.data},t.prototype.iterator=function(){return new o(this)},t.prototype.each=function(t){for(var e,n=this.iterator();null!==(e=n.next());)t(e)},t.prototype.reach=function(t){for(var e,n=this.iterator();null!==(e=n.prev());)t(e)},t.prototype._bound=function(t,e){for(var n=this._root,i=this.iterator();null!==n;){var r=this._comparator(t,n.data);if(0===r)return i._cursor=n,i;i._ancestors.push(n),n=n.get_child(r>0)}for(var s=i._ancestors.length-1;s>=0;--s)if(e(t,(n=i._ancestors[s]).data)>0)return i._cursor=n,i._ancestors.length=s,i;return i._ancestors.length=0,i},t}();e.TreeBase=s;var o=function(){function t(t){this._tree=t,this._ancestors=[],this._cursor=null}return t.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},t.prototype.next=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._minNode(t)}else{var e;if(null===this._cursor.right)do{if(e=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===e);else this._ancestors.push(this._cursor),this._minNode(this._cursor.right)}return null!==this._cursor?this._cursor.data:null},t.prototype.prev=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._maxNode(t)}else{var e;if(null===this._cursor.left)do{if(e=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===e);else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left)}return null!==this._cursor?this._cursor.data:null},t.prototype._minNode=function(t){for(;null!==t.left;)this._ancestors.push(t),t=t.left;this._cursor=t},t.prototype._maxNode=function(t){for(;null!==t.right;)this._ancestors.push(t),t=t.right;this._cursor=t},t}();e.Iterator=o;var a=function(){function t(t){this.data=t,this.left=null,this.right=null,this.red=!0}return t.prototype.get_child=function(t){return t?this.right:this.left},t.prototype.set_child=function(t,e){t?this.right=e:this.left=e},t}();e.RBTree=function(t){function e(e){var n=t.call(this)||this;return n._root=null,n._comparator=e,n.size=0,n}return r(e,t),e.prototype.insert=function(t){var n=!1;if(null===this._root)this._root=new a(t),n=!0,this.size++;else{var i=new a(void 0),r=!1,s=!1,o=null,u=i,c=null,l=this._root;for(u.right=this._root;;){if(null===l?(l=new a(t),c.set_child(r,l),n=!0,this.size++):e.is_red(l.left)&&e.is_red(l.right)&&(l.red=!0,l.left.red=!1,l.right.red=!1),e.is_red(l)&&e.is_red(c)){var h=u.right===o;l===c.get_child(s)?u.set_child(h,e.single_rotate(o,!s)):u.set_child(h,e.double_rotate(o,!s))}var d=this._comparator(l.data,t);if(0===d)break;s=r,null!==o&&(u=o),o=c,c=l,l=l.get_child(r=d<0)}this._root=i.right}return this._root.red=!1,n},e.prototype.remove=function(t){if(null===this._root)return!1;var n=new a(void 0),i=n;i.right=this._root;for(var r=null,s=null,o=null,u=!0;null!==i.get_child(u);){var c=u;s=r,r=i,i=i.get_child(u);var l=this._comparator(t,i.data);if(u=l>0,0===l&&(o=i),!e.is_red(i)&&!e.is_red(i.get_child(u)))if(e.is_red(i.get_child(!u))){var h=e.single_rotate(i,u);r.set_child(c,h),r=h}else if(!e.is_red(i.get_child(!u))){var d=r.get_child(!c);if(null!==d)if(e.is_red(d.get_child(!c))||e.is_red(d.get_child(c))){var f=s.right===r;e.is_red(d.get_child(c))?s.set_child(f,e.double_rotate(r,c)):e.is_red(d.get_child(!c))&&s.set_child(f,e.single_rotate(r,c));var p=s.get_child(f);p.red=!0,i.red=!0,p.left.red=!1,p.right.red=!1}else r.red=!1,d.red=!0,i.red=!0}}return null!==o&&(o.data=i.data,r.set_child(r.right===i,i.get_child(null===i.left)),this.size--),this._root=n.right,null!==this._root&&(this._root.red=!1),null!==o},e.is_red=function(t){return null!==t&&t.red},e.single_rotate=function(t,e){var n=t.get_child(!e);return t.set_child(!e,n.get_child(e)),n.set_child(e,t),t.red=!0,n.red=!1,n},e.double_rotate=function(t,n){return t.set_child(!n,e.single_rotate(t.get_child(!n),!n)),e.single_rotate(t,n)},e}(s)},vxC8:function(t,e,n){var i=n("5nKN"),r=n("4p/L");t.exports=function(t,e){var n=r(t,e);return i(n)?n:void 0}},w0mW:function(t,e,n){var i=n("dw5g"),r=0;t.exports=function(t){var e=++r;return i(t)+e}},w2Tz:function(t,e,n){var i=n("xoyU"),r=n("Ypsa");t.exports=function(t,e){for(var n=0,s=(e=i(e,t)).length;null!=t&&n<s;)t=t[r(e[n++])];return n&&n==s?t:void 0}},wC3K:function(t,e,n){var i=n("Pz+s");t.exports=function(t,e,n){"__proto__"==e&&i?i(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},wHMW:function(t,e,n){var i=n("gjtd"),r=n("xxjf");t.exports={run:function(t){var e=r.addDummyNode(t,"root",{},"_root"),n=function(t){var e={};return i.forEach(t.children(),(function(n){!function n(r,s){var o=t.children(r);o&&o.length&&i.forEach(o,(function(t){n(t,s+1)})),e[r]=s}(n,1)})),e}(t),s=i.max(i.values(n))-1,o=2*s+1;t.graph().nestingRoot=e,i.forEach(t.edges(),(function(e){t.edge(e).minlen*=o}));var a=function(t){return i.reduce(t.edges(),(function(e,n){return e+t.edge(n).weight}),0)}(t)+1;i.forEach(t.children(),(function(u){!function t(e,n,s,o,a,u,c){var l=e.children(c);if(l.length){var h=r.addBorderNode(e,"_bt"),d=r.addBorderNode(e,"_bb"),f=e.node(c);e.setParent(h,c),f.borderTop=h,e.setParent(d,c),f.borderBottom=d,i.forEach(l,(function(i){t(e,n,s,o,a,u,i);var r=e.node(i),l=r.borderTop?r.borderTop:i,f=r.borderBottom?r.borderBottom:i,p=r.borderTop?o:2*o,g=l!==f?1:a-u[c]+1;e.setEdge(h,l,{weight:p,minlen:g,nestingEdge:!0}),e.setEdge(f,d,{weight:p,minlen:g,nestingEdge:!0})})),e.parent(c)||e.setEdge(n,h,{weight:0,minlen:a+u[c]})}else c!==n&&e.setEdge(n,c,{weight:0,minlen:s})}(t,e,o,a,s,n,u)})),t.graph().nodeRankFactor=o},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,i.forEach(t.edges(),(function(e){t.edge(e).nestingEdge&&t.removeEdge(e)}))}}},wpQC:function(t,e,n){var i=n("R3TX"),r=n("R5u7");t.exports=function(t){return i((function(e,n){var i=-1,s=n.length,o=s>1?n[s-1]:void 0,a=s>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(s--,o):void 0,a&&r(n[0],n[1],a)&&(o=s<3?void 0:o,s=1),e=Object(e);++i<s;){var u=n[i];u&&t(e,u,i,o)}return e}))}},wxYD:function(t,e){t.exports=Array.isArray},xGdc:function(t,e,n){var i=n("Jl0P"),r=n("buMw"),s=n("c9kG");t.exports=function(t,e){var n,o=new r,a={},u=new s;function c(t){var i=t.v===n?t.w:t.v,r=u.priority(i);if(void 0!==r){var s=e(t);s<r&&(a[i]=n,u.decrease(i,s))}}if(0===t.nodeCount())return o;i.each(t.nodes(),(function(t){u.add(t,Number.POSITIVE_INFINITY),o.setNode(t)})),u.decrease(t.nodes()[0],0);for(var l=!1;u.size()>0;){if(n=u.removeMin(),i.has(a,n))o.setEdge(n,a[n]);else{if(l)throw new Error("Input graph is not connected: "+t);l=!0}t.nodeEdges(n).forEach(c)}return o}},xaOS:function(t,e,n){"use strict";var i=n("gjtd"),r=n("vC4J").Graph,s=n("xxjf");function o(t,e){var n={};return i.reduce(e,(function(e,r){var s=0,o=0,a=e.length,c=i.last(r);return i.forEach(r,(function(e,l){var h=function(t,e){if(t.node(e).dummy)return i.find(t.predecessors(e),(function(e){return t.node(e).dummy}))}(t,e),d=h?t.node(h).order:a;(h||e===c)&&(i.forEach(r.slice(o,l+1),(function(e){i.forEach(t.predecessors(e),(function(i){var r=t.node(i),o=r.order;!(o<s||d<o)||r.dummy&&t.node(e).dummy||u(n,i,e)}))})),o=l+1,s=d)})),r})),n}function a(t,e){var n={};function r(e,r,s,o,a){var c;i.forEach(i.range(r,s),(function(r){t.node(c=e[r]).dummy&&i.forEach(t.predecessors(c),(function(e){var i=t.node(e);i.dummy&&(i.order<o||i.order>a)&&u(n,e,c)}))}))}return i.reduce(e,(function(e,n){var s,o=-1,a=0;return i.forEach(n,(function(i,u){if("border"===t.node(i).dummy){var c=t.predecessors(i);c.length&&(s=t.node(c[0]).order,r(n,a,u,o,s),a=u,o=s)}r(n,a,n.length,s,e.length)})),n})),n}function u(t,e,n){if(e>n){var i=e;e=n,n=i}var r=t[e];r||(t[e]=r={}),r[n]=!0}function c(t,e,n){if(e>n){var r=e;e=n,n=r}return i.has(t[e],n)}function l(t,e,n,r){var s={},o={},a={};return i.forEach(e,(function(t){i.forEach(t,(function(t,e){s[t]=t,o[t]=t,a[t]=e}))})),i.forEach(e,(function(t){var e=-1;i.forEach(t,(function(t){var u=r(t);if(u.length)for(var l=((u=i.sortBy(u,(function(t){return a[t]}))).length-1)/2,h=Math.floor(l),d=Math.ceil(l);h<=d;++h){var f=u[h];o[t]===t&&e<a[f]&&!c(n,t,f)&&(o[f]=t,o[t]=s[t]=s[f],e=a[f])}}))})),{root:s,align:o}}function h(t,e,n,s,o){var a={},u=function(t,e,n,s){var o=new r,a=t.graph(),u=function(t,e,n){return function(r,s,o){var a,u=r.node(s),c=r.node(o),l=0;if(l+=u.width/2,i.has(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":a=-u.width/2;break;case"r":a=u.width/2}if(a&&(l+=n?a:-a),a=0,l+=(u.dummy?e:t)/2,l+=(c.dummy?e:t)/2,l+=c.width/2,i.has(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":a=c.width/2;break;case"r":a=-c.width/2}return a&&(l+=n?a:-a),a=0,l}}(a.nodesep,a.edgesep,s);return i.forEach(e,(function(e){var r;i.forEach(e,(function(e){var i=n[e];if(o.setNode(i),r){var s=n[r],a=o.edge(s,i);o.setEdge(s,i,Math.max(u(t,e,r),a||0))}r=e}))})),o}(t,e,n,o),c=o?"borderLeft":"borderRight";function l(t,e){for(var n=u.nodes(),i=n.pop(),r={};i;)r[i]?t(i):(r[i]=!0,n.push(i),n=n.concat(e(i))),i=n.pop()}return l((function(t){a[t]=u.inEdges(t).reduce((function(t,e){return Math.max(t,a[e.v]+u.edge(e))}),0)}),u.predecessors.bind(u)),l((function(e){var n=u.outEdges(e).reduce((function(t,e){return Math.min(t,a[e.w]-u.edge(e))}),Number.POSITIVE_INFINITY),i=t.node(e);n!==Number.POSITIVE_INFINITY&&i.borderType!==c&&(a[e]=Math.max(a[e],n))}),u.successors.bind(u)),i.forEach(s,(function(t){a[t]=a[n[t]]})),a}function d(t,e){return i.minBy(i.values(e),(function(e){var n=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY;return i.forIn(e,(function(e,i){var s=function(t,e){return t.node(e).width}(t,i)/2;n=Math.max(e+s,n),r=Math.min(e-s,r)})),n-r}))}function f(t,e){var n=i.values(e),r=i.min(n),s=i.max(n);i.forEach(["u","d"],(function(n){i.forEach(["l","r"],(function(o){var a,u=n+o,c=t[u];if(c!==e){var l=i.values(c);(a="l"===o?r-i.min(l):s-i.max(l))&&(t[u]=i.mapValues(c,(function(t){return t+a})))}}))}))}function p(t,e){return i.mapValues(t.ul,(function(n,r){if(e)return t[e.toLowerCase()][r];var s=i.sortBy(i.map(t,r));return(s[1]+s[2])/2}))}t.exports={positionX:function(t){var e,n=s.buildLayerMatrix(t),r=i.merge(o(t,n),a(t,n)),u={};i.forEach(["u","d"],(function(s){e="u"===s?n:i.values(n).reverse(),i.forEach(["l","r"],(function(n){"r"===n&&(e=i.map(e,(function(t){return i.values(t).reverse()})));var o=("u"===s?t.predecessors:t.successors).bind(t),a=l(0,e,r,o),c=h(t,e,a.root,a.align,"r"===n);"r"===n&&(c=i.mapValues(c,(function(t){return-t}))),u[s+n]=c}))}));var c=d(t,u);return f(u,c),p(u,t.graph().align)},findType1Conflicts:o,findType2Conflicts:a,addConflict:u,hasConflict:c,verticalAlignment:l,horizontalCompaction:h,alignCoordinates:f,findSmallestWidthAlignment:d,balance:p}},xoyU:function(t,e,n){var i=n("wxYD"),r=n("i7nn"),s=n("SoOq"),o=n("dw5g");t.exports=function(t,e){return i(t)?t:r(t,e)?[t]:s(o(t))}},xxjf:function(t,e,n){"use strict";var i=n("gjtd"),r=n("vC4J").Graph;function s(t,e,n,r){var s;do{s=i.uniqueId(r)}while(t.hasNode(s));return n.dummy=e,t.setNode(s,n),s}function o(t){return i.max(i.map(t.nodes(),(function(e){var n=t.node(e).rank;if(!i.isUndefined(n))return n})))}t.exports={addDummyNode:s,simplify:function(t){var e=(new r).setGraph(t.graph());return i.forEach(t.nodes(),(function(n){e.setNode(n,t.node(n))})),i.forEach(t.edges(),(function(n){var i=e.edge(n.v,n.w)||{weight:0,minlen:1},r=t.edge(n);e.setEdge(n.v,n.w,{weight:i.weight+r.weight,minlen:Math.max(i.minlen,r.minlen)})})),e},asNonCompoundGraph:function(t){var e=new r({multigraph:t.isMultigraph()}).setGraph(t.graph());return i.forEach(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),i.forEach(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e},successorWeights:function(t){var e=i.map(t.nodes(),(function(e){var n={};return i.forEach(t.outEdges(e),(function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight})),n}));return i.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=i.map(t.nodes(),(function(e){var n={};return i.forEach(t.inEdges(e),(function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight})),n}));return i.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,i,r=t.x,s=t.y,o=e.x-r,a=e.y-s,u=t.width/2,c=t.height/2;if(!o&&!a)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(a)*u>Math.abs(o)*c?(a<0&&(c=-c),n=c*o/a,i=c):(o<0&&(u=-u),n=u,i=u*a/o),{x:r+n,y:s+i}},buildLayerMatrix:function(t){var e=i.map(i.range(o(t)+1),(function(){return[]}));return i.forEach(t.nodes(),(function(n){var r=t.node(n),s=r.rank;i.isUndefined(s)||(e[s][r.order]=n)})),e},normalizeRanks:function(t){var e=i.min(i.map(t.nodes(),(function(e){return t.node(e).rank})));i.forEach(t.nodes(),(function(n){var r=t.node(n);i.has(r,"rank")&&(r.rank-=e)}))},removeEmptyRanks:function(t){var e=i.min(i.map(t.nodes(),(function(e){return t.node(e).rank}))),n=[];i.forEach(t.nodes(),(function(i){var r=t.node(i).rank-e;n[r]||(n[r]=[]),n[r].push(i)}));var r=0,s=t.graph().nodeRankFactor;i.forEach(n,(function(e,n){i.isUndefined(e)&&n%s!=0?--r:r&&i.forEach(e,(function(e){t.node(e).rank+=r}))}))},addBorderNode:function(t,e,n,i){var r={width:0,height:0};return arguments.length>=4&&(r.rank=n,r.order=i),s(t,"border",r,e)},maxRank:o,partition:function(t,e){var n={lhs:[],rhs:[]};return i.forEach(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n},time:function(t,e){var n=i.now();try{return e()}finally{console.log(t+" time: "+(i.now()-n)+"ms")}},notime:function(t,e){return e()}}},"y/9h":function(t,e){t.exports=function(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t}},y2Ah:function(t,e,n){var i=n("wC3K"),r=n("zKkv"),s=n("S3pA");t.exports=function(t,e){var n={};return e=s(e,3),r(t,(function(t,r,s){i(n,r,e(t,r,s))})),n}},y4bl:function(t,e,n){var i=n("c72w"),r=n("xoyU"),s=n("pnw1"),o=n("tQYX"),a=n("Ypsa");t.exports=function(t,e,n,u){if(!o(t))return t;for(var c=-1,l=(e=r(e,t)).length,h=l-1,d=t;null!=d&&++c<l;){var f=a(e[c]),p=n;if("__proto__"===f||"constructor"===f||"prototype"===f)return t;if(c!=h){var g=d[f];void 0===(p=u?u(g,f,d):void 0)&&(p=o(g)?g:s(e[c+1])?[]:{})}i(d,f,p),d=d[f]}return t}},yZHP:function(t,e,n){var i=n("tlBq"),r=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,s,o,a){var u=1&n,c=i(t),l=c.length;if(l!=i(e).length&&!u)return!1;for(var h=l;h--;){var d=c[h];if(!(u?d in e:r.call(e,d)))return!1}var f=a.get(t),p=a.get(e);if(f&&p)return f==e&&p==t;var g=!0;a.set(t,e),a.set(e,t);for(var m=u;++h<l;){var y=t[d=c[h]],v=e[d];if(s)var _=u?s(v,y,d,e,t,a):s(y,v,d,t,e,a);if(!(void 0===_?y===v||o(y,v,n,s,a):_)){g=!1;break}m||(m="constructor"==d)}if(g&&!m){var b=t.constructor,w=e.constructor;b==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(g=!1)}return a.delete(t),a.delete(e),g}},"z+TE":function(t,e,n){var i=n("xoyU"),r=n("bvyN"),s=n("wxYD"),o=n("pnw1"),a=n("t0L4"),u=n("Ypsa");t.exports=function(t,e,n){for(var c=-1,l=(e=i(e,t)).length,h=!1;++c<l;){var d=u(e[c]);if(!(h=null!=t&&n(t,d)))break;t=t[d]}return h||++c!=l?h:!!(l=null==t?0:t.length)&&a(l)&&o(d,l)&&(s(t)||r(t))}},z9Jh:function(t,e){t.exports=function(t){return t!=t}},zBPj:function(t,e,n){var i=n("gjtd"),r=n("xxjf");function s(t,e,n){for(var r;e.length&&(r=i.last(e)).i<=n;)e.pop(),t.push(r.vs),n++;return n}t.exports=function(t,e){var n,o=r.partition(t,(function(t){return i.has(t,"barycenter")})),a=o.lhs,u=i.sortBy(o.rhs,(function(t){return-t.i})),c=[],l=0,h=0,d=0;a.sort((n=!!e,function(t,e){return t.barycenter<e.barycenter?-1:t.barycenter>e.barycenter?1:n?e.i-t.i:t.i-e.i})),d=s(c,u,d),i.forEach(a,(function(t){d+=t.vs.length,c.push(t.vs),l+=t.barycenter*t.weight,h+=t.weight,d=s(c,u,d)}));var f={vs:i.flatten(c,!0)};return h&&(f.barycenter=l/h,f.weight=h),f}},zF5n:function(t,e,n){var i=n("pIod"),r=n("Xidw"),s=n("zH+d");t.exports=function(t){return i(t,s,r)}},"zH+d":function(t,e,n){var i=n("rmhs"),r=n("p2lg"),s=n("9y2L");t.exports=function(t){return s(t)?i(t,!0):r(t)}},zKkv:function(t,e,n){var i=n("UdtX"),r=n("BlJA");t.exports=function(t,e){return t&&i(t,e,r)}},zUnb:function(t,e,n){"use strict";n.r(e);var i={};n.r(i),n.d(i,"forceCenter",(function(){return Zw})),n.d(i,"forceCollide",(function(){return lx})),n.d(i,"forceLink",(function(){return _x})),n.d(i,"forceManyBody",(function(){return Cx})),n.d(i,"forceRadial",(function(){return Sx})),n.d(i,"forceSimulation",(function(){return Ex})),n.d(i,"forceX",(function(){return kx})),n.d(i,"forceY",(function(){return Tx}));var r={};n.r(r),n.d(r,"dispatch",(function(){return kg}));var s={};function o(t){return"function"==typeof t}n.r(s),n.d(s,"now",(function(){return Om})),n.d(s,"timer",(function(){return Nm})),n.d(s,"timerFlush",(function(){return Dm})),n.d(s,"timeout",(function(){return Lm})),n.d(s,"interval",(function(){return Ax}));let a=!1;const u={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else a&&console.log("RxJS: Back to a better error behavior. Thank you. <3");a=t},get useDeprecatedSynchronousErrorHandling(){return a}};function c(t){setTimeout(()=>{throw t},0)}const l={closed:!0,next(t){},error(t){if(u.useDeprecatedSynchronousErrorHandling)throw t;c(t)},complete(){}},h=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function d(t){return null!==t&&"object"==typeof t}const f=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let p=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;t<n.length;++t)n[t].remove(this);if(o(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(a){e=a instanceof f?g(a.errors):[a]}}if(h(s)){let t=-1,n=s.length;for(;++t<n;){const n=s[t];if(d(n))try{n.unsubscribe()}catch(a){e=e||[],a instanceof f?e=e.concat(g(a.errors)):e.push(a)}}}if(e)throw new f(e)}add(e){let n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){const e=n;n=new t,n._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:i}=n;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[n]:r.push(n),n}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}var e;return t.EMPTY=((e=new t).closed=!0,e),t})();function g(t){return t.reduce((t,e)=>t.concat(e instanceof f?e.errors:e),[])}const m=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class y extends p{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=l;break;case 1:if(!t){this.destination=l;break}if("object"==typeof t){t instanceof y?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new v(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new v(this,t,e,n)}}[m](){return this}static create(t,e,n){const i=new y(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class v extends y{constructor(t,e,n,i){let r;super(),this._parentSubscriber=t;let s=this;o(e)?r=e:e&&(r=e.next,n=e.error,i=e.complete,e!==l&&(s=Object.create(e),o(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=r,this._error=n,this._complete=i}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;u.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=u;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):c(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;c(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);u.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),u.useDeprecatedSynchronousErrorHandling)throw n;c(n)}}__tryOrSetError(t,e,n){if(!u.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return u.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(c(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const _=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function b(t){return t}let w=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:i}=this,r=function(t,e,n){if(t){if(t instanceof y)return t;if(t[m])return t[m]()}return t||e||n?new y(t,e,n):new y(l)}(t,e,n);if(r.add(i?i.call(r,this.source):this.source||u.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),u.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}_trySubscribe(t){try{return this._subscribe(t)}catch(e){u.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:i}=t;if(e||i)return!1;t=n&&n instanceof y?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=x(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(r){n(r),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[_](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?b:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=x(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function x(t){if(t||(t=u.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const E=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class C extends p{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class S extends y{constructor(t){super(t),this.destination=t}}let k=(()=>{class t extends w{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[m](){return new S(this)}lift(t){const e=new T(this,this);return e.operator=t,e}next(t){if(this.closed)throw new E;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let r=0;r<n;r++)i[r].next(t)}}error(t){if(this.closed)throw new E;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,i=e.slice();for(let r=0;r<n;r++)i[r].error(t);this.observers.length=0}complete(){if(this.closed)throw new E;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let i=0;i<e;i++)n[i].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new E;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new E;return this.hasError?(t.error(this.thrownError),p.EMPTY):this.isStopped?(t.complete(),p.EMPTY):(this.observers.push(t),new C(this,t))}asObservable(){const t=new w;return t.source=this,t}}return t.create=(t,e)=>new T(t,e),t})();class T extends k{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):p.EMPTY}}function O(t){return t&&"function"==typeof t.schedule}function A(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new M(t,e))}}class M{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new N(t,this.project,this.thisArg))}}class N extends y{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const D=t=>e=>{for(let n=0,i=t.length;n<i&&!e.closed;n++)e.next(t[n]);e.complete()};function I(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const P=I(),j=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function L(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const F=t=>{if(t&&"function"==typeof t[_])return i=t,t=>{const e=i[_]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(j(t))return D(t);if(L(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,c),t);if(t&&"function"==typeof t[P])return e=t,t=>{const n=e[P]();for(;;){let e;try{e=n.next()}catch(i){return t.error(i),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=d(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,i};function R(t,e){return new w(n=>{const i=new p;let r=0;return i.add(e.schedule((function(){r!==t.length?(n.next(t[r++]),n.closed||i.add(this.schedule())):n.complete()}))),i})}function z(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[_]}(t))return function(t,e){return new w(n=>{const i=new p;return i.add(e.schedule(()=>{const r=t[_]();i.add(r.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if(L(t))return function(t,e){return new w(n=>{const i=new p;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if(j(t))return R(t,e);if(function(t){return t&&"function"==typeof t[P]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new w(n=>{const i=new p;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=t[P](),i.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=r.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())})))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof w?t:new w(F(t))}class B extends y{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class V extends y{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function H(t,e){if(!e.closed)return t instanceof w?t.subscribe(e):F(t)(e)}class G{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new U(t,this.project,this.concurrent))}}class U extends V{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(e)}_innerSub(t){const e=new B(this),n=this.destination;n.add(e);const i=H(t,e);i!==e&&n.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function q(t=Number.POSITIVE_INFINITY){return function t(e,n,i=Number.POSITIVE_INFINITY){return"function"==typeof n?r=>r.pipe(t((t,i)=>z(e(t,i)).pipe(A((e,r)=>n(t,e,i,r))),i)):("number"==typeof n&&(i=n),t=>t.lift(new G(e,i)))}(b,t)}function Y(t,e){return e?R(t,e):new w(D(t))}function W(...t){let e=Number.POSITIVE_INFINITY,n=null,i=t[t.length-1];return O(i)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof i&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof w?t[0]:q(e)(Y(t,n))}function $(){return function(t){return t.lift(new Q(t))}}class Q{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new X(t,n),r=e.subscribe(i);return i.closed||(i.connection=n.connect()),r}}class X extends y{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}class Z extends w{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new p,t.add(this.source.subscribe(new J(this.getSubject(),this))),t.closed&&(this._connection=null,t=p.EMPTY)),t}refCount(){return $()(this)}}const K=(()=>{const t=Z.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class J extends S{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function tt(){return new k}function et(t){return{toString:t}.toString()}const nt="__parameters__";function it(t,e,n){return et(()=>{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function r(...t){if(this instanceof r)return i.apply(this,t),this;const e=new r(...t);return n.annotation=e,n;function n(t,n,i){const r=t.hasOwnProperty(nt)?t[nt]:Object.defineProperty(t,nt,{value:[]})[nt];for(;r.length<=i;)r.push(null);return(r[i]=r[i]||[]).push(e),t}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}const rt=it("Inject",t=>({token:t})),st=it("Optional"),ot=it("Self"),at=it("SkipSelf");var ut=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function ct(t){for(let e in t)if(t[e]===ct)return e;throw Error("Could not find renamed property on target object.")}function lt(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function ht(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function dt(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function ft(t){return pt(t,t[mt])||pt(t,t[_t])}function pt(t,e){return e&&e.token===t?e:null}function gt(t){return t&&(t.hasOwnProperty(yt)||t.hasOwnProperty(bt))?t[yt]:null}const mt=ct({"\u0275prov":ct}),yt=ct({"\u0275inj":ct}),vt=ct({"\u0275provFallback":ct}),_t=ct({ngInjectableDef:ct}),bt=ct({ngInjectorDef:ct});function wt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(wt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function xt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const Et=ct({__forward_ref__:ct});function Ct(t){return t.__forward_ref__=Ct,t.toString=function(){return wt(this())},t}function St(t){return"function"==typeof(e=t)&&e.hasOwnProperty(Et)&&e.__forward_ref__===Ct?t():t;var e}const kt="undefined"!=typeof globalThis&&globalThis,Tt="undefined"!=typeof window&&window,Ot="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,At="undefined"!=typeof global&&global,Mt=kt||At||Tt||Ot,Nt=ct({"\u0275cmp":ct}),Dt=ct({"\u0275dir":ct}),It=ct({"\u0275pipe":ct}),Pt=ct({"\u0275mod":ct}),jt=ct({"\u0275loc":ct}),Lt=ct({"\u0275fac":ct}),Ft=ct({__NG_ELEMENT_ID__:ct});class Rt{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ht({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const zt=new Rt("INJECTOR",-1),Bt={},Vt=/\n/gm,Ht="__source",Gt=ct({provide:String,useValue:ct});let Ut,qt=void 0;function Yt(t){const e=qt;return qt=t,e}function Wt(t){const e=Ut;return Ut=t,e}function $t(t,e=ut.Default){if(void 0===qt)throw new Error("inject() must be called from an injection context");return null===qt?Zt(t,void 0,e):qt.get(t,e&ut.Optional?null:void 0,e)}function Qt(t,e=ut.Default){return(Ut||$t)(St(t),e)}const Xt=Qt;function Zt(t,e,n){const i=ft(t);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&ut.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${wt(t)}]`)}function Kt(t){const e=[];for(let n=0;n<t.length;n++){const i=St(t[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let t=void 0,n=ut.Default;for(let e=0;e<i.length;e++){const r=i[e];r instanceof st||"Optional"===r.ngMetadataName||r===st?n|=ut.Optional:r instanceof at||"SkipSelf"===r.ngMetadataName||r===at?n|=ut.SkipSelf:r instanceof ot||"Self"===r.ngMetadataName||r===ot?n|=ut.Self:t=r instanceof rt||r===rt?r.token:r}e.push(Qt(t,n))}else e.push(Qt(i))}return e}class Jt{get(t,e=Bt){if(e===Bt){const e=new Error(`NullInjectorError: No provider for ${wt(t)}!`);throw e.name="NullInjectorError",e}return e}}class te{}function ee(t,e){t.forEach(t=>Array.isArray(t)?ee(t,e):e(t))}function ne(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function ie(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function re(t,e){const n=[];for(let i=0;i<t;i++)n.push(e);return n}function se(t,e,n){let i=ae(t,e);return i>=0?t[1|i]=n:(i=~i,function(t,e,n,i){let r=t.length;if(r==e)t.push(n,i);else if(1===r)t.push(i,t[0]),t[0]=n;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function oe(t,e){const n=ae(t,e);if(n>=0)return t[1|n]}function ae(t,e){return function(t,e,n){let i=0,r=t.length>>1;for(;r!==i;){const n=i+(r-i>>1),s=t[n<<1];if(e===s)return n<<1;s>e?r=n:i=n+1}return~(r<<1)}(t,e)}var ue=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),ce=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const le={},he=[];let de=0;function fe(t){return et(()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===ue.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||he,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||ce.Emulated,id:"c",styles:t.styles||he,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,r=t.features,s=t.pipes;return n.id+=de++,n.inputs=ve(t.inputs,e),n.outputs=ve(t.outputs),r&&r.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(pe):null,n.pipeDefs=s?()=>("function"==typeof s?s():s).map(ge):null,n})}function pe(t){return we(t)||function(t){return t[Dt]||null}(t)}function ge(t){return function(t){return t[It]||null}(t)}const me={};function ye(t){const e={type:t.type,bootstrap:t.bootstrap||he,declarations:t.declarations||he,imports:t.imports||he,exports:t.exports||he,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&et(()=>{me[t.id]=t.type}),e}function ve(t,e){if(null==t)return le;const n={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),n[r]=i,e&&(e[r]=s)}return n}const _e=fe;function be(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function we(t){return t[Nt]||null}function xe(t,e){return t.hasOwnProperty(Lt)?t[Lt]:null}function Ee(t,e){const n=t[Pt]||null;if(!n&&!0===e)throw new Error(`Type ${wt(t)} does not have '\u0275mod' property.`);return n}const Ce=20,Se=10;function ke(t){return Array.isArray(t)&&"object"==typeof t[1]}function Te(t){return Array.isArray(t)&&!0===t[1]}function Oe(t){return 0!=(8&t.flags)}function Ae(t){return 2==(2&t.flags)}function Me(t){return 1==(1&t.flags)}function Ne(t){return null!==t.template}function De(t){return 0!=(512&t[2])}class Ie{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Pe(){return je}function je(t){return t.type.prototype.ngOnChanges&&(t.setInput=Fe),Le}function Le(){const t=Re(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===le)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function Fe(t,e,n,i){const r=Re(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:le,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[n],u=o[a];s[a]=new Ie(u&&u.currentValue,e,o===le),t[i]=e}function Re(t){return t.__ngSimpleChanges__||null}Pe.ngInherit=!0;const ze="http://www.w3.org/2000/svg";let Be=void 0;function Ve(){return void 0!==Be?Be:"undefined"!=typeof document?document:void 0}function He(t){return!!t.listen}const Ge={createRenderer:(t,e)=>Ve()};function Ue(t){for(;Array.isArray(t);)t=t[0];return t}function qe(t,e){return Ue(e[t+Ce])}function Ye(t,e){return Ue(e[t.index])}function We(t,e){return t.data[e+Ce]}function $e(t,e){const n=e[t];return ke(n)?n:n[0]}function Qe(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Xe(t){return 4==(4&t[2])}function Ze(t){return 128==(128&t[2])}function Ke(t,e){return null===t||null==e?null:t[e]}function Je(t){t[18]=0}function tn(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const en={lFrame:En(null),bindingsEnabled:!0,checkNoChangesMode:!1};function nn(){return en.bindingsEnabled}function rn(){return en.lFrame.lView}function sn(){return en.lFrame.tView}function on(t){en.lFrame.contextLView=t}function an(){return en.lFrame.previousOrParentTNode}function un(t,e){en.lFrame.previousOrParentTNode=t,en.lFrame.isParent=e}function cn(){return en.lFrame.isParent}function ln(){en.lFrame.isParent=!1}function hn(){return en.checkNoChangesMode}function dn(t){en.checkNoChangesMode=t}function fn(){const t=en.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function pn(){return en.lFrame.bindingIndex++}function gn(t){const e=en.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function mn(t,e){const n=en.lFrame;n.bindingIndex=n.bindingRootIndex=t,yn(e)}function yn(t){en.lFrame.currentDirectiveIndex=t}function vn(){return en.lFrame.currentQueryIndex}function _n(t){en.lFrame.currentQueryIndex=t}function bn(t,e){const n=xn();en.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function wn(t,e){const n=xn(),i=t[1];en.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=i,n.contextLView=t,n.bindingIndex=i.bindingStartIndex}function xn(){const t=en.lFrame,e=null===t?null:t.child;return null===e?En(t):e}function En(t){const e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function Cn(){const t=en.lFrame;return en.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}const Sn=Cn;function kn(){const t=Cn();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Tn(){return en.lFrame.selectedIndex}function On(t){en.lFrame.selectedIndex=t}function An(){const t=en.lFrame;return We(t.tView,t.selectedIndex)}function Mn(){en.lFrame.currentNamespace=ze}function Nn(){en.lFrame.currentNamespace=null}function Dn(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n<i;n++){const e=t.data[n].type.prototype,{ngAfterContentInit:i,ngAfterContentChecked:r,ngAfterViewInit:s,ngAfterViewChecked:o,ngOnDestroy:a}=e;i&&(t.contentHooks||(t.contentHooks=[])).push(-n,i),r&&((t.contentHooks||(t.contentHooks=[])).push(n,r),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,r)),s&&(t.viewHooks||(t.viewHooks=[])).push(-n,s),o&&((t.viewHooks||(t.viewHooks=[])).push(n,o),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,o)),null!=a&&(t.destroyHooks||(t.destroyHooks=[])).push(n,a)}}function In(t,e,n){Ln(t,e,3,n)}function Pn(t,e,n,i){(3&t[2])===n&&Ln(t,e,n,i)}function jn(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function Ln(t,e,n,i){const r=null!=i?i:-1;let s=0;for(let o=void 0!==i?65535&t[18]:0;o<e.length;o++)if("number"==typeof e[o+1]){if(s=e[o],null!=i&&s>=i)break}else e[o]<0&&(t[18]+=65536),(s<r||-1==r)&&(Fn(t,n,e,o),t[18]=(4294901760&t[18])+o+2),o++}function Fn(t,e,n,i){const r=n[i]<0,s=n[i+1],o=t[r?-n[i]:n[i]];r?t[2]>>11<t[18]>>16&&(3&t[2])===e&&(t[2]+=2048,s.call(o)):s.call(o)}class Rn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function zn(t,e,n){const i=He(t);let r=0;for(;r<n.length;){const s=n[r];if("number"==typeof s){if(0!==s)break;r++;const o=n[r++],a=n[r++],u=n[r++];i?t.setAttribute(e,a,u,o):e.setAttributeNS(o,a,u)}else{const o=s,a=n[++r];Bn(o)?i&&t.setProperty(e,o,a):i?t.setAttribute(e,o,a):e.setAttribute(o,a),r++}}return r}function Bn(t){return 64===t.charCodeAt(0)}function Vn(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let i=0;i<e.length;i++){const r=e[i];"number"==typeof r?n=r:0===n||Hn(t,n,r,null,-1===n||2===n?e[++i]:null)}}return t}function Hn(t,e,n,i,r){let s=0,o=t.length;if(-1===e)o=-1;else for(;s<t.length;){const n=t[s++];if("number"==typeof n){if(n===e){o=-1;break}if(n>e){o=s-1;break}}}for(;s<t.length;){const e=t[s];if("number"==typeof e)break;if(e===n){if(null===i)return void(null!==r&&(t[s+1]=r));if(i===t[s+1])return void(t[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(t.splice(o,0,e),s=o+1),t.splice(s++,0,n),null!==i&&t.splice(s++,0,i),null!==r&&t.splice(s++,0,r)}function Gn(t){return-1!==t}function Un(t){return 32767&t}function qn(t){return t>>16}function Yn(t,e){let n=qn(t),i=e;for(;n>0;)i=i[15],n--;return i}function Wn(t){return"string"==typeof t?t:null==t?"":""+t}function $n(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Wn(t)}const Qn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Mt))();function Xn(t){return{name:"window",target:t.ownerDocument.defaultView}}function Zn(t){return{name:"document",target:t.ownerDocument}}function Kn(t){return{name:"body",target:t.ownerDocument.body}}function Jn(t){return t instanceof Function?t():t}let ti=!0;function ei(t){const e=ti;return ti=t,e}let ni=0;function ii(t,e){const n=si(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,ri(i.data,t),ri(e,null),ri(i.blueprint,null));const r=oi(t,e),s=t.injectorIndex;if(Gn(r)){const t=Un(r),n=Yn(r,e),i=n[1].data;for(let r=0;r<8;r++)e[s+r]=n[t+r]|i[t+r]}return e[s+8]=r,s}function ri(t,e){t.push(0,0,0,0,0,0,0,0,e)}function si(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function oi(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=e[6],i=1;for(;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,i++;return n?n.injectorIndex|i<<16:-1}function ai(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(Ft)&&(i=n[Ft]),null==i&&(i=n[Ft]=ni++);const r=255&i,s=1<<r,o=64&r,a=32&r,u=e.data;128&r?o?a?u[t+7]|=s:u[t+6]|=s:a?u[t+5]|=s:u[t+4]|=s:o?a?u[t+3]|=s:u[t+2]|=s:a?u[t+1]|=s:u[t]|=s}(t,e,n)}function ui(t,e,n,i=ut.Default,r){if(null!==t){const r=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(Ft)?t[Ft]:void 0;return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof r){bn(e,t);try{const t=r();if(null!=t||i&ut.Optional)return t;throw new Error(`No provider for ${$n(n)}!`)}finally{Sn()}}else if("number"==typeof r){if(-1===r)return new gi(t,e);let s=null,o=si(t,e),a=-1,u=i&ut.Host?e[16][6]:null;for((-1===o||i&ut.SkipSelf)&&(a=-1===o?oi(t,e):e[o+8],pi(i,!1)?(s=e[1],o=Un(a),e=Yn(a,e)):o=-1);-1!==o;){a=e[o+8];const t=e[1];if(fi(r,o,t.data)){const t=li(o,e,n,s,i,u);if(t!==ci)return t}pi(i,e[1].data[o+8]===u)&&fi(r,o,e)?(s=t,o=Un(a),e=Yn(a,e)):o=-1}}}if(i&ut.Optional&&void 0===r&&(r=null),0==(i&(ut.Self|ut.Host))){const t=e[9],s=Wt(void 0);try{return t?t.get(n,r,i&ut.Optional):Zt(n,r,i&ut.Optional)}finally{Wt(s)}}if(i&ut.Optional)return r;throw new Error(`NodeInjector: NOT_FOUND [${$n(n)}]`)}const ci={};function li(t,e,n,i,r,s){const o=e[1],a=o.data[t+8],u=hi(a,o,n,null==i?Ae(a)&&ti:i!=o&&3===a.type,r&ut.Host&&s===a);return null!==u?di(e,o,u,a):ci}function hi(t,e,n,i,r){const s=t.providerIndexes,o=e.data,a=1048575&s,u=t.directiveStart,c=s>>20,l=r?a+c:t.directiveEnd;for(let h=i?a:a+c;h<l;h++){const t=o[h];if(h<u&&n===t||h>=u&&t.type===n)return h}if(r){const t=o[u];if(t&&Ne(t)&&t.type===n)return u}return null}function di(t,e,n,i){let r=t[n];const s=e.data;if(r instanceof Rn){const o=r;if(o.resolving)throw new Error("Circular dep for "+$n(s[n]));const a=ei(o.canSeeViewProviders);let u;o.resolving=!0,o.injectImpl&&(u=Wt(o.injectImpl)),bn(t,i);try{r=t[n]=o.factory(void 0,s,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(i){const i=je(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,r),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s))}(n,s[n],e)}finally{o.injectImpl&&Wt(u),ei(a),o.resolving=!1,Sn()}}return r}function fi(t,e,n){const i=64&t,r=32&t;let s;return s=128&t?i?r?n[e+7]:n[e+6]:r?n[e+5]:n[e+4]:i?r?n[e+3]:n[e+2]:r?n[e+1]:n[e],!!(s&1<<t)}function pi(t,e){return!(t&ut.Self||t&ut.Host&&e)}class gi{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return ui(this._tNode,this._lView,t,void 0,e)}}function mi(t){return t.ngDebugContext}function yi(t){return t.ngOriginalError}function vi(t,...e){t.error(...e)}class _i{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||vi}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?mi(t)?mi(t):this._findContext(yi(t)):null}_findOriginalError(t){let e=yi(t);for(;e&&yi(e);)e=yi(e);return e}}class bi{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class wi extends bi{getTypeName(){return"HTML"}}class xi extends bi{getTypeName(){return"Style"}}class Ei extends bi{getTypeName(){return"Script"}}class Ci extends bi{getTypeName(){return"URL"}}class Si extends bi{getTypeName(){return"ResourceURL"}}function ki(t){return t instanceof bi?t.changingThisBreaksApplicationSecurity:t}function Ti(t,e){const n=Oi(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}function Oi(t){return t instanceof bi&&t.getTypeName()||null}let Ai=!0,Mi=!1;function Ni(){return Mi=!0,Ai}class Di{getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}}class Ii{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;const n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0<i;i--){const n=e.item(i).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||t.removeAttribute(n)}let n=t.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const Pi=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,ji=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Li(t){return(t=String(t)).match(Pi)||t.match(ji)?t:(Ni()&&console.warn(`WARNING: sanitizing unsafe URL value ${t} (see http://g.co/ng/security#xss)`),"unsafe:"+t)}function Fi(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function Ri(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const zi=Fi("area,br,col,hr,img,wbr"),Bi=Fi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Vi=Fi("rp,rt"),Hi=Ri(Vi,Bi),Gi=Ri(zi,Ri(Bi,Fi("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Ri(Vi,Fi("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Hi),Ui=Fi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),qi=Fi("srcset"),Yi=Ri(Ui,qi,Fi("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Fi("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Wi=Fi("script,style,template");class $i{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!Gi.hasOwnProperty(e))return this.sanitizedSomething=!0,!Wi.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let r=0;r<n.length;r++){const t=n.item(r),e=t.name,s=e.toLowerCase();if(!Yi.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let o=t.value;Ui[s]&&(o=Li(o)),qi[s]&&(i=o,o=(i=String(i)).split(",").map(t=>Li(t.trim())).join(", ")),this.buf.push(" ",e,'="',Zi(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Gi.hasOwnProperty(e)&&!zi.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Zi(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e}}const Qi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Xi=/([^\#-~ |!])/g;function Zi(t){return t.replace(/&/g,"&amp;").replace(Qi,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Xi,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Ki;function Ji(t,e){let n=null;try{Ki=Ki||function(t){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(t){return!1}}()?new Di:new Ii(t)}(t);let i=e?String(e):"";n=Ki.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=n.innerHTML,n=Ki.getInertBodyElement(i)}while(i!==s);const o=new $i,a=o.sanitizeChildren(tr(n)||n);return Ni()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=tr(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function tr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var er=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function nr(t){const e=function(){const t=rn();return t&&t[12]}();return e?e.sanitize(er.HTML,t)||"":Ti(t,"HTML")?ki(t):Ji(Ve(),Wn(t))}function ir(t,e){t.__ngContext__=e}function rr(t){throw new Error("Multiple components match node with tagname "+t.tagName)}function sr(){throw new Error("Cannot mix multi providers and regular providers")}function or(t,e,n){let i=t.length;for(;;){const r=t.indexOf(e,n);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const n=e.length;if(r+n===i||t.charCodeAt(r+n)<=32)return r}n=r+1}}const ar="ng-template";function ur(t,e,n){let i=0;for(;i<t.length;){let r=t[i++];if(n&&"class"===r){if(r=t[i],-1!==or(r.toLowerCase(),e,0))return!0}else if(1===r){for(;i<t.length&&"string"==typeof(r=t[i++]);)if(r.toLowerCase()===e)return!0;return!1}}return!1}function cr(t){return 0===t.type&&t.tagName!==ar}function lr(t,e,n){return e===(0!==t.type||n?t.tagName:ar)}function hr(t,e,n){let i=4;const r=t.attrs||[],s=function(t){for(let n=0;n<t.length;n++)if(3===(e=t[n])||4===e||6===e)return n;var e;return t.length}(r);let o=!1;for(let a=0;a<e.length;a++){const u=e[a];if("number"!=typeof u){if(!o)if(4&i){if(i=2|1&i,""!==u&&!lr(t,u,n)||""===u&&1===e.length){if(dr(i))return!1;o=!0}}else{const c=8&i?u:e[++a];if(8&i&&null!==t.attrs){if(!ur(t.attrs,c,n)){if(dr(i))return!1;o=!0}continue}const l=fr(8&i?"class":u,r,cr(t),n);if(-1===l){if(dr(i))return!1;o=!0;continue}if(""!==c){let t;t=l>s?"":r[l+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==or(e,c,0)||2&i&&c!==t){if(dr(i))return!1;o=!0}}}}else{if(!o&&!dr(i)&&!dr(u))return!1;if(o&&dr(u))continue;o=!1,i=u|1&i}}return dr(i)||o}function dr(t){return 0==(1&t)}function fr(t,e,n,i){if(null===e)return-1;let r=0;if(i||!n){let n=!1;for(;r<e.length;){const i=e[r];if(i===t)return r;if(3===i||6===i)n=!0;else{if(1===i||2===i){let t=e[++r];for(;"string"==typeof t;)t=e[++r];continue}if(4===i)break;if(0===i){r+=4;continue}}r+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const i=t[n];if("number"==typeof i)return-1;if(i===e)return n;n++}return-1}(e,t)}function pr(t,e,n=!1){for(let i=0;i<e.length;i++)if(hr(t,e[i],n))return!0;return!1}function gr(t,e){t:for(let n=0;n<e.length;n++){const i=e[n];if(t.length===i.length){for(let e=0;e<t.length;e++)if(t[e]!==i[e])continue t;return!0}}return!1}function mr(t,e){return t?":not("+e.trim()+")":e}function yr(t){let e=t[0],n=1,i=2,r="",s=!1;for(;n<t.length;){let o=t[n];if("string"==typeof o)if(2&i){const e=t[++n];r+="["+o+(e.length>0?'="'+e+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""===r||dr(o)||(e+=mr(s,r),r=""),i=o,s=s||!dr(i);n++}return""!==r&&(e+=mr(s,r)),e}const vr={};function _r(t){const e=t[3];return Te(e)?e[3]:e}function br(t){return xr(t[13])}function wr(t){return xr(t[4])}function xr(t){for(;null!==t&&!Te(t);)t=t[4];return t}function Er(t){Cr(sn(),rn(),Tn()+t,hn())}function Cr(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&In(e,i,n)}else{const i=t.preOrderHooks;null!==i&&Pn(e,i,0,n)}On(n)}function Sr(t,e){return t<<17|e<<2}function kr(t){return t>>17&32767}function Tr(t){return 2|t}function Or(t){return(131068&t)>>2}function Ar(t,e){return-131069&t|e<<2}function Mr(t){return 1|t}function Nr(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const r=n[i],s=n[i+1];if(-1!==s){const n=t.data[s];_n(r),n.contentQueries(2,e[s],s)}}}function Dr(t,e,n){return He(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Ir(t,e,n,i,r,s,o,a,u,c){const l=e.blueprint.slice();return l[0]=r,l[2]=140|i,Je(l),l[3]=l[15]=t,l[8]=n,l[10]=o||t&&t[10],l[11]=a||t&&t[11],l[12]=u||t&&t[12]||null,l[9]=c||t&&t[9]||null,l[6]=s,l[16]=2==e.type?t[16]:l,l}function Pr(t,e,n,i,r,s){const o=n+Ce,a=t.data[o]||function(t,e,n,i,r,s){const o=an(),a=cn(),u=a?o:o&&o.parent,c=t.data[n]=qr(0,u&&u!==e?u:null,i,n,r,s);return null===t.firstChild&&(t.firstChild=c),o&&(!a||null!=o.child||null===c.parent&&2!==o.type?a||(o.next=c):o.child=c),c}(t,e,o,i,r,s);return un(a,!0),a}function jr(t,e,n){wn(e,e[6]);try{const i=t.viewQuery;null!==i&&ds(1,i,n);const r=t.template;null!==r&&Rr(t,e,r,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Nr(t,e),t.staticViewQueries&&ds(2,t.viewQuery,n);const s=t.components;null!==s&&function(t,e){for(let n=0;n<e.length;n++)as(t,e[n])}(e,s)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),i}finally{e[2]&=-5,kn()}}function Lr(t,e,n,i){const r=e[2];if(256==(256&r))return;wn(e,e[6]);const s=hn();try{Je(e),en.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&Rr(t,e,n,2,i);const o=3==(3&r);if(!s)if(o){const n=t.preOrderCheckHooks;null!==n&&In(e,n,null)}else{const n=t.preOrderHooks;null!==n&&Pn(e,n,0,null),jn(e,0)}if(function(t){for(let e=br(t);null!==e;e=wr(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const n=t[e],i=n[3];0==(1024&n[2])&&tn(i,1),n[2]|=1024}}}(e),function(t){for(let e=br(t);null!==e;e=wr(e))for(let t=Se;t<e.length;t++){const n=e[t],i=n[1];Ze(n)&&Lr(i,n,i.template,n[8])}}(e),null!==t.contentQueries&&Nr(t,e),!s)if(o){const n=t.contentCheckHooks;null!==n&&In(e,n)}else{const n=t.contentHooks;null!==n&&Pn(e,n,1),jn(e,1)}!function(t,e){try{const n=t.expandoInstructions;if(null!==n){let i=t.expandoStartIndex,r=-1,s=-1;for(let t=0;t<n.length;t++){const o=n[t];"number"==typeof o?o<=0?(s=0-o,On(s),i+=9+n[++t],r=i):i+=o:(null!==o&&(mn(i,r),o(2,e[r])),r++)}}}finally{On(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)os(t,e[n])}(e,a);const u=t.viewQuery;if(null!==u&&ds(2,u,i),!s)if(o){const n=t.viewCheckHooks;null!==n&&In(e,n)}else{const n=t.viewHooks;null!==n&&Pn(e,n,2),jn(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),s||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,tn(e[3],-1))}finally{kn()}}function Fr(t,e,n,i){const r=e[10],s=!hn(),o=Xe(e);try{s&&!o&&r.begin&&r.begin(),o&&jr(t,e,i),Lr(t,e,n,i)}finally{s&&!o&&r.end&&r.end()}}function Rr(t,e,n,i,r){const s=Tn();try{On(-1),2&i&&e.length>Ce&&Cr(t,e,0,hn()),n(i,r)}finally{On(s)}}function zr(t,e,n){if(Oe(e)){const i=e.directiveEnd;for(let r=e.directiveStart;r<i;r++){const e=t.data[r];e.contentQueries&&e.contentQueries(1,n[r],r)}}}function Br(t,e,n){nn()&&(function(t,e,n,i){const r=n.directiveStart,s=n.directiveEnd;t.firstCreatePass||ii(n,e),ir(i,e);const o=n.initialInputs;for(let a=r;a<s;a++){const i=t.data[a],s=Ne(i);s&&ns(e,n,i);const u=di(e,t,a,n);ir(u,e),null!==o&&is(0,a-r,u,i,0,o),s&&($e(n.index,e)[8]=u)}}(t,e,n,Ye(n,e)),128==(128&n.flags)&&function(t,e,n){const i=n.directiveStart,r=n.directiveEnd,s=t.expandoInstructions,o=t.firstCreatePass,a=n.index-Ce,u=en.lFrame.currentDirectiveIndex;try{On(a);for(let n=i;n<r;n++){const i=t.data[n],r=e[n];yn(n),null!==i.hostBindings||0!==i.hostVars||null!==i.hostAttrs?Xr(i,r):o&&s.push(null)}}finally{On(-1),yn(u)}}(t,e,n))}function Vr(t,e,n=Ye){const i=e.localNames;if(null!==i){let r=e.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?n(e,t):t[o];t[r++]=a}}}function Hr(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=Gr(1,-1,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function Gr(t,e,n,i,r,s,o,a,u,c){const l=Ce+i,h=l+r,d=function(t,e){const n=[];for(let i=0;i<e;i++)n.push(i<t?null:vr);return n}(l,h),f="function"==typeof c?c():c;return d[1]={type:t,id:e,blueprint:d,template:n,queries:null,viewQuery:a,node:null,data:d.slice().fill(null,l),bindingStartIndex:l,expandoStartIndex:h,expandoInstructions:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:u,consts:f,incompleteFirstPass:!1}}function Ur(t,e,n,i){const r=ps(e);r.push(n),t.firstCreatePass&&function(t){return t.cleanup||(t.cleanup=[])}(t).push(i,r.length-1)}function qr(t,e,n,i,r,s){return{type:n,index:i,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Yr(t,e,n){for(let i in t)if(t.hasOwnProperty(i)){const r=t[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(e,r):n[i]=[e,r]}return n}function Wr(t,e,n,i){let r=!1;if(nn()){const s=function(t,e,n){const i=t.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];pr(n,o.selectors,!1)&&(r||(r=[]),ai(ii(n,e),t,o.type),Ne(o)?(2&n.flags&&rr(n),Kr(t,n),r.unshift(o)):r.push(o))}return r}(t,e,n),o=null===i?null:{"":-1};if(null!==s){let i=0;r=!0,ts(n,t.data.length,s.length);for(let t=0;t<s.length;t++){const e=s[t];e.providersResolver&&e.providersResolver(e)}Zr(t,n,s.length);let a=!1,u=!1;for(let r=0;r<s.length;r++){const c=s[r];n.mergedAttrs=Vn(n.mergedAttrs,c.hostAttrs),es(t,e,c),Jr(t.data.length-1,c,o),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128);const l=c.type.prototype;!a&&(l.ngOnChanges||l.ngOnInit||l.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index-Ce),a=!0),u||!l.ngOnChanges&&!l.ngDoCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index-Ce),u=!0),$r(t,c),i+=c.hostVars}!function(t,e){const n=e.directiveEnd,i=t.data,r=e.attrs,s=[];let o=null,a=null;for(let u=e.directiveStart;u<n;u++){const t=i[u],n=t.inputs,c=null===r||cr(e)?null:rs(n,r);s.push(c),o=Yr(n,u,o),a=Yr(t.outputs,u,a)}null!==o&&(o.hasOwnProperty("class")&&(e.flags|=16),o.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=s,e.inputs=o,e.outputs=a}(t,n),Qr(t,e,i)}o&&function(t,e,n){if(e){const i=t.localNames=[];for(let t=0;t<e.length;t+=2){const r=n[e[t+1]];if(null==r)throw new Error(`Export of name '${e[t+1]}' not found!`);i.push(e[t],r)}}}(n,i,o)}return n.mergedAttrs=Vn(n.mergedAttrs,n.attrs),r}function $r(t,e){const n=t.expandoInstructions;n.push(e.hostBindings),0!==e.hostVars&&n.push(e.hostVars)}function Qr(t,e,n){for(let i=0;i<n;i++)e.push(vr),t.blueprint.push(vr),t.data.push(null)}function Xr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Zr(t,e,n){const i=Ce-e.index,r=t.data.length-(1048575&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(i,r,n)}function Kr(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Jr(t,e,n){if(n){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)n[e.exportAs[i]]=t;Ne(e)&&(n[""]=t)}}function ts(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function es(t,e,n){t.data.push(n);const i=n.factory||(n.factory=xe(n.type)),r=new Rn(i,Ne(n),null);t.blueprint.push(r),e.push(r)}function ns(t,e,n){const i=Ye(e,t),r=Hr(n),s=t[10],o=us(t,Ir(t,r,null,n.onPush?64:16,i,e,s,s.createRenderer(i,n)));t[e.index]=o}function is(t,e,n,i,r,s){const o=s[e];if(null!==o){const t=i.setInput;for(let e=0;e<o.length;){const r=o[e++],s=o[e++],a=o[e++];null!==t?i.setInput(n,a,r,s):n[s]=a}}}function rs(t,e){let n=null,i=0;for(;i<e.length;){const r=e[i];if(0!==r)if(5!==r){if("number"==typeof r)break;t.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,t[r],e[i+1])),i+=2}else i+=2;else i+=4}return n}function ss(t,e,n,i){return new Array(t,!0,!1,e,null,0,i,n,null,null)}function os(t,e){const n=$e(e,t);if(Ze(n)){const t=n[1];80&n[2]?Lr(t,n,t.template,n[8]):n[5]>0&&function t(e){for(let i=br(e);null!==i;i=wr(i))for(let e=Se;e<i.length;e++){const n=i[e];if(1024&n[2]){const t=n[1];Lr(t,n,t.template,n[8])}else n[5]>0&&t(n)}const n=e[1].components;if(null!==n)for(let i=0;i<n.length;i++){const r=$e(n[i],e);Ze(r)&&r[5]>0&&t(r)}}(n)}}function as(t,e){const n=$e(e,t),i=n[1];!function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(i,n),jr(i,n,n[8])}function us(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function cs(t){for(;t;){t[2]|=64;const e=_r(t);if(De(t)&&!e)return t;t=e}return null}function ls(t,e,n){const i=e[10];i.begin&&i.begin();try{Lr(t,e,t.template,n)}catch(r){throw gs(e,r),r}finally{i.end&&i.end()}}function hs(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],i=Qe(n),r=i[1];Fr(r,i,r.template,n)}}(t[8])}function ds(t,e,n){_n(0),e(t,n)}const fs=(()=>Promise.resolve(null))();function ps(t){return t[7]||(t[7]=[])}function gs(t,e){const n=t[9],i=n?n.get(_i,null):null;i&&i.handleError(e)}function ms(t,e,n,i,r){for(let s=0;s<n.length;){const o=n[s++],a=n[s++],u=e[o],c=t.data[o];null!==c.setInput?c.setInput(u,r,i,a):u[a]=r}}function ys(t,e){const n=e[3];return-1===t.index?Te(n)?n:null:n}function vs(t,e){const n=ys(t,e);return n?Ms(e[11],n[7]):null}function _s(t,e,n,i,r){if(null!=i){let s,o=!1;Te(i)?s=i:ke(i)&&(o=!0,i=i[0]);const a=Ue(i);0===t&&null!==n?null==r?Os(e,n,a):Ts(e,n,a,r||null):1===t&&null!==n?Ts(e,n,a,r||null):2===t?function(t,e,n){const i=Ms(t,e);i&&function(t,e,n,i){He(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=s&&function(t,e,n,i,r){const s=n[7];s!==Ue(n)&&_s(e,t,i,s,r);for(let o=Se;o<n.length;o++){const r=n[o];js(r[1],r,t,e,i,s)}}(e,t,s,n,r)}}function bs(t,e,n,i){const r=vs(t.node,e);r&&js(t,e,e[11],n?1:2,r,i)}function ws(t,e){const n=t[9],i=n.indexOf(e);1024&e[2]&&tn(e[3],-1),n.splice(i,1)}function xs(t,e){if(t.length<=Se)return;const n=Se+e,i=t[n];if(i){const r=i[17];null!==r&&r!==t&&ws(r,i),e>0&&(t[n-1][4]=i[4]);const s=ie(t,Se+e);bs(i[1],i,!1,null);const o=s[19];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Es(t,e){if(!(256&e[2])){const n=e[11];He(n)&&n.destroyNode&&js(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Ss(t[1],t);for(;e;){let n=null;if(ke(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)ke(e)&&Ss(e[1],e),e=Cs(e,t);null===e&&(e=t),ke(e)&&Ss(e[1],e),n=e&&e[4]}e=n}}(e)}}function Cs(t,e){let n;return ke(t)&&(n=t[6])&&2===n.type?ys(n,t):t[3]===e?null:t[3]}function Ss(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let i=0;i<n.length;i+=2){const t=e[n[i]];if(!(t instanceof Rn)){const e=n[i+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2)e[n+1].call(t[e[n]]);else e.call(t)}}}(t,e),function(t,e){const n=t.cleanup;if(null!==n){const t=e[7];for(let i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){const r=n[i+1],s="function"==typeof r?r(e):Ue(e[r]),o=t[n[i+2]],a=n[i+3];"boolean"==typeof a?s.removeEventListener(n[i],o,a):a>=0?t[a]():t[-a].unsubscribe(),i+=2}else n[i].call(t[n[i+1]]);e[7]=null}}(t,e);const n=e[6];n&&3===n.type&&He(e[11])&&e[11].destroy();const i=e[17];if(null!==i&&Te(e[3])){i!==e[3]&&ws(i,e);const n=e[19];null!==n&&n.detachView(t)}}}function ks(t,e,n){let i=e.parent;for(;null!=i&&(4===i.type||5===i.type);)i=(e=i).parent;if(null==i){const t=n[6];return 2===t.type?vs(t,n):n[0]}if(e&&5===e.type&&4&e.flags)return Ye(e,n).parentNode;if(2&i.flags){const e=t.data,n=e[e[i.index].directiveStart].encapsulation;if(n!==ce.ShadowDom&&n!==ce.Native)return null}return Ye(i,n)}function Ts(t,e,n,i){He(t)?t.insertBefore(e,n,i):e.insertBefore(n,i,!0)}function Os(t,e,n){He(t)?t.appendChild(e,n):e.appendChild(n)}function As(t,e,n,i){null!==i?Ts(t,e,n,i):Os(t,e,n)}function Ms(t,e){return He(t)?t.parentNode(e):e.parentNode}function Ns(t,e){if(2===t.type){const n=ys(t,e);return null===n?null:Is(n.indexOf(e,Se)-Se,n)}return 4===t.type||5===t.type?Ye(t,e):null}function Ds(t,e,n,i){const r=ks(t,i,e);if(null!=r){const t=e[11],s=Ns(i.parent||e[6],e);if(Array.isArray(n))for(let e=0;e<n.length;e++)As(t,r,n[e],s);else As(t,r,n,s)}}function Is(t,e){const n=Se+t+1;if(n<e.length){const t=e[n],i=t[1].firstChild;if(null!==i)return function t(e,n){if(null!==n){const i=n.type;if(3===i)return Ye(n,e);if(0===i)return Is(-1,e[n.index]);if(4===i||5===i){const i=n.child;if(null!==i)return t(e,i);{const t=e[n.index];return Te(t)?Is(-1,t):Ue(t)}}{const i=e[16],r=i[6],s=_r(i),o=r.projection[n.projection];return null!=o?t(s,o):t(e,n.next)}}return null}(t,i)}return e[7]}function Ps(t,e,n,i,r,s,o){for(;null!=n;){const a=i[n.index],u=n.type;o&&0===e&&(a&&ir(Ue(a),i),n.flags|=4),64!=(64&n.flags)&&(4===u||5===u?(Ps(t,e,n.child,i,r,s,!1),_s(e,t,r,a,s)):1===u?Ls(t,e,i,n,r,s):_s(e,t,r,a,s)),n=o?n.projectionNext:n.next}}function js(t,e,n,i,r,s){Ps(n,i,t.node.child,e,r,s,!1)}function Ls(t,e,n,i,r,s){const o=n[16],a=o[6].projection[i.projection];if(Array.isArray(a))for(let u=0;u<a.length;u++)_s(e,t,r,a[u],s);else Ps(t,e,a,o[3],r,s,!0)}function Fs(t,e,n){He(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function Rs(t,e,n){He(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}class zs{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._viewContainerRef=null}get rootNodes(){const t=this._lView;return null==t[0]?function t(e,n,i,r,s=!1){for(;null!==i;){const o=n[i.index];if(null!==o&&r.push(Ue(o)),Te(o))for(let e=Se;e<o.length;e++){const n=o[e],i=n[1].firstChild;null!==i&&t(n[1],n,i,r)}const a=i.type;if(4===a||5===a)t(e,n,i.child,r);else if(1===a){const e=n[16],s=e[6].projection[i.projection];if(Array.isArray(s))r.push(...s);else{const n=_r(e);t(n[1],n,s,r,!0)}}i=s?i.projectionNext:i.next}return r}(t[1],t,t[6].child,[]):[]}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){const t=this._viewContainerRef.indexOf(this);t>-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}Es(this._lView[1],this._lView)}onDestroy(t){Ur(this._lView[1],this._lView,null,t)}markForCheck(){cs(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ls(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){dn(!0);try{ls(t,e,n)}finally{dn(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,js(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Bs extends zs{constructor(t){super(t),this._view=t}detectChanges(){hs(this._view)}checkNoChanges(){!function(t){dn(!0);try{hs(t)}finally{dn(!1)}}(this._view)}get context(){return null}}let Vs,Hs,Gs;function Us(t,e,n){return Vs||(Vs=class extends t{}),new Vs(Ye(e,n))}function qs(t,e,n,i){return Hs||(Hs=class extends t{constructor(t,e,n){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Ir(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];const i=this._declarationView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),jr(e,n,t),new zs(n)}}),0===n.type?new Hs(i,n,Us(e,n,i)):null}function Ys(t,e,n,i){let r;Gs||(Gs=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return Us(e,this._hostTNode,this._hostView)}get injector(){return new gi(this._hostTNode,this._hostView)}get parentInjector(){const t=oi(this._hostTNode,this._hostView),e=Yn(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){const t=n.parent.injectorIndex;let e=n.parent;for(;null!=e.parent&&t==e.parent.injectorIndex;)e=e.parent;return e}let i=qn(t),r=e,s=e[6];for(;i>1;)r=r[15],s=r[6],i--;return s}(t,this._hostView,this._hostTNode);return Gn(t)&&null!=n?new gi(n,e):new gi(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-Se}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,r){const s=n||this.parentInjector;if(!r&&null==t.ngModule&&s){const t=s.get(te,null);t&&(r=t)}const o=t.create(s,i,void 0,r);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Te(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new Gs(e,e[6],e[3]);i.detach(i.indexOf(t))}}const r=this._adjustIndex(e);return function(t,e,n,i){const r=Se+i,s=n.length;i>0&&(n[r-1][4]=e),i<s-Se?(e[4]=n[r],ne(n,Se+i,e)):(n.push(e),e[4]=null),e[3]=n;const o=e[17];null!==o&&n!==o&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(i,n,this._lContainer,r),bs(i,n,!0,Is(r,this._lContainer)),t.attachToViewContainerRef(this),ne(this._lContainer[8],r,t),t}move(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(t,e)}indexOf(t){const e=this._lContainer[8];return null!==e?e.indexOf(t):-1}remove(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=xs(this._lContainer,e);n&&(ie(this._lContainer[8],e),Es(n[1],n))}detach(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=xs(this._lContainer,e);return n&&null!=ie(this._lContainer[8],e)?new zs(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const s=i[n.index];if(Te(s))r=s;else{let t;if(4===n.type)t=Ue(s);else if(t=i[11].createComment(""),De(i)){const e=i[11],r=Ye(n,i);Ts(e,Ms(e,r),t,function(t,e){return He(t)?t.nextSibling(e):e.nextSibling}(e,r))}else Ds(i[1],i,t,n);i[n.index]=r=ss(s,i,t,n),us(i,r)}return new Gs(r,n,i)}function Ws(t=!1){return function(t,e,n){if(!n&&Ae(t)){const n=$e(t.index,e);return new zs(n,n)}return 3===t.type||0===t.type||4===t.type||5===t.type?new zs(e[16],e):null}(an(),rn(),t)}let $s=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Qs(),t})();const Qs=Ws,Xs=new Rt("Set Injector scope."),Zs={},Ks={},Js=[];let to=void 0;function eo(){return void 0===to&&(to=new Jt),to}function no(t,e=null,n=null,i){return new io(t,n,e||eo(),i)}class io{constructor(t,e,n,i=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const r=[];e&&ee(e,n=>this.processProvider(n,t,e)),ee([t],t=>this.processInjectorType(t,[],r)),this.records.set(zt,oo(void 0,this));const s=this.records.get(Xs);this.scope=null!=s?s.value:null,this.source=i||("object"==typeof t?null:wt(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=Bt,n=ut.Default){this.assertNotDestroyed();const i=Yt(this);try{if(!(n&ut.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(r=t)||"object"==typeof r&&r instanceof Rt)&&ft(t);e=n&&this.injectableDefInScope(n)?oo(ro(t),Zs):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&ut.Self?eo():this.parent).get(t,e=n&ut.Optional&&e===Bt?null:e)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(wt(t)),i)throw s;return function(t,e,n,i){const r=t.ngTempTokenPath;throw e[Ht]&&r.unshift(e[Ht]),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let r=wt(e);if(Array.isArray(e))r=e.map(wt).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):wt(i)))}r=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${t.replace(Vt,"\n ")}`}("\n"+t.message,r,n,i),t.ngTokenPath=r,t.ngTempTokenPath=null,t}(s,t,"R3InjectorError",this.source)}throw s}finally{Yt(i)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(wt(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=St(t)))return!1;let i=gt(t);const r=null==i&&t.ngModule||void 0,s=void 0===r?t:r,o=-1!==n.indexOf(s);if(void 0!==r&&(i=gt(r)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(s);try{ee(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:i}=t[e];ee(i,t=>this.processProvider(t,n,i||Js))}}this.injectorDefTypes.add(s),this.records.set(s,oo(i.factory,Zs));const a=i.providers;if(null!=a&&!o){const e=t;ee(a,t=>this.processProvider(t,e,a))}return void 0!==r&&void 0!==t.providers}processProvider(t,e,n){let i=uo(t=St(t))?t:St(t&&t.provide);const r=function(t,e,n){return ao(t)?oo(void 0,t.useValue):oo(so(t,e,n),Zs)}(t,e,n);if(uo(t)||!0!==t.multi){const t=this.records.get(i);t&&void 0!==t.multi&&sr()}else{let e=this.records.get(i);e?void 0===e.multi&&sr():(e=oo(void 0,Zs,!0),e.factory=()=>Kt(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,r)}hydrate(t,e){var n;return e.value===Ks?function(t){throw new Error("Cannot instantiate cyclic dependency! "+t)}(wt(t)):e.value===Zs&&(e.value=Ks,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function ro(t){const e=ft(t),n=null!==e?e.factory:xe(t);if(null!==n)return n;const i=gt(t);if(null!==i)return i.factory;if(t instanceof Rt)throw new Error(`Token ${wt(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=re(e,"?");throw new Error(`Can't resolve all parameters for ${wt(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[mt]||t[_t]||t[vt]&&t[vt]());if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function so(t,e,n){let i=void 0;if(uo(t)){const e=St(t);return xe(e)||ro(e)}if(ao(t))i=()=>St(t.useValue);else if((r=t)&&r.useFactory)i=()=>t.useFactory(...Kt(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>Qt(St(t.useExisting));else{const r=St(t&&(t.useClass||t.provide));if(r||function(t,e,n){let i="";throw t&&e&&(i=` - only instances of Provider and Type are allowed, got: [${e.map(t=>t==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${wt(t)}'`+i)}(e,n,t),!function(t){return!!t.deps}(t))return xe(r)||ro(r);i=()=>new r(...Kt(t.deps))}var r;return i}function oo(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function ao(t){return null!==t&&"object"==typeof t&&Gt in t}function uo(t){return"function"==typeof t}const co=function(t,e,n){return function(t,e=null,n=null,i){const r=no(t,e,n,i);return r._resolveInjectorDefTypes(),r}({name:n},e,t,n)};let lo=(()=>{class t{static create(t,e){return Array.isArray(t)?co(t,e,""):co(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Bt,t.NULL=new Jt,t.\u0275prov=ht({token:t,providedIn:"any",factory:()=>Qt(zt)}),t.__NG_ELEMENT_ID__=-1,t})();function ho(t,e,n){let i=n?t.styles:null,r=n?t.classes:null,s=0;if(null!==e)for(let o=0;o<e.length;o++){const t=e[o];"number"==typeof t?s=t:1==s?r=xt(r,t):2==s&&(i=xt(i,t+": "+e[++o]+";"))}n?t.styles=i:t.stylesWithoutHost=i,n?t.classes=r:t.classesWithoutHost=r}let fo=null;function po(){if(!fo){const t=Mt.Symbol;if(t&&t.iterator)fo=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(fo=n)}}}return fo}class go{constructor(t){this.wrapped=t}static wrap(t){return new go(t)}static unwrap(t){return go.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof go}}function mo(t){return!!yo(t)&&(Array.isArray(t)||!(t instanceof Map)&&po()in t)}function yo(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function vo(t,e,n){return t[e]=n}function _o(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function bo(t,e,n,i){const r=rn();return _o(r,pn(),e)&&(sn(),function(t,e,n,i,r,s){const o=Ye(t,e),a=e[11];if(null==i)He(a)?a.removeAttribute(o,n,s):o.removeAttribute(n);else{const e=null==r?Wn(i):r(i,t.tagName||"",n);He(a)?a.setAttribute(o,n,e,s):s?o.setAttributeNS(s,n,e):o.setAttribute(n,e)}}(An(),r,t,e,n,i)),bo}function wo(t,e,n,i){return _o(t,pn(),n)?e+Wn(n)+i:vr}function xo(t,e,n,i,r,s,o,a){const u=rn(),c=sn(),l=t+Ce,h=c.firstCreatePass?function(t,e,n,i,r,s,o,a,u){const c=e.consts,l=Pr(e,n[6],t,0,o||null,Ke(c,a));Wr(e,n,l,Ke(c,u)),Dn(e,l);const h=l.tViews=Gr(2,-1,i,r,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c),d=qr(0,null,2,-1,null,null);return d.injectorIndex=l.injectorIndex,h.node=d,null!==e.queries&&(e.queries.template(e,l),h.queries=e.queries.embeddedTView(l)),l}(t,c,u,e,n,i,r,s,o):c.data[l];un(h,!1);const d=u[11].createComment("");Ds(c,u,d,h),ir(d,u),us(u,u[l]=ss(d,u,d,h)),Me(h)&&Br(c,u,h),null!=o&&Vr(u,h,a)}function Eo(t,e=ut.Default){const n=rn();return null==n?Qt(t,e):ui(an(),n,St(t),e)}function Co(t,e,n){const i=rn();return _o(i,pn(),e)&&function(t,e,n,i,r,s,o,a){const u=Ye(e,n);let c,l=e.inputs;var h;null!=l&&(c=l[i])?(ms(t,n,c,i,r),Ae(e)&&function(t,e){const n=$e(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3===e.type&&(i="class"===(h=i)?"className":"for"===h?"htmlFor":"formaction"===h?"formAction":"innerHtml"===h?"innerHTML":"readonly"===h?"readOnly":"tabindex"===h?"tabIndex":h,r=null!=o?o(r,e.tagName||"",i):r,He(s)?s.setProperty(u,i,r):Bn(i)||(u.setProperty?u.setProperty(i,r):u[i]=r))}(sn(),An(),i,t,e,i[11],n),Co}function So(t,e,n,i,r){const s=r?"class":"style";ms(t,n,e.inputs[s],s,i)}function ko(t,e,n,i){const r=rn(),s=sn(),o=Ce+t,a=r[11],u=r[o]=Dr(e,a,en.lFrame.currentNamespace),c=s.firstCreatePass?function(t,e,n,i,r,s,o){const a=e.consts,u=Ke(a,s),c=Pr(e,n[6],t,3,r,u);return Wr(e,n,c,Ke(a,o)),null!==c.attrs&&ho(c,c.attrs,!1),null!==c.mergedAttrs&&ho(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(t,s,r,0,e,n,i):s.data[o];un(c,!0);const l=c.mergedAttrs;null!==l&&zn(a,u,l);const h=c.classes;null!==h&&Rs(a,u,h);const d=c.styles;null!==d&&Fs(a,u,d),Ds(s,r,u,c),0===en.lFrame.elementDepthCount&&ir(u,r),en.lFrame.elementDepthCount++,Me(c)&&(Br(s,r,c),zr(s,c,r)),null!==i&&Vr(r,c)}function To(){let t=an();cn()?ln():(t=t.parent,un(t,!1));const e=t;en.lFrame.elementDepthCount--;const n=sn();n.firstCreatePass&&(Dn(n,t),Oe(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&So(n,e,rn(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&So(n,e,rn(),e.stylesWithoutHost,!1)}function Oo(t,e,n,i){ko(t,e,n,i),To()}function Ao(t,e,n){(function(t,e,n){const i=rn(),r=sn(),s=t+Ce,o=r.firstCreatePass?function(t,e,n,i,r){const s=e.consts,o=Ke(s,i),a=Pr(e,n[6],t,4,"ng-container",o);return null!==o&&ho(a,o,!0),Wr(e,n,a,Ke(s,r)),null!==e.queries&&e.queries.elementStart(e,a),a}(t,r,i,e,n):r.data[s];un(o,!0);const a=i[s]=i[11].createComment("");Ds(r,i,a,o),ir(a,i),Me(o)&&(Br(r,i,o),zr(r,o,i)),null!=n&&Vr(i,o)})(t,e,n),function(){let t=an();const e=sn();cn()?ln():(t=t.parent,un(t,!1)),e.firstCreatePass&&(Dn(e,t),Oe(t)&&e.queries.elementEnd(t))}()}function Mo(){return rn()}function No(t){return!!t&&"function"==typeof t.then}function Do(t,e,n=!1,i){const r=rn(),s=sn(),o=an();return function(t,e,n,i,r,s,o=!1,a){const u=Me(i),c=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),l=ps(e);let h=!0;if(3===i.type){const d=Ye(i,e),f=a?a(d):le,p=f.target||d,g=l.length,m=a?t=>a(Ue(t[i.index])).target:i.index;if(He(n)){let o=null;if(!a&&u&&(o=function(t,e,n,i){const r=t.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const t=r[s];if(t===n&&r[s+1]===i){const t=e[7],n=r[s+2];return t.length>n?t[n]:null}"string"==typeof t&&(s+=2)}return null}(t,e,r,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=s,o.__ngLastListenerFn__=s,h=!1;else{s=Po(i,e,s,!1);const t=n.listen(f.name||p,r,s);l.push(s,t),c&&c.push(r,m,g,g+1)}}else s=Po(i,e,s,!0),p.addEventListener(r,s,o),l.push(s),c&&c.push(r,m,g,o)}const d=i.outputs;let f;if(h&&null!==d&&(f=d[r])){const t=f.length;if(t)for(let n=0;n<t;n+=2){const t=e[f[n]][f[n+1]].subscribe(s),o=l.length;l.push(s,t),c&&c.push(r,i.index,o,-(o+1))}}}(s,r,r[11],o,t,e,n,i),Do}function Io(t,e,n){try{return!1!==e(n)}catch(i){return gs(t,i),!1}}function Po(t,e,n,i){return function r(s){if(s===Function)return n;const o=2&t.flags?$e(t.index,e):e;0==(32&e[2])&&cs(o);let a=Io(e,n,s),u=r.__ngNextListenerFn__;for(;u;)a=Io(e,u,s)&&a,u=u.__ngNextListenerFn__;return i&&!1===a&&(s.preventDefault(),s.returnValue=!1),a}}function jo(t=1){return function(t){return(en.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,en.lFrame.contextLView))[8]}(t)}function Lo(t,e){let n=null;const i=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let r=0;r<e.length;r++){const s=e[r];if("*"!==s){if(null===i?pr(t,s,!0):gr(i,s))return r}else n=r}return n}function Fo(t){const e=rn()[16][6];if(!e.projection){const n=e.projection=re(t?t.length:1,null),i=n.slice();let r=e.child;for(;null!==r;){const e=t?Lo(r,t):0;null!==e&&(i[e]?i[e].projectionNext=r:n[e]=r,i[e]=r),r=r.next}}}function Ro(t,e=0,n){const i=rn(),r=sn(),s=Pr(r,i[6],t,1,null,n||null);null===s.projection&&(s.projection=e),ln(),function(t,e,n){Ls(e[11],0,e,n,ks(t,n,e),Ns(n.parent||e[6],e))}(r,i,s)}const zo=[];function Bo(t,e,n,i,r){const s=t[n+1],o=null===e;let a=i?kr(s):Or(s),u=!1;for(;0!==a&&(!1===u||o);){const n=t[a+1];Vo(t[a],e)&&(u=!0,t[a+1]=i?Mr(n):Tr(n)),a=i?kr(n):Or(n)}u&&(t[n+1]=i?Tr(s):Mr(s))}function Vo(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&ae(t,e)>=0}const Ho={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Go(t){return t.substring(Ho.key,Ho.keyEnd)}function Uo(t,e){const n=Ho.textEnd;return n===e?-1:(e=Ho.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,Ho.key=e,n),qo(t,e,n))}function qo(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function Yo(t,e,n){return Qo(t,e,n,!1),Yo}function Wo(t,e){return Qo(t,e,null,!0),Wo}function $o(t,e){for(let n=function(t){return function(t){Ho.key=0,Ho.keyEnd=0,Ho.value=0,Ho.valueEnd=0,Ho.textEnd=t.length}(t),Uo(t,qo(t,0,Ho.textEnd))}(e);n>=0;n=Uo(e,n))se(t,Go(e),!0)}function Qo(t,e,n,i){const r=rn(),s=sn(),o=gn(2);s.firstUpdatePass&&Ko(s,t,o,i),e!==vr&&_o(r,o,e)&&ea(s,s.data[Tn()+Ce],r,r[11],t,r[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=wt(ki(t)))),t}(e,n),i,o)}function Xo(t,e,n,i){const r=sn(),s=gn(2);r.firstUpdatePass&&Ko(r,null,s,i);const o=rn();if(n!==vr&&_o(o,s,n)){const a=r.data[Tn()+Ce];if(ra(a,i)&&!Zo(r,s)){let t=i?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=xt(t,n||"")),So(r,a,o,n,i)}else!function(t,e,n,i,r,s,o,a){r===vr&&(r=zo);let u=0,c=0,l=0<r.length?r[0]:null,h=0<s.length?s[0]:null;for(;null!==l||null!==h;){const d=u<r.length?r[u+1]:void 0,f=c<s.length?s[c+1]:void 0;let p=null,g=void 0;l===h?(u+=2,c+=2,d!==f&&(p=h,g=f)):null===h||null!==l&&l<h?(u+=2,p=l):(c+=2,p=h,g=f),null!==p&&ea(t,e,n,i,p,g,o,a),l=u<r.length?r[u]:null,h=c<s.length?s[c]:null}}(r,a,o,o[11],o[s+1],o[s+1]=function(t,e,n){if(null==n||""===n)return zo;const i=[],r=ki(n);if(Array.isArray(r))for(let s=0;s<r.length;s++)t(i,r[s],!0);else if("object"==typeof r)for(const s in r)r.hasOwnProperty(s)&&t(i,s,r[s]);else"string"==typeof r&&e(i,r);return i}(t,e,n),i,s)}}function Zo(t,e){return e>=t.expandoStartIndex}function Ko(t,e,n,i){const r=t.data;if(null===r[n+1]){const s=r[Tn()+Ce],o=Zo(t,n);ra(s,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const r=function(t){const e=en.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let s=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(n=ta(n=Jo(null,t,e,n,i),e.attrs,i),s=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==r)if(n=Jo(r,t,e,n,i),null===s){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==Or(i))return t[kr(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=Jo(null,t,e,n[1],i),n=ta(n,e.attrs,i),function(t,e,n,i){t[kr(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else s=function(t,e,n){let i=void 0;const r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s<r;s++)i=ta(i,t[s].hostAttrs,n);return ta(i,e.attrs,n)}(t,e,i)}return void 0!==s&&(i?e.residualClasses=s:e.residualStyles=s),n}(r,s,e,i),function(t,e,n,i,r,s){let o=s?e.classBindings:e.styleBindings,a=kr(o),u=Or(o);t[i]=n;let c,l=!1;if(Array.isArray(n)){const t=n;c=t[1],(null===c||ae(t,c)>0)&&(l=!0)}else c=n;if(r)if(0!==u){const e=kr(t[a+1]);t[i+1]=Sr(e,a),0!==e&&(t[e+1]=Ar(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=Sr(a,0),0!==a&&(t[a+1]=Ar(t[a+1],i)),a=i;else t[i+1]=Sr(u,0),0===a?a=i:t[u+1]=Ar(t[u+1],i),u=i;l&&(t[i+1]=Tr(t[i+1])),Bo(t,c,i,!0),Bo(t,c,i,!1),function(t,e,n,i,r){const s=r?t.residualClasses:t.residualStyles;null!=s&&"string"==typeof e&&ae(s,e)>=0&&(n[i+1]=Mr(n[i+1]))}(e,c,t,i,s),o=Sr(a,u),s?e.classBindings=o:e.styleBindings=o}(r,s,e,n,o,i)}}function Jo(t,e,n,i,r){let s=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(s=e[a],i=ta(i,s.hostAttrs,r),s!==t);)a++;return null!==t&&(n.directiveStylingLast=a),i}function ta(t,e,n){const i=n?1:2;let r=-1;if(null!==e)for(let s=0;s<e.length;s++){const o=e[s];"number"==typeof o?r=o:r===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),se(t,o,!!n||e[++s]))}return void 0===t?null:t}function ea(t,e,n,i,r,s,o,a){if(3!==e.type)return;const u=t.data,c=u[a+1];ia(1==(1&c)?na(u,e,n,r,Or(c),o):void 0)||(ia(s)||2==(2&c)&&(s=na(u,null,n,r,a,o)),function(t,e,n,i,r){const s=He(t);if(e)r?s?t.addClass(n,i):n.classList.add(i):s?t.removeClass(n,i):n.classList.remove(i);else{const e=-1==i.indexOf("-")?void 0:2;null==r?s?t.removeStyle(n,i,e):n.style.removeProperty(i):s?t.setStyle(n,i,r,e):n.style.setProperty(i,r)}}(i,o,qe(Tn(),n),r,s))}function na(t,e,n,i,r,s){const o=null===e;let a=void 0;for(;r>0;){const e=t[r],s=Array.isArray(e),u=s?e[1]:e,c=null===u;let l=n[r+1];l===vr&&(l=c?zo:void 0);let h=c?oe(l,i):u===i?l:void 0;if(s&&!ia(h)&&(h=oe(e,i)),ia(h)&&(a=h,o))return a;const d=t[r+1];r=o?kr(d):Or(d)}if(null!==e){let t=s?e.residualClasses:e.residualStyles;null!=t&&(a=oe(t,i))}return a}function ia(t){return void 0!==t}function ra(t,e){return 0!=(t.flags&(e?16:32))}function sa(t,e=""){const n=rn(),i=sn(),r=t+Ce,s=i.firstCreatePass?Pr(i,n[6],t,3,null,null):i.data[r],o=n[r]=function(t,e){return He(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);Ds(i,n,o,s),un(s,!1)}function oa(t){return aa("",t,""),oa}function aa(t,e,n){const i=rn(),r=wo(i,t,e,n);return r!==vr&&function(t,e,n){const i=qe(e,t),r=t[11];He(r)?r.setValue(i,n):i.textContent=n}(i,Tn(),r),aa}function ua(t,e){const n=Qe(t)[1],i=n.data.length-1;Dn(n,{directiveStart:i,directiveEnd:i+1})}function ca(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const i=[t];for(;e;){let r=void 0;if(Ne(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");r=e.\u0275dir}if(r){if(n){i.push(r);const e=t;e.inputs=la(t.inputs),e.declaredInputs=la(t.declaredInputs),e.outputs=la(t.outputs);const n=r.hostBindings;n&&fa(t,n);const s=r.viewQuery,o=r.contentQueries;if(s&&ha(t,s),o&&da(t,o),lt(t.inputs,r.inputs),lt(t.declaredInputs,r.declaredInputs),lt(t.outputs,r.outputs),Ne(r)&&r.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(r.data.animation)}}const e=r.features;if(e)for(let i=0;i<e.length;i++){const r=e[i];r&&r.ngInherit&&r(t),r===ca&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let i=t.length-1;i>=0;i--){const r=t[i];r.hostVars=e+=r.hostVars,r.hostAttrs=Vn(r.hostAttrs,n=Vn(n,r.hostAttrs))}}(i)}function la(t){return t===le?{}:t===he?[]:t}function ha(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function da(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,r)=>{e(t,i,r),n(t,i,r)}:e}function fa(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}function pa(t,e,n,i,r){if(t=St(t),Array.isArray(t))for(let s=0;s<t.length;s++)pa(t[s],e,n,i,r);else{const s=sn(),o=rn();let a=uo(t)?t:St(t.provide),u=so(t);const c=an(),l=1048575&c.providerIndexes,h=c.directiveStart,d=c.providerIndexes>>20;if(uo(t)||!t.multi){const i=new Rn(u,r,Eo),f=ya(a,e,r?l:l+d,h);-1===f?(ai(ii(c,o),s,a),ga(s,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(i),o.push(i)):(n[f]=i,o[f]=i)}else{const f=ya(a,e,l+d,h),p=ya(a,e,l,l+d),g=f>=0&&n[f],m=p>=0&&n[p];if(r&&!m||!r&&!g){ai(ii(c,o),s,a);const l=function(t,e,n,i,r){const s=new Rn(t,n,Eo);return s.multi=[],s.index=e,s.componentProviders=0,ma(s,r,i&&!n),s}(r?_a:va,n.length,r,i,u);!r&&m&&(n[p].providerFactory=l),ga(s,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(l),o.push(l)}else ga(s,t,f>-1?f:p,ma(n[r?p:f],u,!r&&i));!r&&i&&m&&n[p].componentProviders++}}}function ga(t,e,n,i){const r=uo(e);if(r||e.useClass){const s=(e.useClass||e).prototype.ngOnDestroy;if(s){const o=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[i,s]):o[t+1].push(i,s)}else o.push(n,s)}}}function ma(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function ya(t,e,n,i){for(let r=n;r<i;r++)if(e[r]===t)return r;return-1}function va(t,e,n,i){return ba(this.multi,[])}function _a(t,e,n,i){const r=this.multi;let s;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=di(n,n[1],this.providerFactory.index,i);s=e.slice(0,t),ba(r,s);for(let n=t;n<e.length;n++)s.push(e[n])}else s=[],ba(r,s);return s}function ba(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function wa(t,e=[]){return n=>{n.providersResolver=(n,i)=>function(t,e,n){const i=sn();if(i.firstCreatePass){const r=Ne(t);pa(n,i.data,i.blueprint,r,!0),pa(e,i.data,i.blueprint,r,!1)}}(n,i?i(t):t,e)}}class xa{}class Ea{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${wt(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let Ca=(()=>{class t{}return t.NULL=new Ea,t})(),Sa=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>ka(t),t})();const ka=function(t){return Us(t,an(),rn())};class Ta{}var Oa=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});let Aa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ma(),t})();const Ma=function(){const t=rn(),e=$e(an().index,t);return function(t){const e=t[11];if(He(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(ke(e)?e:t)};let Na=(()=>{class t{}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>null}),t})();class Da{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ia=new Da("10.1.0");class Pa{constructor(){}supports(t){return mo(t)}create(t){return new La(t)}}const ja=(t,e)=>e;class La{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||ja}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,r=null;for(;e||n;){const s=!n||e&&e.currentIndex<Ba(n,i,r)?e:n,o=Ba(s,i,r),a=s.currentIndex;if(s===n)i--,n=n._nextRemoved;else if(e=e._next,null==s.previousIndex)i++;else{r||(r=[]);const t=o-i,e=a-i;if(t!=e){for(let n=0;n<t;n++){const i=n<r.length?r[n]:r[n]=0,s=i+n;e<=s&&s<t&&(r[n]=i+1)}r[s.previousIndex]=e-t}}o!==a&&t(s,o,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!mo(t))throw new Error(`Error trying to diff '${wt(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,i,r=this._itHead,s=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],i=this._trackByFn(e,n),null!==r&&Object.is(r.trackById,i)?(s&&(r=this._verifyReinsertion(r,n,i,e)),Object.is(r.item,n)||this._addIdentityChange(r,n)):(r=this._mismatch(r,n,i,e),s=!0),r=r._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[po()]();let i;for(;!(i=n.next()).done;)e(i.value)}}(t,t=>{i=this._trackByFn(e,t),null!==r&&Object.is(r.trackById,i)?(s&&(r=this._verifyReinsertion(r,t,i,e)),Object.is(r.item,t)||this._addIdentityChange(r,t)):(r=this._mismatch(r,t,i,e),s=!0),r=r._next,e++}),this.length=e;return this._truncate(r),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t,e;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,r,i)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,r,i)):t=this._addAfter(new Fa(e,n),r,i),t}_verifyReinsertion(t,e,n,i){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?t=this._reinsertAfter(r,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,r=t._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new za),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new za),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Fa{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Ra{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class za{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Ra,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Ba(t,e,n){const i=t.previousIndex;if(null===i)return i;let r=0;return n&&i<n.length&&(r=n[i]),i+e+r}class Va{constructor(){}supports(t){return t instanceof Map||yo(t)}create(){return new Ha}}class Ha{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||yo(t)))throw new Error(`Error trying to diff '${wt(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}const n=new Ga(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class Ga{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let Ua=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new at,new st]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>new t([new Pa])}),t})(),qa=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new at,new st]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>new t([new Va])}),t})();const Ya=[new Va],Wa=new Ua([new Pa]),$a=new qa(Ya);let Qa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Xa(t,Sa),t})();const Xa=function(t,e){return qs(t,e,an(),rn())};let Za=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ka(t,Sa),t})();const Ka=function(t,e){return Ys(t,e,an(),rn())},Ja={};class tu extends Ca{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=we(t);return new iu(e,this.ngModule)}}function eu(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const nu=new Rt("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Qn});class iu extends xa{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(yr).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return eu(this.componentDef.inputs)}get outputs(){return eu(this.componentDef.outputs)}create(t,e,n,i){const r=(i=i||this.ngModule)?function(t,e){return{get:(n,i,r)=>{const s=t.get(n,Ja,r);return s!==Ja||i===Ja?s:e.get(n,i,r)}}}(t,i.injector):t,s=r.get(Ta,Ge),o=r.get(Na,null),a=s.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(He(t))return t.selectRootElement(e,n===ce.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):Dr(u,s.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?ze:"math"===e?"http://www.w3.org/1998/MathML/":null}(u)),l=this.componentDef.onPush?576:528,h={components:[],scheduler:Qn,clean:fs,playerHandler:null,flags:0},d=Gr(0,-1,null,1,0,null,null,null,null,null),f=Ir(null,d,h,l,null,null,s,a,o,r);let p,g;wn(f,null);try{const t=function(t,e,n,i,r,s){const o=n[1];n[20]=t;const a=Pr(o,null,0,3,null,null),u=a.mergedAttrs=e.hostAttrs;null!==u&&(ho(a,u,!0),null!==t&&(zn(r,t,u),null!==a.classes&&Rs(r,t,a.classes),null!==a.styles&&Fs(r,t,a.styles)));const c=i.createRenderer(t,e),l=Ir(n,Hr(e),null,e.onPush?64:16,n[20],a,i,c,void 0);return o.firstCreatePass&&(ai(ii(a,n),o,e.type),Kr(o,a),ts(a,n.length,1)),us(n,l),n[20]=l}(c,this.componentDef,f,s,a);if(c)if(n)zn(a,c,["ng-version",Ia.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,r=2;for(;i<t.length;){let s=t[i];if("string"==typeof s)2===r?""!==s&&e.push(s,t[++i]):8===r&&n.push(s);else{if(!dr(r))break;r=s}i++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&zn(a,c,t),e&&e.length>0&&Rs(a,c,e.join(" "))}if(g=We(d,0),void 0!==e){const t=g.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const i=e[n];t.push(null!=i?Array.from(i):null)}}p=function(t,e,n,i,r){const s=n[1],o=function(t,e,n){const i=an();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Zr(t,i,1),es(t,e,n));const r=di(e,t,e.length-1,i);ir(r,e);const s=Ye(i,e);return s&&ir(s,e),r}(s,n,e);i.components.push(o),t[8]=o,r&&r.forEach(t=>t(o,e)),e.contentQueries&&e.contentQueries(1,o,n.length-1);const a=an();if(s.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){On(a.index-Ce);const t=n[1];$r(t,e),Qr(t,n,e.hostVars),Xr(e,o)}return o}(t,this.componentDef,f,h,[ua]),jr(d,f,null)}finally{kn()}const m=new ru(this.componentType,p,Us(Sa,g,f),f,g);return d.node.child=g,m}}class ru extends class{}{constructor(t,e,n,i,r){super(),this.location=n,this._rootLView=i,this._tNode=r,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new Bs(i),function(t,e,n,i){let r=t.node;null==r&&(t.node=r=qr(0,null,2,-1,null,null)),i[6]=r}(i[1],0,0,i),this.componentType=t}get injector(){return new gi(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const su=void 0;var ou=["en",[["a","p"],["AM","PM"],su],[["AM","PM"],su,su],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],su,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],su,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",su,"{1} 'at' {0}",su],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let au={};function uu(t){return t in au||(au[t]=Mt.ng&&Mt.ng.common&&Mt.ng.common.locales&&Mt.ng.common.locales[t]),au[t]}var cu=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});const lu="en-US";let hu=lu;function du(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(hu=t.toLowerCase().replace(/_/g,"-"))}const fu=new Map;class pu extends te{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new tu(this);const n=Ee(t),i=t[jt]||null;i&&du(i),this._bootstrapComponents=Jn(n.bootstrap),this._r3Injector=no(t,e,[{provide:te,useValue:this},{provide:Ca,useValue:this.componentFactoryResolver}],wt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=lo.THROW_IF_NOT_FOUND,n=ut.Default){return t===lo||t===te||t===zt?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class gu extends class{}{constructor(t){super(),this.moduleType=t,null!==Ee(t)&&function t(e){if(null!==e.\u0275mod.id){const t=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${wt(e)} vs ${wt(e.name)}`)})(t,fu.get(t),e),fu.set(t,e)}let n=e.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(e=>t(e))}(t)}create(t){return new pu(this.moduleType,t)}}function mu(t,e,n,i){return vu(rn(),fn(),t,e,n,i)}function yu(t,e){const n=t[e];return n===vr?void 0:n}function vu(t,e,n,i,r,s){const o=e+n;return _o(t,o,r)?vo(t,o+1,s?i.call(s,r):i(r)):yu(t,o+1)}const _u=class extends k{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let i,r=t=>null,s=()=>null;t&&"object"==typeof t?(i=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(r=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(s=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(i=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(s=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(i,r,s);return t instanceof p&&t.add(o),o}};function bu(){return this._results[po()]()}class wu{constructor(){this.dirty=!0,this._results=[],this.changes=new _u,this.length=0;const t=po(),e=wu.prototype;e[t]||(e[t]=bu)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=function t(e,n){void 0===n&&(n=e);for(let i=0;i<e.length;i++){let r=e[i];Array.isArray(r)?(n===e&&(n=e.slice(0,i)),t(r,n)):n!==e&&n.push(r)}return n}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class xu{constructor(t){this.queryList=t,this.matches=null}clone(){return new xu(this.queryList)}setDirty(){this.queryList.setDirty()}}class Eu{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,i=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);i.push(this.queries[n.indexInDeclarationView].clone())}return new Eu(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==Fu(t,e).matches&&this.queries[e].setDirty()}}class Cu{constructor(t,e,n,i=null){this.predicate=t,this.descendants=e,this.isStatic=n,this.read=i}}class Su{constructor(t=[]){this.queries=t}elementStart(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let n=0;n<this.length;n++){const i=null!==e?e.length:0,r=this.getByIndex(n).embeddedTView(t,i);r&&(r.indexInDeclarationView=n,null!==e?e.push(r):e=[r])}return null!==e?new Su(e):null}template(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class ku{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new ku(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&4===n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const n=this.metadata.predicate;if(Array.isArray(n))for(let i=0;i<n.length;i++){const r=n[i];this.matchTNodeWithReadOption(t,e,Tu(e,r)),this.matchTNodeWithReadOption(t,e,hi(e,t,r,!1,!1))}else n===Qa?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,hi(e,t,n,!1,!1))}matchTNodeWithReadOption(t,e,n){if(null!==n){const i=this.metadata.read;if(null!==i)if(i===Sa||i===Za||i===Qa&&0===e.type)this.addMatch(e.index,-2);else{const n=hi(e,t,i,!1,!1);null!==n&&this.addMatch(e.index,n)}else this.addMatch(e.index,n)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function Tu(t,e){const n=t.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===e)return n[i+1];return null}function Ou(t,e,n,i){return-1===n?function(t,e){return 3===t.type||4===t.type?Us(Sa,t,e):0===t.type?qs(Qa,Sa,t,e):null}(e,t):-2===n?function(t,e,n){return n===Sa?Us(Sa,e,t):n===Qa?qs(Qa,Sa,e,t):n===Za?Ys(Za,Sa,e,t):void 0}(t,e,i):di(t,t[1],n,e)}function Au(t,e,n,i){const r=e[19].queries[i];if(null===r.matches){const i=t.data,s=n.matches,o=[];for(let t=0;t<s.length;t+=2){const r=s[t];o.push(r<0?null:Ou(e,i[r],s[t+1],n.metadata.read))}r.matches=o}return r.matches}function Mu(t){const e=rn(),n=sn(),i=vn();_n(i+1);const r=Fu(n,i);if(t.dirty&&Xe(e)===r.metadata.isStatic){if(null===r.matches)t.reset([]);else{const s=r.crossesNgTemplate?function t(e,n,i,r){const s=e.queries.getByIndex(i),o=s.matches;if(null!==o){const a=Au(e,n,s,i);for(let e=0;e<o.length;e+=2){const i=o[e];if(i>0)r.push(a[e/2]);else{const s=o[e+1],a=n[-i];for(let e=Se;e<a.length;e++){const n=a[e];n[17]===n[3]&&t(n[1],n,s,r)}if(null!==a[9]){const e=a[9];for(let n=0;n<e.length;n++){const i=e[n];t(i[1],i,s,r)}}}}}return r}(n,e,i,[]):Au(n,e,r,i);t.reset(s),t.notifyOnChanges()}return!0}return!1}function Nu(t,e,n){Du(sn(),rn(),t,e,n,!1)}function Du(t,e,n,i,r,s){t.firstCreatePass&&(Lu(t,new Cu(n,i,s,r),-1),s&&(t.staticViewQueries=!0)),ju(t,e)}function Iu(t,e,n,i){!function(t,e,n,i,r,s,o,a){t.firstCreatePass&&(Lu(t,new Cu(n,i,false,r),o.index),function(t,e){const n=t.contentQueries||(t.contentQueries=[]);e!==(t.contentQueries.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(t,a)),ju(t,e)}(sn(),rn(),e,n,i,0,an(),t)}function Pu(){return t=rn(),e=vn(),t[19].queries[e].queryList;var t,e}function ju(t,e){const n=new wu;Ur(t,e,n,n.destroy),null===e[19]&&(e[19]=new Eu),e[19].queries.push(new xu(n))}function Lu(t,e,n){null===t.queries&&(t.queries=new Su),t.queries.track(new ku(e,n))}function Fu(t,e){return t.queries.getByIndex(e)}function Ru(t,e){return qs(Qa,Sa,t,e)}const zu=new Rt("Application Initializer");let Bu=(()=>{class t{constructor(t){this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const e=this.appInits[n]();No(e)&&t.push(e)}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Qt(zu,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Vu=new Rt("AppId"),Hu={provide:Vu,useFactory:function(){return`${Gu()}${Gu()}${Gu()}`},deps:[]};function Gu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Uu=new Rt("Platform Initializer"),qu=new Rt("Platform ID"),Yu=new Rt("appBootstrapListener");let Wu=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const $u=new Rt("LocaleId"),Qu=new Rt("DefaultCurrencyCode");class Xu{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Zu=function(t){return new gu(t)},Ku=Zu,Ju=function(t){return Promise.resolve(Zu(t))},tc=function(t){const e=Zu(t),n=Jn(Ee(t).declarations).reduce((t,e)=>{const n=we(e);return n&&t.push(new iu(n)),t},[]);return new Xu(e,n)},ec=tc,nc=function(t){return Promise.resolve(tc(t))};let ic=(()=>{class t{constructor(){this.compileModuleSync=Ku,this.compileModuleAsync=Ju,this.compileModuleAndAllComponentsSync=ec,this.compileModuleAndAllComponentsAsync=nc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const rc=(()=>Promise.resolve(0))();function sc(t){"undefined"==typeof Zone?rc.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class oc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new _u(!1),this.onMicrotaskEmpty=new _u(!1),this.onStable=new _u(!1),this.onError=new _u(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.wtfZoneSpec&&(n._inner=n._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=e,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let t=Mt.requestAnimationFrame,e=Mt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Mt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,lc(t),cc(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),lc(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,i,r,s,o,a)=>{try{return hc(t),n.invokeTask(r,s,o,a)}finally{e&&"eventTask"===s.type&&e(),dc(t)}},onInvoke:(e,n,i,r,s,o,a)=>{try{return hc(t),e.invoke(i,r,s,o,a)}finally{dc(t)}},onHasTask:(e,n,i,r)=>{e.hasTask(i,r),n===i&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,lc(t),cc(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,n,i,r)=>(e.handleError(i,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!oc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(oc.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+i,t,uc,ac,ac);try{return r.runTask(s,e,n)}finally{r.cancelTask(s)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function ac(){}const uc={};function cc(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function lc(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function hc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function dc(t){t._nesting--,cc(t)}class fc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new _u,this.onMicrotaskEmpty=new _u,this.onStable=new _u,this.onError=new _u}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let pc=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{oc.assertNotInAngularZone(),sc(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())sc(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(Qt(oc))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),gc=(()=>{class t{constructor(){this._applications=new Map,vc.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return vc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class mc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let yc,vc=new mc;const _c=new Rt("AllowMultipleToken");function bc(t,e,n=[]){const i="Platform: "+e,r=new Rt(i);return(e=[])=>{let s=wc();if(!s||s.injector.get(_c,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{const t=n.concat(e).concat({provide:r,useValue:!0},{provide:Xs,useValue:"platform"});!function(t){if(yc&&!yc.destroyed&&!yc.injector.get(_c,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");yc=t.get(xc);const e=t.get(Uu,null);e&&e.forEach(t=>t())}(lo.create({providers:t,name:i}))}return function(t){const e=wc();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(r)}}function wc(){return yc&&!yc.destroyed?yc:null}let xc=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new fc:("zone.js"===t?void 0:t)||new oc({enableLongStackTrace:Ni(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),i=[{provide:oc,useValue:n}];return n.run(()=>{const e=lo.create({providers:i,parent:this.injector,name:t.moduleType.name}),r=t.create(e),s=r.injector.get(_i,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return r.onDestroy(()=>Sc(this._modules,r)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{s.handleError(t)}})),function(t,e,n){try{const i=n();return No(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(s,n,()=>{const t=r.injector.get(Bu);return t.runInitializers(),t.donePromise.then(()=>(du(r.injector.get($u,lu)||lu),this._moduleDoBootstrap(r),r))})})}bootstrapModule(t,e=[]){const n=Ec({},e);return function(t,e,n){const i=new gu(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Cc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${wt(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Qt(lo))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function Ec(t,e){return Array.isArray(e)?e.reduce(Ec,t):Object.assign(Object.assign({},t),e)}let Cc=(()=>{class t{constructor(t,e,n,i,r,s){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Ni(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new w(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new w(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{oc.assertNotInAngularZone(),sc(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{oc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=W(o,a.pipe(t=>{return $()((e=tt,function(t){let n;n="function"==typeof e?e:function(){return e};const i=Object.create(t,K);return i.source=t,i.subjectFactory=n,i})(t));var e}))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof xa?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(te),r=n.create(lo.NULL,[],e||n.selector,i);r.onDestroy(()=>{this._unloadComponent(r)});const s=r.injector.get(pc,null);return s&&r.injector.get(gc).registerApplication(r.location.nativeElement,s),this._loadComponent(r),Ni()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Sc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Yu,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),Sc(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Qt(oc),Qt(Wu),Qt(lo),Qt(_i),Qt(Ca),Qt(Bu))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function Sc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const kc=bc(null,"core",[{provide:qu,useValue:"unknown"},{provide:xc,deps:[lo]},{provide:gc,deps:[]},{provide:Wu,deps:[]}]),Tc=[{provide:Cc,useClass:Cc,deps:[oc,Wu,lo,_i,Ca,Bu]},{provide:nu,deps:[oc],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Bu,useClass:Bu,deps:[[new st,zu]]},{provide:ic,useClass:ic,deps:[]},Hu,{provide:Ua,useFactory:function(){return Wa},deps:[]},{provide:qa,useFactory:function(){return $a},deps:[]},{provide:$u,useFactory:function(t){return du(t=t||"undefined"!=typeof $localize&&$localize.locale||lu),t},deps:[[new rt($u),new st,new at]]},{provide:Qu,useValue:"USD"}];let Oc=(()=>{class t{constructor(t){}}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(Qt(Cc))},providers:Tc}),t})();class Ac extends p{constructor(t,e){super()}schedule(t,e=0){return this}}class Mc extends Ac{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,i=void 0;try{this.work(t)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}class Nc extends Mc{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}let Dc=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class Ic extends Dc{constructor(t,e=Dc.now){super(t,()=>Ic.delegate&&Ic.delegate!==this?Ic.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return Ic.delegate&&Ic.delegate!==this?Ic.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}class Pc extends Ic{}const jc=new Pc(Nc),Lc=new w(t=>t.complete());function Fc(t){return t?function(t){return new w(e=>t.schedule(()=>e.complete()))}(t):Lc}function Rc(...t){let e=t[t.length-1];return O(e)?(t.pop(),R(t,e)):Y(t)}let zc=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return Rc(this.value);case"E":return t=this.error,new w(e=>e.error(t));case"C":return Fc()}var t;throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();class Bc extends y{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(Bc.dispatch,this.delay,new Vc(t,this.destination)))}_next(t){this.scheduleMessage(zc.createNext(t))}_error(t){this.scheduleMessage(zc.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(zc.createComplete()),this.unsubscribe()}}class Vc{constructor(t,e){this.notification=t,this.destination=e}}class Hc extends k{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new Gc(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,r=n.length;let s;if(this.closed)throw new E;if(this.isStopped||this.hasError?s=p.EMPTY:(this.observers.push(t),s=new C(this,t)),i&&t.add(t=new Bc(t,i)),e)for(let o=0;o<r&&!t.closed;o++)t.next(n[o]);else for(let o=0;o<r&&!t.closed;o++)t.next(n[o].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),s}_getNow(){return(this.scheduler||jc).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,n=this._windowTime,i=this._events,r=i.length;let s=0;for(;s<r&&!(t-i[s].time<n);)s++;return r>e&&(s=Math.max(s,r-e)),s>0&&i.splice(0,s),i}}class Gc{constructor(t,e){this.time=t,this.value=e}}class Uc{constructor(t){this.project=t}call(t,e){return e.subscribe(new qc(t,this.project))}}class qc extends V{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new B(this),i=this.destination;i.add(n),this.innerSubscription=H(t,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const Yc=(()=>{const t=Element.prototype;return t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector})(),Wc={schedule(t,e){const n=setTimeout(t,e);return()=>clearTimeout(n)},scheduleBeforeRender(t){if("undefined"==typeof window)return Wc.schedule(t,0);if(void 0===window.requestAnimationFrame)return Wc.schedule(t,16);const e=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(e)}};function $c(t,e,n){let i=n;return function(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}(t)&&e.some((e,n)=>!("*"===e||!function(t,e){return Yc.call(t,e)}(t,e)||(i=n,0))),i}class Qc{constructor(t,e){this.componentFactory=e.get(Ca).resolveComponentFactory(t)}create(t){return new Xc(this.componentFactory,t)}}class Xc{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new Hc(1),this.events=this.eventEmitters.pipe(function t(e,n){return"function"==typeof n?i=>i.pipe(t((t,i)=>z(e(t,i)).pipe(A((e,r)=>n(t,e,i,r))))):t=>t.lift(new Uc(e))}(t=>W(...t))),this.componentRef=null,this.inputChanges=null,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set,this.ngZone=this.injector.get(oc),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null!==this.componentRef&&null===this.scheduledDestroyFn&&(this.scheduledDestroyFn=Wc.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){this.runInZone(()=>{var n,i;null!==this.componentRef?((n=e)!==(i=this.getInputValue(t))&&(n==n||i==i)||void 0===e&&this.unchangedInputs.has(t))&&(this.recordInputChange(t,e),this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)})}initializeComponent(t){const e=lo.create({providers:[],parent:this.injector}),n=function(t,e){const n=t.childNodes,i=e.map(()=>[]);let r=-1;e.some((t,e)=>"*"===t&&(r=e,!0));for(let s=0,o=n.length;s<o;++s){const t=n[s],o=$c(t,e,r);-1!==o&&i[o].push(t)}return i}(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,n,t),this.implementsOnChanges="function"==typeof this.componentRef.instance.ngOnChanges,this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Cc).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:t})=>{this.implementsOnChanges&&this.unchangedInputs.add(t),this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:e,templateName:n})=>t.instance[e].pipe(A(t=>({name:n,value:t}))));this.eventEmitters.next(e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Wc.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(null!==this.componentRef&&!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const n=this.inputChanges[t];if(n)return void(n.currentValue=e);const i=this.unchangedInputs.has(t);this.unchangedInputs.delete(t);const r=i?void 0:this.getInputValue(t);this.inputChanges[t]=new Ie(r,e,i)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class Zc extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function Kc(t,e){t.forEach(({propName:t})=>{Object.defineProperty(e,t,{get(){return this.ngElementStrategy.getInputValue(t)},set(e){this.ngElementStrategy.setInputValue(t,e)},configurable:!0,enumerable:!0})})}let Jc=null;function tl(){return Jc}const el=new Rt("DocumentToken");let nl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:il,token:t,providedIn:"platform"}),t})();function il(){return Qt(rl)}let rl=(()=>{class t extends nl{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=tl().getLocation(),this._history=tl().getHistory()}getBaseHrefFromDOM(){return tl().getBaseHref(this._doc)}onPopState(t){tl().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){tl().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){sl()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){sl()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(Qt(el))},t.\u0275prov=ht({factory:ol,token:t,providedIn:"platform"}),t})();function sl(){return!!window.history.pushState}function ol(){return new rl(Qt(el))}function al(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function ul(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function cl(t){return t&&"?"!==t[0]?"?"+t:t}let ll=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:hl,token:t,providedIn:"root"}),t})();function hl(t){const e=Qt(el).location;return new fl(Qt(nl),e&&e.origin||"")}const dl=new Rt("appBaseHref");let fl=(()=>{class t extends ll{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return al(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+cl(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const r=this.prepareExternalUrl(n+cl(i));this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,i){const r=this.prepareExternalUrl(n+cl(i));this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Qt(nl),Qt(dl,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),pl=(()=>{class t{constructor(t,e){this._subject=new _u,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=ul(ml(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+cl(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,ml(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+cl(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+cl(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(Qt(ll),Qt(nl))},t.normalizeQueryParams=cl,t.joinWithSlash=al,t.stripTrailingSlash=ul,t.\u0275prov=ht({factory:gl,token:t,providedIn:"root"}),t})();function gl(){return new pl(Qt(ll),Qt(nl))}function ml(t){return t.replace(/\/index.html$/,"")}var yl=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({});class vl{}let _l=(()=>{class t extends vl{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=uu(e);if(n)return n;const i=e.split("-")[0];if(n=uu(i),n)return n;if("en"===i)return ou;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[cu.PluralCase]}(e||this.locale)(t)){case yl.Zero:return"zero";case yl.One:return"one";case yl.Two:return"two";case yl.Few:return"few";case yl.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(Qt($u))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),bl=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(mo(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+wt(t.item));this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(Eo(Ua),Eo(qa),Eo(Sa),Eo(Aa))},t.\u0275dir=_e({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class wl{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let xl=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){Ni()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new wl(null,this._ngForOf,-1,-1),null===i?void 0:i),r=new El(t,n);e.push(r)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const r=this._viewContainer.get(n);this._viewContainer.move(r,i);const s=new El(t,r);e.push(s)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,i=this._viewContainer.length;n<i;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=i,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Eo(Za),Eo(Qa),Eo(Ua))},t.\u0275dir=_e({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class El{constructor(t,e){this.record=t,this.view=e}}let Cl=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new Sl,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){kl("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){kl("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Eo(Za),Eo(Qa))},t.\u0275dir=_e({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class Sl{constructor(){this.$implicit=null,this.ngIf=null}}function kl(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${wt(e)}'.`)}let Tl=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(let t of n)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}return t.\u0275fac=function(e){return new(e||t)(Eo(Za))},t.\u0275dir=_e({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[Pe]}),t})();class Ol{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Al{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Ml=new Al,Nl=new Ol;let Dl=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if(No(e))return Ml;if(function(t){return!!t&&"function"==typeof t.subscribe}(e))return Nl;throw Error(`InvalidPipeArgument: '${e}' for pipe '${wt(t)}'`)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(function(t=ut.Default){const e=Ws(!0);if(null!=e||t&ut.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}())},t.\u0275pipe=be({name:"async",type:t,pure:!1}),t})(),Il=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[{provide:vl,useClass:_l}]}),t})();class Pl extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new Pl,Jc||(Jc=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=Ll||(Ll=document.querySelector("base"),Ll)?Ll.getAttribute("href"):null;return null==e?null:(n=e,jl||(jl=document.createElement("a")),jl.setAttribute("href",n),"/"===jl.pathname.charAt(0)?jl.pathname:"/"+jl.pathname);var n}resetBaseElement(){Ll=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return function(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,r]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(r)}return null}(document.cookie,t)}}let jl,Ll=null;const Fl=new Rt("TRANSITION_ID"),Rl=[{provide:zu,useFactory:function(t,e,n){return()=>{n.get(Bu).donePromise.then(()=>{const n=tl();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[Fl,el,lo],multi:!0}];class zl{static init(){var t;t=new zl,vc=t}addToWindow(t){Mt.getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},Mt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Mt.getAllAngularRootElements=()=>t.getAllRootElements(),Mt.frameworkStabilizers||(Mt.frameworkStabilizers=[]),Mt.frameworkStabilizers.push(t=>{const e=Mt.getAllAngularTestabilities();let n=e.length,i=!1;const r=function(e){i=i||e,n--,0==n&&t(i)};e.forEach((function(t){t.whenStable(r)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const i=t.getTestability(e);return null!=i?i:n?tl().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const Bl=new Rt("EventManagerPlugins");let Vl=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let i=0;i<n.length;i++){const e=n[i];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error("No event manager plugin found for event "+t)}}return t.\u0275fac=function(e){return new(e||t)(Qt(Bl),Qt(oc))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class Hl{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const i=tl().getGlobalEventTarget(this._doc,t);if(!i)throw new Error(`Unsupported event target ${i} for event ${e}`);return this.addEventListener(i,e,n)}}let Gl=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Ul=(()=>{class t extends Gl{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>tl().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(Qt(el))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const ql={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Yl=/%COMP%/g;function Wl(t,e,n){for(let i=0;i<e.length;i++){let r=e[i];Array.isArray(r)?Wl(t,r,n):(r=r.replace(Yl,t),n.push(r))}return n}function $l(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Ql=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Xl(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case ce.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new Zl(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case ce.Native:case ce.ShadowDom:return new Kl(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=Wl(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(Qt(Vl),Qt(Ul),Qt(Vu))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class Xl{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(ql[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const r=ql[i];r?t.setAttributeNS(r,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=ql[n];i?t.removeAttributeNS(i,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,i){i&Oa.DashCase?t.style.setProperty(e,n,i&Oa.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&Oa.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,$l(n)):this.eventManager.addEventListener(t,e,$l(n))}}class Zl extends Xl{constructor(t,e,n,i){super(t),this.component=n;const r=Wl(i+"-"+n.id,n.styles,[]);e.addStyles(r),this.contentAttr="_ngcontent-%COMP%".replace(Yl,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(Yl,i+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class Kl extends Xl{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=i,this.shadowRoot=i.encapsulation===ce.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const r=Wl(i.id,i.styles,[]);for(let s=0;s<r.length;s++){const t=document.createElement("style");t.textContent=r[s],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let Jl=(()=>{class t extends Hl{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(Qt(el))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const th=["alt","control","meta","shift"],eh={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},nh={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},ih={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let rh=(()=>{class t extends Hl{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,i){const r=t.parseEventName(n),s=t.eventCallback(r.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>tl().onAndCancel(e,r.domEventName,s))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const r=t._normalizeKey(n.pop());let s="";if(th.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),s+=t+".")}),s+=r,0!=n.length||0===r.length)return null;const o={};return o.domEventName=i,o.fullKey=s,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&nh.hasOwnProperty(e)&&(e=nh[e]))}return eh[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),th.forEach(i=>{i!=n&&(0,ih[i])(t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return r=>{t.getEventFullKey(r)===e&&i.runGuarded(()=>n(r))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(Qt(el))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),sh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return Qt(oh)},token:t,providedIn:"root"}),t})(),oh=(()=>{class t extends sh{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case er.NONE:return e;case er.HTML:return Ti(e,"HTML")?ki(e):Ji(this._doc,String(e));case er.STYLE:return Ti(e,"Style")?ki(e):e;case er.SCRIPT:if(Ti(e,"Script"))return ki(e);throw new Error("unsafe value used in a script context");case er.URL:return Oi(e),Ti(e,"URL")?ki(e):Li(String(e));case er.RESOURCE_URL:if(Ti(e,"ResourceURL"))return ki(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new wi(t)}bypassSecurityTrustStyle(t){return new xi(t)}bypassSecurityTrustScript(t){return new Ei(t)}bypassSecurityTrustUrl(t){return new Ci(t)}bypassSecurityTrustResourceUrl(t){return new Si(t)}}return t.\u0275fac=function(e){return new(e||t)(Qt(el))},t.\u0275prov=ht({factory:function(){return t=Qt(zt),new oh(t.get(el));var t},token:t,providedIn:"root"}),t})();const ah=bc(kc,"browser",[{provide:qu,useValue:"browser"},{provide:Uu,useValue:function(){Pl.makeCurrent(),zl.init()},multi:!0},{provide:el,useFactory:function(){return function(t){Be=t}(document),document},deps:[]}]),uh=[[],{provide:Xs,useValue:"root"},{provide:_i,useFactory:function(){return new _i},deps:[]},{provide:Bl,useClass:Jl,multi:!0,deps:[el,oc,qu]},{provide:Bl,useClass:rh,multi:!0,deps:[el]},[],{provide:Ql,useClass:Ql,deps:[Vl,Ul,Vu]},{provide:Ta,useExisting:Ql},{provide:Gl,useExisting:Ul},{provide:Ul,useClass:Ul,deps:[el]},{provide:pc,useClass:pc,deps:[oc]},{provide:Vl,useClass:Vl,deps:[Bl,oc]},[]];let ch=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:Vu,useValue:e.appId},{provide:Fl,useExisting:Vu},Rl]}}}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(Qt(t,12))},providers:uh,imports:[Il,Oc]}),t})();"undefined"!=typeof window&&window;class lh{}const hh="*";function dh(t,e){return{type:7,name:t,definitions:e,options:{}}}function fh(t,e=null){return{type:4,styles:e,timings:t}}function ph(t,e=null){return{type:2,steps:t,options:e}}function gh(t){return{type:6,styles:t,offset:null}}function mh(t,e,n){return{type:0,name:t,styles:e,options:n}}function yh(t){return{type:5,steps:t}}function vh(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function _h(t){Promise.resolve(null).then(t)}class bh{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){_h(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class wh{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,i=0;const r=this.players.length;0==r?_h(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==r&&this._onFinish()}),t.onDestroy(()=>{++n==r&&this._onDestroy()}),t.onStart(()=>{++i==r&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){let t=0;return this.players.forEach(e=>{const n=e.getPosition();t=Math.min(n,t)}),t}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function xh(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Eh(t){switch(t.length){case 0:return new bh;case 1:return t[0];default:return new wh(t)}}function Ch(t,e,n,i,r={},s={}){const o=[],a=[];let u=-1,c=null;if(i.forEach(t=>{const n=t.offset,i=n==u,l=i&&c||{};Object.keys(t).forEach(n=>{let i=n,a=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,o),a){case"!":a=r[n];break;case hh:a=s[n];break;default:a=e.normalizeStyleValue(n,i,a,o)}l[i]=a}),i||a.push(l),c=l,u=n}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function Sh(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&kh(n,"start",t)));break;case"done":t.onDone(()=>i(n&&kh(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&kh(n,"destroy",t)))}}function kh(t,e,n){const i=n.totalTime,r=Th(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),s=t._data;return null!=s&&(r._data=s),r}function Th(t,e,n,i,r="",s=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function Oh(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function Ah(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let Mh=(t,e)=>!1,Nh=(t,e)=>!1,Dh=(t,e,n)=>[];const Ih=xh();(Ih||"undefined"!=typeof Element)&&(Mh=(t,e)=>t.contains(e),Nh=(()=>{if(Ih||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):Nh}})(),Dh=(t,e,n)=>{let i=[];if(n)i.push(...t.querySelectorAll(e));else{const n=t.querySelector(e);n&&i.push(n)}return i});let Ph=null,jh=!1;function Lh(t){Ph||(Ph=("undefined"!=typeof document?document.body:null)||{},jh=!!Ph.style&&"WebkitAppearance"in Ph.style);let e=!0;return Ph.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in Ph.style,!e&&jh)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in Ph.style),e}const Fh=Nh,Rh=Mh,zh=Dh;function Bh(t){const e={};return Object.keys(t).forEach(n=>{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let Vh=(()=>{class t{validateStyleProperty(t){return Lh(t)}matchesElement(t,e){return Fh(t,e)}containsElement(t,e){return Rh(t,e)}query(t,e,n){return zh(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,r,s=[],o){return new bh(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Hh=(()=>{class t{}return t.NOOP=new Vh,t})();const Gh="ng-enter",Uh="ng-leave",qh="ng-trigger",Yh=".ng-trigger",Wh="ng-animating",$h=".ng-animating";function Qh(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Xh(parseFloat(e[1]),e[2])}function Xh(t,e){switch(e){case"s":return 1e3*t;default:return t}}function Zh(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,r=0,s="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};i=Xh(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(r=Xh(parseFloat(o),n[4]));const a=n[5];a&&(s=a)}else i=t;if(!n){let n=!1,s=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),r<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(s,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:r,easing:s}}(t,e,n)}function Kh(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function Jh(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else Kh(t,n);return n}function td(t,e,n){return n?e+":"+n+";":""}function ed(t){let e="";for(let n=0;n<t.style.length;n++){const i=t.style.item(n);e+=td(0,i,t.style.getPropertyValue(i))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=td(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n]));t.setAttribute("style",e)}function nd(t,e,n){t.style&&(Object.keys(e).forEach(i=>{const r=ld(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[r]),t.style[r]=e[i]}),xh()&&ed(t))}function id(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=ld(e);t.style[n]=""}),xh()&&ed(t))}function rd(t){return Array.isArray(t)?1==t.length?t[0]:ph(t):t}const sd=new RegExp("{{\\s*(.+?)\\s*}}","g");function od(t){let e=[];if("string"==typeof t){let n;for(;n=sd.exec(t);)e.push(n[1]);sd.lastIndex=0}return e}function ad(t,e,n){const i=t.toString(),r=i.replace(sd,(t,i)=>{let r=e[i];return e.hasOwnProperty(i)||(n.push("Please provide a value for the animation param "+i),r=""),r.toString()});return r==i?t:r}function ud(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const cd=/-+([a-z0-9])/g;function ld(t){return t.replace(cd,(...t)=>t[1].toUpperCase())}function hd(t,e){return 0===t||0===e}function dd(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let s=e[0],o=[];if(i.forEach(t=>{s.hasOwnProperty(t)||o.push(t),s[t]=n[t]}),o.length)for(var r=1;r<e.length;r++){let n=e[r];o.forEach((function(e){n[e]=pd(t,e)}))}}return e}function fd(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error("Unable to resolve animation metadata node #"+e.type)}}function pd(t,e){return window.getComputedStyle(t)[e]}const gd="*";function md(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(t=>function(t,e,n){if(":"==t[0]){const i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e)<parseFloat(t);default:return e.push(`The transition alias value "${t}" is not supported`),"* => *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const r=i[1],s=i[2],o=i[3];e.push(_d(r,o)),"<"!=s[0]||r==gd&&o==gd||e.push(_d(o,r))}(t,n,e)):n.push(t),n}const yd=new Set(["true","1"]),vd=new Set(["false","0"]);function _d(t,e){const n=yd.has(t)||vd.has(t),i=yd.has(e)||vd.has(e);return(r,s)=>{let o=t==gd||t==r,a=e==gd||e==s;return!o&&n&&"boolean"==typeof r&&(o=r?yd.has(t):vd.has(t)),!a&&i&&"boolean"==typeof s&&(a=s?yd.has(e):vd.has(e)),o&&a}}const bd=new RegExp("s*:selfs*,?","g");function wd(t,e,n){return new xd(t).build(e,n)}class xd{constructor(t){this._driver=t}build(t,e){const n=new Ed(e);return this._resetContextStyleTimingState(n),fd(this,rd(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const r=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,r.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const r=this.visitTransition(t,e);n+=r.queryCount,i+=r.depCount,s.push(r)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:r,transitions:s,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const r=new Set,s=i||{};if(n.styles.forEach(t=>{if(Cd(t)){const e=t;Object.keys(e).forEach(t=>{od(e[t]).forEach(t=>{s.hasOwnProperty(t)||r.add(t)})})}}),r.size){const n=ud(r.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=fd(this,rd(t.animation),e);return{type:1,matchers:md(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Sd(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>fd(this,t,e)),options:Sd(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const r=t.steps.map(t=>{e.currentTime=n;const r=fd(this,t,e);return i=Math.max(i,e.currentTime),r});return e.currentTime=i,{type:3,steps:r,options:Sd(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return kd(Zh(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=kd(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||Zh(i,e),kd(n.duration,n.delay,n.easing)}(t.timings,e.errors);let i;e.currentAnimateTimings=n;let r=t.styles?t.styles:gh({});if(5==r.type)i=this.visitKeyframes(r,e);else{let r=t.styles,s=!1;if(!r){s=!0;const t={};n.easing&&(t.easing=n.easing),r=gh(t)}e.currentTime+=n.duration+n.delay;const o=this.visitStyle(r,e);o.isEmptyStep=s,i=o}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==hh?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,r=null;return n.forEach(t=>{if(Cd(t)){const e=t,n=e.easing;if(n&&(r=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,r=e.currentTime;n&&r>0&&(r-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const s=e.collectedStyles[e.currentQuerySelector],o=s[n];let a=!0;o&&(r!=i&&r>=o.startTime&&i<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${i}ms"`),a=!1),r=o.startTime),a&&(s[n]={startTime:r,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},r=od(t);r.length&&r.forEach(t=>{i.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const r=[];let s=!1,o=!1,a=0;const u=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let u=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(Cd(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(Cd(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=u&&(i++,c=n.offset=u),o=o||c<0||c>1,s=s||c<a,a=c,r.push(c),n});o&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),s&&e.errors.push("Please ensure that all keyframe offsets are in order");const c=t.steps.length;let l=0;i>0&&i<c?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(l=1/(c-1));const h=c-1,d=e.currentTime,f=e.currentAnimateTimings,p=f.duration;return u.forEach((t,i)=>{const s=l>0?i==h?1:l*i:r[i],o=s*p;e.currentTime=d+f.delay+o,f.duration=o,this._validateStyleAst(t,e),t.offset=s,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:fd(this,rd(t.animation),e),options:Sd(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Sd(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Sd(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[r,s]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(bd,"")),[t=t.replace(/@\*/g,Yh).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,$h),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+r:r,Oh(e.collectedStyles,e.currentQuerySelector,{});const o=fd(this,rd(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:o,originalSelector:t.selector,options:Sd(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:Zh(t.timings,e.errors,!0);return{type:12,animation:fd(this,rd(t.animation),e),timings:n,options:null}}}class Ed{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Cd(t){return!Array.isArray(t)&&"object"==typeof t}function Sd(t){var e;return t?(t=Kh(t)).params&&(t.params=(e=t.params)?Kh(e):null):t={},t}function kd(t,e,n){return{duration:t,delay:e,easing:n}}function Td(t,e,n,i,r,s,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class Od{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const Ad=new RegExp(":enter","g"),Md=new RegExp(":leave","g");function Nd(t,e,n,i,r,s={},o={},a,u,c=[]){return(new Dd).buildKeyframes(t,e,n,i,r,s,o,a,u,c)}class Dd{buildKeyframes(t,e,n,i,r,s,o,a,u,c=[]){u=u||new Od;const l=new Pd(t,e,u,i,r,c,[]);l.options=a,l.currentTimeline.setStyles([s],null,l.errors,a),fd(this,n,l);const h=l.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,l.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[Td(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const i=e.createSubContext(t.options),r=e.currentTimeline.currentTime,s=this._visitSubInstructions(n,i,i.options);r!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let i=e.currentTimeline.currentTime;const r=null!=n.duration?Qh(n.duration):null,s=null!=n.delay?Qh(n.delay):null;return 0!==r&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,r,s);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),fd(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const r=t.options;if(r&&(r.params||r.delay)&&(i=e.createSubContext(r),i.transformIntoNewTimeline(),null!=r.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Id);const t=Qh(r.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>fd(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const r=t.options&&t.options.delay?Qh(t.options.delay):0;t.steps.forEach(s=>{const o=e.createSubContext(t.options);r&&o.delayNextStep(r),fd(this,s,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return Zh(e.params?ad(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const r=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(r):n.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,r=n.duration,s=e.createSubContext().currentTimeline;s.easing=n.easing,t.styles.forEach(t=>{s.forwardTime((t.offset||0)*r),s.setStyles(t.styles,t.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(i+r),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},r=i.delay?Qh(i.delay):0;r&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Id);let s=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{e.currentQueryIndex=i;const o=e.createSubContext(t.options,n);r&&o.delayNextStep(r),n===e.element&&(a=o.currentTimeline),fd(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,r=t.timings,s=Math.abs(r.duration),o=s*(e.currentQueryTotal-1);let a=s*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const u=e.currentTimeline;a&&u.delayNextStep(a);const c=u.currentTime;fd(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const Id={};class Pd{constructor(t,e,n,i,r,s,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=s,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Id,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new jd(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=Qh(n.duration)),null!=n.delay&&(i.delay=Qh(n.delay));const r=n.params;if(r){let t=i.params;t||(t=this.options.params={}),Object.keys(r).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=ad(r[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const i=e||this.element,r=new Pd(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(t){return this.previousNode=Id,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},r=new Ld(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,r,s){let o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(Ad,"."+this._enterClassName)).replace(Md,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return r||0!=o.length||s.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class jd{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new jd(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||hh,this._currentKeyframe[t]=hh}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const r=i&&i.params||{},s=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]=hh})):Jh(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(s).forEach(t=>{const e=ad(s[t],r,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:hh),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((r,s)=>{const o=Jh(r,!0);Object.keys(o).forEach(n=>{const i=o[n];"!"==i?t.add(n):i==hh&&e.add(n)}),n||(o.offset=s/this.duration),i.push(o)});const r=t.size?ud(t.values()):[],s=e.size?ud(e.values()):[];if(n){const t=i[0],e=Kh(t);t.offset=0,e.offset=1,i=[t,e]}return Td(this.element,i,r,s,this.duration,this.startTime,this.easing,!1)}}class Ld extends jd{constructor(t,e,n,i,r,s,o=!1){super(t,e,s.delay),this.element=e,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],s=n+e,o=e/s,a=Jh(t[0],!1);a.offset=0,r.push(a);const u=Jh(t[0],!1);u.offset=Fd(o),r.push(u);const c=t.length-1;for(let i=1;i<=c;i++){let o=Jh(t[i],!1);o.offset=Fd((e+o.offset*n)/s),r.push(o)}n=s,e=0,i="",t=r}return Td(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function Fd(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class Rd{}class zd extends Rd{normalizePropertyName(t,e){return ld(t)}normalizeStyleValue(t,e,n,i){let r="";const s=n.toString().trim();if(Bd[e]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return s+r}}const Bd=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Vd(t,e,n,i,r,s,o,a,u,c,l,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:u,preStyleProps:c,postStyleProps:l,totalTime:h,errors:d}}const Hd={};class Gd{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,r){return t.some(t=>t(e,n,i,r))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],r=this._stateStyles[t],s=i?i.buildStyles(e,n):{};return r?r.buildStyles(e,n):s}build(t,e,n,i,r,s,o,a,u,c){const l=[],h=this.ast.options&&this.ast.options.params||Hd,d=this.buildStyles(n,o&&o.params||Hd,l),f=a&&a.params||Hd,p=this.buildStyles(i,f,l),g=new Set,m=new Map,y=new Map,v="void"===i,_={params:Object.assign(Object.assign({},h),f)},b=c?[]:Nd(t,e,this.ast.animation,r,s,d,p,_,u,l);let w=0;if(b.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),l.length)return Vd(e,this._triggerName,n,i,v,d,p,[],[],m,y,w,l);b.forEach(t=>{const n=t.element,i=Oh(m,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const r=Oh(y,n,{});t.postStyleProps.forEach(t=>r[t]=!0),n!==e&&g.add(n)});const x=ud(g.values());return Vd(e,this._triggerName,n,i,v,d,p,b,x,m,y,w)}}class Ud{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},i=Kh(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const r=t;Object.keys(r).forEach(t=>{let s=r[t];s.length>1&&(s=ad(s,i,e)),n[t]=s})}}),n}}class qd{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new Ud(t.style,t.options&&t.options.params||{})}),Yd(this.states,"true","1"),Yd(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Gd(t,e,this.states))}),this.fallbackTransition=new Gd(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(r=>r.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function Yd(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const Wd=new Od;class $d{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=wd(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=i}_buildPlayer(t,e,n){const i=t.element,r=Ch(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,r,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],r=this._animations[t];let s;const o=new Map;if(r?(s=Nd(this._driver,e,r,Gh,Uh,{},{},n,Wd,i),s.forEach(t=>{const e=Oh(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),s=[]),i.length)throw new Error("Unable to create the animation due to the following errors: "+i.join("\n"));o.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,hh)})});const a=Eh(s.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e}listen(t,e,n,i){const r=Th(e,"","","");return Sh(this._getPlayer(t),n,r,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const r=this._getPlayer(t);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const Qd="ng-animate-queued",Xd="ng-animate-disabled",Zd=".ng-animate-disabled",Kd=[],Jd={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},tf={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class ef{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=Kh(t);delete e.value,this.options=e}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const nf="void",rf=new ef(nf);class sf{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,df(e,this._hostClassName)}listen(t,e,n,i){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(r=n)&&"done"!=r)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var r;const s=Oh(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};s.push(o);const a=Oh(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(df(t,qh),df(t,"ng-trigger-"+e),a[e]=rf),()=>{this._engine.afterFlush(()=>{const t=s.indexOf(o);t>=0&&s.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const r=this._getTrigger(e),s=new af(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(df(t,qh),df(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const u=new ef(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&u.absorbOptions(a.options),o[e]=u,a||(a=rf),u.value!==nf&&a.value===u.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let r=0;r<n.length;r++){const i=n[r];if(!e.hasOwnProperty(i)||t[i]!==e[i])return!1}return!0}(a.params,u.params)){const e=[],n=r.matchStyles(a.value,a.params,e),i=r.matchStyles(u.value,u.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{id(t,n),nd(t,i)})}return}const c=Oh(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let l=r.matchTransition(a.value,u.value,t,u.params),h=!1;if(!l){if(!i)return;l=r.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:l,fromState:a,toState:u,player:s,isFallbackTransition:h}),h||(df(t,Qd),s.onStart(()=>{ff(t,Qd)})),s.onDone(()=>{let e=this.players.indexOf(s);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(s);t>=0&&n.splice(t,1)}}),this.players.push(s),c.push(s),s}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,Yh,!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,i){const r=this._engine.statesByElement.get(t);if(r){const s=[];if(Object.keys(r).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,nf,i);n&&s.push(n)}}),s.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&Eh(s).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const n=new Set;e.forEach(e=>{const i=e.name;if(n.has(i))return;n.add(i);const r=this._triggers[i].fallbackTransition,s=this._engine.statesByElement.get(t)[i]||rf,o=new ef(nf),a=new af(this.id,i,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:i,transition:r,fromState:s,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t.__ng_removed;i&&i!==Jd||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){df(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const r=n.element,s=this._elementListeners.get(r);s&&s.forEach(e=>{if(e.name==n.triggerName){const i=Th(r,n.triggerName,n.fromState.value,n.toState.value);i._data=t,Sh(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class of{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new sf(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let i=0;i<t.length;i++){const r=n[t[i]].namespaceId;if(r){const t=this._fetchNamespace(r);t&&e.add(t)}}}return e}trigger(t,e,n,i){if(uf(e)){const r=this._fetchNamespace(t);if(r)return r.trigger(e,n,i),!0}return!1}insertNode(t,e,n,i){if(!uf(e))return;const r=e.__ng_removed;if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),df(t,Xd)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),ff(t,Xd))}removeNode(t,e,n,i){if(uf(e)){const r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,r){return uf(e)?this._fetchNamespace(t).listen(e,n,i,r):()=>{}}_buildInstruction(t,e,n,i,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,r)}destroyInnerAnimations(t){let e=this.driver.query(t,Yh,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,$h,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Eh(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=Jd,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,Zd)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Zd,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)df(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{e=this._flushAnimations(n,t)}finally{for(let t=0;t<n.length;t++)n[t]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Eh(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))}_flushAnimations(t,e){const n=new Od,i=[],r=new Map,s=[],o=new Map,a=new Map,u=new Map,c=new Set;this.disabledNodes.forEach(t=>{c.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n<e.length;n++)c.add(e[n])});const l=this.bodyNode,h=Array.from(this.statesByElement.keys()),d=hf(h,this.collectedEnterElements),f=new Map;let p=0;d.forEach((t,e)=>{const n=Gh+p++;f.set(e,n),t.forEach(t=>df(t,n))});const g=[],m=new Set,y=new Set;for(let M=0;M<this.collectedLeaveElements.length;M++){const t=this.collectedLeaveElements[M],e=t.__ng_removed;e&&e.setForRemoval&&(g.push(t),m.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>m.add(t)):y.add(t))}const v=new Map,_=hf(h,Array.from(m));_.forEach((t,e)=>{const n=Uh+p++;v.set(e,n),t.forEach(t=>df(t,n))}),t.push(()=>{d.forEach((t,e)=>{const n=f.get(e);t.forEach(t=>ff(t,n))}),_.forEach((t,e)=>{const n=v.get(e);t.forEach(t=>ff(t,n))}),g.forEach(t=>{this.processLeaveNode(t)})});const b=[],w=[];for(let M=this._namespaceList.length-1;M>=0;M--)this._namespaceList[M].drainQueuedTransitions(e).forEach(t=>{const e=t.player,r=t.element;if(b.push(e),this.collectedEnterElements.length){const t=r.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const c=!l||!this.driver.containsElement(l,r),h=v.get(r),d=f.get(r),p=this._buildInstruction(t,n,d,h,c);if(p.errors&&p.errors.length)w.push(p);else{if(c)return e.onStart(()=>id(r,p.fromStyles)),e.onDestroy(()=>nd(r,p.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>id(r,p.fromStyles)),e.onDestroy(()=>nd(r,p.toStyles)),void i.push(e);p.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(r,p.timelines),s.push({instruction:p,player:e,element:r}),p.queriedElements.forEach(t=>Oh(o,t,[]).push(e)),p.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=a.get(e);t||a.set(e,t=new Set),n.forEach(e=>t.add(e))}}),p.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let i=u.get(e);i||u.set(e,i=new Set),n.forEach(t=>i.add(t))})}});if(w.length){const t=[];w.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),b.forEach(t=>t.destroy()),this.reportError(t)}const x=new Map,E=new Map;s.forEach(t=>{const e=t.element;n.has(e)&&(E.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,x))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{Oh(x,e,[]).push(t),t.destroy()})});const C=g.filter(t=>gf(t,a,u)),S=new Map;lf(S,this.driver,y,u,hh).forEach(t=>{gf(t,a,u)&&C.push(t)});const k=new Map;d.forEach((t,e)=>{lf(k,this.driver,new Set(t),a,"!")}),C.forEach(t=>{const e=S.get(t),n=k.get(t);S.set(t,Object.assign(Object.assign({},e),n))});const T=[],O=[],A={};s.forEach(t=>{const{element:e,player:s,instruction:o}=t;if(n.has(e)){if(c.has(e))return s.onDestroy(()=>nd(e,o.toStyles)),s.disabled=!0,s.overrideTotalTime(o.totalTime),void i.push(s);let t=A;if(E.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=E.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>E.set(e,t))}const n=this._buildAnimation(s.namespaceId,o,x,r,k,S);if(s.setRealPlayer(n),t===A)T.push(s);else{const e=this.playersByElement.get(t);e&&e.length&&(s.parentPlayer=Eh(e)),i.push(s)}}else id(e,o.fromStyles),s.onDestroy(()=>nd(e,o.toStyles)),O.push(s),c.has(e)&&i.push(s)}),O.forEach(t=>{const e=r.get(t.element);if(e&&e.length){const n=Eh(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let M=0;M<g.length;M++){const t=g[M],e=t.__ng_removed;if(ff(t,Uh),e&&e.hasAnimation)continue;let n=[];if(o.size){let e=o.get(t);e&&e.length&&n.push(...e);let i=this.driver.query(t,$h,!0);for(let t=0;t<i.length;t++){let e=o.get(i[t]);e&&e.length&&n.push(...e)}}const i=n.filter(t=>!t.destroyed);i.length?pf(this,t,i):this.processLeaveNode(t)}return g.length=0,T.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),T}elementContainsData(t,e){let n=!1;const i=e.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,i,r){let s=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(s=e)}else{const e=this.playersByElement.get(t);if(e){const t=!r||r==nf;e.forEach(e=>{e.queued||(t||e.triggerName==i)&&s.push(e)})}}return(n||i)&&(s=s.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),s}_beforeAnimationBuild(t,e,n){const i=e.element,r=e.isRemovalTransition?void 0:t,s=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==i,u=Oh(n,t,[]);this._getPreviousPlayers(t,a,r,s,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),u.push(t)})}id(i,e.fromStyles)}_buildAnimation(t,e,n,i,r,s){const o=e.triggerName,a=e.element,u=[],c=new Set,l=new Set,h=e.timelines.map(e=>{const h=e.element;c.add(h);const d=h.__ng_removed;if(d&&d.removedBeforeQueried)return new bh(e.duration,e.delay);const f=h!==a,p=function(t){const e=[];return function t(e,n){for(let i=0;i<e.length;i++){const r=e[i];r instanceof wh?t(r.players,n):n.push(r)}}(t,e),e}((n.get(h)||Kd).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===h),g=r.get(h),m=s.get(h),y=Ch(0,this._normalizer,0,e.keyframes,g,m),v=this._buildPlayer(e,y,p);if(e.subTimeline&&i&&l.add(h),f){const e=new af(t,o,h);e.setRealPlayer(v),u.push(e)}return v});u.forEach(t=>{Oh(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),c.forEach(t=>df(t,Wh));const d=Eh(h);return d.onDestroy(()=>{c.forEach(t=>ff(t,Wh)),nd(a,e.toStyles)}),l.forEach(t=>{Oh(i,t,[]).push(d)}),d}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new bh(t.duration,t.delay)}}class af{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new bh,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>Sh(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Oh(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function uf(t){return t&&1===t.nodeType}function cf(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function lf(t,e,n,i,r){const s=[];n.forEach(t=>s.push(cf(t)));const o=[];i.forEach((n,i)=>{const s={};n.forEach(t=>{const n=s[t]=e.computeStyle(i,t,r);n&&0!=n.length||(i.__ng_removed=tf,o.push(i))}),t.set(i,s)});let a=0;return n.forEach(t=>cf(t,s[a++])),o}function hf(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),r=new Map;return e.forEach(t=>{const e=function t(e){if(!e)return 1;let s=r.get(e);if(s)return s;const o=e.parentNode;return s=n.has(o)?o:i.has(o)?1:t(o),r.set(e,s),s}(t);1!==e&&n.get(e).push(t)}),n}function df(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function ff(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function pf(t,e,n){Eh(n).onDone(()=>t.processLeaveNode(e))}function gf(t,e,n){const i=n.get(t);if(!i)return!1;let r=e.get(t);return r?i.forEach(t=>r.add(t)):e.set(t,i),n.delete(t),!0}class mf{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new of(t,e,n),this._timelineEngine=new $d(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,r){const s=t+"-"+i;let o=this._triggerCache[s];if(!o){const t=[],e=wd(this._driver,r,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new qd(t,e)}(i,e),this._triggerCache[s]=o}this._transitionEngine.registerTrigger(e,i,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,r]=Ah(n);this._timelineEngine.command(t,e,r,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,r){if("@"==n.charAt(0)){const[t,i]=Ah(n);return this._timelineEngine.listen(t,e,i,r)}return this._transitionEngine.listen(t,e,n,i,r)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function yf(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=_f(e[0]),e.length>1&&(i=_f(e[e.length-1]))):e&&(n=_f(e)),n||i?new vf(t,n,i):null}let vf=(()=>{class t{constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&nd(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(nd(this._element,this._initialStyles),this._endStyles&&(nd(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(id(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(id(this._element,this._endStyles),this._endStyles=null),nd(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function _f(t){let e=null;const n=Object.keys(t);for(let i=0;i<n.length;i++){const r=n[i];bf(r)&&(e=e||{},e[r]=t[r])}return e}function bf(t){return"display"===t||"position"===t}const wf="animation",xf="animationend";class Ef{constructor(t,e,n,i,r,s,o){this._element=t,this._name=e,this._duration=n,this._delay=i,this._easing=r,this._fillMode=s,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){!function(t,e){const n=Af(t,"").trim();n.length&&(function(t,e){let n=0;for(let i=0;i<t.length;i++)","===t.charAt(i)&&n++}(n),e=`${n}, ${e}`),Of(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Tf(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){Cf(this._element,this._name,"paused")}resume(){Cf(this._element,this._name,"running")}setPosition(t){const e=Sf(this._element,this._name);this._position=t*this._duration,Of(this._element,"Delay",`-${this._position}ms`,e)}getPosition(){return this._position}_handleCallback(t){const e=t._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Tf(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=Af(t,"").split(","),i=kf(n,e);i>=0&&(n.splice(i,1),Of(t,"",n.join(",")))}(this._element,this._name))}}function Cf(t,e,n){Of(t,"PlayState",n,Sf(t,e))}function Sf(t,e){const n=Af(t,"");return n.indexOf(",")>0?kf(n.split(","),e):kf([n],e)}function kf(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function Tf(t,e,n){n?t.removeEventListener(xf,e):t.addEventListener(xf,e)}function Of(t,e,n,i){const r=wf+e;if(null!=i){const e=t.style[r];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[r]=n}function Af(t,e){return t.style[wf+e]}class Mf{constructor(t,e,n,i,r,s,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=r,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=s||"linear",this.totalTime=i+r,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Ef(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:pd(this.element,n))})}this.currentSnapshot=t}}class Nf extends bh{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=Bh(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class Df{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return Lh(t)}matchesElement(t,e){return Fh(t,e)}containsElement(t,e){return Rh(t,e)}query(t,e,n){return zh(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>Bh(t));let i=`@keyframes ${e} {\n`,r="";n.forEach(t=>{r=" ";const e=parseFloat(t.offset);i+=`${r}${100*e}% {\n`,r+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${r}animation-timing-function: ${n};\n`));default:return void(i+=`${r}${e}: ${n};\n`)}}),i+=r+"}\n"}),i+="}\n";const s=document.createElement("style");return s.innerHTML=i,s}animate(t,e,n,i,r,s=[],o){o&&this._notifyFaultyScrubber();const a=s.filter(t=>t instanceof Mf),u={};hd(n,i)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>u[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=dd(t,e,u));if(0==n)return new Nf(t,c);const l="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,l,e);document.querySelector("head").appendChild(h);const d=yf(t,e),f=new Mf(t,e,l,n,i,r,c,d);return f.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),f}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class If{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:pd(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Pf{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(jf().toString()),this._cssKeyframesDriver=new Df}validateStyleProperty(t){return Lh(t)}matchesElement(t,e){return Fh(t,e)}containsElement(t,e){return Rh(t,e)}query(t,e,n){return zh(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,r,s=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,r,s);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(a.easing=r);const u={},c=s.filter(t=>t instanceof If);hd(n,i)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>u[t]=e[t])});const l=yf(t,e=dd(t,e=e.map(t=>Jh(t,!1)),u));return new If(t,e,a,l)}}function jf(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let Lf=(()=>{class t extends lh{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:ce.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?ph(t):t;return zf(this._renderer,null,e,"register",[n]),new Ff(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(Qt(Ta),Qt(el))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class Ff extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Rf(this._id,t,e||{},this._renderer)}}class Rf{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return zf(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function zf(t,e,n,i,r){return t.setProperty(e,`@@${n}:${i}`,r)}const Bf="@",Vf="@.disabled";let Hf=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new Gf("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,r=e.id+"-"+this._currentId;this._currentId++,this.engine.register(r,t);const s=e=>{Array.isArray(e)?e.forEach(s):this.engine.registerTrigger(i,r,t,e.name,e)};return e.data.animation.forEach(s),new Uf(this,r,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&t<this._microtaskId?this._zone.run(()=>e(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(Qt(Ta),Qt(mf),Qt(oc))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class Gf{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){e.charAt(0)==Bf&&e==Vf?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Uf extends Gf{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){e.charAt(0)==Bf?"."==e.charAt(1)&&e==Vf?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if(e.charAt(0)==Bf){const i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let r=e.substr(1),s="";return r.charAt(0)!=Bf&&([r,s]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(r)),this.engine.listen(this.namespaceId,i,r,s,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let qf=(()=>{class t extends mf{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(Qt(el),Qt(Hh),Qt(Rd))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Yf=[{provide:Hh,useFactory:function(){return"function"==typeof jf()?new Pf:new Df}},{provide:new Rt("AnimationModuleType"),useValue:"BrowserAnimations"},{provide:lh,useClass:Lf},{provide:Rd,useFactory:function(){return new zd}},{provide:mf,useClass:qf},{provide:Ta,useFactory:function(t,e,n){return new Hf(t,e,n)},deps:[Ql,mf,oc]}];let Wf=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:Yf,imports:[ch]}),t})();class $f{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class Qf extends $f{constructor(t,e,n,i){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=i}}class Xf extends $f{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class Zf extends $f{constructor(t){super(),this.element=t instanceof Sa?t.nativeElement:t}}class Kf extends class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof Qf?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Xf?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof Zf?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(t,e,n,i,r){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=r}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}class Jf extends Kf{}let tp=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})();function ep(t,e,n,i){var r,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,n,o):r(e,n))||o);return s>3&&o&&Object.defineProperty(e,n,o),o}function np(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function ip(t,e,n,i){return o(n)&&(i=n,n=void 0),i?ip(t,e,n).pipe(A(t=>h(t)?i(...t):i(t))):new w(i=>{!function t(e,n,i,r,s){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(n,i,s),o=()=>t.removeEventListener(n,i,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(n,i),o=()=>t.off(n,i)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(n,i),o=()=>t.removeListener(n,i)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,a=e.length;o<a;o++)t(e[o],n,i,r,s)}r.add(o)}(t,e,(function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),i,n)})}const rp=new Ic(Mc);function sp(t,e=rp){return n=>n.lift(new op(t,e))}class op{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new ap(t,this.dueTime,this.scheduler))}}class ap extends y{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(up,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function up(t){t.debouncedNext()}function cp(){}var lp=function(t){return null==t?cp:function(){return this.querySelector(t)}};function hp(){return[]}var dp=function(t){return null==t?hp:function(){return this.querySelectorAll(t)}},fp=function(t){return function(){return this.matches(t)}},pp=function(t){return new Array(t.length)};function gp(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function mp(t,e,n,i,r,s){for(var o,a=0,u=e.length,c=s.length;a<c;++a)(o=e[a])?(o.__data__=s[a],i[a]=o):n[a]=new gp(t,s[a]);for(;a<u;++a)(o=e[a])&&(r[a]=o)}function yp(t,e,n,i,r,s,o){var a,u,c,l={},h=e.length,d=s.length,f=new Array(h);for(a=0;a<h;++a)(u=e[a])&&(f[a]=c="$"+o.call(u,u.__data__,a,e),c in l?r[a]=u:l[c]=u);for(a=0;a<d;++a)(u=l[c="$"+o.call(t,s[a],a,s)])?(i[a]=u,u.__data__=s[a],l[c]=null):n[a]=new gp(t,s[a]);for(a=0;a<h;++a)(u=e[a])&&l[f[a]]===u&&(r[a]=u)}function vp(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}gp.prototype={constructor:gp,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var _p="http://www.w3.org/1999/xhtml",bp={svg:"http://www.w3.org/2000/svg",xhtml:_p,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},wp=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),bp.hasOwnProperty(e)?{space:bp[e],local:t}:t};function xp(t){return function(){this.removeAttribute(t)}}function Ep(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Cp(t,e){return function(){this.setAttribute(t,e)}}function Sp(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function kp(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Tp(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var Op=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function Ap(t){return function(){this.style.removeProperty(t)}}function Mp(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Np(t,e,n){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function Dp(t,e){return t.style.getPropertyValue(e)||Op(t).getComputedStyle(t,null).getPropertyValue(e)}function Ip(t){return function(){delete this[t]}}function Pp(t,e){return function(){this[t]=e}}function jp(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Lp(t){return t.trim().split(/^|\s+/)}function Fp(t){return t.classList||new Rp(t)}function Rp(t){this._node=t,this._names=Lp(t.getAttribute("class")||"")}function zp(t,e){for(var n=Fp(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function Bp(t,e){for(var n=Fp(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function Vp(t){return function(){zp(this,t)}}function Hp(t){return function(){Bp(this,t)}}function Gp(t,e){return function(){(e.apply(this,arguments)?zp:Bp)(this,t)}}function Up(){this.textContent=""}function qp(t){return function(){this.textContent=t}}function Yp(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function Wp(){this.innerHTML=""}function $p(t){return function(){this.innerHTML=t}}function Qp(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function Xp(){this.nextSibling&&this.parentNode.appendChild(this)}function Zp(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Kp(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===_p&&e.documentElement.namespaceURI===_p?e.createElement(t):e.createElementNS(n,t)}}function Jp(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}Rp.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var tg=function(t){var e=wp(t);return(e.local?Jp:Kp)(e)};function eg(){return null}function ng(){var t=this.parentNode;t&&t.removeChild(this)}function ig(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function rg(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var sg={},og=null;function ag(t,e,n){return t=ug(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function ug(t,e,n){return function(i){var r=og;og=i;try{t.call(this,this.__data__,e,n)}finally{og=r}}}function cg(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function lg(t){return function(){var e=this.__on;if(e){for(var n,i=0,r=-1,s=e.length;i<s;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++r]=n:this.removeEventListener(n.type,n.listener,n.capture);++r?e.length=r:delete this.__on}}}function hg(t,e,n){var i=sg.hasOwnProperty(t.type)?ag:ug;return function(r,s,o){var a,u=this.__on,c=i(e,s,o);if(u)for(var l=0,h=u.length;l<h;++l)if((a=u[l]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=c,a.capture=n),void(a.value=e);this.addEventListener(t.type,c,n),a={type:t.type,name:t.name,value:e,listener:c,capture:n},u?u.push(a):this.__on=[a]}}function dg(t,e,n){var i=Op(t),r=i.CustomEvent;"function"==typeof r?r=new r(e,n):(r=i.document.createEvent("Event"),n?(r.initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(e,!1,!1)),t.dispatchEvent(r)}function fg(t,e){return function(){return dg(this,t,e)}}function pg(t,e){return function(){return dg(this,t,e.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(sg={mouseenter:"mouseover",mouseleave:"mouseout"}));var gg=[null];function mg(t,e){this._groups=t,this._parents=e}function yg(){return new mg([[document.documentElement]],gg)}mg.prototype=yg.prototype={constructor:mg,select:function(t){"function"!=typeof t&&(t=lp(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var s,o,a=e[r],u=a.length,c=i[r]=new Array(u),l=0;l<u;++l)(s=a[l])&&(o=t.call(s,s.__data__,l,a))&&("__data__"in s&&(o.__data__=s.__data__),c[l]=o);return new mg(i,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=dp(t));for(var e=this._groups,n=e.length,i=[],r=[],s=0;s<n;++s)for(var o,a=e[s],u=a.length,c=0;c<u;++c)(o=a[c])&&(i.push(t.call(o,o.__data__,c,a)),r.push(o));return new mg(i,r)},filter:function(t){"function"!=typeof t&&(t=fp(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var s,o=e[r],a=o.length,u=i[r]=[],c=0;c<a;++c)(s=o[c])&&t.call(s,s.__data__,c,o)&&u.push(s);return new mg(i,this._parents)},data:function(t,e){if(!t)return p=new Array(this.size()),l=-1,this.each((function(t){p[++l]=t})),p;var n,i=e?yp:mp,r=this._parents,s=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var o=s.length,a=new Array(o),u=new Array(o),c=new Array(o),l=0;l<o;++l){var h=r[l],d=s[l],f=d.length,p=t.call(h,h&&h.__data__,l,r),g=p.length,m=u[l]=new Array(g),y=a[l]=new Array(g);i(h,d,m,y,c[l]=new Array(f),p,e);for(var v,_,b=0,w=0;b<g;++b)if(v=m[b]){for(b>=w&&(w=b+1);!(_=y[w])&&++w<g;);v._next=_||null}}return(a=new mg(a,r))._enter=u,a._exit=c,a},enter:function(){return new mg(this._enter||this._groups.map(pp),this._parents)},exit:function(){return new mg(this._exit||this._groups.map(pp),this._parents)},join:function(t,e,n){var i=this.enter(),r=this,s=this.exit();return i="function"==typeof t?t(i):i.append(t+""),null!=e&&(r=e(r)),null==n?s.remove():n(s),i&&r?i.merge(r).order():r},merge:function(t){for(var e=this._groups,n=t._groups,i=e.length,r=Math.min(i,n.length),s=new Array(i),o=0;o<r;++o)for(var a,u=e[o],c=n[o],l=u.length,h=s[o]=new Array(l),d=0;d<l;++d)(a=u[d]||c[d])&&(h[d]=a);for(;o<i;++o)s[o]=e[o];return new mg(s,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,r=t[e],s=r.length-1,o=r[s];--s>=0;)(i=r[s])&&(o&&4^i.compareDocumentPosition(o)&&o.parentNode.insertBefore(i,o),o=i);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=vp);for(var n=this._groups,i=n.length,r=new Array(i),s=0;s<i;++s){for(var o,a=n[s],u=a.length,c=r[s]=new Array(u),l=0;l<u;++l)(o=a[l])&&(c[l]=o);c.sort(e)}return new mg(r,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,s=i.length;r<s;++r){var o=i[r];if(o)return o}return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var r,s=e[n],o=0,a=s.length;o<a;++o)(r=s[o])&&t.call(r,r.__data__,o,s);return this},attr:function(t,e){var n=wp(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?Ep:xp:"function"==typeof e?n.local?Tp:kp:n.local?Sp:Cp)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?Ap:"function"==typeof e?Np:Mp)(t,e,null==n?"":n)):Dp(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Ip:"function"==typeof e?jp:Pp)(t,e)):this.node()[t]},classed:function(t,e){var n=Lp(t+"");if(arguments.length<2){for(var i=Fp(this.node()),r=-1,s=n.length;++r<s;)if(!i.contains(n[r]))return!1;return!0}return this.each(("function"==typeof e?Gp:e?Vp:Hp)(n,e))},text:function(t){return arguments.length?this.each(null==t?Up:("function"==typeof t?Yp:qp)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Wp:("function"==typeof t?Qp:$p)(t)):this.node().innerHTML},raise:function(){return this.each(Xp)},lower:function(){return this.each(Zp)},append:function(t){var e="function"==typeof t?t:tg(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:tg(t),i=null==e?eg:"function"==typeof e?e:lp(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(ng)},clone:function(t){return this.select(t?rg:ig)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,r,s=cg(t+""),o=s.length;if(!(arguments.length<2)){for(a=e?hg:lg,null==n&&(n=!1),i=0;i<o;++i)this.each(a(s[i],e,n));return this}var a=this.node().__on;if(a)for(var u,c=0,l=a.length;c<l;++c)for(i=0,u=a[c];i<o;++i)if((r=s[i]).type===u.type&&r.name===u.name)return u.value},dispatch:function(t,e){return this.each(("function"==typeof e?pg:fg)(t,e))}};var vg=yg,_g=function(t){return"string"==typeof t?new mg([[document.querySelector(t)]],[document.documentElement]):new mg([[t]],gg)},bg={value:function(){}};function wg(){for(var t,e=0,n=arguments.length,i={};e<n;++e){if(!(t=arguments[e]+"")||t in i||/[\s.]/.test(t))throw new Error("illegal type: "+t);i[t]=[]}return new xg(i)}function xg(t){this._=t}function Eg(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",i=t.indexOf(".");if(i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function Cg(t,e){for(var n,i=0,r=t.length;i<r;++i)if((n=t[i]).name===e)return n.value}function Sg(t,e,n){for(var i=0,r=t.length;i<r;++i)if(t[i].name===e){t[i]=bg,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}xg.prototype=wg.prototype={constructor:xg,on:function(t,e){var n,i=this._,r=Eg(t+"",i),s=-1,o=r.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++s<o;)if(n=(t=r[s]).type)i[n]=Sg(i[n],t.name,e);else if(null==e)for(n in i)i[n]=Sg(i[n],t.name,null);return this}for(;++s<o;)if((n=(t=r[s]).type)&&(n=Cg(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new xg(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,i,r=new Array(n),s=0;s<n;++s)r[s]=arguments[s+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(s=0,n=(i=this._[t]).length;s<n;++s)i[s].value.apply(e,r)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],r=0,s=i.length;r<s;++r)i[r].value.apply(e,n)}};var kg=wg,Tg=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function Og(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function Ag(){}var Mg=.7,Ng=1/Mg,Dg="\\s*([+-]?\\d+)\\s*",Ig="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Pg="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",jg=/^#([0-9a-f]{3,8})$/,Lg=new RegExp("^rgb\\("+[Dg,Dg,Dg]+"\\)$"),Fg=new RegExp("^rgb\\("+[Pg,Pg,Pg]+"\\)$"),Rg=new RegExp("^rgba\\("+[Dg,Dg,Dg,Ig]+"\\)$"),zg=new RegExp("^rgba\\("+[Pg,Pg,Pg,Ig]+"\\)$"),Bg=new RegExp("^hsl\\("+[Ig,Pg,Pg]+"\\)$"),Vg=new RegExp("^hsla\\("+[Ig,Pg,Pg,Ig]+"\\)$"),Hg={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Gg(){return this.rgb().formatHex()}function Ug(){return this.rgb().formatRgb()}function qg(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=jg.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Yg(e):3===n?new Xg(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Wg(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Wg(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Lg.exec(t))?new Xg(e[1],e[2],e[3],1):(e=Fg.exec(t))?new Xg(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Rg.exec(t))?Wg(e[1],e[2],e[3],e[4]):(e=zg.exec(t))?Wg(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Bg.exec(t))?tm(e[1],e[2]/100,e[3]/100,1):(e=Vg.exec(t))?tm(e[1],e[2]/100,e[3]/100,e[4]):Hg.hasOwnProperty(t)?Yg(Hg[t]):"transparent"===t?new Xg(NaN,NaN,NaN,0):null}function Yg(t){return new Xg(t>>16&255,t>>8&255,255&t,1)}function Wg(t,e,n,i){return i<=0&&(t=e=n=NaN),new Xg(t,e,n,i)}function $g(t){return t instanceof Ag||(t=qg(t)),t?new Xg((t=t.rgb()).r,t.g,t.b,t.opacity):new Xg}function Qg(t,e,n,i){return 1===arguments.length?$g(t):new Xg(t,e,n,null==i?1:i)}function Xg(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function Zg(){return"#"+Jg(this.r)+Jg(this.g)+Jg(this.b)}function Kg(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function Jg(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function tm(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new nm(t,e,n,i)}function em(t){if(t instanceof nm)return new nm(t.h,t.s,t.l,t.opacity);if(t instanceof Ag||(t=qg(t)),!t)return new nm;if(t instanceof nm)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),s=Math.max(e,n,i),o=NaN,a=s-r,u=(s+r)/2;return a?(o=e===s?(n-i)/a+6*(n<i):n===s?(i-e)/a+2:(e-n)/a+4,a/=u<.5?s+r:2-s-r,o*=60):a=u>0&&u<1?0:o,new nm(o,a,u,t.opacity)}function nm(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function im(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function rm(t,e,n,i,r){var s=t*t,o=s*t;return((1-3*t+3*s-o)*e+(4-6*s+3*o)*n+(1+3*t+3*s-3*o)*i+o*r)/6}Tg(Ag,qg,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Gg,formatHex:Gg,formatHsl:function(){return em(this).formatHsl()},formatRgb:Ug,toString:Ug}),Tg(Xg,Qg,Og(Ag,{brighter:function(t){return t=null==t?Ng:Math.pow(Ng,t),new Xg(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Mg:Math.pow(Mg,t),new Xg(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Zg,formatHex:Zg,formatRgb:Kg,toString:Kg})),Tg(nm,(function(t,e,n,i){return 1===arguments.length?em(t):new nm(t,e,n,null==i?1:i)}),Og(Ag,{brighter:function(t){return t=null==t?Ng:Math.pow(Ng,t),new nm(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Mg:Math.pow(Mg,t),new nm(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new Xg(im(t>=240?t-240:t+120,r,i),im(t,r,i),im(t<120?t+240:t-120,r,i),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},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var sm=function(t){return function(){return t}};function om(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):sm(isNaN(t)?e:t)}var am=function t(e){var n=function(t){return 1==(t=+t)?om:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):sm(isNaN(e)?n:e)}}(e);function i(t,e){var i=n((t=Qg(t)).r,(e=Qg(e)).r),r=n(t.g,e.g),s=n(t.b,e.b),o=om(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=r(e),t.b=s(e),t.opacity=o(e),t+""}}return i.gamma=t,i}(1);function um(t){return function(e){var n,i,r=e.length,s=new Array(r),o=new Array(r),a=new Array(r);for(n=0;n<r;++n)i=Qg(e[n]),s[n]=i.r||0,o[n]=i.g||0,a[n]=i.b||0;return s=t(s),o=t(o),a=t(a),i.opacity=1,function(t){return i.r=s(t),i.g=o(t),i.b=a(t),i+""}}}um((function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),r=t[i],s=t[i+1];return rm((n-i/e)*e,i>0?t[i-1]:2*r-s,r,s,i<e-1?t[i+2]:2*s-r)}})),um((function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e);return rm((n-i/e)*e,t[(i+e-1)%e],t[i%e],t[(i+1)%e],t[(i+2)%e])}}));var cm=function(t,e){e||(e=[]);var n,i=t?Math.min(e.length,t.length):0,r=e.slice();return function(s){for(n=0;n<i;++n)r[n]=t[n]*(1-s)+e[n]*s;return r}};function lm(t,e){var n,i=e?e.length:0,r=t?Math.min(i,t.length):0,s=new Array(r),o=new Array(i);for(n=0;n<r;++n)s[n]=_m(t[n],e[n]);for(;n<i;++n)o[n]=e[n];return function(t){for(n=0;n<r;++n)o[n]=s[n](t);return o}}var hm,dm,fm=function(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}},pm=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},gm=function(t,e){var n,i={},r={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?i[n]=_m(t[n],e[n]):r[n]=e[n];return function(t){for(n in i)r[n]=i[n](t);return r}},mm=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ym=new RegExp(mm.source,"g"),vm=function(t,e){var n,i,r,s=mm.lastIndex=ym.lastIndex=0,o=-1,a=[],u=[];for(t+="",e+="";(n=mm.exec(t))&&(i=ym.exec(e));)(r=i.index)>s&&(r=e.slice(s,r),a[o]?a[o]+=r:a[++o]=r),(n=n[0])===(i=i[0])?a[o]?a[o]+=i:a[++o]=i:(a[++o]=null,u.push({i:o,x:pm(n,i)})),s=ym.lastIndex;return s<e.length&&(r=e.slice(s),a[o]?a[o]+=r:a[++o]=r),a.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var n,i=0;i<e;++i)a[(n=u[i]).i]=n.x(t);return a.join("")})},_m=function(t,e){var n,i,r=typeof e;return null==e||"boolean"===r?sm(e):("number"===r?pm:"string"===r?(n=qg(e))?(e=n,am):vm:e instanceof qg?am:e instanceof Date?fm:(i=e,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(e)?lm:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?gm:pm:cm))(t,e)},bm=0,wm=0,xm=0,Em=0,Cm=0,Sm=0,km="object"==typeof performance&&performance.now?performance:Date,Tm="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Om(){return Cm||(Tm(Am),Cm=km.now()+Sm)}function Am(){Cm=0}function Mm(){this._call=this._time=this._next=null}function Nm(t,e,n){var i=new Mm;return i.restart(t,e,n),i}function Dm(){Om(),++bm;for(var t,e=hm;e;)(t=Cm-e._time)>=0&&e._call.call(null,t),e=e._next;--bm}function Im(){Cm=(Em=km.now())+Sm,bm=wm=0;try{Dm()}finally{bm=0,function(){for(var t,e,n=hm,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:hm=e);dm=t,jm(i)}(),Cm=0}}function Pm(){var t=km.now(),e=t-Em;e>1e3&&(Sm-=e,Em=t)}function jm(t){bm||(wm&&(wm=clearTimeout(wm)),t-Cm>24?(t<1/0&&(wm=setTimeout(Im,t-km.now()-Sm)),xm&&(xm=clearInterval(xm))):(xm||(Em=km.now(),xm=setInterval(Pm,1e3)),bm=1,Tm(Im)))}Mm.prototype=Nm.prototype={constructor:Mm,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Om():+n)+(null==e?0:+e),this._next||dm===this||(dm?dm._next=this:hm=this,dm=this),this._call=t,this._time=n,jm()},stop:function(){this._call&&(this._call=null,this._time=1/0,jm())}};var Lm=function(t,e,n){var i=new Mm;return i.restart((function(n){i.stop(),t(n+e)}),e=null==e?0:+e,n),i},Fm=kg("start","end","cancel","interrupt"),Rm=[],zm=function(t,e,n,i,r,s){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var i,r=t.__transition;function s(u){var c,l,h,d;if(1!==n.state)return a();for(c in r)if((d=r[c]).name===n.name){if(3===d.state)return Lm(s);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[c]):+c<e&&(d.state=6,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete r[c])}if(Lm((function(){3===n.state&&(n.state=4,n.timer.restart(o,n.delay,n.time),o(u))})),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,i=new Array(h=n.tween.length),c=0,l=-1;c<h;++c)(d=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(i[++l]=d);i.length=l+1}}function o(e){for(var r=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(a),n.state=5,1),s=-1,o=i.length;++s<o;)i[s].call(t,r);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),a())}function a(){for(var i in n.state=6,n.timer.stop(),delete r[e],r)return;delete t.__transition}r[e]=n,n.timer=Nm((function(t){n.state=1,n.timer.restart(s,n.delay,n.time),n.delay<=t&&s(t-n.delay)}),0,n.time)}(t,n,{name:e,index:i,group:r,on:Fm,tween:Rm,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:0})};function Bm(t,e){var n=Hm(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function Vm(t,e){var n=Hm(t,e);if(n.state>3)throw new Error("too late; already running");return n}function Hm(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var Gm,Um,qm,Ym,Wm=180/Math.PI,$m={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Qm=function(t,e,n,i,r,s){var o,a,u;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(u=t*n+e*i)&&(n-=t*u,i-=e*u),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,u/=a),t*i<e*n&&(t=-t,e=-e,u=-u,o=-o),{translateX:r,translateY:s,rotate:Math.atan2(e,t)*Wm,skewX:Math.atan(u)*Wm,scaleX:o,scaleY:a}};function Xm(t,e,n,i){function r(t){return t.length?t.pop()+" ":""}return function(s,o){var a=[],u=[];return s=t(s),o=t(o),function(t,i,r,s,o,a){if(t!==r||i!==s){var u=o.push("translate(",null,e,null,n);a.push({i:u-4,x:pm(t,r)},{i:u-2,x:pm(i,s)})}else(r||s)&&o.push("translate("+r+e+s+n)}(s.translateX,s.translateY,o.translateX,o.translateY,a,u),function(t,e,n,s){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),s.push({i:n.push(r(n)+"rotate(",null,i)-2,x:pm(t,e)})):e&&n.push(r(n)+"rotate("+e+i)}(s.rotate,o.rotate,a,u),function(t,e,n,s){t!==e?s.push({i:n.push(r(n)+"skewX(",null,i)-2,x:pm(t,e)}):e&&n.push(r(n)+"skewX("+e+i)}(s.skewX,o.skewX,a,u),function(t,e,n,i,s,o){if(t!==n||e!==i){var a=s.push(r(s)+"scale(",null,",",null,")");o.push({i:a-4,x:pm(t,n)},{i:a-2,x:pm(e,i)})}else 1===n&&1===i||s.push(r(s)+"scale("+n+","+i+")")}(s.scaleX,s.scaleY,o.scaleX,o.scaleY,a,u),s=o=null,function(t){for(var e,n=-1,i=u.length;++n<i;)a[(e=u[n]).i]=e.x(t);return a.join("")}}}var Zm=Xm((function(t){return"none"===t?$m:(Gm||(Gm=document.createElement("DIV"),Um=document.documentElement,qm=document.defaultView),Gm.style.transform=t,t=qm.getComputedStyle(Um.appendChild(Gm),null).getPropertyValue("transform"),Um.removeChild(Gm),t=t.slice(7,-1).split(","),Qm(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),Km=Xm((function(t){return null==t?$m:(Ym||(Ym=document.createElementNS("http://www.w3.org/2000/svg","g")),Ym.setAttribute("transform",t),(t=Ym.transform.baseVal.consolidate())?Qm((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):$m)}),", ",")",")");function Jm(t,e){var n,i;return function(){var r=Vm(this,t),s=r.tween;if(s!==n)for(var o=0,a=(i=n=s).length;o<a;++o)if(i[o].name===e){(i=i.slice()).splice(o,1);break}r.tween=i}}function ty(t,e,n){var i,r;if("function"!=typeof n)throw new Error;return function(){var s=Vm(this,t),o=s.tween;if(o!==i){r=(i=o).slice();for(var a={name:e,value:n},u=0,c=r.length;u<c;++u)if(r[u].name===e){r[u]=a;break}u===c&&r.push(a)}s.tween=r}}function ey(t,e,n){var i=t._id;return t.each((function(){var t=Vm(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return Hm(t,i).value[e]}}var ny=function(t,e){var n;return("number"==typeof e?pm:e instanceof qg?am:(n=qg(e))?(e=n,am):vm)(t,e)};function iy(t){return function(){this.removeAttribute(t)}}function ry(t){return function(){this.removeAttributeNS(t.space,t.local)}}function sy(t,e,n){var i,r,s=n+"";return function(){var o=this.getAttribute(t);return o===s?null:o===i?r:r=e(i=o,n)}}function oy(t,e,n){var i,r,s=n+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===s?null:o===i?r:r=e(i=o,n)}}function ay(t,e,n){var i,r,s;return function(){var o,a,u=n(this);if(null!=u)return(o=this.getAttribute(t))===(a=u+"")?null:o===i&&a===r?s:(r=a,s=e(i=o,u));this.removeAttribute(t)}}function uy(t,e,n){var i,r,s;return function(){var o,a,u=n(this);if(null!=u)return(o=this.getAttributeNS(t.space,t.local))===(a=u+"")?null:o===i&&a===r?s:(r=a,s=e(i=o,u));this.removeAttributeNS(t.space,t.local)}}function cy(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function ly(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function hy(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&ly(t,r)),n}return r._value=e,r}function dy(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&cy(t,r)),n}return r._value=e,r}function fy(t,e){return function(){Bm(this,t).delay=+e.apply(this,arguments)}}function py(t,e){return e=+e,function(){Bm(this,t).delay=e}}function gy(t,e){return function(){Vm(this,t).duration=+e.apply(this,arguments)}}function my(t,e){return e=+e,function(){Vm(this,t).duration=e}}function yy(t,e){if("function"!=typeof e)throw new Error;return function(){Vm(this,t).ease=e}}function vy(t,e,n){var i,r,s=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Bm:Vm;return function(){var o=s(this,t),a=o.on;a!==i&&(r=(i=a).copy()).on(e,n),o.on=r}}var _y=vg.prototype.constructor;function by(t){return function(){this.style.removeProperty(t)}}function wy(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}function xy(t,e,n){var i,r;function s(){var s=e.apply(this,arguments);return s!==r&&(i=(r=s)&&wy(t,s,n)),i}return s._value=e,s}function Ey(t){return function(e){this.textContent=t.call(this,e)}}function Cy(t){var e,n;function i(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&Ey(i)),e}return i._value=t,i}var Sy=0;function ky(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function Ty(){return++Sy}var Oy=vg.prototype;ky.prototype=(function(t){return vg().transition(t)}).prototype={constructor:ky,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=lp(t));for(var i=this._groups,r=i.length,s=new Array(r),o=0;o<r;++o)for(var a,u,c=i[o],l=c.length,h=s[o]=new Array(l),d=0;d<l;++d)(a=c[d])&&(u=t.call(a,a.__data__,d,c))&&("__data__"in a&&(u.__data__=a.__data__),h[d]=u,zm(h[d],e,n,d,h,Hm(a,n)));return new ky(s,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=dp(t));for(var i=this._groups,r=i.length,s=[],o=[],a=0;a<r;++a)for(var u,c=i[a],l=c.length,h=0;h<l;++h)if(u=c[h]){for(var d,f=t.call(u,u.__data__,h,c),p=Hm(u,n),g=0,m=f.length;g<m;++g)(d=f[g])&&zm(d,e,n,g,f,p);s.push(f),o.push(u)}return new ky(s,o,e,n)},filter:function(t){"function"!=typeof t&&(t=fp(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var s,o=e[r],a=o.length,u=i[r]=[],c=0;c<a;++c)(s=o[c])&&t.call(s,s.__data__,c,o)&&u.push(s);return new ky(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,r=Math.min(i,n.length),s=new Array(i),o=0;o<r;++o)for(var a,u=e[o],c=n[o],l=u.length,h=s[o]=new Array(l),d=0;d<l;++d)(a=u[d]||c[d])&&(h[d]=a);for(;o<i;++o)s[o]=e[o];return new ky(s,this._parents,this._name,this._id)},selection:function(){return new _y(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=Ty(),i=this._groups,r=i.length,s=0;s<r;++s)for(var o,a=i[s],u=a.length,c=0;c<u;++c)if(o=a[c]){var l=Hm(o,e);zm(o,t,n,c,a,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new ky(i,this._parents,t,n)},call:Oy.call,nodes:Oy.nodes,node:Oy.node,size:Oy.size,empty:Oy.empty,each:Oy.each,on:function(t,e){var n=this._id;return arguments.length<2?Hm(this.node(),n).on.on(t):this.each(vy(n,t,e))},attr:function(t,e){var n=wp(t),i="transform"===n?Km:ny;return this.attrTween(t,"function"==typeof e?(n.local?uy:ay)(n,i,ey(this,"attr."+t,e)):null==e?(n.local?ry:iy)(n):(n.local?oy:sy)(n,i,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var i=wp(t);return this.tween(n,(i.local?hy:dy)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?Zm:ny;return null==e?this.styleTween(t,function(t,e){var n,i,r;return function(){var s=Dp(this,t),o=(this.style.removeProperty(t),Dp(this,t));return s===o?null:s===n&&o===i?r:r=e(n=s,i=o)}}(t,i)).on("end.style."+t,by(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,r,s;return function(){var o=Dp(this,t),a=n(this),u=a+"";return null==a&&(this.style.removeProperty(t),u=a=Dp(this,t)),o===u?null:o===i&&u===r?s:(r=u,s=e(i=o,a))}}(t,i,ey(this,"style."+t,e))).each(function(t,e){var n,i,r,s,o="style."+e,a="end."+o;return function(){var u=Vm(this,t),c=u.on,l=null==u.value[o]?s||(s=by(e)):void 0;c===n&&r===l||(i=(n=c).copy()).on(a,r=l),u.on=i}}(this._id,t)):this.styleTween(t,function(t,e,n){var i,r,s=n+"";return function(){var o=Dp(this,t);return o===s?null:o===i?r:r=e(i=o,n)}}(t,i,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;return this.tween(i,xy(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(ey(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,Cy(t))},remove:function(){return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}));var t},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i,r=Hm(this.node(),n).tween,s=0,o=r.length;s<o;++s)if((i=r[s]).name===t)return i.value;return null}return this.each((null==e?Jm:ty)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?fy:py)(e,t)):Hm(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?gy:my)(e,t)):Hm(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(yy(e,t)):Hm(this.node(),e).ease},end:function(){var t,e,n=this,i=n._id,r=n.size();return new Promise((function(s,o){var a={value:o},u={value:function(){0==--r&&s()}};n.each((function(){var n=Vm(this,i),r=n.on;r!==t&&((e=(t=r).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(u)),n.on=e}))}))}};var Ay={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function My(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return Ay.time=Om(),Ay;return n}function Ny(t){return{type:t}}vg.prototype.interrupt=function(t){return this.each((function(){!function(t,e){var n,i,r,s=t.__transition,o=!0;if(s){for(r in e=null==e?null:e+"",s)(n=s[r]).name===e?(i=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete s[r]):o=!1;o&&delete t.__transition}}(this,t)}))},vg.prototype.transition=function(t){var e,n;t instanceof ky?(e=t._id,t=t._name):(e=Ty(),(n=Ay).time=Om(),t=null==t?null:t+"");for(var i=this._groups,r=i.length,s=0;s<r;++s)for(var o,a=i[s],u=a.length,c=0;c<u;++c)(o=a[c])&&zm(o,t,e,c,a,n||My(o,e));return new ky(i,this._parents,t,e)},["w","e"].map(Ny),["n","s"].map(Ny),["n","w","e","s","nw","ne","sw","se"].map(Ny);var Dy=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},Iy=function(t){let e=t,n=t;function i(t,e,i,r){for(null==i&&(i=0),null==r&&(r=t.length);i<r;){const s=i+r>>>1;n(t[s],e)<0?i=s+1:r=s}return i}return 1===t.length&&(e=(e,n)=>t(e)-n,n=function(t){return(e,n)=>Dy(t(e),n)}(t)),{left:i,center:function(t,n,r,s){null==r&&(r=0),null==s&&(s=t.length);const o=i(t,n,r,s-1);return o>r&&e(t[o-1],n)>-e(t[o],n)?o-1:o},right:function(t,e,i,r){for(null==i&&(i=0),null==r&&(r=t.length);i<r;){const s=i+r>>>1;n(t[s],e)>0?r=s:i=s+1}return i}}},Py=Math.sqrt(50),jy=Math.sqrt(10),Ly=Math.sqrt(2);function Fy(t,e,n){var i=(e-t)/Math.max(0,n),r=Math.floor(Math.log(i)/Math.LN10),s=i/Math.pow(10,r);return r>=0?(s>=Py?10:s>=jy?5:s>=Ly?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(s>=Py?10:s>=jy?5:s>=Ly?2:1)}function Ry(t,e,n){var i=Math.abs(e-t)/Math.max(0,n),r=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),s=i/r;return s>=Py?r*=10:s>=jy?r*=5:s>=Ly&&(r*=2),e<t?-r:r}const zy=1e3,By=6e4,Vy=36e5,Hy=864e5,Gy=6048e5,Uy=31536e6;var qy=new Date,Yy=new Date;function Wy(t,e,n,i){function r(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return r.floor=function(e){return t(e=new Date(+e)),e},r.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},r.round=function(t){var e=r(t),n=r.ceil(t);return t-e<n-t?e:n},r.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},r.range=function(n,i,s){var o,a=[];if(n=r.ceil(n),s=null==s?1:Math.floor(s),!(n<i&&s>0))return a;do{a.push(o=new Date(+n)),e(n,s),t(n)}while(o<n&&n<i);return a},r.filter=function(n){return Wy((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,i){if(t>=t)if(i<0)for(;++i<=0;)for(;e(t,-1),!n(t););else for(;--i>=0;)for(;e(t,1),!n(t););}))},n&&(r.count=function(e,i){return qy.setTime(+e),Yy.setTime(+i),t(qy),t(Yy),Math.floor(n(qy,Yy))},r.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?r.filter(i?function(e){return i(e)%t==0}:function(e){return r.count(0,e)%t==0}):r:null}),r}var $y=Wy((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));$y.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Wy((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):$y:null};var Qy=$y,Xy=Wy((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*zy)}),(function(t,e){return(e-t)/zy}),(function(t){return t.getUTCSeconds()})),Zy=Wy((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*zy)}),(function(t,e){t.setTime(+t+e*By)}),(function(t,e){return(e-t)/By}),(function(t){return t.getMinutes()})),Ky=Wy((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*zy-t.getMinutes()*By)}),(function(t,e){t.setTime(+t+e*Vy)}),(function(t,e){return(e-t)/Vy}),(function(t){return t.getHours()})),Jy=Wy(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*By)/Hy,t=>t.getDate()-1);function tv(t){return Wy((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*By)/Gy}))}var ev=tv(0),nv=(tv(1),tv(2),tv(3),tv(4),tv(5),tv(6),Wy((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}))),iv=Wy((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));iv.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Wy((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var rv=iv,sv=Wy((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*By)}),(function(t,e){return(e-t)/By}),(function(t){return t.getUTCMinutes()})),ov=Wy((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*Vy)}),(function(t,e){return(e-t)/Vy}),(function(t){return t.getUTCHours()})),av=Wy((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/Hy}),(function(t){return t.getUTCDate()-1}));function uv(t){return Wy((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/Gy}))}var cv=uv(0),lv=(uv(1),uv(2),uv(3),uv(4),uv(5),uv(6),Wy((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}))),hv=Wy((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));hv.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Wy((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var dv=hv;function fv(t,e,n,i,r,s){const o=[[Xy,1,zy],[Xy,5,5e3],[Xy,15,15e3],[Xy,30,3e4],[s,1,By],[s,5,3e5],[s,15,9e5],[s,30,18e5],[r,1,Vy],[r,3,108e5],[r,6,216e5],[r,12,432e5],[i,1,Hy],[i,2,1728e5],[n,1,Gy],[e,1,2592e6],[e,3,7776e6],[t,1,Uy]];function a(e,n,i){const r=Math.abs(n-e)/i,s=Iy(([,,t])=>t).right(o,r);if(s===o.length)return t.every(Ry(e/Uy,n/Uy,i));if(0===s)return Qy.every(Math.max(Ry(e,n,i),1));const[a,u]=o[r/o[s-1][2]<o[s][2]/r?s-1:s];return a.every(u)}return[function(t,e,n){const i=e<t;i&&([t,e]=[e,t]);const r=n&&"function"==typeof n.range?n:a(t,e,n),s=r?r.range(t,+e+1):[];return i?s.reverse():s},a]}const[pv,gv]=fv(dv,lv,cv,av,ov,sv),[mv,yv]=fv(rv,nv,ev,Jy,Ky,Zy);var vv=new Date,_v=new Date;function bv(t,e,n,i){function r(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return r.floor=function(e){return t(e=new Date(+e)),e},r.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},r.round=function(t){var e=r(t),n=r.ceil(t);return t-e<n-t?e:n},r.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},r.range=function(n,i,s){var o,a=[];if(n=r.ceil(n),s=null==s?1:Math.floor(s),!(n<i&&s>0))return a;do{a.push(o=new Date(+n)),e(n,s),t(n)}while(o<n&&n<i);return a},r.filter=function(n){return bv((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,i){if(t>=t)if(i<0)for(;++i<=0;)for(;e(t,-1),!n(t););else for(;--i>=0;)for(;e(t,1),!n(t););}))},n&&(r.count=function(e,i){return vv.setTime(+e),_v.setTime(+i),t(vv),t(_v),Math.floor(n(vv,_v))},r.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?r.filter(i?function(e){return i(e)%t==0}:function(e){return r.count(0,e)%t==0}):r:null}),r}var wv=864e5,xv=6048e5;function Ev(t){return bv((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/xv}))}var Cv=Ev(0),Sv=Ev(1),kv=(Ev(2),Ev(3),Ev(4)),Tv=(Ev(5),Ev(6),bv((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/wv}),(function(t){return t.getUTCDate()-1})));function Ov(t){return bv((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/xv}))}var Av=Ov(0),Mv=Ov(1),Nv=(Ov(2),Ov(3),Ov(4)),Dv=(Ov(5),Ov(6),bv((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/wv}),(function(t){return t.getDate()-1}))),Iv=bv((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Iv.every=function(t){return isFinite(t=Math.floor(t))&&t>0?bv((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var Pv=Iv,jv=bv((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));jv.every=function(t){return isFinite(t=Math.floor(t))&&t>0?bv((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var Lv=jv;var Fv={"-":"",_:" ",0:"0"},Rv=/[\\^$*+?|[\]().{}]/g;function zv(t,e,n){var i=t<0?"-":"",r=(i?-t:t)+"",s=r.length;return i+(s<n?new Array(n-s+1).join(e)+r:r)}function Bv(t){return t.replace(Rv,"\\$&")}function Vv(t){return new RegExp("^(?:"+t.map(Bv).join("|")+")","i")}function Hv(t){for(var e={},n=-1,i=t.length;++n<i;)e[t[n].toLowerCase()]=n;return e}function Gv(t,e){return zv(t.getDate(),e,2)}function Uv(t,e){return zv(t.getHours(),e,2)}function qv(t,e){return zv(t.getHours()%12||12,e,2)}function Yv(t,e){return zv(1+Dv.count(Pv(t),t),e,3)}function Wv(t,e){return zv(t.getMilliseconds(),e,3)}function $v(t,e){return Wv(t,e)+"000"}function Qv(t,e){return zv(t.getMonth()+1,e,2)}function Xv(t,e){return zv(t.getMinutes(),e,2)}function Zv(t,e){return zv(t.getSeconds(),e,2)}function Kv(t){var e=t.getDay();return 0===e?7:e}function Jv(t,e){return zv(Av.count(Pv(t)-1,t),e,2)}function t_(t){var e=t.getDay();return e>=4||0===e?Nv(t):Nv.ceil(t)}function e_(t,e){return t=t_(t),zv(Nv.count(Pv(t),t)+(4===Pv(t).getDay()),e,2)}function n_(t){return t.getDay()}function i_(t,e){return zv(Mv.count(Pv(t)-1,t),e,2)}function r_(t,e){return zv(t.getFullYear()%100,e,2)}function s_(t,e){return zv((t=t_(t)).getFullYear()%100,e,2)}function o_(t,e){return zv(t.getFullYear()%1e4,e,4)}function a_(t,e){var n=t.getDay();return zv((t=n>=4||0===n?Nv(t):Nv.ceil(t)).getFullYear()%1e4,e,4)}function u_(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+zv(e/60|0,"0",2)+zv(e%60,"0",2)}function c_(t,e){return zv(t.getUTCDate(),e,2)}function l_(t,e){return zv(t.getUTCHours(),e,2)}function h_(t,e){return zv(t.getUTCHours()%12||12,e,2)}function d_(t,e){return zv(1+Tv.count(Lv(t),t),e,3)}function f_(t,e){return zv(t.getUTCMilliseconds(),e,3)}function p_(t,e){return f_(t,e)+"000"}function g_(t,e){return zv(t.getUTCMonth()+1,e,2)}function m_(t,e){return zv(t.getUTCMinutes(),e,2)}function y_(t,e){return zv(t.getUTCSeconds(),e,2)}function v_(t){var e=t.getUTCDay();return 0===e?7:e}function __(t,e){return zv(Cv.count(Lv(t)-1,t),e,2)}function b_(t){var e=t.getUTCDay();return e>=4||0===e?kv(t):kv.ceil(t)}function w_(t,e){return t=b_(t),zv(kv.count(Lv(t),t)+(4===Lv(t).getUTCDay()),e,2)}function x_(t){return t.getUTCDay()}function E_(t,e){return zv(Sv.count(Lv(t)-1,t),e,2)}function C_(t,e){return zv(t.getUTCFullYear()%100,e,2)}function S_(t,e){return zv((t=b_(t)).getUTCFullYear()%100,e,2)}function k_(t,e){return zv(t.getUTCFullYear()%1e4,e,4)}function T_(t,e){var n=t.getUTCDay();return zv((t=n>=4||0===n?kv(t):kv.ceil(t)).getUTCFullYear()%1e4,e,4)}function O_(){return"+0000"}function A_(){return"%"}function M_(t){return+t}function N_(t){return Math.floor(+t/1e3)}!function(t){var e=t.dateTime,n=t.date,i=t.time,r=t.periods,s=t.days,o=t.shortDays,a=t.months,u=t.shortMonths,c=(Vv(r),Hv(r),Vv(s),Hv(s),Vv(o),Hv(o),Vv(a),Hv(a),Vv(u),Hv(u),{a:function(t){return o[t.getDay()]},A:function(t){return s[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:Gv,e:Gv,f:$v,g:s_,G:a_,H:Uv,I:qv,j:Yv,L:Wv,m:Qv,M:Xv,p:function(t){return r[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:M_,s:N_,S:Zv,u:Kv,U:Jv,V:e_,w:n_,W:i_,x:null,X:null,y:r_,Y:o_,Z:u_,"%":A_}),l={a:function(t){return o[t.getUTCDay()]},A:function(t){return s[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:c_,e:c_,f:p_,g:S_,G:T_,H:l_,I:h_,j:d_,L:f_,m:g_,M:m_,p:function(t){return r[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:M_,s:N_,S:y_,u:v_,U:__,V:w_,w:x_,W:E_,x:null,X:null,y:C_,Y:k_,Z:O_,"%":A_};function h(t,e){return function(n){var i,r,s,o=[],a=-1,u=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++a<c;)37===t.charCodeAt(a)&&(o.push(t.slice(u,a)),null!=(r=Fv[i=t.charAt(++a)])?i=t.charAt(++a):r="e"===i?" ":"0",(s=e[i])&&(i=s(n,r)),o.push(i),u=a+1);return o.push(t.slice(u,a)),o.join("")}}c.x=h(n,c),c.X=h(i,c),c.c=h(e,c),l.x=h(n,l),l.X=h(i,l),l.c=h(e,l)}({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 D_=function(t){return null===t?NaN:+t};const I_=Iy(Dy).right;Iy(D_);var P_=I_,j_=function(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}};function L_(t){return+t}var F_=[0,1];function R_(t){return t}function z_(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function B_(t,e,n){var i=t[0],r=t[1],s=e[0],o=e[1];return r<i?(i=z_(r,i),s=n(o,s)):(i=z_(i,r),s=n(s,o)),function(t){return s(i(t))}}function V_(t,e,n){var i=Math.min(t.length,e.length)-1,r=new Array(i),s=new Array(i),o=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<i;)r[o]=z_(t[o],t[o+1]),s[o]=n(e[o],e[o+1]);return function(e){var n=P_(t,e,1,i)-1;return s[n](r[n](e))}}function H_(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function G_(){return function(){var t,e,n,i,r,s,o=F_,a=F_,u=_m,c=R_;function l(){var t,e,n,u=Math.min(o.length,a.length);return c!==R_&&((t=o[0])>(e=o[u-1])&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),i=u>2?V_:B_,r=s=null,h}function h(e){return null==e||isNaN(e=+e)?n:(r||(r=i(o.map(t),a,u)))(t(c(e)))}return h.invert=function(n){return c(e((s||(s=i(a,o.map(t),pm)))(n)))},h.domain=function(t){return arguments.length?(o=Array.from(t,L_),l()):o.slice()},h.range=function(t){return arguments.length?(a=Array.from(t),l()):a.slice()},h.rangeRound=function(t){return a=Array.from(t),u=j_,l()},h.clamp=function(t){return arguments.length?(c=!!t||R_,l()):c!==R_},h.interpolate=function(t){return arguments.length?(u=t,l()):u},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,i){return t=n,e=i,l()}}()(R_,R_)}function U_(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var q_=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Y_(t){if(!(e=q_.exec(t)))throw new Error("invalid format: "+t);var e;return new W_({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function W_(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function $_(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,i=t.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}Y_.prototype=W_.prototype,W_.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Q_,X_,Z_,K_,J_=function(t){return(t=$_(Math.abs(t)))?t[1]:NaN},tb=function(t,e){var n=$_(t,e);if(!n)return t+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")},eb={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return tb(100*t,e)},r:tb,s:function(t,e){var n=$_(t,e);if(!n)return t+"";var i=n[0],r=n[1],s=r-(Q_=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,o=i.length;return s===o?i:s>o?i+new Array(s-o+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+$_(t,Math.max(0,e+s-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},nb=function(t){return t},ib=Array.prototype.map,rb=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function sb(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){var i,r,s,o,a=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((i=e<t)&&(r=t,t=e,e=r),0===(o=Fy(t,e,n))||!isFinite(o))return[];if(o>0){let n=Math.round(t/o),i=Math.round(e/o);for(n*o<t&&++n,i*o>e&&--i,s=new Array(r=i-n+1);++a<r;)s[a]=(n+a)*o}else{o=-o;let n=Math.round(t*o),i=Math.round(e*o);for(n/o<t&&++n,i/o>e&&--i,s=new Array(r=i-n+1);++a<r;)s[a]=(n+a)/o}return i&&s.reverse(),s}(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var i=e();return function(t,e,n,i){var r,s=Ry(t,e,n);switch((i=Y_(null==i?",f":i)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(e));return null!=i.precision||isNaN(r=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(J_(e)/3)))-J_(Math.abs(t)))}(s,o))||(i.precision=r),K_(i,o);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(r=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,J_(e)-J_(t))+1}(s,Math.max(Math.abs(t),Math.abs(e))))||(i.precision=r-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(r=function(t){return Math.max(0,-J_(Math.abs(t)))}(s))||(i.precision=r-2*("%"===i.type))}return Z_(i)}(i[0],i[i.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var i,r,s=e(),o=0,a=s.length-1,u=s[o],c=s[a],l=10;for(c<u&&(r=u,u=c,c=r,r=o,o=a,a=r);l-- >0;){if((r=Fy(u,c,n))===i)return s[o]=u,s[a]=c,e(s);if(r>0)u=Math.floor(u/r)*r,c=Math.ceil(c/r)*r;else{if(!(r<0))break;u=Math.ceil(u*r)/r,c=Math.floor(c*r)/r}i=r}return t},t}function ob(){var t=G_();return t.copy=function(){return H_(t,ob())},U_.apply(t,arguments),sb(t)}X_=function(t){var e,n,i=void 0===t.grouping||void 0===t.thousands?nb:(e=ib.call(t.grouping,Number),n=t.thousands+"",function(t,i){for(var r=t.length,s=[],o=0,a=e[0],u=0;r>0&&a>0&&(u+a+1>i&&(a=Math.max(1,i-u)),s.push(t.substring(r-=a,r+a)),!((u+=a+1)>i));)a=e[o=(o+1)%e.length];return s.reverse().join(n)}),r=void 0===t.currency?"":t.currency[0]+"",s=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?nb:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(ib.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"-":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function h(t){var e=(t=Y_(t)).fill,n=t.align,h=t.sign,d=t.symbol,f=t.zero,p=t.width,g=t.comma,m=t.precision,y=t.trim,v=t.type;"n"===v?(g=!0,v="g"):eb[v]||(void 0===m&&(m=12),y=!0,v="g"),(f||"0"===e&&"="===n)&&(f=!0,e="0",n="=");var _="$"===d?r:"#"===d&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",b="$"===d?s:/[%p]/.test(v)?u:"",w=eb[v],x=/[defgprs%]/.test(v);function E(t){var r,s,u,d=_,E=b;if("c"===v)E=w(t)+E,t="";else{var C=(t=+t)<0||1/t<0;if(t=isNaN(t)?l:w(Math.abs(t),m),y&&(t=function(t){t:for(var e,n=t.length,i=1,r=-1;i<n;++i)switch(t[i]){case".":r=e=i;break;case"0":0===r&&(r=i),e=i;break;default:if(!+t[i])break t;r>0&&(r=0)}return r>0?t.slice(0,r)+t.slice(e+1):t}(t)),C&&0==+t&&"+"!==h&&(C=!1),d=(C?"("===h?h:c:"-"===h||"("===h?"":h)+d,E=("s"===v?rb[8+Q_/3]:"")+E+(C&&"("===h?")":""),x)for(r=-1,s=t.length;++r<s;)if(48>(u=t.charCodeAt(r))||u>57){E=(46===u?o+t.slice(r+1):t.slice(r))+E,t=t.slice(0,r);break}}g&&!f&&(t=i(t,1/0));var S=d.length+t.length+E.length,k=S<p?new Array(p-S+1).join(e):"";switch(g&&f&&(t=i(k+t,k.length?p-E.length:1/0),k=""),n){case"<":t=d+t+E+k;break;case"=":t=d+k+t+E;break;case"^":t=k.slice(0,S=k.length>>1)+d+t+E+k.slice(S);break;default:t=k+d+t+E}return a(t)}return m=void 0===m?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),E.toString=function(){return t+""},E}return{format:h,formatPrefix:function(t,e){var n=h(((t=Y_(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(J_(e)/3))),r=Math.pow(10,-i),s=rb[8+i/3];return function(t){return n(r*t)+s}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Z_=X_.format,K_=X_.formatPrefix;var ab=function(t,e,n){t=+t,e=+e,n=(r=arguments.length)<2?(e=t,t=0,1):r<3?1:+n;for(var i=-1,r=0|Math.max(0,Math.ceil((e-t)/n)),s=new Array(r);++i<r;)s[i]=t+i*n;return s};const ub=Symbol("implicit");function cb(){var t=new Map,e=[],n=[],i=ub;function r(r){var s=r+"",o=t.get(s);if(!o){if(i!==ub)return i;t.set(s,o=e.push(r))}return n[(o-1)%n.length]}return r.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new Map;for(const i of n){const n=i+"";t.has(n)||t.set(n,e.push(i))}return r},r.range=function(t){return arguments.length?(n=Array.from(t),r):n.slice()},r.unknown=function(t){return arguments.length?(i=t,r):i},r.copy=function(){return cb(e,n).unknown(i)},U_.apply(r,arguments),r}function lb(t,e,n=D_){if(i=t.length){if((e=+e)<=0||i<2)return+n(t[0],0,t);if(e>=1)return+n(t[i-1],i-1,t);var i,r=(i-1)*e,s=Math.floor(r),o=+n(t[s],s,t);return o+(+n(t[s+1],s+1,t)-o)*(r-s)}}function hb(t){this._context=t}hb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var db=function(t){return new hb(t)},fb=Math.PI,pb=2*fb,gb=1e-6,mb=pb-gb;function yb(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function vb(){return new yb}yb.prototype=vb.prototype={constructor:yb,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,r,s){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+r)+","+(this._y1=+s)},arcTo:function(t,e,n,i,r){var s=this._x1,o=this._y1,a=(n=+n)-(t=+t),u=(i=+i)-(e=+e),c=s-t,l=o-e,h=c*c+l*l;if((r=+r)<0)throw new Error("negative radius: "+r);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>gb)if(Math.abs(l*a-u*c)>gb&&r){var d=n-s,f=i-o,p=a*a+u*u,g=d*d+f*f,m=Math.sqrt(p),y=Math.sqrt(h),v=r*Math.tan((fb-Math.acos((p+h-g)/(2*m*y)))/2),_=v/y,b=v/m;Math.abs(_-1)>gb&&(this._+="L"+(t+_*c)+","+(e+_*l)),this._+="A"+r+","+r+",0,0,"+ +(l*d>c*f)+","+(this._x1=t+b*a)+","+(this._y1=e+b*u)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,i,r,s){t=+t,e=+e,s=!!s;var o=(n=+n)*Math.cos(i),a=n*Math.sin(i),u=t+o,c=e+a,l=1^s,h=s?i-r:r-i;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+c:(Math.abs(this._x1-u)>gb||Math.abs(this._y1-c)>gb)&&(this._+="L"+u+","+c),n&&(h<0&&(h=h%pb+pb),h>mb?this._+="A"+n+","+n+",0,1,"+l+","+(t-o)+","+(e-a)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):h>gb&&(this._+="A"+n+","+n+",0,"+ +(h>=fb)+","+l+","+(this._x1=t+n*Math.cos(r))+","+(this._y1=e+n*Math.sin(r))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}};var _b=vb,bb=function(t){return function(){return t}};function wb(t){return t[0]}function xb(t){return t[1]}var Eb=function(){};function Cb(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Sb(t,e){this._context=t,this._k=(1-e)/6}function kb(t,e){this._context=t,this._k=(1-e)/6}function Tb(t){this._curve=t}Sb.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:Cb(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Cb(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new Sb(t,e)}return n.tension=function(e){return t(+e)},n}(0),kb.prototype={areaStart:Eb,areaEnd:Eb,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Cb(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new kb(t,e)}return n.tension=function(e){return t(+e)},n}(0),Tb.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}},Math,Math,Math,Math,Math,Math,Math,Math;var Ob=function(t,e,n,i,r){for(var s,o=t.children,a=-1,u=o.length,c=t.value&&(i-e)/t.value;++a<u;)(s=o[a]).y0=n,s.y1=r,s.x0=e,s.x1=e+=s.value*c},Ab=function(t,e,n,i,r){for(var s,o=t.children,a=-1,u=o.length,c=t.value&&(r-n)/t.value;++a<u;)(s=o[a]).x0=e,s.x1=i,s.y0=n,s.y1=n+=s.value*c};function Mb(t){var e=0,n=t.children,i=n&&n.length;if(i)for(;--i>=0;)e+=n[i].value;else e=1;t.value=e}function Nb(t,e){var n,i,r,s,o,a=new jb(t),u=+t.value&&(a.value=t.value),c=[a];for(null==e&&(e=Db);n=c.pop();)if(u&&(n.value=+n.data.value),(r=e(n.data))&&(o=r.length))for(n.children=new Array(o),s=o-1;s>=0;--s)c.push(i=n.children[s]=new jb(r[s])),i.parent=n,i.depth=n.depth+1;return a.eachBefore(Pb)}function Db(t){return t.children}function Ib(t){t.data=t.data.data}function Pb(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function jb(t){this.data=t,this.depth=this.height=0,this.parent=null}!function t(e){function n(t,n,i,r,s){!function(t,e,n,i,r,s){for(var o,a,u,c,l,h,d,f,p,g,m,y=[],v=e.children,_=0,b=0,w=v.length,x=e.value;_<w;){u=r-n,c=s-i;do{l=v[b++].value}while(!l&&b<w);for(h=d=l,m=l*l*(g=Math.max(c/u,u/c)/(x*t)),p=Math.max(d/m,m/h);b<w;++b){if(l+=a=v[b].value,a<h&&(h=a),a>d&&(d=a),m=l*l*g,(f=Math.max(d/m,m/h))>p){l-=a;break}p=f}y.push(o={value:l,dice:u<c,children:v.slice(_,b)}),o.dice?Ob(o,n,i,r,x?i+=c*l/x:s):Ab(o,n,i,x?n+=u*l/x:r,s),x-=l,_=b}}(e,t,n,i,r,s)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}((1+Math.sqrt(5))/2),jb.prototype=Nb.prototype={constructor:jb,count:function(){return this.eachAfter(Mb)},each:function(t){var e,n,i,r,s=this,o=[s];do{for(e=o.reverse(),o=[];s=e.pop();)if(t(s),n=s.children)for(i=0,r=n.length;i<r;++i)o.push(n[i])}while(o.length);return this},eachAfter:function(t){for(var e,n,i,r=this,s=[r],o=[];r=s.pop();)if(o.push(r),e=r.children)for(n=0,i=e.length;n<i;++n)s.push(e[n]);for(;r=o.pop();)t(r);return this},eachBefore:function(t){for(var e,n,i=this,r=[i];i=r.pop();)if(t(i),e=i.children)for(n=e.length-1;n>=0;--n)r.push(e[n]);return this},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,i=e.children,r=i&&i.length;--r>=0;)n+=i[r].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),i=e.ancestors(),r=null;for(t=n.pop(),e=i.pop();t===e;)r=t,t=n.pop(),e=i.pop();return r}(e,t),i=[e];e!==n;)i.push(e=e.parent);for(var r=i.length;t!==n;)i.splice(r,0,t),t=t.parent;return i},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return Nb(this).eachBefore(Ib)}};const Lb=["caretElm"];function Fb(t,e){}const Rb=function(t){return{model:t}};function zb(t,e){if(1&t&&(ko(0,"span"),xo(1,Fb,0,0,"ng-template",5),To()),2&t){const t=jo();Er(1),Co("ngTemplateOutlet",t.template)("ngTemplateOutletContext",mu(2,Rb,t.context))}}function Bb(t,e){1&t&&Oo(0,"span",6),2&t&&Co("innerHTML",jo().title,nr)}function Vb(t,e){if(1&t&&(Mn(),Nn(),Oo(0,"ngx-charts-scale-legend",4)),2&t){const t=jo();Co("horizontal",t.legendOptions&&"below"===t.legendOptions.position)("valueRange",t.legendOptions.domain)("colors",t.legendOptions.colors)("height",t.view[1])("width",t.legendWidth)}}function Hb(t,e){if(1&t){const t=Mo();Mn(),Nn(),ko(0,"ngx-charts-legend",5),Do("labelClick",(function(e){return on(t),jo().legendLabelClick.emit(e)}))("labelActivate",(function(e){return on(t),jo().legendLabelActivate.emit(e)}))("labelDeactivate",(function(e){return on(t),jo().legendLabelDeactivate.emit(e)})),To()}if(2&t){const t=jo();Co("horizontal",t.legendOptions&&"below"===t.legendOptions.position)("data",t.legendOptions.domain)("title",t.legendOptions.title)("colors",t.legendOptions.colors)("height",t.view[1])("width",t.legendWidth)("activeEntries",t.activeEntries)}}const Gb=["*"];function Ub(t,e){if(1&t&&(ko(0,"header",4),ko(1,"span",5),sa(2),To(),To()),2&t){const t=jo();Er(2),oa(t.title)}}function qb(t,e){if(1&t){const t=Mo();ko(0,"li",6),ko(1,"ngx-charts-legend-entry",7),Do("select",(function(e){return on(t),jo().labelClick.emit(e)}))("activate",(function(e){return on(t),jo().activate(e)}))("deactivate",(function(e){return on(t),jo().deactivate(e)})),To(),To()}if(2&t){const t=e.$implicit,n=jo();Er(1),Co("label",t.label)("formattedLabel",t.formattedLabel)("color",t.color)("isActive",n.isActive(t))}}let Yb=(()=>{class t{constructor(t,e,n){this.applicationRef=t,this.componentFactoryResolver=e,this.injector=n}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(t){this._container=t}getComponentRootNode(t){return t.element?t.element.nativeElement:t.hostView&&t.hostView.rootNodes.length>0?t.hostView.rootNodes[0]:t.location.nativeElement}getRootViewContainerNode(t){return this.getComponentRootNode(t)}projectComponentBindings(t,e){if(e){if(void 0!==e.inputs){const n=Object.getOwnPropertyNames(e.inputs);for(const i of n)t.instance[i]=e.inputs[i]}if(void 0!==e.outputs){const n=Object.getOwnPropertyNames(e.outputs);for(const i of n)t.instance[i]=e.outputs[i]}}return t}appendComponent(t,e={},n){n||(n=this.getRootViewContainer());const i=this.getComponentRootNode(n),r=new Jf(i,this.componentFactoryResolver,this.applicationRef,this.injector),s=new Qf(t),o=r.attach(s);return this.projectComponentBindings(o,e),o}}return t.\u0275fac=function(e){return new(e||t)(Qt(Cc),Qt(Ca),Qt(lo))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function Wb(t,e,n){let i,r,s;n=n||{};let o=null,a=0;function u(){a=!1===n.leading?0:+new Date,o=null,s=t.apply(i,r)}return function(){const c=+new Date;a||!1!==n.leading||(a=c);const l=e-(c-a);return i=this,r=arguments,l<=0?(clearTimeout(o),o=null,a=c,s=t.apply(i,r)):o||!1===n.trailing||(o=setTimeout(u,l)),s}}var $b=function(t){return t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right",t}({});function Qb(t,e,n){return"top"===n?t.top-7:"bottom"===n?t.top+t.height-e.height+7:"center"===n?t.top+t.height/2-e.height/2:void 0}function Xb(t,e,n){return"left"===n?t.left-7:"right"===n?t.left+t.width-e.width+7:"center"===n?t.left+t.width/2-e.width/2:void 0}class Zb{static calculateVerticalAlignment(t,e,n){let i=Qb(t,e,n);return i+e.height>window.innerHeight&&(i=window.innerHeight-e.height),i}static calculateVerticalCaret(t,e,n,i){let r;"top"===i&&(r=t.height/2-n.height/2+7),"bottom"===i&&(r=e.height-t.height/2-n.height/2-7),"center"===i&&(r=e.height/2-n.height/2);const s=Qb(t,e,i);return s+e.height>window.innerHeight&&(r+=s+e.height-window.innerHeight),r}static calculateHorizontalAlignment(t,e,n){let i=Xb(t,e,n);return i+e.width>window.innerWidth&&(i=window.innerWidth-e.width),i}static calculateHorizontalCaret(t,e,n,i){let r;"left"===i&&(r=t.width/2-n.width/2+7),"right"===i&&(r=e.width-t.width/2-n.width/2-7),"center"===i&&(r=e.width/2-n.width/2);const s=Xb(t,e,i);return s+e.width>window.innerWidth&&(r+=s+e.width-window.innerWidth),r}static shouldFlip(t,e,n,i){let r=!1;return"right"===n&&t.left+t.width+e.width+i>window.innerWidth&&(r=!0),"left"===n&&t.left-e.width-i<0&&(r=!0),"top"===n&&t.top-e.height-i<0&&(r=!0),"bottom"===n&&t.top+t.height+e.height+i>window.innerHeight&&(r=!0),r}static positionCaret(t,e,n,i,r){let s=0,o=0;return t===$b.right?(o=-7,s=Zb.calculateVerticalCaret(n,e,i,r)):t===$b.left?(o=e.width,s=Zb.calculateVerticalCaret(n,e,i,r)):t===$b.top?(s=e.height,o=Zb.calculateHorizontalCaret(n,e,i,r)):t===$b.bottom&&(s=-7,o=Zb.calculateHorizontalCaret(n,e,i,r)),{top:s,left:o}}static positionContent(t,e,n,i,r){let s=0,o=0;return t===$b.right?(o=n.left+n.width+i,s=Zb.calculateVerticalAlignment(n,e,r)):t===$b.left?(o=n.left-e.width-i,s=Zb.calculateVerticalAlignment(n,e,r)):t===$b.top?(s=n.top-e.height-i,o=Zb.calculateHorizontalAlignment(n,e,r)):t===$b.bottom&&(s=n.top+n.height+i,o=Zb.calculateHorizontalAlignment(n,e,r)),{top:s,left:o}}static determinePlacement(t,e,n,i){if(Zb.shouldFlip(n,e,t,i)){if(t===$b.right)return $b.left;if(t===$b.left)return $b.right;if(t===$b.top)return $b.bottom;if(t===$b.bottom)return $b.top}return t}}let Kb,Jb=(()=>{class t{constructor(t,e){this.element=t,this.renderer=e}get cssClasses(){let t="ngx-charts-tooltip-content";return t+=" position-"+this.placement,t+=" type-"+this.type,t+=" "+this.cssClass,t}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){const t=this.element.nativeElement,e=this.host.nativeElement.getBoundingClientRect();if(!e.height&&!e.width)return;const n=t.getBoundingClientRect();this.checkFlip(e,n),this.positionContent(t,e,n),this.showCaret&&this.positionCaret(e,n),setTimeout(()=>this.renderer.addClass(t,"animate"),1)}positionContent(t,e,n){const{top:i,left:r}=Zb.positionContent(this.placement,n,e,this.spacing,this.alignment);this.renderer.setStyle(t,"top",i+"px"),this.renderer.setStyle(t,"left",r+"px")}positionCaret(t,e){const n=this.caretElm.nativeElement,i=n.getBoundingClientRect(),{top:r,left:s}=Zb.positionCaret(this.placement,e,t,i,this.alignment);this.renderer.setStyle(n,"top",r+"px"),this.renderer.setStyle(n,"left",s+"px")}checkFlip(t,e){this.placement=Zb.determinePlacement(this.placement,e,t,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(Eo(Sa),Eo(Aa))},t.\u0275cmp=fe({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(t,e){var n;1&t&&Nu(Lb,!0),2&t&&Mu(n=Pu())&&(e.caretElm=n.first)},hostVars:2,hostBindings:function(t,e){1&t&&Do("resize",(function(){return e.onWindowResize()}),!1,Xn),2&t&&Xo(se,$o,e.cssClasses,!0)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(t,e){var n;1&t&&(ko(0,"div"),Oo(1,"span",0,1),ko(3,"div",2),xo(4,zb,2,4,"span",3),xo(5,Bb,1,1,"span",4),To(),To()),2&t&&(Er(1),"tooltip-caret position-",n=e.placement,"",Xo(se,$o,wo(rn(),"tooltip-caret position-",n,""),!0),Co("hidden",!e.showCaret),Er(3),Co("ngIf",!e.title),Er(1),Co("ngIf",e.title))},directives:[Cl,Tl],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),ep([function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:Wb(n.value,100,void 0)}),this[e]}}}],t.prototype,"onWindowResize",null),t})(),tw=(()=>{class t extends class{constructor(t){this.injectionService=t,this.defaults={},this.components=new Map}getByType(t=this.type){return this.components.get(t)}create(t){return this.createByType(this.type,t)}createByType(t,e){e=this.assignDefaults(e);const n=this.injectComponent(t,e);return this.register(t,n),n}destroy(t){const e=this.components.get(t.componentType);if(e&&e.length){const n=e.indexOf(t);n>-1&&(e[n].destroy(),e.splice(n,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(t){const e=this.components.get(t);if(e&&e.length){let t=e.length-1;for(;t>=0;)this.destroy(e[t--])}}injectComponent(t,e){return this.injectionService.appendComponent(t,e)}assignDefaults(t){const e=Object.assign({},this.defaults.inputs),n=Object.assign({},this.defaults.outputs);return t.inputs||t.outputs||(t={inputs:t}),e&&(t.inputs=Object.assign(Object.assign({},e),t.inputs)),n&&(t.outputs=Object.assign(Object.assign({},n),t.outputs)),t}register(t,e){this.components.has(t)||this.components.set(t,[]),this.components.get(t).push(e)}}{constructor(t){super(t),this.type=Jb}}return t.\u0275fac=function(e){return new(e||t)(Qt(Yb))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),ew=(()=>{class t{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new _u,this.legendLabelActivate=new _u,this.legendLabelDeactivate=new _u}ngOnChanges(t){this.update()}update(){let t=0;this.showLegend&&(this.legendType=this.getLegendType(),this.legendOptions&&"right"!==this.legendOptions.position||(t="scaleLegend"===this.legendType?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-t)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:Math.floor(this.view[0]*t/12)}getLegendType(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",data:"data",legendData:"legendData",colors:"colors",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[wa([tw]),Pe],ngContentSelectors:Gb,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(t,e){1&t&&(Fo(),ko(0,"div",0),Mn(),ko(1,"svg",1),Ro(2),To(),xo(3,Vb,1,5,"ngx-charts-scale-legend",2),xo(4,Hb,1,7,"ngx-charts-legend",3),To()),2&t&&(Yo("width",e.view[0],"px"),Co("@animationState","active")("@.disabled",!e.animations),Er(1),bo("width",e.chartWidth)("height",e.view[1]),Er(2),Co("ngIf",e.showLegend&&"scaleLegend"===e.legendType),Er(1),Co("ngIf",e.showLegend&&"legend"===e.legendType))},directives:function(){return[Cl,cw,aw]},encapsulation:2,data:{animation:[dh("animationState",[vh(":enter",[gh({opacity:0}),fh("500ms 100ms",gh({opacity:1}))])])]},changeDetection:0}),t})(),nw=(()=>{class t{constructor(t,e){this.element=t,this.zone=e,this.visible=new _u,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const t=()=>{if(!this.element)return;const{offsetHeight:e,offsetWidth:n}=this.element.nativeElement;e&&n?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>t(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>t())})}}return t.\u0275fac=function(e){return new(e||t)(Eo(Sa),Eo(oc))},t.\u0275dir=_e({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t})(),iw=(()=>{class t{constructor(t,e,n){this.chartElement=t,this.zone=e,this.cd=n,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new _u}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new nw(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(t){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const t=this.getContainerDims();t&&(this.width=t.width,this.height=t.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let t,e;const n=this.chartElement.nativeElement;if(null!==n.parentNode){const i=n.parentNode.getBoundingClientRect();t=i.width,e=i.height}return t&&e?{width:t,height:e}:null}formatDates(){for(let t=0;t<this.results.length;t++){const e=this.results[t];if(e.label=e.name,e.label instanceof Date&&(e.label=e.label.toLocaleDateString()),e.series)for(let t=0;t<e.series.length;t++){const n=e.series[t];n.label=n.name,n.label instanceof Date&&(n.label=n.label.toLocaleDateString())}}}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){const t=ip(window,"resize").pipe(sp(200)).subscribe(t=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=t}cloneData(t){const e=[];for(const n of t){const t={name:n.name};if(void 0!==n.value&&(t.value=n.value),void 0!==n.series){t.series=[];for(const e of n.series){const n=Object.assign({},e);t.series.push(n)}}void 0!==n.extra&&(t.extra=JSON.parse(JSON.stringify(n.extra))),e.push(t)}return e}}return t.\u0275fac=function(e){return new(e||t)(Eo(Sa),Eo(oc),Eo($s))},t.\u0275cmp=fe({type:t,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[Pe],decls:1,vars:0,template:function(t,e){1&t&&Oo(0,"div")},encapsulation:2}),t})(),rw=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Il]]}),t})(),sw=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[Yb,tw],imports:[[Il]]}),t})();function ow(t){return t instanceof Date?t.toLocaleDateString():t.toLocaleString()}"undefined"!=typeof window?Kb=window:"undefined"!=typeof global&&(Kb=global);let aw=(()=>{class t{constructor(t){this.cd=t,this.horizontal=!1,this.labelClick=new _u,this.labelActivate=new _u,this.labelDeactivate=new _u,this.legendEntries=[]}ngOnChanges(t){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const t=[];for(const e of this.data){const n=ow(e);-1===t.findIndex(t=>t.label===n)&&t.push({label:e,formattedLabel:n,color:this.colors.getColor(e)})}return t}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(e=>t.label===e.name)}activate(t){this.labelActivate.emit(t)}deactivate(t){this.labelDeactivate.emit(t)}trackBy(t,e){return e.label}}return t.\u0275fac=function(e){return new(e||t)(Eo($s))},t.\u0275cmp=fe({type:t,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[Pe],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(t,e){1&t&&(ko(0,"div"),xo(1,Ub,3,1,"header",0),ko(2,"div",1),ko(3,"ul",2),xo(4,qb,2,4,"li",3),To(),To(),To()),2&t&&(Yo("width",e.width,"px"),Er(1),Co("ngIf",(null==e.title?null:e.title.length)>0),Er(2),Yo("max-height",e.height-45,"px"),Wo("horizontal-legend",e.horizontal),Er(1),Co("ngForOf",e.legendEntries)("ngForTrackBy",e.trackBy))},directives:function(){return[Cl,xl,uw]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{font-size:14px;font-weight:700;margin-bottom:5px;margin-left:10px;overflow:hidden;white-space:nowrap}.chart-legend li,.chart-legend ul{list-style:none;margin:0;padding:0}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{background:rgba(0,0,0,.05);border-radius:3px;float:left;line-height:85%;list-style:none;overflow-x:hidden;overflow-y:auto;text-align:left;white-space:nowrap;width:100%}.chart-legend .legend-label{color:#afb7c8;cursor:pointer;font-size:90%;margin:8px}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{border-radius:3px;color:#5b646b;display:inline-block;height:15px;margin-right:5px;width:15px}.chart-legend .legend-label-text{font-size:12px;line-height:15px;vertical-align:top;width:calc(100% - 20px)}.chart-legend .legend-label-text,.chart-legend .legend-title-text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-legend .legend-title-text{line-height:16px;vertical-align:bottom}"],encapsulation:2,changeDetection:0}),t})(),uw=(()=>{class t{constructor(){this.isActive=!1,this.select=new _u,this.activate=new _u,this.deactivate=new _u,this.toggle=new _u}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(t,e){1&t&&Do("mouseenter",(function(){return e.onMouseEnter()}))("mouseleave",(function(){return e.onMouseLeave()}))},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(t,e){1&t&&(ko(0,"span",0),Do("click",(function(){return e.select.emit(e.formattedLabel)})),ko(1,"span",1),Do("click",(function(){return e.toggle.emit(e.formattedLabel)})),To(),ko(2,"span",2),sa(3),To(),To()),2&t&&(Wo("active",e.isActive),Co("title",e.formattedLabel),Er(1),Yo("background-color",e.color),Er(2),aa(" ",e.trimmedLabel," "))},encapsulation:2,changeDetection:0}),t})(),cw=(()=>{class t{constructor(t){this.sanitizer=t,this.horizontal=!1}ngOnChanges(t){const e=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${e})`)}gradientString(t,e){e.push(1);const n=[];return t.reverse().forEach((t,i)=>{n.push(`${t} ${Math.round(100*e[i])}%`)}),n.join(", ")}}return t.\u0275fac=function(e){return new(e||t)(Eo(sh))},t.\u0275cmp=fe({type:t,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[Pe],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(t,e){1&t&&(ko(0,"div",0),ko(1,"div",1),ko(2,"span"),sa(3),To(),To(),Oo(4,"div",2),ko(5,"div",1),ko(6,"span"),sa(7),To(),To(),To()),2&t&&(Yo("height",e.horizontal?void 0:e.height,"px")("width",e.width,"px"),Wo("horizontal-legend",e.horizontal),Er(3),oa(e.valueRange[1].toLocaleString()),Er(1),Yo("background",e.gradient),Er(3),oa(e.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{display:flex;flex-direction:column;text-align:center}.chart-legend .scale-legend-wrap{border-radius:5px;display:inline-block;flex:1;margin:0 auto;width:30px}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{height:30px;margin:0 16px;width:auto}"],encapsulation:2,changeDetection:0}),t})(),lw=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Il,rw,sw],Il,rw,sw]}),t})(),hw=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class dw{constructor(t,e,n,i){"string"==typeof t&&(t=hw.find(e=>e.name===t)),this.colorDomain=t.domain,this.scaleType=e,this.domain=n,this.customColors=i,this.scale=this.generateColorScheme(t,e,this.domain)}generateColorScheme(t,e,n){let i;if("string"==typeof t&&(t=hw.find(e=>e.name===t)),"quantile"===e)i=function t(){var e,n=[],i=[],r=[];function s(){var t=0,e=Math.max(1,i.length);for(r=new Array(e-1);++t<e;)r[t-1]=lb(n,t/e);return o}function o(t){return null==t||isNaN(t=+t)?e:i[P_(r,t)]}return o.invertExtent=function(t){var e=i.indexOf(t);return e<0?[NaN,NaN]:[e>0?r[e-1]:n[0],e<r.length?r[e]:n[n.length-1]]},o.domain=function(t){if(!arguments.length)return n.slice();n=[];for(let e of t)null==e||isNaN(e=+e)||n.push(e);return n.sort(Dy),s()},o.range=function(t){return arguments.length?(i=Array.from(t),s()):i.slice()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.quantiles=function(){return r.slice()},o.copy=function(){return t().domain(n).range(i).unknown(e)},U_.apply(o,arguments)}().range(t.domain).domain(n);else if("ordinal"===e)i=cb().range(t.domain).domain(n);else if("linear"===e){const e=[...t.domain];1===e.length&&(e.push(e[0]),this.colorDomain=e);const n=ab(0,1,1/e.length);i=ob().domain(n).range(e)}return i}getColor(t){if(null==t)throw new Error("Value can not be null");if("linear"===this.scaleType){const e=ob().domain(this.domain).range([0,1]);return this.scale(e(t))}{if("function"==typeof this.customColors)return this.customColors(t);const e=t.toString();let n;return this.customColors&&this.customColors.length>0&&(n=this.customColors.find(t=>t.name.toLowerCase()===e.toLowerCase())),n?n.value:this.scale(t)}}getLinearGradientStops(t,e){void 0===e&&(e=this.domain[0]);const n=ob().domain(this.domain).range([0,1]),i=function t(){var e,n,i=cb().unknown(void 0),r=i.domain,s=i.range,o=0,a=1,u=!1,c=0,l=0,h=.5;function d(){var t=r().length,i=a<o,d=i?a:o,f=i?o:a;e=(f-d)/Math.max(1,t-c+2*l),u&&(e=Math.floor(e)),d+=(f-d-e*(t-c))*h,n=e*(1-c),u&&(d=Math.round(d),n=Math.round(n));var p=ab(t).map((function(t){return d+e*t}));return s(i?p.reverse():p)}return delete i.unknown,i.domain=function(t){return arguments.length?(r(t),d()):r()},i.range=function(t){return arguments.length?([o,a]=t,o=+o,a=+a,d()):[o,a]},i.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,u=!0,d()},i.bandwidth=function(){return n},i.step=function(){return e},i.round=function(t){return arguments.length?(u=!!t,d()):u},i.padding=function(t){return arguments.length?(c=Math.min(1,l=+t),d()):c},i.paddingInner=function(t){return arguments.length?(c=Math.min(1,t),d()):c},i.paddingOuter=function(t){return arguments.length?(l=+t,d()):l},i.align=function(t){return arguments.length?(h=Math.max(0,Math.min(1,t)),d()):h},i.copy=function(){return t(r(),[o,a]).round(u).paddingInner(c).paddingOuter(l).align(h)},U_.apply(d(),arguments)}().domain(this.colorDomain).range([0,1]),r=this.getColor(t),s=n(e),o=this.getColor(e),a=n(t);let u=1,c=s;const l=[];for(l.push({color:o,offset:s,originalOffset:s,opacity:1});c<a&&u<this.colorDomain.length;){const t=this.colorDomain[u],e=i(t);if(e<=s)u++;else{if(e.toFixed(4)>=(a-i.bandwidth()).toFixed(4))break;l.push({color:t,offset:e,opacity:1}),c=e,u++}}if(l[l.length-1].offset<100&&l.push({color:r,offset:a,opacity:1}),a===s)l[0].offset=0,l[1].offset=100;else if(100!==l[l.length-1].offset)for(const h of l)h.offset=(h.offset-s)/(a-s)*100;return l}}let fw=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[lw]]}),t})(),pw=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[lw]]}),t})(),gw=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[lw]]}),t})(),mw=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[lw]]}),t})(),yw=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[lw]]}),t})();Math;let vw=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[lw]]}),t})(),_w=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[lw,vw,yw]]}),t})(),bw=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[lw]]}),t})(),ww=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[lw]]}),t})(),xw=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[lw,vw,pw]]}),t})(),Ew=(()=>{class t{constructor(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[lw,fw,pw,gw,mw,yw,_w,bw,vw,ww,xw]}),t})();function Cw(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Sw(t){this._context=t}function kw(t,e){this._basis=new Sw(t),this._beta=e}Sw.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:Cw(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Cw(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},kw.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var i,r=t[0],s=e[0],o=t[n]-r,a=e[n]-s,u=-1;++u<=n;)this._basis.point(this._beta*t[u]+(1-this._beta)*(r+(i=u/n)*o),this._beta*e[u]+(1-this._beta)*(s+i*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Tw=function t(e){function n(t){return 1===e?new Sw(t):new kw(t,e)}return n.beta=function(e){return t(+e)},n}(.85),Ow=Math.PI;function Aw(t){return(1-Math.cos(Ow*t))/2}const Mw=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function Nw(t,e){return function(n){return n.lift(new Dw(t,e))}}class Dw{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Iw(t,this.predicate,this.thisArg))}}class Iw extends y{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}const Pw=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function jw(t){return e=>0===t?Fc():e.lift(new Lw(t))}class Lw{constructor(t){if(this.total=t,this.total<0)throw new Pw}call(t,e){return e.subscribe(new Fw(t,this.total))}}class Fw extends y{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function Rw(t=null){return e=>e.lift(new zw(t))}class zw{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Bw(t,this.defaultValue))}}class Bw extends y{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Vw(t=Uw){return e=>e.lift(new Hw(t))}class Hw{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new Gw(t,this.errorFactory))}}class Gw extends y{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function Uw(){return new Mw}function qw(t){return void 0===t}function Yw(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{a:1,c:0,e:t,b:0,d:1,f:e}}function Ww(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function $w(t){return Array.isArray(t)?t:Array.from(t)}function Qw(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=function(t,e){return{a:t.a*e.a+t.c*e.b,c:t.a*e.c+t.c*e.d,e:t.a*e.e+t.c*e.f+t.e,b:t.b*e.a+t.d*e.b,d:t.b*e.c+t.d*e.d,f:t.b*e.e+t.d*e.f+t.f}};switch((e=Array.isArray(e[0])?e[0]:e).length){case 0:throw new Error("no matrices provided");case 1:return e[0];case 2:return i(e[0],e[1]);default:var r=e,s=$w(r),o=s[0],a=s[1],u=s.slice(2),c=i(o,a);return Qw.apply(void 0,[c].concat(Ww(u)))}}"function"==typeof Symbol&&Symbol,Math,Math,Math,Math;var Xw=n("4e6e"),Zw=function(t,e){var n;function i(){var i,r,s=n.length,o=0,a=0;for(i=0;i<s;++i)o+=(r=n[i]).x,a+=r.y;for(o=o/s-t,a=a/s-e,i=0;i<s;++i)(r=n[i]).x-=o,r.y-=a}return null==t&&(t=0),null==e&&(e=0),i.initialize=function(t){n=t},i.x=function(e){return arguments.length?(t=+e,i):t},i.y=function(t){return arguments.length?(e=+t,i):e},i},Kw=function(t){return function(){return t}},Jw=function(){return 1e-6*(Math.random()-.5)};function tx(t,e,n,i){if(isNaN(e)||isNaN(n))return t;var r,s,o,a,u,c,l,h,d,f=t._root,p={data:i},g=t._x0,m=t._y0,y=t._x1,v=t._y1;if(!f)return t._root=p,t;for(;f.length;)if((c=e>=(s=(g+y)/2))?g=s:y=s,(l=n>=(o=(m+v)/2))?m=o:v=o,r=f,!(f=f[h=l<<1|c]))return r[h]=p,t;if(a=+t._x.call(null,f.data),u=+t._y.call(null,f.data),e===a&&n===u)return p.next=f,r?r[h]=p:t._root=p,t;do{r=r?r[h]=new Array(4):t._root=new Array(4),(c=e>=(s=(g+y)/2))?g=s:y=s,(l=n>=(o=(m+v)/2))?m=o:v=o}while((h=l<<1|c)==(d=(u>=o)<<1|a>=s));return r[d]=f,r[h]=p,t}var ex=function(t,e,n,i,r){this.node=t,this.x0=e,this.y0=n,this.x1=i,this.y1=r};function nx(t){return t[0]}function ix(t){return t[1]}function rx(t,e,n){var i=new sx(null==e?nx:e,null==n?ix:n,NaN,NaN,NaN,NaN);return null==t?i:i.addAll(t)}function sx(t,e,n,i,r,s){this._x=t,this._y=e,this._x0=n,this._y0=i,this._x1=r,this._y1=s,this._root=void 0}function ox(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var ax=rx.prototype=sx.prototype;function ux(t){return t.x+t.vx}function cx(t){return t.y+t.vy}ax.copy=function(){var t,e,n=new sx(this._x,this._y,this._x0,this._y0,this._x1,this._y1),i=this._root;if(!i)return n;if(!i.length)return n._root=ox(i),n;for(t=[{source:i,target:n._root=new Array(4)}];i=t.pop();)for(var r=0;r<4;++r)(e=i.source[r])&&(e.length?t.push({source:e,target:i.target[r]=new Array(4)}):i.target[r]=ox(e));return n},ax.add=function(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return tx(this.cover(e,n),e,n,t)},ax.addAll=function(t){var e,n,i,r,s=t.length,o=new Array(s),a=new Array(s),u=1/0,c=1/0,l=-1/0,h=-1/0;for(n=0;n<s;++n)isNaN(i=+this._x.call(null,e=t[n]))||isNaN(r=+this._y.call(null,e))||(o[n]=i,a[n]=r,i<u&&(u=i),i>l&&(l=i),r<c&&(c=r),r>h&&(h=r));if(u>l||c>h)return this;for(this.cover(u,c).cover(l,h),n=0;n<s;++n)tx(this,o[n],a[n],t[n]);return this},ax.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,i=this._y0,r=this._x1,s=this._y1;if(isNaN(n))r=(n=Math.floor(t))+1,s=(i=Math.floor(e))+1;else{for(var o,a,u=r-n,c=this._root;n>t||t>=r||i>e||e>=s;)switch(a=(e<i)<<1|t<n,(o=new Array(4))[a]=c,c=o,u*=2,a){case 0:r=n+u,s=i+u;break;case 1:n=r-u,s=i+u;break;case 2:r=n+u,i=s-u;break;case 3:n=r-u,i=s-u}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=i,this._x1=r,this._y1=s,this},ax.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},ax.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},ax.find=function(t,e,n){var i,r,s,o,a,u,c,l=this._x0,h=this._y0,d=this._x1,f=this._y1,p=[],g=this._root;for(g&&p.push(new ex(g,l,h,d,f)),null==n?n=1/0:(l=t-n,h=e-n,d=t+n,f=e+n,n*=n);u=p.pop();)if(!(!(g=u.node)||(r=u.x0)>d||(s=u.y0)>f||(o=u.x1)<l||(a=u.y1)<h))if(g.length){var m=(r+o)/2,y=(s+a)/2;p.push(new ex(g[3],m,y,o,a),new ex(g[2],r,y,m,a),new ex(g[1],m,s,o,y),new ex(g[0],r,s,m,y)),(c=(e>=y)<<1|t>=m)&&(u=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=u)}else{var v=t-+this._x.call(null,g.data),_=e-+this._y.call(null,g.data),b=v*v+_*_;if(b<n){var w=Math.sqrt(n=b);l=t-w,h=e-w,d=t+w,f=e+w,i=g.data}}return i},ax.remove=function(t){if(isNaN(s=+this._x.call(null,t))||isNaN(o=+this._y.call(null,t)))return this;var e,n,i,r,s,o,a,u,c,l,h,d,f=this._root,p=this._x0,g=this._y0,m=this._x1,y=this._y1;if(!f)return this;if(f.length)for(;;){if((c=s>=(a=(p+m)/2))?p=a:m=a,(l=o>=(u=(g+y)/2))?g=u:y=u,e=f,!(f=f[h=l<<1|c]))return this;if(!f.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(n=e,d=h)}for(;f.data!==t;)if(i=f,!(f=f.next))return this;return(r=f.next)&&delete f.next,i?(r?i.next=r:delete i.next,this):e?(r?e[h]=r:delete e[h],(f=e[0]||e[1]||e[2]||e[3])&&f===(e[3]||e[2]||e[1]||e[0])&&!f.length&&(n?n[d]=f:this._root=f),this):(this._root=r,this)},ax.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},ax.root=function(){return this._root},ax.size=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},ax.visit=function(t){var e,n,i,r,s,o,a=[],u=this._root;for(u&&a.push(new ex(u,this._x0,this._y0,this._x1,this._y1));e=a.pop();)if(!t(u=e.node,i=e.x0,r=e.y0,s=e.x1,o=e.y1)&&u.length){var c=(i+s)/2,l=(r+o)/2;(n=u[3])&&a.push(new ex(n,c,l,s,o)),(n=u[2])&&a.push(new ex(n,i,l,c,o)),(n=u[1])&&a.push(new ex(n,c,r,s,l)),(n=u[0])&&a.push(new ex(n,i,r,c,l))}return this},ax.visitAfter=function(t){var e,n=[],i=[];for(this._root&&n.push(new ex(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var r=e.node;if(r.length){var s,o=e.x0,a=e.y0,u=e.x1,c=e.y1,l=(o+u)/2,h=(a+c)/2;(s=r[0])&&n.push(new ex(s,o,a,l,h)),(s=r[1])&&n.push(new ex(s,l,a,u,h)),(s=r[2])&&n.push(new ex(s,o,h,l,c)),(s=r[3])&&n.push(new ex(s,l,h,u,c))}i.push(e)}for(;e=i.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},ax.x=function(t){return arguments.length?(this._x=t,this):this._x},ax.y=function(t){return arguments.length?(this._y=t,this):this._y};var lx=function(t){var e,n,i=1,r=1;function s(){for(var t,s,a,u,c,l,h,d=e.length,f=0;f<r;++f)for(s=rx(e,ux,cx).visitAfter(o),t=0;t<d;++t)h=(l=n[(a=e[t]).index])*l,u=a.x+a.vx,c=a.y+a.vy,s.visit(p);function p(t,e,n,r,s){var o=t.data,d=t.r,f=l+d;if(!o)return e>u+f||r<u-f||n>c+f||s<c-f;if(o.index>a.index){var p=u-o.x-o.vx,g=c-o.y-o.vy,m=p*p+g*g;m<f*f&&(0===p&&(m+=(p=Jw())*p),0===g&&(m+=(g=Jw())*g),m=(f-(m=Math.sqrt(m)))/m*i,a.vx+=(p*=m)*(f=(d*=d)/(h+d)),a.vy+=(g*=m)*f,o.vx-=p*(f=1-f),o.vy-=g*f)}}}function o(t){if(t.data)return t.r=n[t.data.index];for(var e=t.r=0;e<4;++e)t[e]&&t[e].r>t.r&&(t.r=t[e].r)}function a(){if(e){var i,r,s=e.length;for(n=new Array(s),i=0;i<s;++i)n[(r=e[i]).index]=+t(r,i,e)}}return"function"!=typeof t&&(t=Kw(null==t?1:+t)),s.initialize=function(t){e=t,a()},s.iterations=function(t){return arguments.length?(r=+t,s):r},s.strength=function(t){return arguments.length?(i=+t,s):i},s.radius=function(e){return arguments.length?(t="function"==typeof e?e:Kw(+e),a(),s):t},s},hx="$";function dx(){}function fx(t,e){var n=new dx;if(t instanceof dx)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var i,r=-1,s=t.length;if(null==e)for(;++r<s;)n.set(r,t[r]);else for(;++r<s;)n.set(e(i=t[r],r,t),i)}else if(t)for(var o in t)n.set(o,t[o]);return n}dx.prototype=fx.prototype={constructor:dx,has:function(t){return hx+t in this},get:function(t){return this[hx+t]},set:function(t,e){return this[hx+t]=e,this},remove:function(t){var e=hx+t;return e in this&&delete this[e]},clear:function(){for(var t in this)t[0]===hx&&delete this[t]},keys:function(){var t=[];for(var e in this)e[0]===hx&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)e[0]===hx&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)e[0]===hx&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)e[0]===hx&&++t;return t},empty:function(){for(var t in this)if(t[0]===hx)return!1;return!0},each:function(t){for(var e in this)e[0]===hx&&t(this[e],e.slice(1),this)}};var px=fx;function gx(){}var mx=px.prototype;function yx(t){return t.index}function vx(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}gx.prototype=(function(t,e){var n=new gx;if(t instanceof gx)t.each((function(t){n.add(t)}));else if(t){var i=-1,r=t.length;if(null==e)for(;++i<r;)n.add(t[i]);else for(;++i<r;)n.add(e(t[i],i,t))}return n}).prototype={constructor:gx,has:mx.has,add:function(t){return this[hx+(t+="")]=t,this},remove:mx.remove,clear:mx.clear,values:mx.keys,size:mx.size,empty:mx.empty,each:mx.each};var _x=function(t){var e,n,i,r,s,o=yx,a=function(t){return 1/Math.min(r[t.source.index],r[t.target.index])},u=Kw(30),c=1;function l(i){for(var r=0,o=t.length;r<c;++r)for(var a,u,l,h,d,f,p,g=0;g<o;++g)h=(l=(a=t[g]).target).x+l.vx-(u=a.source).x-u.vx||Jw(),d=l.y+l.vy-u.y-u.vy||Jw(),d*=f=((f=Math.sqrt(h*h+d*d))-n[g])/f*i*e[g],l.vx-=(h*=f)*(p=s[g]),l.vy-=d*p,u.vx+=h*(p=1-p),u.vy+=d*p}function h(){if(i){var a,u,c=i.length,l=t.length,h=px(i,o);for(a=0,r=new Array(c);a<l;++a)(u=t[a]).index=a,"object"!=typeof u.source&&(u.source=vx(h,u.source)),"object"!=typeof u.target&&(u.target=vx(h,u.target)),r[u.source.index]=(r[u.source.index]||0)+1,r[u.target.index]=(r[u.target.index]||0)+1;for(a=0,s=new Array(l);a<l;++a)s[a]=r[(u=t[a]).source.index]/(r[u.source.index]+r[u.target.index]);e=new Array(l),d(),n=new Array(l),f()}}function d(){if(i)for(var n=0,r=t.length;n<r;++n)e[n]=+a(t[n],n,t)}function f(){if(i)for(var e=0,r=t.length;e<r;++e)n[e]=+u(t[e],e,t)}return null==t&&(t=[]),l.initialize=function(t){i=t,h()},l.links=function(e){return arguments.length?(t=e,h(),l):t},l.id=function(t){return arguments.length?(o=t,l):o},l.iterations=function(t){return arguments.length?(c=+t,l):c},l.strength=function(t){return arguments.length?(a="function"==typeof t?t:Kw(+t),d(),l):a},l.distance=function(t){return arguments.length?(u="function"==typeof t?t:Kw(+t),f(),l):u},l};function bx(t){return t.x}function wx(t){return t.y}var xx=Math.PI*(3-Math.sqrt(5)),Ex=function(t){var e,n=1,i=.001,r=1-Math.pow(i,1/300),s=0,o=.6,a=px(),u=Nm(l),c=kg("tick","end");function l(){h(),c.call("tick",e),n<i&&(u.stop(),c.call("end",e))}function h(i){var u,c,l=t.length;void 0===i&&(i=1);for(var h=0;h<i;++h)for(n+=(s-n)*r,a.each((function(t){t(n)})),u=0;u<l;++u)null==(c=t[u]).fx?c.x+=c.vx*=o:(c.x=c.fx,c.vx=0),null==c.fy?c.y+=c.vy*=o:(c.y=c.fy,c.vy=0);return e}function d(){for(var e,n=0,i=t.length;n<i;++n){if((e=t[n]).index=n,null!=e.fx&&(e.x=e.fx),null!=e.fy&&(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var r=10*Math.sqrt(n),s=n*xx;e.x=r*Math.cos(s),e.y=r*Math.sin(s)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function f(e){return e.initialize&&e.initialize(t),e}return null==t&&(t=[]),d(),e={tick:h,restart:function(){return u.restart(l),e},stop:function(){return u.stop(),e},nodes:function(n){return arguments.length?(t=n,d(),a.each(f),e):t},alpha:function(t){return arguments.length?(n=+t,e):n},alphaMin:function(t){return arguments.length?(i=+t,e):i},alphaDecay:function(t){return arguments.length?(r=+t,e):+r},alphaTarget:function(t){return arguments.length?(s=+t,e):s},velocityDecay:function(t){return arguments.length?(o=1-t,e):1-o},force:function(t,n){return arguments.length>1?(null==n?a.remove(t):a.set(t,f(n)),e):a.get(t)},find:function(e,n,i){var r,s,o,a,u,c=0,l=t.length;for(null==i?i=1/0:i*=i,c=0;c<l;++c)(o=(r=e-(a=t[c]).x)*r+(s=n-a.y)*s)<i&&(u=a,i=o);return u},on:function(t,n){return arguments.length>1?(c.on(t,n),e):c.on(t)}}},Cx=function(){var t,e,n,i,r=Kw(-30),s=1,o=1/0,a=.81;function u(i){var r,s=t.length,o=rx(t,bx,wx).visitAfter(l);for(n=i,r=0;r<s;++r)e=t[r],o.visit(h)}function c(){if(t){var e,n,s=t.length;for(i=new Array(s),e=0;e<s;++e)i[(n=t[e]).index]=+r(n,e,t)}}function l(t){var e,n,r,s,o,a=0,u=0;if(t.length){for(r=s=o=0;o<4;++o)(e=t[o])&&(n=Math.abs(e.value))&&(a+=e.value,u+=n,r+=n*e.x,s+=n*e.y);t.x=r/u,t.y=s/u}else{(e=t).x=e.data.x,e.y=e.data.y;do{a+=i[e.data.index]}while(e=e.next)}t.value=a}function h(t,r,u,c){if(!t.value)return!0;var l=t.x-e.x,h=t.y-e.y,d=c-r,f=l*l+h*h;if(d*d/a<f)return f<o&&(0===l&&(f+=(l=Jw())*l),0===h&&(f+=(h=Jw())*h),f<s&&(f=Math.sqrt(s*f)),e.vx+=l*t.value*n/f,e.vy+=h*t.value*n/f),!0;if(!(t.length||f>=o)){(t.data!==e||t.next)&&(0===l&&(f+=(l=Jw())*l),0===h&&(f+=(h=Jw())*h),f<s&&(f=Math.sqrt(s*f)));do{t.data!==e&&(e.vx+=l*(d=i[t.data.index]*n/f),e.vy+=h*d)}while(t=t.next)}}return u.initialize=function(e){t=e,c()},u.strength=function(t){return arguments.length?(r="function"==typeof t?t:Kw(+t),c(),u):r},u.distanceMin=function(t){return arguments.length?(s=t*t,u):Math.sqrt(s)},u.distanceMax=function(t){return arguments.length?(o=t*t,u):Math.sqrt(o)},u.theta=function(t){return arguments.length?(a=t*t,u):Math.sqrt(a)},u},Sx=function(t,e,n){var i,r,s,o=Kw(.1);function a(t){for(var o=0,a=i.length;o<a;++o){var u=i[o],c=u.x-e||1e-6,l=u.y-n||1e-6,h=Math.sqrt(c*c+l*l),d=(s[o]-h)*r[o]*t/h;u.vx+=c*d,u.vy+=l*d}}function u(){if(i){var e,n=i.length;for(r=new Array(n),s=new Array(n),e=0;e<n;++e)s[e]=+t(i[e],e,i),r[e]=isNaN(s[e])?0:+o(i[e],e,i)}}return"function"!=typeof t&&(t=Kw(+t)),null==e&&(e=0),null==n&&(n=0),a.initialize=function(t){i=t,u()},a.strength=function(t){return arguments.length?(o="function"==typeof t?t:Kw(+t),u(),a):o},a.radius=function(e){return arguments.length?(t="function"==typeof e?e:Kw(+e),u(),a):t},a.x=function(t){return arguments.length?(e=+t,a):e},a.y=function(t){return arguments.length?(n=+t,a):n},a},kx=function(t){var e,n,i,r=Kw(.1);function s(t){for(var r,s=0,o=e.length;s<o;++s)(r=e[s]).vx+=(i[s]-r.x)*n[s]*t}function o(){if(e){var s,o=e.length;for(n=new Array(o),i=new Array(o),s=0;s<o;++s)n[s]=isNaN(i[s]=+t(e[s],s,e))?0:+r(e[s],s,e)}}return"function"!=typeof t&&(t=Kw(null==t?0:+t)),s.initialize=function(t){e=t,o()},s.strength=function(t){return arguments.length?(r="function"==typeof t?t:Kw(+t),o(),s):r},s.x=function(e){return arguments.length?(t="function"==typeof e?e:Kw(+e),o(),s):t},s},Tx=function(t){var e,n,i,r=Kw(.1);function s(t){for(var r,s=0,o=e.length;s<o;++s)(r=e[s]).vy+=(i[s]-r.y)*n[s]*t}function o(){if(e){var s,o=e.length;for(n=new Array(o),i=new Array(o),s=0;s<o;++s)n[s]=isNaN(i[s]=+t(e[s],s,e))?0:+r(e[s],s,e)}}return"function"!=typeof t&&(t=Kw(null==t?0:+t)),s.initialize=function(t){e=t,o()},s.strength=function(t){return arguments.length?(r="function"==typeof t?t:Kw(+t),o(),s):r},s.y=function(e){return arguments.length?(t="function"==typeof e?e:Kw(+e),o(),s):t},s},Ox=n("eErA"),Ax=function(t,e,n){var i=new Mm,r=e;return null==e?(i.restart(t,e,n),i):(e=+e,n=null==n?Om():+n,i.restart((function s(o){o+=r,i.restart(s,r+=e,n),t(o)}),e,n),i)};const Mx=["linkTemplate"],Nx=["nodeTemplate"],Dx=["clusterTemplate"],Ix=["defsTemplate"],Px=["miniMapNodeTemplate"],jx=["nodeElement"],Lx=["linkElement"];function Fx(t,e){1&t&&(Mn(),Ao(0,13)),2&t&&Co("ngTemplateOutlet",jo(2).defsTemplate)}function Rx(t,e){if(1&t&&(Mn(),Oo(0,"path",14)),2&t){const t=e.$implicit;bo("d",t.textPath)("id",t.id)}}const zx=function(t){return{$implicit:t}};function Bx(t,e){if(1&t&&(Mn(),Ao(0,19)),2&t){const t=jo().$implicit;Co("ngTemplateOutlet",jo(2).clusterTemplate)("ngTemplateOutletContext",mu(2,zx,t))}}function Vx(t,e){if(1&t&&(Mn(),ko(0,"g",20),Oo(1,"rect"),ko(2,"text",21),sa(3),To(),To()),2&t){const t=jo().$implicit;Er(1),bo("width",t.dimension.width)("height",t.dimension.height)("fill",null==t.data?null:t.data.color),Er(1),bo("x",10)("y",t.dimension.height/2),Er(1),aa(" ",t.label," ")}}function Hx(t,e){if(1&t){const t=Mo();Mn(),ko(0,"g",15,16),Do("click",(function(){on(t);const n=e.$implicit;return jo(2).onClick(n)})),xo(2,Bx,1,4,"ng-container",17),xo(3,Vx,4,6,"g",18),To()}if(2&t){const t=e.$implicit,n=jo(2);Wo("old-node",n.animate&&n.oldClusters.has(t.id)),Co("id",t.id),bo("transform",t.transform),Er(2),Co("ngIf",n.clusterTemplate),Er(1),Co("ngIf",!n.clusterTemplate)}}function Gx(t,e){if(1&t&&(Mn(),Ao(0,19)),2&t){const t=jo().$implicit;Co("ngTemplateOutlet",jo(2).linkTemplate)("ngTemplateOutletContext",mu(2,zx,t))}}function Ux(t,e){1&t&&(Mn(),Oo(0,"path",25)),2&t&&bo("d",jo().$implicit.line)}function qx(t,e){if(1&t&&(Mn(),ko(0,"g",22,23),xo(2,Gx,1,4,"ng-container",17),xo(3,Ux,1,1,"path",24),To()),2&t){const t=e.$implicit,n=jo(2);Co("id",t.id),Er(2),Co("ngIf",n.linkTemplate),Er(1),Co("ngIf",!n.linkTemplate)}}function Yx(t,e){if(1&t&&(Mn(),Ao(0,19)),2&t){const t=jo().$implicit;Co("ngTemplateOutlet",jo(2).nodeTemplate)("ngTemplateOutletContext",mu(2,zx,t))}}function Wx(t,e){if(1&t&&(Mn(),Oo(0,"circle",29)),2&t){const t=jo().$implicit;bo("cx",t.dimension.width/2)("cy",t.dimension.height/2)("fill",null==t.data?null:t.data.color)}}function $x(t,e){if(1&t){const t=Mo();Mn(),ko(0,"g",26,27),Do("click",(function(){on(t);const n=e.$implicit;return jo(2).onClick(n)}))("mousedown",(function(n){on(t);const i=e.$implicit;return jo(2).onNodeMouseDown(n,i)})),xo(2,Yx,1,4,"ng-container",17),xo(3,Wx,1,3,"circle",28),To()}if(2&t){const t=e.$implicit,n=jo(2);Wo("old-node",n.animate&&n.oldNodes.has(t.id)),Co("id",t.id),bo("transform",t.transform),Er(2),Co("ngIf",n.nodeTemplate),Er(1),Co("ngIf",!n.nodeTemplate)}}function Qx(t,e){if(1&t){const t=Mo();Mn(),ko(0,"g",3),Do("touchstart",(function(e){return on(t),jo().onTouchStart(e)}))("touchend",(function(e){return on(t),jo().onTouchEnd(e)})),ko(1,"defs"),xo(2,Fx,1,1,"ng-container",4),xo(3,Rx,1,2,"path",5),To(),ko(4,"rect",6),Do("mousedown",(function(){return on(t),jo().isPanning=!0})),To(),Ro(5),ko(6,"g",7),xo(7,Hx,4,6,"g",8),To(),ko(8,"g",9),xo(9,qx,4,3,"g",10),To(),ko(10,"g",11),xo(11,$x,4,6,"g",12),To(),To()}if(2&t){const t=jo();bo("transform",t.transform),Er(2),Co("ngIf",t.defsTemplate),Er(1),Co("ngForOf",t.graph.edges),Er(1),bo("width",100*t.dims.width)("height",100*t.dims.height)("transform","translate("+50*(-t.dims.width||0)+","+50*(-t.dims.height||0)+")"),Er(3),Co("ngForOf",t.graph.clusters)("ngForTrackBy",t.trackNodeBy),Er(2),Co("ngForOf",t.graph.edges)("ngForTrackBy",t.trackLinkBy),Er(2),Co("ngForOf",t.graph.nodes)("ngForTrackBy",t.trackNodeBy)}}function Xx(t,e){if(1&t&&(Mn(),Ao(0,19)),2&t){const t=jo().$implicit;Co("ngTemplateOutlet",jo(2).miniMapNodeTemplate)("ngTemplateOutletContext",mu(2,zx,t))}}function Zx(t,e){if(1&t&&(Mn(),Ao(0,19)),2&t){const t=jo().$implicit;Co("ngTemplateOutlet",jo(2).nodeTemplate)("ngTemplateOutletContext",mu(2,zx,t))}}function Kx(t,e){if(1&t&&(Mn(),Oo(0,"circle",29)),2&t){const t=jo().$implicit,e=jo(2);bo("cx",t.dimension.width/2/e.minimapScaleCoefficient)("cy",t.dimension.height/2/e.minimapScaleCoefficient)("fill",null==t.data?null:t.data.color)}}function Jx(t,e){if(1&t&&(Mn(),ko(0,"g",35,27),xo(2,Xx,1,4,"ng-container",17),xo(3,Zx,1,4,"ng-container",17),xo(4,Kx,1,3,"circle",28),To()),2&t){const t=e.$implicit,n=jo(2);Wo("old-node",n.animate&&n.oldNodes.has(t.id)),Co("id",t.id),bo("transform",t.transform),Er(2),Co("ngIf",n.miniMapNodeTemplate),Er(1),Co("ngIf",!n.miniMapNodeTemplate&&n.nodeTemplate),Er(1),Co("ngIf",!n.nodeTemplate&&!n.miniMapNodeTemplate)}}function tE(t,e){if(1&t){const t=Mo();Mn(),ko(0,"g",30),ko(1,"rect",31),Do("mousedown",(function(e){return on(t),jo().onMinimapPanTo(e)})),To(),ko(2,"g"),ko(3,"g",32),xo(4,Jx,5,7,"g",33),To(),ko(5,"rect",34),Do("mousedown",(function(){return on(t),jo().onMinimapDragMouseDown()})),To(),To(),To()}if(2&t){const t=jo();bo("transform",t.minimapTransform)("clip-path","url(#"+t.minimapClipPathId+")"),Er(1),bo("width",t.graphDims.width/t.minimapScaleCoefficient)("height",t.graphDims.height/t.minimapScaleCoefficient),Er(1),Yo("transform","translate("+-t.minimapOffsetX/t.minimapScaleCoefficient+"px,"+-t.minimapOffsetY/t.minimapScaleCoefficient+"px)"),Er(1),Yo("transform","scale("+1/t.minimapScaleCoefficient+")"),Er(1),Co("ngForOf",t.graph.nodes)("ngForTrackBy",t.trackNodeBy),Er(1),Wo("panning",t.isMinimapPanning),bo("transform","translate("+t.panOffsetX/t.zoomLevel/-t.minimapScaleCoefficient+","+t.panOffsetY/t.zoomLevel/-t.minimapScaleCoefficient+")")("width",t.width/t.minimapScaleCoefficient/t.zoomLevel)("height",t.height/t.minimapScaleCoefficient/t.zoomLevel)}}const eE=function(t,e){return[t,e]},nE=["*"],iE={};function rE(){let t=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return t="a"+t,iE[t]?rE():(iE[t]=!0,t)}var sE=function(t){return t.LEFT_TO_RIGHT="LR",t.RIGHT_TO_LEFT="RL",t.TOP_TO_BOTTOM="TB",t.BOTTOM_TO_TOM="BT",t}({});function oE(t){return"string"==typeof t?{id:t,x:0,y:0}:t}function aE(t,e){return"number"==typeof e?t[e]:e}const uE={dagre:class{constructor(){this.defaultSettings={orientation:sE.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(t){this.createDagreGraph(t),Object(Xw.layout)(this.dagreGraph),t.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const n=this.dagreGraph._nodes[e],i=t.nodes.find(t=>t.id===n.id);i.position={x:n.x,y:n.y},i.dimension={width:n.width,height:n.height}}return t}updateEdge(t,e){const n=t.nodes.find(t=>t.id===e.source),i=t.nodes.find(t=>t.id===e.target),r=n.position.y<=i.position.y?-1:1;return e.points=[{x:n.position.x,y:n.position.y-r*(n.dimension.height/2)},{x:i.position.x,y:i.position.y+r*(i.dimension.height/2)}],t}createDagreGraph(t){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Xw.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=t.nodes.map(t=>{const e=Object.assign({},t);return e.width=t.dimension.width,e.height=t.dimension.height,e.x=t.position.x,e.y=t.position.y,e}),this.dagreEdges=t.edges.map(t=>{const e=Object.assign({},t);return e.id||(e.id=rE()),e});for(const n of this.dagreNodes)n.width||(n.width=20),n.height||(n.height=30),this.dagreGraph.setNode(n.id,n);for(const n of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(n.source,n.target,n,n.id):this.dagreGraph.setEdge(n.source,n.target);return this.dagreGraph}},dagreCluster:class{constructor(){this.defaultSettings={orientation:sE.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(t){this.createDagreGraph(t),Object(Xw.layout)(this.dagreGraph),t.edgeLabels=this.dagreGraph._edgeLabels;const e=t=>{const e=this.dagreGraph._nodes[t.id];return Object.assign(Object.assign({},t),{position:{x:e.x,y:e.y},dimension:{width:e.width,height:e.height}})};return t.clusters=(t.clusters||[]).map(e),t.nodes=t.nodes.map(e),t}updateEdge(t,e){const n=t.nodes.find(t=>t.id===e.source),i=t.nodes.find(t=>t.id===e.target),r=n.position.y<=i.position.y?-1:1;return e.points=[{x:n.position.x,y:n.position.y-r*(n.dimension.height/2)},{x:i.position.x,y:i.position.y+r*(i.dimension.height/2)}],t}createDagreGraph(t){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Xw.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=t.nodes.map(t=>{const e=Object.assign({},t);return e.width=t.dimension.width,e.height=t.dimension.height,e.x=t.position.x,e.y=t.position.y,e}),this.dagreClusters=t.clusters||[],this.dagreEdges=t.edges.map(t=>{const e=Object.assign({},t);return e.id||(e.id=rE()),e});for(const n of this.dagreNodes)this.dagreGraph.setNode(n.id,n);for(const n of this.dagreClusters)this.dagreGraph.setNode(n.id,n),n.childNodeIds.forEach(t=>{this.dagreGraph.setParent(t,n.id)});for(const n of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(n.source,n.target,n,n.id):this.dagreGraph.setEdge(n.source,n.target);return this.dagreGraph}},dagreNodesOnly:class{constructor(){this.defaultSettings={orientation:sE.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,curveDistance:20,multigraph:!0,compound:!0},this.settings={}}run(t){this.createDagreGraph(t),Object(Xw.layout)(this.dagreGraph),t.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const n=this.dagreGraph._nodes[e],i=t.nodes.find(t=>t.id===n.id);i.position={x:n.x,y:n.y},i.dimension={width:n.width,height:n.height}}for(const e of t.edges)this.updateEdge(t,e);return t}updateEdge(t,e){const n=t.nodes.find(t=>t.id===e.source),i=t.nodes.find(t=>t.id===e.target),r="BT"===this.settings.orientation||"TB"===this.settings.orientation?"y":"x",s="y"===r?"x":"y",o="y"===r?"height":"width",a=n.position[r]<=i.position[r]?-1:1,u={[s]:n.position[s],[r]:n.position[r]-a*(n.dimension[o]/2)},c={[s]:i.position[s],[r]:i.position[r]+a*(i.dimension[o]/2)},l=this.settings.curveDistance||this.defaultSettings.curveDistance;e.points=[u,{[s]:u[s],[r]:u[r]-a*l},{[s]:c[s],[r]:c[r]+a*l},c];const h=t.edgeLabels[`${e.source}\x01${e.target}\x01\0`];return h&&(h.points=e.points),t}createDagreGraph(t){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Xw.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=t.nodes.map(t=>{const e=Object.assign({},t);return e.width=t.dimension.width,e.height=t.dimension.height,e.x=t.position.x,e.y=t.position.y,e}),this.dagreEdges=t.edges.map(t=>{const e=Object.assign({},t);return e.id||(e.id=rE()),e});for(const n of this.dagreNodes)n.width||(n.width=20),n.height||(n.height=30),this.dagreGraph.setNode(n.id,n);for(const n of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(n.source,n.target,n,n.id):this.dagreGraph.setEdge(n.source,n.target);return this.dagreGraph}},d3ForceDirected:class{constructor(){this.defaultSettings={force:Ex().force("charge",Cx().strength(-150)).force("collide",lx(5)),forceLink:_x().id(t=>t.id).distance(()=>100)},this.settings={},this.outputGraph$=new k}run(t){return this.inputGraph=t,this.d3Graph={nodes:[...this.inputGraph.nodes.map(t=>Object.assign({},t))],edges:[...this.inputGraph.edges.map(t=>Object.assign({},t))]},this.outputGraph={nodes:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&this.settings.force.nodes(this.d3Graph.nodes).force("link",this.settings.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}updateEdge(t,e){const n=Object.assign({},this.defaultSettings,this.settings);return n.force&&n.force.nodes(this.d3Graph.nodes).force("link",n.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}d3GraphToOutputGraph(t){return this.outputGraph.nodes=this.d3Graph.nodes.map(t=>Object.assign(Object.assign({},t),{id:t.id||rE(),position:{x:t.x,y:t.y},dimension:{width:t.dimension&&t.dimension.width||20,height:t.dimension&&t.dimension.height||20},transform:`translate(${t.x-(t.dimension&&t.dimension.width||20)/2||0}, ${t.y-(t.dimension&&t.dimension.height||20)/2||0})`})),this.outputGraph.edges=this.d3Graph.edges.map(t=>Object.assign(Object.assign({},t),{source:oE(t.source).id,target:oE(t.target).id,points:[{x:oE(t.source).x,y:oE(t.source).y},{x:oE(t.target).x,y:oE(t.target).y}]})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(t,e){this.settings.force.alphaTarget(.3).restart();const n=this.d3Graph.nodes.find(e=>e.id===t.id);n&&(this.draggingStart={x:e.x-n.x,y:e.y-n.y},n.fx=e.x-this.draggingStart.x,n.fy=e.y-this.draggingStart.y)}onDrag(t,e){if(!t)return;const n=this.d3Graph.nodes.find(e=>e.id===t.id);n&&(n.fx=e.x-this.draggingStart.x,n.fy=e.y-this.draggingStart.y)}onDragEnd(t,e){if(!t)return;const n=this.d3Graph.nodes.find(e=>e.id===t.id);n&&(this.settings.force.alphaTarget(0),n.fx=void 0,n.fy=void 0)}},colaForceDirected:class{constructor(){this.defaultSettings={force:Object(Ox.d3adaptor)(Object.assign(Object.assign(Object.assign({},r),i),s)).linkDistance(150).avoidOverlaps(!0),viewDimensions:{width:600,height:600,xOffset:0}},this.settings={},this.outputGraph$=new k}run(t){return this.inputGraph=t,this.inputGraph.clusters||(this.inputGraph.clusters=[]),this.internalGraph={nodes:[...this.inputGraph.nodes.map(t=>Object.assign(Object.assign({},t),{width:t.dimension?t.dimension.width:20,height:t.dimension?t.dimension.height:20}))],groups:[...this.inputGraph.clusters.map(t=>({padding:5,groups:t.childNodeIds.map(t=>this.inputGraph.clusters.findIndex(e=>e.id===t)).filter(t=>t>=0),leaves:t.childNodeIds.map(t=>this.inputGraph.nodes.findIndex(e=>e.id===t)).filter(t=>t>=0)}))],links:[...this.inputGraph.edges.map(t=>{const e=this.inputGraph.nodes.findIndex(e=>t.source===e.id),n=this.inputGraph.nodes.findIndex(e=>t.target===e.id);if(-1!==e&&-1!==n)return Object.assign(Object.assign({},t),{source:e,target:n})}).filter(t=>!!t)],groupLinks:[...this.inputGraph.edges.map(t=>{const e=this.inputGraph.nodes.findIndex(e=>t.source===e.id),n=this.inputGraph.nodes.findIndex(e=>t.target===e.id);if(!(e>=0&&n>=0))return t}).filter(t=>!!t)]},this.outputGraph={nodes:[],clusters:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&(this.settings.force=this.settings.force.nodes(this.internalGraph.nodes).groups(this.internalGraph.groups).links(this.internalGraph.links).alpha(.5).on("tick",()=>{this.settings.onTickListener&&this.settings.onTickListener(this.internalGraph),this.outputGraph$.next(this.internalGraphToOutputGraph(this.internalGraph))}),this.settings.viewDimensions&&(this.settings.force=this.settings.force.size([this.settings.viewDimensions.width,this.settings.viewDimensions.height])),this.settings.forceModifierFn&&(this.settings.force=this.settings.forceModifierFn(this.settings.force)),this.settings.force.start()),this.outputGraph$.asObservable()}updateEdge(t,e){const n=Object.assign({},this.defaultSettings,this.settings);return n.force&&n.force.start(),this.outputGraph$.asObservable()}internalGraphToOutputGraph(t){return this.outputGraph.nodes=t.nodes.map(t=>Object.assign(Object.assign({},t),{id:t.id||rE(),position:{x:t.x,y:t.y},dimension:{width:t.dimension&&t.dimension.width||20,height:t.dimension&&t.dimension.height||20},transform:`translate(${t.x-(t.dimension&&t.dimension.width||20)/2||0}, ${t.y-(t.dimension&&t.dimension.height||20)/2||0})`})),this.outputGraph.edges=t.links.map(e=>{const n=aE(t.nodes,e.source),i=aE(t.nodes,e.target);return Object.assign(Object.assign({},e),{source:n.id,target:i.id,points:[n.bounds.rayIntersection(i.bounds.cx(),i.bounds.cy()),i.bounds.rayIntersection(n.bounds.cx(),n.bounds.cy())]})}).concat(t.groupLinks.map(e=>{const n=t.nodes.find(t=>t.id===e.source),i=t.nodes.find(t=>t.id===e.target),r=n||t.groups.find(t=>t.id===e.source),s=i||t.groups.find(t=>t.id===e.target);return Object.assign(Object.assign({},e),{source:r.id,target:s.id,points:[r.bounds.rayIntersection(s.bounds.cx(),s.bounds.cy()),s.bounds.rayIntersection(r.bounds.cx(),r.bounds.cy())]})})),this.outputGraph.clusters=t.groups.map((t,e)=>Object.assign(Object.assign({},this.inputGraph.clusters[e]),{dimension:{width:t.bounds?t.bounds.width():20,height:t.bounds?t.bounds.height():20},position:{x:t.bounds?t.bounds.x+t.bounds.width()/2:0,y:t.bounds?t.bounds.y+t.bounds.height()/2:0}})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(t,e){const n=this.outputGraph.nodes.findIndex(e=>e.id===t.id),i=this.internalGraph.nodes[n];i&&(this.draggingStart={x:i.x-e.x,y:i.y-e.y},i.fixed=1,this.settings.force.start())}onDrag(t,e){if(!t)return;const n=this.outputGraph.nodes.findIndex(e=>e.id===t.id),i=this.internalGraph.nodes[n];i&&(i.x=this.draggingStart.x+e.x,i.y=this.draggingStart.y+e.y)}onDragEnd(t,e){if(!t)return;const n=this.outputGraph.nodes.findIndex(e=>e.id===t.id),i=this.internalGraph.nodes[n];i&&(i.fixed=0)}}};let cE=(()=>{class t{getLayout(t){if(uE[t])return new uE[t];throw new Error(`Unknown layout type '${t}'`)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();var lE=function(t){return t.Both="both",t.Horizontal="horizontal",t.Vertical="vertical",t}({}),hE=function(t){return t.UpperLeft="UpperLeft",t.UpperRight="UpperRight",t}({});function dE(t,e,n){let i,r,s;n=n||{};let o=null,a=0;function u(){a=!1===n.leading?0:+new Date,o=null,s=t.apply(i,r)}return function(){const c=+new Date;a||!1!==n.leading||(a=c);const l=e-(c-a);return i=this,r=arguments,l<=0?(clearTimeout(o),o=null,a=c,s=t.apply(i,r)):o||!1===n.trailing||(o=setTimeout(u,l)),s}}let fE=(()=>{class t extends iw{constructor(t,e,n,i){super(t,e,n),this.el=t,this.zone=e,this.cd=n,this.layoutService=i,this.legend=!1,this.nodes=[],this.clusters=[],this.links=[],this.activeEntries=[],this.draggingEnabled=!0,this.panningEnabled=!0,this.panningAxis=lE.Both,this.enableZoom=!0,this.zoomSpeed=.1,this.minZoomLevel=.1,this.maxZoomLevel=4,this.autoZoom=!1,this.panOnZoom=!0,this.animate=!1,this.autoCenter=!1,this.enableTrackpadSupport=!1,this.showMiniMap=!1,this.miniMapMaxWidth=100,this.miniMapPosition=hE.UpperRight,this.activate=new _u,this.deactivate=new _u,this.zoomChange=new _u,this.clickHandler=new _u,this.isMouseMoveCalled=!1,this.graphSubscription=new p,this.subscriptions=[],this.margin=[0,0,0,0],this.results=[],this.isPanning=!1,this.isDragging=!1,this.initialized=!1,this.graphDims={width:0,height:0},this._oldLinks=[],this.oldNodes=new Set,this.oldClusters=new Set,this.transformationMatrix={a:1,c:0,e:0,b:0,d:1,f:0},this._touchLastX=null,this._touchLastY=null,this.minimapScaleCoefficient=3,this.minimapOffsetX=0,this.minimapOffsetY=0,this.isMinimapPanning=!1,this.groupResultsBy=t=>t.label}get zoomLevel(){return this.transformationMatrix.a}set zoomLevel(t){this.zoomTo(Number(t))}get panOffsetX(){return this.transformationMatrix.e}set panOffsetX(t){this.panTo(Number(t),null)}get panOffsetY(){return this.transformationMatrix.f}set panOffsetY(t){this.panTo(null,Number(t))}ngOnInit(){this.update$&&this.subscriptions.push(this.update$.subscribe(()=>{this.update()})),this.center$&&this.subscriptions.push(this.center$.subscribe(()=>{this.center()})),this.zoomToFit$&&this.subscriptions.push(this.zoomToFit$.subscribe(()=>{this.zoomToFit()})),this.panToNode$&&this.subscriptions.push(this.panToNode$.subscribe(t=>{this.panToNodeId(t)})),this.minimapClipPathId="minimapClip"+rE()}ngOnChanges(t){const{layoutSettings:e}=t;this.setLayout(this.layout),e&&this.setLayoutSettings(this.layoutSettings),this.update()}setLayout(t){this.initialized=!1,t||(t="dagre"),"string"==typeof t&&(this.layout=this.layoutService.getLayout(t),this.setLayoutSettings(this.layoutSettings))}setLayoutSettings(t){this.layout&&"string"!=typeof this.layout&&(this.layout.settings=t)}ngOnDestroy(){super.ngOnDestroy();for(const t of this.subscriptions)t.unsubscribe();this.subscriptions=null}ngAfterViewInit(){super.ngAfterViewInit(),setTimeout(()=>this.update())}update(){super.update(),this.curve||(this.curve=Tw.beta(1)),this.zone.run(()=>{this.dims=function({width:t,height:e,margins:n,showXAxis:i=!1,showYAxis:r=!1,xAxisHeight:s=0,yAxisWidth:o=0,showXLabel:a=!1,showYLabel:u=!1,showLegend:c=!1,legendType:l="ordinal",legendPosition:h="right",columns:d=12}){let f=n[3],p=t,g=e-n[0]-n[2];if(c&&"right"===h&&(d-="ordinal"===l?2:1),p=p*d/12,p=p-n[1]-n[3],i&&(g-=5,g-=s,a)&&(g-=30),r&&(p-=5,p-=o,f+=o,f+=10,u)){const t=30;p-=t,f+=t}return p=Math.max(0,p),g=Math.max(0,g),{width:Math.floor(p),height:Math.floor(g),xOffset:Math.floor(f)}}({width:this.width,height:this.height,margins:this.margin,showLegend:this.legend}),this.seriesDomain=this.getSeriesDomain(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.createGraph(),this.updateTransform(),this.initialized=!0})}createGraph(){this.graphSubscription.unsubscribe(),this.graphSubscription=new p;const t=t=>(t.meta||(t.meta={}),t.id||(t.id=rE()),t.dimension?t.meta.forceDimensions=void 0===t.meta.forceDimensions||t.meta.forceDimensions:(t.dimension={width:this.nodeWidth?this.nodeWidth:30,height:this.nodeHeight?this.nodeHeight:30},t.meta.forceDimensions=!1),t.position={x:0,y:0},t.data=t.data?t.data:{},t);this.graph={nodes:this.nodes.length>0?[...this.nodes].map(t):[],clusters:this.clusters&&this.clusters.length>0?[...this.clusters].map(t):[],edges:this.links.length>0?[...this.links].map(t=>(t.id||(t.id=rE()),t)):[]},requestAnimationFrame(()=>this.draw())}draw(){if(!this.layout||"string"==typeof this.layout)return;this.applyNodeDimensions();const t=this.layout.run(this.graph),e=t instanceof w?t:Rc(t);this.graphSubscription.add(e.subscribe(t=>{this.graph=t,this.tick()})),0!==this.graph.nodes.length&&e.pipe(function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Nw((e,n)=>t(e,n,i)):b,jw(1),n?Rw(e):Vw(()=>new Mw))}()).subscribe(()=>this.applyNodeDimensions())}tick(){const t=new Set;this.graph.nodes.map(e=>{e.transform=`translate(${e.position.x-e.dimension.width/2||0}, ${e.position.y-e.dimension.height/2||0})`,e.data||(e.data={}),e.data.color=this.colors.getColor(this.groupResultsBy(e)),t.add(e.id)});const e=new Set;(this.graph.clusters||[]).map(t=>{t.transform=`translate(${t.position.x-t.dimension.width/2||0}, ${t.position.y-t.dimension.height/2||0})`,t.data||(t.data={}),t.data.color=this.colors.getColor(this.groupResultsBy(t)),e.add(t.id)}),setTimeout(()=>{this.oldNodes=t,this.oldClusters=e},500);const n=[];for(const i in this.graph.edgeLabels){const t=this.graph.edgeLabels[i],e=i.replace(/[^\w-]*/g,""),r=this.layout&&"string"!=typeof this.layout&&this.layout.settings&&this.layout.settings.multigraph;let s=this._oldLinks.find(r?t=>`${t.source}${t.target}${t.id}`===e:t=>`${t.source}${t.target}`===e);const o=this.graph.edges.find(r?t=>`${t.source}${t.target}${t.id}`===e:t=>`${t.source}${t.target}`===e);s?s.data&&o&&o.data&&JSON.stringify(s.data)!==JSON.stringify(o.data)&&(s.data=o.data):s=o||t,s.oldLine=s.line;const a=t.points,u=this.generateLine(a),c=Object.assign({},s);c.line=u,c.points=a,this.updateMidpointOnEdge(c,a);const l=a[Math.floor(a.length/2)];l&&(c.textTransform=`translate(${l.x||0},${l.y||0})`),c.textAngle=0,c.oldLine||(c.oldLine=c.line),this.calcDominantBaseline(c),n.push(c)}this.graph.edges=n,this.graph.edges&&(this._oldLinks=this.graph.edges.map(t=>{const e=Object.assign({},t);return e.oldLine=t.line,e})),this.updateMinimap(),this.autoZoom&&this.zoomToFit(),this.autoCenter&&this.center(),requestAnimationFrame(()=>this.redrawLines()),this.cd.markForCheck()}getMinimapTransform(){switch(this.miniMapPosition){case hE.UpperLeft:return"";case hE.UpperRight:return"translate("+(this.dims.width-this.graphDims.width/this.minimapScaleCoefficient)+",0)";default:return""}}updateGraphDims(){let t=1/0,e=-1/0,n=1/0,i=-1/0;for(let r=0;r<this.graph.nodes.length;r++){const s=this.graph.nodes[r];t=s.position.x<t?s.position.x:t,n=s.position.y<n?s.position.y:n,e=s.position.x+s.dimension.width>e?s.position.x+s.dimension.width:e,i=s.position.y+s.dimension.height>i?s.position.y+s.dimension.height:i}t-=100,n-=100,e+=100,i+=100,this.graphDims.width=e-t,this.graphDims.height=i-n,this.minimapOffsetX=t,this.minimapOffsetY=n}updateMinimap(){this.graph.nodes&&this.graph.nodes.length&&(this.updateGraphDims(),this.miniMapMaxWidth&&(this.minimapScaleCoefficient=this.graphDims.width/this.miniMapMaxWidth),this.miniMapMaxHeight&&(this.minimapScaleCoefficient=Math.max(this.minimapScaleCoefficient,this.graphDims.height/this.miniMapMaxHeight)),this.minimapTransform=this.getMinimapTransform())}applyNodeDimensions(){this.nodeElements&&this.nodeElements.length&&this.nodeElements.map(t=>{const e=t.nativeElement,n=this.graph.nodes.find(t=>t.id===e.id);if(!n)return;let i;try{if(i=e.getBBox(),!i.width||!i.height)return}catch(r){return}if(n.dimension.height=this.nodeHeight?n.dimension.height&&n.meta.forceDimensions?n.dimension.height:this.nodeHeight:n.dimension.height&&n.meta.forceDimensions?n.dimension.height:i.height,this.nodeMaxHeight&&(n.dimension.height=Math.max(n.dimension.height,this.nodeMaxHeight)),this.nodeMinHeight&&(n.dimension.height=Math.min(n.dimension.height,this.nodeMinHeight)),this.nodeWidth)n.dimension.width=n.dimension.width&&n.meta.forceDimensions?n.dimension.width:this.nodeWidth;else if(e.getElementsByTagName("text").length){let t;try{for(const n of e.getElementsByTagName("text")){const e=n.getBBox();t?(e.width>t.width&&(t.width=e.width),e.height>t.height&&(t.height=e.height)):t=e}}catch(r){return}n.dimension.width=n.dimension.width&&n.meta.forceDimensions?n.dimension.width:t.width+20}else n.dimension.width=n.dimension.width&&n.meta.forceDimensions?n.dimension.width:i.width;this.nodeMaxWidth&&(n.dimension.width=Math.max(n.dimension.width,this.nodeMaxWidth)),this.nodeMinWidth&&(n.dimension.width=Math.min(n.dimension.width,this.nodeMinWidth))})}redrawLines(t=this.animate){this.linkElements.map(e=>{const n=this.graph.edges.find(t=>t.id===e.nativeElement.id);n&&(_g(e.nativeElement).select(".line").attr("d",n.oldLine).transition().ease(Aw).duration(t?500:0).attr("d",n.line),_g(this.chartElement.nativeElement).select("#"+n.id).attr("d",n.oldTextPath).transition().ease(Aw).duration(t?500:0).attr("d",n.textPath),this.updateMidpointOnEdge(n,n.points))})}calcDominantBaseline(t){const e=t.points[0],n=t.points[t.points.length-1];t.oldTextPath=t.textPath,n.x<e.x?(t.dominantBaseline="text-before-edge",t.textPath=this.generateLine([...t.points].reverse())):(t.dominantBaseline="text-after-edge",t.textPath=t.line)}generateLine(t){return function(){var t=wb,e=xb,n=bb(!0),i=null,r=db,s=null;function o(o){var a,u,c,l=o.length,h=!1;for(null==i&&(s=r(c=_b())),a=0;a<=l;++a)!(a<l&&n(u=o[a],a,o))===h&&((h=!h)?s.lineStart():s.lineEnd()),h&&s.point(+t(u,a,o),+e(u,a,o));if(c)return s=null,c+""||null}return o.x=function(e){return arguments.length?(t="function"==typeof e?e:bb(+e),o):t},o.y=function(t){return arguments.length?(e="function"==typeof t?t:bb(+t),o):e},o.defined=function(t){return arguments.length?(n="function"==typeof t?t:bb(!!t),o):n},o.curve=function(t){return arguments.length?(r=t,null!=i&&(s=r(i)),o):r},o.context=function(t){return arguments.length?(null==t?i=s=null:s=r(i=t),o):i},o}().x(t=>t.x).y(t=>t.y).curve(this.curve)(t)}onZoom(t,e){if(this.enableTrackpadSupport&&!t.ctrlKey)return void this.pan(-1*t.deltaX,-1*t.deltaY);const n=1+("in"===e?this.zoomSpeed:-this.zoomSpeed),i=this.zoomLevel*n;if(!(i<=this.minZoomLevel||i>=this.maxZoomLevel)&&this.enableZoom)if(!0===this.panOnZoom&&t){const e=t.clientX,i=t.clientY,r=this.chart.nativeElement.querySelector("svg"),s=r.querySelector("g.chart"),o=r.createSVGPoint();o.x=e,o.y=i;const a=o.matrixTransform(s.getScreenCTM().inverse());this.pan(a.x,a.y,!0),this.zoom(n),this.pan(-a.x,-a.y,!0)}else this.zoom(n)}pan(t,e,n=!1){const i=n?1:this.zoomLevel;this.transformationMatrix=Qw(this.transformationMatrix,Yw(t/i,e/i)),this.updateTransform()}panTo(t,e){null==t||isNaN(t)||null==e||isNaN(e)||(this.transformationMatrix=Qw(this.transformationMatrix,Yw((-this.panOffsetX-t*this.zoomLevel+this.dims.width/2)/this.zoomLevel,(-this.panOffsetY-e*this.zoomLevel+this.dims.height/2)/this.zoomLevel)),this.updateTransform())}zoom(t){this.transformationMatrix=Qw(this.transformationMatrix,function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return qw(e)&&(e=t),{a:t,c:0,e:0,b:0,d:e,f:0}}(t,t)),this.zoomChange.emit(this.zoomLevel),this.updateTransform()}zoomTo(t){this.transformationMatrix.a=isNaN(t)?this.transformationMatrix.a:Number(t),this.transformationMatrix.d=isNaN(t)?this.transformationMatrix.d:Number(t),this.zoomChange.emit(this.zoomLevel),this.updateTransform(),this.update()}onDrag(t){if(!this.draggingEnabled)return;const e=this.draggingNode;this.layout&&"string"!=typeof this.layout&&this.layout.onDrag&&this.layout.onDrag(e,t),e.position.x+=t.movementX/this.zoomLevel,e.position.y+=t.movementY/this.zoomLevel,e.transform=`translate(${e.position.x-e.dimension.width/2}, ${e.position.y-e.dimension.height/2})`;for(const n of this.graph.edges)if((n.target===e.id||n.source===e.id||n.target.id===e.id||n.source.id===e.id)&&this.layout&&"string"!=typeof this.layout){const t=this.layout.updateEdge(this.graph,n),e=t instanceof w?t:Rc(t);this.graphSubscription.add(e.subscribe(t=>{this.graph=t,this.redrawEdge(n)}))}this.redrawLines(!1),this.updateMinimap()}redrawEdge(t){const e=this.generateLine(t.points);this.calcDominantBaseline(t),t.oldLine=t.line,t.line=e}updateTransform(){var t;this.transform="matrix("+(t=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e10;return{a:Math.round(t.a*e)/e,b:Math.round(t.b*e)/e,c:Math.round(t.c*e)/e,d:Math.round(t.d*e)/e,e:Math.round(t.e*e)/e,f:Math.round(t.f*e)/e}}(this.transformationMatrix,100)).a+","+t.b+","+t.c+","+t.d+","+t.e+","+t.f+")"}onClick(t){this.select.emit(t)}onActivate(t){this.activeEntries.indexOf(t)>-1||(this.activeEntries=[t,...this.activeEntries],this.activate.emit({value:t,entries:this.activeEntries}))}onDeactivate(t){const e=this.activeEntries.indexOf(t);this.activeEntries.splice(e,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:t,entries:this.activeEntries})}getSeriesDomain(){return this.nodes.map(t=>this.groupResultsBy(t)).reduce((t,e)=>-1!==t.indexOf(e)?t:t.concat([e]),[]).sort()}trackLinkBy(t,e){return e.id}trackNodeBy(t,e){return e.id}setColors(){this.colors=new dw(this.scheme,"ordinal",this.seriesDomain,this.customColors)}getLegendOptions(){return{scaleType:"ordinal",domain:this.seriesDomain,colors:this.colors}}onMouseMove(t){this.isMouseMoveCalled=!0,(this.isPanning||this.isMinimapPanning)&&this.panningEnabled?this.panWithConstraints(this.panningAxis,t):this.isDragging&&this.draggingEnabled&&this.onDrag(t)}onMouseDown(t){this.isMouseMoveCalled=!1}graphClick(t){this.isMouseMoveCalled||this.clickHandler.emit(t)}onTouchStart(t){this._touchLastX=t.changedTouches[0].clientX,this._touchLastY=t.changedTouches[0].clientY,this.isPanning=!0}onTouchMove(t){if(this.isPanning&&this.panningEnabled){const e=t.changedTouches[0].clientX,n=t.changedTouches[0].clientY,i=e-this._touchLastX,r=n-this._touchLastY;this._touchLastX=e,this._touchLastY=n,this.pan(i,r)}}onTouchEnd(t){this.isPanning=!1}onMouseUp(t){this.isDragging=!1,this.isPanning=!1,this.isMinimapPanning=!1,this.layout&&"string"!=typeof this.layout&&this.layout.onDragEnd&&this.layout.onDragEnd(this.draggingNode,t)}onNodeMouseDown(t,e){this.draggingEnabled&&(this.isDragging=!0,this.draggingNode=e,this.layout&&"string"!=typeof this.layout&&this.layout.onDragStart&&this.layout.onDragStart(e,t))}onMinimapDragMouseDown(){this.isMinimapPanning=!0}onMinimapPanTo(t){this.panTo((t.offsetX-(this.dims.width-(this.graphDims.width+this.minimapOffsetX)/this.minimapScaleCoefficient))*this.minimapScaleCoefficient,(t.offsetY+this.minimapOffsetY/this.minimapScaleCoefficient)*this.minimapScaleCoefficient),this.isMinimapPanning=!0}center(){this.panTo(this.graphDims.width/2,this.graphDims.height/2)}zoomToFit(){let t=Math.min(this.dims.height/this.graphDims.height,this.dims.width/this.graphDims.width,1);t<this.minZoomLevel&&(t=this.minZoomLevel),t>this.maxZoomLevel&&(t=this.maxZoomLevel),t!==this.zoomLevel&&(this.zoomLevel=t,this.updateTransform(),this.zoomChange.emit(this.zoomLevel))}panToNodeId(t){const e=this.graph.nodes.find(e=>e.id===t);e&&this.panTo(e.position.x,e.position.y)}panWithConstraints(t,e){let n=e.movementX,i=e.movementY;switch(this.isMinimapPanning&&(n=-this.minimapScaleCoefficient*n*this.zoomLevel,i=-this.minimapScaleCoefficient*i*this.zoomLevel),t){case lE.Horizontal:this.pan(n,0);break;case lE.Vertical:this.pan(0,i);break;default:this.pan(n,i)}}updateMidpointOnEdge(t,e){if(t&&e)if(e.length%2==1)t.midPoint=e[Math.floor(e.length/2)];else{const n=e[e.length/2],i=e[e.length/2-1];t.midPoint={x:(n.x+i.x)/2,y:(n.y+i.y)/2}}}}return t.\u0275fac=function(e){return new(e||t)(Eo(Sa),Eo(oc),Eo($s),Eo(cE))},t.\u0275cmp=fe({type:t,selectors:[["ngx-graph"]],contentQueries:function(t,e,n){var i;1&t&&(Iu(n,Mx,!0),Iu(n,Nx,!0),Iu(n,Dx,!0),Iu(n,Ix,!0),Iu(n,Px,!0)),2&t&&(Mu(i=Pu())&&(e.linkTemplate=i.first),Mu(i=Pu())&&(e.nodeTemplate=i.first),Mu(i=Pu())&&(e.clusterTemplate=i.first),Mu(i=Pu())&&(e.defsTemplate=i.first),Mu(i=Pu())&&(e.miniMapNodeTemplate=i.first))},viewQuery:function(t,e){var n,i,r;1&t&&(i=ew,!0,r=Sa,Du(sn(),rn(),i,true,r,!0),Nu(jx,!0),Nu(Lx,!0)),2&t&&(Mu(n=Pu())&&(e.chart=n.first),Mu(n=Pu())&&(e.nodeElements=n),Mu(n=Pu())&&(e.linkElements=n))},hostBindings:function(t,e){1&t&&Do("mousemove",(function(t){return e.onMouseMove(t)}),!1,Zn)("mousedown",(function(t){return e.onMouseDown(t)}),!1,Zn)("click",(function(t){return e.graphClick(t)}),!1,Zn)("touchmove",(function(t){return e.onTouchMove(t)}),!1,Zn)("mouseup",(function(t){return e.onMouseUp(t)}),!1,Zn)},inputs:{legend:"legend",nodes:"nodes",clusters:"clusters",links:"links",activeEntries:"activeEntries",draggingEnabled:"draggingEnabled",panningEnabled:"panningEnabled",panningAxis:"panningAxis",enableZoom:"enableZoom",zoomSpeed:"zoomSpeed",minZoomLevel:"minZoomLevel",maxZoomLevel:"maxZoomLevel",autoZoom:"autoZoom",panOnZoom:"panOnZoom",animate:"animate",autoCenter:"autoCenter",enableTrackpadSupport:"enableTrackpadSupport",showMiniMap:"showMiniMap",miniMapMaxWidth:"miniMapMaxWidth",miniMapPosition:"miniMapPosition",groupResultsBy:"groupResultsBy",zoomLevel:"zoomLevel",panOffsetX:"panOffsetX",panOffsetY:"panOffsetY",layout:"layout",curve:"curve",nodeHeight:"nodeHeight",nodeMaxHeight:"nodeMaxHeight",nodeMinHeight:"nodeMinHeight",nodeWidth:"nodeWidth",nodeMinWidth:"nodeMinWidth",nodeMaxWidth:"nodeMaxWidth",update$:"update$",center$:"center$",zoomToFit$:"zoomToFit$",panToNode$:"panToNode$",layoutSettings:"layoutSettings",miniMapMaxHeight:"miniMapMaxHeight"},outputs:{activate:"activate",deactivate:"deactivate",zoomChange:"zoomChange",clickHandler:"clickHandler"},features:[ca,Pe],ngContentSelectors:nE,decls:5,vars:11,consts:[["mouseWheel","",3,"view","showLegend","legendOptions","legendLabelClick","legendLabelActivate","legendLabelDeactivate","mouseWheelUp","mouseWheelDown"],["class","graph chart",3,"touchstart","touchend",4,"ngIf"],["class","minimap",4,"ngIf"],[1,"graph","chart",3,"touchstart","touchend"],[3,"ngTemplateOutlet",4,"ngIf"],["class","text-path",4,"ngFor","ngForOf"],[1,"panning-rect",3,"mousedown"],[1,"clusters"],["class","node-group",3,"old-node","id","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"links"],["class","link-group",3,"id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"nodes"],["class","node-group",3,"old-node","id","click","mousedown",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngTemplateOutlet"],[1,"text-path"],[1,"node-group",3,"id","click"],["clusterElement",""],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["class","node cluster",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"node","cluster"],["alignment-baseline","central"],[1,"link-group",3,"id"],["linkElement",""],["class","edge",4,"ngIf"],[1,"edge"],[1,"node-group",3,"id","click","mousedown"],["nodeElement",""],["r","10",4,"ngIf"],["r","10"],[1,"minimap"],[1,"minimap-background",3,"mousedown"],[1,"minimap-nodes"],["class","node-group",3,"old-node","id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"minimap-drag",3,"mousedown"],[1,"node-group",3,"id"]],template:function(t,e){var n,i,r,s,o;1&t&&(Fo(),ko(0,"ngx-charts-chart",0),Do("legendLabelClick",(function(t){return e.onClick(t)}))("legendLabelActivate",(function(t){return e.onActivate(t)}))("legendLabelDeactivate",(function(t){return e.onDeactivate(t)}))("mouseWheelUp",(function(t){return e.onZoom(t,"in")}))("mouseWheelDown",(function(t){return e.onZoom(t,"out")})),xo(1,Qx,12,12,"g",1),Mn(),ko(2,"clipPath"),Oo(3,"rect"),To(),xo(4,tE,6,15,"g",2),To()),2&t&&(Co("view",(n=8,i=eE,r=e.width,s=e.height,function(t,e,n,i,r,s,o){const a=e+n;return function(t,e,n,i){const r=_o(t,e,n);return _o(t,e+1,i)||r}(t,a,r,s)?vo(t,a+2,o?i.call(o,r,s):i(r,s)):yu(t,a+2)}(rn(),fn(),n,i,r,s,o)))("showLegend",e.legend)("legendOptions",e.legendOptions),Er(1),Co("ngIf",e.initialized&&e.graph),Er(1),bo("id",e.minimapClipPathId),Er(1),bo("width",e.graphDims.width/e.minimapScaleCoefficient)("height",e.graphDims.height/e.minimapScaleCoefficient),Er(1),Co("ngIf",e.showMiniMap))},directives:function(){return[ew,pE,Cl,xl,Tl]},styles:[".minimap .minimap-background{fill:rgba(0,0,0,.1)}.minimap .minimap-drag{cursor:pointer;fill:rgba(0,0,0,.2);stroke:#fff;stroke-dasharray:2px;stroke-dashoffset:2px;stroke-width:1px}.minimap .minimap-drag.panning{fill:rgba(0,0,0,.3)}.minimap .minimap-nodes{opacity:.5;pointer-events:none}.graph{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;user-select:none}.graph .edge{fill:none;stroke:#666}.graph .edge .edge-label{fill:#251e1e;font-size:12px;stroke:none}.graph .panning-rect{cursor:move;fill:transparent}.graph .node-group.old-node{transition:transform .5s ease-in-out}.graph .node-group .node:focus{outline:none}.graph .cluster rect{opacity:.2}"],encapsulation:2,changeDetection:0}),ep([function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:dE(n.value,500,void 0)}),this[e]}}},np("design:type",Function),np("design:paramtypes",[]),np("design:returntype",void 0)],t.prototype,"updateMinimap",null),t})(),pE=(()=>{class t{constructor(){this.mouseWheelUp=new _u,this.mouseWheelDown=new _u}onMouseWheelChrome(t){this.mouseWheelFunc(t)}onMouseWheelFirefox(t){this.mouseWheelFunc(t)}onWheel(t){this.mouseWheelFunc(t)}onMouseWheelIE(t){this.mouseWheelFunc(t)}mouseWheelFunc(t){window.event&&(t=window.event);const e=Math.max(-1,Math.min(1,t.wheelDelta||-t.detail||t.deltaY||t.deltaX)),n=t.wheelDelta?e<0:e>0;(t.wheelDelta?e>0:e<0)?this.mouseWheelUp.emit(t):n&&this.mouseWheelDown.emit(t),t.returnValue=!1,t.preventDefault&&t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=_e({type:t,selectors:[["","mouseWheel",""]],hostBindings:function(t,e){1&t&&Do("mousewheel",(function(t){return e.onMouseWheelChrome(t)}))("DOMMouseScroll",(function(t){return e.onMouseWheelFirefox(t)}))("wheel",(function(t){return e.onWheel(t)}))("onmousewheel",(function(t){return e.onMouseWheelIE(t)}))},outputs:{mouseWheelUp:"mouseWheelUp",mouseWheelDown:"mouseWheelDown"}}),t})(),gE=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[cE],imports:[[lw]]}),t})(),mE=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Ew],gE]}),t})();var yE=n("5vqC");class vE{constructor(t,e,n,i,r){this.element=t,this.newWidth=e,this.newHeight=n,this.oldWidth=i,this.oldHeight=r}}let _E,bE=(()=>{class t{constructor(t){this.element=t,this.resized=new _u}ngOnInit(){yE.ResizeSensor&&(this.resizeSensor=new yE.ResizeSensor(this.element.nativeElement,()=>this.onResized()))}ngOnDestroy(){this.resizeSensor&&this.resizeSensor.detach()}onResized(){const t=this.element.nativeElement.clientWidth,e=this.element.nativeElement.clientHeight;if(t===this.oldWidth&&e===this.oldHeight)return;const n=new vE(this.element,t,e,this.oldWidth,this.oldHeight);this.oldWidth=this.element.nativeElement.clientWidth,this.oldHeight=this.element.nativeElement.clientHeight,this.resized.emit(n)}}return t.\u0275fac=function(e){return new(e||t)(Eo(Sa))},t.\u0275dir=_e({type:t,selectors:[["","resized",""]],outputs:{resized:"resized"}}),t})(),wE=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[]]}),t})();function xE(t){return Array.isArray(t)?t:[t]}function EE(t){return null==t?"":"string"==typeof t?t:t+"px"}function CE(t){return t instanceof Sa?t.nativeElement:t}class SE{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new kE(t,this.durationSelector))}}class kE extends V{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const i=H(n,new B(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function TE(t){return!h(t)&&t-parseFloat(t)+1>=0}function OE(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function AE(t,e=rp){return n=()=>function(t=0,e,n){let i=-1;return TE(e)?i=Number(e)<1?1:Number(e):O(e)&&(n=e),O(n)||(n=rp),new w(e=>{const r=TE(t)?t:+t-n.now();return n.schedule(OE,r,{index:0,period:i,subscriber:e})})}(t,e),function(t){return t.lift(new SE(n))};var n}function ME(t){return e=>e.lift(new NE(t))}class NE{constructor(t){this.notifier=t}call(t,e){const n=new DE(t),i=H(this.notifier,new B(n));return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}class DE extends V{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function IE(...t){return q(1)(Rc(...t))}function PE(...t){const e=t[t.length-1];return O(e)?(t.pop(),n=>IE(t,n,e)):e=>IE(t,e)}try{_E="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(_S){_E=!1}let jE,LE,FE=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?"browser"===this._platformId:"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!_E)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(Qt(qu))},t.\u0275prov=ht({factory:function(){return new t(Qt(qu))},token:t,providedIn:"root"}),t})(),RE=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})();function zE(t){return function(){if(null==jE&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>jE=!0}))}finally{jE=jE||!1}return jE}()?t:!!t.capture}const BE=new Rt("cdk-dir-doc",{providedIn:"root",factory:function(){return Xt(el)}});let VE=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new _u,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(Qt(BE,8))},t.\u0275prov=ht({factory:function(){return new t(Qt(BE,8))},token:t,providedIn:"root"}),t})(),HE=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})(),GE=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new k,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new w(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(AE(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Rc()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Nw(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)}),e}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollableContainsElement(t,e){let n=e.nativeElement,i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>ip(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(Qt(oc),Qt(FE),Qt(el,8))},t.\u0275prov=ht({factory:function(){return new t(Qt(oc),Qt(FE),Qt(el,8))},token:t,providedIn:"root"}),t})(),UE=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new k,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._getDocument(),e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(AE(t)):this._change}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(Qt(FE),Qt(oc),Qt(el,8))},t.\u0275prov=ht({factory:function(){return new t(Qt(FE),Qt(oc),Qt(el,8))},token:t,providedIn:"root"}),t})(),qE=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})(),YE=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[HE,RE,qE],HE,qE]}),t})();class WE{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=EE(-this._previousScrollPosition.left),t.style.top=EE(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=i,n.scrollBehavior=r}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class $E{constructor(t,e,n,i){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class QE{enable(){}disable(){}attach(){}}function XE(t,e){return e.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function ZE(t,e){return e.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class KE{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();XE(t,[{width:e,height:n,bottom:n,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let JE=(()=>{class t{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new QE,this.close=t=>new $E(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new WE(this._viewportRuler,this._document),this.reposition=t=>new KE(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}return t.\u0275fac=function(e){return new(e||t)(Qt(GE),Qt(UE),Qt(oc),Qt(el))},t.\u0275prov=ht({factory:function(){return new t(Qt(GE),Qt(UE),Qt(oc),Qt(el))},token:t,providedIn:"root"}),t})();class tC{constructor(t){if(this.scrollStrategy=new QE,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class eC{constructor(t,e,n,i,r){this.offsetX=n,this.offsetY=i,this.panelClass=r,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class nC{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let iC=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(Qt(el))},t.\u0275prov=ht({factory:function(){return new t(Qt(el))},token:t,providedIn:"root"}),t})(),rC=(()=>{class t extends iC{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(Qt(el))},t.\u0275prov=ht({factory:function(){return new t(Qt(el))},token:t,providedIn:"root"}),t})(),sC=(()=>{class t extends iC{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const r=n[i];if(!(r._outsidePointerEvents.observers.length<1)&&r.hasAttached()){if(r.overlayElement.contains(e))break;r._outsidePointerEvents.next(t)}}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(Qt(el),Qt(FE))},t.\u0275prov=ht({factory:function(){return new t(Qt(el),Qt(FE))},token:t,providedIn:"root"}),t})();const oC=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let aC=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._platform?this._platform.isBrowser:"undefined"!=typeof window,e="cdk-overlay-container";if(t||oC){const t=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let e=0;e<t.length;e++)t[e].parentNode.removeChild(t[e])}const n=this._document.createElement("div");n.classList.add(e),oC?n.setAttribute("platform","test"):t||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n}}return t.\u0275fac=function(e){return new(e||t)(Qt(el),Qt(FE))},t.\u0275prov=ht({factory:function(){return new t(Qt(el),Qt(FE))},token:t,providedIn:"root"}),t})();class uC{constructor(t,e,n,i,r,s,o,a,u){this._portalOutlet=t,this._host=e,this._pane=n,this._config=i,this._ngZone=r,this._keyboardDispatcher=s,this._document=o,this._location=a,this._outsideClickDispatcher=u,this._backdropElement=null,this._backdropClick=new k,this._attachments=new k,this._detachments=new k,this._locationChanges=p.EMPTY,this._backdropClickHandler=t=>this._backdropClick.next(t),this._keydownEvents=new k,this._outsidePointerEvents=new k,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(jw(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&this._location&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher&&this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher&&this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher&&this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=EE(this._config.width),t.height=EE(this._config.height),t.minWidth=EE(this._config.minWidth),t.minHeight=EE(this._config.minHeight),t.maxWidth=EE(this._config.maxWidth),t.maxHeight=EE(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"auto":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let n=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",n),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",n)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const i=t.classList;xE(e).forEach(t=>{t&&(n?i.add(t):i.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(ME(W(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const cC="cdk-overlay-connected-position-bounding-box",lC=/([A-Za-z%]+)$/;class hC{constructor(t,e,n,i,r){this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=r,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new k,this._resizeSubscription=p.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(cC),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,i=[];let r;for(let s of this._preferredPositions){let o=this._getOriginPoint(t,s),a=this._getOverlayPoint(o,e,s),u=this._getOverlayFit(a,e,n,s);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,o);this._canFitWithFlexibleDimensions(u,a,n)?i.push({position:s,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,s)}):(!r||r.overlayFit.visibleArea<u.visibleArea)&&(r={overlayFit:u,overlayPoint:a,originPoint:o,position:s,overlayRect:e})}if(i.length){let t=null,e=-1;for(const n of i){const i=n.boundingBoxRect.width*n.boundingBoxRect.height*(n.position.weight||1);i>e&&(e=i,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(r.position,r.originPoint);this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&dC(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(cC),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,i;if("center"==e.originX)n=t.left+t.width/2;else{const i=this._isRtl()?t.right:t.left,r=this._isRtl()?t.left:t.right;n="start"==e.originX?i:r}return i="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:i}}_getOverlayPoint(t,e,n){let i,r;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+r}}_getOverlayFit(t,e,n,i){let{x:r,y:s}=t,o=this._getOffset(i,"x"),a=this._getOffset(i,"y");o&&(r+=o),a&&(s+=a);let u=0-s,c=s+e.height-n.height,l=this._subtractOverflows(e.width,0-r,r+e.width-n.width),h=this._subtractOverflows(e.height,u,c),d=l*h;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:h===e.height,fitsInViewportHorizontally:l==e.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const i=n.bottom-e.y,r=n.right-e.x,s=fC(this._overlayRef.getConfig().minHeight),o=fC(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=r;return(t.fitsInViewportVertically||null!=s&&s<=i)&&a}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const i=this._viewportRect,r=Math.max(t.x+e.width-i.width,0),s=Math.max(t.y+e.height-i.height,0),o=Math.max(i.top-n.top-t.y,0),a=Math.max(i.left-n.left-t.x,0);let u=0,c=0;return u=e.width<=i.width?a||-r:t.x<this._viewportMargin?i.left-n.left-t.x:0,c=e.height<=i.height?o||-s:t.y<this._viewportMargin?i.top-n.top-t.y:0,this._previousPushAmount={x:u,y:c},{x:t.x+u,y:t.y+c}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){const e=this._getScrollVisibility(),n=new nC(t,e);this._positionChanges.next(n)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let n,i=t.overlayY;n="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let r=0;r<e.length;r++)e[r].style.transformOrigin=`${n} ${i}`}_calculateBoundingBoxRect(t,e){const n=this._viewportRect,i=this._isRtl();let r,s,o,a,u,c;if("top"===e.overlayY)s=t.y,r=n.height-s+this._viewportMargin;else if("bottom"===e.overlayY)o=n.height-t.y+2*this._viewportMargin,r=n.height-o+this._viewportMargin;else{const e=Math.min(n.bottom-t.y+n.top,t.y),i=this._lastBoundingBoxSize.height;r=2*e,s=t.y-e,r>i&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-i/2)}if("end"===e.overlayX&&!i||"start"===e.overlayX&&i)c=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!i||"end"===e.overlayX&&i)u=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),i=this._lastBoundingBoxSize.width;a=2*e,u=t.x-e,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(u=t.x-i/2)}return{top:s,left:u,bottom:o,right:c,width:a,height:r}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;i.height=EE(n.height),i.top=EE(n.top),i.bottom=EE(n.bottom),i.width=EE(n.width),i.left=EE(n.left),i.right=EE(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(i.maxHeight=EE(t)),r&&(i.maxWidth=EE(r))}this._lastBoundingBoxSize=n,dC(this._boundingBox.style,i)}_resetBoundingBoxStyles(){dC(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){dC(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();dC(n,this._getExactOverlayY(e,t,i)),dC(n,this._getExactOverlayX(e,t,i))}else n.position="static";let o="",a=this._getOffset(e,"x"),u=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),u&&(o+=`translateY(${u}px)`),n.transform=o.trim(),s.maxHeight&&(i?n.maxHeight=EE(s.maxHeight):r&&(n.maxHeight="")),s.maxWidth&&(i?n.maxWidth=EE(s.maxWidth):r&&(n.maxWidth="")),dC(this._pane.style,n)}_getExactOverlayY(t,e,n){let i={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));let s=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=s,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=EE(r.y),i}_getExactOverlayX(t,e,n){let i,r={left:"",right:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n)),i=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===i?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=EE(s.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ZE(t,n),isOriginOutsideView:XE(t,n),isOverlayClipped:ZE(e,n),isOverlayOutsideView:XE(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&xE(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof Sa)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function dC(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function fC(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(lC);return n&&"px"!==n?null:parseFloat(e)}return t||null}class pC{constructor(t,e,n,i,r,s,o){this._preferredPositions=[],this._positionStrategy=new hC(n,i,r,s,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,i){const r=new eC(t,e,n,i);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const gC="cdk-global-overlay-wrapper";class mC{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(gC),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:r,maxWidth:s,maxHeight:o}=n,a=!("100%"!==i&&"100vw"!==i||s&&"100%"!==s&&"100vw"!==s),u=!("100%"!==r&&"100vh"!==r||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=u?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=u?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(gC),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let yC=(()=>{class t{constructor(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}global(){return new mC}connectedTo(t,e,n){return new pC(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new hC(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(Qt(UE),Qt(el),Qt(FE),Qt(aC))},t.\u0275prov=ht({factory:function(){return new t(Qt(UE),Qt(el),Qt(FE),Qt(aC))},token:t,providedIn:"root"}),t})(),vC=0,_C=(()=>{class t{constructor(t,e,n,i,r,s,o,a,u,c,l){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=r,this._injector=s,this._ngZone=o,this._document=a,this._directionality=u,this._location=c,this._outsideClickDispatcher=l}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),r=new tC(t);return r.direction=r.direction||this._directionality.value,new uC(i,e,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+vC++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(Cc)),new Kf(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(Qt(JE),Qt(aC),Qt(Ca),Qt(yC),Qt(rC),Qt(lo),Qt(oc),Qt(el),Qt(VE),Qt(pl),Qt(sC))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const bC={provide:new Rt("cdk-connected-overlay-scroll-strategy"),deps:[_C],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let wC=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[_C,bC],imports:[[HE,tp,YE],YE]}),t})(),xC=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})(),EC=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[xC]}),t})();function CC(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const SC="cdk-describedby-message-container",kC="cdk-describedby-host";let TC=0;const OC=new Map;let AC=null,MC=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}describe(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),OC.set(e,{messageElement:e,referenceCount:0})):OC.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}removeDescription(t,e){if(e&&this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){const t=OC.get(e);t&&0===t.referenceCount&&this._deleteMessageElement(e)}AC&&0===AC.childNodes.length&&this._deleteMessagesContainer()}}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e<t.length;e++)this._removeCdkDescribedByReferenceIds(t[e]),t[e].removeAttribute(kC);AC&&this._deleteMessagesContainer(),OC.clear()}_createMessageElement(t){const e=this._document.createElement("div");this._setMessageId(e),e.textContent=t,this._createMessagesContainer(),AC.appendChild(e),OC.set(t,{messageElement:e,referenceCount:0})}_setMessageId(t){t.id||(t.id="cdk-describedby-message-"+TC++)}_deleteMessageElement(t){const e=OC.get(t),n=e&&e.messageElement;AC&&n&&AC.removeChild(n),OC.delete(t)}_createMessagesContainer(){if(!AC){const t=!this._platform||!this._platform.EDGE&&!this._platform.TRIDENT,e=this._document.getElementById(SC);e&&e.parentNode&&e.parentNode.removeChild(e),AC=this._document.createElement("div"),AC.id=SC,AC.classList.add("cdk-visually-hidden"),AC.setAttribute("aria-hidden",t+""),this._document.body.appendChild(AC)}}_deleteMessagesContainer(){AC&&AC.parentNode&&(AC.parentNode.removeChild(AC),AC=null)}_removeCdkDescribedByReferenceIds(t){const e=CC(t,"aria-describedby").filter(t=>0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=OC.get(e);!function(t,e,n){const i=CC(t,e);i.some(t=>t.trim()==n.trim())||(i.push(n.trim()),t.setAttribute(e,i.join(" ")))}(t,"aria-describedby",n.messageElement.id),t.setAttribute(kC,""),n.referenceCount++}_removeMessageReference(t,e){const n=OC.get(e);n.referenceCount--,function(t,e,n){const i=CC(t,e).filter(t=>t!=n.trim());i.length?t.setAttribute(e,i.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute(kC)}_isElementDescribedByMessage(t,e){const n=CC(t,"aria-describedby"),i=OC.get(e),r=i&&i.messageElement.id;return!!r&&-1!=n.indexOf(r)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":(""+e).trim(),i=t.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(Qt(el),Qt(FE))},t.\u0275prov=ht({factory:function(){return new t(Qt(el),Qt(FE))},token:t,providedIn:"root"}),t})();"undefined"!=typeof Element&&Element;const NC=new Rt("cdk-focus-monitor-default-options"),DC=zE({passive:!0,capture:!0});let IC=(()=>{class t{constructor(t,e,n,i){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=function(t){return 0===t.buttons}(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=PC(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=PC(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let i=e;i;i=i.parentElement)n.call(this,t,i)},this._document=n,this._detectionMode=(null==i?void 0:i.detectionMode)||0}monitor(t,e=!1){if(!this._platform.isBrowser)return Rc(null);const n=CE(t),i=function(t){if(function(){if(null==LE){const t="undefined"!=typeof document?document.head:null;LE=!(!t||!t.createShadowRoot&&!t.attachShadow)}return LE}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return e&&(r.checkChildren=!0),r.subject;const s={checkChildren:e,subject:new k,rootNode:i};return this._elementInfo.set(n,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(t){const e=CE(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const i=CE(t);this._setOriginForCurrentEventQueue(e),"function"==typeof i.focus&&i.focus(n)}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=PC(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const n=this._elementInfo.get(e);if(!n||!n.checkChildren&&e!==PC(t))return;const i=this._getFocusOrigin(t);this._setClasses(e,i),this._emitOrigin(n.subject,i),this._lastFocusOrigin=i}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,DC),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,DC)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,DC),t.addEventListener("mousedown",this._documentMousedownListener,DC),t.addEventListener("touchstart",this._documentTouchstartListener,DC),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,DC),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,DC),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,DC),t.removeEventListener("mousedown",this._documentMousedownListener,DC),t.removeEventListener("touchstart",this._documentTouchstartListener,DC),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}return t.\u0275fac=function(e){return new(e||t)(Qt(oc),Qt(FE),Qt(el,8),Qt(NC,8))},t.\u0275prov=ht({factory:function(){return new t(Qt(oc),Qt(FE),Qt(el,8),Qt(NC,8))},token:t,providedIn:"root"}),t})();function PC(t){return t.composedPath?t.composedPath()[0]:t.target}const jC="cdk-high-contrast-black-on-white",LC="cdk-high-contrast-white-on-black",FC="cdk-high-contrast-active";let RC=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(FC),t.remove(jC),t.remove(LC);const e=this.getHighContrastMode();1===e?(t.add(FC),t.add(jC)):2===e&&(t.add(FC),t.add(LC))}}}return t.\u0275fac=function(e){return new(e||t)(Qt(FE),Qt(el))},t.\u0275prov=ht({factory:function(){return new t(Qt(FE),Qt(el))},token:t,providedIn:"root"}),t})(),zC=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(Qt(RC))},imports:[[RE,EC]]}),t})();const BC=new Da("10.2.0"),VC=new Da("10.2.0"),HC=new Rt("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let GC,UC=(()=>{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getDocument(){const t=this._document||document;return"object"==typeof t&&t?t:null}_getWindow(){const t=this._getDocument(),e=(null==t?void 0:t.defaultView)||window;return"object"==typeof e&&e?e:null}_checksAreEnabled(){return Ni()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){const t=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),e=this._getDocument();t&&e&&!e.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){const t=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,e=this._getDocument();if(t||!e||!e.body||"function"!=typeof getComputedStyle)return;const n=e.createElement("div");n.classList.add("mat-theme-loaded-marker"),e.body.appendChild(n);const i=getComputedStyle(n);i&&"none"!==i.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),e.body.removeChild(n)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&VC.full!==BC.full&&console.warn("The Angular Material version ("+VC.full+") does not match the Angular CDK version ("+BC.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(Qt(RC),Qt(HC,8),Qt(el,8))},imports:[[HE],HE]}),t})();try{GC="undefined"!=typeof Intl}catch(_S){GC=!1}class qC extends y{notifyNext(t,e,n,i,r){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class YC extends y{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function WC(t,e,n,i,r=new YC(t,n,i)){if(!r.closed)return e instanceof w?e.subscribe(r):F(e)(r)}const $C={};class QC{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new XC(t,this.resultSelector))}}class XC extends qC{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push($C),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n<e;n++)this.add(WC(this,t[n],void 0,n))}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n){const i=this.values,r=this.toRespond?i[n]===$C?--this.toRespond:this.toRespond:0;i[n]=e,0===r&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}class ZC{constructor(t){this.total=t}call(t,e){return e.subscribe(new KC(t,this.total))}}class KC extends y{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}const JC=new Set;let tS,eS=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):nS}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!JC.has(t))try{tS||(tS=document.createElement("style"),tS.setAttribute("type","text/css"),document.head.appendChild(tS)),tS.sheet&&(tS.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),JC.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(Qt(FE))},t.\u0275prov=ht({factory:function(){return new t(Qt(FE))},token:t,providedIn:"root"}),t})();function nS(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let iS=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new k}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return rS(xE(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){let e=function(...t){let e=void 0,n=void 0;return O(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&h(t[0])&&(t=t[0]),Y(t,n).lift(new QC(e))}(rS(xE(t)).map(t=>this._registerQuery(t).observable));return e=IE(e.pipe(jw(1)),e.pipe(t=>t.lift(new ZC(1)),sp(0))),e.pipe(A(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:n})=>{e.matches=e.matches||t,e.breakpoints[n]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),n={observable:new w(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe(PE(e),A(({matches:e})=>({query:t,matches:e})),ME(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(Qt(eS),Qt(oc))},t.\u0275prov=ht({factory:function(){return new t(Qt(eS),Qt(oc))},token:t,providedIn:"root"}),t})();function rS(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const sS={tooltipState:dh("state",[mh("initial, void, hidden",gh({opacity:0,transform:"scale(0)"})),mh("visible",gh({transform:"scale(1)"})),vh("* => visible",fh("200ms cubic-bezier(0, 0, 0.2, 1)",yh([gh({opacity:0,transform:"scale(0)",offset:0}),gh({opacity:.5,transform:"scale(0.99)",offset:.5}),gh({opacity:1,transform:"scale(1)",offset:1})]))),vh("* => hidden",fh("100ms cubic-bezier(0, 0, 0.2, 1)",gh({opacity:0})))])},oS=zE({passive:!0}),aS=new Rt("mat-tooltip-scroll-strategy"),uS={provide:aS,deps:[_C],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},cS=new Rt("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let lS=(()=>{class t{constructor(t,e,n,i,r,s,o,a,u,c,l){this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=i,this._ngZone=r,this._platform=s,this._ariaDescriber=o,this._focusMonitor=a,this._dir=c,this._defaultOptions=l,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new k,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!function(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=u,l&&(l.position&&(this.position=l.position),l.touchGestures&&(this.touchGestures=l.touchGestures)),r.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=function(t){return null!=t&&""+t!="false"}(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?(""+t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message)})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(ME(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,n])=>{t.removeEventListener(e,n,oS)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new Qf(hS,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(ME(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return e.positionChanges.pipe(ME(this._destroyed)).subscribe(t=>{this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(ME(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(){const t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),n=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),n.main),Object.assign(Object.assign({},e.fallback),n.fallback)])}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e||"below"==e?n={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={originX:"end",originY:"center"});const{x:i,y:r}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:i,originY:r}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e?n={overlayX:"center",overlayY:"bottom"}:"below"==e?n={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={overlayX:"start",overlayY:"center"});const{x:i,y:r}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:i,overlayY:r}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(jw(1),ME(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_setupPointerEnterEventsIfNeeded(){!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,oS)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,n=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==t&&e.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(Eo(_C),Eo(Sa),Eo(GE),Eo(Za),Eo(oc),Eo(FE),Eo(MC),Eo(IC),Eo(aS),Eo(VE,8),Eo(cS,8))},t.\u0275dir=_e({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t})(),hS=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new k,this._isHandset=this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)")}show(t){this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=null,this._markForCheck()},t)}hide(t){this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=null,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(Eo($s),Eo(iS))},t.\u0275cmp=fe({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&Do("click",(function(){return e._handleBodyInteraction()}),!1,Kn),2&t&&Yo("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){var n;1&t&&(ko(0,"div",0),Do("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),function(t,e){const n=sn();let i;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new Error("The pipe 'async' could not be found!")}("async",n.pipeRegistry),n.data[21]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(21,i.onDestroy)):i=n.data[21];const r=i.factory||(i.factory=xe(i.type)),s=Wt(Eo),o=ei(!1),a=r();ei(o),Wt(s),function(t,e,n,i){21>=t.data.length&&(t.data[21]=null,t.blueprint[21]=null),e[21]=i}(n,rn(),0,a)}(),sa(2),To()),2&t&&(Wo("mat-tooltip-handset",null==(n=function(t,e,n){const i=rn(),r=function(t,e){return t[e+Ce]}(i,t);return function(t,e){return go.isWrapped(e)&&(e=go.unwrap(e),t[en.lFrame.bindingIndex]=vr),e}(i,function(t,e){return t[1].data[e+Ce].pure}(i,t)?vu(i,fn(),e,r.transform,n,r):r.transform(n))}(1,5,e._isHandset))?null:n.matches),Co("ngClass",e.tooltipClass)("@state",e._visibility),Er(2),oa(e.message))},directives:[bl],pipes:[Dl],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:[sS.tooltipState]},changeDetection:0}),t})(),dS=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[uS],imports:[[zC,Il,wC,UC],UC,qE]}),t})();function fS(t,e){1&t&&(Mn(),ko(0,"marker",6),Oo(1,"path",7),To())}function pS(t,e){if(1&t){const t=Mo();Mn(),ko(0,"g",8),Do("click",(function(){on(t);const n=e.$implicit,i=jo(2);return i.onNodeClick?i.onNodeClick({nodeId:n.id}):null})),Oo(1,"rect",9),ko(2,"text",10),sa(3),To(),To()}if(2&t){const t=e.$implicit;Co("matTooltip",t.data.tooltip),Er(1),bo("width",t.dimension.width)("height",t.dimension.height)("fill",t.data.customColor||t.data.color),Er(1),bo("x",10)("y",t.dimension.height/2),Er(1),aa(" ",t.label," ")}}function gS(t,e){if(1&t){const t=Mo();Mn(),ko(0,"g",11),Do("click",(function(){on(t);const n=e.$implicit,i=jo(2);return i.onLinkClick?i.onLinkClick({sourceNodeId:n.source,targetNodeId:n.target}):null})),Oo(1,"path",12),ko(2,"text",13),ko(3,"textPath",14),sa(4),To(),To(),To()}if(2&t){const t=e.$implicit;Er(3),Yo("dominant-baseline",t.dominantBaseline),bo("href","#"+t.id),Er(1),aa(" ",t.label," ")}}function mS(t,e){if(1&t&&(ko(0,"ngx-graph",2),xo(1,fS,2,0,"ng-template",null,3,Ru),xo(3,pS,4,7,"ng-template",null,4,Ru),xo(5,gS,5,4,"ng-template",null,5,Ru),To()),2&t){const t=jo();Co("showMiniMap",t.showMiniMap)("draggingEnabled",t.draggingEnabled)("links",t.links)("nodes",t.nodes)("autoCenter",t.autoCenter)("autoZoom",t.autoZoom)}}let yS=(()=>{class t{ngOnChanges(){}onResized(t){window.dispatchEvent(new Event("resize"))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["drayman-ngx-graph-internal"]],inputs:{links:"links",nodes:"nodes",clusters:"clusters",showMiniMap:"showMiniMap",draggingEnabled:"draggingEnabled",autoCenter:"autoCenter",autoZoom:"autoZoom",onNodeClick:"onNodeClick",onLinkClick:"onLinkClick"},features:[Pe],decls:2,vars:1,consts:[[2,"width","100%","height","100%",3,"resized"],[3,"showMiniMap","draggingEnabled","links","nodes","autoCenter","autoZoom",4,"ngIf"],[3,"showMiniMap","draggingEnabled","links","nodes","autoCenter","autoZoom"],["defsTemplate",""],["nodeTemplate",""],["linkTemplate",""],["id","arrow","viewBox","0 -5 10 10","refX","8","refY","0","markerWidth","4","markerHeight","4","orient","auto"],["d","M0,-5L10,0L0,5",1,"arrow-head"],[1,"node",2,"cursor","pointer",3,"matTooltip","click"],["rx","4px"],["alignment-baseline","central"],[1,"edge",2,"cursor","pointer",3,"click"],["stroke-width","2","marker-end","url(#arrow)",1,"line"],["text-anchor","middle",1,"edge-label"],["startOffset","50%",1,"text-path"]],template:function(t,e){1&t&&(ko(0,"div",0),Do("resized",(function(t){return e.onResized(t)})),xo(1,mS,7,6,"ngx-graph",1),To()),2&t&&(Er(1),Co("ngIf",null==e.nodes?null:e.nodes.length))},directives:[bE,Cl,fE,lS],styles:[""]}),t})(),vS=(()=>{class t{constructor(t){this.injector=t}ngDoBootstrap(){const t=function(t,e){const n=function(t,e){return e.get(Ca).resolveComponentFactory(t).inputs}(t,e.injector),i=e.strategyFactory||new Qc(t,e.injector),r=function(t){const e={};return t.forEach(({propName:t,templateName:n})=>{var i;e[(i=n,i.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()))]=t}),e}(n);class s extends Zc{constructor(t){super(),this.injector=t}get ngElementStrategy(){if(!this._ngElementStrategy){const t=this._ngElementStrategy=i.create(this.injector||e.injector),r=n.filter(({propName:t})=>this.hasOwnProperty(t)).map(({propName:t})=>[t,this[t]]);this instanceof s?r.forEach(([t])=>delete this[t]):Kc(n,this),r.forEach(([e,n])=>t.setInputValue(e,n))}return this._ngElementStrategy}attributeChangedCallback(t,e,n,i){this.ngElementStrategy.setInputValue(r[t],n)}connectedCallback(){let t=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),t=!0),this.ngElementStrategy.connect(this),t||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(t=>{const e=function(t,e,n){if("function"!=typeof CustomEvent){const i=t.createEvent("CustomEvent");return i.initCustomEvent(e,!1,!1,n),i}return new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:n})}(this.ownerDocument,t.name,t.value);this.dispatchEvent(e)})}}return s.observedAttributes=Object.keys(r),Object.defineProperty(s.prototype,"ngElementStrategy",{enumerable:!0}),Kc(n,s.prototype),s}(yS,{injector:this.injector});customElements.define("drayman-ngx-graph",t)}}return t.\u0275mod=ye({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(Qt(lo))},imports:[[ch,Wf,Ew,mE,wE,dS]]}),t})();(function(){if(Mi)throw new Error("Cannot enable prod mode after platform setup.");Ai=!1})(),ah().bootstrapModule(vS).catch(t=>console.error(t))},zWgn:function(t,e){t.exports=function(t){return t}},zaNA:function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},zmx7:function(t,e,n){var i=n("gjtd"),r=n("xxjf"),s=n("vC4J").Graph;t.exports={debugOrdering:function(t){var e=r.buildLayerMatrix(t),n=new s({compound:!0,multigraph:!0}).setGraph({});return i.forEach(t.nodes(),(function(e){n.setNode(e,{label:e}),n.setParent(e,"layer"+t.node(e).rank)})),i.forEach(t.edges(),(function(t){n.setEdge(t.v,t.w,{},t.name)})),i.forEach(e,(function(t,e){n.setNode("layer"+e,{rank:"same"}),i.reduce(t,(function(t,e){return n.setEdge(t,e,{style:"invis"}),e}))})),n}}},zn8P:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"},zr3P:function(t,e,n){var i=n("kn3Q");t.exports=function(t){return i(t,4)}},"zyX+":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("JYAe"),r=n("bJjD"),s=n("Lm04"),o=n("gbTj"),a=n("aj3f"),u=n("OAVv"),c=n("BpeN"),l=e.EventType=function(t){return t[t.start=0]="start",t[t.tick=1]="tick",t[t.end=2]="end",t}(e.EventType||{});function h(t){return void 0!==t.leaves||void 0!==t.groups}e.Layout=function(){function t(){var e=this;this._canvasSize=[1,1],this._linkDistance=20,this._defaultNodeSize=10,this._linkLengthCalculator=null,this._linkType=null,this._avoidOverlaps=!1,this._handleDisconnected=!0,this._running=!1,this._nodes=[],this._groups=[],this._rootGroup=null,this._links=[],this._constraints=[],this._distanceMatrix=null,this._descent=null,this._directedLinkConstraints=null,this._threshold=.01,this._visibilityGraph=null,this._groupCompactness=1e-6,this.event=null,this.linkAccessor={getSourceIndex:t.getSourceIndex,getTargetIndex:t.getTargetIndex,setLength:t.setLinkLength,getType:function(t){return"function"==typeof e._linkType?e._linkType(t):0}}}return t.prototype.on=function(t,e){return this.event||(this.event={}),"string"==typeof t?this.event[l[t]]=e:this.event[t]=e,this},t.prototype.trigger=function(t){this.event&&void 0!==this.event[t.type]&&this.event[t.type](t)},t.prototype.kick=function(){for(;!this.tick(););},t.prototype.tick=function(){if(this._alpha<this._threshold)return this._running=!1,this.trigger({type:l.end,alpha:this._alpha=0,stress:this._lastStress}),!0;var t,e,n=this._nodes.length;for(this._descent.locks.clear(),e=0;e<n;++e)(t=this._nodes[e]).fixed&&(void 0!==t.px&&void 0!==t.py||(t.px=t.x,t.py=t.y),this._descent.locks.add(e,[t.px,t.py]));var i=this._descent.rungeKutta();return 0===i?this._alpha=0:void 0!==this._lastStress&&(this._alpha=i),this._lastStress=i,this.updateNodePositions(),this.trigger({type:l.tick,alpha:this._alpha,stress:this._lastStress}),!1},t.prototype.updateNodePositions=function(){for(var t,e=this._descent.x[0],n=this._descent.x[1],i=this._nodes.length;i--;)(t=this._nodes[i]).x=e[i],t.y=n[i]},t.prototype.nodes=function(t){if(!t){if(0===this._nodes.length&&this._links.length>0){var e=0;this._links.forEach((function(t){e=Math.max(e,t.source,t.target)})),this._nodes=new Array(++e);for(var n=0;n<e;++n)this._nodes[n]={}}return this._nodes}return this._nodes=t,this},t.prototype.groups=function(t){var e=this;return t?(this._groups=t,this._rootGroup={},this._groups.forEach((function(t){void 0===t.padding&&(t.padding=1),void 0!==t.leaves&&t.leaves.forEach((function(n,i){"number"==typeof n&&((t.leaves[i]=e._nodes[n]).parent=t)})),void 0!==t.groups&&t.groups.forEach((function(n,i){"number"==typeof n&&((t.groups[i]=e._groups[n]).parent=t)}))})),this._rootGroup.leaves=this._nodes.filter((function(t){return void 0===t.parent})),this._rootGroup.groups=this._groups.filter((function(t){return void 0===t.parent})),this):this._groups},t.prototype.powerGraphGroups=function(t){var e=i.getGroups(this._nodes,this._links,this.linkAccessor,this._rootGroup);return this.groups(e.groups),t(e),this},t.prototype.avoidOverlaps=function(t){return arguments.length?(this._avoidOverlaps=t,this):this._avoidOverlaps},t.prototype.handleDisconnected=function(t){return arguments.length?(this._handleDisconnected=t,this):this._handleDisconnected},t.prototype.flowLayout=function(t,e){return arguments.length||(t="y"),this._directedLinkConstraints={axis:t,getMinSeparation:"number"==typeof e?function(){return e}:e},this},t.prototype.links=function(t){return arguments.length?(this._links=t,this):this._links},t.prototype.constraints=function(t){return arguments.length?(this._constraints=t,this):this._constraints},t.prototype.distanceMatrix=function(t){return arguments.length?(this._distanceMatrix=t,this):this._distanceMatrix},t.prototype.size=function(t){return t?(this._canvasSize=t,this):this._canvasSize},t.prototype.defaultNodeSize=function(t){return t?(this._defaultNodeSize=t,this):this._defaultNodeSize},t.prototype.groupCompactness=function(t){return t?(this._groupCompactness=t,this):this._groupCompactness},t.prototype.linkDistance=function(t){return t?(this._linkDistance="function"==typeof t?t:+t,this._linkLengthCalculator=null,this):this._linkDistance},t.prototype.linkType=function(t){return this._linkType=t,this},t.prototype.convergenceThreshold=function(t){return t?(this._threshold="function"==typeof t?t:+t,this):this._threshold},t.prototype.alpha=function(t){return arguments.length?(t=+t,this._alpha?this._alpha=t>0?t:0:t>0&&(this._running||(this._running=!0,this.trigger({type:l.start,alpha:this._alpha=t}),this.kick())),this):this._alpha},t.prototype.getLinkLength=function(t){return"function"==typeof this._linkDistance?+this._linkDistance(t):this._linkDistance},t.setLinkLength=function(t,e){t.length=e},t.prototype.getLinkType=function(t){return"function"==typeof this._linkType?this._linkType(t):0},t.prototype.symmetricDiffLinkLengths=function(t,e){var n=this;return void 0===e&&(e=1),this.linkDistance((function(e){return t*e.length})),this._linkLengthCalculator=function(){return r.symmetricDiffLinkLengths(n._links,n.linkAccessor,e)},this},t.prototype.jaccardLinkLengths=function(t,e){var n=this;return void 0===e&&(e=1),this.linkDistance((function(e){return t*e.length})),this._linkLengthCalculator=function(){return r.jaccardLinkLengths(n._links,n.linkAccessor,e)},this},t.prototype.start=function(e,n,i,u,c,l){var h=this;void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0),void 0===u&&(u=0),void 0===c&&(c=!0),void 0===l&&(l=!0);var d,f=this.nodes().length,p=f+2*this._groups.length,g=this._canvasSize[0],m=this._canvasSize[1],y=new Array(p),v=new Array(p),_=null,b=this._avoidOverlaps;this._nodes.forEach((function(t,e){t.index=e,void 0===t.x&&(t.x=g/2,t.y=m/2),y[e]=t.x,v[e]=t.y})),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?d=this._distanceMatrix:(d=new a.Calculator(p,this._links,t.getSourceIndex,t.getTargetIndex,(function(t){return h.getLinkLength(t)})).DistanceMatrix(),_=s.Descent.createSquareMatrix(p,(function(){return 2})),this._links.forEach((function(t){"number"==typeof t.source&&(t.source=h._nodes[t.source]),"number"==typeof t.target&&(t.target=h._nodes[t.target])})),this._links.forEach((function(e){var n=t.getSourceIndex(e),i=t.getTargetIndex(e);_[n][i]=_[i][n]=e.weight||1})));var w=s.Descent.createSquareMatrix(p,(function(t,e){return d[t][e]}));if(this._rootGroup&&void 0!==this._rootGroup.groups){var x=f;this._groups.forEach((function(t){!function(t,e,n,i){_[t][e]=_[e][t]=n,w[t][e]=w[e][t]=.1}(x,x+1,h._groupCompactness),y[x]=0,v[x++]=0,y[x]=0,v[x++]=0}))}else this._rootGroup={leaves:this._nodes,groups:[]};var E=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,E=E.concat(r.generateDirectedEdgeConstraints(f,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new s.Descent([y,v],w),this._descent.locks.clear(),x=0;x<f;++x){var C=this._nodes[x];C.fixed&&(C.px=C.x,C.py=C.y,this._descent.locks.add(x,[C.x,C.y]))}if(this._descent.threshold=this._threshold,this.initialLayout(e,y,v),E.length>0&&(this._descent.project=new o.Projection(this._nodes,this._groups,this._rootGroup,E).projectFunctions()),this._descent.run(n),this.separateOverlappingComponents(g,m,l),this.avoidOverlaps(b),b&&(this._nodes.forEach((function(t,e){t.x=y[e],t.y=v[e]})),this._descent.project=new o.Projection(this._nodes,this._groups,this._rootGroup,E,!0).projectFunctions(),this._nodes.forEach((function(t,e){y[e]=t.x,v[e]=t.y}))),this._descent.G=_,this._descent.run(i),u){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=f,this._descent.scaleSnapByMaxH=f!=p;var S=s.Descent.createSquareMatrix(p,(function(t,e){return t>=f||e>=f?_[t][e]:0}));this._descent.G=S,this._descent.run(u)}return this.updateNodePositions(),this.separateOverlappingComponents(g,m,l),c?this.resume():this},t.prototype.initialLayout=function(e,n,i){if(this._groups.length>0&&e>0){var r=this._nodes.length,s=this._links.map((function(t){return{source:t.source.index,target:t.target.index}})),o=this._nodes.map((function(t){return{index:t.index}}));this._groups.forEach((function(t,e){o.push({index:t.index=r+e})})),this._groups.forEach((function(t,e){void 0!==t.leaves&&t.leaves.forEach((function(e){return s.push({source:t.index,target:e.index})})),void 0!==t.groups&&t.groups.forEach((function(e){return s.push({source:t.index,target:e.index})}))})),(new t).size(this.size()).nodes(o).links(s).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(e,0,0,0,!1),this._nodes.forEach((function(t){n[t.index]=o[t.index].x,i[t.index]=o[t.index].y}))}else this._descent.run(e)},t.prototype.separateOverlappingComponents=function(t,e,n){var i=this;if(void 0===n&&(n=!0),!this._distanceMatrix&&this._handleDisconnected){var r=this._descent.x[0],s=this._descent.x[1];this._nodes.forEach((function(t,e){t.x=r[e],t.y=s[e]}));var o=c.separateGraphs(this._nodes,this._links);c.applyPacking(o,t,e,this._defaultNodeSize,1,n),this._nodes.forEach((function(t,e){i._descent.x[0][e]=t.x,i._descent.x[1][e]=t.y,t.bounds&&(t.bounds.setXCentre(t.x),t.bounds.setYCentre(t.y))}))}},t.prototype.resume=function(){return this.alpha(.1)},t.prototype.stop=function(){return this.alpha(0)},t.prototype.prepareEdgeRouting=function(t){void 0===t&&(t=0),this._visibilityGraph=new u.TangentVisibilityGraph(this._nodes.map((function(e){return e.bounds.inflate(-t).vertices()})))},t.prototype.routeEdge=function(t,e,n){void 0===e&&(e=5);var i=[],r=new u.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),s={x:t.source.x,y:t.source.y},c={x:t.target.x,y:t.target.y},l=r.addPoint(s,t.source.index),h=r.addPoint(c,t.target.index);r.addEdgeIfVisible(s,c,t.source.index,t.target.index),void 0!==n&&n(r);var d=new a.Calculator(r.V.length,r.E,(function(t){return t.source.id}),(function(t){return t.target.id}),(function(t){return t.length()})).PathFromNodeToNode(l.id,h.id);if(1===d.length||d.length===r.V.length){var f=o.makeEdgeBetween(t.source.innerBounds,t.target.innerBounds,e);i=[f.sourceIntersection,f.arrowStart]}else{for(var p=d.length-2,g=r.V[d[p]].p,m=r.V[d[0]].p,y=(i=[t.source.innerBounds.rayIntersection(g.x,g.y)],p);y>=0;--y)i.push(r.V[d[y]].p);i.push(o.makeEdgeTo(m,t.target.innerBounds,e))}return i},t.getSourceIndex=function(t){return"number"==typeof t.source?t.source:t.source.index},t.getTargetIndex=function(t){return"number"==typeof t.target?t.target:t.target.index},t.linkId=function(e){return t.getSourceIndex(e)+"-"+t.getTargetIndex(e)},t.dragStart=function(e){h(e)?t.storeOffset(e,t.dragOrigin(e)):(t.stopNode(e),e.fixed|=2)},t.stopNode=function(t){t.px=t.x,t.py=t.y},t.storeOffset=function(e,n){void 0!==e.leaves&&e.leaves.forEach((function(e){e.fixed|=2,t.stopNode(e),e._dragGroupOffsetX=e.x-n.x,e._dragGroupOffsetY=e.y-n.y})),void 0!==e.groups&&e.groups.forEach((function(e){return t.storeOffset(e,n)}))},t.dragOrigin=function(t){return h(t)?{x:t.bounds.cx(),y:t.bounds.cy()}:t},t.drag=function(e,n){h(e)?(void 0!==e.leaves&&e.leaves.forEach((function(t){e.bounds.setXCentre(n.x),e.bounds.setYCentre(n.y),t.px=t._dragGroupOffsetX+n.x,t.py=t._dragGroupOffsetY+n.y})),void 0!==e.groups&&e.groups.forEach((function(e){return t.drag(e,n)}))):(e.px=n.x,e.py=n.y)},t.dragEnd=function(e){h(e)?(void 0!==e.leaves&&e.leaves.forEach((function(e){t.dragEnd(e),delete e._dragGroupOffsetX,delete e._dragGroupOffsetY})),void 0!==e.groups&&e.groups.forEach(t.dragEnd)):e.fixed&=-7},t.mouseOver=function(t){t.fixed|=4,t.px=t.x,t.py=t.y},t.mouseOut=function(t){t.fixed&=-5},t}()}});