@drayman/elements 1.23.0 → 1.25.0

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.
Files changed (117) hide show
  1. package/README.md +2 -4
  2. package/dist/button/3rdpartylicenses.txt +3 -45
  3. package/dist/button/main.js +1 -1
  4. package/dist/button/polyfills.js +1 -1
  5. package/dist/calendar/3rdpartylicenses.txt +3 -52
  6. package/dist/calendar/favicon.ico +0 -0
  7. package/dist/calendar/main.js +1 -1
  8. package/dist/calendar/polyfills.js +1 -1
  9. package/dist/calendar/styles.css +1 -1
  10. package/dist/checkbox/3rdpartylicenses.txt +3 -30
  11. package/dist/checkbox/main.js +1 -1
  12. package/dist/checkbox/polyfills.js +1 -1
  13. package/dist/claviz-charts/3rdpartylicenses.txt +1 -28
  14. package/dist/claviz-charts/main.js +1 -1
  15. package/dist/claviz-charts/polyfills.js +1 -1
  16. package/dist/code-editor/3rdpartylicenses.txt +2 -139
  17. package/dist/code-editor/main.js +1 -1
  18. package/dist/code-editor/polyfills.js +1 -1
  19. package/dist/datepicker/3rdpartylicenses.txt +3 -91
  20. package/dist/datepicker/main.js +1 -1
  21. package/dist/datepicker/polyfills.js +1 -1
  22. package/dist/file-uploader/3rdpartylicenses.txt +1 -28
  23. package/dist/file-uploader/main.js +1 -1
  24. package/dist/file-uploader/polyfills.js +1 -1
  25. package/dist/{jsondiffpatch → gauge}/3rdpartylicenses.txt +15 -38
  26. package/dist/gauge/main.js +1 -0
  27. package/dist/gauge/polyfills.js +1 -0
  28. package/dist/grid/3rdpartylicenses.txt +3 -45
  29. package/dist/grid/main.js +1 -1
  30. package/dist/grid/polyfills.js +1 -1
  31. package/dist/menu/3rdpartylicenses.txt +3 -45
  32. package/dist/menu/main.js +1 -1
  33. package/dist/menu/polyfills.js +1 -1
  34. package/dist/nebula/3rdpartylicenses.txt +24 -62
  35. package/dist/nebula/main.js +1 -1
  36. package/dist/nebula/polyfills.js +1 -1
  37. package/dist/ngx-charts/3rdpartylicenses.txt +2 -44
  38. package/dist/ngx-charts/main.js +1 -1
  39. package/dist/ngx-charts/polyfills.js +1 -1
  40. package/dist/ngx-graph/3rdpartylicenses.txt +3 -69
  41. package/dist/ngx-graph/favicon.ico +0 -0
  42. package/dist/ngx-graph/main.js +1 -1
  43. package/dist/ngx-graph/polyfills.js +1 -1
  44. package/dist/number-field/3rdpartylicenses.txt +3 -30
  45. package/dist/number-field/main.js +1 -1
  46. package/dist/number-field/polyfills.js +1 -1
  47. package/dist/pdf-viewer/3rdpartylicenses.txt +26 -12
  48. package/dist/pdf-viewer/main.js +1 -1
  49. package/dist/pdf-viewer/polyfills.js +1 -1
  50. package/dist/radio-group/3rdpartylicenses.txt +3 -52
  51. package/dist/radio-group/main.js +1 -1
  52. package/dist/radio-group/polyfills.js +1 -1
  53. package/dist/select/3rdpartylicenses.txt +3 -30
  54. package/dist/select/main.js +1 -1
  55. package/dist/select/polyfills.js +1 -1
  56. package/dist/table/3rdpartylicenses.txt +3 -91
  57. package/dist/table/main.js +1 -1
  58. package/dist/table/polyfills.js +1 -1
  59. package/dist/text-field/3rdpartylicenses.txt +3 -45
  60. package/dist/text-field/main.js +1 -1
  61. package/dist/text-field/polyfills.js +1 -1
  62. package/dist/textarea-field/3rdpartylicenses.txt +3 -30
  63. package/dist/textarea-field/main.js +1 -1
  64. package/dist/textarea-field/polyfills.js +1 -1
  65. package/dist/timepicker/3rdpartylicenses.txt +3 -67
  66. package/dist/timepicker/main.js +1 -1
  67. package/dist/timepicker/polyfills.js +1 -1
  68. package/dist/types/checkbox/src/app/models/checkbox-options.d.ts +0 -0
  69. package/dist/types/claviz-charts/src/app/models/claviz-charts-options.d.ts +0 -0
  70. package/dist/types/datepicker/src/app/models/datepicker-options.d.ts +0 -0
  71. package/dist/types/file-uploader/src/app/models/file-uploader-options.d.ts +0 -0
  72. package/dist/types/gauge/src/app/models/gauge-options.d.ts +87 -0
  73. package/dist/types/menu/src/app/models/menu-options.d.ts +0 -0
  74. package/dist/types/nebula/src/app/models/nebula-options.d.ts +15 -0
  75. package/dist/types/ngx-charts/src/app/models/ngx-charts-options.d.ts +0 -0
  76. package/dist/types/ngx-graph/src/app/models/ngx-graph-options.d.ts +0 -0
  77. package/dist/types/number-field/src/app/models/number-field-options.d.ts +0 -0
  78. package/dist/types/pdf-viewer/src/app/models/pdf-viewer-options.d.ts +0 -0
  79. package/dist/types/radio-group/src/app/models/radio-group-options.d.ts +0 -0
  80. package/dist/types/select/src/app/models/select-options.d.ts +0 -0
  81. package/dist/types/shared/models/autocomplete-options-base.d.ts +0 -0
  82. package/dist/types/shared/models/button-options-base.d.ts +0 -0
  83. package/dist/types/shared/models/button-options.d.ts +0 -0
  84. package/dist/types/shared/models/field-options-base.d.ts +0 -0
  85. package/dist/types/shared/models/input-field-options-base.d.ts +0 -0
  86. package/dist/types/shared/models/input-mask-options-base.d.ts +0 -0
  87. package/dist/types/table/src/app/models/table-options.d.ts +0 -0
  88. package/dist/types/text-field/src/app/models/text-field-options.d.ts +0 -0
  89. package/dist/types/textarea-field/src/app/models/textarea-field-options.d.ts +0 -0
  90. package/dist/types/timepicker/src/app/models/timepicker-options.d.ts +0 -0
  91. package/dist/types/youtube-player/src/app/models/youtube-player-options.d.ts +0 -0
  92. package/dist/youtube-player/3rdpartylicenses.txt +2 -29
  93. package/dist/youtube-player/main.js +1 -1
  94. package/dist/youtube-player/polyfills.js +1 -1
  95. package/package.json +188 -183
  96. package/types/index.d.ts +35 -0
  97. package/dist/jsondiffpatch/favicon.ico +0 -0
  98. package/dist/jsondiffpatch/main.js +0 -1
  99. package/dist/jsondiffpatch/polyfills.js +0 -1
  100. package/dist/monaco-editor/3rdpartylicenses.txt +0 -406
  101. package/dist/monaco-editor/favicon.ico +0 -0
  102. package/dist/monaco-editor/main.js +0 -1
  103. package/dist/monaco-editor/polyfills.js +0 -1
  104. package/dist/monaco-editor/styles.css +0 -1
  105. package/dist/picasso/3rdpartylicenses.txt +0 -465
  106. package/dist/picasso/favicon.ico +0 -0
  107. package/dist/picasso/main.js +0 -1
  108. package/dist/picasso/polyfills.js +0 -1
  109. package/dist/picasso/styles.css +0 -0
  110. package/dist/pivot-grid/3rdpartylicenses.txt +0 -418
  111. package/dist/pivot-grid/main.js +0 -1
  112. package/dist/pivot-grid/polyfills.js +0 -1
  113. package/dist/pivot-grid/styles.css +0 -0
  114. package/dist/types/picasso/src/app/models/picasso-options.d.ts +0 -3
  115. package/dist/types/pivot-grid/src/app/models/pivot-grid-options.d.ts +0 -62
  116. /package/dist/{pivot-grid → gauge}/favicon.ico +0 -0
  117. /package/dist/{jsondiffpatch → gauge}/styles.css +0 -0
@@ -1 +1 @@
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),Oo(2,"text",10),To()}if(2&t){const t=e.$implicit,n=jo(2);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),Co("innerHTML",n.getSanitizedString(t.label),nr),bo("x",10)("y",t.dimension.height/2)}}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,3,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{constructor(t){this.sanitizer=t}ngOnChanges(){}onResized(t){window.dispatchEvent(new Event("resize"))}getSanitizedString(t){return this.sanitizer.bypassSecurityTrustHtml(t)}}return t.\u0275fac=function(e){return new(e||t)(Eo(sh))},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",3,"innerHTML"],[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}()}});
1
+ (()=>{var ZE={2289:(E,L,u)=>{E.exports={ResizeSensor:u(294),ElementQueries:u(3322)}},3322:function(E,L,u){"use strict";var D,w;"undefined"!=typeof window&&window,D=[u(294)],void 0!==(w=function(C){var _=function(){var g,f={},v=[];function m(N){N||(N=document.documentElement);var V=window.getComputedStyle(N,null).fontSize;return parseFloat(V)||16}function y(N,V){var U=V.split(/\d/),$=U[U.length-1];switch(V=parseFloat(V),$){case"px":default:return V;case"em":return V*m(N);case"rem":return V*m();case"vw":return V*document.documentElement.clientWidth/100;case"vh":return V*document.documentElement.clientHeight/100;case"vmin":case"vmax":var Y=document.documentElement.clientWidth/100,oe=document.documentElement.clientHeight/100;return V*(0,Math["vmin"===$?"min":"max"])(Y,oe)}}function S(N,V){this.element=N;var U,$,Y,oe,de,ee,J,ce,pe=["min-width","min-height","max-width","max-height"];this.call=function(){for(U in Y=function p(N){if(!N.getBoundingClientRect)return{width:N.offsetWidth,height:N.offsetHeight};var V=N.getBoundingClientRect();return{width:Math.round(V.width),height:Math.round(V.height)}}(this.element),ee={},f[V])!f[V].hasOwnProperty(U)||(oe=y(this.element,($=f[V][U]).value),de="width"===$.property?Y.width:Y.height,J="","min"===$.mode&&de>=oe&&(J+=$.value),"max"===$.mode&&de<=oe&&(J+=$.value),ee[ce=$.mode+"-"+$.property]||(ee[ce]=""),J&&-1===(" "+ee[ce]+" ").indexOf(" "+J+" ")&&(ee[ce]+=" "+J));for(var be in pe)!pe.hasOwnProperty(be)||(ee[pe[be]]?this.element.setAttribute(pe[be],ee[pe[be]].substr(1)):this.element.removeAttribute(pe[be]))}}function k(N,V){N.elementQueriesSetupInformation||(N.elementQueriesSetupInformation=new S(N,V)),N.elementQueriesSensor||(N.elementQueriesSensor=new C(N,function(){N.elementQueriesSetupInformation.call()}))}function O(N,V,U,$){if(void 0===f[N]){f[N]=[];var Y=v.length;g.innerHTML+="\n"+N+" {animation: 0.1s element-queries;}",g.innerHTML+="\n"+N+" > .resize-sensor {min-width: "+Y+"px;}",v.push(N)}f[N].push({mode:V,property:U,value:$})}function F(N){var V;if(document.querySelectorAll&&(V=N?N.querySelectorAll.bind(N):document.querySelectorAll.bind(document)),!V&&"undefined"!=typeof $$&&(V=$$),!V&&"undefined"!=typeof jQuery&&(V=jQuery),!V)throw"No document.querySelectorAll, jQuery or Mootools's $$ found.";return V}function z(N){var V=[],U=[],$=[],Y=0,oe=-1,de=[];for(var ee in N.children)if(N.children.hasOwnProperty(ee)&&N.children[ee].tagName&&"img"===N.children[ee].tagName.toLowerCase()){V.push(N.children[ee]);var J=N.children[ee].getAttribute("min-width")||N.children[ee].getAttribute("data-min-width"),ce=N.children[ee].getAttribute("data-src")||N.children[ee].getAttribute("url");$.push(ce),U.push({minWidth:J}),J?N.children[ee].style.display="none":(Y=V.length-1,N.children[ee].style.display="block")}function be(){var Ee,fe=!1;for(Ee in V)!V.hasOwnProperty(Ee)||U[Ee].minWidth&&N.offsetWidth>U[Ee].minWidth&&(fe=Ee);if(fe||(fe=Y),oe!==fe)if(de[fe])V[oe].style.display="none",V[fe].style.display="block",oe=fe;else{var Pe=new Image;Pe.onload=function(){V[fe].src=$[fe],V[oe].style.display="none",V[fe].style.display="block",de[fe]=!0,oe=fe},Pe.src=$[fe]}else V[fe].src=$[fe]}oe=Y,N.resizeSensorInstance=new C(N,be),be()}var X=/,?[\s\t]*([^,\n]*?)((?:\[[\s\t]*?(?:min|max)-(?:width|height)[\s\t]*?[~$\^]?=[\s\t]*?"[^"]*?"[\s\t]*?])+)([^,\n\s\{]*)/gim,se=/\[[\s\t]*?(min|max)-(width|height)[\s\t]*?[~$\^]?=[\s\t]*?"([^"]*?)"[\s\t]*?]/gim;function te(N){var V,U,$,Y;for(N=N.replace(/'/g,'"');null!==(V=X.exec(N));)for(U=V[1]+V[3],$=V[2];null!==(Y=se.exec($));)O(U,Y[1],Y[2],Y[3])}function ie(N){var V="";if(N)if("string"==typeof N)(-1!==(N=N.toLowerCase()).indexOf("min-width")||-1!==N.indexOf("max-width"))&&te(N);else for(var U=0,$=N.length;U<$;U++)1===N[U].type?(-1!==(V=N[U].selectorText||N[U].cssText).indexOf("min-height")||-1!==V.indexOf("max-height")||-1!==V.indexOf("min-width")||-1!==V.indexOf("max-width"))&&te(V):4===N[U].type?ie(N[U].cssRules||N[U].rules):3===N[U].type&&N[U].styleSheet.hasOwnProperty("cssRules")&&ie(N[U].styleSheet.cssRules)}var le=!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($){var Y=$.target,oe=Y&&window.getComputedStyle(Y,null),de=oe&&oe.getPropertyValue("animation-name");if(de&&-1!==de.indexOf("element-queries")){Y.elementQueriesSensor=new C(Y,function(){Y.elementQueriesSetupInformation&&Y.elementQueriesSetupInformation.call()});var ce=window.getComputedStyle(Y.resizeSensor,null).getPropertyValue("min-width");ce=parseInt(ce.replace("px","")),k($.target,v[ce])}}),le||((g=document.createElement("style")).type="text/css",g.innerHTML="[responsive-image] > img, [data-responsive-image] {overflow: hidden; padding: 0; } [responsive-image] > img, [data-responsive-image] > img {width: 100%;}",g.innerHTML+="\n@keyframes element-queries { 0% { visibility: inherit; } }",document.getElementsByTagName("head")[0].appendChild(g),le=!0);for(var V=0,U=document.styleSheets.length;V<U;V++)try{document.styleSheets[V].href&&0===document.styleSheets[V].href.indexOf("file://")&&console.warn("CssElementQueries: unable to parse local css files, "+document.styleSheets[V].href),ie(document.styleSheets[V].cssRules||document.styleSheets[V].rules||document.styleSheets[V].cssText)}catch($){}!function H(){for(var V=F()("[data-responsive-image],[responsive-image]"),U=0,$=V.length;U<$;U++)z(V[U])}()},this.findElementQueriesElements=function(N){!function R(N){var V=F(N);for(var U in f)if(f.hasOwnProperty(U))for(var $=V(U,N),Y=0,oe=$.length;Y<oe;Y++)k($[Y],U)}(N)},this.update=function(){this.init()}};_.update=function(){_.instance.update()},_.detach=function(g){g.elementQueriesSetupInformation?(g.elementQueriesSensor.detach(),delete g.elementQueriesSetupInformation,delete g.elementQueriesSensor):g.resizeSensorInstance&&(g.resizeSensorInstance.detach(),delete g.resizeSensorInstance)},_.init=function(){_.instance||(_.instance=new _),_.instance.init()};return _.findElementQueriesElements=function(g){_.instance.findElementQueriesElements(g)},_.listen=function(){!function(g){if(document.addEventListener)document.addEventListener("DOMContentLoaded",g,!1);else if(/KHTML|WebKit|iCab/i.test(navigator.userAgent))var f=setInterval(function(){/loaded|complete/i.test(document.readyState)&&(g(),clearInterval(f))},10);else window.onload=g}(_.init)},_}.apply(L,D))&&(E.exports=w)},294:function(E,L,u){"use strict";var D;"undefined"!=typeof window&&window,void 0!==(D=function(){if("undefined"==typeof window)return null;var w="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),C=w.requestAnimationFrame||w.mozRequestAnimationFrame||w.webkitRequestAnimationFrame||function(p){return w.setTimeout(p,20)},_=w.cancelAnimationFrame||w.mozCancelAnimationFrame||w.webkitCancelAnimationFrame||function(p){w.clearTimeout(p)};function x(p,y){var S=Object.prototype.toString.call(p),k="[object Array]"===S||"[object NodeList]"===S||"[object HTMLCollection]"===S||"[object Object]"===S||"undefined"!=typeof jQuery&&p instanceof jQuery||"undefined"!=typeof Elements&&p instanceof Elements,O=0,F=p.length;if(k)for(;O<F;O++)y(p[O]);else y(p)}function g(p){if(!p.getBoundingClientRect)return{width:p.offsetWidth,height:p.offsetHeight};var y=p.getBoundingClientRect();return{width:Math.round(y.width),height:Math.round(y.height)}}function f(p,y){Object.keys(y).forEach(function(S){p.style[S]=y[S]})}var v=function(p,y){var S=0;function k(){var R,z,F=[];this.add=function(H){F.push(H)},this.call=function(H){for(R=0,z=F.length;R<z;R++)F[R].call(this,H)},this.remove=function(H){var X=[];for(R=0,z=F.length;R<z;R++)F[R]!==H&&X.push(F[R]);F=X},this.length=function(){return F.length}}function O(F,R){if(F){if(F.resizedAttached)return void F.resizedAttached.add(R);F.resizedAttached=new k,F.resizedAttached.add(R),F.resizeSensor=document.createElement("div"),F.resizeSensor.dir="ltr",F.resizeSensor.className="resize-sensor";var z={pointerEvents:"none",position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"},H={position:"absolute",left:"0px",top:"0px",transition:"0s"};f(F.resizeSensor,z);var X=document.createElement("div");X.className="resize-sensor-expand",f(X,z);var se=document.createElement("div");f(se,H),X.appendChild(se);var te=document.createElement("div");te.className="resize-sensor-shrink",f(te,z);var ie=document.createElement("div");f(ie,H),f(ie,{width:"200%",height:"200%"}),te.appendChild(ie),F.resizeSensor.appendChild(X),F.resizeSensor.appendChild(te),F.appendChild(F.resizeSensor);var le=window.getComputedStyle(F),N=le?le.getPropertyValue("position"):null;"absolute"!==N&&"relative"!==N&&"fixed"!==N&&"sticky"!==N&&(F.style.position="relative");var V=!1,U=0,$=g(F),Y=0,oe=0,de=!0;S=0;var J=function(){if(de){if(0===F.offsetWidth&&0===F.offsetHeight)return void(S||(S=C(function(){S=0,J()})));de=!1}var fe,Ee;Ee=F.offsetHeight,se.style.width=(fe=F.offsetWidth)+10+"px",se.style.height=Ee+10+"px",X.scrollLeft=fe+10,X.scrollTop=Ee+10,te.scrollLeft=fe+10,te.scrollTop=Ee+10};F.resizeSensor.resetSensor=J;var ce=function(){U=0,V&&(Y=$.width,oe=$.height,F.resizedAttached&&F.resizedAttached.call($))},pe=function(){$=g(F),(V=$.width!==Y||$.height!==oe)&&!U&&(U=C(ce)),J()},be=function(fe,Ee,Pe){fe.attachEvent?fe.attachEvent("on"+Ee,Pe):fe.addEventListener(Ee,Pe)};be(X,"scroll",pe),be(te,"scroll",pe),S=C(function(){S=0,J()})}}x(p,function(F){O(F,y)}),this.detach=function(F){S||(_(S),S=0),v.detach(p,F)},this.reset=function(){p.resizeSensor.resetSensor()}};if(v.reset=function(p){x(p,function(y){y.resizeSensor.resetSensor()})},v.detach=function(p,y){x(p,function(S){!S||S.resizedAttached&&"function"==typeof y&&(S.resizedAttached.remove(y),S.resizedAttached.length())||S.resizeSensor&&(S.contains(S.resizeSensor)&&S.removeChild(S.resizeSensor),delete S.resizeSensor,delete S.resizedAttached)})},"undefined"!=typeof MutationObserver){var m=new MutationObserver(function(p){for(var y in p)if(p.hasOwnProperty(y))for(var S=p[y].addedNodes,k=0;k<S.length;k++)S[k].resizeSensor&&v.reset(S[k])});document.addEventListener("DOMContentLoaded",function(p){m.observe(document.body,{childList:!0,subtree:!0})})}return v}.call(L,u,L,E))&&(E.exports=D)},9695:(E,L,u)=>{E.exports={graphlib:u(6456),layout:u(4850),debug:u(1914),util:{time:u(1510).time,notime:u(1510).notime},version:u(8126)}},2234:(E,L,u)=>{"use strict";var d=u(5760),D=u(7365);E.exports={run:function w(x){var g="greedy"===x.graph().acyclicer?D(x,function f(v){return function(m){return v.edge(m).weight}}(x)):function C(x){var g=[],f={},v={};return d.forEach(x.nodes(),function m(p){d.has(v,p)||(v[p]=!0,f[p]=!0,d.forEach(x.outEdges(p),function(y){d.has(f,y.w)?g.push(y):m(y.w)}),delete f[p])}),g}(x);d.forEach(g,function(v){var m=x.edge(v);x.removeEdge(v),m.forwardName=v.name,m.reversed=!0,x.setEdge(v.w,v.v,m,d.uniqueId("rev"))})},undo:function _(x){d.forEach(x.edges(),function(g){var f=x.edge(g);if(f.reversed){x.removeEdge(g);var v=f.forwardName;delete f.reversed,delete f.forwardName,x.setEdge(g.w,g.v,f,v)}})}}},9999:(E,L,u)=>{var d=u(5760),D=u(1510);function C(_,x,g,f,v,m){var y=v[x][m-1],S=D.addDummyNode(_,"border",{width:0,height:0,rank:m,borderType:x},g);v[x][m]=S,_.setParent(S,f),y&&_.setEdge(y,S,{weight:1})}E.exports=function w(_){d.forEach(_.children(),function x(g){var f=_.children(g),v=_.node(g);if(f.length&&d.forEach(f,x),d.has(v,"minRank")){v.borderLeft=[],v.borderRight=[];for(var m=v.minRank,p=v.maxRank+1;m<p;++m)C(_,"borderLeft","_bl",g,v,m),C(_,"borderRight","_br",g,v,m)}})}},3870:(E,L,u)=>{"use strict";var d=u(5760);function C(m){d.forEach(m.nodes(),function(p){_(m.node(p))}),d.forEach(m.edges(),function(p){_(m.edge(p))})}function _(m){var p=m.width;m.width=m.height,m.height=p}function g(m){m.y=-m.y}function v(m){var p=m.x;m.x=m.y,m.y=p}E.exports={adjust:function D(m){var p=m.graph().rankdir.toLowerCase();("lr"===p||"rl"===p)&&C(m)},undo:function w(m){var p=m.graph().rankdir.toLowerCase();("bt"===p||"rl"===p)&&function x(m){d.forEach(m.nodes(),function(p){g(m.node(p))}),d.forEach(m.edges(),function(p){var y=m.edge(p);d.forEach(y.points,g),d.has(y,"y")&&g(y)})}(m),("lr"===p||"rl"===p)&&(function f(m){d.forEach(m.nodes(),function(p){v(m.node(p))}),d.forEach(m.edges(),function(p){var y=m.edge(p);d.forEach(y.points,v),d.has(y,"x")&&v(y)})}(m),C(m))}}},3226:E=>{function L(){var D={};D._next=D._prev=D,this._sentinel=D}function u(D){D._prev._next=D._next,D._next._prev=D._prev,delete D._next,delete D._prev}function d(D,w){if("_next"!==D&&"_prev"!==D)return w}E.exports=L,L.prototype.dequeue=function(){var D=this._sentinel,w=D._prev;if(w!==D)return u(w),w},L.prototype.enqueue=function(D){var w=this._sentinel;D._prev&&D._next&&u(D),D._next=w._next,w._next._prev=D,w._next=D,D._prev=w},L.prototype.toString=function(){for(var D=[],w=this._sentinel,C=w._prev;C!==w;)D.push(JSON.stringify(C,d)),C=C._prev;return"["+D.join(", ")+"]"}},1914:(E,L,u)=>{var d=u(5760),D=u(1510),w=u(6456).Graph;E.exports={debugOrdering:function C(_){var x=D.buildLayerMatrix(_),g=new w({compound:!0,multigraph:!0}).setGraph({});return d.forEach(_.nodes(),function(f){g.setNode(f,{label:f}),g.setParent(f,"layer"+_.node(f).rank)}),d.forEach(_.edges(),function(f){g.setEdge(f.v,f.w,{},f.name)}),d.forEach(x,function(f,v){g.setNode("layer"+v,{rank:"same"}),d.reduce(f,function(p,y){return g.setEdge(p,y,{style:"invis"}),y})}),g}}},6456:(E,L,u)=>{var d;try{d=u(5510)}catch(D){}d||(d=window.graphlib),E.exports=d},7365:(E,L,u)=>{var d=u(5760),D=u(6456).Graph,w=u(3226);E.exports=function _(m,p){if(m.nodeCount()<=1)return[];var y=function f(m,p){var y=new D,S=0,k=0;d.forEach(m.nodes(),function(R){y.setNode(R,{v:R,in:0,out:0})}),d.forEach(m.edges(),function(R){var z=y.edge(R.v,R.w)||0,H=p(R);y.setEdge(R.v,R.w,z+H),k=Math.max(k,y.node(R.v).out+=H),S=Math.max(S,y.node(R.w).in+=H)});var O=d.range(k+S+3).map(function(){return new w}),F=S+1;return d.forEach(y.nodes(),function(R){v(O,F,y.node(R))}),{graph:y,buckets:O,zeroIdx:F}}(m,p||C),S=function x(m,p,y){for(var F,S=[],k=p[p.length-1],O=p[0];m.nodeCount();){for(;F=O.dequeue();)g(m,p,y,F);for(;F=k.dequeue();)g(m,p,y,F);if(m.nodeCount())for(var R=p.length-2;R>0;--R)if(F=p[R].dequeue()){S=S.concat(g(m,p,y,F,!0));break}}return S}(y.graph,y.buckets,y.zeroIdx);return d.flatten(d.map(S,function(k){return m.outEdges(k.v,k.w)}),!0)};var C=d.constant(1);function g(m,p,y,S,k){var O=k?[]:void 0;return d.forEach(m.inEdges(S.v),function(F){var R=m.edge(F),z=m.node(F.v);k&&O.push({v:F.v,w:F.w}),z.out-=R,v(p,y,z)}),d.forEach(m.outEdges(S.v),function(F){var R=m.edge(F),H=m.node(F.w);H.in-=R,v(p,y,H)}),m.removeNode(S.v),O}function v(m,p,y){y.out?y.in?m[y.out-y.in+p].enqueue(y):m[m.length-1].enqueue(y):m[0].enqueue(y)}},4850:(E,L,u)=>{"use strict";var d=u(5760),D=u(2234),w=u(1496),C=u(4124),_=u(1510).normalizeRanks,x=u(162),g=u(1510).removeEmptyRanks,f=u(1230),v=u(9999),m=u(3870),p=u(2974),y=u(8226),S=u(1510),k=u(6456).Graph;E.exports=function O(he,xe){var Te=xe&&xe.debugTiming?S.time:S.notime;Te("layout",function(){var Fe=Te(" buildLayoutGraph",function(){return function V(he){var xe=new k({multigraph:!0,compound:!0}),Te=st(he.graph());return xe.setGraph(d.merge({},H,Pe(Te,z),d.pick(Te,X))),d.forEach(he.nodes(),function(Fe){var Ke=st(he.node(Fe));xe.setNode(Fe,d.defaults(Pe(Ke,se),te)),xe.setParent(Fe,he.parent(Fe))}),d.forEach(he.edges(),function(Fe){var Ke=st(he.edge(Fe));xe.setEdge(Fe,d.merge({},le,Pe(Ke,ie),d.pick(Ke,N)))}),xe}(he)});Te(" runLayout",function(){!function F(he,xe){xe(" makeSpaceForEdgeLabels",function(){!function U(he){var xe=he.graph();xe.ranksep/=2,d.forEach(he.edges(),function(Te){var Fe=he.edge(Te);Fe.minlen*=2,"c"!==Fe.labelpos.toLowerCase()&&("TB"===xe.rankdir||"BT"===xe.rankdir?Fe.width+=Fe.labeloffset:Fe.height+=Fe.labeloffset)})}(he)}),xe(" removeSelfEdges",function(){!function be(he){d.forEach(he.edges(),function(xe){if(xe.v===xe.w){var Te=he.node(xe.v);Te.selfEdges||(Te.selfEdges=[]),Te.selfEdges.push({e:xe,label:he.edge(xe)}),he.removeEdge(xe)}})}(he)}),xe(" acyclic",function(){D.run(he)}),xe(" nestingGraph.run",function(){f.run(he)}),xe(" rank",function(){C(S.asNonCompoundGraph(he))}),xe(" injectEdgeLabelProxies",function(){!function $(he){d.forEach(he.edges(),function(xe){var Te=he.edge(xe);if(Te.width&&Te.height){var Fe=he.node(xe.v),Ke=he.node(xe.w);S.addDummyNode(he,"edge-proxy",{rank:(Ke.rank-Fe.rank)/2+Fe.rank,e:xe},"_ep")}})}(he)}),xe(" removeEmptyRanks",function(){g(he)}),xe(" nestingGraph.cleanup",function(){f.cleanup(he)}),xe(" normalizeRanks",function(){_(he)}),xe(" assignRankMinMax",function(){!function Y(he){var xe=0;d.forEach(he.nodes(),function(Te){var Fe=he.node(Te);Fe.borderTop&&(Fe.minRank=he.node(Fe.borderTop).rank,Fe.maxRank=he.node(Fe.borderBottom).rank,xe=d.max(xe,Fe.maxRank))}),he.graph().maxRank=xe}(he)}),xe(" removeEdgeLabelProxies",function(){!function oe(he){d.forEach(he.nodes(),function(xe){var Te=he.node(xe);"edge-proxy"===Te.dummy&&(he.edge(Te.e).labelRank=Te.rank,he.removeNode(xe))})}(he)}),xe(" normalize.run",function(){w.run(he)}),xe(" parentDummyChains",function(){x(he)}),xe(" addBorderSegments",function(){v(he)}),xe(" order",function(){p(he)}),xe(" insertSelfEdges",function(){!function fe(he){var xe=S.buildLayerMatrix(he);d.forEach(xe,function(Te){var Fe=0;d.forEach(Te,function(Ke,Xe){var ft=he.node(Ke);ft.order=Xe+Fe,d.forEach(ft.selfEdges,function(Kt){S.addDummyNode(he,"selfedge",{width:Kt.label.width,height:Kt.label.height,rank:ft.rank,order:Xe+ ++Fe,e:Kt.e,label:Kt.label},"_se")}),delete ft.selfEdges})})}(he)}),xe(" adjustCoordinateSystem",function(){m.adjust(he)}),xe(" position",function(){y(he)}),xe(" positionSelfEdges",function(){!function Ee(he){d.forEach(he.nodes(),function(xe){var Te=he.node(xe);if("selfedge"===Te.dummy){var Fe=he.node(Te.e.v),Ke=Fe.x+Fe.width/2,Xe=Fe.y,ft=Te.x-Ke,Kt=Fe.height/2;he.setEdge(Te.e,Te.label),he.removeNode(xe),Te.label.points=[{x:Ke+2*ft/3,y:Xe-Kt},{x:Ke+5*ft/6,y:Xe-Kt},{x:Ke+ft,y:Xe},{x:Ke+5*ft/6,y:Xe+Kt},{x:Ke+2*ft/3,y:Xe+Kt}],Te.label.x=Te.x,Te.label.y=Te.y}})}(he)}),xe(" removeBorderNodes",function(){!function pe(he){d.forEach(he.nodes(),function(xe){if(he.children(xe).length){var Te=he.node(xe),Fe=he.node(Te.borderTop),Ke=he.node(Te.borderBottom),Xe=he.node(d.last(Te.borderLeft)),ft=he.node(d.last(Te.borderRight));Te.width=Math.abs(ft.x-Xe.x),Te.height=Math.abs(Ke.y-Fe.y),Te.x=Xe.x+Te.width/2,Te.y=Fe.y+Te.height/2}}),d.forEach(he.nodes(),function(xe){"border"===he.node(xe).dummy&&he.removeNode(xe)})}(he)}),xe(" normalize.undo",function(){w.undo(he)}),xe(" fixupEdgeLabelCoords",function(){!function J(he){d.forEach(he.edges(),function(xe){var Te=he.edge(xe);if(d.has(Te,"x"))switch(("l"===Te.labelpos||"r"===Te.labelpos)&&(Te.width-=Te.labeloffset),Te.labelpos){case"l":Te.x-=Te.width/2+Te.labeloffset;break;case"r":Te.x+=Te.width/2+Te.labeloffset}})}(he)}),xe(" undoCoordinateSystem",function(){m.undo(he)}),xe(" translateGraph",function(){!function de(he){var xe=Number.POSITIVE_INFINITY,Te=0,Fe=Number.POSITIVE_INFINITY,Ke=0,Xe=he.graph(),ft=Xe.marginx||0,Kt=Xe.marginy||0;function Ki(vn){var Ln=vn.x,wt=vn.y,nr=vn.width,Ct=vn.height;xe=Math.min(xe,Ln-nr/2),Te=Math.max(Te,Ln+nr/2),Fe=Math.min(Fe,wt-Ct/2),Ke=Math.max(Ke,wt+Ct/2)}d.forEach(he.nodes(),function(vn){Ki(he.node(vn))}),d.forEach(he.edges(),function(vn){var Ln=he.edge(vn);d.has(Ln,"x")&&Ki(Ln)}),xe-=ft,Fe-=Kt,d.forEach(he.nodes(),function(vn){var Ln=he.node(vn);Ln.x-=xe,Ln.y-=Fe}),d.forEach(he.edges(),function(vn){var Ln=he.edge(vn);d.forEach(Ln.points,function(wt){wt.x-=xe,wt.y-=Fe}),d.has(Ln,"x")&&(Ln.x-=xe),d.has(Ln,"y")&&(Ln.y-=Fe)}),Xe.width=Te-xe+ft,Xe.height=Ke-Fe+Kt}(he)}),xe(" assignNodeIntersects",function(){!function ee(he){d.forEach(he.edges(),function(xe){var Xe,ft,Te=he.edge(xe),Fe=he.node(xe.v),Ke=he.node(xe.w);Te.points?(Xe=Te.points[0],ft=Te.points[Te.points.length-1]):(Te.points=[],Xe=Ke,ft=Fe),Te.points.unshift(S.intersectRect(Fe,Xe)),Te.points.push(S.intersectRect(Ke,ft))})}(he)}),xe(" reversePoints",function(){!function ce(he){d.forEach(he.edges(),function(xe){var Te=he.edge(xe);Te.reversed&&Te.points.reverse()})}(he)}),xe(" acyclic.undo",function(){D.undo(he)})}(Fe,Te)}),Te(" updateInputGraph",function(){!function R(he,xe){d.forEach(he.nodes(),function(Te){var Fe=he.node(Te),Ke=xe.node(Te);Fe&&(Fe.x=Ke.x,Fe.y=Ke.y,xe.children(Te).length&&(Fe.width=Ke.width,Fe.height=Ke.height))}),d.forEach(he.edges(),function(Te){var Fe=he.edge(Te),Ke=xe.edge(Te);Fe.points=Ke.points,d.has(Ke,"x")&&(Fe.x=Ke.x,Fe.y=Ke.y)}),he.graph().width=xe.graph().width,he.graph().height=xe.graph().height}(he,Fe)})})};var z=["nodesep","edgesep","ranksep","marginx","marginy"],H={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},X=["acyclicer","ranker","rankdir","align"],se=["width","height"],te={width:0,height:0},ie=["minlen","weight","width","height","labeloffset"],le={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},N=["labelpos"];function Pe(he,xe){return d.mapValues(d.pick(he,xe),Number)}function st(he){var xe={};return d.forEach(he,function(Te,Fe){xe[Fe.toLowerCase()]=Te}),xe}},5760:(E,L,u)=>{var d;try{d={cloneDeep:u(733),constant:u(6684),defaults:u(8800),each:u(5474),filter:u(5281),find:u(2516),flatten:u(2274),forEach:u(9851),forIn:u(1176),has:u(4842),isUndefined:u(4235),last:u(5809),map:u(9984),mapValues:u(203),max:u(8176),merge:u(567),min:u(9439),minBy:u(9525),now:u(1710),pick:u(6372),range:u(361),reduce:u(1337),sortBy:u(2906),uniqueId:u(1541),values:u(377),zipObject:u(1617)}}catch(D){}d||(d=window._),E.exports=d},1230:(E,L,u)=>{var d=u(5760),D=u(1510);function C(f,v,m,p,y,S,k){var O=f.children(k);if(O.length){var F=D.addBorderNode(f,"_bt"),R=D.addBorderNode(f,"_bb"),z=f.node(k);f.setParent(F,k),z.borderTop=F,f.setParent(R,k),z.borderBottom=R,d.forEach(O,function(H){C(f,v,m,p,y,S,H);var X=f.node(H),se=X.borderTop?X.borderTop:H,te=X.borderBottom?X.borderBottom:H,ie=X.borderTop?p:2*p,le=se!==te?1:y-S[k]+1;f.setEdge(F,se,{weight:ie,minlen:le,nestingEdge:!0}),f.setEdge(te,R,{weight:ie,minlen:le,nestingEdge:!0})}),f.parent(k)||f.setEdge(v,F,{weight:0,minlen:y+S[k]})}else k!==v&&f.setEdge(v,k,{weight:0,minlen:m})}E.exports={run:function w(f){var v=D.addDummyNode(f,"root",{},"_root"),m=function _(f){var v={};function m(p,y){var S=f.children(p);S&&S.length&&d.forEach(S,function(k){m(k,y+1)}),v[p]=y}return d.forEach(f.children(),function(p){m(p,1)}),v}(f),p=d.max(d.values(m))-1,y=2*p+1;f.graph().nestingRoot=v,d.forEach(f.edges(),function(k){f.edge(k).minlen*=y});var S=function x(f){return d.reduce(f.edges(),function(v,m){return v+f.edge(m).weight},0)}(f)+1;d.forEach(f.children(),function(k){C(f,v,y,S,p,m,k)}),f.graph().nodeRankFactor=y},cleanup:function g(f){var v=f.graph();f.removeNode(v.nestingRoot),delete v.nestingRoot,d.forEach(f.edges(),function(m){f.edge(m).nestingEdge&&f.removeEdge(m)})}}},1496:(E,L,u)=>{"use strict";var d=u(5760),D=u(1510);E.exports={run:function w(x){x.graph().dummyChains=[],d.forEach(x.edges(),function(g){!function C(x,g){var f=g.v,v=x.node(f).rank,m=g.w,p=x.node(m).rank,y=g.name,S=x.edge(g),k=S.labelRank;if(p!==v+1){var O,F,R;for(x.removeEdge(g),R=0,++v;v<p;++R,++v)S.points=[],O=D.addDummyNode(x,"edge",F={width:0,height:0,edgeLabel:S,edgeObj:g,rank:v},"_d"),v===k&&(F.width=S.width,F.height=S.height,F.dummy="edge-label",F.labelpos=S.labelpos),x.setEdge(f,O,{weight:S.weight},y),0===R&&x.graph().dummyChains.push(O),f=O;x.setEdge(f,m,{weight:S.weight},y)}}(x,g)})},undo:function _(x){d.forEach(x.graph().dummyChains,function(g){var m,f=x.node(g),v=f.edgeLabel;for(x.setEdge(f.edgeObj,v);f.dummy;)m=x.successors(g)[0],x.removeNode(g),v.points.push({x:f.x,y:f.y}),"edge-label"===f.dummy&&(v.x=f.x,v.y=f.y,v.width=f.width,v.height=f.height),f=x.node(g=m)})}}},3034:(E,L,u)=>{var d=u(5760);E.exports=function D(w,C,_){var g,x={};d.forEach(_,function(f){for(var m,p,v=w.parent(f);v;){if((m=w.parent(v))?(p=x[m],x[m]=v):(p=g,g=v),p&&p!==v)return void C.setEdge(p,v);v=m}})}},1323:(E,L,u)=>{var d=u(5760);E.exports=function D(w,C){return d.map(C,function(_){var x=w.inEdges(_);if(x.length){var g=d.reduce(x,function(f,v){var m=w.edge(v),p=w.node(v.v);return{sum:f.sum+m.weight*p.order,weight:f.weight+m.weight}},{sum:0,weight:0});return{v:_,barycenter:g.sum/g.weight,weight:g.weight}}return{v:_}})}},1686:(E,L,u)=>{var d=u(5760),D=u(6456).Graph;E.exports=function w(_,x,g){var f=function C(_){for(var x;_.hasNode(x=d.uniqueId("_root")););return x}(_),v=new D({compound:!0}).setGraph({root:f}).setDefaultNodeLabel(function(m){return _.node(m)});return d.forEach(_.nodes(),function(m){var p=_.node(m),y=_.parent(m);(p.rank===x||p.minRank<=x&&x<=p.maxRank)&&(v.setNode(m),v.setParent(m,y||f),d.forEach(_[g](m),function(S){var k=S.v===m?S.w:S.v,O=v.edge(k,m),F=d.isUndefined(O)?0:O.weight;v.setEdge(k,m,{weight:_.edge(S).weight+F})}),d.has(p,"minRank")&&v.setNode(m,{borderLeft:p.borderLeft[x],borderRight:p.borderRight[x]}))}),v}},8796:(E,L,u)=>{"use strict";var d=u(5760);function w(C,_,x){for(var g=d.zipObject(x,d.map(x,function(S,k){return k})),f=d.flatten(d.map(_,function(S){return d.sortBy(d.map(C.outEdges(S),function(k){return{pos:g[k.w],weight:C.edge(k).weight}}),"pos")}),!0),v=1;v<x.length;)v<<=1;var m=2*v-1;v-=1;var p=d.map(new Array(m),function(){return 0}),y=0;return d.forEach(f.forEach(function(S){var k=S.pos+v;p[k]+=S.weight;for(var O=0;k>0;)k%2&&(O+=p[k+1]),p[k=k-1>>1]+=S.weight;y+=S.weight*O})),y}E.exports=function D(C,_){for(var x=0,g=1;g<_.length;++g)x+=w(C,_[g-1],_[g]);return x}},2974:(E,L,u)=>{"use strict";var d=u(5760),D=u(9402),w=u(8796),C=u(1057),_=u(1686),x=u(3034),g=u(6456).Graph,f=u(1510);function m(S,k,O){return d.map(k,function(F){return _(S,F,O)})}function p(S,k){var O=new g;d.forEach(S,function(F){var R=F.graph().root,z=C(F,R,O,k);d.forEach(z.vs,function(H,X){F.node(H).order=X}),x(F,O,z.vs)})}function y(S,k){d.forEach(k,function(O){d.forEach(O,function(F,R){S.node(F).order=R})})}E.exports=function v(S){var k=f.maxRank(S),O=m(S,d.range(1,k+1),"inEdges"),F=m(S,d.range(k-1,-1,-1),"outEdges"),R=D(S);y(S,R);for(var H,z=Number.POSITIVE_INFINITY,X=0,se=0;se<4;++X,++se){p(X%2?O:F,X%4>=2),R=f.buildLayerMatrix(S);var te=w(S,R);te<z&&(se=0,H=d.cloneDeep(R),z=te)}y(S,H)}},9402:(E,L,u)=>{"use strict";var d=u(5760);E.exports=function D(w){var C={},_=d.filter(w.nodes(),function(m){return!w.children(m).length}),x=d.max(d.map(_,function(m){return w.node(m).rank})),g=d.map(d.range(x+1),function(){return[]}),v=d.sortBy(_,function(m){return w.node(m).rank});return d.forEach(v,function f(m){if(!d.has(C,m)){C[m]=!0;var p=w.node(m);g[p.rank].push(m),d.forEach(w.successors(m),f)}}),g}},3826:(E,L,u)=>{"use strict";var d=u(5760);E.exports=function D(_,x){var g={};return d.forEach(_,function(v,m){var p=g[v.v]={indegree:0,in:[],out:[],vs:[v.v],i:m};d.isUndefined(v.barycenter)||(p.barycenter=v.barycenter,p.weight=v.weight)}),d.forEach(x.edges(),function(v){var m=g[v.v],p=g[v.w];!d.isUndefined(m)&&!d.isUndefined(p)&&(p.indegree++,m.out.push(g[v.w]))}),function w(_){var x=[];function g(m){return function(p){p.merged||(d.isUndefined(p.barycenter)||d.isUndefined(m.barycenter)||p.barycenter>=m.barycenter)&&function C(_,x){var g=0,f=0;_.weight&&(g+=_.barycenter*_.weight,f+=_.weight),x.weight&&(g+=x.barycenter*x.weight,f+=x.weight),_.vs=x.vs.concat(_.vs),_.barycenter=g/f,_.weight=f,_.i=Math.min(x.i,_.i),x.merged=!0}(m,p)}}function f(m){return function(p){p.in.push(m),0==--p.indegree&&_.push(p)}}for(;_.length;){var v=_.pop();x.push(v),d.forEach(v.in.reverse(),g(v)),d.forEach(v.out,f(v))}return d.map(d.filter(x,function(m){return!m.merged}),function(m){return d.pick(m,["vs","i","barycenter","weight"])})}(d.filter(g,function(v){return!v.indegree}))}},1057:(E,L,u)=>{var d=u(5760),D=u(1323),w=u(3826),C=u(3803);E.exports=function _(f,v,m,p){var y=f.children(v),S=f.node(v),k=S?S.borderLeft:void 0,O=S?S.borderRight:void 0,F={};k&&(y=d.filter(y,function(te){return te!==k&&te!==O}));var R=D(f,y);d.forEach(R,function(te){if(f.children(te.v).length){var ie=_(f,te.v,m,p);F[te.v]=ie,d.has(ie,"barycenter")&&function g(f,v){d.isUndefined(f.barycenter)?(f.barycenter=v.barycenter,f.weight=v.weight):(f.barycenter=(f.barycenter*f.weight+v.barycenter*v.weight)/(f.weight+v.weight),f.weight+=v.weight)}(te,ie)}});var z=w(R,m);!function x(f,v){d.forEach(f,function(m){m.vs=d.flatten(m.vs.map(function(p){return v[p]?v[p].vs:p}),!0)})}(z,F);var H=C(z,p);if(k&&(H.vs=d.flatten([k,H.vs,O],!0),f.predecessors(k).length)){var X=f.node(f.predecessors(k)[0]),se=f.node(f.predecessors(O)[0]);d.has(H,"barycenter")||(H.barycenter=0,H.weight=0),H.barycenter=(H.barycenter*H.weight+X.order+se.order)/(H.weight+2),H.weight+=2}return H}},3803:(E,L,u)=>{var d=u(5760),D=u(1510);function C(x,g,f){for(var v;g.length&&(v=d.last(g)).i<=f;)g.pop(),x.push(v.vs),f++;return f}E.exports=function w(x,g){var f=D.partition(x,function(F){return d.has(F,"barycenter")}),v=f.lhs,m=d.sortBy(f.rhs,function(F){return-F.i}),p=[],y=0,S=0,k=0;v.sort(function _(x){return function(g,f){return g.barycenter<f.barycenter?-1:g.barycenter>f.barycenter?1:x?f.i-g.i:g.i-f.i}}(!!g)),k=C(p,m,k),d.forEach(v,function(F){k+=F.vs.length,p.push(F.vs),y+=F.barycenter*F.weight,S+=F.weight,k=C(p,m,k)});var O={vs:d.flatten(p,!0)};return S&&(O.barycenter=y/S,O.weight=S),O}},162:(E,L,u)=>{var d=u(5760);E.exports=function D(_){var x=function C(_){var x={},g=0;return d.forEach(_.children(),function f(v){var m=g;d.forEach(_.children(v),f),x[v]={low:m,lim:g++}}),x}(_);d.forEach(_.graph().dummyChains,function(g){for(var f=_.node(g),v=f.edgeObj,m=function w(_,x,g,f){var S,k,v=[],m=[],p=Math.min(x[g].low,x[f].low),y=Math.max(x[g].lim,x[f].lim);S=g;do{S=_.parent(S),v.push(S)}while(S&&(x[S].low>p||y>x[S].lim));for(k=S,S=f;(S=_.parent(S))!==k;)m.push(S);return{path:v.concat(m.reverse()),lca:k}}(_,x,v.v,v.w),p=m.path,y=m.lca,S=0,k=p[S],O=!0;g!==v.w;){if(f=_.node(g),O){for(;(k=p[S])!==y&&_.node(k).maxRank<f.rank;)S++;k===y&&(O=!1)}if(!O){for(;S<p.length-1&&_.node(k=p[S+1]).minRank<=f.rank;)S++;k=p[S]}_.setParent(g,k),g=_.successors(g)[0]}})}},4058:(E,L,u)=>{"use strict";var d=u(5760),D=u(6456).Graph,w=u(1510);function C(z,H){var X={};return d.reduce(H,function se(te,ie){var le=0,N=0,V=te.length,U=d.last(ie);return d.forEach(ie,function($,Y){var oe=function x(z,H){if(z.node(H).dummy)return d.find(z.predecessors(H),function(X){return z.node(X).dummy})}(z,$),de=oe?z.node(oe).order:V;(oe||$===U)&&(d.forEach(ie.slice(N,Y+1),function(ee){d.forEach(z.predecessors(ee),function(J){var ce=z.node(J),pe=ce.order;(pe<le||de<pe)&&(!ce.dummy||!z.node(ee).dummy)&&g(X,J,ee)})}),N=Y+1,le=de)}),ie}),X}function _(z,H){var X={};function se(ie,le,N,V,U){var $;d.forEach(d.range(le,N),function(Y){z.node($=ie[Y]).dummy&&d.forEach(z.predecessors($),function(oe){var de=z.node(oe);de.dummy&&(de.order<V||de.order>U)&&g(X,oe,$)})})}return d.reduce(H,function te(ie,le){var V,N=-1,U=0;return d.forEach(le,function($,Y){if("border"===z.node($).dummy){var oe=z.predecessors($);oe.length&&(V=z.node(oe[0]).order,se(le,U,Y,N,V),U=Y,N=V)}se(le,U,le.length,V,ie.length)}),le}),X}function g(z,H,X){if(H>X){var se=H;H=X,X=se}var te=z[H];te||(z[H]=te={}),te[X]=!0}function f(z,H,X){if(H>X){var se=H;H=X,X=se}return d.has(z[H],X)}function v(z,H,X,se){var te={},ie={},le={};return d.forEach(H,function(N){d.forEach(N,function(V,U){te[V]=V,ie[V]=V,le[V]=U})}),d.forEach(H,function(N){var V=-1;d.forEach(N,function(U){var $=se(U);if($.length)for(var Y=(($=d.sortBy($,function(J){return le[J]})).length-1)/2,oe=Math.floor(Y),de=Math.ceil(Y);oe<=de;++oe){var ee=$[oe];ie[U]===U&&V<le[ee]&&!f(X,U,ee)&&(ie[ee]=U,ie[U]=te[U]=te[ee],V=le[ee])}})}),{root:te,align:ie}}function m(z,H,X,se,te){var ie={},le=function p(z,H,X,se){var te=new D,ie=z.graph(),le=function F(z,H,X){return function(se,te,ie){var U,le=se.node(te),N=se.node(ie),V=0;if(V+=le.width/2,d.has(le,"labelpos"))switch(le.labelpos.toLowerCase()){case"l":U=-le.width/2;break;case"r":U=le.width/2}if(U&&(V+=X?U:-U),U=0,V+=(le.dummy?H:z)/2,V+=(N.dummy?H:z)/2,V+=N.width/2,d.has(N,"labelpos"))switch(N.labelpos.toLowerCase()){case"l":U=N.width/2;break;case"r":U=-N.width/2}return U&&(V+=X?U:-U),U=0,V}}(ie.nodesep,ie.edgesep,se);return d.forEach(H,function(N){var V;d.forEach(N,function(U){var $=X[U];if(te.setNode($),V){var Y=X[V],oe=te.edge(Y,$);te.setEdge(Y,$,Math.max(le(z,U,V),oe||0))}V=U})}),te}(z,H,X,te),N=te?"borderLeft":"borderRight";function V(Y,oe){for(var de=le.nodes(),ee=de.pop(),J={};ee;)J[ee]?Y(ee):(J[ee]=!0,de.push(ee),de=de.concat(oe(ee))),ee=de.pop()}return V(function U(Y){ie[Y]=le.inEdges(Y).reduce(function(oe,de){return Math.max(oe,ie[de.v]+le.edge(de))},0)},le.predecessors.bind(le)),V(function $(Y){var oe=le.outEdges(Y).reduce(function(ee,J){return Math.min(ee,ie[J.w]-le.edge(J))},Number.POSITIVE_INFINITY),de=z.node(Y);oe!==Number.POSITIVE_INFINITY&&de.borderType!==N&&(ie[Y]=Math.max(ie[Y],oe))},le.successors.bind(le)),d.forEach(se,function(Y){ie[Y]=ie[X[Y]]}),ie}function y(z,H){return d.minBy(d.values(H),function(X){var se=Number.NEGATIVE_INFINITY,te=Number.POSITIVE_INFINITY;return d.forIn(X,function(ie,le){var N=function R(z,H){return z.node(H).width}(z,le)/2;se=Math.max(ie+N,se),te=Math.min(ie-N,te)}),se-te})}function S(z,H){var X=d.values(H),se=d.min(X),te=d.max(X);d.forEach(["u","d"],function(ie){d.forEach(["l","r"],function(le){var U,N=ie+le,V=z[N];if(V!==H){var $=d.values(V);(U="l"===le?se-d.min($):te-d.max($))&&(z[N]=d.mapValues(V,function(Y){return Y+U}))}})})}function k(z,H){return d.mapValues(z.ul,function(X,se){if(H)return z[H.toLowerCase()][se];var te=d.sortBy(d.map(z,se));return(te[1]+te[2])/2})}E.exports={positionX:function O(z){var te,H=w.buildLayerMatrix(z),X=d.merge(C(z,H),_(z,H)),se={};d.forEach(["u","d"],function(le){te="u"===le?H:d.values(H).reverse(),d.forEach(["l","r"],function(N){"r"===N&&(te=d.map(te,function(Y){return d.values(Y).reverse()}));var V=("u"===le?z.predecessors:z.successors).bind(z),U=v(0,te,X,V),$=m(z,te,U.root,U.align,"r"===N);"r"===N&&($=d.mapValues($,function(Y){return-Y})),se[le+N]=$})});var ie=y(z,se);return S(se,ie),k(se,z.graph().align)},findType1Conflicts:C,findType2Conflicts:_,addConflict:g,hasConflict:f,verticalAlignment:v,horizontalCompaction:m,alignCoordinates:S,findSmallestWidthAlignment:y,balance:k}},8226:(E,L,u)=>{"use strict";var d=u(5760),D=u(1510),w=u(4058).positionX;E.exports=function C(x){(function _(x){var g=D.buildLayerMatrix(x),f=x.graph().ranksep,v=0;d.forEach(g,function(m){var p=d.max(d.map(m,function(y){return x.node(y).height}));d.forEach(m,function(y){x.node(y).y=v+p/2}),v+=p+f})})(x=D.asNonCompoundGraph(x)),d.forEach(w(x),function(g,f){x.node(f).x=g})}},6632:(E,L,u)=>{"use strict";var d=u(5760),D=u(6456).Graph,w=u(1916).slack;function _(f,v){return d.forEach(f.nodes(),function m(p){d.forEach(v.nodeEdges(p),function(y){var S=y.v,k=p===S?y.w:S;!f.hasNode(k)&&!w(v,y)&&(f.setNode(k,{}),f.setEdge(p,k,{}),m(k))})}),f.nodeCount()}function x(f,v){return d.minBy(v.edges(),function(m){if(f.hasNode(m.v)!==f.hasNode(m.w))return w(v,m)})}function g(f,v,m){d.forEach(f.nodes(),function(p){v.node(p).rank+=m})}E.exports=function C(f){var y,S,v=new D({directed:!1}),m=f.nodes()[0],p=f.nodeCount();for(v.setNode(m,{});_(v,f)<p;)y=x(v,f),S=v.hasNode(y.v)?w(f,y):-w(f,y),g(v,f,S);return v}},4124:(E,L,u)=>{"use strict";var D=u(1916).longestPath,w=u(6632),C=u(3804);E.exports=function _(v){switch(v.graph().ranker){case"network-simplex":default:!function f(v){C(v)}(v);break;case"tight-tree":!function g(v){D(v),w(v)}(v);break;case"longest-path":x(v)}};var x=D},3804:(E,L,u)=>{"use strict";var d=u(5760),D=u(6632),w=u(1916).slack,C=u(1916).longestPath,_=u(6456).alg.preorder,x=u(6456).alg.postorder,g=u(1510).simplify;function f(X){X=g(X),C(X);var te,se=D(X);for(y(se),v(se,X);te=k(se);)F(se,X,te,O(se,X,te))}function v(X,se){var te=x(X,X.nodes());te=te.slice(0,te.length-1),d.forEach(te,function(ie){!function m(X,se,te){var ie=X.node(te);X.edge(te,ie.parent).cutvalue=p(X,se,te)}(X,se,ie)})}function p(X,se,te){var le=X.node(te).parent,N=!0,V=se.edge(te,le),U=0;return V||(N=!1,V=se.edge(le,te)),U=V.weight,d.forEach(se.nodeEdges(te),function($){var Y=$.v===te,oe=Y?$.w:$.v;if(oe!==le){var de=Y===N,ee=se.edge($).weight;if(U+=de?ee:-ee,function z(X,se,te){return X.hasEdge(se,te)}(X,te,oe)){var J=X.edge(te,oe).cutvalue;U+=de?-J:J}}}),U}function y(X,se){arguments.length<2&&(se=X.nodes()[0]),S(X,{},1,se)}function S(X,se,te,ie,le){var N=te,V=X.node(ie);return se[ie]=!0,d.forEach(X.neighbors(ie),function(U){d.has(se,U)||(te=S(X,se,te,U,ie))}),V.low=N,V.lim=te++,le?V.parent=le:delete V.parent,te}function k(X){return d.find(X.edges(),function(se){return X.edge(se).cutvalue<0})}function O(X,se,te){var ie=te.v,le=te.w;se.hasEdge(ie,le)||(ie=te.w,le=te.v);var N=X.node(ie),V=X.node(le),U=N,$=!1;N.lim>V.lim&&(U=V,$=!0);var Y=d.filter(se.edges(),function(oe){return $===H(0,X.node(oe.v),U)&&$!==H(0,X.node(oe.w),U)});return d.minBy(Y,function(oe){return w(se,oe)})}function F(X,se,te,ie){X.removeEdge(te.v,te.w),X.setEdge(ie.v,ie.w,{}),y(X),v(X,se),function R(X,se){var te=d.find(X.nodes(),function(le){return!se.node(le).parent}),ie=_(X,te);ie=ie.slice(1),d.forEach(ie,function(le){var N=X.node(le).parent,V=se.edge(le,N),U=!1;V||(V=se.edge(N,le),U=!0),se.node(le).rank=se.node(N).rank+(U?V.minlen:-V.minlen)})}(X,se)}function H(X,se,te){return te.low<=se.lim&&se.lim<=te.lim}E.exports=f,f.initLowLimValues=y,f.initCutValues=v,f.calcCutValue=p,f.leaveEdge=k,f.enterEdge=O,f.exchangeEdges=F},1916:(E,L,u)=>{"use strict";var d=u(5760);E.exports={longestPath:function D(C){var _={};d.forEach(C.sources(),function x(g){var f=C.node(g);if(d.has(_,g))return f.rank;_[g]=!0;var v=d.min(d.map(C.outEdges(g),function(m){return x(m.w)-C.edge(m).minlen}));return(v===Number.POSITIVE_INFINITY||null==v)&&(v=0),f.rank=v})},slack:function w(C,_){return C.node(_.w).rank-C.node(_.v).rank-C.edge(_).minlen}}},1510:(E,L,u)=>{"use strict";var d=u(5760),D=u(6456).Graph;function w(R,z,H,X){var se;do{se=d.uniqueId(X)}while(R.hasNode(se));return H.dummy=z,R.setNode(se,H),se}function S(R){return d.max(d.map(R.nodes(),function(z){var H=R.node(z).rank;if(!d.isUndefined(H))return H}))}E.exports={addDummyNode:w,simplify:function C(R){var z=(new D).setGraph(R.graph());return d.forEach(R.nodes(),function(H){z.setNode(H,R.node(H))}),d.forEach(R.edges(),function(H){var X=z.edge(H.v,H.w)||{weight:0,minlen:1},se=R.edge(H);z.setEdge(H.v,H.w,{weight:X.weight+se.weight,minlen:Math.max(X.minlen,se.minlen)})}),z},asNonCompoundGraph:function _(R){var z=new D({multigraph:R.isMultigraph()}).setGraph(R.graph());return d.forEach(R.nodes(),function(H){R.children(H).length||z.setNode(H,R.node(H))}),d.forEach(R.edges(),function(H){z.setEdge(H,R.edge(H))}),z},successorWeights:function x(R){var z=d.map(R.nodes(),function(H){var X={};return d.forEach(R.outEdges(H),function(se){X[se.w]=(X[se.w]||0)+R.edge(se).weight}),X});return d.zipObject(R.nodes(),z)},predecessorWeights:function g(R){var z=d.map(R.nodes(),function(H){var X={};return d.forEach(R.inEdges(H),function(se){X[se.v]=(X[se.v]||0)+R.edge(se).weight}),X});return d.zipObject(R.nodes(),z)},intersectRect:function f(R,z){var N,V,H=R.x,X=R.y,se=z.x-H,te=z.y-X,ie=R.width/2,le=R.height/2;if(!se&&!te)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(te)*ie>Math.abs(se)*le?(te<0&&(le=-le),N=le*se/te,V=le):(se<0&&(ie=-ie),N=ie,V=ie*te/se),{x:H+N,y:X+V}},buildLayerMatrix:function v(R){var z=d.map(d.range(S(R)+1),function(){return[]});return d.forEach(R.nodes(),function(H){var X=R.node(H),se=X.rank;d.isUndefined(se)||(z[se][X.order]=H)}),z},normalizeRanks:function m(R){var z=d.min(d.map(R.nodes(),function(H){return R.node(H).rank}));d.forEach(R.nodes(),function(H){var X=R.node(H);d.has(X,"rank")&&(X.rank-=z)})},removeEmptyRanks:function p(R){var z=d.min(d.map(R.nodes(),function(te){return R.node(te).rank})),H=[];d.forEach(R.nodes(),function(te){var ie=R.node(te).rank-z;H[ie]||(H[ie]=[]),H[ie].push(te)});var X=0,se=R.graph().nodeRankFactor;d.forEach(H,function(te,ie){d.isUndefined(te)&&ie%se!=0?--X:X&&d.forEach(te,function(le){R.node(le).rank+=X})})},addBorderNode:function y(R,z,H,X){var se={width:0,height:0};return arguments.length>=4&&(se.rank=H,se.order=X),w(R,"border",se,z)},maxRank:S,partition:function k(R,z){var H={lhs:[],rhs:[]};return d.forEach(R,function(X){z(X)?H.lhs.push(X):H.rhs.push(X)}),H},time:function O(R,z){var H=d.now();try{return z()}finally{console.log(R+" time: "+(d.now()-H)+"ms")}},notime:function F(R,z){return z()}}},8126:E=>{E.exports="0.8.5"},5510:(E,L,u)=>{var d=u(1838);E.exports={Graph:d.Graph,json:u(1088),alg:u(3430),version:d.version}},6730:(E,L,u)=>{var d=u(9138);E.exports=function D(w){var x,C={},_=[];function g(f){d.has(C,f)||(C[f]=!0,x.push(f),d.each(w.successors(f),g),d.each(w.predecessors(f),g))}return d.each(w.nodes(),function(f){x=[],g(f),x.length&&_.push(x)}),_}},2163:(E,L,u)=>{var d=u(9138);function w(C,_,x,g,f,v){d.has(g,_)||(g[_]=!0,x||v.push(_),d.each(f(_),function(m){w(C,m,x,g,f,v)}),x&&v.push(_))}E.exports=function D(C,_,x){d.isArray(_)||(_=[_]);var g=(C.isDirected()?C.successors:C.neighbors).bind(C),f=[],v={};return d.each(_,function(m){if(!C.hasNode(m))throw new Error("Graph does not have node: "+m);w(C,m,"post"===x,v,g,f)}),f}},5668:(E,L,u)=>{var d=u(1718),D=u(9138);E.exports=function w(C,_,x){return D.transform(C.nodes(),function(g,f){g[f]=d(C,f,_,x)},{})}},1718:(E,L,u)=>{var d=u(9138),D=u(1919);E.exports=function C(x,g,f,v){return function _(x,g,f,v){var y,S,m={},p=new D,k=function(O){var F=O.v!==y?O.v:O.w,R=m[F],z=f(O),H=S.distance+z;if(z<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+O+" Weight: "+z);H<R.distance&&(R.distance=H,R.predecessor=y,p.decrease(F,H))};for(x.nodes().forEach(function(O){var F=O===g?0:Number.POSITIVE_INFINITY;m[O]={distance:F},p.add(O,F)});p.size()>0&&(y=p.removeMin(),(S=m[y]).distance!==Number.POSITIVE_INFINITY);)v(y).forEach(k);return m}(x,String(g),f||w,v||function(m){return x.outEdges(m)})};var w=d.constant(1)},9611:(E,L,u)=>{var d=u(9138),D=u(3585);E.exports=function w(C){return d.filter(D(C),function(_){return _.length>1||1===_.length&&C.hasEdge(_[0],_[0])})}},2881:(E,L,u)=>{var d=u(9138);E.exports=function w(_,x,g){return function C(_,x,g){var f={},v=_.nodes();return v.forEach(function(m){f[m]={},f[m][m]={distance:0},v.forEach(function(p){m!==p&&(f[m][p]={distance:Number.POSITIVE_INFINITY})}),g(m).forEach(function(p){var y=p.v===m?p.w:p.v,S=x(p);f[m][y]={distance:S,predecessor:m}})}),v.forEach(function(m){var p=f[m];v.forEach(function(y){var S=f[y];v.forEach(function(k){var F=p[k],R=S[k],z=S[m].distance+F.distance;z<R.distance&&(R.distance=z,R.predecessor=F.predecessor)})})}),f}(_,x||D,g||function(f){return _.outEdges(f)})};var D=d.constant(1)},3430:(E,L,u)=>{E.exports={components:u(6730),dijkstra:u(1718),dijkstraAll:u(5668),findCycles:u(9611),floydWarshall:u(2881),isAcyclic:u(6693),postorder:u(6694),preorder:u(5330),prim:u(6823),tarjan:u(3585),topsort:u(2180)}},6693:(E,L,u)=>{var d=u(2180);E.exports=function D(w){try{d(w)}catch(C){if(C instanceof d.CycleException)return!1;throw C}return!0}},6694:(E,L,u)=>{var d=u(2163);E.exports=function D(w,C){return d(w,C,"post")}},5330:(E,L,u)=>{var d=u(2163);E.exports=function D(w,C){return d(w,C,"pre")}},6823:(E,L,u)=>{var d=u(9138),D=u(6568),w=u(1919);E.exports=function C(_,x){var m,g=new D,f={},v=new w;function p(S){var k=S.v===m?S.w:S.v,O=v.priority(k);if(void 0!==O){var F=x(S);F<O&&(f[k]=m,v.decrease(k,F))}}if(0===_.nodeCount())return g;d.each(_.nodes(),function(S){v.add(S,Number.POSITIVE_INFINITY),g.setNode(S)}),v.decrease(_.nodes()[0],0);for(var y=!1;v.size()>0;){if(m=v.removeMin(),d.has(f,m))g.setEdge(m,f[m]);else{if(y)throw new Error("Input graph is not connected: "+_);y=!0}_.nodeEdges(m).forEach(p)}return g}},3585:(E,L,u)=>{var d=u(9138);E.exports=function D(w){var C=0,_=[],x={},g=[];function f(v){var m=x[v]={onStack:!0,lowlink:C,index:C++};if(_.push(v),w.successors(v).forEach(function(S){d.has(x,S)?x[S].onStack&&(m.lowlink=Math.min(m.lowlink,x[S].index)):(f(S),m.lowlink=Math.min(m.lowlink,x[S].lowlink))}),m.lowlink===m.index){var y,p=[];do{y=_.pop(),x[y].onStack=!1,p.push(y)}while(v!==y);g.push(p)}}return w.nodes().forEach(function(v){d.has(x,v)||f(v)}),g}},2180:(E,L,u)=>{var d=u(9138);function D(C){var _={},x={},g=[];if(d.each(C.sinks(),function f(v){if(d.has(x,v))throw new w;d.has(_,v)||(x[v]=!0,_[v]=!0,d.each(C.predecessors(v),f),delete x[v],g.push(v))}),d.size(_)!==C.nodeCount())throw new w;return g}function w(){}E.exports=D,D.CycleException=w,w.prototype=new Error},1919:(E,L,u)=>{var d=u(9138);function D(){this._arr=[],this._keyIndices={}}E.exports=D,D.prototype.size=function(){return this._arr.length},D.prototype.keys=function(){return this._arr.map(function(w){return w.key})},D.prototype.has=function(w){return d.has(this._keyIndices,w)},D.prototype.priority=function(w){var C=this._keyIndices[w];if(void 0!==C)return this._arr[C].priority},D.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},D.prototype.add=function(w,C){var _=this._keyIndices;if(w=String(w),!d.has(_,w)){var x=this._arr,g=x.length;return _[w]=g,x.push({key:w,priority:C}),this._decrease(g),!0}return!1},D.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var w=this._arr.pop();return delete this._keyIndices[w.key],this._heapify(0),w.key},D.prototype.decrease=function(w,C){var _=this._keyIndices[w];if(C>this._arr[_].priority)throw new Error("New priority is greater than current priority. Key: "+w+" Old: "+this._arr[_].priority+" New: "+C);this._arr[_].priority=C,this._decrease(_)},D.prototype._heapify=function(w){var C=this._arr,_=2*w,x=_+1,g=w;_<C.length&&(g=C[_].priority<C[g].priority?_:g,x<C.length&&(g=C[x].priority<C[g].priority?x:g),g!==w&&(this._swap(w,g),this._heapify(g)))},D.prototype._decrease=function(w){for(var x,C=this._arr,_=C[w].priority;0!==w&&!(C[x=w>>1].priority<_);)this._swap(w,x),w=x},D.prototype._swap=function(w,C){var _=this._arr,x=this._keyIndices,g=_[w],f=_[C];_[w]=f,_[C]=g,x[f.key]=w,x[g.key]=C}},6568:(E,L,u)=>{"use strict";var d=u(9138);E.exports=_;var w="\0";function _(p){this._isDirected=!d.has(p,"directed")||p.directed,this._isMultigraph=!!d.has(p,"multigraph")&&p.multigraph,this._isCompound=!!d.has(p,"compound")&&p.compound,this._label=void 0,this._defaultNodeLabelFn=d.constant(void 0),this._defaultEdgeLabelFn=d.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[w]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function x(p,y){p[y]?p[y]++:p[y]=1}function g(p,y){--p[y]||delete p[y]}function f(p,y,S,k){var O=""+y,F=""+S;if(!p&&O>F){var R=O;O=F,F=R}return O+"\x01"+F+"\x01"+(d.isUndefined(k)?"\0":k)}function v(p,y,S,k){var O=""+y,F=""+S;if(!p&&O>F){var R=O;O=F,F=R}var z={v:O,w:F};return k&&(z.name=k),z}function m(p,y){return f(p,y.v,y.w,y.name)}_.prototype._nodeCount=0,_.prototype._edgeCount=0,_.prototype.isDirected=function(){return this._isDirected},_.prototype.isMultigraph=function(){return this._isMultigraph},_.prototype.isCompound=function(){return this._isCompound},_.prototype.setGraph=function(p){return this._label=p,this},_.prototype.graph=function(){return this._label},_.prototype.setDefaultNodeLabel=function(p){return d.isFunction(p)||(p=d.constant(p)),this._defaultNodeLabelFn=p,this},_.prototype.nodeCount=function(){return this._nodeCount},_.prototype.nodes=function(){return d.keys(this._nodes)},_.prototype.sources=function(){var p=this;return d.filter(this.nodes(),function(y){return d.isEmpty(p._in[y])})},_.prototype.sinks=function(){var p=this;return d.filter(this.nodes(),function(y){return d.isEmpty(p._out[y])})},_.prototype.setNodes=function(p,y){var S=arguments,k=this;return d.each(p,function(O){S.length>1?k.setNode(O,y):k.setNode(O)}),this},_.prototype.setNode=function(p,y){return d.has(this._nodes,p)?(arguments.length>1&&(this._nodes[p]=y),this):(this._nodes[p]=arguments.length>1?y:this._defaultNodeLabelFn(p),this._isCompound&&(this._parent[p]=w,this._children[p]={},this._children[w][p]=!0),this._in[p]={},this._preds[p]={},this._out[p]={},this._sucs[p]={},++this._nodeCount,this)},_.prototype.node=function(p){return this._nodes[p]},_.prototype.hasNode=function(p){return d.has(this._nodes,p)},_.prototype.removeNode=function(p){var y=this;if(d.has(this._nodes,p)){var S=function(k){y.removeEdge(y._edgeObjs[k])};delete this._nodes[p],this._isCompound&&(this._removeFromParentsChildList(p),delete this._parent[p],d.each(this.children(p),function(k){y.setParent(k)}),delete this._children[p]),d.each(d.keys(this._in[p]),S),delete this._in[p],delete this._preds[p],d.each(d.keys(this._out[p]),S),delete this._out[p],delete this._sucs[p],--this._nodeCount}return this},_.prototype.setParent=function(p,y){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(d.isUndefined(y))y=w;else{for(var S=y+="";!d.isUndefined(S);S=this.parent(S))if(S===p)throw new Error("Setting "+y+" as parent of "+p+" would create a cycle");this.setNode(y)}return this.setNode(p),this._removeFromParentsChildList(p),this._parent[p]=y,this._children[y][p]=!0,this},_.prototype._removeFromParentsChildList=function(p){delete this._children[this._parent[p]][p]},_.prototype.parent=function(p){if(this._isCompound){var y=this._parent[p];if(y!==w)return y}},_.prototype.children=function(p){if(d.isUndefined(p)&&(p=w),this._isCompound){var y=this._children[p];if(y)return d.keys(y)}else{if(p===w)return this.nodes();if(this.hasNode(p))return[]}},_.prototype.predecessors=function(p){var y=this._preds[p];if(y)return d.keys(y)},_.prototype.successors=function(p){var y=this._sucs[p];if(y)return d.keys(y)},_.prototype.neighbors=function(p){var y=this.predecessors(p);if(y)return d.union(y,this.successors(p))},_.prototype.isLeaf=function(p){return 0===(this.isDirected()?this.successors(p):this.neighbors(p)).length},_.prototype.filterNodes=function(p){var y=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});y.setGraph(this.graph());var S=this;d.each(this._nodes,function(F,R){p(R)&&y.setNode(R,F)}),d.each(this._edgeObjs,function(F){y.hasNode(F.v)&&y.hasNode(F.w)&&y.setEdge(F,S.edge(F))});var k={};function O(F){var R=S.parent(F);return void 0===R||y.hasNode(R)?(k[F]=R,R):R in k?k[R]:O(R)}return this._isCompound&&d.each(y.nodes(),function(F){y.setParent(F,O(F))}),y},_.prototype.setDefaultEdgeLabel=function(p){return d.isFunction(p)||(p=d.constant(p)),this._defaultEdgeLabelFn=p,this},_.prototype.edgeCount=function(){return this._edgeCount},_.prototype.edges=function(){return d.values(this._edgeObjs)},_.prototype.setPath=function(p,y){var S=this,k=arguments;return d.reduce(p,function(O,F){return k.length>1?S.setEdge(O,F,y):S.setEdge(O,F),F}),this},_.prototype.setEdge=function(){var p,y,S,k,O=!1,F=arguments[0];"object"==typeof F&&null!==F&&"v"in F?(p=F.v,y=F.w,S=F.name,2===arguments.length&&(k=arguments[1],O=!0)):(p=F,y=arguments[1],S=arguments[3],arguments.length>2&&(k=arguments[2],O=!0)),p=""+p,y=""+y,d.isUndefined(S)||(S=""+S);var R=f(this._isDirected,p,y,S);if(d.has(this._edgeLabels,R))return O&&(this._edgeLabels[R]=k),this;if(!d.isUndefined(S)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(p),this.setNode(y),this._edgeLabels[R]=O?k:this._defaultEdgeLabelFn(p,y,S);var z=v(this._isDirected,p,y,S);return p=z.v,y=z.w,Object.freeze(z),this._edgeObjs[R]=z,x(this._preds[y],p),x(this._sucs[p],y),this._in[y][R]=z,this._out[p][R]=z,this._edgeCount++,this},_.prototype.edge=function(p,y,S){var k=1===arguments.length?m(this._isDirected,arguments[0]):f(this._isDirected,p,y,S);return this._edgeLabels[k]},_.prototype.hasEdge=function(p,y,S){var k=1===arguments.length?m(this._isDirected,arguments[0]):f(this._isDirected,p,y,S);return d.has(this._edgeLabels,k)},_.prototype.removeEdge=function(p,y,S){var k=1===arguments.length?m(this._isDirected,arguments[0]):f(this._isDirected,p,y,S),O=this._edgeObjs[k];return O&&(p=O.v,y=O.w,delete this._edgeLabels[k],delete this._edgeObjs[k],g(this._preds[y],p),g(this._sucs[p],y),delete this._in[y][k],delete this._out[p][k],this._edgeCount--),this},_.prototype.inEdges=function(p,y){var S=this._in[p];if(S){var k=d.values(S);return y?d.filter(k,function(O){return O.v===y}):k}},_.prototype.outEdges=function(p,y){var S=this._out[p];if(S){var k=d.values(S);return y?d.filter(k,function(O){return O.w===y}):k}},_.prototype.nodeEdges=function(p,y){var S=this.inEdges(p,y);if(S)return S.concat(this.outEdges(p,y))}},1838:(E,L,u)=>{E.exports={Graph:u(6568),version:u(5089)}},1088:(E,L,u)=>{var d=u(9138),D=u(6568);function C(g){return d.map(g.nodes(),function(f){var v=g.node(f),m=g.parent(f),p={v:f};return d.isUndefined(v)||(p.value=v),d.isUndefined(m)||(p.parent=m),p})}function _(g){return d.map(g.edges(),function(f){var v=g.edge(f),m={v:f.v,w:f.w};return d.isUndefined(f.name)||(m.name=f.name),d.isUndefined(v)||(m.value=v),m})}E.exports={write:function w(g){var f={options:{directed:g.isDirected(),multigraph:g.isMultigraph(),compound:g.isCompound()},nodes:C(g),edges:_(g)};return d.isUndefined(g.graph())||(f.value=d.clone(g.graph())),f},read:function x(g){var f=new D(g.options).setGraph(g.value);return d.each(g.nodes,function(v){f.setNode(v.v,v.value),v.parent&&f.setParent(v.v,v.parent)}),d.each(g.edges,function(v){f.setEdge({v:v.v,w:v.w,name:v.name},v.value)}),f}}},9138:(E,L,u)=>{var d;try{d={clone:u(1094),constant:u(6684),each:u(5474),filter:u(5281),has:u(4842),isArray:u(1503),isEmpty:u(1973),isFunction:u(5946),isUndefined:u(4235),keys:u(118),map:u(9984),reduce:u(1337),size:u(5637),transform:u(9416),union:u(8921),values:u(377)}}catch(D){}d||(d=window._),E.exports=d},5089:E=>{E.exports="2.1.8"},7244:(E,L,u)=>{var w=u(3436)(u(2119),"DataView");E.exports=w},4994:(E,L,u)=>{var d=u(4312),D=u(6421),w=u(5764),C=u(8685),_=u(6676);function x(g){var f=-1,v=null==g?0:g.length;for(this.clear();++f<v;){var m=g[f];this.set(m[0],m[1])}}x.prototype.clear=d,x.prototype.delete=D,x.prototype.get=w,x.prototype.has=C,x.prototype.set=_,E.exports=x},9215:(E,L,u)=>{var d=u(1840),D=u(4378),w=u(4981),C=u(7343),_=u(8895);function x(g){var f=-1,v=null==g?0:g.length;for(this.clear();++f<v;){var m=g[f];this.set(m[0],m[1])}}x.prototype.clear=d,x.prototype.delete=D,x.prototype.get=w,x.prototype.has=C,x.prototype.set=_,E.exports=x},1501:(E,L,u)=>{var w=u(3436)(u(2119),"Map");E.exports=w},9850:(E,L,u)=>{var d=u(638),D=u(1184),w=u(866),C=u(3771),_=u(1772);function x(g){var f=-1,v=null==g?0:g.length;for(this.clear();++f<v;){var m=g[f];this.set(m[0],m[1])}}x.prototype.clear=d,x.prototype.delete=D,x.prototype.get=w,x.prototype.has=C,x.prototype.set=_,E.exports=x},4267:(E,L,u)=>{var w=u(3436)(u(2119),"Promise");E.exports=w},6323:(E,L,u)=>{var w=u(3436)(u(2119),"Set");E.exports=w},8849:(E,L,u)=>{var d=u(9850),D=u(4600),w=u(1387);function C(_){var x=-1,g=null==_?0:_.length;for(this.__data__=new d;++x<g;)this.add(_[x])}C.prototype.add=C.prototype.push=D,C.prototype.has=w,E.exports=C},2858:(E,L,u)=>{var d=u(9215),D=u(3720),w=u(4410),C=u(5576),_=u(2247),x=u(1585);function g(f){var v=this.__data__=new d(f);this.size=v.size}g.prototype.clear=D,g.prototype.delete=w,g.prototype.get=C,g.prototype.has=_,g.prototype.set=x,E.exports=g},443:(E,L,u)=>{var d=u(2119);E.exports=d.Symbol},3457:(E,L,u)=>{var d=u(2119);E.exports=d.Uint8Array},4243:(E,L,u)=>{var w=u(3436)(u(2119),"WeakMap");E.exports=w},6999:E=>{E.exports=function L(u,d,D){switch(D.length){case 0:return u.call(d);case 1:return u.call(d,D[0]);case 2:return u.call(d,D[0],D[1]);case 3:return u.call(d,D[0],D[1],D[2])}return u.apply(d,D)}},6837:E=>{E.exports=function L(u,d){for(var D=-1,w=null==u?0:u.length;++D<w&&!1!==d(u[D],D,u););return u}},9779:E=>{E.exports=function L(u,d){for(var D=-1,w=null==u?0:u.length,C=0,_=[];++D<w;){var x=u[D];d(x,D,u)&&(_[C++]=x)}return _}},1253:(E,L,u)=>{var d=u(4164);E.exports=function D(w,C){return!(null==w||!w.length)&&d(w,C,0)>-1}},177:E=>{E.exports=function L(u,d,D){for(var w=-1,C=null==u?0:u.length;++w<C;)if(D(d,u[w]))return!0;return!1}},2271:(E,L,u)=>{var d=u(5334),D=u(7151),w=u(1503),C=u(891),_=u(8442),x=u(8159),f=Object.prototype.hasOwnProperty;E.exports=function v(m,p){var y=w(m),S=!y&&D(m),k=!y&&!S&&C(m),O=!y&&!S&&!k&&x(m),F=y||S||k||O,R=F?d(m.length,String):[],z=R.length;for(var H in m)(p||f.call(m,H))&&(!F||!("length"==H||k&&("offset"==H||"parent"==H)||O&&("buffer"==H||"byteLength"==H||"byteOffset"==H)||_(H,z)))&&R.push(H);return R}},4633:E=>{E.exports=function L(u,d){for(var D=-1,w=null==u?0:u.length,C=Array(w);++D<w;)C[D]=d(u[D],D,u);return C}},5059:E=>{E.exports=function L(u,d){for(var D=-1,w=d.length,C=u.length;++D<w;)u[C+D]=d[D];return u}},8745:E=>{E.exports=function L(u,d,D,w){var C=-1,_=null==u?0:u.length;for(w&&_&&(D=u[++C]);++C<_;)D=d(D,u[C],C,u);return D}},9503:E=>{E.exports=function L(u,d){for(var D=-1,w=null==u?0:u.length;++D<w;)if(d(u[D],D,u))return!0;return!1}},5481:(E,L,u)=>{var D=u(1847)("length");E.exports=D},9276:(E,L,u)=>{var d=u(5683),D=u(217);E.exports=function w(C,_,x){(void 0!==x&&!D(C[_],x)||void 0===x&&!(_ in C))&&d(C,_,x)}},9719:(E,L,u)=>{var d=u(5683),D=u(217),C=Object.prototype.hasOwnProperty;E.exports=function _(x,g,f){var v=x[g];(!C.call(x,g)||!D(v,f)||void 0===f&&!(g in x))&&d(x,g,f)}},3503:(E,L,u)=>{var d=u(217);E.exports=function D(w,C){for(var _=w.length;_--;)if(d(w[_][0],C))return _;return-1}},4121:(E,L,u)=>{var d=u(1989),D=u(118);E.exports=function w(C,_){return C&&d(_,D(_),C)}},9287:(E,L,u)=>{var d=u(1989),D=u(6555);E.exports=function w(C,_){return C&&d(_,D(_),C)}},5683:(E,L,u)=>{var d=u(6713);E.exports=function D(w,C,_){"__proto__"==C&&d?d(w,C,{configurable:!0,enumerable:!0,value:_,writable:!0}):w[C]=_}},4462:(E,L,u)=>{var d=u(2858),D=u(6837),w=u(9719),C=u(4121),_=u(9287),x=u(9292),g=u(9454),f=u(4444),v=u(9905),m=u(7597),p=u(6967),y=u(8794),S=u(6782),k=u(7878),O=u(4264),F=u(1503),R=u(891),z=u(3222),H=u(5940),X=u(799),se=u(118),te=u(6555),V="[object Arguments]",de="[object Function]",pe="[object Object]",wt={};wt[V]=wt["[object Array]"]=wt["[object ArrayBuffer]"]=wt["[object DataView]"]=wt["[object Boolean]"]=wt["[object Date]"]=wt["[object Float32Array]"]=wt["[object Float64Array]"]=wt["[object Int8Array]"]=wt["[object Int16Array]"]=wt["[object Int32Array]"]=wt["[object Map]"]=wt["[object Number]"]=wt[pe]=wt["[object RegExp]"]=wt["[object Set]"]=wt["[object String]"]=wt["[object Symbol]"]=wt["[object Uint8Array]"]=wt["[object Uint8ClampedArray]"]=wt["[object Uint16Array]"]=wt["[object Uint32Array]"]=!0,wt["[object Error]"]=wt[de]=wt["[object WeakMap]"]=!1,E.exports=function nr(Ct,Dr,Qi,rc,co,vs){var ni,Er=1&Dr,ir=2&Dr,Ea=4&Dr;if(Qi&&(ni=co?Qi(Ct,rc,co,vs):Qi(Ct)),void 0!==ni)return ni;if(!H(Ct))return Ct;var Sa=F(Ct);if(Sa){if(ni=S(Ct),!Er)return g(Ct,ni)}else{var sr=y(Ct),oc=sr==de||"[object GeneratorFunction]"==sr;if(R(Ct))return x(Ct,Er);if(sr==pe||sr==V||oc&&!co){if(ni=ir||oc?{}:O(Ct),!Er)return ir?v(Ct,_(ni,Ct)):f(Ct,C(ni,Ct))}else{if(!wt[sr])return co?Ct:{};ni=k(Ct,sr,Er)}}vs||(vs=new d);var ac=vs.get(Ct);if(ac)return ac;vs.set(Ct,ni),X(Ct)?Ct.forEach(function(Fs){ni.add(nr(Fs,Dr,Qi,Fs,Ct,vs))}):z(Ct)&&Ct.forEach(function(Fs,Ps){ni.set(Ps,nr(Fs,Dr,Qi,Ps,Ct,vs))});var lc=Sa?void 0:(Ea?ir?p:m:ir?te:se)(Ct);return D(lc||Ct,function(Fs,Ps){lc&&(Fs=Ct[Ps=Fs]),w(ni,Ps,nr(Fs,Dr,Qi,Ps,Ct,vs))}),ni}},8858:(E,L,u)=>{var d=u(5940),D=Object.create,w=function(){function C(){}return function(_){if(!d(_))return{};if(D)return D(_);C.prototype=_;var x=new C;return C.prototype=void 0,x}}();E.exports=w},3132:(E,L,u)=>{var d=u(5184),w=u(6539)(d);E.exports=w},7308:(E,L,u)=>{var d=u(4129);E.exports=function D(w,C,_){for(var x=-1,g=w.length;++x<g;){var f=w[x],v=C(f);if(null!=v&&(void 0===m?v==v&&!d(v):_(v,m)))var m=v,p=f}return p}},3609:(E,L,u)=>{var d=u(3132);E.exports=function D(w,C){var _=[];return d(w,function(x,g,f){C(x,g,f)&&_.push(x)}),_}},5317:E=>{E.exports=function L(u,d,D,w){for(var C=u.length,_=D+(w?1:-1);w?_--:++_<C;)if(d(u[_],_,u))return _;return-1}},686:(E,L,u)=>{var d=u(5059),D=u(5039);E.exports=function w(C,_,x,g,f){var v=-1,m=C.length;for(x||(x=D),f||(f=[]);++v<m;){var p=C[v];_>0&&x(p)?_>1?w(p,_-1,x,g,f):d(f,p):g||(f[f.length]=p)}return f}},755:(E,L,u)=>{var D=u(456)();E.exports=D},5184:(E,L,u)=>{var d=u(755),D=u(118);E.exports=function w(C,_){return C&&d(C,_,D)}},5456:(E,L,u)=>{var d=u(6884),D=u(8533);E.exports=function w(C,_){for(var x=0,g=(_=d(_,C)).length;null!=C&&x<g;)C=C[D(_[x++])];return x&&x==g?C:void 0}},8247:(E,L,u)=>{var d=u(5059),D=u(1503);E.exports=function w(C,_,x){var g=_(C);return D(C)?g:d(g,x(C))}},3337:(E,L,u)=>{var d=u(443),D=u(1318),w=u(2902),x=d?d.toStringTag:void 0;E.exports=function g(f){return null==f?void 0===f?"[object Undefined]":"[object Null]":x&&x in Object(f)?D(f):w(f)}},1100:E=>{E.exports=function L(u,d){return u>d}},4781:E=>{var u=Object.prototype.hasOwnProperty;E.exports=function d(D,w){return null!=D&&u.call(D,w)}},9989:E=>{E.exports=function L(u,d){return null!=u&&d in Object(u)}},4164:(E,L,u)=>{var d=u(5317),D=u(968),w=u(4977);E.exports=function C(_,x,g){return x==x?w(_,x,g):d(_,D,g)}},186:(E,L,u)=>{var d=u(3337),D=u(2671);E.exports=function C(_){return D(_)&&"[object Arguments]"==d(_)}},5740:(E,L,u)=>{var d=u(8325),D=u(2671);E.exports=function w(C,_,x,g,f){return C===_||(null==C||null==_||!D(C)&&!D(_)?C!=C&&_!=_:d(C,_,x,g,w,f))}},8325:(E,L,u)=>{var d=u(2858),D=u(3914),w=u(8583),C=u(2286),_=u(8794),x=u(1503),g=u(891),f=u(8159),m="[object Arguments]",p="[object Array]",y="[object Object]",k=Object.prototype.hasOwnProperty;E.exports=function O(F,R,z,H,X,se){var te=x(F),ie=x(R),le=te?p:_(F),N=ie?p:_(R),V=(le=le==m?y:le)==y,U=(N=N==m?y:N)==y,$=le==N;if($&&g(F)){if(!g(R))return!1;te=!0,V=!1}if($&&!V)return se||(se=new d),te||f(F)?D(F,R,z,H,X,se):w(F,R,le,z,H,X,se);if(!(1&z)){var Y=V&&k.call(F,"__wrapped__"),oe=U&&k.call(R,"__wrapped__");if(Y||oe){var de=Y?F.value():F,ee=oe?R.value():R;return se||(se=new d),X(de,ee,z,H,se)}}return!!$&&(se||(se=new d),C(F,R,z,H,X,se))}},7021:(E,L,u)=>{var d=u(8794),D=u(2671);E.exports=function C(_){return D(_)&&"[object Map]"==d(_)}},431:(E,L,u)=>{var d=u(2858),D=u(5740);E.exports=function _(x,g,f,v){var m=f.length,p=m,y=!v;if(null==x)return!p;for(x=Object(x);m--;){var S=f[m];if(y&&S[2]?S[1]!==x[S[0]]:!(S[0]in x))return!1}for(;++m<p;){var k=(S=f[m])[0],O=x[k],F=S[1];if(y&&S[2]){if(void 0===O&&!(k in x))return!1}else{var R=new d;if(v)var z=v(O,F,k,x,g,R);if(!(void 0===z?D(F,O,3,v,R):z))return!1}}return!0}},968:E=>{E.exports=function L(u){return u!=u}},7304:(E,L,u)=>{var d=u(5946),D=u(1943),w=u(5940),C=u(2827),x=/^\[object .+?Constructor\]$/,p=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");E.exports=function y(S){return!(!w(S)||D(S))&&(d(S)?p:x).test(C(S))}},771:(E,L,u)=>{var d=u(8794),D=u(2671);E.exports=function C(_){return D(_)&&"[object Set]"==d(_)}},1083:(E,L,u)=>{var d=u(3337),D=u(6231),w=u(2671),$={};$["[object Float32Array]"]=$["[object Float64Array]"]=$["[object Int8Array]"]=$["[object Int16Array]"]=$["[object Int32Array]"]=$["[object Uint8Array]"]=$["[object Uint8ClampedArray]"]=$["[object Uint16Array]"]=$["[object Uint32Array]"]=!0,$["[object Arguments]"]=$["[object Array]"]=$["[object ArrayBuffer]"]=$["[object Boolean]"]=$["[object DataView]"]=$["[object Date]"]=$["[object Error]"]=$["[object Function]"]=$["[object Map]"]=$["[object Number]"]=$["[object Object]"]=$["[object RegExp]"]=$["[object Set]"]=$["[object String]"]=$["[object WeakMap]"]=!1,E.exports=function Y(oe){return w(oe)&&D(oe.length)&&!!$[d(oe)]}},6517:(E,L,u)=>{var d=u(8133),D=u(9458),w=u(2608),C=u(1503),_=u(7495);E.exports=function x(g){return"function"==typeof g?g:null==g?w:"object"==typeof g?C(g)?D(g[0],g[1]):d(g):_(g)}},1172:(E,L,u)=>{var d=u(5488),D=u(5491),C=Object.prototype.hasOwnProperty;E.exports=function _(x){if(!d(x))return D(x);var g=[];for(var f in Object(x))C.call(x,f)&&"constructor"!=f&&g.push(f);return g}},2809:(E,L,u)=>{var d=u(5940),D=u(5488),w=u(2158),_=Object.prototype.hasOwnProperty;E.exports=function x(g){if(!d(g))return w(g);var f=D(g),v=[];for(var m in g)"constructor"==m&&(f||!_.call(g,m))||v.push(m);return v}},9069:E=>{E.exports=function L(u,d){return u<d}},2046:(E,L,u)=>{var d=u(3132),D=u(6507);E.exports=function w(C,_){var x=-1,g=D(C)?Array(C.length):[];return d(C,function(f,v,m){g[++x]=_(f,v,m)}),g}},8133:(E,L,u)=>{var d=u(431),D=u(2379),w=u(642);E.exports=function C(_){var x=D(_);return 1==x.length&&x[0][2]?w(x[0][0],x[0][1]):function(g){return g===_||d(g,_,x)}}},9458:(E,L,u)=>{var d=u(5740),D=u(8817),w=u(8492),C=u(5352),_=u(2442),x=u(642),g=u(8533);E.exports=function m(p,y){return C(p)&&_(y)?x(g(p),y):function(S){var k=D(S,p);return void 0===k&&k===y?w(S,p):d(y,k,3)}}},3842:(E,L,u)=>{var d=u(2858),D=u(9276),w=u(755),C=u(3675),_=u(5940),x=u(6555),g=u(9351);E.exports=function f(v,m,p,y,S){v!==m&&w(m,function(k,O){if(S||(S=new d),_(k))C(v,m,O,p,f,y,S);else{var F=y?y(g(v,O),k,O+"",v,m,S):void 0;void 0===F&&(F=k),D(v,O,F)}},x)}},3675:(E,L,u)=>{var d=u(9276),D=u(9292),w=u(5208),C=u(9454),_=u(4264),x=u(7151),g=u(1503),f=u(1330),v=u(891),m=u(5946),p=u(5940),y=u(7614),S=u(8159),k=u(9351),O=u(8067);E.exports=function F(R,z,H,X,se,te,ie){var le=k(R,H),N=k(z,H),V=ie.get(N);if(V)d(R,H,V);else{var U=te?te(le,N,H+"",R,z,ie):void 0,$=void 0===U;if($){var Y=g(N),oe=!Y&&v(N),de=!Y&&!oe&&S(N);U=N,Y||oe||de?g(le)?U=le:f(le)?U=C(le):oe?($=!1,U=D(N,!0)):de?($=!1,U=w(N,!0)):U=[]:y(N)||x(N)?(U=le,x(le)?U=O(le):(!p(le)||m(le))&&(U=_(N))):$=!1}$&&(ie.set(N,U),se(U,N,X,te,ie),ie.delete(N)),d(R,H,U)}}},6119:(E,L,u)=>{var d=u(4633),D=u(5456),w=u(6517),C=u(2046),_=u(8750),x=u(5647),g=u(1215),f=u(2608),v=u(1503);E.exports=function m(p,y,S){y=y.length?d(y,function(F){return v(F)?function(R){return D(R,1===F.length?F[0]:F)}:F}):[f];var k=-1;y=d(y,x(w));var O=C(p,function(F,R,z){return{criteria:d(y,function(X){return X(F)}),index:++k,value:F}});return _(O,function(F,R){return g(F,R,S)})}},3021:(E,L,u)=>{var d=u(5495),D=u(8492);E.exports=function w(C,_){return d(C,_,function(x,g){return D(C,g)})}},5495:(E,L,u)=>{var d=u(5456),D=u(5963),w=u(6884);E.exports=function C(_,x,g){for(var f=-1,v=x.length,m={};++f<v;){var p=x[f],y=d(_,p);g(y,p)&&D(m,w(p,_),y)}return m}},1847:E=>{E.exports=function L(u){return function(d){return null==d?void 0:d[u]}}},9222:(E,L,u)=>{var d=u(5456);E.exports=function D(w){return function(C){return d(C,w)}}},6307:E=>{var L=Math.ceil,u=Math.max;E.exports=function d(D,w,C,_){for(var x=-1,g=u(L((w-D)/(C||1)),0),f=Array(g);g--;)f[_?g:++x]=D,D+=C;return f}},3570:E=>{E.exports=function L(u,d,D,w,C){return C(u,function(_,x,g){D=w?(w=!1,_):d(D,_,x,g)}),D}},3269:(E,L,u)=>{var d=u(2608),D=u(3983),w=u(2185);E.exports=function C(_,x){return w(D(_,x,d),_+"")}},5963:(E,L,u)=>{var d=u(9719),D=u(6884),w=u(8442),C=u(5940),_=u(8533);E.exports=function x(g,f,v,m){if(!C(g))return g;for(var p=-1,y=(f=D(f,g)).length,S=y-1,k=g;null!=k&&++p<y;){var O=_(f[p]),F=v;if("__proto__"===O||"constructor"===O||"prototype"===O)return g;if(p!=S){var R=k[O];void 0===(F=m?m(R,O,k):void 0)&&(F=C(R)?R:w(f[p+1])?[]:{})}d(k,O,F),k=k[O]}return g}},9510:(E,L,u)=>{var d=u(6684),D=u(6713),w=u(2608);E.exports=D?function(_,x){return D(_,"toString",{configurable:!0,enumerable:!1,value:d(x),writable:!0})}:w},8750:E=>{E.exports=function L(u,d){var D=u.length;for(u.sort(d);D--;)u[D]=u[D].value;return u}},5334:E=>{E.exports=function L(u,d){for(var D=-1,w=Array(u);++D<u;)w[D]=d(D);return w}},3935:(E,L,u)=>{var d=u(443),D=u(4633),w=u(1503),C=u(4129),x=d?d.prototype:void 0,g=x?x.toString:void 0;E.exports=function f(v){if("string"==typeof v)return v;if(w(v))return D(v,f)+"";if(C(v))return g?g.call(v):"";var m=v+"";return"0"==m&&1/v==-1/0?"-0":m}},3348:(E,L,u)=>{var d=u(2760),D=/^\s+/;E.exports=function w(C){return C&&C.slice(0,d(C)+1).replace(D,"")}},5647:E=>{E.exports=function L(u){return function(d){return u(d)}}},707:(E,L,u)=>{var d=u(8849),D=u(1253),w=u(177),C=u(5972),_=u(4575),x=u(4174);E.exports=function f(v,m,p){var y=-1,S=D,k=v.length,O=!0,F=[],R=F;if(p)O=!1,S=w;else if(k>=200){var z=m?null:_(v);if(z)return x(z);O=!1,S=C,R=new d}else R=m?[]:F;e:for(;++y<k;){var H=v[y],X=m?m(H):H;if(H=p||0!==H?H:0,O&&X==X){for(var se=R.length;se--;)if(R[se]===X)continue e;m&&R.push(X),F.push(H)}else S(R,X,p)||(R!==F&&R.push(X),F.push(H))}return F}},9179:(E,L,u)=>{var d=u(4633);E.exports=function D(w,C){return d(C,function(_){return w[_]})}},8645:E=>{E.exports=function L(u,d,D){for(var w=-1,C=u.length,_=d.length,x={};++w<C;)D(x,u[w],w<_?d[w]:void 0);return x}},5972:E=>{E.exports=function L(u,d){return u.has(d)}},1481:(E,L,u)=>{var d=u(2608);E.exports=function D(w){return"function"==typeof w?w:d}},6884:(E,L,u)=>{var d=u(1503),D=u(5352),w=u(2855),C=u(3943);E.exports=function _(x,g){return d(x)?x:D(x,g)?[x]:w(C(x))}},3362:(E,L,u)=>{var d=u(3457);E.exports=function D(w){var C=new w.constructor(w.byteLength);return new d(C).set(new d(w)),C}},9292:(E,L,u)=>{E=u.nmd(E);var d=u(2119),D=L&&!L.nodeType&&L,w=D&&E&&!E.nodeType&&E,_=w&&w.exports===D?d.Buffer:void 0,x=_?_.allocUnsafe:void 0;E.exports=function g(f,v){if(v)return f.slice();var m=f.length,p=x?x(m):new f.constructor(m);return f.copy(p),p}},7e3:(E,L,u)=>{var d=u(3362);E.exports=function D(w,C){var _=C?d(w.buffer):w.buffer;return new w.constructor(_,w.byteOffset,w.byteLength)}},4098:E=>{var L=/\w*$/;E.exports=function u(d){var D=new d.constructor(d.source,L.exec(d));return D.lastIndex=d.lastIndex,D}},2533:(E,L,u)=>{var d=u(443),D=d?d.prototype:void 0,w=D?D.valueOf:void 0;E.exports=function C(_){return w?Object(w.call(_)):{}}},5208:(E,L,u)=>{var d=u(3362);E.exports=function D(w,C){var _=C?d(w.buffer):w.buffer;return new w.constructor(_,w.byteOffset,w.length)}},3443:(E,L,u)=>{var d=u(4129);E.exports=function D(w,C){if(w!==C){var _=void 0!==w,x=null===w,g=w==w,f=d(w),v=void 0!==C,m=null===C,p=C==C,y=d(C);if(!m&&!y&&!f&&w>C||f&&v&&p&&!m&&!y||x&&v&&p||!_&&p||!g)return 1;if(!x&&!f&&!y&&w<C||y&&_&&g&&!x&&!f||m&&_&&g||!v&&g||!p)return-1}return 0}},1215:(E,L,u)=>{var d=u(3443);E.exports=function D(w,C,_){for(var x=-1,g=w.criteria,f=C.criteria,v=g.length,m=_.length;++x<v;){var p=d(g[x],f[x]);if(p)return x>=m?p:p*("desc"==_[x]?-1:1)}return w.index-C.index}},9454:E=>{E.exports=function L(u,d){var D=-1,w=u.length;for(d||(d=Array(w));++D<w;)d[D]=u[D];return d}},1989:(E,L,u)=>{var d=u(9719),D=u(5683);E.exports=function w(C,_,x,g){var f=!x;x||(x={});for(var v=-1,m=_.length;++v<m;){var p=_[v],y=g?g(x[p],C[p],p,x,C):void 0;void 0===y&&(y=C[p]),f?D(x,p,y):d(x,p,y)}return x}},4444:(E,L,u)=>{var d=u(1989),D=u(9383);E.exports=function w(C,_){return d(C,D(C),_)}},9905:(E,L,u)=>{var d=u(1989),D=u(3051);E.exports=function w(C,_){return d(C,D(C),_)}},4610:(E,L,u)=>{var d=u(2119);E.exports=d["__core-js_shared__"]},4944:(E,L,u)=>{var d=u(3269),D=u(3342);E.exports=function w(C){return d(function(_,x){var g=-1,f=x.length,v=f>1?x[f-1]:void 0,m=f>2?x[2]:void 0;for(v=C.length>3&&"function"==typeof v?(f--,v):void 0,m&&D(x[0],x[1],m)&&(v=f<3?void 0:v,f=1),_=Object(_);++g<f;){var p=x[g];p&&C(_,p,g,v)}return _})}},6539:(E,L,u)=>{var d=u(6507);E.exports=function D(w,C){return function(_,x){if(null==_)return _;if(!d(_))return w(_,x);for(var g=_.length,f=C?g:-1,v=Object(_);(C?f--:++f<g)&&!1!==x(v[f],f,v););return _}}},456:E=>{E.exports=function L(u){return function(d,D,w){for(var C=-1,_=Object(d),x=w(d),g=x.length;g--;){var f=x[u?g:++C];if(!1===D(_[f],f,_))break}return d}}},4653:(E,L,u)=>{var d=u(6517),D=u(6507),w=u(118);E.exports=function C(_){return function(x,g,f){var v=Object(x);if(!D(x)){var m=d(g,3);x=w(x),g=function(y){return m(v[y],y,v)}}var p=_(x,g,f);return p>-1?v[m?x[p]:p]:void 0}}},7509:(E,L,u)=>{var d=u(6307),D=u(3342),w=u(2232);E.exports=function C(_){return function(x,g,f){return f&&"number"!=typeof f&&D(x,g,f)&&(g=f=void 0),x=w(x),void 0===g?(g=x,x=0):g=w(g),f=void 0===f?x<g?1:-1:w(f),d(x,g,f,_)}}},4575:(E,L,u)=>{var d=u(6323),D=u(2552),w=u(4174),_=d&&1/w(new d([,-0]))[1]==1/0?function(x){return new d(x)}:D;E.exports=_},6713:(E,L,u)=>{var d=u(3436),D=function(){try{var w=d(Object,"defineProperty");return w({},"",{}),w}catch(C){}}();E.exports=D},3914:(E,L,u)=>{var d=u(8849),D=u(9503),w=u(5972);E.exports=function x(g,f,v,m,p,y){var S=1&v,k=g.length,O=f.length;if(k!=O&&!(S&&O>k))return!1;var F=y.get(g),R=y.get(f);if(F&&R)return F==f&&R==g;var z=-1,H=!0,X=2&v?new d:void 0;for(y.set(g,f),y.set(f,g);++z<k;){var se=g[z],te=f[z];if(m)var ie=S?m(te,se,z,f,g,y):m(se,te,z,g,f,y);if(void 0!==ie){if(ie)continue;H=!1;break}if(X){if(!D(f,function(le,N){if(!w(X,N)&&(se===le||p(se,le,v,m,y)))return X.push(N)})){H=!1;break}}else if(se!==te&&!p(se,te,v,m,y)){H=!1;break}}return y.delete(g),y.delete(f),H}},8583:(E,L,u)=>{var d=u(443),D=u(3457),w=u(217),C=u(3914),_=u(3205),x=u(4174),X=d?d.prototype:void 0,se=X?X.valueOf:void 0;E.exports=function te(ie,le,N,V,U,$,Y){switch(N){case"[object DataView]":if(ie.byteLength!=le.byteLength||ie.byteOffset!=le.byteOffset)return!1;ie=ie.buffer,le=le.buffer;case"[object ArrayBuffer]":return!(ie.byteLength!=le.byteLength||!$(new D(ie),new D(le)));case"[object Boolean]":case"[object Date]":case"[object Number]":return w(+ie,+le);case"[object Error]":return ie.name==le.name&&ie.message==le.message;case"[object RegExp]":case"[object String]":return ie==le+"";case"[object Map]":var oe=_;case"[object Set]":if(oe||(oe=x),ie.size!=le.size&&!(1&V))return!1;var ee=Y.get(ie);if(ee)return ee==le;V|=2,Y.set(ie,le);var J=C(oe(ie),oe(le),V,U,$,Y);return Y.delete(ie),J;case"[object Symbol]":if(se)return se.call(ie)==se.call(le)}return!1}},2286:(E,L,u)=>{var d=u(7597),C=Object.prototype.hasOwnProperty;E.exports=function _(x,g,f,v,m,p){var y=1&f,S=d(x),k=S.length;if(k!=d(g).length&&!y)return!1;for(var R=k;R--;){var z=S[R];if(!(y?z in g:C.call(g,z)))return!1}var H=p.get(x),X=p.get(g);if(H&&X)return H==g&&X==x;var se=!0;p.set(x,g),p.set(g,x);for(var te=y;++R<k;){var ie=x[z=S[R]],le=g[z];if(v)var N=y?v(le,ie,z,g,x,p):v(ie,le,z,x,g,p);if(!(void 0===N?ie===le||m(ie,le,f,v,p):N)){se=!1;break}te||(te="constructor"==z)}if(se&&!te){var V=x.constructor,U=g.constructor;V!=U&&"constructor"in x&&"constructor"in g&&!("function"==typeof V&&V instanceof V&&"function"==typeof U&&U instanceof U)&&(se=!1)}return p.delete(x),p.delete(g),se}},3975:(E,L,u)=>{var d=u(2274),D=u(3983),w=u(2185);E.exports=function C(_){return w(D(_,void 0,d),_+"")}},9122:E=>{var L="object"==typeof global&&global&&global.Object===Object&&global;E.exports=L},7597:(E,L,u)=>{var d=u(8247),D=u(9383),w=u(118);E.exports=function C(_){return d(_,w,D)}},6967:(E,L,u)=>{var d=u(8247),D=u(3051),w=u(6555);E.exports=function C(_){return d(_,w,D)}},4537:(E,L,u)=>{var d=u(3819);E.exports=function D(w,C){var _=w.__data__;return d(C)?_["string"==typeof C?"string":"hash"]:_.map}},2379:(E,L,u)=>{var d=u(2442),D=u(118);E.exports=function w(C){for(var _=D(C),x=_.length;x--;){var g=_[x],f=C[g];_[x]=[g,f,d(f)]}return _}},3436:(E,L,u)=>{var d=u(7304),D=u(1990);E.exports=function w(C,_){var x=D(C,_);return d(x)?x:void 0}},9519:(E,L,u)=>{var D=u(9385)(Object.getPrototypeOf,Object);E.exports=D},1318:(E,L,u)=>{var d=u(443),D=Object.prototype,w=D.hasOwnProperty,C=D.toString,_=d?d.toStringTag:void 0;E.exports=function x(g){var f=w.call(g,_),v=g[_];try{g[_]=void 0;var m=!0}catch(y){}var p=C.call(g);return m&&(f?g[_]=v:delete g[_]),p}},9383:(E,L,u)=>{var d=u(9779),D=u(9975),C=Object.prototype.propertyIsEnumerable,_=Object.getOwnPropertySymbols;E.exports=_?function(g){return null==g?[]:(g=Object(g),d(_(g),function(f){return C.call(g,f)}))}:D},3051:(E,L,u)=>{var d=u(5059),D=u(9519),w=u(9383),C=u(9975);E.exports=Object.getOwnPropertySymbols?function(g){for(var f=[];g;)d(f,w(g)),g=D(g);return f}:C},8794:(E,L,u)=>{var d=u(7244),D=u(1501),w=u(4267),C=u(6323),_=u(4243),x=u(3337),g=u(2827),f="[object Map]",m="[object Promise]",p="[object Set]",y="[object WeakMap]",S="[object DataView]",k=g(d),O=g(D),F=g(w),R=g(C),z=g(_),H=x;(d&&H(new d(new ArrayBuffer(1)))!=S||D&&H(new D)!=f||w&&H(w.resolve())!=m||C&&H(new C)!=p||_&&H(new _)!=y)&&(H=function(X){var se=x(X),te="[object Object]"==se?X.constructor:void 0,ie=te?g(te):"";if(ie)switch(ie){case k:return S;case O:return f;case F:return m;case R:return p;case z:return y}return se}),E.exports=H},1990:E=>{E.exports=function L(u,d){return null==u?void 0:u[d]}},7283:(E,L,u)=>{var d=u(6884),D=u(7151),w=u(1503),C=u(8442),_=u(6231),x=u(8533);E.exports=function g(f,v,m){for(var p=-1,y=(v=d(v,f)).length,S=!1;++p<y;){var k=x(v[p]);if(!(S=null!=f&&m(f,k)))break;f=f[k]}return S||++p!=y?S:!!(y=null==f?0:f.length)&&_(y)&&C(k,y)&&(w(f)||D(f))}},7609:E=>{var x=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");E.exports=function g(f){return x.test(f)}},4312:(E,L,u)=>{var d=u(862);E.exports=function D(){this.__data__=d?d(null):{},this.size=0}},6421:E=>{E.exports=function L(u){var d=this.has(u)&&delete this.__data__[u];return this.size-=d?1:0,d}},5764:(E,L,u)=>{var d=u(862),C=Object.prototype.hasOwnProperty;E.exports=function _(x){var g=this.__data__;if(d){var f=g[x];return"__lodash_hash_undefined__"===f?void 0:f}return C.call(g,x)?g[x]:void 0}},8685:(E,L,u)=>{var d=u(862),w=Object.prototype.hasOwnProperty;E.exports=function C(_){var x=this.__data__;return d?void 0!==x[_]:w.call(x,_)}},6676:(E,L,u)=>{var d=u(862);E.exports=function w(C,_){var x=this.__data__;return this.size+=this.has(C)?0:1,x[C]=d&&void 0===_?"__lodash_hash_undefined__":_,this}},6782:E=>{var u=Object.prototype.hasOwnProperty;E.exports=function d(D){var w=D.length,C=new D.constructor(w);return w&&"string"==typeof D[0]&&u.call(D,"index")&&(C.index=D.index,C.input=D.input),C}},7878:(E,L,u)=>{var d=u(3362),D=u(7e3),w=u(4098),C=u(2533),_=u(5208);E.exports=function N(V,U,$){var Y=V.constructor;switch(U){case"[object ArrayBuffer]":return d(V);case"[object Boolean]":case"[object Date]":return new Y(+V);case"[object DataView]":return D(V,$);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 _(V,$);case"[object Map]":case"[object Set]":return new Y;case"[object Number]":case"[object String]":return new Y(V);case"[object RegExp]":return w(V);case"[object Symbol]":return C(V)}}},4264:(E,L,u)=>{var d=u(8858),D=u(9519),w=u(5488);E.exports=function C(_){return"function"!=typeof _.constructor||w(_)?{}:d(D(_))}},5039:(E,L,u)=>{var d=u(443),D=u(7151),w=u(1503),C=d?d.isConcatSpreadable:void 0;E.exports=function _(x){return w(x)||D(x)||!!(C&&x&&x[C])}},8442:E=>{var u=/^(?:0|[1-9]\d*)$/;E.exports=function d(D,w){var C=typeof D;return!!(w=null==w?9007199254740991:w)&&("number"==C||"symbol"!=C&&u.test(D))&&D>-1&&D%1==0&&D<w}},3342:(E,L,u)=>{var d=u(217),D=u(6507),w=u(8442),C=u(5940);E.exports=function _(x,g,f){if(!C(f))return!1;var v=typeof g;return!!("number"==v?D(f)&&w(g,f.length):"string"==v&&g in f)&&d(f[g],x)}},5352:(E,L,u)=>{var d=u(1503),D=u(4129),w=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,C=/^\w*$/;E.exports=function _(x,g){if(d(x))return!1;var f=typeof x;return!("number"!=f&&"symbol"!=f&&"boolean"!=f&&null!=x&&!D(x))||C.test(x)||!w.test(x)||null!=g&&x in Object(g)}},3819:E=>{E.exports=function L(u){var d=typeof u;return"string"==d||"number"==d||"symbol"==d||"boolean"==d?"__proto__"!==u:null===u}},1943:(E,L,u)=>{var C,d=u(4610),D=(C=/[^.]+$/.exec(d&&d.keys&&d.keys.IE_PROTO||""))?"Symbol(src)_1."+C:"";E.exports=function w(C){return!!D&&D in C}},5488:E=>{var L=Object.prototype;E.exports=function u(d){var D=d&&d.constructor;return d===("function"==typeof D&&D.prototype||L)}},2442:(E,L,u)=>{var d=u(5940);E.exports=function D(w){return w==w&&!d(w)}},1840:E=>{E.exports=function L(){this.__data__=[],this.size=0}},4378:(E,L,u)=>{var d=u(3503),w=Array.prototype.splice;E.exports=function C(_){var x=this.__data__,g=d(x,_);return!(g<0||(g==x.length-1?x.pop():w.call(x,g,1),--this.size,0))}},4981:(E,L,u)=>{var d=u(3503);E.exports=function D(w){var C=this.__data__,_=d(C,w);return _<0?void 0:C[_][1]}},7343:(E,L,u)=>{var d=u(3503);E.exports=function D(w){return d(this.__data__,w)>-1}},8895:(E,L,u)=>{var d=u(3503);E.exports=function D(w,C){var _=this.__data__,x=d(_,w);return x<0?(++this.size,_.push([w,C])):_[x][1]=C,this}},638:(E,L,u)=>{var d=u(4994),D=u(9215),w=u(1501);E.exports=function C(){this.size=0,this.__data__={hash:new d,map:new(w||D),string:new d}}},1184:(E,L,u)=>{var d=u(4537);E.exports=function D(w){var C=d(this,w).delete(w);return this.size-=C?1:0,C}},866:(E,L,u)=>{var d=u(4537);E.exports=function D(w){return d(this,w).get(w)}},3771:(E,L,u)=>{var d=u(4537);E.exports=function D(w){return d(this,w).has(w)}},1772:(E,L,u)=>{var d=u(4537);E.exports=function D(w,C){var _=d(this,w),x=_.size;return _.set(w,C),this.size+=_.size==x?0:1,this}},3205:E=>{E.exports=function L(u){var d=-1,D=Array(u.size);return u.forEach(function(w,C){D[++d]=[C,w]}),D}},642:E=>{E.exports=function L(u,d){return function(D){return null!=D&&D[u]===d&&(void 0!==d||u in Object(D))}}},719:(E,L,u)=>{var d=u(535);E.exports=function w(C){var _=d(C,function(g){return 500===x.size&&x.clear(),g}),x=_.cache;return _}},862:(E,L,u)=>{var D=u(3436)(Object,"create");E.exports=D},5491:(E,L,u)=>{var D=u(9385)(Object.keys,Object);E.exports=D},2158:E=>{E.exports=function L(u){var d=[];if(null!=u)for(var D in Object(u))d.push(D);return d}},3597:(E,L,u)=>{E=u.nmd(E);var d=u(9122),D=L&&!L.nodeType&&L,w=D&&E&&!E.nodeType&&E,_=w&&w.exports===D&&d.process,x=function(){try{return w&&w.require&&w.require("util").types||_&&_.binding&&_.binding("util")}catch(f){}}();E.exports=x},2902:E=>{var u=Object.prototype.toString;E.exports=function d(D){return u.call(D)}},9385:E=>{E.exports=function L(u,d){return function(D){return u(d(D))}}},3983:(E,L,u)=>{var d=u(6999),D=Math.max;E.exports=function w(C,_,x){return _=D(void 0===_?C.length-1:_,0),function(){for(var g=arguments,f=-1,v=D(g.length-_,0),m=Array(v);++f<v;)m[f]=g[_+f];f=-1;for(var p=Array(_+1);++f<_;)p[f]=g[f];return p[_]=x(m),d(C,this,p)}}},2119:(E,L,u)=>{var d=u(9122),D="object"==typeof self&&self&&self.Object===Object&&self,w=d||D||Function("return this")();E.exports=w},9351:E=>{E.exports=function L(u,d){if(("constructor"!==d||"function"!=typeof u[d])&&"__proto__"!=d)return u[d]}},4600:E=>{E.exports=function u(d){return this.__data__.set(d,"__lodash_hash_undefined__"),this}},1387:E=>{E.exports=function L(u){return this.__data__.has(u)}},4174:E=>{E.exports=function L(u){var d=-1,D=Array(u.size);return u.forEach(function(w){D[++d]=w}),D}},2185:(E,L,u)=>{var d=u(9510),w=u(29)(d);E.exports=w},29:E=>{var d=Date.now;E.exports=function D(w){var C=0,_=0;return function(){var x=d(),g=16-(x-_);if(_=x,g>0){if(++C>=800)return arguments[0]}else C=0;return w.apply(void 0,arguments)}}},3720:(E,L,u)=>{var d=u(9215);E.exports=function D(){this.__data__=new d,this.size=0}},4410:E=>{E.exports=function L(u){var d=this.__data__,D=d.delete(u);return this.size=d.size,D}},5576:E=>{E.exports=function L(u){return this.__data__.get(u)}},2247:E=>{E.exports=function L(u){return this.__data__.has(u)}},1585:(E,L,u)=>{var d=u(9215),D=u(1501),w=u(9850);E.exports=function _(x,g){var f=this.__data__;if(f instanceof d){var v=f.__data__;if(!D||v.length<199)return v.push([x,g]),this.size=++f.size,this;f=this.__data__=new w(v)}return f.set(x,g),this.size=f.size,this}},4977:E=>{E.exports=function L(u,d,D){for(var w=D-1,C=u.length;++w<C;)if(u[w]===d)return w;return-1}},2315:(E,L,u)=>{var d=u(5481),D=u(7609),w=u(1149);E.exports=function C(_){return D(_)?w(_):d(_)}},2855:(E,L,u)=>{var d=u(719),D=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,w=/\\(\\)?/g,C=d(function(_){var x=[];return 46===_.charCodeAt(0)&&x.push(""),_.replace(D,function(g,f,v,m){x.push(v?m.replace(w,"$1"):f||g)}),x});E.exports=C},8533:(E,L,u)=>{var d=u(4129);E.exports=function w(C){if("string"==typeof C||d(C))return C;var _=C+"";return"0"==_&&1/C==-1/0?"-0":_}},2827:E=>{var u=Function.prototype.toString;E.exports=function d(D){if(null!=D){try{return u.call(D)}catch(w){}try{return D+""}catch(w){}}return""}},2760:E=>{var L=/\s/;E.exports=function u(d){for(var D=d.length;D--&&L.test(d.charAt(D)););return D}},1149:E=>{var L="\\ud800-\\udfff",_="["+L+"]",x="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",g="\\ud83c[\\udffb-\\udfff]",v="[^"+L+"]",m="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",S="(?:"+x+"|"+g+")?",k="[\\ufe0e\\ufe0f]?",F=k+S+"(?:\\u200d(?:"+[v,m,p].join("|")+")"+k+S+")*",R="(?:"+[v+x+"?",x,m,p,_].join("|")+")",z=RegExp(g+"(?="+g+")|"+R+F,"g");E.exports=function H(X){for(var se=z.lastIndex=0;z.test(X);)++se;return se}},1094:(E,L,u)=>{var d=u(4462);E.exports=function w(C){return d(C,4)}},733:(E,L,u)=>{var d=u(4462);E.exports=function C(_){return d(_,5)}},6684:E=>{E.exports=function L(u){return function(){return u}}},8800:(E,L,u)=>{var d=u(3269),D=u(217),w=u(3342),C=u(6555),_=Object.prototype,x=_.hasOwnProperty,g=d(function(f,v){f=Object(f);var m=-1,p=v.length,y=p>2?v[2]:void 0;for(y&&w(v[0],v[1],y)&&(p=1);++m<p;)for(var S=v[m],k=C(S),O=-1,F=k.length;++O<F;){var R=k[O],z=f[R];(void 0===z||D(z,_[R])&&!x.call(f,R))&&(f[R]=S[R])}return f});E.exports=g},5474:(E,L,u)=>{E.exports=u(9851)},217:E=>{E.exports=function L(u,d){return u===d||u!=u&&d!=d}},5281:(E,L,u)=>{var d=u(9779),D=u(3609),w=u(6517),C=u(1503);E.exports=function _(x,g){return(C(x)?d:D)(x,w(g,3))}},2516:(E,L,u)=>{var w=u(4653)(u(6397));E.exports=w},6397:(E,L,u)=>{var d=u(5317),D=u(6517),w=u(4401),C=Math.max;E.exports=function _(x,g,f){var v=null==x?0:x.length;if(!v)return-1;var m=null==f?0:w(f);return m<0&&(m=C(v+m,0)),d(x,D(g,3),m)}},2274:(E,L,u)=>{var d=u(686);E.exports=function D(w){return null!=w&&w.length?d(w,1):[]}},9851:(E,L,u)=>{var d=u(6837),D=u(3132),w=u(1481),C=u(1503);E.exports=function _(x,g){return(C(x)?d:D)(x,w(g))}},1176:(E,L,u)=>{var d=u(755),D=u(1481),w=u(6555);E.exports=function C(_,x){return null==_?_:d(_,D(x),w)}},8817:(E,L,u)=>{var d=u(5456);E.exports=function D(w,C,_){var x=null==w?void 0:d(w,C);return void 0===x?_:x}},4842:(E,L,u)=>{var d=u(4781),D=u(7283);E.exports=function w(C,_){return null!=C&&D(C,_,d)}},8492:(E,L,u)=>{var d=u(9989),D=u(7283);E.exports=function w(C,_){return null!=C&&D(C,_,d)}},2608:E=>{E.exports=function L(u){return u}},7151:(E,L,u)=>{var d=u(186),D=u(2671),w=Object.prototype,C=w.hasOwnProperty,_=w.propertyIsEnumerable,x=d(function(){return arguments}())?d:function(g){return D(g)&&C.call(g,"callee")&&!_.call(g,"callee")};E.exports=x},1503:E=>{E.exports=Array.isArray},6507:(E,L,u)=>{var d=u(5946),D=u(6231);E.exports=function w(C){return null!=C&&D(C.length)&&!d(C)}},1330:(E,L,u)=>{var d=u(6507),D=u(2671);E.exports=function w(C){return D(C)&&d(C)}},891:(E,L,u)=>{E=u.nmd(E);var d=u(2119),D=u(3580),w=L&&!L.nodeType&&L,C=w&&E&&!E.nodeType&&E,x=C&&C.exports===w?d.Buffer:void 0;E.exports=(x?x.isBuffer:void 0)||D},1973:(E,L,u)=>{var d=u(1172),D=u(8794),w=u(7151),C=u(1503),_=u(6507),x=u(891),g=u(5488),f=u(8159),y=Object.prototype.hasOwnProperty;E.exports=function S(k){if(null==k)return!0;if(_(k)&&(C(k)||"string"==typeof k||"function"==typeof k.splice||x(k)||f(k)||w(k)))return!k.length;var O=D(k);if("[object Map]"==O||"[object Set]"==O)return!k.size;if(g(k))return!d(k).length;for(var F in k)if(y.call(k,F))return!1;return!0}},5946:(E,L,u)=>{var d=u(3337),D=u(5940);E.exports=function g(f){if(!D(f))return!1;var v=d(f);return"[object Function]"==v||"[object GeneratorFunction]"==v||"[object AsyncFunction]"==v||"[object Proxy]"==v}},6231:E=>{E.exports=function u(d){return"number"==typeof d&&d>-1&&d%1==0&&d<=9007199254740991}},3222:(E,L,u)=>{var d=u(7021),D=u(5647),w=u(3597),C=w&&w.isMap,_=C?D(C):d;E.exports=_},5940:E=>{E.exports=function L(u){var d=typeof u;return null!=u&&("object"==d||"function"==d)}},2671:E=>{E.exports=function L(u){return null!=u&&"object"==typeof u}},7614:(E,L,u)=>{var d=u(3337),D=u(9519),w=u(2671),g=Function.prototype.toString,f=Object.prototype.hasOwnProperty,v=g.call(Object);E.exports=function m(p){if(!w(p)||"[object Object]"!=d(p))return!1;var y=D(p);if(null===y)return!0;var S=f.call(y,"constructor")&&y.constructor;return"function"==typeof S&&S instanceof S&&g.call(S)==v}},799:(E,L,u)=>{var d=u(771),D=u(5647),w=u(3597),C=w&&w.isSet,_=C?D(C):d;E.exports=_},248:(E,L,u)=>{var d=u(3337),D=u(1503),w=u(2671);E.exports=function _(x){return"string"==typeof x||!D(x)&&w(x)&&"[object String]"==d(x)}},4129:(E,L,u)=>{var d=u(3337),D=u(2671);E.exports=function C(_){return"symbol"==typeof _||D(_)&&"[object Symbol]"==d(_)}},8159:(E,L,u)=>{var d=u(1083),D=u(5647),w=u(3597),C=w&&w.isTypedArray,_=C?D(C):d;E.exports=_},4235:E=>{E.exports=function L(u){return void 0===u}},118:(E,L,u)=>{var d=u(2271),D=u(1172),w=u(6507);E.exports=function C(_){return w(_)?d(_):D(_)}},6555:(E,L,u)=>{var d=u(2271),D=u(2809),w=u(6507);E.exports=function C(_){return w(_)?d(_,!0):D(_)}},5809:E=>{E.exports=function L(u){var d=null==u?0:u.length;return d?u[d-1]:void 0}},9984:(E,L,u)=>{var d=u(4633),D=u(6517),w=u(2046),C=u(1503);E.exports=function _(x,g){return(C(x)?d:w)(x,D(g,3))}},203:(E,L,u)=>{var d=u(5683),D=u(5184),w=u(6517);E.exports=function C(_,x){var g={};return x=w(x,3),D(_,function(f,v,m){d(g,v,x(f,v,m))}),g}},8176:(E,L,u)=>{var d=u(7308),D=u(1100),w=u(2608);E.exports=function C(_){return _&&_.length?d(_,w,D):void 0}},535:(E,L,u)=>{var d=u(9850);function w(C,_){if("function"!=typeof C||null!=_&&"function"!=typeof _)throw new TypeError("Expected a function");var x=function(){var g=arguments,f=_?_.apply(this,g):g[0],v=x.cache;if(v.has(f))return v.get(f);var m=C.apply(this,g);return x.cache=v.set(f,m)||v,m};return x.cache=new(w.Cache||d),x}w.Cache=d,E.exports=w},567:(E,L,u)=>{var d=u(3842),w=u(4944)(function(C,_,x){d(C,_,x)});E.exports=w},9439:(E,L,u)=>{var d=u(7308),D=u(9069),w=u(2608);E.exports=function C(_){return _&&_.length?d(_,w,D):void 0}},9525:(E,L,u)=>{var d=u(7308),D=u(6517),w=u(9069);E.exports=function C(_,x){return _&&_.length?d(_,D(x,2),w):void 0}},2552:E=>{E.exports=function L(){}},1710:(E,L,u)=>{var d=u(2119);E.exports=function(){return d.Date.now()}},6372:(E,L,u)=>{var d=u(3021),w=u(3975)(function(C,_){return null==C?{}:d(C,_)});E.exports=w},7495:(E,L,u)=>{var d=u(1847),D=u(9222),w=u(5352),C=u(8533);E.exports=function _(x){return w(x)?d(C(x)):D(x)}},361:(E,L,u)=>{var D=u(7509)();E.exports=D},1337:(E,L,u)=>{var d=u(8745),D=u(3132),w=u(6517),C=u(3570),_=u(1503);E.exports=function x(g,f,v){var m=_(g)?d:C,p=arguments.length<3;return m(g,w(f,4),v,p,D)}},5637:(E,L,u)=>{var d=u(1172),D=u(8794),w=u(6507),C=u(248),_=u(2315);E.exports=function f(v){if(null==v)return 0;if(w(v))return C(v)?_(v):v.length;var m=D(v);return"[object Map]"==m||"[object Set]"==m?v.size:d(v).length}},2906:(E,L,u)=>{var d=u(686),D=u(6119),w=u(3269),C=u(3342),_=w(function(x,g){if(null==x)return[];var f=g.length;return f>1&&C(x,g[0],g[1])?g=[]:f>2&&C(g[0],g[1],g[2])&&(g=[g[0]]),D(x,d(g,1),[])});E.exports=_},9975:E=>{E.exports=function L(){return[]}},3580:E=>{E.exports=function L(){return!1}},2232:(E,L,u)=>{var d=u(1467),D=1/0;E.exports=function C(_){return _?(_=d(_))===D||_===-D?17976931348623157e292*(_<0?-1:1):_==_?_:0:0===_?_:0}},4401:(E,L,u)=>{var d=u(2232);E.exports=function D(w){var C=d(w),_=C%1;return C==C?_?C-_:C:0}},1467:(E,L,u)=>{var d=u(3348),D=u(5940),w=u(4129),_=/^[-+]0x[0-9a-f]+$/i,x=/^0b[01]+$/i,g=/^0o[0-7]+$/i,f=parseInt;E.exports=function v(m){if("number"==typeof m)return m;if(w(m))return NaN;if(D(m)){var p="function"==typeof m.valueOf?m.valueOf():m;m=D(p)?p+"":p}if("string"!=typeof m)return 0===m?m:+m;m=d(m);var y=x.test(m);return y||g.test(m)?f(m.slice(2),y?2:8):_.test(m)?NaN:+m}},8067:(E,L,u)=>{var d=u(1989),D=u(6555);E.exports=function w(C){return d(C,D(C))}},3943:(E,L,u)=>{var d=u(3935);E.exports=function D(w){return null==w?"":d(w)}},9416:(E,L,u)=>{var d=u(6837),D=u(8858),w=u(5184),C=u(6517),_=u(9519),x=u(1503),g=u(891),f=u(5946),v=u(5940),m=u(8159);E.exports=function p(y,S,k){var O=x(y),F=O||g(y)||m(y);if(S=C(S,4),null==k){var R=y&&y.constructor;k=F?O?new R:[]:v(y)&&f(R)?D(_(y)):{}}return(F?d:w)(y,function(z,H,X){return S(k,z,H,X)}),k}},8921:(E,L,u)=>{var d=u(686),D=u(3269),w=u(707),C=u(1330),_=D(function(x){return w(d(x,1,C,!0))});E.exports=_},1541:(E,L,u)=>{var d=u(3943),D=0;E.exports=function w(C){var _=++D;return d(C)+_}},377:(E,L,u)=>{var d=u(9179),D=u(118);E.exports=function w(C){return null==C?[]:d(C,D(C))}},1617:(E,L,u)=>{var d=u(9719),D=u(8645);E.exports=function w(C,_){return D(C||[],_||[],d)}},7824:(E,L,u)=>{"use strict";function d(D){for(var w in D)L.hasOwnProperty(w)||(L[w]=D[w])}Object.defineProperty(L,"__esModule",{value:!0}),d(u(5085)),d(u(6243)),d(u(1786)),d(u(225)),d(u(6767)),d(u(345)),d(u(5675)),d(u(6461)),d(u(8802)),d(u(3900)),d(u(8866)),d(u(4655)),d(u(4068)),d(u(3858)),d(u(8237)),d(u(3292))},5085:function(E,L,u){"use strict";var _,d=this&&this.__extends||(_=function(x,g){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var m in v)v.hasOwnProperty(m)&&(f[m]=v[m])})(x,g)},function(x,g){function f(){this.constructor=x}_(x,g),x.prototype=null===g?Object.create(g):(f.prototype=g.prototype,new f)});Object.defineProperty(L,"__esModule",{value:!0});var D=u(5675),w=function(_){function x(g){var f=_.call(this)||this,m=g;return m.trigger&&(f.trigger=m.trigger),m.kick&&(f.kick=m.kick),m.drag&&(f.drag=m.drag),m.on&&(f.on=m.on),f.dragstart=f.dragStart=D.Layout.dragStart,f.dragend=f.dragEnd=D.Layout.dragEnd,f}return d(x,_),x.prototype.trigger=function(g){},x.prototype.kick=function(){},x.prototype.drag=function(){},x.prototype.on=function(g,f){return this},x}(D.Layout);L.LayoutAdaptor=w,L.adaptor=function C(_){return new w(_)}},3292:(E,L,u)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var d=u(5675),D=u(6767);L.gridify=function w(x,g,f,v){x.cola.start(0,0,0,10,!1);var m=function C(x,g,f,v){x.forEach(function(p){p.routerNode={name:p.name,bounds:p.bounds.inflate(-f)}}),g.forEach(function(p){p.routerNode={bounds:p.bounds.inflate(-v),children:(void 0!==p.groups?p.groups.map(function(y){return x.length+y.id}):[]).concat(void 0!==p.leaves?p.leaves.map(function(y){return y.index}):[])}});var m=x.concat(g).map(function(p,y){return p.routerNode.id=y,p.routerNode});return new D.GridRouter(m,{getChildren:function(p){return p.children},getBounds:function(p){return p.bounds}},f-v)}(x.cola.nodes(),x.cola.groups(),f,v);return m.routeEdges(x.powerGraph.powerEdges,g,function(p){return p.source.routerNode.id},function(p){return p.target.routerNode.id})},L.powerGraphGridLayout=function _(x,g,f){var v;x.nodes.forEach(function(S,k){return S.index=k}),(new d.Layout).avoidOverlaps(!1).nodes(x.nodes).links(x.links).powerGraphGroups(function(S){(v=S).groups.forEach(function(k){return k.padding=f})});var m=x.nodes.length,p=[],y=x.nodes.slice(0);return y.forEach(function(S,k){return S.index=k}),v.groups.forEach(function(S){var k=S.index=S.id+m;y.push(S),void 0!==S.leaves&&S.leaves.forEach(function(O){return p.push({source:k,target:O.index})}),void 0!==S.groups&&S.groups.forEach(function(O){return p.push({source:k,target:O.id+m})})}),v.powerEdges.forEach(function(S){p.push({source:S.source.index,target:S.target.index})}),(new d.Layout).size(g).nodes(y).links(p).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:(new d.Layout).convergenceThreshold(.001).size(g).avoidOverlaps(!0).nodes(x.nodes).links(x.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(S){(v=S).groups.forEach(function(k){k.padding=f})}).start(50,0,100,0,!1),powerGraph:v}}},6243:(E,L,u)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var d=u(9346),D=u(2487);L.d3adaptor=function w(_){return!_||function C(_){return _.version&&null!==_.version.match(/^3\./)}(_)?new d.D3StyleLayoutAdaptor:new D.D3StyleLayoutAdaptor(_)}},9346:function(E,L,u){"use strict";var _,d=this&&this.__extends||(_=function(x,g){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var m in v)v.hasOwnProperty(m)&&(f[m]=v[m])})(x,g)},function(x,g){function f(){this.constructor=x}_(x,g),x.prototype=null===g?Object.create(g):(f.prototype=g.prototype,new f)});Object.defineProperty(L,"__esModule",{value:!0});var D=u(5675),w=function(_){function x(){var g=_.call(this)||this;g.event=d3.dispatch(D.EventType[D.EventType.start],D.EventType[D.EventType.tick],D.EventType[D.EventType.end]);var f=g;return g.drag=function(){if(!m)var m=d3.behavior.drag().origin(D.Layout.dragOrigin).on("dragstart.d3adaptor",D.Layout.dragStart).on("drag.d3adaptor",function(p){D.Layout.drag(p,d3.event),f.resume()}).on("dragend.d3adaptor",D.Layout.dragEnd);if(!arguments.length)return m;this.call(m)},g}return d(x,_),x.prototype.trigger=function(g){var f={type:D.EventType[g.type],alpha:g.alpha,stress:g.stress};this.event[f.type](f)},x.prototype.kick=function(){var g=this;d3.timer(function(){return _.prototype.tick.call(g)})},x.prototype.on=function(g,f){return this.event.on("string"==typeof g?g:D.EventType[g],f),this},x}(D.Layout);L.D3StyleLayoutAdaptor=w,L.d3adaptor=function C(){return new w}},2487:function(E,L,u){"use strict";var C,d=this&&this.__extends||(C=function(_,x){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,f){g.__proto__=f}||function(g,f){for(var v in f)f.hasOwnProperty(v)&&(g[v]=f[v])})(_,x)},function(_,x){function g(){this.constructor=_}C(_,x),_.prototype=null===x?Object.create(x):(g.prototype=x.prototype,new g)});Object.defineProperty(L,"__esModule",{value:!0});var D=u(5675),w=function(C){function _(x){var g=C.call(this)||this;g.d3Context=x,g.event=x.dispatch(D.EventType[D.EventType.start],D.EventType[D.EventType.tick],D.EventType[D.EventType.end]);var f=g;return g.drag=function(){if(!m)var m=x.drag().subject(D.Layout.dragOrigin).on("start.d3adaptor",D.Layout.dragStart).on("drag.d3adaptor",function(p){D.Layout.drag(p,x.event),f.resume()}).on("end.d3adaptor",D.Layout.dragEnd);if(!arguments.length)return m;arguments[0].call(m)},g}return d(_,C),_.prototype.trigger=function(x){var g={type:D.EventType[x.type],alpha:x.alpha,stress:x.stress};this.event.call(g.type,g)},_.prototype.kick=function(){var x=this,g=this.d3Context.timer(function(){return C.prototype.tick.call(x)&&g.stop()})},_.prototype.on=function(x,g){return this.event.on("string"==typeof x?x:D.EventType[x],g),this},_}(D.Layout);L.D3StyleLayoutAdaptor=w},1786:(E,L)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var u=function(){function w(){this.locks={}}return w.prototype.add=function(C,_){this.locks[C]=_},w.prototype.clear=function(){this.locks={}},w.prototype.isEmpty=function(){for(var C in this.locks)return!1;return!0},w.prototype.apply=function(C){for(var _ in this.locks)C(Number(_),this.locks[_])},w}();L.Locks=u;var d=function(){function w(C,_,x){void 0===x&&(x=null),this.D=_,this.G=x,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new D,this.project=null,this.x=C,this.k=C.length;var g=this.n=C[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 u,this.minD=Number.MAX_VALUE;for(var v,f=g;f--;)for(v=g;--v>f;){var m=_[f][v];m>0&&m<this.minD&&(this.minD=m)}for(this.minD===Number.MAX_VALUE&&(this.minD=1),f=this.k;f--;){for(this.g[f]=new Array(g),this.H[f]=new Array(g),v=g;v--;)this.H[f][v]=new Array(g);this.Hd[f]=new Array(g),this.a[f]=new Array(g),this.b[f]=new Array(g),this.c[f]=new Array(g),this.d[f]=new Array(g),this.e[f]=new Array(g),this.ia[f]=new Array(g),this.ib[f]=new Array(g),this.xtmp[f]=new Array(g)}}return w.createSquareMatrix=function(C,_){for(var x=new Array(C),g=0;g<C;++g){x[g]=new Array(C);for(var f=0;f<C;++f)x[g][f]=_(g,f)}return x},w.prototype.offsetDir=function(){for(var C=this,_=new Array(this.k),x=0,g=0;g<this.k;++g){var f=_[g]=this.random.getNextBetween(.01,1)-.5;x+=f*f}return x=Math.sqrt(x),_.map(function(v){return v*(C.minD/x)})},w.prototype.computeDerivatives=function(C){var _=this,x=this.n;if(!(x<1)){for(var g,f=new Array(this.k),v=new Array(this.k),m=new Array(this.k),p=0,y=0;y<x;++y){for(g=0;g<this.k;++g)m[g]=this.g[g][y]=0;for(var S=0;S<x;++S)if(y!==S){for(var k=x;k--;){var O=0;for(g=0;g<this.k;++g){var F=f[g]=C[g][y]-C[g][S];O+=v[g]=F*F}if(O>1e-9)break;var R=this.offsetDir();for(g=0;g<this.k;++g)C[g][S]+=R[g]}var z=Math.sqrt(O),H=this.D[y][S],X=null!=this.G?this.G[y][S]:1;if(X>1&&z>H||!isFinite(H)){for(g=0;g<this.k;++g)this.H[g][y][S]=0;continue}X>1&&(X=1);var se=H*H,te=2*X*(z-H)/(se*z),ie=z*z*z,le=2*-X/(se*ie);for(isFinite(te)||console.log(te),g=0;g<this.k;++g)this.g[g][y]+=f[g]*te,m[g]-=this.H[g][y][S]=le*(ie+H*(v[g]-O)+z*O)}for(g=0;g<this.k;++g)p=Math.max(p,this.H[g][y][y]=m[g])}var N=this.snapGridSize/2,V=this.snapGridSize,$=this.snapStrength/(N*N),Y=this.numGridSnapNodes;for(y=0;y<Y;++y)for(g=0;g<this.k;++g){var oe=this.x[g][y],de=oe/V,ee=de%1,J=de-ee;-N<(F=Math.abs(ee)<=.5?oe-J*V:oe>0?oe-(J+1)*V:oe-(J-1)*V)&&F<=N&&(this.scaleSnapByMaxH?(this.g[g][y]+=p*$*F,this.H[g][y][y]+=p*$):(this.g[g][y]+=$*F,this.H[g][y][y]+=$))}this.locks.isEmpty()||this.locks.apply(function(pe,be){for(g=0;g<_.k;++g)_.H[g][pe][pe]+=p,_.g[g][pe]-=p*(be[g]-C[g][pe])})}},w.dotProd=function(C,_){for(var x=0,g=C.length;g--;)x+=C[g]*_[g];return x},w.rightMultiply=function(C,_,x){for(var g=C.length;g--;)x[g]=w.dotProd(C[g],_)},w.prototype.computeStepSize=function(C){for(var _=0,x=0,g=0;g<this.k;++g)_+=w.dotProd(this.g[g],C[g]),w.rightMultiply(this.H[g],C[g],this.Hd[g]),x+=w.dotProd(C[g],this.Hd[g]);return 0!==x&&isFinite(x)?1*_/x:0},w.prototype.reduceStress=function(){this.computeDerivatives(this.x);for(var C=this.computeStepSize(this.g),_=0;_<this.k;++_)this.takeDescentStep(this.x[_],this.g[_],C);return this.computeStress()},w.copy=function(C,_){for(var x=C.length,g=_[0].length,f=0;f<x;++f)for(var v=0;v<g;++v)_[f][v]=C[f][v]},w.prototype.stepAndProject=function(C,_,x,g){w.copy(C,_),this.takeDescentStep(_[0],x[0],g),this.project&&this.project[0](C[0],C[1],_[0]),this.takeDescentStep(_[1],x[1],g),this.project&&this.project[1](_[0],C[1],_[1]);for(var f=2;f<this.k;f++)this.takeDescentStep(_[f],x[f],g)},w.mApply=function(C,_,x){for(var g=C;g-- >0;)for(var f=_;f-- >0;)x(g,f)},w.prototype.matrixApply=function(C){w.mApply(this.k,this.n,C)},w.prototype.computeNextPosition=function(C,_){var x=this;this.computeDerivatives(C);var g=this.computeStepSize(this.g);if(this.stepAndProject(C,_,this.g,g),this.project){this.matrixApply(function(v,m){return x.e[v][m]=C[v][m]-_[v][m]});var f=this.computeStepSize(this.e);f=Math.max(.2,Math.min(f,1)),this.stepAndProject(C,_,this.e,f)}},w.prototype.run=function(C){for(var _=Number.MAX_VALUE,x=!1;!x&&C-- >0;){var g=this.rungeKutta();x=Math.abs(_/g-1)<this.threshold,_=g}return _},w.prototype.rungeKutta=function(){var C=this;this.computeNextPosition(this.x,this.a),w.mid(this.x,this.a,this.ia),this.computeNextPosition(this.ia,this.b),w.mid(this.x,this.b,this.ib),this.computeNextPosition(this.ib,this.c),this.computeNextPosition(this.c,this.d);var _=0;return this.matrixApply(function(x,g){var f=(C.a[x][g]+2*C.b[x][g]+2*C.c[x][g]+C.d[x][g])/6,v=C.x[x][g]-f;_+=v*v,C.x[x][g]=f}),_},w.mid=function(C,_,x){w.mApply(C.length,C[0].length,function(g,f){return x[g][f]=C[g][f]+(_[g][f]-C[g][f])/2})},w.prototype.takeDescentStep=function(C,_,x){for(var g=0;g<this.n;++g)C[g]=C[g]-x*_[g]},w.prototype.computeStress=function(){for(var C=0,_=0,x=this.n-1;_<x;++_)for(var g=_+1,f=this.n;g<f;++g){for(var v=0,m=0;m<this.k;++m){var p=this.x[m][_]-this.x[m][g];v+=p*p}v=Math.sqrt(v);var y=this.D[_][g];if(isFinite(y)){var S=y-v;C+=S*S/(y*y)}}return C},w.zeroDistance=1e-10,w}();L.Descent=d;var D=function(){function w(C){void 0===C&&(C=1),this.seed=C,this.a=214013,this.c=2531011,this.m=2147483648,this.range=32767}return w.prototype.getNext=function(){return this.seed=(this.seed*this.a+this.c)%this.m,(this.seed>>16)/this.range},w.prototype.getNextBetween=function(C,_){return C+this.getNext()*(_-C)},w}();L.PseudoRandom=D},225:function(E,L,u){"use strict";var ee,d=this&&this.__extends||(ee=function(J,ce){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(pe,be){pe.__proto__=be}||function(pe,be){for(var fe in be)be.hasOwnProperty(fe)&&(pe[fe]=be[fe])})(J,ce)},function(J,ce){function pe(){this.constructor=J}ee(J,ce),J.prototype=null===ce?Object.create(ce):(pe.prototype=ce.prototype,new pe)});Object.defineProperty(L,"__esModule",{value:!0});var D=u(4068),w=function ee(){};L.Point=w;var C=function ee(J,ce,pe,be){this.x1=J,this.y1=ce,this.x2=pe,this.y2=be};L.LineSegment=C;var _=function(ee){function J(){return null!==ee&&ee.apply(this,arguments)||this}return d(J,ee),J}(w);function x(ee,J,ce){return(J.x-ee.x)*(ce.y-ee.y)-(ce.x-ee.x)*(J.y-ee.y)}function g(ee,J,ce){return x(ee,J,ce)>0}function f(ee,J,ce){return x(ee,J,ce)<0}function S(ee,J){var ce=J.slice(0);return ce.push(J[0]),{rtan:k(ee,ce),ltan:O(ee,ce)}}function k(ee,J){var pe,be,fe,Pe,ce=J.length-1;if(f(ee,J[1],J[0])&&!g(ee,J[ce-1],J[0]))return 0;for(pe=0,be=ce;;){if(be-pe==1)return g(ee,J[pe],J[be])?pe:be;if((Pe=f(ee,J[(fe=Math.floor((pe+be)/2))+1],J[fe]))&&!g(ee,J[fe-1],J[fe]))return fe;g(ee,J[pe+1],J[pe])?Pe||g(ee,J[pe],J[fe])?be=fe:pe=fe:Pe&&f(ee,J[pe],J[fe])?be=fe:pe=fe}}function O(ee,J){var pe,be,fe,Pe,ce=J.length-1;if(g(ee,J[ce-1],J[0])&&!f(ee,J[1],J[0]))return 0;for(pe=0,be=ce;;){if(be-pe==1)return f(ee,J[pe],J[be])?pe:be;if(Pe=f(ee,J[(fe=Math.floor((pe+be)/2))+1],J[fe]),g(ee,J[fe-1],J[fe])&&!Pe)return fe;f(ee,J[pe+1],J[pe])?Pe?f(ee,J[pe],J[fe])?be=fe:pe=fe:be=fe:Pe?pe=fe:g(ee,J[pe],J[fe])?be=fe:pe=fe}}function F(ee,J,ce,pe,be,fe){var Ee,Pe;Pe=pe(ee[Ee=ce(J[0],ee)],J);for(var st=!1;!st;){for(st=!0;Ee===ee.length-1&&(Ee=0),!be(J[Pe],ee[Ee],ee[Ee+1]);)++Ee;for(;0===Pe&&(Pe=J.length-1),!fe(ee[Ee],J[Pe],J[Pe-1]);)--Pe,st=!1}return{t1:Ee,t2:Pe}}function z(ee,J){return F(ee,J,k,O,g,f)}L.PolyPoint=_,L.isLeft=x,L.ConvexHull=function v(ee){var pe,J=ee.slice(0).sort(function(Fe,Ke){return Fe.x!==Ke.x?Ke.x-Fe.x:Ke.y-Fe.y}),ce=ee.length,fe=J[0].x;for(pe=1;pe<ce&&J[pe].x===fe;++pe);var Ee=pe-1,Pe=[];if(Pe.push(J[0]),Ee===ce-1)J[Ee].y!==J[0].y&&Pe.push(J[Ee]);else{var st,he=ce-1,xe=J[ce-1].x;for(pe=ce-2;pe>=0&&J[pe].x===xe;pe--);for(st=pe+1,pe=Ee;++pe<=st;)if(!(x(J[0],J[st],J[pe])>=0&&pe<st)){for(;Pe.length>1&&!(x(Pe[Pe.length-2],Pe[Pe.length-1],J[pe])>0);)Pe.length-=1;0!=pe&&Pe.push(J[pe])}he!=st&&Pe.push(J[he]);var Te=Pe.length;for(pe=st;--pe>=Ee;)if(!(x(J[he],J[Ee],J[pe])>=0&&pe>Ee)){for(;Pe.length>Te&&!(x(Pe[Pe.length-2],Pe[Pe.length-1],J[pe])>0);)Pe.length-=1;0!=pe&&Pe.push(J[pe])}}return Pe},L.clockwiseRadialSweep=function m(ee,J,ce){J.slice(0).sort(function(pe,be){return Math.atan2(pe.y-ee.y,pe.x-ee.x)-Math.atan2(be.y-ee.y,be.x-ee.x)}).forEach(ce)},L.tangent_PolyPolyC=F,L.LRtangent_PolyPolyC=function R(ee,J){var ce=z(J,ee);return{t1:ce.t2,t2:ce.t1}},L.RLtangent_PolyPolyC=z,L.LLtangent_PolyPolyC=function H(ee,J){return F(ee,J,O,O,f,f)},L.RRtangent_PolyPolyC=function X(ee,J){return F(ee,J,k,k,g,g)};var se=function ee(J,ce){this.t1=J,this.t2=ce};L.BiTangent=se;var te=function ee(){};L.BiTangents=te;var ie=function(ee){function J(){return null!==ee&&ee.apply(this,arguments)||this}return d(J,ee),J}(w);L.TVGPoint=ie;var le=function ee(J,ce,pe,be){this.id=J,this.polyid=ce,this.polyvertid=pe,this.p=be,be.vv=this};L.VisibilityVertex=le;var N=function(){function ee(J,ce){this.source=J,this.target=ce}return ee.prototype.length=function(){var J=this.source.p.x-this.target.p.x,ce=this.source.p.y-this.target.p.y;return Math.sqrt(J*J+ce*ce)},ee}();L.VisibilityEdge=N;var V=function(){function ee(J,ce){if(this.P=J,this.V=[],this.E=[],ce)this.V=ce.V.slice(0),this.E=ce.E.slice(0);else{for(var pe=J.length,be=0;be<pe;be++){for(var fe=J[be],Ee=0;Ee<fe.length;++Ee){var st=new le(this.V.length,be,Ee,fe[Ee]);this.V.push(st),Ee>0&&this.E.push(new N(fe[Ee-1].vv,st))}fe.length>1&&this.E.push(new N(fe[0].vv,fe[fe.length-1].vv))}for(be=0;be<pe-1;be++){var he=J[be];for(Ee=be+1;Ee<pe;Ee++){var xe=J[Ee],Te=$(he,xe);for(var Fe in Te){var Ke=Te[Fe];this.addEdgeIfVisible(he[Ke.t1],xe[Ke.t2],be,Ee)}}}}}return ee.prototype.addEdgeIfVisible=function(J,ce,pe,be){this.intersectsPolys(new C(J.x,J.y,ce.x,ce.y),pe,be)||this.E.push(new N(J.vv,ce.vv))},ee.prototype.addPoint=function(J,ce){var pe=this.P.length;this.V.push(new le(this.V.length,pe,0,J));for(var be=0;be<pe;++be)if(be!==ce){var fe=this.P[be],Ee=S(J,fe);this.addEdgeIfVisible(J,fe[Ee.ltan],ce,be),this.addEdgeIfVisible(J,fe[Ee.rtan],ce,be)}return J.vv},ee.prototype.intersectsPolys=function(J,ce,pe){for(var be=0,fe=this.P.length;be<fe;++be)if(be!=ce&&be!=pe&&U(J,this.P[be]).length>0)return!0;return!1},ee}();function U(ee,J){for(var ce=[],pe=1,be=J.length;pe<be;++pe){var fe=D.Rectangle.lineIntersection(ee.x1,ee.y1,ee.x2,ee.y2,J[pe-1].x,J[pe-1].y,J[pe].x,J[pe].y);fe&&ce.push(fe)}return ce}function $(ee,J){for(var ce=ee.length-1,pe=J.length-1,be=new te,fe=0;fe<ce;++fe)for(var Ee=0;Ee<pe;++Ee){var Pe=ee[0==fe?ce-1:fe-1],st=ee[fe],he=ee[fe+1],xe=J[0==Ee?pe-1:Ee-1],Te=J[Ee],Fe=J[Ee+1],Ke=x(Pe,st,Te),Xe=x(st,xe,Te),ft=x(st,Te,Fe),Kt=x(xe,Te,st),Ki=x(Te,Pe,st),vn=x(Te,st,he);Ke>=0&&Xe>=0&&ft<0&&Kt>=0&&Ki>=0&&vn<0?be.ll=new se(fe,Ee):Ke<=0&&Xe<=0&&ft>0&&Kt<=0&&Ki<=0&&vn>0?be.rr=new se(fe,Ee):Ke<=0&&Xe>0&&ft<=0&&Kt>=0&&Ki<0&&vn>=0?be.rl=new se(fe,Ee):Ke>=0&&Xe<0&&ft>=0&&Kt<=0&&Ki>0&&vn<=0&&(be.lr=new se(fe,Ee))}return be}function oe(ee,J){return!ee.every(function(ce){return!function Y(ee,J){for(var ce=1,pe=J.length;ce<pe;++ce)if(f(J[ce-1],J[ce],ee))return!1;return!0}(ce,J)})}L.TangentVisibilityGraph=V,L.tangents=$,L.polysOverlap=function de(ee,J){if(oe(ee,J)||oe(J,ee))return!0;for(var ce=1,pe=ee.length;ce<pe;++ce){var be=ee[ce],fe=ee[ce-1];if(U(new C(fe.x,fe.y,be.x,be.y),J).length>0)return!0}return!1}},6767:(E,L,u)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var d=u(4068),D=u(8237),w=u(3858),C=function f(v,m,p){this.id=v,this.rect=m,this.children=p,this.leaf=void 0===p||0===p.length};L.NodeWrapper=C;var _=function f(v,m,p,y,S){void 0===y&&(y=null),void 0===S&&(S=null),this.id=v,this.x=m,this.y=p,this.node=y,this.line=S};L.Vert=_;var x=function(){function f(v,m){this.s=v,this.t=m;var p=f.findMatch(v,m),y=m.slice(0).reverse(),S=f.findMatch(v,y);p.length>=S.length?(this.length=p.length,this.si=p.si,this.ti=p.ti,this.reversed=!1):(this.length=S.length,this.si=S.si,this.ti=m.length-S.ti-S.length,this.reversed=!0)}return f.findMatch=function(v,m){for(var p=v.length,y=m.length,S={length:0,si:-1,ti:-1},k=new Array(p),O=0;O<p;O++){k[O]=new Array(y);for(var F=0;F<y;F++)if(v[O]===m[F]){var R=k[O][F]=0===O||0===F?1:k[O-1][F-1]+1;R>S.length&&(S.length=R,S.si=O-R+1,S.ti=F-R+1)}else k[O][F]=0}return S},f.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},f}();L.LongestCommonSubsequence=x;var g=function(){function f(v,m,p){var y=this;void 0===p&&(p=12),this.originalnodes=v,this.groupPadding=p,this.leaves=null,this.nodes=v.map(function(ie,le){return new C(le,m.getBounds(ie),m.getChildren(ie))}),this.leaves=this.nodes.filter(function(ie){return ie.leaf}),this.groups=this.nodes.filter(function(ie){return!ie.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(ie){return ie.children.forEach(function(le){return y.nodes[le].parent=ie})}),this.root={children:[]},this.nodes.forEach(function(ie){void 0===ie.parent&&(ie.parent=y.root,y.root.children.push(ie.id)),ie.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(ie,le){return y.getDepth(ie)-y.getDepth(le)}),this.backToFront.slice(0).reverse().filter(function(ie){return!ie.leaf}).forEach(function(ie){var le=d.Rectangle.empty();ie.children.forEach(function(N){return le=le.union(y.nodes[N].rect)}),ie.rect=le.inflate(y.groupPadding)});var k=this.midPoints(this.cols.map(function(ie){return ie.pos})),O=this.midPoints(this.rows.map(function(ie){return ie.pos})),F=k[0],R=k[k.length-1],z=O[0],H=O[O.length-1],X=this.rows.map(function(ie){return{x1:F,x2:R,y1:ie.pos,y2:ie.pos}}).concat(O.map(function(ie){return{x1:F,x2:R,y1:ie,y2:ie}})),se=this.cols.map(function(ie){return{x1:ie.pos,x2:ie.pos,y1:z,y2:H}}).concat(k.map(function(ie){return{x1:ie,x2:ie,y1:z,y2:H}})),te=X.concat(se);te.forEach(function(ie){return ie.verts=[]}),this.verts=[],this.edges=[],X.forEach(function(ie){return se.forEach(function(le){var N=new _(y.verts.length,le.x1,ie.y1);ie.verts.push(N),le.verts.push(N),y.verts.push(N);for(var V=y.backToFront.length;V-- >0;){var U=y.backToFront[V],$=U.rect,Y=Math.abs(N.x-$.cx()),oe=Math.abs(N.y-$.cy());if(Y<$.width()/2&&oe<$.height()/2){N.node=U;break}}})}),te.forEach(function(ie,le){y.nodes.forEach(function(oe,de){oe.rect.lineIntersections(ie.x1,ie.y1,ie.x2,ie.y2).forEach(function(ee,J){var ce=new _(y.verts.length,ee.x,ee.y,oe,ie);y.verts.push(ce),ie.verts.push(ce),oe.ports.push(ce)})});var N=Math.abs(ie.y1-ie.y2)<.1,V=function(oe,de){return N?de.x-oe.x:de.y-oe.y};ie.verts.sort(V);for(var U=1;U<ie.verts.length;U++){var $=ie.verts[U-1],Y=ie.verts[U];$.node&&$.node===Y.node&&$.node.leaf||y.edges.push({source:$.id,target:Y.id,length:Math.abs(V($,Y))})}})}return f.prototype.avg=function(v){return v.reduce(function(m,p){return m+p})/v.length},f.prototype.getGridLines=function(v){for(var m=[],p=this.leaves.slice(0,this.leaves.length);p.length>0;){var y=p.filter(function(k){return k.rect["overlap"+v.toUpperCase()](p[0].rect)}),S={nodes:y,pos:this.avg(y.map(function(k){return k.rect["c"+v]()}))};m.push(S),S.nodes.forEach(function(k){return p.splice(p.indexOf(k),1)})}return m.sort(function(k,O){return k.pos-O.pos}),m},f.prototype.getDepth=function(v){for(var m=0;v.parent!==this.root;)m++,v=v.parent;return m},f.prototype.midPoints=function(v){for(var m=v[1]-v[0],p=[v[0]-m/2],y=1;y<v.length;y++)p.push((v[y]+v[y-1])/2);return p.push(v[v.length-1]+m/2),p},f.prototype.findLineage=function(v){var m=[v];do{m.push(v=v.parent)}while(v!==this.root);return m.reverse()},f.prototype.findAncestorPathBetween=function(v,m){for(var p=this.findLineage(v),y=this.findLineage(m),S=0;p[S]===y[S];)S++;return{commonAncestor:p[S-1],lineages:p.slice(S).concat(y.slice(S))}},f.prototype.siblingObstacles=function(v,m){var p=this,y=this.findAncestorPathBetween(v,m),S={};y.lineages.forEach(function(O){return S[O.id]={}});var k=y.commonAncestor.children.filter(function(O){return!(O in S)});return y.lineages.filter(function(O){return O.parent!==y.commonAncestor}).forEach(function(O){return k=k.concat(O.parent.children.filter(function(F){return F!==O.id}))}),k.map(function(O){return p.nodes[O]})},f.getSegmentSets=function(v,m,p){for(var y=[],S=0;S<v.length;S++)for(var k=v[S],O=0;O<k.length;O++)(F=k[O]).edgeid=S,F.i=O,Math.abs(F[1][m]-F[0][m])<.1&&y.push(F);y.sort(function(se,te){return se[0][m]-te[0][m]});for(var z=[],H=null,X=0;X<y.length;X++){var F=y[X];(!H||Math.abs(F[0][m]-H.pos)>.1)&&z.push(H={pos:F[0][m],segments:[]}),H.segments.push(F)}return z},f.nudgeSegs=function(v,m,p,y,S,k){var O=y.length;if(!(O<=1)){for(var F=y.map(function(U){return new D.Variable(U[0][v])}),R=[],z=0;z<O;z++)for(var H=0;H<O;H++)if(z!==H){var X=y[z],te=X.edgeid,ie=y[H].edgeid,le=-1,N=-1;"x"==v?S(te,ie)&&(X[0][m]<X[1][m]?(le=H,N=z):(le=z,N=H)):S(te,ie)&&(X[0][m]<X[1][m]?(le=z,N=H):(le=H,N=z)),le>=0&&R.push(new D.Constraint(F[le],F[N],k))}new D.Solver(F,R).solve(),F.forEach(function(U,$){var Y=y[$],oe=U.position();Y[0][v]=Y[1][v]=oe;var de=p[Y.edgeid];Y.i>0&&(de[Y.i-1][1][v]=oe),Y.i<de.length-1&&(de[Y.i+1][0][v]=oe)})}},f.nudgeSegments=function(v,m,p,y,S){for(var k=f.getSegmentSets(v,m,p),O=0;O<k.length;O++){for(var F=k[O],R=[],z=0;z<F.segments.length;z++){var H=F.segments[z];R.push({type:0,s:H,pos:Math.min(H[0][p],H[1][p])}),R.push({type:1,s:H,pos:Math.max(H[0][p],H[1][p])})}R.sort(function(te,ie){return te.pos-ie.pos+te.type-ie.type});var X=[],se=0;R.forEach(function(te){0===te.type?(X.push(te.s),se++):se--,0==se&&(f.nudgeSegs(m,p,v,X,y,S),X=[])})}},f.prototype.routeEdges=function(v,m,p,y){var S=this,k=v.map(function(R){return S.route(p(R),y(R))}),O=f.orderEdges(k),F=k.map(function(R){return f.makeSegments(R)});return f.nudgeSegments(F,"x","y",O,m),f.nudgeSegments(F,"y","x",O,m),f.unreverseEdges(F,k),F},f.unreverseEdges=function(v,m){v.forEach(function(p,y){m[y].reversed&&(p.reverse(),p.forEach(function(k){k.reverse()}))})},f.angleBetween2Lines=function(v,m){var p=Math.atan2(v[0].y-v[1].y,v[0].x-v[1].x),y=Math.atan2(m[0].y-m[1].y,m[0].x-m[1].x),S=p-y;return(S>Math.PI||S<-Math.PI)&&(S=y-p),S},f.isLeft=function(v,m,p){return(m.x-v.x)*(p.y-v.y)-(m.y-v.y)*(p.x-v.x)<=0},f.getOrder=function(v){for(var m={},p=0;p<v.length;p++){var y=v[p];void 0===m[y.l]&&(m[y.l]={}),m[y.l][y.r]=!0}return function(S,k){return void 0!==m[S]&&m[S][k]}},f.orderEdges=function(v){for(var m=[],p=0;p<v.length-1;p++)for(var y=p+1;y<v.length;y++){var F,R,z,S=v[p],k=v[y],O=new x(S,k);if(0!==O.length){if(O.reversed&&(k.reverse(),k.reversed=!0,O=new x(S,k)),(O.si<=0||O.ti<=0)&&(O.si+O.length>=S.length||O.ti+O.length>=k.length)){m.push({l:p,r:y});continue}O.si+O.length>=S.length||O.ti+O.length>=k.length?(F=S[O.si+1],z=S[O.si-1],R=k[O.ti-1]):(F=S[O.si+O.length-2],R=S[O.si+O.length],z=k[O.ti+O.length]),f.isLeft(F,R,z)?m.push({l:y,r:p}):m.push({l:p,r:y})}}return f.getOrder(m)},f.makeSegments=function(v){function m(R){return{x:R.x,y:R.y}}for(var y=[],S=m(v[0]),k=1;k<v.length;k++){var O=m(v[k]),F=k<v.length-1?v[k+1]:null;(!F||(R=S,z=O,H=F,!(Math.abs((z.x-R.x)*(H.y-R.y)-(z.y-R.y)*(H.x-R.x))<.001)))&&(y.push([S,O]),S=O)}var R,z,H;return y},f.prototype.route=function(v,m){var p=this,y=this.nodes[v],S=this.nodes[m];this.obstacles=this.siblingObstacles(y,S);var k={};this.obstacles.forEach(function(N){return k[N.id]=N}),this.passableEdges=this.edges.filter(function(N){var V=p.verts[N.source],U=p.verts[N.target];return!(V.node&&V.node.id in k||U.node&&U.node.id in k)});for(var O=1;O<y.ports.length;O++)this.passableEdges.push({source:y.ports[0].id,target:y.ports[O].id,length:0});for(O=1;O<S.ports.length;O++)this.passableEdges.push({source:S.ports[0].id,target:S.ports[O].id,length:0});var le=new w.Calculator(this.verts.length,this.passableEdges,function(N){return N.source},function(N){return N.target},function(N){return N.length}).PathFromNodeToNodeWithPrevCost(y.ports[0].id,S.ports[0].id,function(N,V,U){var $=p.verts[N],Y=p.verts[V],oe=p.verts[U],de=Math.abs(oe.x-$.x),ee=Math.abs(oe.y-$.y);return $.node===y&&$.node===Y.node||Y.node===S&&Y.node===oe.node?0:de>1&&ee>1?1e3:0}).reverse().map(function(N){return p.verts[N]});return le.push(this.nodes[S.id].ports[0]),le.filter(function(N,V){return!(V<le.length-1&&le[V+1].node===y&&N.node===y||V>0&&N.node===S&&le[V-1].node===S)})},f.getRoutePath=function(v,m,p,y){var O,F,R,de,ee,S={routepath:"M "+v[0][0].x+" "+v[0][0].y+" ",arrowpath:""};if(v.length>1)for(var k=0;k<v.length;k++){var z=(F=(O=v[k])[1].x)-O[0].x,H=(R=O[1].y)-O[0].y;if(k<v.length-1){Math.abs(z)>0?F-=z/Math.abs(z)*m:R-=H/Math.abs(H)*m,S.routepath+="L "+F+" "+R+" ";var X=v[k+1],se=X[0].x,te=X[0].y;z=X[1].x-se,H=X[1].y-te;var V,U,N=f.angleBetween2Lines(O,X)<0?1:0;Math.abs(z)>0?(V=se+z/Math.abs(z)*m,U=te):(V=se,U=te+H/Math.abs(H)*m);var $=Math.abs(V-F),Y=Math.abs(U-R);S.routepath+="A "+$+" "+Y+" 0 0 "+N+" "+V+" "+U+" "}else{var oe=[F,R];Math.abs(z)>0?(de=[F-=z/Math.abs(z)*y,R+p],ee=[F,R-p]):(de=[F+p,R-=H/Math.abs(H)*y],ee=[F-p,R]),S.routepath+="L "+F+" "+R+" ",y>0&&(S.arrowpath="M "+oe[0]+" "+oe[1]+" L "+de[0]+" "+de[1]+" L "+ee[0]+" "+ee[1])}}else z=(F=(O=v[0])[1].x)-O[0].x,H=(R=O[1].y)-O[0].y,oe=[F,R],Math.abs(z)>0?(de=[F-=z/Math.abs(z)*y,R+p],ee=[F,R-p]):(de=[F+p,R-=H/Math.abs(H)*y],ee=[F-p,R]),S.routepath+="L "+F+" "+R+" ",y>0&&(S.arrowpath="M "+oe[0]+" "+oe[1]+" L "+de[0]+" "+de[1]+" L "+ee[0]+" "+ee[1]);return S},f}();L.GridRouter=g},345:(E,L)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var u_GOLDEN_SECTION=(1+Math.sqrt(5))/2;L.applyPacking=function d(w,C,_,k,S,f){void 0===S&&(S=1),void 0===f&&(f=!0);var p=C,y=_,O=(S=void 0!==S?S:1,k=void 0!==k?k:0,0),F=0,R=0,z=0,H=[];function ie(U,$){H=[],O=0,F=0,z=0;for(var Y=0;Y<U.length;Y++)le(U[Y],$);return Math.abs(function V(){return O/F}()-S)}function le(U,$){for(var Y=void 0,oe=0;oe<H.length;oe++)if(H[oe].space_left>=U.height&&H[oe].x+H[oe].width+U.width+10-$<=1e-4){Y=H[oe];break}H.push(U),void 0!==Y?(U.x=Y.x+Y.width+10,U.y=Y.bottom,U.space_left=U.height,U.bottom=U.y,Y.space_left-=U.height+10,Y.bottom+=U.height+10):(U.y=z,z+=U.height+10,U.x=0,U.bottom=U.y,U.space_left=U.height),U.y+U.height-F>-1e-4&&(F=U.y+U.height-0),U.x+U.width-O>-1e-4&&(O=U.x+U.width-0)}0!=w.length&&(function X(U){U.forEach(function(Y){!function $(Y){var oe=Number.MAX_VALUE,de=Number.MAX_VALUE,ee=0,J=0;Y.array.forEach(function(ce){var pe=void 0!==ce.width?ce.width:k,be=void 0!==ce.height?ce.height:k;pe/=2,be/=2,ee=Math.max(ce.x+pe,ee),oe=Math.min(ce.x-pe,oe),J=Math.max(ce.y+be,J),de=Math.min(ce.y-be,de)}),Y.width=ee-oe,Y.height=J-de}(Y)})}(w),function te(U,$){var Y=Number.POSITIVE_INFINITY,oe=0;U.sort(function(he,xe){return xe.height-he.height});for(var de=Pe=R=U.reduce(function(he,xe){return he.width<xe.width?he.width:xe.width}),ee=st=function N(U){var $=0;return U.forEach(function(Y){return $+=Y.width+10}),$}(U),J=0,ce=Number.MAX_VALUE,pe=Number.MAX_VALUE,be=-1,fe=Number.MAX_VALUE,Ee=Number.MAX_VALUE;fe>R||Ee>1e-4;){if(1!=be){var Pe=ee-(ee-de)/u_GOLDEN_SECTION;ce=ie(U,Pe)}if(0!=be){var st=de+(ee-de)/u_GOLDEN_SECTION;pe=ie(U,st)}if(fe=Math.abs(Pe-st),Ee=Math.abs(ce-pe),ce<Y&&(Y=ce,oe=Pe),pe<Y&&(Y=pe,oe=st),ce>pe?(de=Pe,Pe=st,ce=pe,be=1):(ee=st,st=Pe,pe=ce,be=0),J++>100)break}ie(U,oe)}(w),f&&function se(U){U.forEach(function($){var Y={x:0,y:0};$.array.forEach(function(ee){Y.x+=ee.x,Y.y+=ee.y}),Y.x/=$.array.length,Y.y/=$.array.length;var de_x=$.x-(Y.x-$.width/2)+p/2-O/2,de_y=$.y-(Y.y-$.height/2)+y/2-F/2;$.array.forEach(function(ee){ee.x+=de_x,ee.y+=de_y})})}(w))},L.separateGraphs=function D(w,C){for(var _={},x={},g=[],f=0,v=0;v<C.length;v++){var m=C[v],p=m.source,y=m.target;x[p.index]?x[p.index].push(y):x[p.index]=[y],x[y.index]?x[y.index].push(p):x[y.index]=[p]}for(v=0;v<w.length;v++){var S=w[v];_[S.index]||k(S,!0)}function k(O,F){if(void 0===_[O.index]){F&&(f++,g.push({array:[]})),_[O.index]=f,g[f-1].array.push(O);var R=x[O.index];if(R)for(var z=0;z<R.length;z++)k(R[z],!1)}}return g}},5675:(E,L,u)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var f,p,d=u(3900),D=u(8802),w=u(1786),C=u(4068),_=u(3858),x=u(225),g=u(345);function v(p){return void 0!==p.leaves||void 0!==p.groups}(p=f=L.EventType||(L.EventType={}))[p.start=0]="start",p[p.tick=1]="tick",p[p.end=2]="end";var m=function(){function p(){var y=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:p.getSourceIndex,getTargetIndex:p.getTargetIndex,setLength:p.setLinkLength,getType:function(S){return"function"==typeof y._linkType?y._linkType(S):0}}}return p.prototype.on=function(y,S){return this.event||(this.event={}),"string"==typeof y?this.event[f[y]]=S:this.event[y]=S,this},p.prototype.trigger=function(y){this.event&&void 0!==this.event[y.type]&&this.event[y.type](y)},p.prototype.kick=function(){for(;!this.tick(););},p.prototype.tick=function(){if(this._alpha<this._threshold)return this._running=!1,this.trigger({type:f.end,alpha:this._alpha=0,stress:this._lastStress}),!0;var k,O,y=this._nodes.length;for(this._descent.locks.clear(),O=0;O<y;++O)(k=this._nodes[O]).fixed&&((void 0===k.px||void 0===k.py)&&(k.px=k.x,k.py=k.y),this._descent.locks.add(O,[k.px,k.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:f.tick,alpha:this._alpha,stress:this._lastStress}),!1},p.prototype.updateNodePositions=function(){for(var k,y=this._descent.x[0],S=this._descent.x[1],O=this._nodes.length;O--;)(k=this._nodes[O]).x=y[O],k.y=S[O]},p.prototype.nodes=function(y){if(!y){if(0===this._nodes.length&&this._links.length>0){var S=0;this._links.forEach(function(O){S=Math.max(S,O.source,O.target)}),this._nodes=new Array(++S);for(var k=0;k<S;++k)this._nodes[k]={}}return this._nodes}return this._nodes=y,this},p.prototype.groups=function(y){var S=this;return y?(this._groups=y,this._rootGroup={},this._groups.forEach(function(k){void 0===k.padding&&(k.padding=1),void 0!==k.leaves&&k.leaves.forEach(function(O,F){"number"==typeof O&&((k.leaves[F]=S._nodes[O]).parent=k)}),void 0!==k.groups&&k.groups.forEach(function(O,F){"number"==typeof O&&((k.groups[F]=S._groups[O]).parent=k)})}),this._rootGroup.leaves=this._nodes.filter(function(k){return void 0===k.parent}),this._rootGroup.groups=this._groups.filter(function(k){return void 0===k.parent}),this):this._groups},p.prototype.powerGraphGroups=function(y){var S=d.getGroups(this._nodes,this._links,this.linkAccessor,this._rootGroup);return this.groups(S.groups),y(S),this},p.prototype.avoidOverlaps=function(y){return arguments.length?(this._avoidOverlaps=y,this):this._avoidOverlaps},p.prototype.handleDisconnected=function(y){return arguments.length?(this._handleDisconnected=y,this):this._handleDisconnected},p.prototype.flowLayout=function(y,S){return arguments.length||(y="y"),this._directedLinkConstraints={axis:y,getMinSeparation:"number"==typeof S?function(){return S}:S},this},p.prototype.links=function(y){return arguments.length?(this._links=y,this):this._links},p.prototype.constraints=function(y){return arguments.length?(this._constraints=y,this):this._constraints},p.prototype.distanceMatrix=function(y){return arguments.length?(this._distanceMatrix=y,this):this._distanceMatrix},p.prototype.size=function(y){return y?(this._canvasSize=y,this):this._canvasSize},p.prototype.defaultNodeSize=function(y){return y?(this._defaultNodeSize=y,this):this._defaultNodeSize},p.prototype.groupCompactness=function(y){return y?(this._groupCompactness=y,this):this._groupCompactness},p.prototype.linkDistance=function(y){return y?(this._linkDistance="function"==typeof y?y:+y,this._linkLengthCalculator=null,this):this._linkDistance},p.prototype.linkType=function(y){return this._linkType=y,this},p.prototype.convergenceThreshold=function(y){return y?(this._threshold="function"==typeof y?y:+y,this):this._threshold},p.prototype.alpha=function(y){return arguments.length?(y=+y,this._alpha?this._alpha=y>0?y:0:y>0&&(this._running||(this._running=!0,this.trigger({type:f.start,alpha:this._alpha=y}),this.kick())),this):this._alpha},p.prototype.getLinkLength=function(y){return"function"==typeof this._linkDistance?+this._linkDistance(y):this._linkDistance},p.setLinkLength=function(y,S){y.length=S},p.prototype.getLinkType=function(y){return"function"==typeof this._linkType?this._linkType(y):0},p.prototype.symmetricDiffLinkLengths=function(y,S){var k=this;return void 0===S&&(S=1),this.linkDistance(function(O){return y*O.length}),this._linkLengthCalculator=function(){return D.symmetricDiffLinkLengths(k._links,k.linkAccessor,S)},this},p.prototype.jaccardLinkLengths=function(y,S){var k=this;return void 0===S&&(S=1),this.linkDistance(function(O){return y*O.length}),this._linkLengthCalculator=function(){return D.jaccardLinkLengths(k._links,k.linkAccessor,S)},this},p.prototype.start=function(y,S,k,O,F,R){var z=this;void 0===y&&(y=0),void 0===S&&(S=0),void 0===k&&(k=0),void 0===O&&(O=0),void 0===F&&(F=!0),void 0===R&&(R=!0);var oe,se=this.nodes().length,te=se+2*this._groups.length,le=this._canvasSize[0],N=this._canvasSize[1],V=new Array(te),U=new Array(te),$=null,Y=this._avoidOverlaps;this._nodes.forEach(function(fe,Ee){fe.index=Ee,void 0===fe.x&&(fe.x=le/2,fe.y=N/2),V[Ee]=fe.x,U[Ee]=fe.y}),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?oe=this._distanceMatrix:(oe=new _.Calculator(te,this._links,p.getSourceIndex,p.getTargetIndex,function(fe){return z.getLinkLength(fe)}).DistanceMatrix(),$=w.Descent.createSquareMatrix(te,function(){return 2}),this._links.forEach(function(fe){"number"==typeof fe.source&&(fe.source=z._nodes[fe.source]),"number"==typeof fe.target&&(fe.target=z._nodes[fe.target])}),this._links.forEach(function(fe){var Ee=p.getSourceIndex(fe),Pe=p.getTargetIndex(fe);$[Ee][Pe]=$[Pe][Ee]=fe.weight||1}));var de=w.Descent.createSquareMatrix(te,function(fe,Ee){return oe[fe][Ee]});if(this._rootGroup&&void 0!==this._rootGroup.groups){var H=se;this._groups.forEach(function(Ee){(function(Ee,Pe,st,he){$[Ee][Pe]=$[Pe][Ee]=st,de[Ee][Pe]=de[Pe][Ee]=.1})(H,H+1,z._groupCompactness),V[H]=0,U[H++]=0,V[H]=0,U[H++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var J=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,J=J.concat(D.generateDirectedEdgeConstraints(se,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new w.Descent([V,U],de),this._descent.locks.clear(),H=0;H<se;++H){var ce=this._nodes[H];ce.fixed&&(ce.px=ce.x,ce.py=ce.y,this._descent.locks.add(H,[ce.x,ce.y]))}if(this._descent.threshold=this._threshold,this.initialLayout(y,V,U),J.length>0&&(this._descent.project=new C.Projection(this._nodes,this._groups,this._rootGroup,J).projectFunctions()),this._descent.run(S),this.separateOverlappingComponents(le,N,R),this.avoidOverlaps(Y),Y&&(this._nodes.forEach(function(fe,Ee){fe.x=V[Ee],fe.y=U[Ee]}),this._descent.project=new C.Projection(this._nodes,this._groups,this._rootGroup,J,!0).projectFunctions(),this._nodes.forEach(function(fe,Ee){V[Ee]=fe.x,U[Ee]=fe.y})),this._descent.G=$,this._descent.run(k),O){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=se,this._descent.scaleSnapByMaxH=se!=te;var be=w.Descent.createSquareMatrix(te,function(fe,Ee){return fe>=se||Ee>=se?$[fe][Ee]:0});this._descent.G=be,this._descent.run(O)}return this.updateNodePositions(),this.separateOverlappingComponents(le,N,R),F?this.resume():this},p.prototype.initialLayout=function(y,S,k){if(this._groups.length>0&&y>0){var O=this._nodes.length,F=this._links.map(function(z){return{source:z.source.index,target:z.target.index}}),R=this._nodes.map(function(z){return{index:z.index}});this._groups.forEach(function(z,H){R.push({index:z.index=O+H})}),this._groups.forEach(function(z,H){void 0!==z.leaves&&z.leaves.forEach(function(X){return F.push({source:z.index,target:X.index})}),void 0!==z.groups&&z.groups.forEach(function(X){return F.push({source:z.index,target:X.index})})}),(new p).size(this.size()).nodes(R).links(F).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(y,0,0,0,!1),this._nodes.forEach(function(z){S[z.index]=R[z.index].x,k[z.index]=R[z.index].y})}else this._descent.run(y)},p.prototype.separateOverlappingComponents=function(y,S,k){var O=this;if(void 0===k&&(k=!0),!this._distanceMatrix&&this._handleDisconnected){var F=this._descent.x[0],R=this._descent.x[1];this._nodes.forEach(function(H,X){H.x=F[X],H.y=R[X]});var z=g.separateGraphs(this._nodes,this._links);g.applyPacking(z,y,S,this._defaultNodeSize,1,k),this._nodes.forEach(function(H,X){O._descent.x[0][X]=H.x,O._descent.x[1][X]=H.y,H.bounds&&(H.bounds.setXCentre(H.x),H.bounds.setYCentre(H.y))})}},p.prototype.resume=function(){return this.alpha(.1)},p.prototype.stop=function(){return this.alpha(0)},p.prototype.prepareEdgeRouting=function(y){void 0===y&&(y=0),this._visibilityGraph=new x.TangentVisibilityGraph(this._nodes.map(function(S){return S.bounds.inflate(-y).vertices()}))},p.prototype.routeEdge=function(y,S,k){void 0===S&&(S=5);var O=[],F=new x.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),R={x:y.source.x,y:y.source.y},z={x:y.target.x,y:y.target.y},H=F.addPoint(R,y.source.index),X=F.addPoint(z,y.target.index);F.addEdgeIfVisible(R,z,y.source.index,y.target.index),void 0!==k&&k(F);var N=new _.Calculator(F.V.length,F.E,function(de){return de.source.id},function(de){return de.target.id},function(de){return de.length()}).PathFromNodeToNode(H.id,X.id);if(1===N.length||N.length===F.V.length){var V=C.makeEdgeBetween(y.source.innerBounds,y.target.innerBounds,S);O=[V.sourceIntersection,V.arrowStart]}else{for(var U=N.length-2,$=F.V[N[U]].p,Y=F.V[N[0]].p,oe=(O=[y.source.innerBounds.rayIntersection($.x,$.y)],U);oe>=0;--oe)O.push(F.V[N[oe]].p);O.push(C.makeEdgeTo(Y,y.target.innerBounds,S))}return O},p.getSourceIndex=function(y){return"number"==typeof y.source?y.source:y.source.index},p.getTargetIndex=function(y){return"number"==typeof y.target?y.target:y.target.index},p.linkId=function(y){return p.getSourceIndex(y)+"-"+p.getTargetIndex(y)},p.dragStart=function(y){v(y)?p.storeOffset(y,p.dragOrigin(y)):(p.stopNode(y),y.fixed|=2)},p.stopNode=function(y){y.px=y.x,y.py=y.y},p.storeOffset=function(y,S){void 0!==y.leaves&&y.leaves.forEach(function(k){k.fixed|=2,p.stopNode(k),k._dragGroupOffsetX=k.x-S.x,k._dragGroupOffsetY=k.y-S.y}),void 0!==y.groups&&y.groups.forEach(function(k){return p.storeOffset(k,S)})},p.dragOrigin=function(y){return v(y)?{x:y.bounds.cx(),y:y.bounds.cy()}:y},p.drag=function(y,S){v(y)?(void 0!==y.leaves&&y.leaves.forEach(function(k){y.bounds.setXCentre(S.x),y.bounds.setYCentre(S.y),k.px=k._dragGroupOffsetX+S.x,k.py=k._dragGroupOffsetY+S.y}),void 0!==y.groups&&y.groups.forEach(function(k){return p.drag(k,S)})):(y.px=S.x,y.py=S.y)},p.dragEnd=function(y){v(y)?(void 0!==y.leaves&&y.leaves.forEach(function(S){p.dragEnd(S),delete S._dragGroupOffsetX,delete S._dragGroupOffsetY}),void 0!==y.groups&&y.groups.forEach(p.dragEnd)):y.fixed&=-7},p.mouseOver=function(y){y.fixed|=4,y.px=y.x,y.py=y.y},p.mouseOut=function(y){y.fixed&=-5},p}();L.Layout=m},6461:(E,L,u)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var d=u(3858),D=u(1786),w=u(4068),C=u(8802),_=function(){function v(m,p){this.source=m,this.target=p}return v.prototype.actualLength=function(m){var p=this;return Math.sqrt(m.reduce(function(y,S){var k=S[p.target]-S[p.source];return y+k*k},0))},v}();L.Link3D=_,L.Node3D=function v(m,p,y){void 0===m&&(m=0),void 0===p&&(p=0),void 0===y&&(y=0),this.x=m,this.y=p,this.z=y};var g=function(){function v(m,p,y){var S=this;void 0===y&&(y=1),this.nodes=m,this.links=p,this.idealLinkLength=y,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(v.k);for(var k=0;k<v.k;++k)this.result[k]=new Array(m.length);m.forEach(function(O,F){for(var R=0,z=v.dims;R<z.length;R++){var H=z[R];void 0===O[H]&&(O[H]=Math.random())}S.result[0][F]=O.x,S.result[1][F]=O.y,S.result[2][F]=O.z})}return v.prototype.linkLength=function(m){return m.actualLength(this.result)},v.prototype.start=function(m){var p=this;void 0===m&&(m=100);var y=this.nodes.length,S=new f;this.useJaccardLinkLengths&&C.jaccardLinkLengths(this.links,S,1.5),this.links.forEach(function(H){return H.length*=p.idealLinkLength});var k=new d.Calculator(y,this.links,function(H){return H.source},function(H){return H.target},function(H){return H.length}).DistanceMatrix(),O=D.Descent.createSquareMatrix(y,function(H,X){return k[H][X]}),F=D.Descent.createSquareMatrix(y,function(){return 2});this.links.forEach(function(H){var X=H.source,se=H.target;return F[X][se]=F[se][X]=1}),this.descent=new D.Descent(this.result,O),this.descent.threshold=.001,this.descent.G=F,this.constraints&&(this.descent.project=new w.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var R=0;R<this.nodes.length;R++){var z=this.nodes[R];z.fixed&&this.descent.locks.add(R,[z.x,z.y,z.z])}return this.descent.run(m),this},v.prototype.tick=function(){this.descent.locks.clear();for(var m=0;m<this.nodes.length;m++){var p=this.nodes[m];p.fixed&&this.descent.locks.add(m,[p.x,p.y,p.z])}return this.descent.rungeKutta()},v.k=(v.dims=["x","y","z"]).length,v}();L.Layout3D=g;var f=function(){function v(){}return v.prototype.getSourceIndex=function(m){return m.source},v.prototype.getTargetIndex=function(m){return m.target},v.prototype.getLength=function(m){return m.length},v.prototype.setLength=function(m,p){m.length=p},v}()},8802:(E,L)=>{"use strict";function u(f,v){var m={};for(var p in f)m[p]={};for(var p in v)m[p]={};return Object.keys(m).length}function d(f,v){var m=0;for(var p in f)void 0!==v[p]&&++m;return m}function w(f,v,m,p){var y=function D(f,v){var m={},p=function(y,S){void 0===m[y]&&(m[y]={}),m[y][S]={}};return f.forEach(function(y){var S=v.getSourceIndex(y),k=v.getTargetIndex(y);p(S,k),p(k,S)}),m}(f,p);f.forEach(function(S){var k=y[p.getSourceIndex(S)],O=y[p.getTargetIndex(S)];p.setLength(S,1+v*m(k,O))})}function g(f,v,m){var p=[],y=0,S=[],k=[];function O(N){N.index=N.lowlink=y++,S.push(N),N.onStack=!0;for(var V=0,U=N.out;V<U.length;V++){var $=U[V];void 0===$.index?(O($),N.lowlink=Math.min(N.lowlink,$.lowlink)):$.onStack&&(N.lowlink=Math.min(N.lowlink,$.index))}if(N.lowlink===N.index){for(var Y=[];S.length&&(($=S.pop()).onStack=!1,Y.push($),$!==N););k.push(Y.map(function(oe){return oe.id}))}}for(var F=0;F<f;F++)p.push({id:F,out:[]});for(var R=0,z=v;R<z.length;R++){var H=z[R],X=p[m.getSourceIndex(H)],se=p[m.getTargetIndex(H)];X.out.push(se)}for(var te=0,ie=p;te<ie.length;te++){var le=ie[te];void 0===le.index&&O(le)}return k}Object.defineProperty(L,"__esModule",{value:!0}),L.symmetricDiffLinkLengths=function C(f,v,m){void 0===m&&(m=1),w(f,m,function(p,y){return Math.sqrt(u(p,y)-d(p,y))},v)},L.jaccardLinkLengths=function _(f,v,m){void 0===m&&(m=1),w(f,m,function(p,y){return Math.min(Object.keys(p).length,Object.keys(y).length)<1.1?0:d(p,y)/u(p,y)},v)},L.generateDirectedEdgeConstraints=function x(f,v,m,p){var y=g(f,v,p),S={};y.forEach(function(O,F){return O.forEach(function(R){return S[R]=F})});var k=[];return v.forEach(function(O){var F=p.getSourceIndex(O),R=p.getTargetIndex(O);S[F]!==S[R]&&k.push({axis:m,left:F,right:R,gap:p.getMinSeparation(O)})}),k},L.stronglyConnectedComponents=g},3900:(E,L)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var u=function v(m,p,y){this.source=m,this.target=p,this.type=y};L.PowerEdge=u;var d=function(){function v(m,p,y,S){var k=this;if(this.linkAccessor=y,this.modules=new Array(m),this.roots=[],S)this.initModulesFromGroup(S);else{this.roots.push(new _);for(var O=0;O<m;++O)this.roots[0].add(this.modules[O]=new w(O))}this.R=p.length,p.forEach(function(F){var R=k.modules[y.getSourceIndex(F)],z=k.modules[y.getTargetIndex(F)],H=y.getType(F);R.outgoing.add(H,z),z.incoming.add(H,R)})}return v.prototype.initModulesFromGroup=function(m){var p=new _;this.roots.push(p);for(var y=0;y<m.leaves.length;++y){var S=m.leaves[y],k=new w(S.id);this.modules[S.id]=k,p.add(k)}if(m.groups)for(var O=0;O<m.groups.length;++O){var F=m.groups[O],R={};for(var z in F)"leaves"!==z&&"groups"!==z&&F.hasOwnProperty(z)&&(R[z]=F[z]);p.add(new w(-1-O,new x,new x,this.initModulesFromGroup(F),R))}return p},v.prototype.merge=function(m,p,y){void 0===y&&(y=0);var S=m.incoming.intersection(p.incoming),k=m.outgoing.intersection(p.outgoing),O=new _;O.add(m),O.add(p);var F=new w(this.modules.length,k,S,O);this.modules.push(F);var R=function(z,H,X){z.forAll(function(se,te){se.forAll(function(ie){var le=ie[H];le.add(te,F),le.remove(te,m),le.remove(te,p),m[X].remove(te,ie),p[X].remove(te,ie)})})};return R(k,"incoming","outgoing"),R(S,"outgoing","incoming"),this.R-=S.count()+k.count(),this.roots[y].remove(m),this.roots[y].remove(p),this.roots[y].add(F),F},v.prototype.rootMerges=function(m){void 0===m&&(m=0);for(var p=this.roots[m].modules(),y=p.length,S=new Array(y*(y-1)),k=0,O=0,F=y-1;O<F;++O)for(var R=O+1;R<y;++R){var z=p[O],H=p[R];S[k]={id:k,nEdges:this.nEdges(z,H),a:z,b:H},k++}return S},v.prototype.greedyMerge=function(){for(var m=0;m<this.roots.length;++m)if(!(this.roots[m].modules().length<2)){var y=this.rootMerges(m).sort(function(S,k){return S.nEdges==k.nEdges?S.id-k.id:S.nEdges-k.nEdges})[0];if(!(y.nEdges>=this.R))return this.merge(y.a,y.b,m),!0}},v.prototype.nEdges=function(m,p){var y=m.incoming.intersection(p.incoming),S=m.outgoing.intersection(p.outgoing);return this.R-y.count()-S.count()},v.prototype.getGroupHierarchy=function(m){var p=this,y=[];return D(this.roots[0],{},y),this.allEdges().forEach(function(O){var F=p.modules[O.source],R=p.modules[O.target];m.push(new u(void 0===F.gid?O.source:y[F.gid],void 0===R.gid?O.target:y[R.gid],O.type))}),y},v.prototype.allEdges=function(){var m=[];return v.getEdges(this.roots[0],m),m},v.getEdges=function(m,p){m.forAll(function(y){y.getEdges(p),v.getEdges(y.children,p)})},v}();function D(v,m,p){v.forAll(function(y){if(y.isLeaf())m.leaves||(m.leaves=[]),m.leaves.push(y.id);else{var S=m;if(y.gid=p.length,!y.isIsland()||y.isPredefined()){if(S={id:y.gid},y.isPredefined())for(var k in y.definition)S[k]=y.definition[k];m.groups||(m.groups=[]),m.groups.push(y.gid),p.push(S)}D(y.children,S,p)}})}L.Configuration=d;var w=function(){function v(m,p,y,S,k){void 0===p&&(p=new x),void 0===y&&(y=new x),void 0===S&&(S=new _),this.id=m,this.outgoing=p,this.incoming=y,this.children=S,this.definition=k}return v.prototype.getEdges=function(m){var p=this;this.outgoing.forAll(function(y,S){y.forAll(function(k){m.push(new u(p.id,k.id,S))})})},v.prototype.isLeaf=function(){return 0===this.children.count()},v.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},v.prototype.isPredefined=function(){return void 0!==this.definition},v}();L.Module=w;var _=function(){function v(){this.table={}}return v.prototype.count=function(){return Object.keys(this.table).length},v.prototype.intersection=function(m){var p=new v;return p.table=function C(v,m){var p={};for(var y in v)y in m&&(p[y]=v[y]);return p}(this.table,m.table),p},v.prototype.intersectionCount=function(m){return this.intersection(m).count()},v.prototype.contains=function(m){return m in this.table},v.prototype.add=function(m){this.table[m.id]=m},v.prototype.remove=function(m){delete this.table[m.id]},v.prototype.forAll=function(m){for(var p in this.table)m(this.table[p])},v.prototype.modules=function(){var m=[];return this.forAll(function(p){p.isPredefined()||m.push(p)}),m},v}();L.ModuleSet=_;var x=function(){function v(){this.sets={},this.n=0}return v.prototype.count=function(){return this.n},v.prototype.contains=function(m){var p=!1;return this.forAllModules(function(y){!p&&y.id==m&&(p=!0)}),p},v.prototype.add=function(m,p){(m in this.sets?this.sets[m]:this.sets[m]=new _).add(p),++this.n},v.prototype.remove=function(m,p){var y=this.sets[m];y.remove(p),0===y.count()&&delete this.sets[m],--this.n},v.prototype.forAll=function(m){for(var p in this.sets)m(this.sets[p],Number(p))},v.prototype.forAllModules=function(m){this.forAll(function(p,y){return p.forAll(m)})},v.prototype.intersection=function(m){var p=new v;return this.forAll(function(y,S){if(S in m.sets){var k=y.intersection(m.sets[S]),O=k.count();O>0&&(p.sets[S]=k,p.n+=O)}}),p},v}();L.LinkSets=x,L.getGroups=function f(v,m,p,y){for(var k=new d(v.length,m,p,y);k.greedyMerge(););var O=[],F=k.getGroupHierarchy(O);return O.forEach(function(R){var z=function(H){var X=R[H];"number"==typeof X&&(R[H]=v[X])};z("source"),z("target")}),{groups:F,powerEdges:O}}},8866:(E,L)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var u=function(){function D(w){this.elem=w,this.subheaps=[]}return D.prototype.toString=function(w){for(var C="",_=!1,x=0;x<this.subheaps.length;++x){var g=this.subheaps[x];g.elem?(_&&(C+=","),C+=g.toString(w),_=!0):_=!1}return""!==C&&(C="("+C+")"),(this.elem?w(this.elem):"")+C},D.prototype.forEach=function(w){this.empty()||(w(this.elem,this),this.subheaps.forEach(function(C){return C.forEach(w)}))},D.prototype.count=function(){return this.empty()?0:1+this.subheaps.reduce(function(w,C){return w+C.count()},0)},D.prototype.min=function(){return this.elem},D.prototype.empty=function(){return null==this.elem},D.prototype.contains=function(w){if(this===w)return!0;for(var C=0;C<this.subheaps.length;C++)if(this.subheaps[C].contains(w))return!0;return!1},D.prototype.isHeap=function(w){var C=this;return this.subheaps.every(function(_){return w(C.elem,_.elem)&&_.isHeap(w)})},D.prototype.insert=function(w,C){return this.merge(new D(w),C)},D.prototype.merge=function(w,C){return this.empty()?w:w.empty()?this:C(this.elem,w.elem)?(this.subheaps.push(w),this):(w.subheaps.push(this),w)},D.prototype.removeMin=function(w){return this.empty()?null:this.mergePairs(w)},D.prototype.mergePairs=function(w){if(0==this.subheaps.length)return new D(null);if(1==this.subheaps.length)return this.subheaps[0];var C=this.subheaps.pop().merge(this.subheaps.pop(),w),_=this.mergePairs(w);return C.merge(_,w)},D.prototype.decreaseKey=function(w,C,_,x){var g=w.removeMin(x);w.elem=g.elem,w.subheaps=g.subheaps,null!==_&&null!==g.elem&&_(w.elem,w);var f=new D(C);return null!==_&&_(C,f),this.merge(f,x)},D}();L.PairingHeap=u;var d=function(){function D(w){this.lessThan=w}return D.prototype.top=function(){return this.empty()?null:this.root.elem},D.prototype.push=function(){for(var w=[],C=0;C<arguments.length;C++)w[C]=arguments[C];for(var _,g,x=0;g=w[x];++x)_=new u(g),this.root=this.empty()?_:this.root.merge(_,this.lessThan);return _},D.prototype.empty=function(){return!this.root||!this.root.elem},D.prototype.isHeap=function(){return this.root.isHeap(this.lessThan)},D.prototype.forEach=function(w){this.root.forEach(w)},D.prototype.pop=function(){if(this.empty())return null;var w=this.root.min();return this.root=this.root.removeMin(this.lessThan),w},D.prototype.reduceKey=function(w,C,_){void 0===_&&(_=null),this.root=this.root.decreaseKey(w,C,_,this.lessThan)},D.prototype.toString=function(w){return this.root.toString(w)},D.prototype.count=function(){return this.root.count()},D}();L.PriorityQueue=d},4655:function(E,L){"use strict";var _,u=this&&this.__extends||(_=function(x,g){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var m in v)v.hasOwnProperty(m)&&(f[m]=v[m])})(x,g)},function(x,g){function f(){this.constructor=x}_(x,g),x.prototype=null===g?Object.create(g):(f.prototype=g.prototype,new f)});Object.defineProperty(L,"__esModule",{value:!0});var d=function(){function _(){this.findIter=function(x){for(var g=this._root,f=this.iterator();null!==g;){var v=this._comparator(x,g.data);if(0===v)return f._cursor=g,f;f._ancestors.push(g),g=g.get_child(v>0)}return null}}return _.prototype.clear=function(){this._root=null,this.size=0},_.prototype.find=function(x){for(var g=this._root;null!==g;){var f=this._comparator(x,g.data);if(0===f)return g.data;g=g.get_child(f>0)}return null},_.prototype.lowerBound=function(x){return this._bound(x,this._comparator)},_.prototype.upperBound=function(x){var g=this._comparator;return this._bound(x,function f(v,m){return g(m,v)})},_.prototype.min=function(){var x=this._root;if(null===x)return null;for(;null!==x.left;)x=x.left;return x.data},_.prototype.max=function(){var x=this._root;if(null===x)return null;for(;null!==x.right;)x=x.right;return x.data},_.prototype.iterator=function(){return new D(this)},_.prototype.each=function(x){for(var f,g=this.iterator();null!==(f=g.next());)x(f)},_.prototype.reach=function(x){for(var f,g=this.iterator();null!==(f=g.prev());)x(f)},_.prototype._bound=function(x,g){for(var f=this._root,v=this.iterator();null!==f;){var m=this._comparator(x,f.data);if(0===m)return v._cursor=f,v;v._ancestors.push(f),f=f.get_child(m>0)}for(var p=v._ancestors.length-1;p>=0;--p)if(g(x,(f=v._ancestors[p]).data)>0)return v._cursor=f,v._ancestors.length=p,v;return v._ancestors.length=0,v},_}();L.TreeBase=d;var D=function(){function _(x){this._tree=x,this._ancestors=[],this._cursor=null}return _.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},_.prototype.next=function(){if(null===this._cursor){var x=this._tree._root;null!==x&&this._minNode(x)}else if(null===this._cursor.right){var g;do{if(g=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===g)}else this._ancestors.push(this._cursor),this._minNode(this._cursor.right);return null!==this._cursor?this._cursor.data:null},_.prototype.prev=function(){if(null===this._cursor){var x=this._tree._root;null!==x&&this._maxNode(x)}else if(null===this._cursor.left){var g;do{if(g=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===g)}else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left);return null!==this._cursor?this._cursor.data:null},_.prototype._minNode=function(x){for(;null!==x.left;)this._ancestors.push(x),x=x.left;this._cursor=x},_.prototype._maxNode=function(x){for(;null!==x.right;)this._ancestors.push(x),x=x.right;this._cursor=x},_}();L.Iterator=D;var w=function(){function _(x){this.data=x,this.left=null,this.right=null,this.red=!0}return _.prototype.get_child=function(x){return x?this.right:this.left},_.prototype.set_child=function(x,g){x?this.right=g:this.left=g},_}(),C=function(_){function x(g){var f=_.call(this)||this;return f._root=null,f._comparator=g,f.size=0,f}return u(x,_),x.prototype.insert=function(g){var f=!1;if(null===this._root)this._root=new w(g),f=!0,this.size++;else{var v=new w(void 0),m=!1,p=!1,y=null,S=v,k=null,O=this._root;for(S.right=this._root;;){if(null===O?(O=new w(g),k.set_child(m,O),f=!0,this.size++):x.is_red(O.left)&&x.is_red(O.right)&&(O.red=!0,O.left.red=!1,O.right.red=!1),x.is_red(O)&&x.is_red(k)){var F=S.right===y;O===k.get_child(p)?S.set_child(F,x.single_rotate(y,!p)):S.set_child(F,x.double_rotate(y,!p))}var R=this._comparator(O.data,g);if(0===R)break;p=m,null!==y&&(S=y),y=k,k=O,O=O.get_child(m=R<0)}this._root=v.right}return this._root.red=!1,f},x.prototype.remove=function(g){if(null===this._root)return!1;var f=new w(void 0),v=f;v.right=this._root;for(var m=null,p=null,y=null,S=!0;null!==v.get_child(S);){var k=S;p=m,m=v,v=v.get_child(S);var O=this._comparator(g,v.data);if(S=O>0,0===O&&(y=v),!x.is_red(v)&&!x.is_red(v.get_child(S)))if(x.is_red(v.get_child(!S))){var F=x.single_rotate(v,S);m.set_child(k,F),m=F}else if(!x.is_red(v.get_child(!S))){var R=m.get_child(!k);if(null!==R)if(x.is_red(R.get_child(!k))||x.is_red(R.get_child(k))){var z=p.right===m;x.is_red(R.get_child(k))?p.set_child(z,x.double_rotate(m,k)):x.is_red(R.get_child(!k))&&p.set_child(z,x.single_rotate(m,k));var H=p.get_child(z);H.red=!0,v.red=!0,H.left.red=!1,H.right.red=!1}else m.red=!1,R.red=!0,v.red=!0}}return null!==y&&(y.data=v.data,m.set_child(m.right===v,v.get_child(null===v.left)),this.size--),this._root=f.right,null!==this._root&&(this._root.red=!1),null!==y},x.is_red=function(g){return null!==g&&g.red},x.single_rotate=function(g,f){var v=g.get_child(!f);return g.set_child(!f,v.get_child(f)),v.set_child(f,g),g.red=!0,v.red=!1,v},x.double_rotate=function(g,f){return g.set_child(!f,x.single_rotate(g.get_child(!f),!f)),x.single_rotate(g,f)},x}(d);L.RBTree=C},4068:function(E,L,u){"use strict";var N,d=this&&this.__extends||(N=function(V,U){return(N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,Y){$.__proto__=Y}||function($,Y){for(var oe in Y)Y.hasOwnProperty(oe)&&($[oe]=Y[oe])})(V,U)},function(V,U){function $(){this.constructor=V}N(V,U),V.prototype=null===U?Object.create(U):($.prototype=U.prototype,new $)});Object.defineProperty(L,"__esModule",{value:!0});var D=u(8237),w=u(4655);function C(N){return N.bounds=void 0!==N.leaves?N.leaves.reduce(function(V,U){return U.bounds.union(V)},_.empty()):_.empty(),void 0!==N.groups&&(N.bounds=N.groups.reduce(function(V,U){return C(U).union(V)},N.bounds)),N.bounds=N.bounds.inflate(N.padding),N.bounds}L.computeGroupBounds=C;var _=function(){function N(V,U,$,Y){this.x=V,this.X=U,this.y=$,this.Y=Y}return N.empty=function(){return new N(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},N.prototype.cx=function(){return(this.x+this.X)/2},N.prototype.cy=function(){return(this.y+this.Y)/2},N.prototype.overlapX=function(V){var U=this.cx(),$=V.cx();return U<=$&&V.x<this.X?this.X-V.x:$<=U&&this.x<V.X?V.X-this.x:0},N.prototype.overlapY=function(V){var U=this.cy(),$=V.cy();return U<=$&&V.y<this.Y?this.Y-V.y:$<=U&&this.y<V.Y?V.Y-this.y:0},N.prototype.setXCentre=function(V){var U=V-this.cx();this.x+=U,this.X+=U},N.prototype.setYCentre=function(V){var U=V-this.cy();this.y+=U,this.Y+=U},N.prototype.width=function(){return this.X-this.x},N.prototype.height=function(){return this.Y-this.y},N.prototype.union=function(V){return new N(Math.min(this.x,V.x),Math.max(this.X,V.X),Math.min(this.y,V.y),Math.max(this.Y,V.Y))},N.prototype.lineIntersections=function(V,U,$,Y){for(var oe=[[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]],de=[],ee=0;ee<4;++ee){var J=N.lineIntersection(V,U,$,Y,oe[ee][0],oe[ee][1],oe[ee][2],oe[ee][3]);null!==J&&de.push({x:J.x,y:J.y})}return de},N.prototype.rayIntersection=function(V,U){var $=this.lineIntersections(this.cx(),this.cy(),V,U);return $.length>0?$[0]:null},N.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}]},N.lineIntersection=function(V,U,$,Y,oe,de,ee,J){var ce=$-V,pe=ee-oe,be=Y-U,fe=J-de,Ee=fe*ce-pe*be;if(0==Ee)return null;var Pe=V-oe,st=U-de,xe=(pe*st-fe*Pe)/Ee,Fe=(ce*st-be*Pe)/Ee;return xe>=0&&xe<=1&&Fe>=0&&Fe<=1?{x:V+xe*ce,y:U+xe*be}:null},N.prototype.inflate=function(V){return new N(this.x-V,this.X+V,this.y-V,this.Y+V)},N}();L.Rectangle=_,L.makeEdgeBetween=function x(N,V,U){var $=N.rayIntersection(V.cx(),V.cy())||{x:N.cx(),y:N.cy()},Y=V.rayIntersection(N.cx(),N.cy())||{x:V.cx(),y:V.cy()},oe=Y.x-$.x,de=Y.y-$.y,ee=Math.sqrt(oe*oe+de*de),J=ee-U;return{sourceIntersection:$,targetIntersection:Y,arrowStart:{x:$.x+J*oe/ee,y:$.y+J*de/ee}}},L.makeEdgeTo=function g(N,V,U){var $=V.rayIntersection(N.x,N.y);$||($={x:V.cx(),y:V.cy()});var Y=$.x-N.x,oe=$.y-N.y,de=Math.sqrt(Y*Y+oe*oe);return{x:$.x-U*Y/de,y:$.y-U*oe/de}};var f=function N(V,U,$){this.v=V,this.r=U,this.pos=$,this.prev=p(),this.next=p()},v=function N(V,U,$){this.isOpen=V,this.v=U,this.pos=$};function m(N,V){return N.pos>V.pos?1:N.pos<V.pos||N.isOpen?-1:V.isOpen?1:0}function p(){return new w.RBTree(function(N,V){return N.pos-V.pos})}var y={getCentre:function(N){return N.cx()},getOpen:function(N){return N.y},getClose:function(N){return N.Y},getSize:function(N){return N.width()},makeRect:function(N,V,U,$){return new _(U-$/2,U+$/2,N,V)},findNeighbours:function F(N,V){var U=function($,Y){for(var de,oe=V.findIter(N);null!==(de=oe[$]());){var ee=de.r.overlapX(N.r);if((ee<=0||ee<=de.r.overlapY(N.r))&&(N[$].insert(de),de[Y].insert(N)),ee<=0)break}};U("next","prev"),U("prev","next")}},S={getCentre:function(N){return N.cy()},getOpen:function(N){return N.x},getClose:function(N){return N.X},getSize:function(N){return N.height()},makeRect:function(N,V,U,$){return new _(N,V,U-$/2,U+$/2)},findNeighbours:function R(N,V){var U=function($,Y){var oe=V.findIter(N)[$]();null!==oe&&oe.r.overlapX(N.r)>0&&(N[$].insert(oe),oe[Y].insert(N))};U("next","prev"),U("prev","next")}};function k(N,V,U,$){void 0===$&&($=!1);var Y=N.padding,oe=void 0!==N.groups?N.groups.length:0,de=void 0!==N.leaves?N.leaves.length:0,ee=oe?N.groups.reduce(function(Xe,ft){return Xe.concat(k(ft,V,U,!0))},[]):[],J=($?2:0)+de+oe,ce=new Array(J),pe=new Array(J),be=0,fe=function(Xe,ft){pe[be]=Xe,ce[be++]=ft};if($){var Ee=N.bounds,Pe=V.getCentre(Ee),st=V.getSize(Ee)/2,he=V.getOpen(Ee),xe=V.getClose(Ee),Te=Pe-st+Y/2,Fe=Pe+st-Y/2;N.minVar.desiredPosition=Te,fe(V.makeRect(he,xe,Te,Y),N.minVar),N.maxVar.desiredPosition=Fe,fe(V.makeRect(he,xe,Fe,Y),N.maxVar)}de&&N.leaves.forEach(function(Xe){return fe(Xe.bounds,Xe.variable)}),oe&&N.groups.forEach(function(Xe){var ft=Xe.bounds;fe(V.makeRect(V.getOpen(ft),V.getClose(ft),V.getCentre(ft),V.getSize(ft)),Xe.minVar)});var Ke=O(pe,ce,V,U);return oe&&(ce.forEach(function(Xe){Xe.cOut=[],Xe.cIn=[]}),Ke.forEach(function(Xe){Xe.left.cOut.push(Xe),Xe.right.cIn.push(Xe)}),N.groups.forEach(function(Xe){var ft=(Xe.padding-V.getSize(Xe.bounds))/2;Xe.minVar.cIn.forEach(function(Kt){return Kt.gap+=ft}),Xe.minVar.cOut.forEach(function(Kt){Kt.left=Xe.maxVar,Kt.gap+=ft})})),ee.concat(Ke)}function O(N,V,U,$){var Y,oe=N.length,de=2*oe;console.assert(V.length>=oe);var ee=new Array(de);for(Y=0;Y<oe;++Y){var J=N[Y],ce=new f(V[Y],J,U.getCentre(J));ee[Y]=new v(!0,ce,U.getOpen(J)),ee[Y+oe]=new v(!1,ce,U.getClose(J))}ee.sort(m);var pe=new Array,be=p();for(Y=0;Y<de;++Y){var fe=ee[Y];if(ce=fe.v,fe.isOpen)be.insert(ce),U.findNeighbours(ce,be);else{be.remove(ce);var Ee=function(he,xe){var Te=(U.getSize(he.r)+U.getSize(xe.r))/2+$;pe.push(new D.Constraint(he.v,xe.v,Te))},Pe=function(he,xe,Te){for(var Fe,Ke=ce[he].iterator();null!==(Fe=Ke[he]());)Te(Fe,ce),Fe[xe].remove(ce)};Pe("prev","next",function(he,xe){return Ee(he,xe)}),Pe("next","prev",function(he,xe){return Ee(xe,he)})}}return console.assert(0===be.size),pe}function z(N,V){return O(N,V,y,1e-6)}function H(N,V){return O(N,V,S,1e-6)}function X(N){return k(N,y,1e-6)}function se(N){return k(N,S,1e-6)}L.generateXConstraints=z,L.generateYConstraints=H,L.generateXGroupConstraints=X,L.generateYGroupConstraints=se,L.removeOverlaps=function te(N){var V=N.map(function(Y){return new D.Variable(Y.cx())}),U=z(N,V),$=new D.Solver(V,U);$.solve(),V.forEach(function(Y,oe){return N[oe].setXCentre(Y.position())}),V=N.map(function(Y){return new D.Variable(Y.cy())}),U=H(N,V),($=new D.Solver(V,U)).solve(),V.forEach(function(Y,oe){return N[oe].setYCentre(Y.position())})};var ie=function(N){function V(U,$){var Y=N.call(this,0,$)||this;return Y.index=U,Y}return d(V,N),V}(D.Variable);L.IndexedVariable=ie;var le=function(){function N(V,U,$,Y,oe){var de=this;if(void 0===$&&($=null),void 0===Y&&(Y=null),void 0===oe&&(oe=!1),this.nodes=V,this.groups=U,this.rootGroup=$,this.avoidOverlaps=oe,this.variables=V.map(function(J,ce){return J.variable=new ie(ce,1)}),Y&&this.createConstraints(Y),oe&&$&&void 0!==$.groups){V.forEach(function(J){if(J.width&&J.height){var ce=J.width/2,pe=J.height/2;J.bounds=new _(J.x-ce,J.x+ce,J.y-pe,J.y+pe)}else J.bounds=new _(J.x,J.x,J.y,J.y)}),C($);var ee=V.length;U.forEach(function(J){de.variables[ee]=J.minVar=new ie(ee++,void 0!==J.stiffness?J.stiffness:.01),de.variables[ee]=J.maxVar=new ie(ee++,void 0!==J.stiffness?J.stiffness:.01)})}}return N.prototype.createSeparation=function(V){return new D.Constraint(this.nodes[V.left].variable,this.nodes[V.right].variable,V.gap,void 0!==V.equality&&V.equality)},N.prototype.makeFeasible=function(V){var U=this;if(this.avoidOverlaps){var $="x",Y="width";"x"===V.axis&&($="y",Y="height");var oe=V.offsets.map(function(ee){return U.nodes[ee.node]}).sort(function(ee,J){return ee[$]-J[$]}),de=null;oe.forEach(function(ee){if(de){var J=de[$]+de[Y];J>ee[$]&&(ee[$]=J)}de=ee})}},N.prototype.createAlignment=function(V){var U=this,$=this.nodes[V.offsets[0].node].variable;this.makeFeasible(V);var Y="x"===V.axis?this.xConstraints:this.yConstraints;V.offsets.slice(1).forEach(function(oe){Y.push(new D.Constraint($,U.nodes[oe.node].variable,oe.offset,!0))})},N.prototype.createConstraints=function(V){var U=this,$=function(Y){return void 0===Y.type||"separation"===Y.type};this.xConstraints=V.filter(function(Y){return"x"===Y.axis&&$(Y)}).map(function(Y){return U.createSeparation(Y)}),this.yConstraints=V.filter(function(Y){return"y"===Y.axis&&$(Y)}).map(function(Y){return U.createSeparation(Y)}),V.filter(function(Y){return"alignment"===Y.type}).forEach(function(Y){return U.createAlignment(Y)})},N.prototype.setupVariablesAndBounds=function(V,U,$,Y){this.nodes.forEach(function(oe,de){oe.fixed?(oe.variable.weight=oe.fixedWeight?oe.fixedWeight:1e3,$[de]=Y(oe)):oe.variable.weight=1;var ee=(oe.width||0)/2,J=(oe.height||0)/2,ce=V[de],pe=U[de];oe.bounds=new _(ce-ee,ce+ee,pe-J,pe+J)})},N.prototype.xProject=function(V,U,$){!this.rootGroup&&!this.avoidOverlaps&&!this.xConstraints||this.project(V,U,V,$,function(Y){return Y.px},this.xConstraints,X,function(Y){return Y.bounds.setXCentre($[Y.variable.index]=Y.variable.position())},function(Y){var oe=$[Y.minVar.index]=Y.minVar.position(),de=$[Y.maxVar.index]=Y.maxVar.position(),ee=Y.padding/2;Y.bounds.x=oe-ee,Y.bounds.X=de+ee})},N.prototype.yProject=function(V,U,$){!this.rootGroup&&!this.yConstraints||this.project(V,U,U,$,function(Y){return Y.py},this.yConstraints,se,function(Y){return Y.bounds.setYCentre($[Y.variable.index]=Y.variable.position())},function(Y){var oe=$[Y.minVar.index]=Y.minVar.position(),de=$[Y.maxVar.index]=Y.maxVar.position(),ee=Y.padding/2;Y.bounds.y=oe-ee,Y.bounds.Y=de+ee})},N.prototype.projectFunctions=function(){var V=this;return[function(U,$,Y){return V.xProject(U,$,Y)},function(U,$,Y){return V.yProject(U,$,Y)}]},N.prototype.project=function(V,U,$,Y,oe,de,ee,J,ce){this.setupVariablesAndBounds(V,U,Y,oe),this.rootGroup&&this.avoidOverlaps&&(C(this.rootGroup),de=de.concat(ee(this.rootGroup))),this.solve(this.variables,de,$,Y),this.nodes.forEach(J),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(ce),C(this.rootGroup))},N.prototype.solve=function(V,U,$,Y){var oe=new D.Solver(V,U);oe.setStartingPositions($),oe.setDesiredPositions(Y),oe.solve()},N}();L.Projection=le},3858:(E,L,u)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var d=u(8866),D=function x(g,f){this.id=g,this.distance=f},w=function x(g){this.id=g,this.neighbours=[]},C=function x(g,f,v){this.node=g,this.prev=f,this.d=v},_=function(){function x(g,f,v,m,p){this.n=g,this.es=f,this.neighbours=new Array(this.n);for(var y=this.n;y--;)this.neighbours[y]=new w(y);for(y=this.es.length;y--;){var S=this.es[y],k=v(S),O=m(S),F=p(S);this.neighbours[k].neighbours.push(new D(O,F)),this.neighbours[O].neighbours.push(new D(k,F))}}return x.prototype.DistanceMatrix=function(){for(var g=new Array(this.n),f=0;f<this.n;++f)g[f]=this.dijkstraNeighbours(f);return g},x.prototype.DistancesFromNode=function(g){return this.dijkstraNeighbours(g)},x.prototype.PathFromNodeToNode=function(g,f){return this.dijkstraNeighbours(g,f)},x.prototype.PathFromNodeToNodeWithPrevCost=function(g,f,v){var m=new d.PriorityQueue(function(se,te){return se.d<=te.d}),p=this.neighbours[g],y=new C(p,null,0),S={};for(m.push(y);!m.empty()&&(p=(y=m.pop()).node).id!==f;)for(var k=p.neighbours.length;k--;){var O=p.neighbours[k],F=this.neighbours[O.id];if(!y.prev||F.id!==y.prev.node.id){var R=F.id+","+p.id;if(!(R in S&&S[R]<=y.d)){var z=y.prev?v(y.prev.node.id,p.id,F.id):0,H=y.d+O.distance+z;S[R]=H,m.push(new C(F,y,H))}}}for(var X=[];y.prev;)X.push((y=y.prev).node.id);return X},x.prototype.dijkstraNeighbours=function(g,f){void 0===f&&(f=-1);for(var v=new d.PriorityQueue(function(z,H){return z.d<=H.d}),m=this.neighbours.length,p=new Array(m);m--;){var y=this.neighbours[m];y.d=m===g?0:Number.POSITIVE_INFINITY,y.q=v.push(y)}for(;!v.empty();){var S=v.pop();if(p[S.id]=S.d,S.id===f){for(var k=[],O=S;void 0!==O.prev;)k.push(O.prev.id),O=O.prev;return k}for(m=S.neighbours.length;m--;){var F=S.neighbours[m],R=(O=this.neighbours[F.id],S.d+F.distance);S.d!==Number.MAX_VALUE&&O.d>R&&(O.d=R,O.prev=S,v.reduceKey(O.q,O,function(H,X){return H.q=X}))}}return p},x}();L.Calculator=_},8237:(E,L)=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});var u=function(){function g(f){this.scale=f,this.AB=0,this.AD=0,this.A2=0}return g.prototype.addVariable=function(f){var v=this.scale/f.scale,p=f.weight;this.AB+=p*v*(f.offset/f.scale),this.AD+=p*v*f.desiredPosition,this.A2+=p*v*v},g.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},g}();L.PositionStats=u;var d=function(){function g(f,v,m,p){void 0===p&&(p=!1),this.left=f,this.right=v,this.gap=m,this.equality=p,this.active=!1,this.unsatisfiable=!1,this.left=f,this.right=v,this.gap=m,this.equality=p}return g.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},g}();L.Constraint=d;var D=function(){function g(f,v,m){void 0===v&&(v=1),void 0===m&&(m=1),this.desiredPosition=f,this.weight=v,this.scale=m,this.offset=0}return g.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},g.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},g.prototype.visitNeighbours=function(f,v){var m=function(p,y){return p.active&&f!==y&&v(p,y)};this.cOut.forEach(function(p){return m(p,p.right)}),this.cIn.forEach(function(p){return m(p,p.left)})},g}();L.Variable=D;var w=function(){function g(f){this.vars=[],f.offset=0,this.ps=new u(f.scale),this.addVariable(f)}return g.prototype.addVariable=function(f){f.block=this,this.vars.push(f),this.ps.addVariable(f),this.posn=this.ps.getPosn()},g.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var f=0,v=this.vars.length;f<v;++f)this.ps.addVariable(this.vars[f]);this.posn=this.ps.getPosn()},g.prototype.compute_lm=function(f,v,m){var p=this,y=f.dfdv();return f.visitNeighbours(v,function(S,k){var O=p.compute_lm(k,f,m);k===S.right?(y+=O*S.left.scale,S.lm=O):(y+=O*S.right.scale,S.lm=-O),m(S)}),y/f.scale},g.prototype.populateSplitBlock=function(f,v){var m=this;f.visitNeighbours(v,function(p,y){y.offset=f.offset+(y===p.right?p.gap:-p.gap),m.addVariable(y),m.populateSplitBlock(y,f)})},g.prototype.traverse=function(f,v,m,p){var y=this;void 0===m&&(m=this.vars[0]),void 0===p&&(p=null),m.visitNeighbours(p,function(S,k){v.push(f(S)),y.traverse(f,v,k,m)})},g.prototype.findMinLM=function(){var f=null;return this.compute_lm(this.vars[0],null,function(v){!v.equality&&(null===f||v.lm<f.lm)&&(f=v)}),f},g.prototype.findMinLMBetween=function(f,v){this.compute_lm(f,null,function(){});var m=null;return this.findPath(f,null,v,function(p,y){!p.equality&&p.right===y&&(null===m||p.lm<m.lm)&&(m=p)}),m},g.prototype.findPath=function(f,v,m,p){var y=this,S=!1;return f.visitNeighbours(v,function(k,O){!S&&(O===m||y.findPath(O,f,m,p))&&(S=!0,p(k,O))}),S},g.prototype.isActiveDirectedPathBetween=function(f,v){if(f===v)return!0;for(var m=f.cOut.length;m--;){var p=f.cOut[m];if(p.active&&this.isActiveDirectedPathBetween(p.right,v))return!0}return!1},g.split=function(f){return f.active=!1,[g.createSplitBlock(f.left),g.createSplitBlock(f.right)]},g.createSplitBlock=function(f){var v=new g(f);return v.populateSplitBlock(f,null),v},g.prototype.splitBetween=function(f,v){var m=this.findMinLMBetween(f,v);if(null!==m){var p=g.split(m);return{constraint:m,lb:p[0],rb:p[1]}}return null},g.prototype.mergeAcross=function(f,v,m){v.active=!0;for(var p=0,y=f.vars.length;p<y;++p){var S=f.vars[p];S.offset+=m,this.addVariable(S)}this.posn=this.ps.getPosn()},g.prototype.cost=function(){for(var f=0,v=this.vars.length;v--;){var m=this.vars[v],p=m.position()-m.desiredPosition;f+=p*p*m.weight}return f},g}();L.Block=w;var C=function(){function g(f){this.vs=f;var v=f.length;for(this.list=new Array(v);v--;){var m=new w(f[v]);this.list[v]=m,m.blockInd=v}}return g.prototype.cost=function(){for(var f=0,v=this.list.length;v--;)f+=this.list[v].cost();return f},g.prototype.insert=function(f){f.blockInd=this.list.length,this.list.push(f)},g.prototype.remove=function(f){var v=this.list.length-1,m=this.list[v];this.list.length=v,f!==m&&(this.list[f.blockInd]=m,m.blockInd=f.blockInd)},g.prototype.merge=function(f){var v=f.left.block,m=f.right.block,p=f.right.offset-f.left.offset-f.gap;v.vars.length<m.vars.length?(m.mergeAcross(v,f,p),this.remove(v)):(v.mergeAcross(m,f,-p),this.remove(m))},g.prototype.forEach=function(f){this.list.forEach(f)},g.prototype.updateBlockPositions=function(){this.list.forEach(function(f){return f.updateWeightedPosition()})},g.prototype.split=function(f){var v=this;this.updateBlockPositions(),this.list.forEach(function(m){var p=m.findMinLM();null!==p&&p.lm<_.LAGRANGIAN_TOLERANCE&&(m=p.left.block,w.split(p).forEach(function(y){return v.insert(y)}),v.remove(m),f.push(p))})},g}();L.Blocks=C;var _=function(){function g(f,v){this.vs=f,this.cs=v,this.vs=f,f.forEach(function(m){m.cIn=[],m.cOut=[]}),this.cs=v,v.forEach(function(m){m.left.cOut.push(m),m.right.cIn.push(m)}),this.inactive=v.map(function(m){return m.active=!1,m}),this.bs=null}return g.prototype.cost=function(){return this.bs.cost()},g.prototype.setStartingPositions=function(f){this.inactive=this.cs.map(function(v){return v.active=!1,v}),this.bs=new C(this.vs),this.bs.forEach(function(v,m){return v.posn=f[m]})},g.prototype.setDesiredPositions=function(f){this.vs.forEach(function(v,m){return v.desiredPosition=f[m]})},g.prototype.mostViolated=function(){for(var f=Number.MAX_VALUE,v=null,m=this.inactive,p=m.length,y=p,S=0;S<p;++S){var k=m[S];if(!k.unsatisfiable){var O=k.slack();if((k.equality||O<f)&&(f=O,v=k,y=S,k.equality))break}}return y!==p&&(f<g.ZERO_UPPERBOUND&&!v.active||v.equality)&&(m[y]=m[p-1],m.length=p-1),v},g.prototype.satisfy=function(){null==this.bs&&(this.bs=new C(this.vs)),this.bs.split(this.inactive);for(var f=null;(f=this.mostViolated())&&(f.equality||f.slack()<g.ZERO_UPPERBOUND&&!f.active);){var v=f.left.block;if(v!==f.right.block)this.bs.merge(f);else{if(v.isActiveDirectedPathBetween(f.right,f.left)){f.unsatisfiable=!0;continue}var p=v.splitBetween(f.left,f.right);if(null===p){f.unsatisfiable=!0;continue}this.bs.insert(p.lb),this.bs.insert(p.rb),this.bs.remove(v),this.inactive.push(p.constraint),f.slack()>=0?this.inactive.push(f):this.bs.merge(f)}}},g.prototype.solve=function(){this.satisfy();for(var f=Number.MAX_VALUE,v=this.bs.cost();Math.abs(f-v)>1e-4;)this.satisfy(),f=v,v=this.bs.cost();return v},g.LAGRANGIAN_TOLERANCE=-1e-4,g.ZERO_UPPERBOUND=-1e-10,g}();L.Solver=_,L.removeOverlapInOneDimension=function x(g,f,v){for(var m=g.map(function(ie){return new D(ie.desiredCenter)}),p=[],y=g.length,S=0;S<y-1;S++)p.push(new d(m[S],m[S+1],(g[S].size+g[S+1].size)/2));var F=m[0],R=m[y-1],z=g[0].size/2,H=g[y-1].size/2,X=null,se=null;return f&&(X=new D(f,1e3*F.weight),m.push(X),p.push(new d(X,F,z))),v&&(se=new D(v,1e3*R.weight),m.push(se),p.push(new d(R,se,H))),new _(m,p).solve(),{newCenters:m.slice(0,g.length).map(function(ie){return ie.position()}),lowerBound:X?X.position():F.position()-z,upperBound:se?se.position():R.position()+H}}}},fv={};function Zn(E){var L=fv[E];if(void 0!==L)return L.exports;var u=fv[E]={id:E,loaded:!1,exports:{}};return ZE[E].call(u.exports,u,u.exports,Zn),u.loaded=!0,u.exports}Zn.d=(E,L)=>{for(var u in L)Zn.o(L,u)&&!Zn.o(E,u)&&Object.defineProperty(E,u,{enumerable:!0,get:L[u]})},Zn.o=(E,L)=>Object.prototype.hasOwnProperty.call(E,L),Zn.r=E=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(E,"__esModule",{value:!0})},Zn.nmd=E=>(E.paths=[],E.children||(E.children=[]),E),(()=>{"use strict";var E={};Zn.r(E),Zn.d(E,{forceCenter:()=>B9,forceCollide:()=>YD,forceLink:()=>JD,forceManyBody:()=>eE,forceRadial:()=>h7,forceSimulation:()=>qD,forceX:()=>d7,forceY:()=>f7});var L={};Zn.r(L),Zn.d(L,{dispatch:()=>sh});var u={};function d(t){return"function"==typeof t}Zn.r(u),Zn.d(u,{interval:()=>g7,now:()=>oa,timeout:()=>Qg,timer:()=>hh,timerFlush:()=>fT});let D=!1;const w={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const n=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+n.stack)}else D&&console.log("RxJS: Back to a better error behavior. Thank you. <3");D=t},get useDeprecatedSynchronousErrorHandling(){return D}};function C(t){setTimeout(()=>{throw t},0)}const _={closed:!0,next(t){},error(t){if(w.useDeprecatedSynchronousErrorHandling)throw t;C(t)},complete(){}},x=Array.isArray||(t=>t&&"number"==typeof t.length);function g(t){return null!==t&&"object"==typeof t}const v=(()=>{function t(n){return Error.call(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n,this}return t.prototype=Object.create(Error.prototype),t})();class m{constructor(n){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,n&&(this._ctorUnsubscribe=!0,this._unsubscribe=n)}unsubscribe(){let n;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:s,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof m)e.remove(this);else if(null!==e)for(let o=0;o<e.length;++o)e[o].remove(this);if(d(s)){i&&(this._unsubscribe=void 0);try{s.call(this)}catch(o){n=o instanceof v?p(o.errors):[o]}}if(x(r)){let o=-1,a=r.length;for(;++o<a;){const l=r[o];if(g(l))try{l.unsubscribe()}catch(c){n=n||[],c instanceof v?n=n.concat(p(c.errors)):n.push(c)}}}if(n)throw new v(n)}add(n){let e=n;if(!n)return m.EMPTY;switch(typeof n){case"function":e=new m(n);case"object":if(e===this||e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof m)){const r=e;e=new m,e._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+n+" added to Subscription.")}let{_parentOrParents:i}=e;if(null===i)e._parentOrParents=this;else if(i instanceof m){if(i===this)return e;e._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return e;i.push(this)}const s=this._subscriptions;return null===s?this._subscriptions=[e]:s.push(e),e}remove(n){const e=this._subscriptions;if(e){const i=e.indexOf(n);-1!==i&&e.splice(i,1)}}}var t;function p(t){return t.reduce((n,e)=>n.concat(e instanceof v?e.errors:e),[])}m.EMPTY=((t=new m).closed=!0,t);const y="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class k extends m{constructor(n,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=_;break;case 1:if(!n){this.destination=_;break}if("object"==typeof n){n instanceof k?(this.syncErrorThrowable=n.syncErrorThrowable,this.destination=n,n.add(this)):(this.syncErrorThrowable=!0,this.destination=new O(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new O(this,n,e,i)}}[y](){return this}static create(n,e,i){const s=new k(n,e,i);return s.syncErrorThrowable=!1,s}next(n){this.isStopped||this._next(n)}error(n){this.isStopped||(this.isStopped=!0,this._error(n))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(n){this.destination.next(n)}_error(n){this.destination.error(n),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:n}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=n,this}}class O extends k{constructor(n,e,i,s){super(),this._parentSubscriber=n;let r,o=this;d(e)?r=e:e&&(r=e.next,i=e.error,s=e.complete,e!==_&&(o=Object.create(e),d(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=i,this._complete=s}next(n){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;w.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,n)&&this.unsubscribe():this.__tryOrUnsub(this._next,n)}}error(n){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=w;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,n),this.unsubscribe()):(this.__tryOrUnsub(this._error,n),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=n,e.syncErrorThrown=!0):C(n),this.unsubscribe();else{if(this.unsubscribe(),i)throw n;C(n)}}}complete(){if(!this.isStopped){const{_parentSubscriber:n}=this;if(this._complete){const e=()=>this._complete.call(this._context);w.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(n,e){try{n.call(this._context,e)}catch(i){if(this.unsubscribe(),w.useDeprecatedSynchronousErrorHandling)throw i;C(i)}}__tryOrSetError(n,e,i){if(!w.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(s){return w.useDeprecatedSynchronousErrorHandling?(n.syncErrorValue=s,n.syncErrorThrown=!0,!0):(C(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:n}=this;this._context=null,this._parentSubscriber=null,n.unsubscribe()}}const z="function"==typeof Symbol&&Symbol.observable||"@@observable";function H(t){return t}let te=(()=>{class t{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,s){const{operator:r}=this,o=function R(t,n,e){if(t){if(t instanceof k)return t;if(t[y])return t[y]()}return t||n||e?new k(t,n,e):new k(_)}(e,i,s);if(o.add(r?r.call(o,this.source):this.source||w.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),w.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){w.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function F(t){for(;t;){const{closed:n,destination:e,isStopped:i}=t;if(n||i)return!1;t=e&&e instanceof k?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=ie(i))((s,r)=>{let o;o=this.subscribe(a=>{try{e(a)}catch(l){r(l),o&&o.unsubscribe()}},r,s)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[z](){return this}pipe(...e){return 0===e.length?this:function se(t){return 0===t.length?H:1===t.length?t[0]:function(e){return t.reduce((i,s)=>s(i),e)}}(e)(this)}toPromise(e){return new(e=ie(e))((i,s)=>{let r;this.subscribe(o=>r=o,o=>s(o),()=>i(r))})}}return t.create=n=>new t(n),t})();function ie(t){if(t||(t=w.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const N=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class V extends m{constructor(n,e){super(),this.subject=n,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const n=this.subject,e=n.observers;if(this.subject=null,!e||0===e.length||n.isStopped||n.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class U extends k{constructor(n){super(n),this.destination=n}}let $=(()=>{class t extends te{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[y](){return new U(this)}lift(e){const i=new Y(this,this);return i.operator=e,i}next(e){if(this.closed)throw new N;if(!this.isStopped){const{observers:i}=this,s=i.length,r=i.slice();for(let o=0;o<s;o++)r[o].next(e)}}error(e){if(this.closed)throw new N;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:i}=this,s=i.length,r=i.slice();for(let o=0;o<s;o++)r[o].error(e);this.observers.length=0}complete(){if(this.closed)throw new N;this.isStopped=!0;const{observers:e}=this,i=e.length,s=e.slice();for(let r=0;r<i;r++)s[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new N;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new N;return this.hasError?(e.error(this.thrownError),m.EMPTY):this.isStopped?(e.complete(),m.EMPTY):(this.observers.push(e),new V(this,e))}asObservable(){const e=new te;return e.source=this,e}}return t.create=(n,e)=>new Y(n,e),t})();class Y extends ${constructor(n,e){super(),this.destination=n,this.source=e}next(n){const{destination:e}=this;e&&e.next&&e.next(n)}error(n){const{destination:e}=this;e&&e.error&&this.destination.error(n)}complete(){const{destination:n}=this;n&&n.complete&&this.destination.complete()}_subscribe(n){const{source:e}=this;return e?this.source.subscribe(n):m.EMPTY}}function oe(t){return t&&"function"==typeof t.schedule}function de(t,n){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new ee(t,n))}}class ee{constructor(n,e){this.project=n,this.thisArg=e}call(n,e){return e.subscribe(new J(n,this.project,this.thisArg))}}class J extends k{constructor(n,e,i){super(n),this.project=e,this.count=0,this.thisArg=i||this}_next(n){let e;try{e=this.project.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const ce=t=>n=>{for(let e=0,i=t.length;e<i&&!n.closed;e++)n.next(t[e]);n.complete()},fe=function be(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),he=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function xe(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const Te=t=>{if(t&&"function"==typeof t[z])return(t=>n=>{const e=t[z]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(n)})(t);if(he(t))return ce(t);if(xe(t))return(t=>n=>(t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,C),n))(t);if(t&&"function"==typeof t[fe])return(t=>n=>{const e=t[fe]();for(;;){let i;try{i=e.next()}catch(s){return n.error(s),n}if(i.done){n.complete();break}if(n.next(i.value),n.closed)break}return"function"==typeof e.return&&n.add(()=>{e.return&&e.return()}),n})(t);{const e=`You provided ${g(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function Xe(t,n){return new te(e=>{const i=new m;let s=0;return i.add(n.schedule(function(){s!==t.length?(e.next(t[s++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function Ln(t,n){return n?function vn(t,n){if(null!=t){if(function Kt(t){return t&&"function"==typeof t[z]}(t))return function Fe(t,n){return new te(e=>{const i=new m;return i.add(n.schedule(()=>{const s=t[z]();i.add(s.subscribe({next(r){i.add(n.schedule(()=>e.next(r)))},error(r){i.add(n.schedule(()=>e.error(r)))},complete(){i.add(n.schedule(()=>e.complete()))}}))})),i})}(t,n);if(xe(t))return function Ke(t,n){return new te(e=>{const i=new m;return i.add(n.schedule(()=>t.then(s=>{i.add(n.schedule(()=>{e.next(s),i.add(n.schedule(()=>e.complete()))}))},s=>{i.add(n.schedule(()=>e.error(s)))}))),i})}(t,n);if(he(t))return Xe(t,n);if(function Ki(t){return t&&"function"==typeof t[fe]}(t)||"string"==typeof t)return function ft(t,n){if(!t)throw new Error("Iterable cannot be null");return new te(e=>{const i=new m;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(n.schedule(()=>{s=t[fe](),i.add(n.schedule(function(){if(e.closed)return;let r,o;try{const a=s.next();r=a.value,o=a.done}catch(a){return void e.error(a)}o?e.complete():(e.next(r),this.schedule())}))})),i})}(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,n):t instanceof te?t:new te(Te(t))}class wt extends k{constructor(n){super(),this.parent=n}_next(n){this.parent.notifyNext(n)}_error(n){this.parent.notifyError(n),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Ct extends k{notifyNext(n){this.destination.next(n)}notifyError(n){this.destination.error(n)}notifyComplete(){this.destination.complete()}}function Qi(t,n){if(!n.closed)return t instanceof te?t.subscribe(n):Te(t)(n)}function rc(t,n,e=Number.POSITIVE_INFINITY){return"function"==typeof n?i=>i.pipe(rc((s,r)=>Ln(t(s,r)).pipe(de((o,a)=>n(s,o,r,a))),e)):("number"==typeof n&&(e=n),i=>i.lift(new co(t,e)))}class co{constructor(n,e=Number.POSITIVE_INFINITY){this.project=n,this.concurrent=e}call(n,e){return e.subscribe(new vs(n,this.project,this.concurrent))}}class vs extends Ct{constructor(n,e,i=Number.POSITIVE_INFINITY){super(n),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(n){this.active<this.concurrent?this._tryNext(n):this.buffer.push(n)}_tryNext(n){let e;const i=this.index++;try{e=this.project(n,i)}catch(s){return void this.destination.error(s)}this.active++,this._innerSub(e)}_innerSub(n){const e=new wt(this),i=this.destination;i.add(e);const s=Qi(n,e);s!==e&&i.add(s)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(n){this.destination.next(n)}notifyComplete(){const n=this.buffer;this.active--,n.length>0?this._next(n.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Er(t=Number.POSITIVE_INFINITY){return rc(H,t)}function ir(t,n){return n?Xe(t,n):new te(ce(t))}function Ea(...t){let n=Number.POSITIVE_INFINITY,e=null,i=t[t.length-1];return oe(i)?(e=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===e&&1===t.length&&t[0]instanceof te?t[0]:Er(n)(ir(t,e))}function Sa(){return function(n){return n.lift(new sr(n))}}class sr{constructor(n){this.connectable=n}call(n,e){const{connectable:i}=this;i._refCount++;const s=new oc(n,i),r=e.subscribe(s);return s.closed||(s.connection=i.connect()),r}}class oc extends k{constructor(n,e){super(n),this.connectable=e}_unsubscribe(){const{connectable:n}=this;if(!n)return void(this.connection=null);this.connectable=null;const e=n._refCount;if(e<=0)return void(this.connection=null);if(n._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,s=n._connection;this.connection=null,s&&(!i||s===i)&&s.unsubscribe()}}class ac extends te{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let n=this._connection;return n||(this._isComplete=!1,n=this._connection=new m,n.add(this.source.subscribe(new lc(this.getSubject(),this))),n.closed&&(this._connection=null,n=m.EMPTY)),n}refCount(){return Sa()(this)}}const Kh=(()=>{const t=ac.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 lc extends U{constructor(n,e){super(n),this.connectable=e}_error(n){this._unsubscribe(),super._error(n)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const n=this.connectable;if(n){this.connectable=null;const e=n._connection;n._refCount=0,n._subject=null,n._connection=null,e&&e.unsubscribe()}}}class QE{constructor(n,e){this.subjectFactory=n,this.selector=e}call(n,e){const{selector:i}=this,s=this.subjectFactory(),r=i(s).subscribe(n);return r.add(e.subscribe(s)),r}}function JE(){return new $}function Ut(t){for(let n in t)if(t[n]===Ut)return n;throw Error("Could not find renamed property on target object.")}function Qh(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function Ht(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Ht).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Jh(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const eS=Ut({__forward_ref__:Ut});function qh(t){return t.__forward_ref__=qh,t.toString=function(){return Ht(this())},t}function mt(t){return function pv(t){return"function"==typeof t&&t.hasOwnProperty(eS)&&t.__forward_ref__===qh}(t)?t():t}class Ye extends Error{constructor(n,e){super(function ed(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function rt(t){return"string"==typeof t?t:null==t?"":String(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():rt(t)}function cc(t,n){const e=n?` in ${n}`:"";throw new Ye(-201,`No provider for ${$n(t)} found${e}`)}function wi(t,n){null==t&&function zt(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function Qe(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Lt(t){return{providers:t.providers||[],imports:t.imports||[]}}function td(t){return gv(t,uc)||gv(t,vv)}function gv(t,n){return t.hasOwnProperty(n)?t[n]:null}function mv(t){return t&&(t.hasOwnProperty(nd)||t.hasOwnProperty(aS))?t[nd]:null}const uc=Ut({\u0275prov:Ut}),nd=Ut({\u0275inj:Ut}),vv=Ut({ngInjectableDef:Ut}),aS=Ut({ngInjectorDef:Ut});var ct=(()=>((ct=ct||{})[ct.Default=0]="Default",ct[ct.Host=1]="Host",ct[ct.Self=2]="Self",ct[ct.SkipSelf=4]="SkipSelf",ct[ct.Optional=8]="Optional",ct))();let id;function rr(t){const n=id;return id=t,n}function _v(t,n,e){const i=td(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&ct.Optional?null:void 0!==n?n:void cc(Ht(t),"Injector")}function or(t){return{toString:t}.toString()}var Ji=(()=>((Ji=Ji||{})[Ji.OnPush=0]="OnPush",Ji[Ji.Default=1]="Default",Ji))(),qi=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(qi||(qi={})),qi))();const cS="undefined"!=typeof globalThis&&globalThis,uS="undefined"!=typeof window&&window,hS="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,jt=cS||"undefined"!=typeof global&&global||uS||hS,uo={},Wt=[],hc=Ut({\u0275cmp:Ut}),sd=Ut({\u0275dir:Ut}),rd=Ut({\u0275pipe:Ut}),yv=Ut({\u0275mod:Ut}),Rs=Ut({\u0275fac:Ut}),Aa=Ut({__NG_ELEMENT_ID__:Ut});let dS=0;function $e(t){return or(()=>{const e={},i={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===Ji.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Wt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||qi.Emulated,id:"c",styles:t.styles||Wt,_:null,setInput:null,schemas:t.schemas||null,tView:null},s=t.directives,r=t.features,o=t.pipes;return i.id+=dS++,i.inputs=Cv(t.inputs,e),i.outputs=Cv(t.outputs),r&&r.forEach(a=>a(i)),i.directiveDefs=s?()=>("function"==typeof s?s():s).map(xv):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(bv):null,i})}function xv(t){return Un(t)||function ar(t){return t[sd]||null}(t)}function bv(t){return function Sr(t){return t[rd]||null}(t)}const wv={};function Ft(t){return or(()=>{const n={type:t.type,bootstrap:t.bootstrap||Wt,declarations:t.declarations||Wt,imports:t.imports||Wt,exports:t.exports||Wt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(wv[t.id]=t.type),n})}function Cv(t,n){if(null==t)return uo;const e={};for(const i in t)if(t.hasOwnProperty(i)){let s=t[i],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),e[s]=i,n&&(n[s]=r)}return e}const bn=$e;function gi(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Un(t){return t[hc]||null}function Ri(t,n){const e=t[yv]||null;if(!e&&!0===n)throw new Error(`Type ${Ht(t)} does not have '\u0275mod' property.`);return e}function _s(t){return Array.isArray(t)&&"object"==typeof t[1]}function ts(t){return Array.isArray(t)&&!0===t[1]}function ld(t){return 0!=(8&t.flags)}function gc(t){return 2==(2&t.flags)}function mc(t){return 1==(1&t.flags)}function ns(t){return null!==t.template}function _S(t){return 0!=(512&t[2])}function Lr(t,n){return t.hasOwnProperty(Rs)?t[Rs]:null}class Dv{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function ut(){return Ev}function Ev(t){return t.type.prototype.ngOnChanges&&(t.setInput=wS),bS}function bS(){const t=Av(this),n=null==t?void 0:t.current;if(n){const e=t.previous;if(e===uo)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function wS(t,n,e,i){const s=Av(t)||function CS(t,n){return t[Sv]=n}(t,{previous:uo,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[e],l=o[a];r[a]=new Dv(l&&l.currentValue,n,o===uo),t[i]=n}ut.ngInherit=!0;const Sv="__ngSimpleChanges__";function Av(t){return t[Sv]||null}let fd;function pd(){return void 0!==fd?fd:"undefined"!=typeof document?document:void 0}function fn(t){return!!t.listen}const Mv={createRenderer:(t,n)=>pd()};function wn(t){for(;Array.isArray(t);)t=t[0];return t}function vc(t,n){return wn(n[t])}function Ti(t,n){return wn(n[t.index])}function gd(t,n){return t.data[n]}function Di(t,n){const e=n[t];return _s(e)?e:e[0]}function kv(t){return 4==(4&t[2])}function md(t){return 128==(128&t[2])}function lr(t,n){return null==n?null:t[n]}function Lv(t){t[18]=0}function vd(t,n){t[5]+=n;let e=t,i=t[3];for(;null!==i&&(1===n&&1===e[5]||-1===n&&0===e[5]);)i[5]+=n,e=i,i=i[3]}const ot={lFrame:Hv(null),bindingsEnabled:!0};function Ov(){return ot.bindingsEnabled}function Se(){return ot.lFrame.lView}function kt(){return ot.lFrame.tView}function ve(t){return ot.lFrame.contextLView=t,t[8]}function In(){let t=Fv();for(;null!==t&&64===t.type;)t=t.parent;return t}function Fv(){return ot.lFrame.currentTNode}function ys(t,n){const e=ot.lFrame;e.currentTNode=t,e.isParent=n}function _d(){return ot.lFrame.isParent}function yd(){ot.lFrame.isParent=!1}function si(){const t=ot.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function vo(){return ot.lFrame.bindingIndex++}function Vs(t){const n=ot.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function HS(t,n){const e=ot.lFrame;e.bindingIndex=e.bindingRootIndex=t,xd(n)}function xd(t){ot.lFrame.currentDirectiveIndex=t}function Rv(){return ot.lFrame.currentQueryIndex}function wd(t){ot.lFrame.currentQueryIndex=t}function jS(t){const n=t[1];return 2===n.type?n.declTNode:1===n.type?t[6]:null}function Bv(t,n,e){if(e&ct.SkipSelf){let s=n,r=t;for(;!(s=s.parent,null!==s||e&ct.Host||(s=jS(r),null===s||(r=r[15],10&s.type))););if(null===s)return!1;n=s,t=r}const i=ot.lFrame=Vv();return i.currentTNode=n,i.lView=t,!0}function yc(t){const n=Vv(),e=t[1];ot.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function Vv(){const t=ot.lFrame,n=null===t?null:t.child;return null===n?Hv(t):n}function Hv(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function zv(){const t=ot.lFrame;return ot.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const jv=zv;function xc(){const t=zv();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ri(){return ot.lFrame.selectedIndex}function cr(t){ot.lFrame.selectedIndex=t}function rn(){const t=ot.lFrame;return gd(t.tView,t.selectedIndex)}function ae(){ot.lFrame.currentNamespace="svg"}function bc(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e<i;e++){const r=t.data[e].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:h}=r;o&&(t.contentHooks||(t.contentHooks=[])).push(-e,o),a&&((t.contentHooks||(t.contentHooks=[])).push(e,a),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(e,a)),l&&(t.viewHooks||(t.viewHooks=[])).push(-e,l),c&&((t.viewHooks||(t.viewHooks=[])).push(e,c),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(e,c)),null!=h&&(t.destroyHooks||(t.destroyHooks=[])).push(e,h)}}function wc(t,n,e){Gv(t,n,3,e)}function Cc(t,n,e,i){(3&t[2])===e&&Gv(t,n,e,i)}function Cd(t,n){let e=t[2];(3&e)===n&&(e&=2047,e+=1,t[2]=e)}function Gv(t,n,e,i){const r=null!=i?i:-1,o=n.length-1;let a=0;for(let l=void 0!==i?65535&t[18]:0;l<o;l++)if("number"==typeof n[l+1]){if(a=n[l],null!=i&&a>=i)break}else n[l]<0&&(t[18]+=65536),(a<r||-1==r)&&(ZS(t,e,n,l),t[18]=(4294901760&t[18])+l+2),l++}function ZS(t,n,e,i){const s=e[i]<0,r=e[i+1],a=t[s?-e[i]:e[i]];if(s){if(t[2]>>11<t[18]>>16&&(3&t[2])===n){t[2]+=2048;try{r.call(a)}finally{}}}else try{r.call(a)}finally{}}class Oa{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Tc(t,n,e){const i=fn(t);let s=0;for(;s<e.length;){const r=e[s];if("number"==typeof r){if(0!==r)break;s++;const o=e[s++],a=e[s++],l=e[s++];i?t.setAttribute(n,a,l,o):n.setAttributeNS(o,a,l)}else{const o=r,a=e[++s];Dd(o)?i&&t.setProperty(n,o,a):i?t.setAttribute(n,o,a):n.setAttribute(o,a),s++}}return s}function $v(t){return 3===t||4===t||6===t}function Dd(t){return 64===t.charCodeAt(0)}function Dc(t,n){if(null!==n&&0!==n.length)if(null===t||0===t.length)t=n.slice();else{let e=-1;for(let i=0;i<n.length;i++){const s=n[i];"number"==typeof s?e=s:0===e||Uv(t,e,s,null,-1===e||2===e?n[++i]:null)}}return t}function Uv(t,n,e,i,s){let r=0,o=t.length;if(-1===n)o=-1;else for(;r<t.length;){const a=t[r++];if("number"==typeof a){if(a===n){o=-1;break}if(a>n){o=r-1;break}}}for(;r<t.length;){const a=t[r];if("number"==typeof a)break;if(a===e){if(null===i)return void(null!==s&&(t[r+1]=s));if(i===t[r+1])return void(t[r+2]=s)}r++,null!==i&&r++,null!==s&&r++}-1!==o&&(t.splice(o,0,n),r=o+1),t.splice(r++,0,e),null!==i&&t.splice(r++,0,i),null!==s&&t.splice(r++,0,s)}function Wv(t){return-1!==t}function _o(t){return 32767&t}function yo(t,n){let e=function eA(t){return t>>16}(t),i=n;for(;e>0;)i=i[15],e--;return i}let Ed=!0;function Ec(t){const n=Ed;return Ed=t,n}let tA=0;function Pa(t,n){const e=Ad(t,n);if(-1!==e)return e;const i=n[1];i.firstCreatePass&&(t.injectorIndex=n.length,Sd(i.data,t),Sd(n,null),Sd(i.blueprint,null));const s=Sc(t,n),r=t.injectorIndex;if(Wv(s)){const o=_o(s),a=yo(s,n),l=a[1].data;for(let c=0;c<8;c++)n[r+c]=a[o+c]|l[o+c]}return n[r+8]=s,r}function Sd(t,n){t.push(0,0,0,0,0,0,0,0,n)}function Ad(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function Sc(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,s=n;for(;null!==s;){const r=s[1],o=r.type;if(i=2===o?r.declTNode:1===o?s[6]:null,null===i)return-1;if(e++,s=s[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function Ac(t,n,e){!function nA(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Aa)&&(i=e[Aa]),null==i&&(i=e[Aa]=tA++);const s=255&i;n.data[t+(s>>5)]|=1<<s}(t,n,e)}function Zv(t,n,e){if(e&ct.Optional)return t;cc(n,"NodeInjector")}function Kv(t,n,e,i){if(e&ct.Optional&&void 0===i&&(i=null),0==(e&(ct.Self|ct.Host))){const s=t[9],r=rr(void 0);try{return s?s.get(n,i,e&ct.Optional):_v(n,i,e&ct.Optional)}finally{rr(r)}}return Zv(i,n,e)}function Qv(t,n,e,i=ct.Default,s){if(null!==t){const r=function oA(t){if("string"==typeof t)return t.charCodeAt(0)||0;const n=t.hasOwnProperty(Aa)?t[Aa]:void 0;return"number"==typeof n?n>=0?255&n:sA:n}(e);if("function"==typeof r){if(!Bv(n,t,i))return i&ct.Host?Zv(s,e,i):Kv(n,e,i,s);try{const o=r(i);if(null!=o||i&ct.Optional)return o;cc(e)}finally{jv()}}else if("number"==typeof r){let o=null,a=Ad(t,n),l=-1,c=i&ct.Host?n[16][6]:null;for((-1===a||i&ct.SkipSelf)&&(l=-1===a?Sc(t,n):n[a+8],-1!==l&&e_(i,!1)?(o=n[1],a=_o(l),n=yo(l,n)):a=-1);-1!==a;){const h=n[1];if(qv(r,a,h.data)){const b=rA(a,n,e,o,i,c);if(b!==Jv)return b}l=n[a+8],-1!==l&&e_(i,n[1].data[a+8]===c)&&qv(r,a,n)?(o=h,a=_o(l),n=yo(l,n)):a=-1}}}return Kv(n,e,i,s)}const Jv={};function sA(){return new xo(In(),Se())}function rA(t,n,e,i,s,r){const o=n[1],a=o.data[t+8],h=Mc(a,o,e,null==i?gc(a)&&Ed:i!=o&&0!=(3&a.type),s&ct.Host&&r===a);return null!==h?Na(n,o,h,a):Jv}function Mc(t,n,e,i,s){const r=t.providerIndexes,o=n.data,a=1048575&r,l=t.directiveStart,h=r>>20,T=s?a+h:t.directiveEnd;for(let M=i?a:a+h;M<T;M++){const I=o[M];if(M<l&&e===I||M>=l&&I.type===e)return M}if(s){const M=o[l];if(M&&ns(M)&&M.type===e)return l}return null}function Na(t,n,e,i){let s=t[e];const r=n.data;if(function KS(t){return t instanceof Oa}(s)){const o=s;o.resolving&&function tS(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new Ye(-200,`Circular dependency in DI detected for ${t}${e}`)}($n(r[e]));const a=Ec(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?rr(o.injectImpl):null;Bv(t,i,ct.Default);try{s=t[e]=o.factory(void 0,r,t,i),n.firstCreatePass&&e>=i.directiveStart&&function XS(t,n,e){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:r}=n.type.prototype;if(i){const o=Ev(n);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,o)}s&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,s),r&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,r),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,r))}(e,r[e],n)}finally{null!==l&&rr(l),Ec(a),o.resolving=!1,jv()}}return s}function qv(t,n,e){return!!(e[n+(t>>5)]&1<<t)}function e_(t,n){return!(t&ct.Self||t&ct.Host&&n)}class xo{constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return Qv(this._tNode,this._lView,n,i,e)}}const wo="__parameters__";function To(t,n,e){return or(()=>{const i=function Ld(t){return function(...e){if(t){const i=t(...e);for(const s in i)this[s]=i[s]}}}(n);function s(...r){if(this instanceof s)return i.apply(this,r),this;const o=new s(...r);return a.annotation=o,a;function a(l,c,h){const b=l.hasOwnProperty(wo)?l[wo]:Object.defineProperty(l,wo,{value:[]})[wo];for(;b.length<=h;)b.push(null);return(b[h]=b[h]||[]).push(o),l}}return e&&(s.prototype=Object.create(e.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class et{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=Qe({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}function Hi(t,n){void 0===n&&(n=t);for(let e=0;e<t.length;e++){let i=t[e];Array.isArray(i)?(n===t&&(n=t.slice(0,e)),Hi(i,n)):n!==t&&n.push(i)}return n}function xs(t,n){t.forEach(e=>Array.isArray(e)?xs(e,n):n(e))}function n_(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function kc(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function Va(t,n){const e=[];for(let i=0;i<t;i++)e.push(n);return e}function Ei(t,n,e){let i=Do(t,n);return i>=0?t[1|i]=e:(i=~i,function uA(t,n,e,i){let s=t.length;if(s==n)t.push(e,i);else if(1===s)t.push(i,t[0]),t[0]=e;else{for(s--,t.push(t[s-1],t[s]);s>n;)t[s]=t[s-2],s--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function Od(t,n){const e=Do(t,n);if(e>=0)return t[1|e]}function Do(t,n){return function r_(t,n,e){let i=0,s=t.length>>e;for(;s!==i;){const r=i+(s-i>>1),o=t[r<<e];if(n===o)return r<<e;o>n?s=r:i=r+1}return~(s<<e)}(t,n,1)}const Ha={},Pd="__NG_DI_FLAG__",Ic="ngTempTokenPath",vA=/\n/gm,a_="__source",yA=Ut({provide:String,useValue:Ut});let za;function l_(t){const n=za;return za=t,n}function xA(t,n=ct.Default){if(void 0===za)throw new Ye(203,"");return null===za?_v(t,void 0,n):za.get(t,n&ct.Optional?null:void 0,n)}function De(t,n=ct.Default){return(function lS(){return id}()||xA)(mt(t),n)}const Nd=De;function Rd(t){const n=[];for(let e=0;e<t.length;e++){const i=mt(t[e]);if(Array.isArray(i)){if(0===i.length)throw new Ye(900,"");let s,r=ct.Default;for(let o=0;o<i.length;o++){const a=i[o],l=bA(a);"number"==typeof l?-1===l?s=a.token:r|=l:s=a}n.push(De(s,r))}else n.push(De(i))}return n}function ja(t,n){return t[Pd]=n,t.prototype[Pd]=n,t}function bA(t){return t[Pd]}const Oc=ja(To("Optional"),8),Fc=ja(To("SkipSelf"),4);var Si=(()=>((Si=Si||{})[Si.Important=1]="Important",Si[Si.DashCase=2]="DashCase",Si))();const m_="__ngContext__";function Qn(t,n){t[m_]=n}function zd(t){const n=function $a(t){return t[m_]||null}(t);return n?Array.isArray(n)?n:n.lView:null}function Gd(t,n){return undefined(t,n)}function Ua(t){const n=t[3];return ts(n)?n[3]:n}function $d(t){return C_(t[13])}function Ud(t){return C_(t[4])}function C_(t){for(;null!==t&&!ts(t);)t=t[4];return t}function So(t,n,e,i,s){if(null!=i){let r,o=!1;ts(i)?r=i:_s(i)&&(o=!0,i=i[0]);const a=wn(i);0===t&&null!==e?null==s?M_(n,e,a):Or(n,e,a,s||null,!0):1===t&&null!==e?Or(n,e,a,s||null,!0):2===t?function Jd(t,n,e){const i=Nc(t,n);i&&function JA(t,n,e,i){fn(t)?t.removeChild(n,e,i):n.removeChild(e)}(t,i,n,e)}(n,a,o):3===t&&n.destroyNode(a),null!=r&&function tM(t,n,e,i,s){const r=e[7];r!==wn(e)&&So(n,t,i,r,s);for(let a=10;a<e.length;a++){const l=e[a];Wa(l[1],l,t,n,i,r)}}(n,t,r,e,s)}}function Yd(t,n,e){if(fn(t))return t.createElement(n,e);{const i=null!==e?function SS(t){const n=t.toLowerCase();return"svg"===n?"http://www.w3.org/2000/svg":"math"===n?"http://www.w3.org/1998/MathML/":null}(e):null;return null===i?t.createElement(n):t.createElementNS(i,n)}}function D_(t,n){const e=t[9],i=e.indexOf(n),s=n[3];1024&n[2]&&(n[2]&=-1025,vd(s,-1)),e.splice(i,1)}function Xd(t,n){if(t.length<=10)return;const e=10+n,i=t[e];if(i){const s=i[17];null!==s&&s!==t&&D_(s,i),n>0&&(t[e-1][4]=i[4]);const r=kc(t,10+n);!function $A(t,n){Wa(t,n,n[11],2,null,null),n[0]=null,n[6]=null}(i[1],i);const o=r[19];null!==o&&o.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function E_(t,n){if(!(256&n[2])){const e=n[11];fn(e)&&e.destroyNode&&Wa(t,n,e,3,null,null),function YA(t){let n=t[13];if(!n)return Zd(t[1],t);for(;n;){let e=null;if(_s(n))e=n[13];else{const i=n[10];i&&(e=i)}if(!e){for(;n&&!n[4]&&n!==t;)_s(n)&&Zd(n[1],n),n=n[3];null===n&&(n=t),_s(n)&&Zd(n[1],n),e=n&&n[4]}n=e}}(n)}}function Zd(t,n){if(!(256&n[2])){n[2]&=-129,n[2]|=256,function QA(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i<e.length;i+=2){const s=n[e[i]];if(!(s instanceof Oa)){const r=e[i+1];if(Array.isArray(r))for(let o=0;o<r.length;o+=2){const a=s[r[o]],l=r[o+1];try{l.call(a)}finally{}}else try{r.call(s)}finally{}}}}(t,n),function KA(t,n){const e=t.cleanup,i=n[7];let s=-1;if(null!==e)for(let r=0;r<e.length-1;r+=2)if("string"==typeof e[r]){const o=e[r+1],a="function"==typeof o?o(n):wn(n[o]),l=i[s=e[r+2]],c=e[r+3];"boolean"==typeof c?a.removeEventListener(e[r],l,c):c>=0?i[s=c]():i[s=-c].unsubscribe(),r+=2}else{const o=i[s=e[r+1]];e[r].call(o)}if(null!==i){for(let r=s+1;r<i.length;r++)i[r]();n[7]=null}}(t,n),1===n[1].type&&fn(n[11])&&n[11].destroy();const e=n[17];if(null!==e&&ts(n[3])){e!==n[3]&&D_(e,n);const i=n[19];null!==i&&i.detachView(t)}}}function S_(t,n,e){return function A_(t,n,e){let i=n;for(;null!==i&&40&i.type;)i=(n=i).parent;if(null===i)return e[0];if(2&i.flags){const s=t.data[i.directiveStart].encapsulation;if(s===qi.None||s===qi.Emulated)return null}return Ti(i,e)}(t,n.parent,e)}function Or(t,n,e,i,s){fn(t)?t.insertBefore(n,e,i,s):n.insertBefore(e,i,s)}function M_(t,n,e){fn(t)?t.appendChild(n,e):n.appendChild(e)}function k_(t,n,e,i,s){null!==i?Or(t,n,e,i,s):M_(t,n,e)}function Nc(t,n){return fn(t)?t.parentNode(n):n.parentNode}function L_(t,n,e){return O_(t,n,e)}let Vc,Hc,O_=function I_(t,n,e){return 40&t.type?Ti(t,e):null};function Rc(t,n,e,i){const s=S_(t,i,n),r=n[11],a=L_(i.parent||n[6],i,n);if(null!=s)if(Array.isArray(e))for(let l=0;l<e.length;l++)k_(r,s,e[l],a,!1);else k_(r,s,e,a,!1)}function Bc(t,n){if(null!==n){const e=n.type;if(3&e)return Ti(n,t);if(4&e)return Qd(-1,t[n.index]);if(8&e){const i=n.child;if(null!==i)return Bc(t,i);{const s=t[n.index];return ts(s)?Qd(-1,s):wn(s)}}if(32&e)return Gd(n,t)()||wn(t[n.index]);{const i=P_(t,n);return null!==i?Array.isArray(i)?i[0]:Bc(Ua(t[16]),i):Bc(t,n.next)}}return null}function P_(t,n){return null!==n?t[16][6].projection[n.projection]:null}function Qd(t,n){const e=10+t+1;if(e<n.length){const i=n[e],s=i[1].firstChild;if(null!==s)return Bc(i,s)}return n[7]}function qd(t,n,e,i,s,r,o){for(;null!=e;){const a=i[e.index],l=e.type;if(o&&0===n&&(a&&Qn(wn(a),i),e.flags|=4),64!=(64&e.flags))if(8&l)qd(t,n,e.child,i,s,r,!1),So(n,t,s,a,r);else if(32&l){const c=Gd(e,i);let h;for(;h=c();)So(n,t,s,h,r);So(n,t,s,a,r)}else 16&l?N_(t,n,i,e,s,r):So(n,t,s,a,r);e=o?e.projectionNext:e.next}}function Wa(t,n,e,i,s,r){qd(e,i,t.firstChild,n,s,r,!1)}function N_(t,n,e,i,s,r){const o=e[16],l=o[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)So(n,t,s,l[c],r);else qd(t,n,l,o[3],s,r,!0)}function R_(t,n,e){fn(t)?t.setAttribute(n,"style",e):n.style.cssText=e}function ef(t,n,e){fn(t)?""===e?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e):n.className=e}function Fr(t){var n;return(null===(n=function tf(){if(void 0===Vc&&(Vc=null,jt.trustedTypes))try{Vc=jt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Vc}())||void 0===n?void 0:n.createHTML(t))||t}function B_(t){var n;return(null===(n=function nf(){if(void 0===Hc&&(Hc=null,jt.trustedTypes))try{Hc=jt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Hc}())||void 0===n?void 0:n.createHTML(t))||t}class Pr{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class oM extends Pr{getTypeName(){return"HTML"}}class aM extends Pr{getTypeName(){return"Style"}}class lM extends Pr{getTypeName(){return"Script"}}class cM extends Pr{getTypeName(){return"URL"}}class uM extends Pr{getTypeName(){return"ResourceURL"}}function Ai(t){return t instanceof Pr?t.changingThisBreaksApplicationSecurity:t}function bs(t,n){const e=z_(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===n}function z_(t){return t instanceof Pr&&t.getTypeName()||null}class mM{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const e=(new window.DOMParser).parseFromString(Fr(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class vM{constructor(n){if(this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(n){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Fr(n),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Fr(n),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(n){const e=n.attributes;for(let s=e.length-1;0<s;s--){const o=e.item(s).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&n.removeAttribute(o)}let i=n.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const yM=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,xM=/^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 Ya(t){return(t=String(t)).match(yM)||t.match(xM)?t:"unsafe:"+t}function G_(t){return(t=String(t)).split(",").map(n=>Ya(n.trim())).join(", ")}function ws(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function Xa(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const $_=ws("area,br,col,hr,img,wbr"),U_=ws("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),W_=ws("rp,rt"),sf=Xa($_,Xa(U_,ws("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")),Xa(W_,ws("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")),Xa(W_,U_)),rf=ws("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),af=ws("srcset"),Y_=Xa(rf,af,ws("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"),ws("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")),bM=ws("script,style,template");class wM{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let s=this.checkClobberedElement(e,e.nextSibling);if(s){e=s;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!sf.hasOwnProperty(e))return this.sanitizedSomething=!0,!bM.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let s=0;s<i.length;s++){const r=i.item(s),o=r.name,a=o.toLowerCase();if(!Y_.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=r.value;rf[a]&&(l=Ya(l)),af[a]&&(l=G_(l)),this.buf.push(" ",o,'="',X_(l),'"')}return this.buf.push(">"),!0}endElement(n){const e=n.nodeName.toLowerCase();sf.hasOwnProperty(e)&&!$_.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(n){this.buf.push(X_(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const CM=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,TM=/([^\#-~ |!])/g;function X_(t){return t.replace(/&/g,"&amp;").replace(CM,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(TM,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let zc;function Z_(t,n){let e=null;try{zc=zc||function j_(t){const n=new vM(t);return function _M(){try{return!!(new window.DOMParser).parseFromString(Fr(""),"text/html")}catch(t){return!1}}()?new mM(n):n}(t);let i=n?String(n):"";e=zc.getInertBodyElement(i);let s=5,r=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=r,r=e.innerHTML,e=zc.getInertBodyElement(i)}while(i!==r);return Fr((new wM).sanitizeChildren(lf(e)||e))}finally{if(e){const i=lf(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function lf(t){return"content"in t&&function DM(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Jt=(()=>((Jt=Jt||{})[Jt.NONE=0]="NONE",Jt[Jt.HTML=1]="HTML",Jt[Jt.STYLE=2]="STYLE",Jt[Jt.SCRIPT=3]="SCRIPT",Jt[Jt.URL=4]="URL",Jt[Jt.RESOURCE_URL=5]="RESOURCE_URL",Jt))();function Za(t){const n=function Ka(){const t=Se();return t&&t[12]}();return n?B_(n.sanitize(Jt.HTML,t)||""):bs(t,"HTML")?B_(Ai(t)):Z_(pd(),rt(t))}function uf(t){return t.ngOriginalError}function PM(t,...n){t.error(...n)}class Qa{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n),i=function FM(t){return t&&t.ngErrorLogger||PM}(n);i(this._console,"ERROR",n),e&&i(this._console,"ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&uf(n);for(;e&&uf(e);)e=uf(e);return e||null}}const jM=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(jt))();function J_(t){return t.ownerDocument.defaultView}function Ao(t){return t.ownerDocument}function Cs(t){return t instanceof Function?t():t}function ey(t,n,e){let i=t.length;for(;;){const s=t.indexOf(n,e);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const r=n.length;if(s+r===i||t.charCodeAt(s+r)<=32)return s}e=s+1}}const ty="ng-template";function $M(t,n,e){let i=0;for(;i<t.length;){let s=t[i++];if(e&&"class"===s){if(s=t[i],-1!==ey(s.toLowerCase(),n,0))return!0}else if(1===s){for(;i<t.length&&"string"==typeof(s=t[i++]);)if(s.toLowerCase()===n)return!0;return!1}}return!1}function ny(t){return 4===t.type&&t.value!==ty}function UM(t,n,e){return n===(4!==t.type||e?t.value:ty)}function WM(t,n,e){let i=4;const s=t.attrs||[],r=function ZM(t){for(let n=0;n<t.length;n++)if($v(t[n]))return n;return t.length}(s);let o=!1;for(let a=0;a<n.length;a++){const l=n[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!UM(t,l,e)||""===l&&1===n.length){if(is(i))return!1;o=!0}}else{const c=8&i?l:n[++a];if(8&i&&null!==t.attrs){if(!$M(t.attrs,c,e)){if(is(i))return!1;o=!0}continue}const b=YM(8&i?"class":l,s,ny(t),e);if(-1===b){if(is(i))return!1;o=!0;continue}if(""!==c){let T;T=b>r?"":s[b+1].toLowerCase();const M=8&i?T:null;if(M&&-1!==ey(M,c,0)||2&i&&c!==T){if(is(i))return!1;o=!0}}}}else{if(!o&&!is(i)&&!is(l))return!1;if(o&&is(l))continue;o=!1,i=l|1&i}}return is(i)||o}function is(t){return 0==(1&t)}function YM(t,n,e,i){if(null===n)return-1;let s=0;if(i||!e){let r=!1;for(;s<n.length;){const o=n[s];if(o===t)return s;if(3===o||6===o)r=!0;else{if(1===o||2===o){let a=n[++s];for(;"string"==typeof a;)a=n[++s];continue}if(4===o)break;if(0===o){s+=4;continue}}s+=r?1:2}return-1}return function KM(t,n){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){const i=t[e];if("number"==typeof i)return-1;if(i===n)return e;e++}return-1}(n,t)}function iy(t,n,e=!1){for(let i=0;i<n.length;i++)if(WM(t,n[i],e))return!0;return!1}function QM(t,n){e:for(let e=0;e<n.length;e++){const i=n[e];if(t.length===i.length){for(let s=0;s<t.length;s++)if(t[s]!==i[s])continue e;return!0}}return!1}function sy(t,n){return t?":not("+n.trim()+")":n}function JM(t){let n=t[0],e=1,i=2,s="",r=!1;for(;e<t.length;){let o=t[e];if("string"==typeof o)if(2&i){const a=t[++e];s+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?s+="."+o:4&i&&(s+=" "+o);else""!==s&&!is(o)&&(n+=sy(r,s),s=""),i=o,r=r||!is(i);e++}return""!==s&&(n+=sy(r,s)),n}const at={};function G(t){ry(kt(),Se(),ri()+t,!1)}function ry(t,n,e,i){if(!i)if(3==(3&n[2])){const r=t.preOrderCheckHooks;null!==r&&wc(n,r,e)}else{const r=t.preOrderHooks;null!==r&&Cc(n,r,0,e)}cr(e)}function jc(t,n){return t<<17|n<<2}function ss(t){return t>>17&32767}function hf(t){return 2|t}function Hs(t){return(131068&t)>>2}function df(t,n){return-131069&t|n<<2}function ff(t){return 1|t}function my(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;i<e.length;i+=2){const s=e[i],r=e[i+1];if(-1!==r){const o=t.data[r];wd(s),o.contentQueries(2,n[r],r)}}}function Ja(t,n,e,i,s,r,o,a,l,c){const h=n.blueprint.slice();return h[0]=s,h[2]=140|i,Lv(h),h[3]=h[15]=t,h[8]=e,h[10]=o||t&&t[10],h[11]=a||t&&t[11],h[12]=l||t&&t[12]||null,h[9]=c||t&&t[9]||null,h[6]=r,h[16]=2==n.type?t[16]:h,h}function ko(t,n,e,i,s){let r=t.data[n];if(null===r)r=function wf(t,n,e,i,s){const r=Fv(),o=_d(),l=t.data[n]=function mk(t,n,e,i,s,r){return{type:e,index:i,insertBeforeIndex:null,injectorIndex:n?n.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:s,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?r:r&&r.parent,e,n,i,s);return null===t.firstChild&&(t.firstChild=l),null!==r&&(o?null==r.child&&null!==l.parent&&(r.child=l):null===r.next&&(r.next=l)),l}(t,n,e,i,s),function VS(){return ot.lFrame.inI18n}()&&(r.flags|=64);else if(64&r.type){r.type=e,r.value=i,r.attrs=s;const o=function Ia(){const t=ot.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}();r.injectorIndex=null===o?-1:o.injectorIndex}return ys(r,!0),r}function Lo(t,n,e,i){if(0===e)return-1;const s=n.length;for(let r=0;r<e;r++)n.push(i),t.blueprint.push(i),t.data.push(null);return s}function qa(t,n,e){yc(n);try{const i=t.viewQuery;null!==i&&Lf(1,i,e);const s=t.template;null!==s&&vy(t,n,s,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&my(t,n),t.staticViewQueries&&Lf(2,t.viewQuery,e);const r=t.components;null!==r&&function fk(t,n){for(let e=0;e<n.length;e++)Fk(t,n[e])}(n,r)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i}finally{n[2]&=-5,xc()}}function Io(t,n,e,i){const s=n[2];if(256!=(256&s)){yc(n);try{Lv(n),function Pv(t){return ot.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&vy(t,n,e,2,i);const o=3==(3&s);if(o){const c=t.preOrderCheckHooks;null!==c&&wc(n,c,null)}else{const c=t.preOrderHooks;null!==c&&Cc(n,c,0,null),Cd(n,0)}if(function Ik(t){for(let n=$d(t);null!==n;n=Ud(n)){if(!n[2])continue;const e=n[9];for(let i=0;i<e.length;i++){const s=e[i],r=s[3];0==(1024&s[2])&&vd(r,1),s[2]|=1024}}}(n),function Lk(t){for(let n=$d(t);null!==n;n=Ud(n))for(let e=10;e<n.length;e++){const i=n[e],s=i[1];md(i)&&Io(s,i,s.template,i[8])}}(n),null!==t.contentQueries&&my(t,n),o){const c=t.contentCheckHooks;null!==c&&wc(n,c)}else{const c=t.contentHooks;null!==c&&Cc(n,c,1),Cd(n,1)}!function hk(t,n){const e=t.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const s=e[i];if(s<0)cr(~s);else{const r=s,o=e[++i],a=e[++i];HS(o,r),a(2,n[r])}}}finally{cr(-1)}}(t,n);const a=t.components;null!==a&&function dk(t,n){for(let e=0;e<n.length;e++)Ok(t,n[e])}(n,a);const l=t.viewQuery;if(null!==l&&Lf(2,l,i),o){const c=t.viewCheckHooks;null!==c&&wc(n,c)}else{const c=t.viewHooks;null!==c&&Cc(n,c,2),Cd(n,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),n[2]&=-73,1024&n[2]&&(n[2]&=-1025,vd(n[3],-1))}finally{xc()}}}function pk(t,n,e,i){const s=n[10],o=kv(n);try{!o&&s.begin&&s.begin(),o&&qa(t,n,i),Io(t,n,e,i)}finally{!o&&s.end&&s.end()}}function vy(t,n,e,i,s){const r=ri(),o=2&i;try{cr(-1),o&&n.length>20&&ry(t,n,20,!1),e(i,s)}finally{cr(r)}}function _y(t,n,e){if(ld(n)){const s=n.directiveEnd;for(let r=n.directiveStart;r<s;r++){const o=t.data[r];o.contentQueries&&o.contentQueries(1,e[r],r)}}}function Cf(t,n,e){!Ov()||(function Ck(t,n,e,i){const s=e.directiveStart,r=e.directiveEnd;t.firstCreatePass||Pa(e,n),Qn(i,n);const o=e.initialInputs;for(let a=s;a<r;a++){const l=t.data[a],c=ns(l);c&&Ak(n,e,l);const h=Na(n,t,a,e);Qn(h,n),null!==o&&Mk(0,a-s,h,l,0,o),c&&(Di(e.index,n)[8]=h)}}(t,n,e,Ti(e,n)),128==(128&e.flags)&&function Tk(t,n,e){const i=e.directiveStart,s=e.directiveEnd,o=e.index,a=function zS(){return ot.lFrame.currentDirectiveIndex}();try{cr(o);for(let l=i;l<s;l++){const c=t.data[l],h=n[l];xd(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&Ey(c,h)}}finally{cr(-1),xd(a)}}(t,n,e))}function Tf(t,n,e=Ti){const i=n.localNames;if(null!==i){let s=n.index+1;for(let r=0;r<i.length;r+=2){const o=i[r+1],a=-1===o?e(n,t):t[o];t[s++]=a}}}function yy(t){const n=t.tView;return null===n||n.incompleteFirstPass?t.tView=Uc(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):n}function Uc(t,n,e,i,s,r,o,a,l,c){const h=20+i,b=h+s,T=function gk(t,n){const e=[];for(let i=0;i<n;i++)e.push(i<t?null:at);return e}(h,b),M="function"==typeof c?c():c;return T[1]={type:t,blueprint:T,template:e,queries:null,viewQuery:a,declTNode:n,data:T.slice().fill(null,h),bindingStartIndex:h,expandoStartIndex:b,hostBindingOpCodes: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 r?r():r,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:M,incompleteFirstPass:!1}}function wy(t,n,e,i){const s=Iy(n);null===e?s.push(i):(s.push(e),t.firstCreatePass&&Oy(t).push(i,s.length-1))}function Cy(t,n,e){for(let i in t)if(t.hasOwnProperty(i)){const s=t[i];(e=null===e?{}:e).hasOwnProperty(i)?e[i].push(n,s):e[i]=[n,s]}return e}function Df(t,n,e,i){let s=!1;if(Ov()){const r=function Dk(t,n,e){const i=t.directiveRegistry;let s=null;if(i)for(let r=0;r<i.length;r++){const o=i[r];iy(e,o.selectors,!1)&&(s||(s=[]),Ac(Pa(e,n),t,o.type),ns(o)?(Sy(t,e),s.unshift(o)):s.push(o))}return s}(t,n,e),o=null===i?null:{"":-1};if(null!==r){s=!0,Ay(e,t.data.length,r.length);for(let h=0;h<r.length;h++){const b=r[h];b.providersResolver&&b.providersResolver(b)}let a=!1,l=!1,c=Lo(t,n,r.length,null);for(let h=0;h<r.length;h++){const b=r[h];e.mergedAttrs=Dc(e.mergedAttrs,b.hostAttrs),My(t,e,n,c,b),Sk(c,b,o),null!==b.contentQueries&&(e.flags|=8),(null!==b.hostBindings||null!==b.hostAttrs||0!==b.hostVars)&&(e.flags|=128);const T=b.type.prototype;!a&&(T.ngOnChanges||T.ngOnInit||T.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e.index),a=!0),!l&&(T.ngOnChanges||T.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e.index),l=!0),c++}!function vk(t,n){const i=n.directiveEnd,s=t.data,r=n.attrs,o=[];let a=null,l=null;for(let c=n.directiveStart;c<i;c++){const h=s[c],b=h.inputs,T=null===r||ny(n)?null:kk(b,r);o.push(T),a=Cy(b,c,a),l=Cy(h.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(n.flags|=16),a.hasOwnProperty("style")&&(n.flags|=32)),n.initialInputs=o,n.inputs=a,n.outputs=l}(t,e)}o&&function Ek(t,n,e){if(n){const i=t.localNames=[];for(let s=0;s<n.length;s+=2){const r=e[n[s+1]];if(null==r)throw new Ye(-301,!1);i.push(n[s],r)}}}(e,i,o)}return e.mergedAttrs=Dc(e.mergedAttrs,e.attrs),s}function Dy(t,n,e,i,s,r){const o=r.hostBindings;if(o){let a=t.hostBindingOpCodes;null===a&&(a=t.hostBindingOpCodes=[]);const l=~n.index;(function wk(t){let n=t.length;for(;n>0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,s,o)}}function Ey(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function Sy(t,n){n.flags|=2,(t.components||(t.components=[])).push(n.index)}function Sk(t,n,e){if(e){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)e[n.exportAs[i]]=t;ns(n)&&(e[""]=t)}}function Ay(t,n,e){t.flags|=1,t.directiveStart=n,t.directiveEnd=n+e,t.providerIndexes=n}function My(t,n,e,i,s){t.data[i]=s;const r=s.factory||(s.factory=Lr(s.type)),o=new Oa(r,ns(s),null);t.blueprint[i]=o,e[i]=o,Dy(t,n,0,i,Lo(t,e,s.hostVars,at),s)}function Ak(t,n,e){const i=Ti(n,t),s=yy(e),r=t[10],o=Wc(t,Ja(t,s,null,e.onPush?64:16,i,n,r,r.createRenderer(i,e),null,null));t[n.index]=o}function Ts(t,n,e,i,s,r){const o=Ti(t,n);!function Ef(t,n,e,i,s,r,o){if(null==r)fn(t)?t.removeAttribute(n,s,e):n.removeAttribute(s);else{const a=null==o?rt(r):o(r,i||"",s);fn(t)?t.setAttribute(n,s,a,e):e?n.setAttributeNS(e,s,a):n.setAttribute(s,a)}}(n[11],o,r,t.value,e,i,s)}function Mk(t,n,e,i,s,r){const o=r[n];if(null!==o){const a=i.setInput;for(let l=0;l<o.length;){const c=o[l++],h=o[l++],b=o[l++];null!==a?i.setInput(e,b,c,h):e[h]=b}}}function kk(t,n){let e=null,i=0;for(;i<n.length;){const s=n[i];if(0!==s)if(5!==s){if("number"==typeof s)break;t.hasOwnProperty(s)&&(null===e&&(e=[]),e.push(s,t[s],n[i+1])),i+=2}else i+=2;else i+=4}return e}function ky(t,n,e,i){return new Array(t,!0,!1,n,null,0,i,e,null,null)}function Ok(t,n){const e=Di(n,t);if(md(e)){const i=e[1];80&e[2]?Io(i,e,i.template,e[8]):e[5]>0&&Sf(e)}}function Sf(t){for(let i=$d(t);null!==i;i=Ud(i))for(let s=10;s<i.length;s++){const r=i[s];if(1024&r[2]){const o=r[1];Io(o,r,o.template,r[8])}else r[5]>0&&Sf(r)}const e=t[1].components;if(null!==e)for(let i=0;i<e.length;i++){const s=Di(e[i],t);md(s)&&s[5]>0&&Sf(s)}}function Fk(t,n){const e=Di(n,t),i=e[1];(function Pk(t,n){for(let e=n.length;e<t.blueprint.length;e++)n.push(t.blueprint[e])})(i,e),qa(i,e,e[8])}function Wc(t,n){return t[13]?t[14][4]=n:t[13]=n,t[14]=n,n}function Af(t){for(;t;){t[2]|=64;const n=Ua(t);if(_S(t)&&!n)return t;t=n}return null}function Ly(t){!function Mf(t){for(let n=0;n<t.components.length;n++){const e=t.components[n],i=zd(e),s=i[1];pk(s,i,s.template,e)}}(t[8])}function Lf(t,n,e){wd(0),n(t,e)}const Rk=(()=>Promise.resolve(null))();function Iy(t){return t[7]||(t[7]=[])}function Oy(t){return t.cleanup||(t.cleanup=[])}function Py(t,n){const e=t[9],i=e?e.get(Qa,null):null;i&&i.handleError(n)}function Ny(t,n,e,i,s){for(let r=0;r<e.length;){const o=e[r++],a=e[r++],l=n[o],c=t.data[o];null!==c.setInput?c.setInput(l,s,i,a):l[a]=s}}function zs(t,n,e){const i=vc(n,t);!function T_(t,n,e){fn(t)?t.setValue(n,e):n.textContent=e}(t[11],i,e)}function Yc(t,n,e){let i=e?t.styles:null,s=e?t.classes:null,r=0;if(null!==n)for(let o=0;o<n.length;o++){const a=n[o];"number"==typeof a?r=a:1==r?s=Jh(s,a):2==r&&(i=Jh(i,a+": "+n[++o]+";"))}e?t.styles=i:t.stylesWithoutHost=i,e?t.classes=s:t.classesWithoutHost=s}const If=new et("INJECTOR",-1);class Ry{get(n,e=Ha){if(e===Ha){const i=new Error(`NullInjectorError: No provider for ${Ht(n)}!`);throw i.name="NullInjectorError",i}return e}}const Of=new et("Set Injector scope."),el={},Hk={};let Ff;function By(){return void 0===Ff&&(Ff=new Ry),Ff}function Vy(t,n=null,e=null,i){const s=Hy(t,n,e,i);return s._resolveInjectorDefTypes(),s}function Hy(t,n=null,e=null,i){return new zk(t,e,n||By(),i)}class zk{constructor(n,e,i,s=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const r=[];e&&xs(e,a=>this.processProvider(a,n,e)),xs([n],a=>this.processInjectorType(a,[],r)),this.records.set(If,Oo(void 0,this));const o=this.records.get(Of);this.scope=null!=o?o.value:null,this.source=s||("object"==typeof n?null:Ht(n))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(n=>n.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(n,e=Ha,i=ct.Default){this.assertNotDestroyed();const s=l_(this),r=rr(void 0);try{if(!(i&ct.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function Zk(t){return"function"==typeof t||"object"==typeof t&&t instanceof et}(n)&&td(n);a=l&&this.injectableDefInScope(l)?Oo(Pf(n),el):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(i&ct.Self?By():this.parent).get(n,e=i&ct.Optional&&e===Ha?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[Ic]=o[Ic]||[]).unshift(Ht(n)),s)throw o;return function wA(t,n,e,i){const s=t[Ic];throw n[a_]&&s.unshift(n[a_]),t.message=function CA(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=Ht(n);if(Array.isArray(n))s=n.map(Ht).join(" -> ");else if("object"==typeof n){let r=[];for(let o in n)if(n.hasOwnProperty(o)){let a=n[o];r.push(o+":"+("string"==typeof a?JSON.stringify(a):Ht(a)))}s=`{${r.join(", ")}}`}return`${e}${i?"("+i+")":""}[${s}]: ${t.replace(vA,"\n ")}`}("\n"+t.message,s,e,i),t.ngTokenPath=s,t[Ic]=null,t}(o,n,"R3InjectorError",this.source)}throw o}finally{rr(r),l_(s)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(n=>this.get(n))}toString(){const n=[];return this.records.forEach((i,s)=>n.push(Ht(s))),`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Ye(205,!1)}processInjectorType(n,e,i){if(!(n=mt(n)))return!1;let s=mv(n);const r=null==s&&n.ngModule||void 0,o=void 0===r?n:r,a=-1!==i.indexOf(o);if(void 0!==r&&(s=mv(r)),null==s)return!1;if(null!=s.imports&&!a){let h;i.push(o);try{xs(s.imports,b=>{this.processInjectorType(b,e,i)&&(void 0===h&&(h=[]),h.push(b))})}finally{}if(void 0!==h)for(let b=0;b<h.length;b++){const{ngModule:T,providers:M}=h[b];xs(M,I=>this.processProvider(I,T,M||Wt))}}this.injectorDefTypes.add(o);const l=Lr(o)||(()=>new o);this.records.set(o,Oo(l,el));const c=s.providers;if(null!=c&&!a){const h=n;xs(c,b=>this.processProvider(b,h,c))}return void 0!==r&&void 0!==n.providers}processProvider(n,e,i){let s=Fo(n=mt(n))?n:mt(n&&n.provide);const r=function Gk(t,n,e){return jy(t)?Oo(void 0,t.useValue):Oo(function zy(t,n,e){let i;if(Fo(t)){const s=mt(t);return Lr(s)||Pf(s)}if(jy(t))i=()=>mt(t.useValue);else if(function Uk(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...Rd(t.deps||[]));else if(function $k(t){return!(!t||!t.useExisting)}(t))i=()=>De(mt(t.useExisting));else{const s=mt(t&&(t.useClass||t.provide));if(!function Yk(t){return!!t.deps}(t))return Lr(s)||Pf(s);i=()=>new s(...Rd(t.deps))}return i}(t),el)}(n);if(Fo(n)||!0!==n.multi)this.records.get(s);else{let o=this.records.get(s);o||(o=Oo(void 0,el,!0),o.factory=()=>Rd(o.multi),this.records.set(s,o)),s=n,o.multi.push(n)}this.records.set(s,r)}hydrate(n,e){return e.value===el&&(e.value=Hk,e.value=e.factory()),"object"==typeof e.value&&e.value&&function Xk(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=mt(n.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Pf(t){const n=td(t),e=null!==n?n.factory:Lr(t);if(null!==e)return e;if(t instanceof et)throw new Ye(204,!1);if(t instanceof Function)return function jk(t){const n=t.length;if(n>0)throw Va(n,"?"),new Ye(204,!1);const e=function rS(t){const n=t&&(t[uc]||t[vv]);if(n){const e=function oS(t){if(t.hasOwnProperty("name"))return t.name;const n=(""+t).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" 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 "${e}" class.`),n}return null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new Ye(204,!1)}function Oo(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function jy(t){return null!==t&&"object"==typeof t&&yA in t}function Fo(t){return"function"==typeof t}let Jn=(()=>{class t{static create(e,i){var s;if(Array.isArray(e))return Vy({name:""},i,e,"");{const r=null!==(s=e.name)&&void 0!==s?s:"";return Vy({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=Ha,t.NULL=new Ry,t.\u0275prov=Qe({token:t,providedIn:"any",factory:()=>De(If)}),t.__NG_ELEMENT_ID__=-1,t})();function iL(t,n){bc(zd(t)[1],In())}function qt(t){let n=function ex(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const i=[t];for(;n;){let s;if(ns(t))s=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new Ye(903,"");s=n.\u0275dir}if(s){if(e){i.push(s);const o=t;o.inputs=Bf(t.inputs),o.declaredInputs=Bf(t.declaredInputs),o.outputs=Bf(t.outputs);const a=s.hostBindings;a&&aL(t,a);const l=s.viewQuery,c=s.contentQueries;if(l&&rL(t,l),c&&oL(t,c),Qh(t.inputs,s.inputs),Qh(t.declaredInputs,s.declaredInputs),Qh(t.outputs,s.outputs),ns(s)&&s.data.animation){const h=t.data;h.animation=(h.animation||[]).concat(s.data.animation)}}const r=s.features;if(r)for(let o=0;o<r.length;o++){const a=r[o];a&&a.ngInherit&&a(t),a===qt&&(e=!1)}}n=Object.getPrototypeOf(n)}!function sL(t){let n=0,e=null;for(let i=t.length-1;i>=0;i--){const s=t[i];s.hostVars=n+=s.hostVars,s.hostAttrs=Dc(s.hostAttrs,e=Dc(e,s.hostAttrs))}}(i)}function Bf(t){return t===uo?{}:t===Wt?[]:t}function rL(t,n){const e=t.viewQuery;t.viewQuery=e?(i,s)=>{n(i,s),e(i,s)}:n}function oL(t,n){const e=t.contentQueries;t.contentQueries=e?(i,s,r)=>{n(i,s,r),e(i,s,r)}:n}function aL(t,n){const e=t.hostBindings;t.hostBindings=e?(i,s)=>{n(i,s),e(i,s)}:n}let Xc=null;function Po(){if(!Xc){const t=jt.Symbol;if(t&&t.iterator)Xc=t.iterator;else{const n=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<n.length;++e){const i=n[e];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(Xc=i)}}}return Xc}function tl(t){return!!Vf(t)&&(Array.isArray(t)||!(t instanceof Map)&&Po()in t)}function Vf(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function qn(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function me(t,n,e,i){const s=Se();return qn(s,vo(),n)&&(kt(),Ts(rn(),s,t,n,e,i)),me}function Ro(t,n,e,i){return qn(t,vo(),e)?n+rt(e)+i:at}function ue(t,n,e,i,s,r,o,a){const l=Se(),c=kt(),h=t+20,b=c.firstCreatePass?function pL(t,n,e,i,s,r,o,a,l){const c=n.consts,h=ko(n,t,4,o||null,lr(c,a));Df(n,e,h,lr(c,l)),bc(n,h);const b=h.tViews=Uc(2,h,i,s,r,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c);return null!==n.queries&&(n.queries.template(n,h),b.queries=n.queries.embeddedTView(h)),h}(h,c,l,n,e,i,s,r,o):c.data[h];ys(b,!1);const T=l[11].createComment("");Rc(c,l,T,b),Qn(T,l),Wc(l,l[h]=ky(T,l,T,b)),mc(b)&&Cf(c,l,b),null!=o&&Tf(l,b,a)}function ke(t,n=ct.Default){const e=Se();return null===e?De(t,n):Qv(In(),e,mt(t),n)}function j(t,n,e){const i=Se();return qn(i,vo(),n)&&function Mi(t,n,e,i,s,r,o,a){const l=Ti(n,e);let h,c=n.inputs;!a&&null!=c&&(h=c[i])?(Ny(t,e,h,i,s),gc(n)&&function yk(t,n){const e=Di(n,t);16&e[2]||(e[2]|=64)}(e,n.index)):3&n.type&&(i=function _k(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),s=null!=o?o(s,n.value||"",i):s,fn(r)?r.setProperty(l,i,s):Dd(i)||(l.setProperty?l.setProperty(i,s):l[i]=s))}(kt(),rn(),i,t,n,i[11],e,!1),j}function $f(t,n,e,i,s){const o=s?"class":"style";Ny(t,e,n.inputs[o],o,i)}function q(t,n,e,i){const s=Se(),r=kt(),o=20+t,a=s[11],l=s[o]=Yd(a,n,function YS(){return ot.lFrame.currentNamespace}()),c=r.firstCreatePass?function PL(t,n,e,i,s,r,o){const a=n.consts,c=ko(n,t,2,s,lr(a,r));return Df(n,e,c,lr(a,o)),null!==c.attrs&&Yc(c,c.attrs,!1),null!==c.mergedAttrs&&Yc(c,c.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,c),c}(o,r,s,0,n,e,i):r.data[o];ys(c,!0);const h=c.mergedAttrs;null!==h&&Tc(a,l,h);const b=c.classes;null!==b&&ef(a,l,b);const T=c.styles;return null!==T&&R_(a,l,T),64!=(64&c.flags)&&Rc(r,s,l,c),0===function OS(){return ot.lFrame.elementDepthCount}()&&Qn(l,s),function FS(){ot.lFrame.elementDepthCount++}(),mc(c)&&(Cf(r,s,c),_y(r,c,s)),null!==i&&Tf(s,c),q}function re(){let t=In();_d()?yd():(t=t.parent,ys(t,!1));const n=t;!function PS(){ot.lFrame.elementDepthCount--}();const e=kt();return e.firstCreatePass&&(bc(e,t),ld(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function JS(t){return 0!=(16&t.flags)}(n)&&$f(e,n,Se(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function qS(t){return 0!=(32&t.flags)}(n)&&$f(e,n,Se(),n.stylesWithoutHost,!1),re}function Ie(t,n,e,i){return q(t,n,e,i),re(),Ie}function Uf(t,n,e){const i=Se(),s=kt(),r=t+20,o=s.firstCreatePass?function NL(t,n,e,i,s){const r=n.consts,o=lr(r,i),a=ko(n,t,8,"ng-container",o);return null!==o&&Yc(a,o,!0),Df(n,e,a,lr(r,s)),null!==n.queries&&n.queries.elementStart(n,a),a}(r,s,i,n,e):s.data[r];ys(o,!0);const a=i[r]=i[11].createComment("");return Rc(s,i,a,o),Qn(a,i),mc(o)&&(Cf(s,i,o),_y(s,o,i)),null!=e&&Tf(i,o),Uf}function Wf(){let t=In();const n=kt();return _d()?yd():(t=t.parent,ys(t,!1)),n.firstCreatePass&&(bc(n,t),ld(t)&&n.queries.elementEnd(t)),Wf}function fr(t,n,e){return Uf(t,n,e),Wf(),fr}function Be(){return Se()}function Yf(t){return!!t&&"function"==typeof t.then}function wx(t){return!!t&&"function"==typeof t.subscribe}const RL=wx;function ye(t,n,e,i){const s=Se(),r=kt(),o=In();return function Tx(t,n,e,i,s,r,o,a){const l=mc(i),h=t.firstCreatePass&&Oy(t),b=n[8],T=Iy(n);let M=!0;if(3&i.type||a){const P=Ti(i,n),K=a?a(P):P,Q=T.length,ne=a?ge=>a(wn(ge[i.index])):i.index;if(fn(e)){let ge=null;if(!a&&l&&(ge=function BL(t,n,e,i){const s=t.cleanup;if(null!=s)for(let r=0;r<s.length-1;r+=2){const o=s[r];if(o===e&&s[r+1]===i){const a=n[7],l=s[r+2];return a.length>l?a[l]:null}"string"==typeof o&&(r+=2)}return null}(t,n,s,i.index)),null!==ge)(ge.__ngLastListenerFn__||ge).__ngNextListenerFn__=r,ge.__ngLastListenerFn__=r,M=!1;else{r=Xf(i,n,b,r,!1);const Ce=e.listen(K,s,r);T.push(r,Ce),h&&h.push(s,ne,Q,Q+1)}}else r=Xf(i,n,b,r,!0),K.addEventListener(s,r,o),T.push(r),h&&h.push(s,ne,Q,o)}else r=Xf(i,n,b,r,!1);const I=i.outputs;let B;if(M&&null!==I&&(B=I[s])){const P=B.length;if(P)for(let K=0;K<P;K+=2){const we=n[B[K]][B[K+1]].subscribe(r),Oe=T.length;T.push(r,we),h&&h.push(s,i.index,Oe,-(Oe+1))}}}(r,s,s[11],o,t,n,!!e,i),ye}function Dx(t,n,e,i){try{return!1!==e(i)}catch(s){return Py(t,s),!1}}function Xf(t,n,e,i,s){return function r(o){if(o===Function)return i;const a=2&t.flags?Di(t.index,n):n;0==(32&n[2])&&Af(a);let l=Dx(n,0,i,o),c=r.__ngNextListenerFn__;for(;c;)l=Dx(n,0,c,o)&&l,c=c.__ngNextListenerFn__;return s&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function W(t=1){return function GS(t){return(ot.lFrame.contextLView=function $S(t,n){for(;t>0;)n=n[15],t--;return n}(t,ot.lFrame.contextLView))[8]}(t)}function VL(t,n){let e=null;const i=function XM(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(0==(1&e))return n[e+1]}return null}(t);for(let s=0;s<n.length;s++){const r=n[s];if("*"!==r){if(null===i?iy(t,r,!0):QM(i,r))return s}else e=s}return e}function Px(t,n,e,i,s){const r=t[e+1],o=null===n;let a=i?ss(r):Hs(r),l=!1;for(;0!==a&&(!1===l||o);){const h=t[a+1];jL(t[a],n)&&(l=!0,t[a+1]=i?ff(h):hf(h)),a=i?ss(h):Hs(h)}l&&(t[e+1]=i?hf(r):ff(r))}function jL(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&Do(t,n)>=0}const Fn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Nx(t){return t.substring(Fn.key,Fn.keyEnd)}function Rx(t,n){const e=Fn.textEnd;return e===n?-1:(n=Fn.keyEnd=function WL(t,n,e){for(;n<e&&t.charCodeAt(n)>32;)n++;return n}(t,Fn.key=n,e),Wo(t,n,e))}function Wo(t,n,e){for(;n<e&&t.charCodeAt(n)<=32;)n++;return n}function vt(t,n,e){return os(t,n,e,!1),vt}function an(t,n){return os(t,n,null,!0),an}function Ss(t,n){for(let e=function $L(t){return function Vx(t){Fn.key=0,Fn.keyEnd=0,Fn.value=0,Fn.valueEnd=0,Fn.textEnd=t.length}(t),Rx(t,Wo(t,0,Fn.textEnd))}(n);e>=0;e=Rx(n,e))Ei(t,Nx(n),!0)}function os(t,n,e,i){const s=Se(),r=kt(),o=Vs(2);r.firstUpdatePass&&$x(r,t,o,i),n!==at&&qn(s,o,n)&&Wx(r,r.data[ri()],s,s[11],t,s[o+1]=function nI(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=Ht(Ai(t)))),t}(n,e),i,o)}function as(t,n,e,i){const s=kt(),r=Vs(2);s.firstUpdatePass&&$x(s,null,r,i);const o=Se();if(e!==at&&qn(o,r,e)){const a=s.data[ri()];if(Xx(a,i)&&!Gx(s,r)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Jh(l,e||"")),$f(s,a,o,e,i)}else!function tI(t,n,e,i,s,r,o,a){s===at&&(s=Wt);let l=0,c=0,h=0<s.length?s[0]:null,b=0<r.length?r[0]:null;for(;null!==h||null!==b;){const T=l<s.length?s[l+1]:void 0,M=c<r.length?r[c+1]:void 0;let B,I=null;h===b?(l+=2,c+=2,T!==M&&(I=b,B=M)):null===b||null!==h&&h<b?(l+=2,I=h):(c+=2,I=b,B=M),null!==I&&Wx(t,n,e,i,I,B,o,a),h=l<s.length?s[l]:null,b=c<r.length?r[c]:null}}(s,a,o,o[11],o[r+1],o[r+1]=function eI(t,n,e){if(null==e||""===e)return Wt;const i=[],s=Ai(e);if(Array.isArray(s))for(let r=0;r<s.length;r++)t(i,s[r],!0);else if("object"==typeof s)for(const r in s)s.hasOwnProperty(r)&&t(i,r,s[r]);else"string"==typeof s&&n(i,s);return i}(t,n,e),i,r)}}function Gx(t,n){return n>=t.expandoStartIndex}function $x(t,n,e,i){const s=t.data;if(null===s[e+1]){const r=s[ri()],o=Gx(t,e);Xx(r,i)&&null===n&&!o&&(n=!1),n=function KL(t,n,e,i){const s=function bd(t){const n=ot.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let r=i?n.residualClasses:n.residualStyles;if(null===s)0===(i?n.classBindings:n.styleBindings)&&(e=il(e=Kf(null,t,n,e,i),n.attrs,i),r=null);else{const o=n.directiveStylingLast;if(-1===o||t[o]!==s)if(e=Kf(s,t,n,e,i),null===r){let l=function QL(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==Hs(i))return t[ss(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=Kf(null,t,n,l[1],i),l=il(l,n.attrs,i),function JL(t,n,e,i){t[ss(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else r=function qL(t,n,e){let i;const s=n.directiveEnd;for(let r=1+n.directiveStylingLast;r<s;r++)i=il(i,t[r].hostAttrs,e);return il(i,n.attrs,e)}(t,n,i)}return void 0!==r&&(i?n.residualClasses=r:n.residualStyles=r),e}(s,r,n,i),function HL(t,n,e,i,s,r){let o=r?n.classBindings:n.styleBindings,a=ss(o),l=Hs(o);t[i]=e;let h,c=!1;if(Array.isArray(e)){const b=e;h=b[1],(null===h||Do(b,h)>0)&&(c=!0)}else h=e;if(s)if(0!==l){const T=ss(t[a+1]);t[i+1]=jc(T,a),0!==T&&(t[T+1]=df(t[T+1],i)),t[a+1]=function tk(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=jc(a,0),0!==a&&(t[a+1]=df(t[a+1],i)),a=i;else t[i+1]=jc(l,0),0===a?a=i:t[l+1]=df(t[l+1],i),l=i;c&&(t[i+1]=hf(t[i+1])),Px(t,h,i,!0),Px(t,h,i,!1),function zL(t,n,e,i,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof n&&Do(r,n)>=0&&(e[i+1]=ff(e[i+1]))}(n,h,t,i,r),o=jc(a,l),r?n.classBindings=o:n.styleBindings=o}(s,r,n,e,o,i)}}function Kf(t,n,e,i,s){let r=null;const o=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<o&&(r=n[a],i=il(i,r.hostAttrs,s),r!==t);)a++;return null!==t&&(e.directiveStylingLast=a),i}function il(t,n,e){const i=e?1:2;let s=-1;if(null!==n)for(let r=0;r<n.length;r++){const o=n[r];"number"==typeof o?s=o:s===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),Ei(t,o,!!e||n[++r]))}return void 0===t?null:t}function Wx(t,n,e,i,s,r,o,a){if(!(3&n.type))return;const l=t.data,c=l[a+1];qc(function ly(t){return 1==(1&t)}(c)?Yx(l,n,e,s,Hs(c),o):void 0)||(qc(r)||function ay(t){return 2==(2&t)}(c)&&(r=Yx(l,null,e,s,a,o)),function nM(t,n,e,i,s){const r=fn(t);if(n)s?r?t.addClass(e,i):e.classList.add(i):r?t.removeClass(e,i):e.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:Si.DashCase;if(null==s)r?t.removeStyle(e,i,o):e.style.removeProperty(i);else{const a="string"==typeof s&&s.endsWith("!important");a&&(s=s.slice(0,-10),o|=Si.Important),r?t.setStyle(e,i,s,o):e.style.setProperty(i,s,a?"important":"")}}}(i,o,vc(ri(),e),s,r))}function Yx(t,n,e,i,s,r){const o=null===n;let a;for(;s>0;){const l=t[s],c=Array.isArray(l),h=c?l[1]:l,b=null===h;let T=e[s+1];T===at&&(T=b?Wt:void 0);let M=b?Od(T,i):h===i?T:void 0;if(c&&!qc(M)&&(M=Od(l,i)),qc(M)&&(a=M,o))return a;const I=t[s+1];s=o?ss(I):Hs(I)}if(null!==n){let l=r?n.residualClasses:n.residualStyles;null!=l&&(a=Od(l,i))}return a}function qc(t){return void 0!==t}function Xx(t,n){return 0!=(t.flags&(n?16:32))}function St(t,n=""){const e=Se(),i=kt(),s=t+20,r=i.firstCreatePass?ko(i,s,1,n,null):i.data[s],o=e[s]=function Wd(t,n){return fn(t)?t.createText(n):t.createTextNode(n)}(e[11],n);Rc(i,e,o,r),ys(r,!1)}function mi(t){return nn("",t,""),mi}function nn(t,n,e){const i=Se(),s=Ro(i,t,n,e);return s!==at&&zs(i,ri(),s),nn}const eu="en-US";let v0=eu;class G0{}class CO{resolveComponentFactory(n){throw function wO(t){const n=Error(`No component factory found for ${Ht(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let pr=(()=>{class t{}return t.NULL=new CO,t})();function TO(){return Zo(In(),Se())}function Zo(t,n){return new Gt(Ti(t,n))}let Gt=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=TO,t})();function DO(t){return t instanceof Gt?t.nativeElement:t}class ll{}let ru=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function SO(){const t=Se(),e=Di(In().index,t);return function EO(t){return t[11]}(_s(e)?e:t)}(),t})(),AO=(()=>{class t{}return t.\u0275prov=Qe({token:t,providedIn:"root",factory:()=>null}),t})();class Ko{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const MO=new Ko("13.4.0"),sp={};function ou(t,n,e,i,s=!1){for(;null!==e;){const r=n[e.index];if(null!==r&&i.push(wn(r)),ts(r))for(let a=10;a<r.length;a++){const l=r[a],c=l[1].firstChild;null!==c&&ou(l[1],l,c,i)}const o=e.type;if(8&o)ou(t,n,e.child,i);else if(32&o){const a=Gd(e,n);let l;for(;l=a();)i.push(l)}else if(16&o){const a=P_(n,e);if(Array.isArray(a))i.push(...a);else{const l=Ua(n[16]);ou(l[1],l,a,i,!0)}}e=s?e.projectionNext:e.next}return i}class cl{constructor(n,e){this._lView=n,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const n=this._lView,e=n[1];return ou(e,n,e.firstChild,[])}get context(){return this._lView[8]}set context(n){this._lView[8]=n}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[3];if(ts(n)){const e=n[8],i=e?e.indexOf(this):-1;i>-1&&(Xd(n,i),kc(e,i))}this._attachedToViewContainer=!1}E_(this._lView[1],this._lView)}onDestroy(n){wy(this._lView[1],this._lView,null,n)}markForCheck(){Af(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function kf(t,n,e){const i=n[10];i.begin&&i.begin();try{Io(t,n,t.template,e)}catch(s){throw Py(n,s),s}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Ye(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function WA(t,n){Wa(t,n,n[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new Ye(902,"");this._appRef=n}}class kO extends cl{constructor(n){super(n),this._view=n}detectChanges(){Ly(this._view)}checkNoChanges(){}get context(){return null}}class U0 extends pr{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=Un(n);return new rp(e,this.ngModule)}}function W0(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class rp extends G0{constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function qM(t){return t.map(JM).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return W0(this.componentDef.inputs)}get outputs(){return W0(this.componentDef.outputs)}create(n,e,i,s){const r=(s=s||this.ngModule)?function IO(t,n){return{get:(e,i,s)=>{const r=t.get(e,sp,s);return r!==sp||i===sp?r:n.get(e,i,s)}}}(n,s.injector):n,o=r.get(ll,Mv),a=r.get(AO,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",h=i?function by(t,n,e){if(fn(t))return t.selectRootElement(n,e===qi.ShadowDom);let i="string"==typeof n?t.querySelector(n):n;return i.textContent="",i}(l,i,this.componentDef.encapsulation):Yd(o.createRenderer(null,this.componentDef),c,function LO(t){const n=t.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(c)),b=this.componentDef.onPush?576:528,T=function qy(t,n){return{components:[],scheduler:t||jM,clean:Rk,playerHandler:n||null,flags:0}}(),M=Uc(0,null,null,1,0,null,null,null,null,null),I=Ja(null,M,T,b,null,null,o,l,a,r);let B,P;yc(I);try{const K=function Qy(t,n,e,i,s,r){const o=e[1];e[20]=t;const l=ko(o,20,2,"#host",null),c=l.mergedAttrs=n.hostAttrs;null!==c&&(Yc(l,c,!0),null!==t&&(Tc(s,t,c),null!==l.classes&&ef(s,t,l.classes),null!==l.styles&&R_(s,t,l.styles)));const h=i.createRenderer(t,n),b=Ja(e,yy(n),null,n.onPush?64:16,e[20],l,i,h,r||null,null);return o.firstCreatePass&&(Ac(Pa(l,e),o,n.type),Sy(o,l),Ay(l,e.length,1)),Wc(e,b),e[20]=b}(h,this.componentDef,I,o,l);if(h)if(i)Tc(l,h,["ng-version",MO.full]);else{const{attrs:Q,classes:ne}=function ek(t){const n=[],e=[];let i=1,s=2;for(;i<t.length;){let r=t[i];if("string"==typeof r)2===s?""!==r&&n.push(r,t[++i]):8===s&&e.push(r);else{if(!is(s))break;s=r}i++}return{attrs:n,classes:e}}(this.componentDef.selectors[0]);Q&&Tc(l,h,Q),ne&&ne.length>0&&ef(l,h,ne.join(" "))}if(P=gd(M,20),void 0!==e){const Q=P.projection=[];for(let ne=0;ne<this.ngContentSelectors.length;ne++){const ge=e[ne];Q.push(null!=ge?Array.from(ge):null)}}B=function Jy(t,n,e,i,s){const r=e[1],o=function bk(t,n,e){const i=In();t.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),My(t,i,n,Lo(t,n,1,null),e));const s=Na(n,t,i.directiveStart,i);Qn(s,n);const r=Ti(i,n);return r&&Qn(r,n),s}(r,e,n);if(i.components.push(o),t[8]=o,s&&s.forEach(l=>l(o,n)),n.contentQueries){const l=In();n.contentQueries(1,o,l.directiveStart)}const a=In();return!r.firstCreatePass||null===n.hostBindings&&null===n.hostAttrs||(cr(a.index),Dy(e[1],a,0,a.directiveStart,a.directiveEnd,n),Ey(n,o)),o}(K,this.componentDef,I,T,[iL]),qa(M,I,null)}finally{xc()}return new FO(this.componentType,B,Zo(P,I),I,P)}}class FO extends class bO{}{constructor(n,e,i,s,r){super(),this.location=i,this._rootLView=s,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new kO(s),this.componentType=n}get injector(){return new xo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}class Qo{}const Jo=new Map;class Z0 extends Qo{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new U0(this);const i=Ri(n);this._bootstrapComponents=Cs(i.bootstrap),this._r3Injector=Hy(n,e,[{provide:Qo,useValue:this},{provide:pr,useValue:this.componentFactoryResolver}],Ht(n)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(n)}get(n,e=Jn.THROW_IF_NOT_FOUND,i=ct.Default){return n===Jn||n===Qo||n===If?this:this._r3Injector.get(n,e,i)}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class op extends class NO{}{constructor(n){super(),this.moduleType=n,null!==Ri(n)&&function RO(t){const n=new Set;!function e(i){const s=Ri(i,!0),r=s.id;null!==r&&(function Y0(t,n,e){if(n&&n!==e)throw new Error(`Duplicate module registered for ${t} - ${Ht(n)} vs ${Ht(n.name)}`)}(r,Jo.get(r),i),Jo.set(r,i));const o=Cs(s.imports);for(const a of o)n.has(a)||(n.add(a),e(a))}(t)}(n)}create(n){return new Z0(this.moduleType,n)}}function js(t,n,e,i){return Q0(Se(),si(),t,n,e,i)}function Q0(t,n,e,i,s,r){const o=n+e;return qn(t,o,s)?function Ds(t,n,e){return t[n]=e}(t,o+1,r?i.call(r,s):i(s)):function ul(t,n){const e=t[n];return e===at?void 0:e}(t,o+1)}function lp(t){return n=>{setTimeout(t,void 0,n)}}const _e=class ZO extends ${constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){var s,r,o;let a=n,l=e||(()=>null),c=i;if(n&&"object"==typeof n){const b=n;a=null===(s=b.next)||void 0===s?void 0:s.bind(b),l=null===(r=b.error)||void 0===r?void 0:r.bind(b),c=null===(o=b.complete)||void 0===o?void 0:o.bind(b)}this.__isAsync&&(l=lp(l),a&&(a=lp(a)),c&&(c=lp(c)));const h=super.subscribe({next:a,error:l,complete:c});return n instanceof m&&n.add(h),h}};function KO(){return this._results[Po()]()}class cp{constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Po(),i=cp.prototype;i[e]||(i[e]=KO)}get changes(){return this._changes||(this._changes=new _e)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const s=Hi(n);(this._changesDetected=!function lA(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i<t.length;i++){let s=t[i],r=n[i];if(e&&(s=e(s),r=e(r)),r!==s)return!1}return!0}(i._results,s,e))&&(i._results=s,i.length=s.length,i.last=s[this.length-1],i.first=s[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let Gs=(()=>{class t{}return t.__NG_ELEMENT_ID__=qO,t})();const QO=Gs,JO=class extends QO{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n){const e=this._declarationTContainer.tViews,i=Ja(this._declarationLView,e,n,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[19];return null!==r&&(i[19]=r.createEmbeddedView(e)),qa(e,i,n),new cl(i)}};function qO(){return au(In(),Se())}function au(t,n){return 4&t.type?new JO(n,t,Zo(t,n)):null}let ji=(()=>{class t{}return t.__NG_ELEMENT_ID__=eF,t})();function eF(){return ob(In(),Se())}const tF=ji,sb=class extends tF{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Zo(this._hostTNode,this._hostLView)}get injector(){return new xo(this._hostTNode,this._hostLView)}get parentInjector(){const n=Sc(this._hostTNode,this._hostLView);if(Wv(n)){const e=yo(n,this._hostLView),i=_o(n);return new xo(e[1].data[i+8],e)}return new xo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=rb(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,e,i){const s=n.createEmbeddedView(e||{});return this.insert(s,i),s}createComponent(n,e,i,s,r){const o=n&&!function Ba(t){return"function"==typeof t}(n);let a;if(o)a=e;else{const b=e||{};a=b.index,i=b.injector,s=b.projectableNodes,r=b.ngModuleRef}const l=o?n:new rp(Un(n)),c=i||this.parentInjector;if(!r&&null==l.ngModule){const T=(o?c:this.parentInjector).get(Qo,null);T&&(r=T)}const h=l.create(c,s,void 0,r);return this.insert(h.hostView,a),h}insert(n,e){const i=n._lView,s=i[1];if(function IS(t){return ts(t[3])}(i)){const h=this.indexOf(n);if(-1!==h)this.detach(h);else{const b=i[3],T=new sb(b,b[6],b[3]);T.detach(T.indexOf(n))}}const r=this._adjustIndex(e),o=this._lContainer;!function XA(t,n,e,i){const s=10+i,r=e.length;i>0&&(e[s-1][4]=n),i<r-10?(n[4]=e[s],n_(e,10+i,n)):(e.push(n),n[4]=null),n[3]=e;const o=n[17];null!==o&&e!==o&&function ZA(t,n){const e=t[9];n[16]!==n[3][3][16]&&(t[2]=!0),null===e?t[9]=[n]:e.push(n)}(o,n);const a=n[19];null!==a&&a.insertView(t),n[2]|=128}(s,i,o,r);const a=Qd(r,o),l=i[11],c=Nc(l,o[7]);return null!==c&&function UA(t,n,e,i,s,r){i[0]=s,i[6]=n,Wa(t,i,e,1,s,r)}(s,o[6],l,i,c,a),n.attachToViewContainerRef(),n_(up(o),r,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=rb(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=Xd(this._lContainer,e);i&&(kc(up(this._lContainer),e),E_(i[1],i))}detach(n){const e=this._adjustIndex(n,-1),i=Xd(this._lContainer,e);return i&&null!=kc(up(this._lContainer),e)?new cl(i):null}_adjustIndex(n,e=0){return null==n?this.length+e:n}};function rb(t){return t[8]}function up(t){return t[8]||(t[8]=[])}function ob(t,n){let e;const i=n[t.index];if(ts(i))e=i;else{let s;if(8&t.type)s=wn(i);else{const r=n[11];s=r.createComment("");const o=Ti(t,n);Or(r,Nc(r,o),s,function qA(t,n){return fn(t)?t.nextSibling(n):n.nextSibling}(r,o),!1)}n[t.index]=e=ky(i,n,s,t),Wc(n,e)}return new sb(e,t,n)}class hp{constructor(n){this.queryList=n,this.matches=null}clone(){return new hp(this.queryList)}setDirty(){this.queryList.setDirty()}}class dp{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,s=[];for(let r=0;r<i;r++){const o=e.getByIndex(r);s.push(this.queries[o.indexInDeclarationView].clone())}return new dp(s)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let e=0;e<this.queries.length;e++)null!==hb(n,e).matches&&this.queries[e].setDirty()}}class ab{constructor(n,e,i=null){this.predicate=n,this.flags=e,this.read=i}}class fp{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(n,e)}elementEnd(n){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(n)}embeddedTView(n){let e=null;for(let i=0;i<this.length;i++){const s=null!==e?e.length:0,r=this.getByIndex(i).embeddedTView(n,s);r&&(r.indexInDeclarationView=i,null!==e?e.push(r):e=[r])}return null!==e?new fp(e):null}template(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(n,e)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}}class pp{constructor(n,e=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(n,e){this.isApplyingToNode(e)&&this.matchTNode(n,e)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,e){this.elementStart(n,e)}embeddedTView(n,e){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,e),new pp(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let i=n.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(n,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let s=0;s<i.length;s++){const r=i[s];this.matchTNodeWithReadOption(n,e,sF(e,r)),this.matchTNodeWithReadOption(n,e,Mc(e,n,r,!1,!1))}else i===Gs?4&e.type&&this.matchTNodeWithReadOption(n,e,-1):this.matchTNodeWithReadOption(n,e,Mc(e,n,i,!1,!1))}matchTNodeWithReadOption(n,e,i){if(null!==i){const s=this.metadata.read;if(null!==s)if(s===Gt||s===ji||s===Gs&&4&e.type)this.addMatch(e.index,-2);else{const r=Mc(e,n,s,!1,!1);null!==r&&this.addMatch(e.index,r)}else this.addMatch(e.index,i)}}addMatch(n,e){null===this.matches?this.matches=[n,e]:this.matches.push(n,e)}}function sF(t,n){const e=t.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===n)return e[i+1];return null}function oF(t,n,e,i){return-1===e?function rF(t,n){return 11&t.type?Zo(t,n):4&t.type?au(t,n):null}(n,t):-2===e?function aF(t,n,e){return e===Gt?Zo(n,t):e===Gs?au(n,t):e===ji?ob(n,t):void 0}(t,n,i):Na(t,t[1],e,n)}function lb(t,n,e,i){const s=n[19].queries[i];if(null===s.matches){const r=t.data,o=e.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:oF(n,r[c],o[l+1],e.metadata.read))}s.matches=a}return s.matches}function gp(t,n,e,i){const s=t.queries.getByIndex(e),r=s.matches;if(null!==r){const o=lb(t,n,s,e);for(let a=0;a<r.length;a+=2){const l=r[a];if(l>0)i.push(o[a/2]);else{const c=r[a+1],h=n[-l];for(let b=10;b<h.length;b++){const T=h[b];T[17]===T[3]&&gp(T[1],T,c,i)}if(null!==h[9]){const b=h[9];for(let T=0;T<b.length;T++){const M=b[T];gp(M[1],M,c,i)}}}}}return i}function ht(t){const n=Se(),e=kt(),i=Rv();wd(i+1);const s=hb(e,i);if(t.dirty&&kv(n)===(2==(2&s.metadata.flags))){if(null===s.matches)t.reset([]);else{const r=s.crossesNgTemplate?gp(e,n,i,[]):lb(e,n,s,i);t.reset(r,DO),t.notifyOnChanges()}return!0}return!1}function vi(t,n,e){const i=kt();i.firstCreatePass&&(ub(i,new ab(t,n,e),-1),2==(2&n)&&(i.staticViewQueries=!0)),cb(i,Se(),n)}function Bt(t,n,e,i){const s=kt();if(s.firstCreatePass){const r=In();ub(s,new ab(n,e,i),r.index),function cF(t,n){const e=t.contentQueries||(t.contentQueries=[]);n!==(e.length?e[e.length-1]:-1)&&e.push(t.queries.length-1,n)}(s,t),2==(2&e)&&(s.staticContentQueries=!0)}cb(s,Se(),e)}function dt(){return function lF(t,n){return t[19].queries[n].queryList}(Se(),Rv())}function cb(t,n,e){const i=new cp(4==(4&e));wy(t,n,i,i.destroy),null===n[19]&&(n[19]=new dp),n[19].queries.push(new hp(i))}function ub(t,n,e){null===t.queries&&(t.queries=new fp),t.queries.track(new pp(n,e))}function hb(t,n){return t.queries.getByIndex(n)}function dl(t,n){return au(t,n)}function uu(...t){}const Ab=new et("Application Initializer");let bp=(()=>{class t{constructor(e){this.appInits=e,this.resolve=uu,this.reject=uu,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,s)=>{this.resolve=i,this.reject=s})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let s=0;s<this.appInits.length;s++){const r=this.appInits[s]();if(Yf(r))e.push(r);else if(RL(r)){const o=new Promise((a,l)=>{r.subscribe({complete:a,error:l})});e.push(o)}}Promise.all(e).then(()=>{i()}).catch(s=>{this.reject(s)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(De(Ab,8))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const pl=new et("AppId",{providedIn:"root",factory:function Mb(){return`${wp()}${wp()}${wp()}`}});function wp(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const kb=new et("Platform Initializer"),Cp=new et("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),EF=new et("appBootstrapListener"),$s=new et("LocaleId",{providedIn:"root",factory:()=>Nd($s,ct.Optional|ct.SkipSelf)||function SF(){return"undefined"!=typeof $localize&&$localize.locale||eu}()}),LF=(()=>Promise.resolve(0))();function Tp(t){"undefined"==typeof Zone?LF.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Pt{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new _e(!1),this.onMicrotaskEmpty=new _e(!1),this.onStable=new _e(!1),this.onError=new _e(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&e,s.shouldCoalesceRunChangeDetection=i,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function IF(){let t=jt.requestAnimationFrame,n=jt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function PF(t){const n=()=>{!function FF(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(jt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Ep(t),t.isCheckStableRunning=!0,Dp(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Ep(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,s,r,o,a)=>{try{return Lb(t),e.invokeTask(s,r,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&n(),Ib(t)}},onInvoke:(e,i,s,r,o,a,l)=>{try{return Lb(t),e.invoke(s,r,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),Ib(t)}},onHasTask:(e,i,s,r)=>{e.hasTask(s,r),i===s&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,Ep(t),Dp(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,s,r)=>(e.handleError(s,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(s)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Pt.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Pt.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,s){const r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+s,n,OF,uu,uu);try{return r.runTask(o,e,i)}finally{r.cancelTask(o)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const OF={};function Dp(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 Ep(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Lb(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Ib(t){t._nesting--,Dp(t)}class NF{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new _e,this.onMicrotaskEmpty=new _e,this.onStable=new _e,this.onError=new _e}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,s){return n.apply(e,i)}}let Sp=(()=>{class t{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.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:()=>{Pt.assertNotInAngularZone(),Tp(()=>{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())Tp(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,s){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==r),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:s})}whenStable(e,i,s){if(s&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,i,s){return[]}}return t.\u0275fac=function(e){return new(e||t)(De(Pt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})(),RF=(()=>{class t{constructor(){this._applications=new Map,Ap.addToWindow(this)}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return Ap.findTestabilityInTree(this,e,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();class BF{addToWindow(n){}findTestabilityInTree(n,e,i){return null}}let Ap=new BF,Br=null;const Ob=new et("AllowMultipleToken"),Fb=new et("PlatformOnDestroy");function Pb(t,n,e=[]){const i=`Platform: ${n}`,s=new et(i);return(r=[])=>{let o=Mp();if(!o||o.injector.get(Ob,!1)){const a=[...e,...r,{provide:s,useValue:!0}];t?t(a):function jF(t){if(Br&&!Br.get(Ob,!1))throw new Ye(400,"");Br=t;const n=t.get(Nb),e=t.get(kb,null);e&&e.forEach(i=>i())}(function $F(t=[],n){return Jn.create({name:n,providers:[{provide:Of,useValue:"platform"},{provide:Fb,useValue:()=>Br=null},...t]})}(a,i))}return function GF(t){const n=Mp();if(!n)throw new Ye(401,"");return n}()}}function Mp(){var t;return null!==(t=null==Br?void 0:Br.get(Nb))&&void 0!==t?t:null}let Nb=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const a=function UF(t,n){let e;return e="noop"===t?new NF:("zone.js"===t?void 0:t)||new Pt({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==n?void 0:n.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==n?void 0:n.ngZoneRunCoalescing)}),e}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:Pt,useValue:a}];return a.run(()=>{const c=Jn.create({providers:l,parent:this.injector,name:e.moduleType.name}),h=e.create(c),b=h.injector.get(Qa,null);if(!b)throw new Ye(402,"");return a.runOutsideAngular(()=>{const T=a.onError.subscribe({next:M=>{b.handleError(M)}});h.onDestroy(()=>{kp(this._modules,h),T.unsubscribe()})}),function WF(t,n,e){try{const i=e();return Yf(i)?i.catch(s=>{throw n.runOutsideAngular(()=>t.handleError(s)),s}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(b,a,()=>{const T=h.injector.get(bp);return T.runInitializers(),T.donePromise.then(()=>(function EI(t){wi(t,"Expected localeId to be defined"),"string"==typeof t&&(v0=t.toLowerCase().replace(/_/g,"-"))}(h.injector.get($s,eu)||eu),this._moduleDoBootstrap(h),h))})})}bootstrapModule(e,i=[]){const s=Rb({},i);return function HF(t,n,e){const i=new op(e);return Promise.resolve(i)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,s))}_moduleDoBootstrap(e){const i=e.injector.get(gl);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(s=>i.bootstrap(s));else{if(!e.instance.ngDoBootstrap)throw new Ye(403,"");e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Ye(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(Fb,null);null==e||e(),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(De(Jn))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function Rb(t,n){return Array.isArray(n)?n.reduce(Rb,t):Object.assign(Object.assign({},t),n)}let gl=(()=>{class t{constructor(e,i,s,r){this._zone=e,this._injector=i,this._exceptionHandler=s,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new te(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new te(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{Pt.assertNotInAngularZone(),Tp(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const h=this._zone.onUnstable.subscribe(()=>{Pt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),h.unsubscribe()}});this.isStable=Ea(o,a.pipe(function qE(){return t=>Sa()(function KE(t,n){return function(i){let s;if(s="function"==typeof t?t:function(){return t},"function"==typeof n)return i.lift(new QE(s,n));const r=Object.create(i,Kh);return r.source=i,r.subjectFactory=s,r}}(JE)(t))}()))}bootstrap(e,i){if(!this._initStatus.done)throw new Ye(405,"");let s;s=e instanceof G0?e:this._injector.get(pr).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const r=function zF(t){return t.isBoundToModule}(s)?void 0:this._injector.get(Qo),a=s.create(Jn.NULL,[],i||s.selector,r),l=a.location.nativeElement,c=a.injector.get(Sp,null),h=c&&a.injector.get(RF);return c&&h&&h.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),kp(this.components,a),h&&h.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Ye(101,"");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;kp(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(EF,[]).concat(this._bootstrapListeners).forEach(s=>s(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(De(Pt),De(Jn),De(Qa),De(bp))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function kp(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let Vb=!0,As=(()=>{class t{}return t.__NG_ELEMENT_ID__=ZF,t})();function ZF(t){return function KF(t,n,e){if(gc(t)&&!e){const i=Di(t.index,n);return new cl(i,i)}return 47&t.type?new cl(n[16],n):null}(In(),Se(),16==(16&t))}class $b{constructor(){}supports(n){return tl(n)}create(n){return new nP(n)}}const tP=(t,n)=>n;class nP{constructor(n){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=n||tP}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,s=0,r=null;for(;e||i;){const o=!i||e&&e.currentIndex<Wb(i,s,r)?e:i,a=Wb(o,s,r),l=o.currentIndex;if(o===i)s--,i=i._nextRemoved;else if(e=e._next,null==o.previousIndex)s++;else{r||(r=[]);const c=a-s,h=l-s;if(c!=h){for(let T=0;T<c;T++){const M=T<r.length?r[T]:r[T]=0,I=M+T;h<=I&&I<c&&(r[T]=M+1)}r[o.previousIndex]=h-c}}a!==l&&n(o,a,l)}}forEachPreviousItem(n){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachMovedItem(n){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)n(e)}forEachIdentityChange(n){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)n(e)}diff(n){if(null==n&&(n=[]),!tl(n))throw new Ye(900,"");return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let s,r,o,e=this._itHead,i=!1;if(Array.isArray(n)){this.length=n.length;for(let a=0;a<this.length;a++)r=n[a],o=this._trackByFn(a,r),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,r,o,a)),Object.is(e.item,r)||this._addIdentityChange(e,r)):(e=this._mismatch(e,r,o,a),i=!0),e=e._next}else s=0,function fL(t,n){if(Array.isArray(t))for(let e=0;e<t.length;e++)n(t[e]);else{const e=t[Po()]();let i;for(;!(i=e.next()).done;)n(i.value)}}(n,a=>{o=this._trackByFn(s,a),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,a,o,s)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,o,s),i=!0),e=e._next,s++}),this.length=s;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,s){let r;return null===n?r=this._itTail:(r=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,r,s)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,s))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,r,s)):n=this._addAfter(new iP(e,i),r,s),n}_verifyReinsertion(n,e,i,s){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?n=this._reinsertAfter(r,n._prev,s):n.currentIndex!=s&&(n.currentIndex=s,this._addToMoves(n,s)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=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(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const s=n._prevRemoved,r=n._nextRemoved;return null===s?this._removalsHead=r:s._nextRemoved=r,null===r?this._removalsTail=s:r._prevRemoved=s,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const s=null===e?this._itHead:e._next;return n._next=s,n._prev=e,null===s?this._itTail=n:s._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new Ub),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ub),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class iP{constructor(n,e){this.item=n,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 sP{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class Ub{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new sP,this.map.set(e,i)),i.add(n)}get(n,e){const s=this.map.get(n);return s?s.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Wb(t,n,e){const i=t.previousIndex;if(null===i)return i;let s=0;return e&&i<e.length&&(s=e[i]),i+n+s}class Yb{constructor(){}supports(n){return n instanceof Map||Vf(n)}create(){return new rP}}class rP{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(n){let e;for(e=this._mapHead;null!==e;e=e._next)n(e)}forEachPreviousItem(n){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)n(e)}forEachChangedItem(n){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)n(e)}diff(n){if(n){if(!(n instanceof Map||Vf(n)))throw new Ye(900,"")}else n=new Map;return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(n,(i,s)=>{if(e&&e.key===s)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(s,i);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const s=this._records.get(n);this._maybeAddToChanges(s,e);const r=s._prev,o=s._next;return r&&(r._next=o),o&&(o._prev=r),s._next=null,s._prev=null,s}const i=new oP(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class oP{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Xb(){return new fu([new $b])}let fu=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const s=i.factories.slice();e=e.concat(s)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Xb()),deps:[[t,new Fc,new Oc]]}}find(e){const i=this.factories.find(s=>s.supports(e));if(null!=i)return i;throw new Ye(901,"")}}return t.\u0275prov=Qe({token:t,providedIn:"root",factory:Xb}),t})();function Zb(){return new ml([new Yb])}let ml=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(i){const s=i.factories.slice();e=e.concat(s)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Zb()),deps:[[t,new Fc,new Oc]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new Ye(901,"")}}return t.\u0275prov=Qe({token:t,providedIn:"root",factory:Zb}),t})();const cP=Pb(null,"core",[]);let uP=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(De(gl))},t.\u0275mod=Ft({type:t}),t.\u0275inj=Lt({}),t})(),pu=null;function gr(){return pu}const Rt=new et("DocumentToken");let vl=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Qe({token:t,factory:function(){return function pP(){return De(Kb)}()},providedIn:"platform"}),t})(),Kb=(()=>{class t extends vl{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return gr().getBaseHref(this._doc)}onPopState(e){const i=gr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=gr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,i,s){Qb()?this._history.pushState(e,i,s):this.location.hash=s}replaceState(e,i,s){Qb()?this._history.replaceState(e,i,s):this.location.hash=s}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(De(Rt))},t.\u0275prov=Qe({token:t,factory:function(){return function gP(){return new Kb(De(Rt))}()},providedIn:"platform"}),t})();function Qb(){return!!window.history.pushState}function Jb(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function qb(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Hr(t){return t&&"?"!==t[0]?"?"+t:t}let Pp=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Qe({token:t,factory:function(){return function mP(t){const n=De(Rt).location;return new _P(De(vl),n&&n.origin||"")}()},providedIn:"root"}),t})();const vP=new et("appBaseHref");let _P=(()=>{class t extends Pp{constructor(e,i){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)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=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Jb(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Hr(this._platformLocation.search),s=this._platformLocation.hash;return s&&e?`${i}${s}`:i}pushState(e,i,s,r){const o=this.prepareExternalUrl(s+Hr(r));this._platformLocation.pushState(e,i,o)}replaceState(e,i,s,r){const o=this.prepareExternalUrl(s+Hr(r));this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,s;null===(s=(i=this._platformLocation).historyGo)||void 0===s||s.call(i,e)}}return t.\u0275fac=function(e){return new(e||t)(De(vl),De(vP,8))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})(),ew=(()=>{class t{constructor(e,i){this._subject=new _e,this._urlChangeListeners=[],this._platformStrategy=e;const s=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=qb(tw(s)),this._platformStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Hr(i))}normalize(e){return t.stripTrailingSlash(function xP(t,n){return t&&n.startsWith(t)?n.substring(t.length):n}(this._baseHref,tw(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,i="",s=null){this._platformStrategy.pushState(s,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Hr(i)),s)}replaceState(e,i="",s=null){this._platformStrategy.replaceState(s,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Hr(i)),s)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var i,s;null===(s=(i=this._platformStrategy).historyGo)||void 0===s||s.call(i,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(s=>s(e,i))}subscribe(e,i,s){return this._subject.subscribe({next:e,error:i,complete:s})}}return t.normalizeQueryParams=Hr,t.joinWithSlash=Jb,t.stripTrailingSlash=qb,t.\u0275fac=function(e){return new(e||t)(De(Pp),De(vl))},t.\u0275prov=Qe({token:t,factory:function(){return function yP(){return new ew(De(Pp),De(vl))}()},providedIn:"root"}),t})();function tw(t){return t.replace(/\/index.html$/,"")}let uw=(()=>{class t{constructor(e,i,s,r){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=s,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(tl(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Ht(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(s=>{i?this._renderer.addClass(this._ngEl.nativeElement,s):this._renderer.removeClass(this._ngEl.nativeElement,s)})}}return t.\u0275fac=function(e){return new(e||t)(ke(fu),ke(ml),ke(Gt),ke(ru))},t.\u0275dir=bn({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class o2{constructor(n,e,i,s){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=s}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 Mt=(()=>{class t{constructor(e,i,s){this._viewContainer=e,this._template=i,this._differs=s,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((s,r,o)=>{if(null==s.previousIndex)i.createEmbeddedView(this._template,new o2(s.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===r?void 0:r);else if(null!==r){const a=i.get(r);i.move(a,o),hw(a,s)}});for(let s=0,r=i.length;s<r;s++){const a=i.get(s).context;a.index=s,a.count=r,a.ngForOf=this._ngForOf}e.forEachIdentityChange(s=>{hw(i.get(s.currentIndex),s)})}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(ke(ji),ke(Gs),ke(fu))},t.\u0275dir=bn({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();function hw(t,n){t.context.$implicit=n.item}let yt=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new a2,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){dw("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){dw("ngIfElse",e),this._elseTemplateRef=e,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(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(ke(ji),ke(Gs))},t.\u0275dir=bn({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class a2{constructor(){this.$implicit=null,this.ngIf=null}}function dw(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Ht(n)}'.`)}const fw="browser";let Zp=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(ke(ji))},t.\u0275dir=bn({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[ut]}),t})();class z2{createSubscription(n,e){return n.subscribe({next:e,error:i=>{throw i}})}dispose(n){n.unsubscribe()}onDestroy(n){n.unsubscribe()}}class j2{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}onDestroy(n){}}const G2=new j2,$2=new z2;let yw=(()=>{class t{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(Yf(e))return G2;if(wx(e))return $2;throw function cs(t,n){return new Ye(2100,"")}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(ke(As,16))},t.\u0275pipe=gi({name:"async",type:t,pure:!1}),t})(),mr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ft({type:t}),t.\u0275inj=Lt({}),t})();class Jp extends class uN extends class fP{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function dP(t){pu||(pu=t)}(new Jp)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function hN(){return bl=bl||document.querySelector("base"),bl?bl.getAttribute("href"):null}();return null==e?null:function dN(t){Eu=Eu||document.createElement("a"),Eu.setAttribute("href",t);const n=Eu.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){bl=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return function s2(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[s,r]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(s.trim()===n)return decodeURIComponent(r)}return null}(document.cookie,n)}}let Eu,bl=null;const ww=new et("TRANSITION_ID"),pN=[{provide:Ab,useFactory:function fN(t,n,e){return()=>{e.get(bp).donePromise.then(()=>{const i=gr(),s=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let r=0;r<s.length;r++)i.remove(s[r])})}},deps:[ww,Rt,Jn],multi:!0}];class qp{static init(){!function VF(t){Ap=t}(new qp)}addToWindow(n){jt.getAngularTestability=(i,s=!0)=>{const r=n.findTestabilityInTree(i,s);if(null==r)throw new Error("Could not find testability for element.");return r},jt.getAllAngularTestabilities=()=>n.getAllTestabilities(),jt.getAllAngularRootElements=()=>n.getAllRootElements(),jt.frameworkStabilizers||(jt.frameworkStabilizers=[]),jt.frameworkStabilizers.push(i=>{const s=jt.getAllAngularTestabilities();let r=s.length,o=!1;const a=function(l){o=o||l,r--,0==r&&i(o)};s.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,e,i){if(null==e)return null;const s=n.getTestability(e);return null!=s?s:i?gr().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null}}let gN=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})();const Su=new et("EventManagerPlugins");let Au=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(s=>s.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,s){return this._findPluginFor(i).addEventListener(e,i,s)}addGlobalEventListener(e,i,s){return this._findPluginFor(i).addGlobalEventListener(e,i,s)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const s=this._plugins;for(let r=0;r<s.length;r++){const o=s[r];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error(`No event manager plugin found for event ${e}`)}}return t.\u0275fac=function(e){return new(e||t)(De(Su),De(Pt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})();class Cw{constructor(n){this._doc=n}addGlobalEventListener(n,e,i){const s=gr().getGlobalEventTarget(this._doc,n);if(!s)throw new Error(`Unsupported event target ${s} for event ${e}`);return this.addEventListener(s,e,i)}}let Tw=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(s=>{this._stylesSet.has(s)||(this._stylesSet.add(s),i.add(s))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})(),wl=(()=>{class t extends Tw{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,s){e.forEach(r=>{const o=this._doc.createElement("style");o.textContent=r,s.push(i.appendChild(o))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(Dw),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,s)=>{this._addStylesToHost(e,s,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Dw))}}return t.\u0275fac=function(e){return new(e||t)(De(Rt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})();function Dw(t){gr().remove(t)}const eg={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},tg=/%COMP%/g;function Mu(t,n,e){for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?Mu(t,s,e):(s=s.replace(tg,t),e.push(s))}return e}function Aw(t){return n=>{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let ku=(()=>{class t{constructor(e,i,s){this.eventManager=e,this.sharedStylesHost=i,this.appId=s,this.rendererByCompId=new Map,this.defaultRenderer=new ng(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case qi.Emulated:{let s=this.rendererByCompId.get(i.id);return s||(s=new bN(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,s)),s.applyToHost(e),s}case 1:case qi.ShadowDom:return new wN(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const s=Mu(i.id,i.styles,[]);this.sharedStylesHost.addStyles(s),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(De(Au),De(wl),De(pl))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})();class ng{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(eg[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){n.appendChild(e)}insertBefore(n,e,i){n&&n.insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,s){if(s){e=s+":"+e;const r=eg[s];r?n.setAttributeNS(r,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const s=eg[i];s?n.removeAttributeNS(s,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,s){s&(Si.DashCase|Si.Important)?n.style.setProperty(e,i,s&Si.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&Si.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,Aw(i)):this.eventManager.addEventListener(n,e,Aw(i))}}class bN extends ng{constructor(n,e,i,s){super(n),this.component=i;const r=Mu(s+"-"+i.id,i.styles,[]);e.addStyles(r),this.contentAttr=function _N(t){return"_ngcontent-%COMP%".replace(tg,t)}(s+"-"+i.id),this.hostAttr=function yN(t){return"_nghost-%COMP%".replace(tg,t)}(s+"-"+i.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}class wN extends ng{constructor(n,e,i,s){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=Mu(s.id,s.styles,[]);for(let o=0;o<r.length;o++){const a=document.createElement("style");a.textContent=r[o],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}}let CN=(()=>{class t extends Cw{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,s){return e.addEventListener(i,s,!1),()=>this.removeEventListener(e,i,s)}removeEventListener(e,i,s){return e.removeEventListener(i,s)}}return t.\u0275fac=function(e){return new(e||t)(De(Rt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})();const kw=["alt","control","meta","shift"],DN={"\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"},Lw={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"},EN={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let SN=(()=>{class t extends Cw{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,s){const r=t.parseEventName(i),o=t.eventCallback(r.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>gr().onAndCancel(e,r.domEventName,o))}static parseEventName(e){const i=e.toLowerCase().split("."),s=i.shift();if(0===i.length||"keydown"!==s&&"keyup"!==s)return null;const r=t._normalizeKey(i.pop());let o="";if(kw.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),o+=l+".")}),o+=r,0!=i.length||0===r.length)return null;const a={};return a.domEventName=s,a.fullKey=o,a}static getEventFullKey(e){let i="",s=function AN(t){let n=t.key;if(null==n){if(n=t.keyIdentifier,null==n)return"Unidentified";n.startsWith("U+")&&(n=String.fromCharCode(parseInt(n.substring(2),16)),3===t.location&&Lw.hasOwnProperty(n)&&(n=Lw[n]))}return DN[n]||n}(e);return s=s.toLowerCase()," "===s?s="space":"."===s&&(s="dot"),kw.forEach(r=>{r!=s&&EN[r](e)&&(i+=r+".")}),i+=s,i}static eventCallback(e,i,s){return r=>{t.getEventFullKey(r)===e&&s.runGuarded(()=>i(r))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(De(Rt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})();const IN=Pb(cP,"browser",[{provide:Cp,useValue:fw},{provide:kb,useValue:function MN(){Jp.makeCurrent(),qp.init()},multi:!0},{provide:Rt,useFactory:function LN(){return function AS(t){fd=t}(document),document},deps:[]}]),ON=[{provide:Of,useValue:"root"},{provide:Qa,useFactory:function kN(){return new Qa},deps:[]},{provide:Su,useClass:CN,multi:!0,deps:[Rt,Pt,Cp]},{provide:Su,useClass:SN,multi:!0,deps:[Rt]},{provide:ku,useClass:ku,deps:[Au,wl,pl]},{provide:ll,useExisting:ku},{provide:Tw,useExisting:wl},{provide:wl,useClass:wl,deps:[Rt]},{provide:Sp,useClass:Sp,deps:[Pt]},{provide:Au,useClass:Au,deps:[Su,Pt]},{provide:class lN{},useClass:gN,deps:[]}];let Iw=(()=>{class t{constructor(e){if(e)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:pl,useValue:e.appId},{provide:ww,useExisting:pl},pN]}}}return t.\u0275fac=function(e){return new(e||t)(De(t,12))},t.\u0275mod=Ft({type:t}),t.\u0275inj=Lt({providers:ON,imports:[mr,uP]}),t})();"undefined"!=typeof window&&window;let sg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Qe({token:t,factory:function(e){let i=null;return i=e?new(e||t):De(Pw),i},providedIn:"root"}),t})(),Pw=(()=>{class t extends sg{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Jt.NONE:return i;case Jt.HTML:return bs(i,"HTML")?Ai(i):Z_(this._doc,String(i)).toString();case Jt.STYLE:return bs(i,"Style")?Ai(i):i;case Jt.SCRIPT:if(bs(i,"Script"))return Ai(i);throw new Error("unsafe value used in a script context");case Jt.URL:return z_(i),bs(i,"URL")?Ai(i):Ya(String(i));case Jt.RESOURCE_URL:if(bs(i,"ResourceURL"))return Ai(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function hM(t){return new oM(t)}(e)}bypassSecurityTrustStyle(e){return function dM(t){return new aM(t)}(e)}bypassSecurityTrustScript(e){return function fM(t){return new lM(t)}(e)}bypassSecurityTrustUrl(e){return function pM(t){return new cM(t)}(e)}bypassSecurityTrustResourceUrl(e){return function gM(t){return new uM(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(De(Rt))},t.\u0275prov=Qe({token:t,factory:function(e){let i=null;return i=e?new e:function GN(t){return new Pw(t.get(Rt))}(De(Jn)),i},providedIn:"root"}),t})();class $N extends m{constructor(n,e){super()}schedule(n,e=0){return this}}class Lu extends $N{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){if(this.closed)return this;this.state=n;const i=this.id,s=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(s,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(s,this.id,e),this}requestAsyncId(n,e,i=0){return setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let s,i=!1;try{this.work(n)}catch(r){i=!0,s=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),s}_unsubscribe(){const n=this.id,e=this.scheduler,i=e.actions,s=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&i.splice(s,1),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null}}let Nw=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,s){return new this.SchedulerAction(this,e).schedule(s,i)}}return t.now=()=>Date.now(),t})();class us extends Nw{constructor(n,e=Nw.now){super(n,()=>us.delegate&&us.delegate!==this?us.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(n,e=0,i){return us.delegate&&us.delegate!==this?us.delegate.schedule(n,e,i):super.schedule(n,e,i)}flush(n){const{actions:e}=this;if(this.active)return void e.push(n);let i;this.active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this.active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const YN=new class WN extends us{}(class UN extends Lu{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}schedule(n,e=0){return e>0?super.schedule(n,e):(this.delay=e,this.state=n,this.scheduler.flush(this),this)}execute(n,e){return e>0||this.closed?super.execute(n,e):this._execute(n,e)}requestAsyncId(n,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(n,e,i):n.flush(this)}}),XN=new te(t=>t.complete());function Rw(t){return t?function ZN(t){return new te(n=>t.schedule(()=>n.complete()))}(t):XN}function ea(...t){let n=t[t.length-1];return oe(n)?(t.pop(),Xe(t,n)):ir(t)}function QN({error:t,subscriber:n}){n.error(t)}class Ui{constructor(n,e,i){this.kind=n,this.value=e,this.error=i,this.hasValue="N"===n}observe(n){switch(this.kind){case"N":return n.next&&n.next(this.value);case"E":return n.error&&n.error(this.error);case"C":return n.complete&&n.complete()}}do(n,e,i){switch(this.kind){case"N":return n&&n(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(n,e,i){return n&&"function"==typeof n.next?this.observe(n):this.do(n,e,i)}toObservable(){switch(this.kind){case"N":return ea(this.value);case"E":return function KN(t,n){return new te(n?e=>n.schedule(QN,0,{error:t,subscriber:e}):e=>e.error(t))}(this.error);case"C":return Rw()}throw new Error("unexpected notification kind value")}static createNext(n){return void 0!==n?new Ui("N",n):Ui.undefinedValueNotification}static createError(n){return new Ui("E",void 0,n)}static createComplete(){return Ui.completeNotification}}Ui.completeNotification=new Ui("C"),Ui.undefinedValueNotification=new Ui("N",void 0);class Iu extends k{constructor(n,e,i=0){super(n),this.scheduler=e,this.delay=i}static dispatch(n){const{notification:e,destination:i}=n;e.observe(i),this.unsubscribe()}scheduleMessage(n){this.destination.add(this.scheduler.schedule(Iu.dispatch,this.delay,new qN(n,this.destination)))}_next(n){this.scheduleMessage(Ui.createNext(n))}_error(n){this.scheduleMessage(Ui.createError(n)),this.unsubscribe()}_complete(){this.scheduleMessage(Ui.createComplete()),this.unsubscribe()}}class qN{constructor(n,e){this.notification=n,this.destination=e}}class eR extends ${constructor(n=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=n<1?1:n,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(n){const e=this._events;e.push(n),e.length>this._bufferSize&&e.shift(),super.next(n)}nextTimeWindow(n){this._events.push(new tR(this._getNow(),n)),this._trimBufferThenGetEvents(),super.next(n)}_subscribe(n){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,r=i.length;let o;if(this.closed)throw new N;if(this.isStopped||this.hasError?o=m.EMPTY:(this.observers.push(n),o=new V(this,n)),s&&n.add(n=new Iu(n,s)),e)for(let a=0;a<r&&!n.closed;a++)n.next(i[a]);else for(let a=0;a<r&&!n.closed;a++)n.next(i[a].value);return this.hasError?n.error(this.thrownError):this.isStopped&&n.complete(),o}_getNow(){return(this.scheduler||YN).now()}_trimBufferThenGetEvents(){const n=this._getNow(),e=this._bufferSize,i=this._windowTime,s=this._events,r=s.length;let o=0;for(;o<r&&!(n-s[o].time<i);)o++;return r>e&&(o=Math.max(o,r-e)),o>0&&s.splice(0,o),s}}class tR{constructor(n,e){this.time=n,this.value=e}}function Bw(t,n){return"function"==typeof n?e=>e.pipe(Bw((i,s)=>Ln(t(i,s)).pipe(de((r,o)=>n(i,r,s,o))))):e=>e.lift(new nR(t))}class nR{constructor(n){this.project=n}call(n,e){return e.subscribe(new iR(n,this.project))}}class iR extends Ct{constructor(n,e){super(n),this.project=e,this.index=0}_next(n){let e;const i=this.index++;try{e=this.project(n,i)}catch(s){return void this.destination.error(s)}this._innerSub(e)}_innerSub(n){const e=this.innerSubscription;e&&e.unsubscribe();const i=new wt(this),s=this.destination;s.add(i),this.innerSubscription=Qi(n,i),this.innerSubscription!==i&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:n}=this;(!n||n.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(n){this.destination.next(n)}}const Ou={schedule(t,n){const e=setTimeout(t,n);return()=>clearTimeout(e)},scheduleBeforeRender(t){if("undefined"==typeof window)return Ou.schedule(t,0);if(void 0===window.requestAnimationFrame)return Ou.schedule(t,16);const n=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(n)}};let rg;function dR(t,n,e){let i=e;return function rR(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}(t)&&n.some((s,r)=>!("*"===s||!function aR(t,n){if(!rg){const e=Element.prototype;rg=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE&&rg.call(t,n)}(t,s)||(i=r,0))),i}class pR{constructor(n,e){this.componentFactory=e.get(pr).resolveComponentFactory(n)}create(n){return new gR(this.componentFactory,n)}}class gR{constructor(n,e){this.componentFactory=n,this.injector=e,this.eventEmitters=new eR(1),this.events=this.eventEmitters.pipe(Bw(i=>Ea(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get(Pt),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(n){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(n)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Ou.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(n){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(n):this.componentRef.instance[n])}setInputValue(n,e){this.runInZone(()=>{null!==this.componentRef?function lR(t,n){return t===n||t!=t&&n!=n}(e,this.getInputValue(n))&&(void 0!==e||!this.unchangedInputs.has(n))||(this.recordInputChange(n,e),this.unchangedInputs.delete(n),this.hasInputChanges=!0,this.componentRef.instance[n]=e,this.scheduleDetectChanges()):this.initialInputValues.set(n,e)})}initializeComponent(n){const e=Jn.create({providers:[],parent:this.injector}),i=function hR(t,n){const e=t.childNodes,i=n.map(()=>[]);let s=-1;n.some((r,o)=>"*"===r&&(s=o,!0));for(let r=0,o=e.length;r<o;++r){const a=e[r],l=dR(a,n,s);-1!==l&&i[l].push(a)}return i}(n,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,i,n),this.viewChangeDetectorRef=this.componentRef.injector.get(As),this.implementsOnChanges=function oR(t){return"function"==typeof t}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(gl).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:n})=>{this.initialInputValues.has(n)&&this.setInputValue(n,this.initialInputValues.get(n))}),this.initialInputValues.clear()}initializeOutputs(n){const e=this.componentFactory.outputs.map(({propName:i,templateName:s})=>n.instance[i].pipe(de(o=>({name:s,value:o}))));this.eventEmitters.next(e)}callNgOnChanges(n){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,n.instance.ngOnChanges(e)}markViewForCheck(n){this.hasInputChanges&&(this.hasInputChanges=!1,n.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Ou.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(n,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[n];if(i)return void(i.currentValue=e);const s=this.unchangedInputs.has(n),r=s?void 0:this.getInputValue(n);this.inputChanges[n]=new Dv(r,e,s)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(n){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(n):n()}}class mR extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class Vw{}const Ws="*";function zn(t,n){return{type:7,name:t,definitions:n,options:{}}}function Dn(t,n=null){return{type:4,styles:n,timings:t}}function Hw(t,n=null){return{type:2,steps:t,options:n}}function lt(t){return{type:6,styles:t,offset:null}}function En(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function jw(t){Promise.resolve(null).then(t)}class Cl{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._onStartFns.push(n)}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){jw(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class Gw{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,s=0;const r=this.players.length;0==r?jw(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==r&&this._onFinish()}),o.onDestroy(()=>{++i==r&&this._onDestroy()}),o.onStart(()=>{++s==r&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const s=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(s)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const At=!1;function $w(t){return new Ye(3e3,At)}function qR(){return"undefined"!=typeof window&&void 0!==window.document}function ag(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function _r(t){switch(t.length){case 0:return new Cl;case 1:return t[0];default:return new Gw(t)}}function Uw(t,n,e,i,s={},r={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(h=>{const b=h.offset,T=b==l,M=T&&c||{};Object.keys(h).forEach(I=>{let B=I,P=h[I];if("offset"!==I)switch(B=n.normalizePropertyName(B,o),P){case"!":P=s[I];break;case Ws:P=r[I];break;default:P=n.normalizeStyleValue(I,B,P,o)}M[B]=P}),T||a.push(M),c=M,l=b}),o.length)throw function jR(t){return new Ye(3502,At)}();return a}function lg(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&cg(e,"start",t)));break;case"done":t.onDone(()=>i(e&&cg(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&cg(e,"destroy",t)))}}function cg(t,n,e){const i=e.totalTime,r=ug(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,null==i?t.totalTime:i,!!e.disabled),o=t._data;return null!=o&&(r._data=o),r}function ug(t,n,e,i,s="",r=0,o){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function ki(t,n,e){let i;return t instanceof Map?(i=t.get(n),i||t.set(n,i=e)):(i=t[n],i||(i=t[n]=e)),i}function Ww(t){const n=t.indexOf(":");return[t.substring(1,n),t.substr(n+1)]}let hg=(t,n)=>!1,Yw=(t,n,e)=>[],Xw=null;function dg(t){const n=t.parentNode||t.host;return n===Xw?null:n}(ag()||"undefined"!=typeof Element)&&(qR()?(Xw=(()=>document.documentElement)(),hg=(t,n)=>{for(;n;){if(n===t)return!0;n=dg(n)}return!1}):hg=(t,n)=>t.contains(n),Yw=(t,n,e)=>{if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]});let zr=null,Zw=!1;function Kw(t){zr||(zr=function t3(){return"undefined"!=typeof document?document.body:null}()||{},Zw=!!zr.style&&"WebkitAppearance"in zr.style);let n=!0;return zr.style&&!function e3(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in zr.style,!n&&Zw&&(n="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in zr.style)),n}const Qw=hg,Jw=Yw;let qw=(()=>{class t{validateStyleProperty(e){return Kw(e)}matchesElement(e,i){return!1}containsElement(e,i){return Qw(e,i)}getParentElement(e){return dg(e)}query(e,i,s){return Jw(e,i,s)}computeStyle(e,i,s){return s||""}animate(e,i,s,r,o,a=[],l){return new Cl(s,r)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})(),fg=(()=>{class t{}return t.NOOP=new qw,t})();const pg="ng-enter",Pu="ng-leave",Nu="ng-trigger",Ru=".ng-trigger",tC="ng-animating",gg=".ng-animating";function jr(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:mg(parseFloat(n[1]),n[2])}function mg(t,n){return"s"===n?1e3*t:t}function Bu(t,n,e){return t.hasOwnProperty("duration")?t:function r3(t,n,e){let s,r=0,o="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push($w()),{duration:0,delay:0,easing:""};s=mg(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(r=mg(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else s=t;if(!e){let a=!1,l=n.length;s<0&&(n.push(function xR(){return new Ye(3100,At)}()),a=!0),r<0&&(n.push(function bR(){return new Ye(3101,At)}()),a=!0),a&&n.splice(l,0,$w())}return{duration:s,delay:r,easing:o}}(t,n,e)}function ta(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function yr(t,n,e={}){if(n)for(let i in t)e[i]=t[i];else ta(t,e);return e}function iC(t,n,e){return e?n+":"+e+";":""}function sC(t){let n="";for(let e=0;e<t.style.length;e++){const i=t.style.item(e);n+=iC(0,i,t.style.getPropertyValue(i))}for(const e in t.style)t.style.hasOwnProperty(e)&&!e.startsWith("_")&&(n+=iC(0,l3(e),t.style[e]));t.setAttribute("style",n)}function Ms(t,n,e){t.style&&(Object.keys(n).forEach(i=>{const s=_g(i);e&&!e.hasOwnProperty(i)&&(e[i]=t.style[s]),t.style[s]=n[i]}),ag()&&sC(t))}function Gr(t,n){t.style&&(Object.keys(n).forEach(e=>{const i=_g(e);t.style[i]=""}),ag()&&sC(t))}function Tl(t){return Array.isArray(t)?1==t.length?t[0]:Hw(t):t}const vg=new RegExp("{{\\s*(.+?)\\s*}}","g");function rC(t){let n=[];if("string"==typeof t){let e;for(;e=vg.exec(t);)n.push(e[1]);vg.lastIndex=0}return n}function Vu(t,n,e){const i=t.toString(),s=i.replace(vg,(r,o)=>{let a=n[o];return n.hasOwnProperty(o)||(e.push(function CR(t){return new Ye(3003,At)}()),a=""),a.toString()});return s==i?t:s}function Hu(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const a3=/-+([a-z0-9])/g;function _g(t){return t.replace(a3,(...n)=>n[1].toUpperCase())}function l3(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Li(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw function TR(t){return new Ye(3004,At)}()}}function oC(t,n){return window.getComputedStyle(t)[n]}function g3(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function m3(t,n,e){if(":"==t[0]){const l=function v3(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return n.push(function BR(t){return new Ye(3016,At)}()),"* => *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function RR(t){return new Ye(3015,At)}()),n;const s=i[1],r=i[2],o=i[3];n.push(aC(s,o));"<"==r[0]&&!("*"==s&&"*"==o)&&n.push(aC(o,s))}(i,e,n)):e.push(t),e}const $u=new Set(["true","1"]),Uu=new Set(["false","0"]);function aC(t,n){const e=$u.has(t)||Uu.has(t),i=$u.has(n)||Uu.has(n);return(s,r)=>{let o="*"==t||t==s,a="*"==n||n==r;return!o&&e&&"boolean"==typeof s&&(o=s?$u.has(t):Uu.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?$u.has(n):Uu.has(n)),o&&a}}const _3=new RegExp("s*:selfs*,?","g");function yg(t,n,e,i){return new y3(t).build(n,e,i)}class y3{constructor(n){this._driver=n}build(n,e,i){const s=new w3(e);this._resetContextStyleTimingState(s);const r=Li(this,Tl(n),s);return s.unsupportedCSSPropertiesFound.size&&s.unsupportedCSSPropertiesFound.keys(),r}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles={},n.collectedStyles[""]={},n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,s=e.depCount=0;const r=[],o=[];return"@"==n.name.charAt(0)&&e.errors.push(function ER(){return new Ye(3006,At)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,s+=l.depCount,o.push(l)}else e.errors.push(function SR(){return new Ye(3007,At)}())}),{type:7,name:n.name,states:r,transitions:o,queryCount:i,depCount:s,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),s=n.options&&n.options.params||null;if(i.containsDynamicStyles){const r=new Set,o=s||{};i.styles.forEach(a=>{if(Wu(a)){const l=a;Object.keys(l).forEach(c=>{rC(l[c]).forEach(h=>{o.hasOwnProperty(h)||r.add(h)})})}}),r.size&&(Hu(r.values()),e.errors.push(function AR(t,n){return new Ye(3008,At)}()))}return{type:0,name:n.name,style:i,options:s?{params:s}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=Li(this,Tl(n.animation),e);return{type:1,matchers:g3(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:$r(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>Li(this,i,e)),options:$r(n.options)}}visitGroup(n,e){const i=e.currentTime;let s=0;const r=n.steps.map(o=>{e.currentTime=i;const a=Li(this,o,e);return s=Math.max(s,e.currentTime),a});return e.currentTime=s,{type:3,steps:r,options:$r(n.options)}}visitAnimate(n,e){const i=function T3(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return xg(Bu(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=xg(0,0,"");return r.dynamic=!0,r.strValue=e,r}const s=Bu(e,n);return xg(s.duration,s.delay,s.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let s,r=n.styles?n.styles:lt({});if(5==r.type)s=this.visitKeyframes(r,e);else{let o=n.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=lt(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,e);l.isEmptyStep=a,s=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:s,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[];Array.isArray(n.styles)?n.styles.forEach(o=>{"string"==typeof o?o==Ws?i.push(o):e.errors.push(function MR(t){return new Ye(3002,At)}()):i.push(o)}):i.push(n.styles);let s=!1,r=null;return i.forEach(o=>{if(Wu(o)){const a=o,l=a.easing;if(l&&(r=l,delete a.easing),!s)for(let c in a)if(a[c].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:i,easing:r,offset:n.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let s=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),n.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete o[a],void e.unsupportedCSSPropertiesFound.add(a);const l=e.collectedStyles[e.currentQuerySelector],c=l[a];let h=!0;c&&(r!=s&&r>=c.startTime&&s<=c.endTime&&(e.errors.push(function kR(t,n,e,i,s){return new Ye(3010,At)}()),h=!1),r=c.startTime),h&&(l[a]={startTime:r,endTime:s}),e.options&&function o3(t,n,e){const i=n.params||{},s=rC(t);s.length&&s.forEach(r=>{i.hasOwnProperty(r)||e.push(function wR(t){return new Ye(3001,At)}())})}(o[a],e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function LR(){return new Ye(3011,At)}()),i;let r=0;const o=[];let a=!1,l=!1,c=0;const h=n.steps.map(K=>{const Q=this._makeStyleAst(K,e);let ne=null!=Q.offset?Q.offset:function C3(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(Wu(e)&&e.hasOwnProperty("offset")){const i=e;n=parseFloat(i.offset),delete i.offset}});else if(Wu(t)&&t.hasOwnProperty("offset")){const e=t;n=parseFloat(e.offset),delete e.offset}return n}(Q.styles),ge=0;return null!=ne&&(r++,ge=Q.offset=ne),l=l||ge<0||ge>1,a=a||ge<c,c=ge,o.push(ge),Q});l&&e.errors.push(function IR(){return new Ye(3012,At)}()),a&&e.errors.push(function OR(){return new Ye(3200,At)}());const b=n.steps.length;let T=0;r>0&&r<b?e.errors.push(function FR(){return new Ye(3202,At)}()):0==r&&(T=1/(b-1));const M=b-1,I=e.currentTime,B=e.currentAnimateTimings,P=B.duration;return h.forEach((K,Q)=>{const ne=T>0?Q==M?1:T*Q:o[Q],ge=ne*P;e.currentTime=I+B.delay+ge,B.duration=ge,this._validateStyleAst(K,e),K.offset=ne,i.styles.push(K)}),i}visitReference(n,e){return{type:8,animation:Li(this,Tl(n.animation),e),options:$r(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:$r(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:$r(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,s=n.options||{};e.queryCount++,e.currentQuery=n;const[r,o]=function x3(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(_3,"")),t=t.replace(/@\*/g,Ru).replace(/@\w+/g,e=>Ru+"-"+e.substr(1)).replace(/:animating/g,gg),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+r:r,ki(e.collectedStyles,e.currentQuerySelector,{});const a=Li(this,Tl(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:a,originalSelector:n.selector,options:$r(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function PR(){return new Ye(3013,At)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:Bu(n.timings,e.errors,!0);return{type:12,animation:Li(this,Tl(n.animation),e),timings:i,options:null}}}class w3{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Wu(t){return!Array.isArray(t)&&"object"==typeof t}function $r(t){return t?(t=ta(t)).params&&(t.params=function b3(t){return t?ta(t):null}(t.params)):t={},t}function xg(t,n,e){return{duration:t,delay:n,easing:e}}function bg(t,n,e,i,s,r,o=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class Yu{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const S3=new RegExp(":enter","g"),M3=new RegExp(":leave","g");function wg(t,n,e,i,s,r={},o={},a,l,c=[]){return(new k3).buildKeyframes(t,n,e,i,s,r,o,a,l,c)}class k3{buildKeyframes(n,e,i,s,r,o,a,l,c,h=[]){c=c||new Yu;const b=new Cg(n,e,c,s,r,h,[]);b.options=l,b.currentTimeline.setStyles([o],null,b.errors,l),Li(this,i,b);const T=b.timelines.filter(M=>M.containsAnimation());if(Object.keys(a).length){let M;for(let I=T.length-1;I>=0;I--){const B=T[I];if(B.element===e){M=B;break}}M&&!M.allowOnlyTimelineStyles()&&M.setStyles([a],null,b.errors,l)}return T.length?T.map(M=>M.buildKeyframes()):[bg(e,[],[],[],0,0,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const s=e.createSubContext(n.options),r=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,s,s.options);r!=o&&e.transformIntoNewTimeline(o)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_visitSubInstructions(n,e,i){let r=e.currentTimeline.currentTime;const o=null!=i.duration?jr(i.duration):null,a=null!=i.delay?jr(i.delay):null;return 0!==o&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,o,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(n,e){e.updateOptions(n.options,!0),Li(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let s=e;const r=n.options;if(r&&(r.params||r.delay)&&(s=e.createSubContext(r),s.transformIntoNewTimeline(),null!=r.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Xu);const o=jr(r.delay);s.delayNextStep(o)}n.steps.length&&(n.steps.forEach(o=>Li(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>i&&s.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let s=e.currentTimeline.currentTime;const r=n.options&&n.options.delay?jr(n.options.delay):0;n.steps.forEach(o=>{const a=e.createSubContext(n.options);r&&a.delayNextStep(r),Li(this,o,a),s=Math.max(s,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(s),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return Bu(e.params?Vu(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),s=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),s.snapshotCurrentStyles());const r=n.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,s=e.currentAnimateTimings;!s&&i.getCurrentStyleProperties().length&&i.forwardFrame();const r=s&&s.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(r):i.setStyles(n.styles,r,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,s=e.currentTimeline.duration,r=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*r),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(s+r),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,s=n.options||{},r=s.delay?jr(s.delay):0;r&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Xu);let o=i;const a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,h)=>{e.currentQueryIndex=h;const b=e.createSubContext(n.options,c);r&&b.delayNextStep(r),c===e.element&&(l=b.currentTimeline),Li(this,n.animation,b),b.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,b.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,s=e.currentTimeline,r=n.timings,o=Math.abs(r.duration),a=o*(e.currentQueryTotal-1);let l=o*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const h=e.currentTimeline;l&&h.delayNextStep(l);const b=h.currentTime;Li(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=s.currentTime-b+(s.startTime-i.currentTimeline.startTime)}}const Xu={};class Cg{constructor(n,e,i,s,r,o,a,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=s,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Xu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Zu(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let s=this.options;null!=i.duration&&(s.duration=jr(i.duration)),null!=i.delay&&(s.delay=jr(i.delay));const r=i.params;if(r){let o=s.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=Vu(r[a],o,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(s=>{i[s]=e[s]})}}return n}createSubContext(n=null,e,i){const s=e||this.element,r=new Cg(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(n),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(n){return this.previousNode=Xu,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const s={duration:null!=e?e:n.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+n.delay,easing:""},r=new L3(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,s,n.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,s,r,o){let a=[];if(s&&a.push(this.element),n.length>0){n=(n=n.replace(S3,"."+this._enterClassName)).replace(M3,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!r&&0==a.length&&o.push(function NR(t){return new Ye(3014,At)}()),a}}class Zu{constructor(n,e,i,s){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=s,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(n){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new Zu(this._driver,n,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(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles[n]=e,this._globalTimelineStyles[n]=e,this._styleSummary[n]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&(this._previousKeyframe.easing=n),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||Ws,this._currentKeyframe[e]=Ws}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,s){e&&(this._previousKeyframe.easing=e);const r=s&&s.params||{},o=function I3(t,n){const e={};let i;return t.forEach(s=>{"*"===s?(i=i||Object.keys(n),i.forEach(r=>{e[r]=Ws})):yr(s,!1,e)}),e}(n,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=Vu(o[a],r,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:Ws),this._updateStyle(a,l)})}applyStylesToKeyframe(){const n=this._pendingStyles,e=Object.keys(n);0!=e.length&&(this._pendingStyles={},e.forEach(i=>{this._currentKeyframe[i]=n[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(n=>{const e=this._localTimelineStyles[n];this._pendingStyles[n]=e,this._updateStyle(n,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){Object.keys(n._styleSummary).forEach(e=>{const i=this._styleSummary[e],s=n._styleSummary[e];(!i||s.time>i.time)&&this._updateStyle(e,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((a,l)=>{const c=yr(a,!0);Object.keys(c).forEach(h=>{const b=c[h];"!"==b?n.add(h):b==Ws&&e.add(h)}),i||(c.offset=l/this.duration),s.push(c)});const r=n.size?Hu(n.values()):[],o=e.size?Hu(e.values()):[];if(i){const a=s[0],l=ta(a);a.offset=0,l.offset=1,s=[a,l]}return bg(this.element,s,r,o,this.duration,this.startTime,this.easing,!1)}}class L3 extends Zu{constructor(n,e,i,s,r,o,a=!1){super(n,e,o.delay),this.keyframes=i,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],o=i+e,a=e/o,l=yr(n[0],!1);l.offset=0,r.push(l);const c=yr(n[0],!1);c.offset=uC(a),r.push(c);const h=n.length-1;for(let b=1;b<=h;b++){let T=yr(n[b],!1);T.offset=uC((e+T.offset*i)/o),r.push(T)}i=o,e=0,s="",n=r}return bg(this.element,n,this.preStyleProps,this.postStyleProps,i,e,s,!0)}}function uC(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class Tg{}class O3 extends Tg{normalizePropertyName(n,e){return _g(n)}normalizeStyleValue(n,e,i,s){let r="";const o=i.toString().trim();if(F3[e]&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&s.push(function DR(t,n){return new Ye(3005,At)}())}return o+r}}const F3=(()=>function P3(t){const n={};return t.forEach(e=>n[e]=!0),n}("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 hC(t,n,e,i,s,r,o,a,l,c,h,b,T){return{type:0,element:t,triggerName:n,isRemovalTransition:s,fromState:e,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:b,errors:T}}const Dg={};class dC{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,s){return function N3(t,n,e,i,s){return t.some(r=>r(n,e,i,s))}(this.ast.matchers,n,e,i,s)}buildStyles(n,e,i){const s=this._stateStyles["*"],r=this._stateStyles[n],o=s?s.buildStyles(e,i):{};return r?r.buildStyles(e,i):o}build(n,e,i,s,r,o,a,l,c,h){const b=[],T=this.ast.options&&this.ast.options.params||Dg,I=this.buildStyles(i,a&&a.params||Dg,b),B=l&&l.params||Dg,P=this.buildStyles(s,B,b),K=new Set,Q=new Map,ne=new Map,ge="void"===s,Ce={params:Object.assign(Object.assign({},T),B)},we=h?[]:wg(n,e,this.ast.animation,r,o,I,P,Ce,c,b);let Oe=0;if(we.forEach(Ge=>{Oe=Math.max(Ge.duration+Ge.delay,Oe)}),b.length)return hC(e,this._triggerName,i,s,ge,I,P,[],[],Q,ne,Oe,b);we.forEach(Ge=>{const Ze=Ge.element,Ue=ki(Q,Ze,{});Ge.preStyleProps.forEach(He=>Ue[He]=!0);const Le=ki(ne,Ze,{});Ge.postStyleProps.forEach(He=>Le[He]=!0),Ze!==e&&K.add(Ze)});const Je=Hu(K.values());return hC(e,this._triggerName,i,s,ge,I,P,we,Je,Q,ne,Oe)}}class R3{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i={},s=ta(this.defaultParams);return Object.keys(n).forEach(r=>{const o=n[r];null!=o&&(s[r]=o)}),this.styles.styles.forEach(r=>{if("string"!=typeof r){const o=r;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=Vu(l,s,e));const c=this.normalizer.normalizePropertyName(a,e);l=this.normalizer.normalizeStyleValue(a,c,l,e),i[c]=l})}}),i}}class V3{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states={},e.states.forEach(s=>{this.states[s.name]=new R3(s.style,s.options&&s.options.params||{},i)}),fC(this.states,"true","1"),fC(this.states,"false","0"),e.transitions.forEach(s=>{this.transitionFactories.push(new dC(n,s,this.states))}),this.fallbackTransition=function H3(t,n,e){return new dC(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,s){return this.transitionFactories.find(o=>o.match(n,e,i,s))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function fC(t,n,e){t.hasOwnProperty(n)?t.hasOwnProperty(e)||(t[e]=t[n]):t.hasOwnProperty(e)&&(t[n]=t[e])}const z3=new Yu;class j3{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(n,e){const i=[],r=yg(this._driver,e,i,[]);if(i.length)throw function GR(t){return new Ye(3503,At)}();this._animations[n]=r}_buildPlayer(n,e,i){const s=n.element,r=Uw(0,this._normalizer,0,n.keyframes,e,i);return this._driver.animate(s,r,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const s=[],r=this._animations[n];let o;const a=new Map;if(r?(o=wg(this._driver,e,r,pg,Pu,{},{},i,z3,s),o.forEach(h=>{const b=ki(a,h.element,{});h.postStyleProps.forEach(T=>b[T]=null)})):(s.push(function $R(){return new Ye(3300,At)}()),o=[]),s.length)throw function UR(t){return new Ye(3504,At)}();a.forEach((h,b)=>{Object.keys(h).forEach(T=>{h[T]=this._driver.computeStyle(b,T,Ws)})});const c=_r(o.map(h=>{const b=a.get(h.element);return this._buildPlayer(h,{},b)}));return this._playersById[n]=c,c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),delete this._playersById[n];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById[n];if(!e)throw function WR(t){return new Ye(3301,At)}();return e}listen(n,e,i,s){const r=ug(e,"","","");return lg(this._getPlayer(n),i,r,s),()=>{}}command(n,e,i,s){if("register"==i)return void this.register(n,s[0]);if("create"==i)return void this.create(n,e,s[0]||{});const r=this._getPlayer(n);switch(i){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(s[0]));break;case"destroy":this.destroy(n)}}}const pC="ng-animate-queued",Eg="ng-animate-disabled",Y3=[],gC={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},X3={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Wi="__ng_removed";class Sg{constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function J3(t){return null!=t?t:null}(i?n.value:n),i){const r=ta(n);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(s=>{null==i[s]&&(i[s]=e[s])})}}}const Dl="void",Ag=new Sg(Dl);class Z3{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,Yi(e,this._hostClassName)}listen(n,e,i,s){if(!this._triggers.hasOwnProperty(e))throw function YR(t,n){return new Ye(3302,At)}();if(null==i||0==i.length)throw function XR(t){return new Ye(3303,At)}();if(!function q3(t){return"start"==t||"done"==t}(i))throw function ZR(t,n){return new Ye(3400,At)}();const r=ki(this._elementListeners,n,[]),o={name:e,phase:i,callback:s};r.push(o);const a=ki(this._engine.statesByElement,n,{});return a.hasOwnProperty(e)||(Yi(n,Nu),Yi(n,Nu+"-"+e),a[e]=Ag),()=>{this._engine.afterFlush(()=>{const l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers[e]||delete a[e]})}}register(n,e){return!this._triggers[n]&&(this._triggers[n]=e,!0)}_getTrigger(n){const e=this._triggers[n];if(!e)throw function KR(t){return new Ye(3401,At)}();return e}trigger(n,e,i,s=!0){const r=this._getTrigger(e),o=new Mg(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(Yi(n,Nu),Yi(n,Nu+"-"+e),this._engine.statesByElement.set(n,a={}));let l=a[e];const c=new Sg(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[e]=c,l||(l=Ag),c.value!==Dl&&l.value===c.value){if(!function nB(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let s=0;s<e.length;s++){const r=e[s];if(!n.hasOwnProperty(r)||t[r]!==n[r])return!1}return!0}(l.params,c.params)){const B=[],P=r.matchStyles(l.value,l.params,B),K=r.matchStyles(c.value,c.params,B);B.length?this._engine.reportError(B):this._engine.afterFlush(()=>{Gr(n,P),Ms(n,K)})}return}const T=ki(this._engine.playersByElement,n,[]);T.forEach(B=>{B.namespaceId==this.id&&B.triggerName==e&&B.queued&&B.destroy()});let M=r.matchTransition(l.value,c.value,n,c.params),I=!1;if(!M){if(!s)return;M=r.fallbackTransition,I=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:M,fromState:l,toState:c,player:o,isFallbackTransition:I}),I||(Yi(n,pC),o.onStart(()=>{na(n,pC)})),o.onDone(()=>{let B=this.players.indexOf(o);B>=0&&this.players.splice(B,1);const P=this._engine.playersByElement.get(n);if(P){let K=P.indexOf(o);K>=0&&P.splice(K,1)}}),this.players.push(o),T.push(o),o}deregister(n){delete this._triggers[n],this._engine.statesByElement.forEach((e,i)=>{delete e[n]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(s=>s.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,Ru,!0);i.forEach(s=>{if(s[Wi])return;const r=this._engine.fetchNamespacesByElement(s);r.size?r.forEach(o=>o.triggerLeaveAnimation(s,e,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(n,e,i,s){const r=this._engine.statesByElement.get(n),o=new Map;if(r){const a=[];if(Object.keys(r).forEach(l=>{if(o.set(l,r[l].value),this._triggers[l]){const c=this.trigger(n,l,Dl,s);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,o),i&&_r(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const s=new Set;e.forEach(r=>{const o=r.name;if(s.has(o))return;s.add(o);const l=this._triggers[o].fallbackTransition,c=i[o]||Ag,h=new Sg(Dl),b=new Mg(this.id,o,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:o,transition:l,fromState:c,toState:h,player:b,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let s=!1;if(i.totalAnimations){const r=i.players.length?i.playersByQueriedElement.get(n):[];if(r&&r.length)s=!0;else{let o=n;for(;o=o.parentNode;)if(i.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(n),s)i.markElementAsRemoved(this.id,n,!1,e);else{const r=n[Wi];(!r||r===gC)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){Yi(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const s=i.player;if(s.destroyed)return;const r=i.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==i.triggerName){const l=ug(r,i.triggerName,i.fromState.value,i.toState.value);l._data=n,lg(i.player,a.phase,l,a.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(i)}),this._queue=[],e.sort((i,s)=>{const r=i.transition.ast.depCount,o=s.transition.ast.depCount;return 0==r||0==o?r-o:this._engine.driver.containsElement(i.element,s.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let e=!1;return this._elementListeners.has(n)&&(e=!0),e=!!this._queue.find(i=>i.element===n)||e,e}}class K3{constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i,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=(s,r)=>{}}_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new Z3(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,s=this.namespacesByHostElement,r=i.length-1;if(r>=0){let o=!1;if(void 0!==this.driver.getParentElement){let a=this.driver.getParentElement(e);for(;a;){const l=s.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),o=!0;break}a=this.driver.getParentElement(a)}}else for(let a=r;a>=0;a--)if(this.driver.containsElement(i[a].hostElement,e)){i.splice(a+1,0,n),o=!0;break}o||i.unshift(n)}else i.push(n);return s.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let s=this._namespaceLookup[n];s&&s.register(e,i)&&this.totalAnimations++}destroy(n,e){if(!n)return;const i=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[n];const s=this._namespaceList.indexOf(i);s>=0&&this._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i){const s=Object.keys(i);for(let r=0;r<s.length;r++){const o=i[s[r]].namespaceId;if(o){const a=this._fetchNamespace(o);a&&e.add(a)}}}return e}trigger(n,e,i,s){if(Ku(e)){const r=this._fetchNamespace(n);if(r)return r.trigger(e,i,s),!0}return!1}insertNode(n,e,i,s){if(!Ku(e))return;const r=e[Wi];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(n){const o=this._fetchNamespace(n);o&&o.insertNode(e,i)}s&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Yi(n,Eg)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),na(n,Eg))}removeNode(n,e,i,s){if(Ku(e)){const r=n?this._fetchNamespace(n):null;if(r?r.removeNode(e,s):this.markElementAsRemoved(n,e,!1,s),i){const o=this.namespacesByHostElement.get(e);o&&o.id!==n&&o.removeNode(e,s)}}else this._onRemovalComplete(e,s)}markElementAsRemoved(n,e,i,s,r){this.collectedLeaveElements.push(e),e[Wi]={namespaceId:n,setForRemoval:s,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(n,e,i,s,r){return Ku(e)?this._fetchNamespace(n).listen(e,i,s,r):()=>{}}_buildInstruction(n,e,i,s,r){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,s,n.fromState.options,n.toState.options,e,r)}destroyInnerAnimations(n){let e=this.driver.query(n,Ru,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,gg,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return _r(this.players).onDone(()=>n());n()})}processLeaveNode(n){var e;const i=n[Wi];if(i&&i.setForRemoval){if(n[Wi]=gC,i.namespaceId){this.destroyInnerAnimations(n);const s=this._fetchNamespace(i.namespaceId);s&&s.clearElementCache(n)}this._onRemovalComplete(n,i.setForRemoval)}(null===(e=n.classList)||void 0===e?void 0:e.contains(Eg))&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,s)=>this._balanceNamespaceList(i,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)Yi(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{e=this._flushAnimations(i,n)}finally{for(let s=0;s<i.length;s++)i[s]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?_r(e).onDone(()=>{i.forEach(s=>s())}):i.forEach(s=>s())}}reportError(n){throw function QR(t){return new Ye(3402,At)}()}_flushAnimations(n,e){const i=new Yu,s=[],r=new Map,o=[],a=new Map,l=new Map,c=new Map,h=new Set;this.disabledNodes.forEach(Ae=>{h.add(Ae);const Ve=this.driver.query(Ae,".ng-animate-queued",!0);for(let Re=0;Re<Ve.length;Re++)h.add(Ve[Re])});const b=this.bodyNode,T=Array.from(this.statesByElement.keys()),M=_C(T,this.collectedEnterElements),I=new Map;let B=0;M.forEach((Ae,Ve)=>{const Re=pg+B++;I.set(Ve,Re),Ae.forEach(We=>Yi(We,Re))});const P=[],K=new Set,Q=new Set;for(let Ae=0;Ae<this.collectedLeaveElements.length;Ae++){const Ve=this.collectedLeaveElements[Ae],Re=Ve[Wi];Re&&Re.setForRemoval&&(P.push(Ve),K.add(Ve),Re.hasAnimation?this.driver.query(Ve,".ng-star-inserted",!0).forEach(We=>K.add(We)):Q.add(Ve))}const ne=new Map,ge=_C(T,Array.from(K));ge.forEach((Ae,Ve)=>{const Re=Pu+B++;ne.set(Ve,Re),Ae.forEach(We=>Yi(We,Re))}),n.push(()=>{M.forEach((Ae,Ve)=>{const Re=I.get(Ve);Ae.forEach(We=>na(We,Re))}),ge.forEach((Ae,Ve)=>{const Re=ne.get(Ve);Ae.forEach(We=>na(We,Re))}),P.forEach(Ae=>{this.processLeaveNode(Ae)})});const Ce=[],we=[];for(let Ae=this._namespaceList.length-1;Ae>=0;Ae--)this._namespaceList[Ae].drainQueuedTransitions(e).forEach(Re=>{const We=Re.player,it=Re.element;if(Ce.push(We),this.collectedEnterElements.length){const Zt=it[Wi];if(Zt&&Zt.setForMove){if(Zt.previousTriggersValues&&Zt.previousTriggersValues.has(Re.triggerName)){const Vn=Zt.previousTriggersValues.get(Re.triggerName),Ne=this.statesByElement.get(Re.element);Ne&&Ne[Re.triggerName]&&(Ne[Re.triggerName].value=Vn)}return void We.destroy()}}const Et=!b||!this.driver.containsElement(b,it),hn=ne.get(it),Bn=I.get(it),xt=this._buildInstruction(Re,i,Bn,hn,Et);if(xt.errors&&xt.errors.length)return void we.push(xt);if(Et)return We.onStart(()=>Gr(it,xt.fromStyles)),We.onDestroy(()=>Ms(it,xt.toStyles)),void s.push(We);if(Re.isFallbackTransition)return We.onStart(()=>Gr(it,xt.fromStyles)),We.onDestroy(()=>Ms(it,xt.toStyles)),void s.push(We);const Ni=[];xt.timelines.forEach(Zt=>{Zt.stretchStartingKeyframe=!0,this.disabledNodes.has(Zt.element)||Ni.push(Zt)}),xt.timelines=Ni,i.append(it,xt.timelines),o.push({instruction:xt,player:We,element:it}),xt.queriedElements.forEach(Zt=>ki(a,Zt,[]).push(We)),xt.preStyleProps.forEach((Zt,Vn)=>{const Ne=Object.keys(Zt);if(Ne.length){let tt=l.get(Vn);tt||l.set(Vn,tt=new Set),Ne.forEach(gt=>tt.add(gt))}}),xt.postStyleProps.forEach((Zt,Vn)=>{const Ne=Object.keys(Zt);let tt=c.get(Vn);tt||c.set(Vn,tt=new Set),Ne.forEach(gt=>tt.add(gt))})});if(we.length){const Ae=[];we.forEach(Ve=>{Ae.push(function JR(t,n){return new Ye(3505,At)}())}),Ce.forEach(Ve=>Ve.destroy()),this.reportError(Ae)}const Oe=new Map,Je=new Map;o.forEach(Ae=>{const Ve=Ae.element;i.has(Ve)&&(Je.set(Ve,Ve),this._beforeAnimationBuild(Ae.player.namespaceId,Ae.instruction,Oe))}),s.forEach(Ae=>{const Ve=Ae.element;this._getPreviousPlayers(Ve,!1,Ae.namespaceId,Ae.triggerName,null).forEach(We=>{ki(Oe,Ve,[]).push(We),We.destroy()})});const Ge=P.filter(Ae=>xC(Ae,l,c)),Ze=new Map;vC(Ze,this.driver,Q,c,Ws).forEach(Ae=>{xC(Ae,l,c)&&Ge.push(Ae)});const Le=new Map;M.forEach((Ae,Ve)=>{vC(Le,this.driver,new Set(Ae),l,"!")}),Ge.forEach(Ae=>{const Ve=Ze.get(Ae),Re=Le.get(Ae);Ze.set(Ae,Object.assign(Object.assign({},Ve),Re))});const He=[],Vt=[],Dt={};o.forEach(Ae=>{const{element:Ve,player:Re,instruction:We}=Ae;if(i.has(Ve)){if(h.has(Ve))return Re.onDestroy(()=>Ms(Ve,We.toStyles)),Re.disabled=!0,Re.overrideTotalTime(We.totalTime),void s.push(Re);let it=Dt;if(Je.size>1){let hn=Ve;const Bn=[];for(;hn=hn.parentNode;){const xt=Je.get(hn);if(xt){it=xt;break}Bn.push(hn)}Bn.forEach(xt=>Je.set(xt,it))}const Et=this._buildAnimation(Re.namespaceId,We,Oe,r,Le,Ze);if(Re.setRealPlayer(Et),it===Dt)He.push(Re);else{const hn=this.playersByElement.get(it);hn&&hn.length&&(Re.parentPlayer=_r(hn)),s.push(Re)}}else Gr(Ve,We.fromStyles),Re.onDestroy(()=>Ms(Ve,We.toStyles)),Vt.push(Re),h.has(Ve)&&s.push(Re)}),Vt.forEach(Ae=>{const Ve=r.get(Ae.element);if(Ve&&Ve.length){const Re=_r(Ve);Ae.setRealPlayer(Re)}}),s.forEach(Ae=>{Ae.parentPlayer?Ae.syncPlayerEvents(Ae.parentPlayer):Ae.destroy()});for(let Ae=0;Ae<P.length;Ae++){const Ve=P[Ae],Re=Ve[Wi];if(na(Ve,Pu),Re&&Re.hasAnimation)continue;let We=[];if(a.size){let Et=a.get(Ve);Et&&Et.length&&We.push(...Et);let hn=this.driver.query(Ve,gg,!0);for(let Bn=0;Bn<hn.length;Bn++){let xt=a.get(hn[Bn]);xt&&xt.length&&We.push(...xt)}}const it=We.filter(Et=>!Et.destroyed);it.length?eB(this,Ve,it):this.processLeaveNode(Ve)}return P.length=0,He.forEach(Ae=>{this.players.push(Ae),Ae.onDone(()=>{Ae.destroy();const Ve=this.players.indexOf(Ae);this.players.splice(Ve,1)}),Ae.play()}),He}elementContainsData(n,e){let i=!1;const s=e[Wi];return s&&s.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(n).elementContainsData(e)||i}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,s,r){let o=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(o=a)}else{const a=this.playersByElement.get(n);if(a){const l=!r||r==Dl;a.forEach(c=>{c.queued||!l&&c.triggerName!=s||o.push(c)})}}return(i||s)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||s&&s!=a.triggerName))),o}_beforeAnimationBuild(n,e,i){const r=e.element,o=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,h=c!==r,b=ki(i,c,[]);this._getPreviousPlayers(c,h,o,a,e.toState).forEach(M=>{const I=M.getRealPlayer();I.beforeDestroy&&I.beforeDestroy(),M.destroy(),b.push(M)})}Gr(r,e.fromStyles)}_buildAnimation(n,e,i,s,r,o){const a=e.triggerName,l=e.element,c=[],h=new Set,b=new Set,T=e.timelines.map(I=>{const B=I.element;h.add(B);const P=B[Wi];if(P&&P.removedBeforeQueried)return new Cl(I.duration,I.delay);const K=B!==l,Q=function tB(t){const n=[];return yC(t,n),n}((i.get(B)||Y3).map(Oe=>Oe.getRealPlayer())).filter(Oe=>!!Oe.element&&Oe.element===B),ne=r.get(B),ge=o.get(B),Ce=Uw(0,this._normalizer,0,I.keyframes,ne,ge),we=this._buildPlayer(I,Ce,Q);if(I.subTimeline&&s&&b.add(B),K){const Oe=new Mg(n,a,B);Oe.setRealPlayer(we),c.push(Oe)}return we});c.forEach(I=>{ki(this.playersByQueriedElement,I.element,[]).push(I),I.onDone(()=>function Q3(t,n,e){let i;if(t instanceof Map){if(i=t.get(n),i){if(i.length){const s=i.indexOf(e);i.splice(s,1)}0==i.length&&t.delete(n)}}else if(i=t[n],i){if(i.length){const s=i.indexOf(e);i.splice(s,1)}0==i.length&&delete t[n]}return i}(this.playersByQueriedElement,I.element,I))}),h.forEach(I=>Yi(I,tC));const M=_r(T);return M.onDestroy(()=>{h.forEach(I=>na(I,tC)),Ms(l,e.toStyles)}),b.forEach(I=>{ki(s,I,[]).push(M)}),M}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new Cl(n.duration,n.delay)}}class Mg{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new Cl,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>lg(n,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){ki(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function Ku(t){return t&&1===t.nodeType}function mC(t,n){const e=t.style.display;return t.style.display=null!=n?n:"none",e}function vC(t,n,e,i,s){const r=[];e.forEach(l=>r.push(mC(l)));const o=[];i.forEach((l,c)=>{const h={};l.forEach(b=>{const T=h[b]=n.computeStyle(c,b,s);(!T||0==T.length)&&(c[Wi]=X3,o.push(c))}),t.set(c,h)});let a=0;return e.forEach(l=>mC(l,r[a++])),o}function _C(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const s=new Set(n),r=new Map;function o(a){if(!a)return 1;let l=r.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:s.has(c)?1:o(c),r.set(a,l),l}return n.forEach(a=>{const l=o(a);1!==l&&e.get(l).push(a)}),e}function Yi(t,n){var e;null===(e=t.classList)||void 0===e||e.add(n)}function na(t,n){var e;null===(e=t.classList)||void 0===e||e.remove(n)}function eB(t,n,e){_r(e).onDone(()=>t.processLeaveNode(n))}function yC(t,n){for(let e=0;e<t.length;e++){const i=t[e];i instanceof Gw?yC(i.players,n):n.push(i)}}function xC(t,n,e){const i=e.get(t);if(!i)return!1;let s=n.get(t);return s?i.forEach(r=>s.add(r)):n.set(t,i),e.delete(t),!0}class Qu{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(s,r)=>{},this._transitionEngine=new K3(n,e,i),this._timelineEngine=new j3(n,e,i),this._transitionEngine.onRemovalComplete=(s,r)=>this.onRemovalComplete(s,r)}registerTrigger(n,e,i,s,r){const o=n+"-"+s;let a=this._triggerCache[o];if(!a){const l=[],h=yg(this._driver,r,l,[]);if(l.length)throw function zR(t,n){return new Ye(3404,At)}();a=function B3(t,n,e){return new V3(t,n,e)}(s,h,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,s,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,s){this._transitionEngine.insertNode(n,e,i,s)}onRemove(n,e,i,s){this._transitionEngine.removeNode(n,e,s||!1,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,s){if("@"==i.charAt(0)){const[r,o]=Ww(i);this._timelineEngine.command(r,e,o,s)}else this._transitionEngine.trigger(n,e,i,s)}listen(n,e,i,s,r){if("@"==i.charAt(0)){const[o,a]=Ww(i);return this._timelineEngine.listen(o,e,a,r)}return this._transitionEngine.listen(n,e,i,s,r)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let sB=(()=>{class t{constructor(e,i,s){this._element=e,this._startStyles=i,this._endStyles=s,this._state=0;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Ms(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ms(this._element,this._initialStyles),this._endStyles&&(Ms(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Gr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Gr(this._element,this._endStyles),this._endStyles=null),Ms(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function kg(t){let n=null;const e=Object.keys(t);for(let i=0;i<e.length;i++){const s=e[i];rB(s)&&(n=n||{},n[s]=t[s])}return n}function rB(t){return"display"===t||"position"===t}class bC{constructor(n,e,i,s){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=s,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=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(n,e,i){return n.animate(e,i)}onStart(n){this._onStartFns.push(n)}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(i=>{"offset"!=i&&(n[i]=this._finished?e[i]:oC(this.element,i))})}this.currentSnapshot=n}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class oB{validateStyleProperty(n){return Kw(n)}matchesElement(n,e){return!1}containsElement(n,e){return Qw(n,e)}getParentElement(n){return dg(n)}query(n,e,i){return Jw(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}animate(n,e,i,s,r,o=[]){const l={duration:i,delay:s,fill:0==s?"both":"forwards"};r&&(l.easing=r);const c={},h=o.filter(T=>T instanceof bC);(function c3(t,n){return 0===t||0===n})(i,s)&&h.forEach(T=>{let M=T.currentSnapshot;Object.keys(M).forEach(I=>c[I]=M[I])}),e=function u3(t,n,e){const i=Object.keys(e);if(i.length&&n.length){let r=n[0],o=[];if(i.forEach(a=>{r.hasOwnProperty(a)||o.push(a),r[a]=e[a]}),o.length)for(var s=1;s<n.length;s++){let a=n[s];o.forEach(function(l){a[l]=oC(t,l)})}}return n}(n,e=e.map(T=>yr(T,!1)),c);const b=function iB(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=kg(n[0]),n.length>1&&(i=kg(n[n.length-1]))):n&&(e=kg(n)),e||i?new sB(t,e,i):null}(n,e);return new bC(n,e,l,b)}}let aB=(()=>{class t extends Vw{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:qi.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const s=Array.isArray(e)?Hw(e):e;return wC(this._renderer,null,i,"register",[s]),new lB(i,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(De(ll),De(Rt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})();class lB extends class _R{}{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new cB(this._id,n,e||{},this._renderer)}}class cB{constructor(n,e,i,s){this.id=n,this.element=e,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return wC(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}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"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){var n,e;return null!==(e=null===(n=this._renderer.engine.players[+this.id])||void 0===n?void 0:n.getPosition())&&void 0!==e?e:0}}function wC(t,n,e,i,s){return t.setProperty(n,`@@${e}:${i}`,s)}const CC="@.disabled";let uB=(()=>{class t{constructor(e,i,s){this.delegate=e,this.engine=i,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(r,o)=>{const a=null==o?void 0:o.parentNode(r);a&&o.removeChild(a,r)}}createRenderer(e,i){const r=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let h=this._rendererCache.get(r);return h||(h=new TC("",r,this.engine),this._rendererCache.set(r,h)),h}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=h=>{Array.isArray(h)?h.forEach(l):this.engine.registerTrigger(o,a,e,h.name,h)};return i.data.animation.forEach(l),new hB(this,a,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,s){e>=0&&e<this._microtaskId?this._zone.run(()=>i(s)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(r=>{const[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,s]))}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)(De(ll),De(Qu),De(Pt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})();class TC{constructor(n,e,i){this.namespaceId=n,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?s=>e.destroyNode(s):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,s=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,s)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,s){this.delegate.setAttribute(n,e,i,s)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,s){this.delegate.setStyle(n,e,i,s)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==CC?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class hB extends TC{constructor(n,e,i,s){super(e,i,s),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==CC?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.substr(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const s=function dB(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let r=e.substr(1),o="";return"@"!=r.charAt(0)&&([r,o]=function fB(t){const n=t.indexOf(".");return[t.substring(0,n),t.substr(n+1)]}(r)),this.engine.listen(this.namespaceId,s,r,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}let pB=(()=>{class t extends Qu{constructor(e,i,s){super(e.body,i,s)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(De(Rt),De(fg),De(Tg))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})();const qu=new et("AnimationModuleType"),DC=[{provide:Vw,useClass:aB},{provide:Tg,useFactory:function gB(){return new O3}},{provide:Qu,useClass:pB},{provide:ll,useFactory:function mB(t,n,e){return new uB(t,n,e)},deps:[ku,Qu,Pt]}],EC=[{provide:fg,useFactory:()=>new oB},{provide:qu,useValue:"BrowserAnimations"},...DC],vB=[{provide:fg,useClass:qw},{provide:qu,useValue:"NoopAnimations"},...DC];let _B=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?vB:EC}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ft({type:t}),t.\u0275inj=Lt({providers:EC,imports:[Iw]}),t})();class Lg{attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;null!=n&&(this._attachedHost=null,n.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class Ig extends Lg{constructor(n,e,i,s){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=s}}class yB extends Lg{constructor(n,e,i){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(n,e=this.context){return this.context=e,super.attach(n)}detach(){return this.context=void 0,super.detach()}}class xB extends Lg{constructor(n){super(),this.element=n instanceof Gt?n.nativeElement:n}}class SC extends class bB{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof Ig?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof yB?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof xB?(this._attachedPortal=n,this.attachDomPortal(n)):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(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(n,e,i,s,r){super(),this.outletElement=n,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=s,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=r}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let s;return n.viewContainerRef?(s=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector),this.setDisposeFn(()=>s.destroy())):(s=i.create(n.injector||this._defaultInjector||Jn.NULL),this._appRef.attachView(s.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(s.hostView),s.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(s)),this._attachedPortal=n,s}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context);return i.rootNodes.forEach(s=>this.outletElement.appendChild(s)),i.detectChanges(),this.setDisposeFn(()=>{let s=e.indexOf(i);-1!==s&&e.remove(s)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}class wB extends SC{}let CB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ft({type:t}),t.\u0275inj=Lt({}),t})();function Pg(t,n,e,i){var o,s=arguments.length,r=s<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,n,e,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(r=(s<3?o(r):s>3?o(n,e,r):o(n,e))||r);return s>3&&r&&Object.defineProperty(n,e,r),r}function eh(t,n,e,i){return d(e)&&(i=e,e=void 0),i?eh(t,n,e).pipe(de(s=>x(s)?i(...s):i(s))):new te(s=>{MC(t,n,function r(o){s.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},s,e)})}function MC(t,n,e,i,s){let r;if(function ZB(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const o=t;t.addEventListener(n,e,s),r=()=>o.removeEventListener(n,e,s)}else if(function XB(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const o=t;t.on(n,e),r=()=>o.off(n,e)}else if(function YB(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const o=t;t.addListener(n,e),r=()=>o.removeListener(n,e)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,a=t.length;o<a;o++)MC(t[o],n,e,i,s)}i.add(r)}"function"==typeof SuppressedError&&SuppressedError;const Bg=new us(Lu);function Vg(t,n=Bg){return e=>e.lift(new KB(t,n))}class KB{constructor(n,e){this.dueTime=n,this.scheduler=e}call(n,e){return e.subscribe(new QB(n,this.dueTime,this.scheduler))}}class QB extends k{constructor(n,e,i){super(n),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(n){this.clearDebounce(),this.lastValue=n,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(JB,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:n}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(n)}}clearDebounce(){const n=this.debouncedSubscription;null!==n&&(this.remove(n),n.unsubscribe(),this.debouncedSubscription=null)}}function JB(t){t.debouncedNext()}function qB(){}function Hg(t){return null==t?qB:function(){return this.querySelector(t)}}function tV(){return[]}function kC(t){return null==t?tV:function(){return this.querySelectorAll(t)}}function LC(t){return function(){return this.matches(t)}}function IC(t){return new Array(t.length)}function th(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function oV(t,n,e,i,s,r){for(var a,o=0,l=n.length,c=r.length;o<c;++o)(a=n[o])?(a.__data__=r[o],i[o]=a):e[o]=new th(t,r[o]);for(;o<l;++o)(a=n[o])&&(s[o]=a)}function aV(t,n,e,i,s,r,o){var a,l,M,c={},h=n.length,b=r.length,T=new Array(h);for(a=0;a<h;++a)(l=n[a])&&(T[a]=M="$"+o.call(l,l.__data__,a,n),M in c?s[a]=l:c[M]=l);for(a=0;a<b;++a)(l=c[M="$"+o.call(t,r[a],a,r)])?(i[a]=l,l.__data__=r[a],c[M]=null):e[a]=new th(t,r[a]);for(a=0;a<h;++a)(l=n[a])&&c[T[a]]===l&&(s[a]=l)}function pV(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}th.prototype={constructor:th,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var zg="http://www.w3.org/1999/xhtml";const FC={svg:"http://www.w3.org/2000/svg",xhtml:zg,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function nh(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),FC.hasOwnProperty(n)?{space:FC[n],local:t}:t}function bV(t){return function(){this.removeAttribute(t)}}function wV(t){return function(){this.removeAttributeNS(t.space,t.local)}}function CV(t,n){return function(){this.setAttribute(t,n)}}function TV(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function DV(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function EV(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function PC(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function AV(t){return function(){this.style.removeProperty(t)}}function MV(t,n,e){return function(){this.style.setProperty(t,n,e)}}function kV(t,n,e){return function(){var i=n.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function ia(t,n){return t.style.getPropertyValue(n)||PC(t).getComputedStyle(t,null).getPropertyValue(n)}function IV(t){return function(){delete this[t]}}function OV(t,n){return function(){this[t]=n}}function FV(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function NC(t){return t.trim().split(/^|\s+/)}function jg(t){return t.classList||new RC(t)}function RC(t){this._node=t,this._names=NC(t.getAttribute("class")||"")}function BC(t,n){for(var e=jg(t),i=-1,s=n.length;++i<s;)e.add(n[i])}function VC(t,n){for(var e=jg(t),i=-1,s=n.length;++i<s;)e.remove(n[i])}function NV(t){return function(){BC(this,t)}}function RV(t){return function(){VC(this,t)}}function BV(t,n){return function(){(n.apply(this,arguments)?BC:VC)(this,t)}}function HV(){this.textContent=""}function zV(t){return function(){this.textContent=t}}function jV(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function $V(){this.innerHTML=""}function UV(t){return function(){this.innerHTML=t}}function WV(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function XV(){this.nextSibling&&this.parentNode.appendChild(this)}function KV(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function JV(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===zg&&n.documentElement.namespaceURI===zg?n.createElement(t):n.createElementNS(e,t)}}function qV(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function HC(t){var n=nh(t);return(n.local?qV:JV)(n)}function t5(){return null}function s5(){var t=this.parentNode;t&&t.removeChild(this)}function o5(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function a5(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}RC.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var zC={},It=null;function h5(t,n,e){return t=jC(t,n,e),function(i){var s=i.relatedTarget;(!s||s!==this&&!(8&s.compareDocumentPosition(this)))&&t.call(this,i)}}function jC(t,n,e){return function(i){var s=It;It=i;try{t.call(this,this.__data__,n,e)}finally{It=s}}}function d5(t){return t.trim().split(/^|\s+/).map(function(n){var e="",i=n.indexOf(".");return i>=0&&(e=n.slice(i+1),n=n.slice(0,i)),{type:n,name:e}})}function f5(t){return function(){var n=this.__on;if(n){for(var r,e=0,i=-1,s=n.length;e<s;++e)r=n[e],t.type&&r.type!==t.type||r.name!==t.name?n[++i]=r:this.removeEventListener(r.type,r.listener,r.capture);++i?n.length=i:delete this.__on}}}function p5(t,n,e){var i=zC.hasOwnProperty(t.type)?h5:jC;return function(s,r,o){var l,a=this.__on,c=i(n,r,o);if(a)for(var h=0,b=a.length;h<b;++h)if((l=a[h]).type===t.type&&l.name===t.name)return this.removeEventListener(l.type,l.listener,l.capture),this.addEventListener(l.type,l.listener=c,l.capture=e),void(l.value=n);this.addEventListener(t.type,c,e),l={type:t.type,name:t.name,value:n,listener:c,capture:e},a?a.push(l):this.__on=[l]}}function GC(t,n,e){var i=PC(t),s=i.CustomEvent;"function"==typeof s?s=new s(n,e):(s=i.document.createEvent("Event"),e?(s.initEvent(n,e.bubbles,e.cancelable),s.detail=e.detail):s.initEvent(n,!1,!1)),t.dispatchEvent(s)}function v5(t,n){return function(){return GC(this,t,n)}}function _5(t,n){return function(){return GC(this,t,n.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(zC={mouseenter:"mouseover",mouseleave:"mouseout"}));var $C=[null];function Ii(t,n){this._groups=t,this._parents=n}function UC(){return new Ii([[document.documentElement]],$C)}Ii.prototype=UC.prototype={constructor:Ii,select:function eV(t){"function"!=typeof t&&(t=Hg(t));for(var n=this._groups,e=n.length,i=new Array(e),s=0;s<e;++s)for(var l,c,r=n[s],o=r.length,a=i[s]=new Array(o),h=0;h<o;++h)(l=r[h])&&(c=t.call(l,l.__data__,h,r))&&("__data__"in l&&(c.__data__=l.__data__),a[h]=c);return new Ii(i,this._parents)},selectAll:function nV(t){"function"!=typeof t&&(t=kC(t));for(var n=this._groups,e=n.length,i=[],s=[],r=0;r<e;++r)for(var l,o=n[r],a=o.length,c=0;c<a;++c)(l=o[c])&&(i.push(t.call(l,l.__data__,c,o)),s.push(l));return new Ii(i,s)},filter:function iV(t){"function"!=typeof t&&(t=LC(t));for(var n=this._groups,e=n.length,i=new Array(e),s=0;s<e;++s)for(var l,r=n[s],o=r.length,a=i[s]=[],c=0;c<o;++c)(l=r[c])&&t.call(l,l.__data__,c,r)&&a.push(l);return new Ii(i,this._parents)},data:function lV(t,n){if(!t)return M=new Array(this.size()),c=-1,this.each(function(we){M[++c]=we}),M;var e=n?aV:oV,i=this._parents,s=this._groups;"function"!=typeof t&&(t=function rV(t){return function(){return t}}(t));for(var r=s.length,o=new Array(r),a=new Array(r),l=new Array(r),c=0;c<r;++c){var h=i[c],b=s[c],T=b.length,M=t.call(h,h&&h.__data__,c,i),I=M.length,B=a[c]=new Array(I),P=o[c]=new Array(I);e(h,b,B,P,l[c]=new Array(T),M,n);for(var ge,Ce,Q=0,ne=0;Q<I;++Q)if(ge=B[Q]){for(Q>=ne&&(ne=Q+1);!(Ce=P[ne])&&++ne<I;);ge._next=Ce||null}}return(o=new Ii(o,i))._enter=a,o._exit=l,o},enter:function sV(){return new Ii(this._enter||this._groups.map(IC),this._parents)},exit:function cV(){return new Ii(this._exit||this._groups.map(IC),this._parents)},join:function uV(t,n,e){var i=this.enter(),s=this,r=this.exit();return i="function"==typeof t?t(i):i.append(t+""),null!=n&&(s=n(s)),null==e?r.remove():e(r),i&&s?i.merge(s).order():s},merge:function hV(t){for(var n=this._groups,e=t._groups,i=n.length,r=Math.min(i,e.length),o=new Array(i),a=0;a<r;++a)for(var T,l=n[a],c=e[a],h=l.length,b=o[a]=new Array(h),M=0;M<h;++M)(T=l[M]||c[M])&&(b[M]=T);for(;a<i;++a)o[a]=n[a];return new Ii(o,this._parents)},order:function dV(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var o,i=t[n],s=i.length-1,r=i[s];--s>=0;)(o=i[s])&&(r&&4^o.compareDocumentPosition(r)&&r.parentNode.insertBefore(o,r),r=o);return this},sort:function fV(t){function n(b,T){return b&&T?t(b.__data__,T.__data__):!b-!T}t||(t=pV);for(var e=this._groups,i=e.length,s=new Array(i),r=0;r<i;++r){for(var c,o=e[r],a=o.length,l=s[r]=new Array(a),h=0;h<a;++h)(c=o[h])&&(l[h]=c);l.sort(n)}return new Ii(s,this._parents).order()},call:function gV(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function mV(){var t=new Array(this.size()),n=-1;return this.each(function(){t[++n]=this}),t},node:function vV(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var i=t[n],s=0,r=i.length;s<r;++s){var o=i[s];if(o)return o}return null},size:function _V(){var t=0;return this.each(function(){++t}),t},empty:function yV(){return!this.node()},each:function xV(t){for(var n=this._groups,e=0,i=n.length;e<i;++e)for(var a,s=n[e],r=0,o=s.length;r<o;++r)(a=s[r])&&t.call(a,a.__data__,r,s);return this},attr:function SV(t,n){var e=nh(t);if(arguments.length<2){var i=this.node();return e.local?i.getAttributeNS(e.space,e.local):i.getAttribute(e)}return this.each((null==n?e.local?wV:bV:"function"==typeof n?e.local?EV:DV:e.local?TV:CV)(e,n))},style:function LV(t,n,e){return arguments.length>1?this.each((null==n?AV:"function"==typeof n?kV:MV)(t,n,null==e?"":e)):ia(this.node(),t)},property:function PV(t,n){return arguments.length>1?this.each((null==n?IV:"function"==typeof n?FV:OV)(t,n)):this.node()[t]},classed:function VV(t,n){var e=NC(t+"");if(arguments.length<2){for(var i=jg(this.node()),s=-1,r=e.length;++s<r;)if(!i.contains(e[s]))return!1;return!0}return this.each(("function"==typeof n?BV:n?NV:RV)(e,n))},text:function GV(t){return arguments.length?this.each(null==t?HV:("function"==typeof t?jV:zV)(t)):this.node().textContent},html:function YV(t){return arguments.length?this.each(null==t?$V:("function"==typeof t?WV:UV)(t)):this.node().innerHTML},raise:function ZV(){return this.each(XV)},lower:function QV(){return this.each(KV)},append:function e5(t){var n="function"==typeof t?t:HC(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})},insert:function n5(t,n){var e="function"==typeof t?t:HC(t),i=null==n?t5:"function"==typeof n?n:Hg(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function r5(){return this.each(s5)},clone:function l5(t){return this.select(t?a5:o5)},datum:function c5(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function g5(t,n,e){var s,o,i=d5(t+""),r=i.length;if(!(arguments.length<2)){for(a=n?p5:f5,null==e&&(e=!1),s=0;s<r;++s)this.each(a(i[s],n,e));return this}var a=this.node().__on;if(a)for(var h,l=0,c=a.length;l<c;++l)for(s=0,h=a[l];s<r;++s)if((o=i[s]).type===h.type&&o.name===h.name)return h.value},dispatch:function y5(t,n){return this.each(("function"==typeof n?_5:v5)(t,n))}};const Sl=UC;function Sn(t){return"string"==typeof t?new Ii([[document.querySelector(t)]],[document.documentElement]):new Ii([[t]],$C)}var x5={value:function(){}};function WC(){for(var i,t=0,n=arguments.length,e={};t<n;++t){if(!(i=arguments[t]+"")||i in e||/[\s.]/.test(i))throw new Error("illegal type: "+i);e[i]=[]}return new ih(e)}function ih(t){this._=t}function b5(t,n){return t.trim().split(/^|\s+/).map(function(e){var i="",s=e.indexOf(".");if(s>=0&&(i=e.slice(s+1),e=e.slice(0,s)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:i}})}function w5(t,n){for(var s,e=0,i=t.length;e<i;++e)if((s=t[e]).name===n)return s.value}function YC(t,n,e){for(var i=0,s=t.length;i<s;++i)if(t[i].name===n){t[i]=x5,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=e&&t.push({name:n,value:e}),t}ih.prototype=WC.prototype={constructor:ih,on:function(t,n){var s,e=this._,i=b5(t+"",e),r=-1,o=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++r<o;)if(s=(t=i[r]).type)e[s]=YC(e[s],t.name,n);else if(null==n)for(s in e)e[s]=YC(e[s],t.name,null);return this}for(;++r<o;)if((s=(t=i[r]).type)&&(s=w5(e[s],t.name)))return s},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new ih(t)},call:function(t,n){if((s=arguments.length-2)>0)for(var s,r,e=new Array(s),i=0;i<s;++i)e[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(i=0,s=(r=this._[t]).length;i<s;++i)r[i].value.apply(n,e)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],s=0,r=i.length;s<r;++s)i[s].value.apply(n,e)}};const sh=WC;function $g(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function XC(t,n){var e=Object.create(t.prototype);for(var i in n)e[i]=n[i];return e}function Al(){}var rh=1/.7,sa="\\s*([+-]?\\d+)\\s*",kl="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ks="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",D5=/^#([0-9a-f]{3,8})$/,E5=new RegExp("^rgb\\("+[sa,sa,sa]+"\\)$"),S5=new RegExp("^rgb\\("+[ks,ks,ks]+"\\)$"),A5=new RegExp("^rgba\\("+[sa,sa,sa,kl]+"\\)$"),M5=new RegExp("^rgba\\("+[ks,ks,ks,kl]+"\\)$"),k5=new RegExp("^hsl\\("+[kl,ks,ks]+"\\)$"),L5=new RegExp("^hsla\\("+[kl,ks,ks,kl]+"\\)$"),ZC={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 KC(){return this.rgb().formatHex()}function QC(){return this.rgb().formatRgb()}function Ur(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=D5.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?JC(n):3===e?new Oi(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?oh(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?oh(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=E5.exec(t))?new Oi(n[1],n[2],n[3],1):(n=S5.exec(t))?new Oi(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=A5.exec(t))?oh(n[1],n[2],n[3],n[4]):(n=M5.exec(t))?oh(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=k5.exec(t))?tT(n[1],n[2]/100,n[3]/100,1):(n=L5.exec(t))?tT(n[1],n[2]/100,n[3]/100,n[4]):ZC.hasOwnProperty(t)?JC(ZC[t]):"transparent"===t?new Oi(NaN,NaN,NaN,0):null}function JC(t){return new Oi(t>>16&255,t>>8&255,255&t,1)}function oh(t,n,e,i){return i<=0&&(t=n=e=NaN),new Oi(t,n,e,i)}function O5(t){return t instanceof Al||(t=Ur(t)),t?new Oi((t=t.rgb()).r,t.g,t.b,t.opacity):new Oi}function Ll(t,n,e,i){return 1===arguments.length?O5(t):new Oi(t,n,e,null==i?1:i)}function Oi(t,n,e,i){this.r=+t,this.g=+n,this.b=+e,this.opacity=+i}function qC(){return"#"+Ug(this.r)+Ug(this.g)+Ug(this.b)}function eT(){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 Ug(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function tT(t,n,e,i){return i<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Ls(t,n,e,i)}function nT(t){if(t instanceof Ls)return new Ls(t.h,t.s,t.l,t.opacity);if(t instanceof Al||(t=Ur(t)),!t)return new Ls;if(t instanceof Ls)return t;var n=(t=t.rgb()).r/255,e=t.g/255,i=t.b/255,s=Math.min(n,e,i),r=Math.max(n,e,i),o=NaN,a=r-s,l=(r+s)/2;return a?(o=n===r?(e-i)/a+6*(e<i):e===r?(i-n)/a+2:(n-e)/a+4,a/=l<.5?r+s:2-r-s,o*=60):a=l>0&&l<1?0:o,new Ls(o,a,l,t.opacity)}function Ls(t,n,e,i){this.h=+t,this.s=+n,this.l=+e,this.opacity=+i}function Wg(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function iT(t,n,e,i,s){var r=t*t,o=r*t;return((1-3*t+3*r-o)*n+(4-6*r+3*o)*e+(1+3*t+3*r-3*o)*i+o*s)/6}function Yg(t){return function(){return t}}function rT(t,n){var e=n-t;return e?function sT(t,n){return function(e){return t+e*n}}(t,e):Yg(isNaN(t)?n:t)}$g(Al,Ur,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:KC,formatHex:KC,formatHsl:function I5(){return nT(this).formatHsl()},formatRgb:QC,toString:QC}),$g(Oi,Ll,XC(Al,{brighter:function(t){return t=null==t?rh:Math.pow(rh,t),new Oi(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Oi(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:qC,formatHex:qC,formatRgb:eT,toString:eT})),$g(Ls,function F5(t,n,e,i){return 1===arguments.length?nT(t):new Ls(t,n,e,null==i?1:i)},XC(Al,{brighter:function(t){return t=null==t?rh:Math.pow(rh,t),new Ls(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Ls(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*n,s=2*e-i;return new Oi(Wg(t>=240?t-240:t+120,s,i),Wg(t,s,i),Wg(t<120?t+240:t-120,s,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+")")}}));const ah=function t(n){var e=function B5(t){return 1==(t=+t)?rT:function(n,e){return e-n?function R5(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(i){return Math.pow(t+i*n,e)}}(n,e,t):Yg(isNaN(n)?e:n)}}(n);function i(s,r){var o=e((s=Ll(s)).r,(r=Ll(r)).r),a=e(s.g,r.g),l=e(s.b,r.b),c=rT(s.opacity,r.opacity);return function(h){return s.r=o(h),s.g=a(h),s.b=l(h),s.opacity=c(h),s+""}}return i.gamma=t,i}(1);function oT(t){return function(n){var o,a,e=n.length,i=new Array(e),s=new Array(e),r=new Array(e);for(o=0;o<e;++o)a=Ll(n[o]),i[o]=a.r||0,s[o]=a.g||0,r[o]=a.b||0;return i=t(i),s=t(s),r=t(r),a.opacity=1,function(l){return a.r=i(l),a.g=s(l),a.b=r(l),a+""}}}function hs(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}oT(function P5(t){var n=t.length-1;return function(e){var i=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),s=t[i],r=t[i+1];return iT((e-i/n)*n,i>0?t[i-1]:2*s-r,s,r,i<n-1?t[i+2]:2*r-s)}}),oT(function N5(t){var n=t.length;return function(e){var i=Math.floor(((e%=1)<0?++e:e)*n);return iT((e-i/n)*n,t[(i+n-1)%n],t[i%n],t[(i+1)%n],t[(i+2)%n])}});var Xg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Zg=new RegExp(Xg.source,"g");function lT(t,n){var i,s,r,e=Xg.lastIndex=Zg.lastIndex=0,o=-1,a=[],l=[];for(t+="",n+="";(i=Xg.exec(t))&&(s=Zg.exec(n));)(r=s.index)>e&&(r=n.slice(e,r),a[o]?a[o]+=r:a[++o]=r),(i=i[0])===(s=s[0])?a[o]?a[o]+=s:a[++o]=s:(a[++o]=null,l.push({i:o,x:hs(i,s)})),e=Zg.lastIndex;return e<n.length&&(r=n.slice(e),a[o]?a[o]+=r:a[++o]=r),a.length<2?l[0]?function j5(t){return function(n){return t(n)+""}}(l[0].x):function z5(t){return function(){return t}}(n):(n=l.length,function(c){for(var b,h=0;h<n;++h)a[(b=l[h]).i]=b.x(c);return a.join("")})}var lh,Fl,ra=0,Il=0,Ol=0,ch=0,Yr=0,uh=0,Pl="object"==typeof performance&&performance.now?performance:Date,dT="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function oa(){return Yr||(dT(Y5),Yr=Pl.now()+uh)}function Y5(){Yr=0}function Nl(){this._call=this._time=this._next=null}function hh(t,n,e){var i=new Nl;return i.restart(t,n,e),i}function fT(){oa(),++ra;for(var n,t=lh;t;)(n=Yr-t._time)>=0&&t._call.call(null,n),t=t._next;--ra}function pT(){Yr=(ch=Pl.now())+uh,ra=Il=0;try{fT()}finally{ra=0,function Z5(){for(var t,e,n=lh,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:lh=e);Fl=t,Kg(i)}(),Yr=0}}function X5(){var t=Pl.now(),n=t-ch;n>1e3&&(uh-=n,ch=t)}function Kg(t){ra||(Il&&(Il=clearTimeout(Il)),t-Yr>24?(t<1/0&&(Il=setTimeout(pT,t-Pl.now()-uh)),Ol&&(Ol=clearInterval(Ol))):(Ol||(ch=Pl.now(),Ol=setInterval(X5,1e3)),ra=1,dT(pT)))}function Qg(t,n,e){var i=new Nl;return i.restart(function(s){i.stop(),t(s+n)},n=null==n?0:+n,e),i}Nl.prototype=hh.prototype={constructor:Nl,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?oa():+e)+(null==n?0:+n),!this._next&&Fl!==this&&(Fl?Fl._next=this:lh=this,Fl=this),this._call=t,this._time=e,Kg()},stop:function(){this._call&&(this._call=null,this._time=1/0,Kg())}};var K5=sh("start","end","cancel","interrupt"),Q5=[];function ph(t,n,e,i,s,r){var o=t.__transition;if(o){if(e in o)return}else t.__transition={};!function J5(t,n,e){var s,i=t.__transition;function o(c){var h,b,T,M;if(1!==e.state)return l();for(h in i)if((M=i[h]).name===e.name){if(3===M.state)return Qg(o);4===M.state?(M.state=6,M.timer.stop(),M.on.call("interrupt",t,t.__data__,M.index,M.group),delete i[h]):+h<n&&(M.state=6,M.timer.stop(),M.on.call("cancel",t,t.__data__,M.index,M.group),delete i[h])}if(Qg(function(){3===e.state&&(e.state=4,e.timer.restart(a,e.delay,e.time),a(c))}),e.state=2,e.on.call("start",t,t.__data__,e.index,e.group),2===e.state){for(e.state=3,s=new Array(T=e.tween.length),h=0,b=-1;h<T;++h)(M=e.tween[h].value.call(t,t.__data__,e.index,e.group))&&(s[++b]=M);s.length=b+1}}function a(c){for(var h=c<e.duration?e.ease.call(null,c/e.duration):(e.timer.restart(l),e.state=5,1),b=-1,T=s.length;++b<T;)s[b].call(t,h);5===e.state&&(e.on.call("end",t,t.__data__,e.index,e.group),l())}function l(){for(var c in e.state=6,e.timer.stop(),delete i[n],i)return;delete t.__transition}i[n]=e,e.timer=hh(function r(c){e.state=1,e.timer.restart(o,e.delay,e.time),e.delay<=c&&o(c-e.delay)},0,e.time)}(t,e,{name:n,index:i,group:s,on:K5,tween:Q5,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:0})}function em(t,n){var e=ds(t,n);if(e.state>0)throw new Error("too late; already scheduled");return e}function Ys(t,n){var e=ds(t,n);if(e.state>3)throw new Error("too late; already running");return e}function ds(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}var Rl,im,xT,gh,_T=180/Math.PI,nm={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function yT(t,n,e,i,s,r){var o,a,l;return(o=Math.sqrt(t*t+n*n))&&(t/=o,n/=o),(l=t*e+n*i)&&(e-=t*l,i-=n*l),(a=Math.sqrt(e*e+i*i))&&(e/=a,i/=a,l/=a),t*i<n*e&&(t=-t,n=-n,l=-l,o=-o),{translateX:s,translateY:r,rotate:Math.atan2(n,t)*_T,skewX:Math.atan(l)*_T,scaleX:o,scaleY:a}}function bT(t,n,e,i){function s(c){return c.length?c.pop()+" ":""}return function(c,h){var b=[],T=[];return c=t(c),h=t(h),function r(c,h,b,T,M,I){if(c!==b||h!==T){var B=M.push("translate(",null,n,null,e);I.push({i:B-4,x:hs(c,b)},{i:B-2,x:hs(h,T)})}else(b||T)&&M.push("translate("+b+n+T+e)}(c.translateX,c.translateY,h.translateX,h.translateY,b,T),function o(c,h,b,T){c!==h?(c-h>180?h+=360:h-c>180&&(c+=360),T.push({i:b.push(s(b)+"rotate(",null,i)-2,x:hs(c,h)})):h&&b.push(s(b)+"rotate("+h+i)}(c.rotate,h.rotate,b,T),function a(c,h,b,T){c!==h?T.push({i:b.push(s(b)+"skewX(",null,i)-2,x:hs(c,h)}):h&&b.push(s(b)+"skewX("+h+i)}(c.skewX,h.skewX,b,T),function l(c,h,b,T,M,I){if(c!==b||h!==T){var B=M.push(s(M)+"scale(",null,",",null,")");I.push({i:B-4,x:hs(c,b)},{i:B-2,x:hs(h,T)})}else(1!==b||1!==T)&&M.push(s(M)+"scale("+b+","+T+")")}(c.scaleX,c.scaleY,h.scaleX,h.scaleY,b,T),c=h=null,function(M){for(var P,I=-1,B=T.length;++I<B;)b[(P=T[I]).i]=P.x(M);return b.join("")}}}var nH=bT(function eH(t){return"none"===t?nm:(Rl||(Rl=document.createElement("DIV"),im=document.documentElement,xT=document.defaultView),Rl.style.transform=t,t=xT.getComputedStyle(im.appendChild(Rl),null).getPropertyValue("transform"),im.removeChild(Rl),yT(+(t=t.slice(7,-1).split(","))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),iH=bT(function tH(t){return null!=t&&(gh||(gh=document.createElementNS("http://www.w3.org/2000/svg","g")),gh.setAttribute("transform",t),t=gh.transform.baseVal.consolidate())?yT((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):nm},", ",")",")");function sH(t,n){var e,i;return function(){var s=Ys(this,t),r=s.tween;if(r!==e)for(var o=0,a=(i=e=r).length;o<a;++o)if(i[o].name===n){(i=i.slice()).splice(o,1);break}s.tween=i}}function rH(t,n,e){var i,s;if("function"!=typeof e)throw new Error;return function(){var r=Ys(this,t),o=r.tween;if(o!==i){s=(i=o).slice();for(var a={name:n,value:e},l=0,c=s.length;l<c;++l)if(s[l].name===n){s[l]=a;break}l===c&&s.push(a)}r.tween=s}}function sm(t,n,e){var i=t._id;return t.each(function(){var s=Ys(this,i);(s.value||(s.value={}))[n]=e.apply(this,arguments)}),function(s){return ds(s,i).value[n]}}function wT(t,n){var e;return("number"==typeof n?hs:n instanceof Ur?ah:(e=Ur(n))?(n=e,ah):lT)(t,n)}function aH(t){return function(){this.removeAttribute(t)}}function lH(t){return function(){this.removeAttributeNS(t.space,t.local)}}function cH(t,n,e){var i,r,s=e+"";return function(){var o=this.getAttribute(t);return o===s?null:o===i?r:r=n(i=o,e)}}function uH(t,n,e){var i,r,s=e+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===s?null:o===i?r:r=n(i=o,e)}}function hH(t,n,e){var i,s,r;return function(){var o,l,a=e(this);return null==a?void this.removeAttribute(t):(o=this.getAttribute(t))===(l=a+"")?null:o===i&&l===s?r:(s=l,r=n(i=o,a))}}function dH(t,n,e){var i,s,r;return function(){var o,l,a=e(this);return null==a?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local))===(l=a+"")?null:o===i&&l===s?r:(s=l,r=n(i=o,a))}}function pH(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}function gH(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}function mH(t,n){var e,i;function s(){var r=n.apply(this,arguments);return r!==i&&(e=(i=r)&&gH(t,r)),e}return s._value=n,s}function vH(t,n){var e,i;function s(){var r=n.apply(this,arguments);return r!==i&&(e=(i=r)&&pH(t,r)),e}return s._value=n,s}function yH(t,n){return function(){em(this,t).delay=+n.apply(this,arguments)}}function xH(t,n){return n=+n,function(){em(this,t).delay=n}}function wH(t,n){return function(){Ys(this,t).duration=+n.apply(this,arguments)}}function CH(t,n){return n=+n,function(){Ys(this,t).duration=n}}function DH(t,n){if("function"!=typeof n)throw new Error;return function(){Ys(this,t).ease=n}}function kH(t,n,e){var i,s,r=function MH(t){return(t+"").trim().split(/^|\s+/).every(function(n){var e=n.indexOf(".");return e>=0&&(n=n.slice(0,e)),!n||"start"===n})}(n)?em:Ys;return function(){var o=r(this,t),a=o.on;a!==i&&(s=(i=a).copy()).on(n,e),o.on=s}}var NH=Sl.prototype.constructor;function CT(t){return function(){this.style.removeProperty(t)}}function GH(t,n,e){return function(i){this.style.setProperty(t,n.call(this,i),e)}}function $H(t,n,e){var i,s;function r(){var o=n.apply(this,arguments);return o!==s&&(i=(s=o)&&GH(t,o,e)),i}return r._value=n,r}function ZH(t){return function(n){this.textContent=t.call(this,n)}}function KH(t){var n,e;function i(){var s=t.apply(this,arguments);return s!==e&&(n=(e=s)&&ZH(s)),n}return i._value=t,i}var e4=0;function Xs(t,n,e,i){this._groups=t,this._parents=n,this._name=e,this._id=i}function TT(){return++e4}var aa=Sl.prototype;Xs.prototype=function t4(t){return Sl().transition(t)}.prototype={constructor:Xs,select:function FH(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=Hg(t));for(var i=this._groups,s=i.length,r=new Array(s),o=0;o<s;++o)for(var h,b,a=i[o],l=a.length,c=r[o]=new Array(l),T=0;T<l;++T)(h=a[T])&&(b=t.call(h,h.__data__,T,a))&&("__data__"in h&&(b.__data__=h.__data__),c[T]=b,ph(c[T],n,e,T,c,ds(h,e)));return new Xs(r,this._parents,n,e)},selectAll:function PH(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=kC(t));for(var i=this._groups,s=i.length,r=[],o=[],a=0;a<s;++a)for(var h,l=i[a],c=l.length,b=0;b<c;++b)if(h=l[b]){for(var M,T=t.call(h,h.__data__,b,l),I=ds(h,e),B=0,P=T.length;B<P;++B)(M=T[B])&&ph(M,n,e,B,T,I);r.push(T),o.push(h)}return new Xs(r,o,n,e)},filter:function SH(t){"function"!=typeof t&&(t=LC(t));for(var n=this._groups,e=n.length,i=new Array(e),s=0;s<e;++s)for(var l,r=n[s],o=r.length,a=i[s]=[],c=0;c<o;++c)(l=r[c])&&t.call(l,l.__data__,c,r)&&a.push(l);return new Xs(i,this._parents,this._name,this._id)},merge:function AH(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,i=n.length,r=Math.min(i,e.length),o=new Array(i),a=0;a<r;++a)for(var T,l=n[a],c=e[a],h=l.length,b=o[a]=new Array(h),M=0;M<h;++M)(T=l[M]||c[M])&&(b[M]=T);for(;a<i;++a)o[a]=n[a];return new Xs(o,this._parents,this._name,this._id)},selection:function RH(){return new NH(this._groups,this._parents)},transition:function JH(){for(var t=this._name,n=this._id,e=TT(),i=this._groups,s=i.length,r=0;r<s;++r)for(var l,o=i[r],a=o.length,c=0;c<a;++c)if(l=o[c]){var h=ds(l,n);ph(l,t,e,c,o,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new Xs(i,this._parents,t,e)},call:aa.call,nodes:aa.nodes,node:aa.node,size:aa.size,empty:aa.empty,each:aa.each,on:function LH(t,n){var e=this._id;return arguments.length<2?ds(this.node(),e).on.on(t):this.each(kH(e,t,n))},attr:function fH(t,n){var e=nh(t),i="transform"===e?iH:wT;return this.attrTween(t,"function"==typeof n?(e.local?dH:hH)(e,i,sm(this,"attr."+t,n)):null==n?(e.local?lH:aH)(e):(e.local?uH:cH)(e,i,n))},attrTween:function _H(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var i=nh(t);return this.tween(e,(i.local?mH:vH)(i,n))},style:function jH(t,n,e){var i="transform"==(t+="")?nH:wT;return null==n?this.styleTween(t,function BH(t,n){var e,i,s;return function(){var r=ia(this,t),o=(this.style.removeProperty(t),ia(this,t));return r===o?null:r===e&&o===i?s:s=n(e=r,i=o)}}(t,i)).on("end.style."+t,CT(t)):"function"==typeof n?this.styleTween(t,function HH(t,n,e){var i,s,r;return function(){var o=ia(this,t),a=e(this),l=a+"";return null==a&&(this.style.removeProperty(t),l=a=ia(this,t)),o===l?null:o===i&&l===s?r:(s=l,r=n(i=o,a))}}(t,i,sm(this,"style."+t,n))).each(function zH(t,n){var e,i,s,a,r="style."+n,o="end."+r;return function(){var l=Ys(this,t),c=l.on,h=null==l.value[r]?a||(a=CT(n)):void 0;(c!==e||s!==h)&&(i=(e=c).copy()).on(o,s=h),l.on=i}}(this._id,t)):this.styleTween(t,function VH(t,n,e){var i,r,s=e+"";return function(){var o=ia(this,t);return o===s?null:o===i?r:r=n(i=o,e)}}(t,i,n),e).on("end.style."+t,null)},styleTween:function UH(t,n,e){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==n)return this.tween(i,null);if("function"!=typeof n)throw new Error;return this.tween(i,$H(t,n,null==e?"":e))},text:function XH(t){return this.tween("text","function"==typeof t?function YH(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(sm(this,"text",t)):function WH(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function QH(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,KH(t))},remove:function OH(){return this.on("end.remove",function IH(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function oH(t,n){var e=this._id;if(t+="",arguments.length<2){for(var o,i=ds(this.node(),e).tween,s=0,r=i.length;s<r;++s)if((o=i[s]).name===t)return o.value;return null}return this.each((null==n?sH:rH)(e,t,n))},delay:function bH(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?yH:xH)(n,t)):ds(this.node(),n).delay},duration:function TH(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?wH:CH)(n,t)):ds(this.node(),n).duration},ease:function EH(t){var n=this._id;return arguments.length?this.each(DH(n,t)):ds(this.node(),n).ease},end:function qH(){var t,n,e=this,i=e._id,s=e.size();return new Promise(function(r,o){var a={value:o},l={value:function(){0==--s&&r()}};e.each(function(){var c=Ys(this,i),h=c.on;h!==t&&((n=(t=h).copy())._.cancel.push(a),n._.interrupt.push(a),n._.end.push(l)),c.on=n})})}};var rm={time:null,delay:0,duration:250,ease:function n4(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function i4(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))return rm.time=oa(),rm;return e}function Bl(t){return{type:t}}function dm(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function fm(t){let n=t,e=t;function i(o,a,l,c){for(null==l&&(l=0),null==c&&(c=o.length);l<c;){const h=l+c>>>1;e(o[h],a)<0?l=h+1:c=h}return l}return 1===t.length&&(n=(o,a)=>t(o)-a,e=function m4(t){return(n,e)=>dm(t(n),e)}(t)),{left:i,center:function r(o,a,l,c){null==l&&(l=0),null==c&&(c=o.length);const h=i(o,a,l,c-1);return h>l&&n(o[h-1],a)>-n(o[h],a)?h-1:h},right:function s(o,a,l,c){for(null==l&&(l=0),null==c&&(c=o.length);l<c;){const h=l+c>>>1;e(o[h],a)>0?c=h:l=h+1}return l}}}Sl.prototype.interrupt=function q5(t){return this.each(function(){!function tm(t,n){var i,s,o,e=t.__transition,r=!0;if(e){for(o in n=null==n?null:n+"",e)(i=e[o]).name===n?(s=i.state>2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(s?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete e[o]):r=!1;r&&delete t.__transition}}(this,t)})},Sl.prototype.transition=function s4(t){var n,e;t instanceof Xs?(n=t._id,t=t._name):(n=TT(),(e=rm).time=oa(),t=null==t?null:t+"");for(var i=this._groups,s=i.length,r=0;r<s;++r)for(var l,o=i[r],a=o.length,c=0;c<a;++c)(l=o[c])&&ph(l,t,n,c,o,e||i4(l,n));return new Xs(i,this._parents,t,n)},["w","e"].map(Bl),["n","s"].map(Bl),["n","w","e","s","nw","ne","sw","se"].map(Bl);var pm=Math.sqrt(50),gm=Math.sqrt(10),mm=Math.sqrt(2);function vm(t,n,e){var i=Math.abs(n-t)/Math.max(0,e),s=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),r=i/s;return r>=pm?s*=10:r>=gm?s*=5:r>=mm&&(s*=2),n<t?-s:s}const Ks=1e3,Xi=6e4,Qs=60*Xi,Xr=24*Qs,_m=7*Xr,LT=30*Xr,ym=365*Xr;var xm=new Date,bm=new Date;function jn(t,n,e,i){function s(r){return t(r=0===arguments.length?new Date:new Date(+r)),r}return s.floor=function(r){return t(r=new Date(+r)),r},s.ceil=function(r){return t(r=new Date(r-1)),n(r,1),t(r),r},s.round=function(r){var o=s(r),a=s.ceil(r);return r-o<a-r?o:a},s.offset=function(r,o){return n(r=new Date(+r),null==o?1:Math.floor(o)),r},s.range=function(r,o,a){var c,l=[];if(r=s.ceil(r),a=null==a?1:Math.floor(a),!(r<o&&a>0))return l;do{l.push(c=new Date(+r)),n(r,a),t(r)}while(c<r&&r<o);return l},s.filter=function(r){return jn(function(o){if(o>=o)for(;t(o),!r(o);)o.setTime(o-1)},function(o,a){if(o>=o)if(a<0)for(;++a<=0;)for(;n(o,-1),!r(o););else for(;--a>=0;)for(;n(o,1),!r(o););})},e&&(s.count=function(r,o){return xm.setTime(+r),bm.setTime(+o),t(xm),t(bm),Math.floor(e(xm,bm))},s.every=function(r){return r=Math.floor(r),isFinite(r)&&r>0?r>1?s.filter(i?function(o){return i(o)%r==0}:function(o){return s.count(0,o)%r==0}):s:null}),s}var _h=jn(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});_h.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?jn(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):_h:null};const _4=_h;var IT=jn(function(t){t.setTime(t-t.getMilliseconds())},function(t,n){t.setTime(+t+n*Ks)},function(t,n){return(n-t)/Ks},function(t){return t.getUTCSeconds()});const Vl=IT;var OT=jn(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ks)},function(t,n){t.setTime(+t+n*Xi)},function(t,n){return(n-t)/Xi},function(t){return t.getMinutes()});const FT=OT;var PT=jn(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ks-t.getMinutes()*Xi)},function(t,n){t.setTime(+t+n*Qs)},function(t,n){return(n-t)/Qs},function(t){return t.getHours()});const NT=PT;var RT=jn(t=>t.setHours(0,0,0,0),(t,n)=>t.setDate(t.getDate()+n),(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Xi)/Xr,t=>t.getDate()-1);const BT=RT;function Zr(t){return jn(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*Xi)/_m})}var wm=Zr(0),VT=(Zr(1),Zr(2),Zr(3),Zr(4),Zr(5),Zr(6),jn(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}));const HT=VT;var Cm=jn(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Cm.every=function(t){return isFinite(t=Math.floor(t))&&t>0?jn(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const zT=Cm;var jT=jn(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*Xi)},function(t,n){return(n-t)/Xi},function(t){return t.getUTCMinutes()});const D4=jT;var GT=jn(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+n*Qs)},function(t,n){return(n-t)/Qs},function(t){return t.getUTCHours()});const E4=GT;var $T=jn(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/Xr},function(t){return t.getUTCDate()-1});const S4=$T;function Kr(t){return jn(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCDate(n.getUTCDate()+7*e)},function(n,e){return(e-n)/_m})}var UT=Kr(0),WT=(Kr(1),Kr(2),Kr(3),Kr(4),Kr(5),Kr(6),jn(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCMonth(t.getUTCMonth()+n)},function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}));const F4=WT;var Tm=jn(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});Tm.every=function(t){return isFinite(t=Math.floor(t))&&t>0?jn(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};const P4=Tm;function YT(t,n,e,i,s,r){const o=[[Vl,1,Ks],[Vl,5,5e3],[Vl,15,15e3],[Vl,30,3e4],[r,1,Xi],[r,5,5*Xi],[r,15,15*Xi],[r,30,30*Xi],[s,1,Qs],[s,3,3*Qs],[s,6,6*Qs],[s,12,12*Qs],[i,1,Xr],[i,2,2*Xr],[e,1,_m],[n,1,LT],[n,3,3*LT],[t,1,ym]];function l(c,h,b){const T=Math.abs(h-c)/b,M=fm(([,,P])=>P).right(o,T);if(M===o.length)return t.every(vm(c/ym,h/ym,b));if(0===M)return _4.every(Math.max(vm(c,h,b),1));const[I,B]=o[T/o[M-1][2]<o[M][2]/T?M-1:M];return I.every(B)}return[function a(c,h,b){const T=h<c;T&&([c,h]=[h,c]);const M=b&&"function"==typeof b.range?b:l(c,h,b),I=M?M.range(c,+h+1):[];return T?I.reverse():I},l]}const[Lq,Iq]=YT(P4,F4,UT,S4,E4,D4),[N4,R4]=YT(zT,HT,wm,BT,NT,FT);var Dm=new Date,Em=new Date;function Js(t,n,e,i){function s(r){return t(r=0===arguments.length?new Date:new Date(+r)),r}return s.floor=function(r){return t(r=new Date(+r)),r},s.ceil=function(r){return t(r=new Date(r-1)),n(r,1),t(r),r},s.round=function(r){var o=s(r),a=s.ceil(r);return r-o<a-r?o:a},s.offset=function(r,o){return n(r=new Date(+r),null==o?1:Math.floor(o)),r},s.range=function(r,o,a){var c,l=[];if(r=s.ceil(r),a=null==a?1:Math.floor(a),!(r<o&&a>0))return l;do{l.push(c=new Date(+r)),n(r,a),t(r)}while(c<r&&r<o);return l},s.filter=function(r){return Js(function(o){if(o>=o)for(;t(o),!r(o);)o.setTime(o-1)},function(o,a){if(o>=o)if(a<0)for(;++a<=0;)for(;n(o,-1),!r(o););else for(;--a>=0;)for(;n(o,1),!r(o););})},e&&(s.count=function(r,o){return Dm.setTime(+r),Em.setTime(+o),t(Dm),t(Em),Math.floor(e(Dm,Em))},s.every=function(r){return r=Math.floor(r),isFinite(r)&&r>0?r>1?s.filter(i?function(o){return i(o)%r==0}:function(o){return s.count(0,o)%r==0}):s:null}),s}var KT=6048e5;function Qr(t){return Js(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCDate(n.getUTCDate()+7*e)},function(n,e){return(e-n)/KT})}var QT=Qr(0),yh=Qr(1),ua=(Qr(2),Qr(3),Qr(4)),JT=(Qr(5),Qr(6),Js(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/864e5},function(t){return t.getUTCDate()-1}));const qT=JT;function Jr(t){return Js(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-6e4*(e.getTimezoneOffset()-n.getTimezoneOffset()))/KT})}var e1=Jr(0),xh=Jr(1),ha=(Jr(2),Jr(3),Jr(4)),t1=(Jr(5),Jr(6),Js(function(t){t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n)},function(t,n){return(n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/864e5},function(t){return t.getDate()-1}));const n1=t1;var Sm=Js(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Sm.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Js(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const Hl=Sm;var Am=Js(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});Am.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Js(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};const zl=Am;function Mm(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function km(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function jl(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var s1={"-":"",_:" ",0:"0"},Gn=/^\s*\d+/,Y4=/^%/,X4=/[\\^$*+?|[\]().{}]/g;function Nt(t,n,e){var i=t<0?"-":"",s=(i?-t:t)+"",r=s.length;return i+(r<e?new Array(e-r+1).join(n)+s:s)}function Z4(t){return t.replace(X4,"\\$&")}function Gl(t){return new RegExp("^(?:"+t.map(Z4).join("|")+")","i")}function $l(t){for(var n={},e=-1,i=t.length;++e<i;)n[t[e].toLowerCase()]=e;return n}function K4(t,n,e){var i=Gn.exec(n.slice(e,e+1));return i?(t.w=+i[0],e+i[0].length):-1}function Q4(t,n,e){var i=Gn.exec(n.slice(e,e+1));return i?(t.u=+i[0],e+i[0].length):-1}function J4(t,n,e){var i=Gn.exec(n.slice(e,e+2));return i?(t.U=+i[0],e+i[0].length):-1}function q4(t,n,e){var i=Gn.exec(n.slice(e,e+2));return i?(t.V=+i[0],e+i[0].length):-1}function e8(t,n,e){var i=Gn.exec(n.slice(e,e+2));return i?(t.W=+i[0],e+i[0].length):-1}function r1(t,n,e){var i=Gn.exec(n.slice(e,e+4));return i?(t.y=+i[0],e+i[0].length):-1}function o1(t,n,e){var i=Gn.exec(n.slice(e,e+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),e+i[0].length):-1}function t8(t,n,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function n8(t,n,e){var i=Gn.exec(n.slice(e,e+1));return i?(t.q=3*i[0]-3,e+i[0].length):-1}function i8(t,n,e){var i=Gn.exec(n.slice(e,e+2));return i?(t.m=i[0]-1,e+i[0].length):-1}function a1(t,n,e){var i=Gn.exec(n.slice(e,e+2));return i?(t.d=+i[0],e+i[0].length):-1}function s8(t,n,e){var i=Gn.exec(n.slice(e,e+3));return i?(t.m=0,t.d=+i[0],e+i[0].length):-1}function l1(t,n,e){var i=Gn.exec(n.slice(e,e+2));return i?(t.H=+i[0],e+i[0].length):-1}function r8(t,n,e){var i=Gn.exec(n.slice(e,e+2));return i?(t.M=+i[0],e+i[0].length):-1}function o8(t,n,e){var i=Gn.exec(n.slice(e,e+2));return i?(t.S=+i[0],e+i[0].length):-1}function a8(t,n,e){var i=Gn.exec(n.slice(e,e+3));return i?(t.L=+i[0],e+i[0].length):-1}function l8(t,n,e){var i=Gn.exec(n.slice(e,e+6));return i?(t.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function c8(t,n,e){var i=Y4.exec(n.slice(e,e+1));return i?e+i[0].length:-1}function u8(t,n,e){var i=Gn.exec(n.slice(e));return i?(t.Q=+i[0],e+i[0].length):-1}function h8(t,n,e){var i=Gn.exec(n.slice(e));return i?(t.s=+i[0],e+i[0].length):-1}function c1(t,n){return Nt(t.getDate(),n,2)}function d8(t,n){return Nt(t.getHours(),n,2)}function f8(t,n){return Nt(t.getHours()%12||12,n,2)}function p8(t,n){return Nt(1+n1.count(Hl(t),t),n,3)}function u1(t,n){return Nt(t.getMilliseconds(),n,3)}function g8(t,n){return u1(t,n)+"000"}function m8(t,n){return Nt(t.getMonth()+1,n,2)}function v8(t,n){return Nt(t.getMinutes(),n,2)}function _8(t,n){return Nt(t.getSeconds(),n,2)}function y8(t){var n=t.getDay();return 0===n?7:n}function x8(t,n){return Nt(e1.count(Hl(t)-1,t),n,2)}function h1(t){var n=t.getDay();return n>=4||0===n?ha(t):ha.ceil(t)}function b8(t,n){return t=h1(t),Nt(ha.count(Hl(t),t)+(4===Hl(t).getDay()),n,2)}function w8(t){return t.getDay()}function C8(t,n){return Nt(xh.count(Hl(t)-1,t),n,2)}function T8(t,n){return Nt(t.getFullYear()%100,n,2)}function D8(t,n){return Nt((t=h1(t)).getFullYear()%100,n,2)}function E8(t,n){return Nt(t.getFullYear()%1e4,n,4)}function S8(t,n){var e=t.getDay();return Nt((t=e>=4||0===e?ha(t):ha.ceil(t)).getFullYear()%1e4,n,4)}function A8(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Nt(n/60|0,"0",2)+Nt(n%60,"0",2)}function d1(t,n){return Nt(t.getUTCDate(),n,2)}function M8(t,n){return Nt(t.getUTCHours(),n,2)}function k8(t,n){return Nt(t.getUTCHours()%12||12,n,2)}function L8(t,n){return Nt(1+qT.count(zl(t),t),n,3)}function f1(t,n){return Nt(t.getUTCMilliseconds(),n,3)}function I8(t,n){return f1(t,n)+"000"}function O8(t,n){return Nt(t.getUTCMonth()+1,n,2)}function F8(t,n){return Nt(t.getUTCMinutes(),n,2)}function P8(t,n){return Nt(t.getUTCSeconds(),n,2)}function N8(t){var n=t.getUTCDay();return 0===n?7:n}function R8(t,n){return Nt(QT.count(zl(t)-1,t),n,2)}function p1(t){var n=t.getUTCDay();return n>=4||0===n?ua(t):ua.ceil(t)}function B8(t,n){return t=p1(t),Nt(ua.count(zl(t),t)+(4===zl(t).getUTCDay()),n,2)}function V8(t){return t.getUTCDay()}function H8(t,n){return Nt(yh.count(zl(t)-1,t),n,2)}function z8(t,n){return Nt(t.getUTCFullYear()%100,n,2)}function j8(t,n){return Nt((t=p1(t)).getUTCFullYear()%100,n,2)}function G8(t,n){return Nt(t.getUTCFullYear()%1e4,n,4)}function $8(t,n){var e=t.getUTCDay();return Nt((t=e>=4||0===e?ua(t):ua.ceil(t)).getUTCFullYear()%1e4,n,4)}function U8(){return"+0000"}function g1(){return"%"}function m1(t){return+t}function v1(t){return Math.floor(+t/1e3)}function Ul(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}!function Z8(t){(function W4(t){var n=t.dateTime,e=t.date,i=t.time,s=t.periods,r=t.days,o=t.shortDays,a=t.months,l=t.shortMonths,c=Gl(s),h=$l(s),b=Gl(r),T=$l(r),M=Gl(o),I=$l(o),B=Gl(a),P=$l(a),K=Gl(l),Q=$l(l),ne={a:function Ve(Ne){return o[Ne.getDay()]},A:function Re(Ne){return r[Ne.getDay()]},b:function We(Ne){return l[Ne.getMonth()]},B:function it(Ne){return a[Ne.getMonth()]},c:null,d:c1,e:c1,f:g8,g:D8,G:S8,H:d8,I:f8,j:p8,L:u1,m:m8,M:v8,p:function Et(Ne){return s[+(Ne.getHours()>=12)]},q:function hn(Ne){return 1+~~(Ne.getMonth()/3)},Q:m1,s:v1,S:_8,u:y8,U:x8,V:b8,w:w8,W:C8,x:null,X:null,y:T8,Y:E8,Z:A8,"%":g1},ge={a:function Bn(Ne){return o[Ne.getUTCDay()]},A:function xt(Ne){return r[Ne.getUTCDay()]},b:function Ni(Ne){return l[Ne.getUTCMonth()]},B:function Os(Ne){return a[Ne.getUTCMonth()]},c:null,d:d1,e:d1,f:I8,g:j8,G:$8,H:M8,I:k8,j:L8,L:f1,m:O8,M:F8,p:function Zt(Ne){return s[+(Ne.getUTCHours()>=12)]},q:function Vn(Ne){return 1+~~(Ne.getUTCMonth()/3)},Q:m1,s:v1,S:P8,u:N8,U:R8,V:B8,w:V8,W:H8,x:null,X:null,y:z8,Y:G8,Z:U8,"%":g1},Ce={a:function Ze(Ne,tt,gt){var Me=M.exec(tt.slice(gt));return Me?(Ne.w=I[Me[0].toLowerCase()],gt+Me[0].length):-1},A:function Ue(Ne,tt,gt){var Me=b.exec(tt.slice(gt));return Me?(Ne.w=T[Me[0].toLowerCase()],gt+Me[0].length):-1},b:function Le(Ne,tt,gt){var Me=K.exec(tt.slice(gt));return Me?(Ne.m=Q[Me[0].toLowerCase()],gt+Me[0].length):-1},B:function He(Ne,tt,gt){var Me=B.exec(tt.slice(gt));return Me?(Ne.m=P[Me[0].toLowerCase()],gt+Me[0].length):-1},c:function Vt(Ne,tt,gt){return Je(Ne,n,tt,gt)},d:a1,e:a1,f:l8,g:o1,G:r1,H:l1,I:l1,j:s8,L:a8,m:i8,M:r8,p:function Ge(Ne,tt,gt){var Me=c.exec(tt.slice(gt));return Me?(Ne.p=h[Me[0].toLowerCase()],gt+Me[0].length):-1},q:n8,Q:u8,s:h8,S:o8,u:Q4,U:J4,V:q4,w:K4,W:e8,x:function Dt(Ne,tt,gt){return Je(Ne,e,tt,gt)},X:function Ae(Ne,tt,gt){return Je(Ne,i,tt,gt)},y:o1,Y:r1,Z:t8,"%":c8};function we(Ne,tt){return function(gt){var fi,tr,pi,Me=[],Xn=-1,Ot=0,ti=Ne.length;for(gt instanceof Date||(gt=new Date(+gt));++Xn<ti;)37===Ne.charCodeAt(Xn)&&(Me.push(Ne.slice(Ot,Xn)),null!=(tr=s1[fi=Ne.charAt(++Xn)])?fi=Ne.charAt(++Xn):tr="e"===fi?" ":"0",(pi=tt[fi])&&(fi=pi(gt,tr)),Me.push(fi),Ot=Xn+1);return Me.push(Ne.slice(Ot,Xn)),Me.join("")}}function Oe(Ne,tt){return function(gt){var Ot,ti,Me=jl(1900,void 0,1);if(Je(Me,Ne,gt+="",0)!=gt.length)return null;if("Q"in Me)return new Date(Me.Q);if("s"in Me)return new Date(1e3*Me.s+("L"in Me?Me.L:0));if(tt&&!("Z"in Me)&&(Me.Z=0),"p"in Me&&(Me.H=Me.H%12+12*Me.p),void 0===Me.m&&(Me.m="q"in Me?Me.q:0),"V"in Me){if(Me.V<1||Me.V>53)return null;"w"in Me||(Me.w=1),"Z"in Me?(ti=(Ot=km(jl(Me.y,0,1))).getUTCDay(),Ot=ti>4||0===ti?yh.ceil(Ot):yh(Ot),Ot=qT.offset(Ot,7*(Me.V-1)),Me.y=Ot.getUTCFullYear(),Me.m=Ot.getUTCMonth(),Me.d=Ot.getUTCDate()+(Me.w+6)%7):(ti=(Ot=Mm(jl(Me.y,0,1))).getDay(),Ot=ti>4||0===ti?xh.ceil(Ot):xh(Ot),Ot=n1.offset(Ot,7*(Me.V-1)),Me.y=Ot.getFullYear(),Me.m=Ot.getMonth(),Me.d=Ot.getDate()+(Me.w+6)%7)}else("W"in Me||"U"in Me)&&("w"in Me||(Me.w="u"in Me?Me.u%7:"W"in Me?1:0),ti="Z"in Me?km(jl(Me.y,0,1)).getUTCDay():Mm(jl(Me.y,0,1)).getDay(),Me.m=0,Me.d="W"in Me?(Me.w+6)%7+7*Me.W-(ti+5)%7:Me.w+7*Me.U-(ti+6)%7);return"Z"in Me?(Me.H+=Me.Z/100|0,Me.M+=Me.Z%100,km(Me)):Mm(Me)}}function Je(Ne,tt,gt,Me){for(var fi,tr,Xn=0,Ot=tt.length,ti=gt.length;Xn<Ot;){if(Me>=ti)return-1;if(37===(fi=tt.charCodeAt(Xn++))){if(fi=tt.charAt(Xn++),!(tr=Ce[fi in s1?tt.charAt(Xn++):fi])||(Me=tr(Ne,gt,Me))<0)return-1}else if(fi!=gt.charCodeAt(Me++))return-1}return Me}return ne.x=we(e,ne),ne.X=we(i,ne),ne.c=we(n,ne),ge.x=we(e,ge),ge.X=we(i,ge),ge.c=we(n,ge),{format:function(Ne){var tt=we(Ne+="",ne);return tt.toString=function(){return Ne},tt},parse:function(Ne){var tt=Oe(Ne+="",!1);return tt.toString=function(){return Ne},tt},utcFormat:function(Ne){var tt=we(Ne+="",ge);return tt.toString=function(){return Ne},tt},utcParse:function(Ne){var tt=Oe(Ne+="",!0);return tt.toString=function(){return Ne},tt}}})(t)}({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"]}),fm(dm),fm(function y1(t){return null===t?NaN:+t});var E1,a6=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function bh(t){if(!(n=a6.exec(t)))throw new Error("invalid format: "+t);var n;return new Im({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function Im(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 wh(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,i=t.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+t.slice(e+1)]}function S1(t,n){var e=wh(t,n);if(!e)return t+"";var i=e[0],s=e[1];return s<0?"0."+new Array(-s).join("0")+i:i.length>s+1?i.slice(0,s+1)+"."+i.slice(s+1):i+new Array(s-i.length+2).join("0")}bh.prototype=Im.prototype,Im.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const A1={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function l6(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return S1(100*t,n)},r:S1,s:function f6(t,n){var e=wh(t,n);if(!e)return t+"";var i=e[0],s=e[1],r=s-(E1=3*Math.max(-8,Math.min(8,Math.floor(s/3))))+1,o=i.length;return r===o?i:r>o?i+new Array(r-o+1).join("0"):r>0?i.slice(0,r)+"."+i.slice(r):"0."+new Array(1-r).join("0")+wh(t,Math.max(0,n+r-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function M1(t){return t}var k1=Array.prototype.map,L1=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function p6(t){var n=void 0===t.grouping||void 0===t.thousands?M1:function u6(t,n){return function(e,i){for(var s=e.length,r=[],o=0,a=t[0],l=0;s>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),r.push(e.substring(s-=a,s+a)),!((l+=a+1)>i));)a=t[o=(o+1)%t.length];return r.reverse().join(n)}}(k1.call(t.grouping,Number),t.thousands+""),e=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",r=void 0===t.numerals?M1:function h6(t){return function(n){return n.replace(/[0-9]/g,function(e){return t[+e]})}}(k1.call(t.numerals,String)),o=void 0===t.percent?"%":t.percent+"",a=void 0===t.minus?"-":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function c(b){var T=(b=bh(b)).fill,M=b.align,I=b.sign,B=b.symbol,P=b.zero,K=b.width,Q=b.comma,ne=b.precision,ge=b.trim,Ce=b.type;"n"===Ce?(Q=!0,Ce="g"):A1[Ce]||(void 0===ne&&(ne=12),ge=!0,Ce="g"),(P||"0"===T&&"="===M)&&(P=!0,T="0",M="=");var we="$"===B?e:"#"===B&&/[boxX]/.test(Ce)?"0"+Ce.toLowerCase():"",Oe="$"===B?i:/[%p]/.test(Ce)?o:"",Je=A1[Ce],Ge=/[defgprs%]/.test(Ce);function Ze(Ue){var Vt,Dt,Ae,Le=we,He=Oe;if("c"===Ce)He=Je(Ue)+He,Ue="";else{var Ve=(Ue=+Ue)<0||1/Ue<0;if(Ue=isNaN(Ue)?l:Je(Math.abs(Ue),ne),ge&&(Ue=function d6(t){e:for(var s,n=t.length,e=1,i=-1;e<n;++e)switch(t[e]){case".":i=s=e;break;case"0":0===i&&(i=e),s=e;break;default:if(!+t[e])break e;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(s+1):t}(Ue)),Ve&&0==+Ue&&"+"!==I&&(Ve=!1),Le=(Ve?"("===I?I:a:"-"===I||"("===I?"":I)+Le,He=("s"===Ce?L1[8+E1/3]:"")+He+(Ve&&"("===I?")":""),Ge)for(Vt=-1,Dt=Ue.length;++Vt<Dt;)if(48>(Ae=Ue.charCodeAt(Vt))||Ae>57){He=(46===Ae?s+Ue.slice(Vt+1):Ue.slice(Vt))+He,Ue=Ue.slice(0,Vt);break}}Q&&!P&&(Ue=n(Ue,1/0));var Re=Le.length+Ue.length+He.length,We=Re<K?new Array(K-Re+1).join(T):"";switch(Q&&P&&(Ue=n(We+Ue,We.length?K-He.length:1/0),We=""),M){case"<":Ue=Le+Ue+He+We;break;case"=":Ue=Le+We+Ue+He;break;case"^":Ue=We.slice(0,Re=We.length>>1)+Le+Ue+He+We.slice(Re);break;default:Ue=We+Le+Ue+He}return r(Ue)}return ne=void 0===ne?6:/[gprs]/.test(Ce)?Math.max(1,Math.min(21,ne)):Math.max(0,Math.min(20,ne)),Ze.toString=function(){return b+""},Ze}return{format:c,formatPrefix:function h(b,T){var M=c(((b=bh(b)).type="f",b)),I=3*Math.max(-8,Math.min(8,Math.floor(function pa(t){return(t=wh(Math.abs(t)))?t[1]:NaN}(T)/3))),B=Math.pow(10,-I),P=L1[8+I/3];return function(K){return M(B*K)+P}}}}!function g6(t){p6(t)}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});const F1=Symbol("implicit");function Th(){var t=new Map,n=[],e=[],i=F1;function s(r){var o=r+"",a=t.get(o);if(!a){if(i!==F1)return i;t.set(o,a=n.push(r))}return e[(a-1)%e.length]}return s.domain=function(r){if(!arguments.length)return n.slice();n=[],t=new Map;for(const o of r){const a=o+"";t.has(a)||t.set(a,n.push(o))}return s},s.range=function(r){return arguments.length?(e=Array.from(r),s):e.slice()},s.unknown=function(r){return arguments.length?(i=r,s):i},s.copy=function(){return Th(n,e).unknown(i)},Ul.apply(s,arguments),s}function R1(t){this._context=t}function to(t){return new R1(t)}R1.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,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var Fm=Math.PI,Pm=2*Fm,no=1e-6,b6=Pm-no;function Nm(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function B1(){return new Nm}Nm.prototype=B1.prototype={constructor:Nm,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,i){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+i)},bezierCurveTo:function(t,n,e,i,s,r){this._+="C"+ +t+","+ +n+","+ +e+","+ +i+","+(this._x1=+s)+","+(this._y1=+r)},arcTo:function(t,n,e,i,s){var r=this._x1,o=this._y1,a=(e=+e)-(t=+t),l=(i=+i)-(n=+n),c=r-t,h=o-n,b=c*c+h*h;if((s=+s)<0)throw new Error("negative radius: "+s);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(b>no)if(Math.abs(h*a-l*c)>no&&s){var T=e-r,M=i-o,I=a*a+l*l,B=T*T+M*M,P=Math.sqrt(I),K=Math.sqrt(b),Q=s*Math.tan((Fm-Math.acos((I+b-B)/(2*P*K)))/2),ne=Q/K,ge=Q/P;Math.abs(ne-1)>no&&(this._+="L"+(t+ne*c)+","+(n+ne*h)),this._+="A"+s+","+s+",0,0,"+ +(h*T>c*M)+","+(this._x1=t+ge*a)+","+(this._y1=n+ge*l)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,i,s,r){t=+t,n=+n,r=!!r;var o=(e=+e)*Math.cos(i),a=e*Math.sin(i),l=t+o,c=n+a,h=1^r,b=r?i-s:s-i;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>no||Math.abs(this._y1-c)>no)&&(this._+="L"+l+","+c),e&&(b<0&&(b=b%Pm+Pm),b>b6?this._+="A"+e+","+e+",0,1,"+h+","+(t-o)+","+(n-a)+"A"+e+","+e+",0,1,"+h+","+(this._x1=l)+","+(this._y1=c):b>no&&(this._+="A"+e+","+e+",0,"+ +(b>=Fm)+","+h+","+(this._x1=t+e*Math.cos(s))+","+(this._y1=n+e*Math.sin(s))))},rect:function(t,n,e,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}};const Rm=B1;function $t(t){return function(){return t}}function V1(t){return t[0]}function H1(t){return t[1]}function z1(){}function Bm(t,n,e){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-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function j1(t,n){this._context=t,this._k=(1-n)/6}function G1(t,n){this._context=t,this._k=(1-n)/6}function $1(t){this._curve=t}function V6(t,n,e,i,s){for(var o,r=t.children,a=-1,l=r.length,c=t.value&&(i-n)/t.value;++a<l;)(o=r[a]).y0=e,o.y1=s,o.x0=n,o.x1=n+=o.value*c}function H6(t,n,e,i,s){for(var o,r=t.children,a=-1,l=r.length,c=t.value&&(s-e)/t.value;++a<l;)(o=r[a]).x0=n,o.x1=i,o.y0=e,o.y1=e+=o.value*c}function U6(t){var n=0,e=t.children,i=e&&e.length;if(i)for(;--i>=0;)n+=e[i].value;else n=1;t.value=n}function Z1(t,n){var s,o,a,l,c,e=new Kl(t),i=+t.value&&(e.value=t.value),r=[e];for(null==n&&(n=rz);s=r.pop();)if(i&&(s.value=+s.data.value),(a=n(s.data))&&(c=a.length))for(s.children=new Array(c),l=c-1;l>=0;--l)r.push(o=s.children[l]=new Kl(a[l])),o.parent=s,o.depth=s.depth+1;return e.eachBefore(K1)}function rz(t){return t.children}function oz(t){t.data=t.data.data}function K1(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function Kl(t){this.data=t,this.depth=this.height=0,this.parent=null}j1.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:Bm(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:Bm(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(i){return new j1(i,n)}return e.tension=function(i){return t(+i)},e}(0),G1.prototype={areaStart:z1,areaEnd:z1,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,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Bm(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},function t(n){function e(i){return new G1(i,n)}return e.tension=function(i){return t(+i)},e}(0),function U1(t){function n(e){return new $1(t(e))}return n._curve=t,n}(to),$1.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}},Math,Math,Math,Math,Math,Math,Math,Math,function t(n){function e(i,s,r,o,a){!function j6(t,n,e,i,s,r){for(var l,c,M,I,P,K,Q,ne,ge,Ce,we,o=[],a=n.children,h=0,b=0,T=a.length,B=n.value;h<T;){M=s-e,I=r-i;do{P=a[b++].value}while(!P&&b<T);for(K=Q=P,we=P*P*(Ce=Math.max(I/M,M/I)/(B*t)),ge=Math.max(Q/we,we/K);b<T;++b){if(P+=c=a[b].value,c<K&&(K=c),c>Q&&(Q=c),we=P*P*Ce,(ne=Math.max(Q/we,we/K))>ge){P-=c;break}ge=ne}o.push(l={value:P,dice:M<I,children:a.slice(h,b)}),l.dice?V6(l,e,i,s,B?i+=I*P/B:r):H6(l,e,i,B?e+=M*P/B:s,r),B-=P,h=b}}(n,i,s,r,o,a)}return e.ratio=function(i){return t((i=+i)>1?i:1)},e}((1+Math.sqrt(5))/2),Kl.prototype=Z1.prototype={constructor:Kl,count:function W6(){return this.eachAfter(U6)},each:function Y6(t){var e,s,r,o,n=this,i=[n];do{for(e=i.reverse(),i=[];n=e.pop();)if(t(n),s=n.children)for(r=0,o=s.length;r<o;++r)i.push(s[r])}while(i.length);return this},eachAfter:function Z6(t){for(var s,r,o,n=this,e=[n],i=[];n=e.pop();)if(i.push(n),s=n.children)for(r=0,o=s.length;r<o;++r)e.push(s[r]);for(;n=i.pop();)t(n);return this},eachBefore:function X6(t){for(var i,s,n=this,e=[n];n=e.pop();)if(t(n),i=n.children)for(s=i.length-1;s>=0;--s)e.push(i[s]);return this},sum:function K6(t){return this.eachAfter(function(n){for(var e=+t(n.data)||0,i=n.children,s=i&&i.length;--s>=0;)e+=i[s].value;n.value=e})},sort:function Q6(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})},path:function J6(t){for(var n=this,e=function q6(t,n){if(t===n)return t;var e=t.ancestors(),i=n.ancestors(),s=null;for(t=e.pop(),n=i.pop();t===n;)s=t,t=e.pop(),n=i.pop();return s}(n,t),i=[n];n!==e;)i.push(n=n.parent);for(var s=i.length;t!==e;)i.splice(s,0,t),t=t.parent;return i},ancestors:function ez(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function tz(){var t=[];return this.each(function(n){t.push(n)}),t},leaves:function nz(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t},links:function iz(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n},copy:function sz(){return Z1(this).eachBefore(oz)}};const hz=["caretElm"];function dz(t,n){}const fz=function(t){return{model:t}};function pz(t,n){if(1&t&&(q(0,"span"),ue(1,dz,0,0,"ng-template",5),re()),2&t){const e=W();G(1),j("ngTemplateOutlet",e.template)("ngTemplateOutletContext",js(2,fz,e.context))}}function gz(t,n){1&t&&Ie(0,"span",6),2&t&&j("innerHTML",W().title,Za)}let sD=(()=>{class t{constructor(e,i,s){this.applicationRef=e,this.componentFactoryResolver=i,this.injector=s}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(e){this._container=e}getComponentRootNode(e){return function O$(t){return t.element}(e)?e.element.nativeElement:e.hostView&&e.hostView.rootNodes.length>0?e.hostView.rootNodes[0]:e.location.nativeElement}getRootViewContainerNode(e){return this.getComponentRootNode(e)}projectComponentBindings(e,i){if(i){if(void 0!==i.inputs){const s=Object.getOwnPropertyNames(i.inputs);for(const r of s)e.instance[r]=i.inputs[r]}if(void 0!==i.outputs){const s=Object.getOwnPropertyNames(i.outputs);for(const r of s)e.instance[r]=i.outputs[r]}}return e}appendComponent(e,i={},s){s||(s=this.getRootViewContainer());const r=this.getComponentRootNode(s),o=new wB(r,this.componentFactoryResolver,this.applicationRef,this.injector),a=new Ig(e),l=o.attach(a);return this.projectComponentBindings(l,i),l}}return t.\u0275fac=function(e){return new(e||t)(De(gl),De(pr),De(Jn))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function F$(t,n,e){e=e||{};let i,s,r,o=null,a=0;function l(){a=!1===e.leading?0:+new Date,o=null,r=t.apply(i,s)}return function(){const c=+new Date;!a&&!1===e.leading&&(a=c);const h=n-(c-a);return i=this,s=arguments,h<=0?(clearTimeout(o),o=null,a=c,r=t.apply(i,s)):!o&&!1!==e.trailing&&(o=setTimeout(l,h)),r}}function P$(t,n){return function(i,s,r){return{configurable:!0,enumerable:r.enumerable,get:function(){return Object.defineProperty(this,s,{configurable:!0,enumerable:r.enumerable,value:F$(r.value,t,n)}),this[s]}}}}var Mn=(()=>(function(t){t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right"}(Mn||(Mn={})),Mn))();function rD(t,n,e){return"top"===e?t.top-7:"bottom"===e?t.top+t.height-n.height+7:"center"===e?t.top+t.height/2-n.height/2:void 0}function oD(t,n,e){return"left"===e?t.left-7:"right"===e?t.left+t.width-n.width+7:"center"===e?t.left+t.width/2-n.width/2:void 0}class Fi{static calculateVerticalAlignment(n,e,i){let s=rD(n,e,i);return s+e.height>window.innerHeight&&(s=window.innerHeight-e.height),s}static calculateVerticalCaret(n,e,i,s){let r;"top"===s&&(r=n.height/2-i.height/2+7),"bottom"===s&&(r=e.height-n.height/2-i.height/2-7),"center"===s&&(r=e.height/2-i.height/2);const o=rD(n,e,s);return o+e.height>window.innerHeight&&(r+=o+e.height-window.innerHeight),r}static calculateHorizontalAlignment(n,e,i){let s=oD(n,e,i);return s+e.width>window.innerWidth&&(s=window.innerWidth-e.width),s}static calculateHorizontalCaret(n,e,i,s){let r;"left"===s&&(r=n.width/2-i.width/2+7),"right"===s&&(r=e.width-n.width/2-i.width/2-7),"center"===s&&(r=e.width/2-i.width/2);const o=oD(n,e,s);return o+e.width>window.innerWidth&&(r+=o+e.width-window.innerWidth),r}static shouldFlip(n,e,i,s){let r=!1;return"right"===i&&n.left+n.width+e.width+s>window.innerWidth&&(r=!0),"left"===i&&n.left-e.width-s<0&&(r=!0),"top"===i&&n.top-e.height-s<0&&(r=!0),"bottom"===i&&n.top+n.height+e.height+s>window.innerHeight&&(r=!0),r}static positionCaret(n,e,i,s,r){let o=0,a=0;return n===Mn.right?(a=-7,o=Fi.calculateVerticalCaret(i,e,s,r)):n===Mn.left?(a=e.width,o=Fi.calculateVerticalCaret(i,e,s,r)):n===Mn.top?(o=e.height,a=Fi.calculateHorizontalCaret(i,e,s,r)):n===Mn.bottom&&(o=-7,a=Fi.calculateHorizontalCaret(i,e,s,r)),{top:o,left:a}}static positionContent(n,e,i,s,r){let o=0,a=0;return n===Mn.right?(a=i.left+i.width+s,o=Fi.calculateVerticalAlignment(i,e,r)):n===Mn.left?(a=i.left-e.width-s,o=Fi.calculateVerticalAlignment(i,e,r)):n===Mn.top?(o=i.top-e.height-s,a=Fi.calculateHorizontalAlignment(i,e,r)):n===Mn.bottom&&(o=i.top+i.height+s,a=Fi.calculateHorizontalAlignment(i,e,r)),{top:o,left:a}}static determinePlacement(n,e,i,s){if(Fi.shouldFlip(i,e,n,s)){if(n===Mn.right)return Mn.left;if(n===Mn.left)return Mn.right;if(n===Mn.top)return Mn.bottom;if(n===Mn.bottom)return Mn.top}return n}}let Wm,N$=(()=>{class t{constructor(e,i){this.element=e,this.renderer=i}get cssClasses(){let e="ngx-charts-tooltip-content";return e+=` position-${this.placement}`,e+=` type-${this.type}`,e+=` ${this.cssClass}`,e}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){const e=this.element.nativeElement,i=this.host.nativeElement.getBoundingClientRect();if(!i.height&&!i.width)return;const s=e.getBoundingClientRect();this.checkFlip(i,s),this.positionContent(e,i,s),this.showCaret&&this.positionCaret(i,s),setTimeout(()=>this.renderer.addClass(e,"animate"),1)}positionContent(e,i,s){const{top:r,left:o}=Fi.positionContent(this.placement,s,i,this.spacing,this.alignment);this.renderer.setStyle(e,"top",`${r}px`),this.renderer.setStyle(e,"left",`${o}px`)}positionCaret(e,i){const s=this.caretElm.nativeElement,r=s.getBoundingClientRect(),{top:o,left:a}=Fi.positionCaret(this.placement,i,e,r,this.alignment);this.renderer.setStyle(s,"top",`${o}px`),this.renderer.setStyle(s,"left",`${a}px`)}checkFlip(e,i){this.placement=Fi.determinePlacement(this.placement,i,e,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(ke(Gt),ke(ru))},t.\u0275cmp=$e({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(e,i){if(1&e&&vi(hz,5),2&e){let s;ht(s=dt())&&(i.caretElm=s.first)}},hostVars:2,hostBindings:function(e,i){1&e&&ye("resize",function(){return i.onWindowResize()},!1,J_),2&e&&function jx(t){as(Ei,Ss,t,!0)}(i.cssClasses)},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(e,i){1&e&&(q(0,"div"),Ie(1,"span",0,1),q(3,"div",2),ue(4,pz,2,4,"span",3),ue(5,gz,1,1,"span",4),re()()),2&e&&(G(1),function n0(t,n,e){as(Ei,Ss,Ro(Se(),t,n,e),!0)}("tooltip-caret position-",i.placement,""),j("hidden",!i.showCaret),G(3),j("ngIf",!i.title),G(1),j("ngIf",i.title))},directives:[yt,Zp],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}),Pg([P$(100)],t.prototype,"onWindowResize",null),t})(),zm=(()=>{class t extends class R${constructor(n){this.injectionService=n,this.defaults={},this.components=new Map}getByType(n=this.type){return this.components.get(n)}create(n){return this.createByType(this.type,n)}createByType(n,e){e=this.assignDefaults(e);const i=this.injectComponent(n,e);return this.register(n,i),i}destroy(n){const e=this.components.get(n.componentType);if(e&&e.length){const i=e.indexOf(n);i>-1&&(e[i].destroy(),e.splice(i,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(n){const e=this.components.get(n);if(e&&e.length){let i=e.length-1;for(;i>=0;)this.destroy(e[i--])}}injectComponent(n,e){return this.injectionService.appendComponent(n,e)}assignDefaults(n){const e=Object.assign({},this.defaults.inputs),i=Object.assign({},this.defaults.outputs);return!n.inputs&&!n.outputs&&(n={inputs:n}),e&&(n.inputs=Object.assign(Object.assign({},e),n.inputs)),i&&(n.outputs=Object.assign(Object.assign({},i),n.outputs)),n}register(n,e){this.components.has(n)||this.components.set(n,[]),this.components.get(n).push(e)}}{constructor(e){super(e),this.type=N$}}return t.\u0275fac=function(e){return new(e||t)(De(sD))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})(),uD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ft({type:t}),t.\u0275inj=Lt({imports:[[mr]]}),t})(),hD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ft({type:t}),t.\u0275inj=Lt({providers:[sD,zm],imports:[[mr]]}),t})();"undefined"!=typeof window?Wm=window:"undefined"!=typeof global&&(Wm=global);let ps=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ft({type:t}),t.\u0275inj=Lt({imports:[[mr,uD,hD],mr,uD,hD]}),t})(),V$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ft({type:t}),t.\u0275inj=Lt({imports:[[ps]]}),t})(),TD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ft({type:t}),t.\u0275inj=Lt({imports:[[ps]]}),t})(),z$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ft({type:t}),t.\u0275inj=Lt({imports:[[ps]]}),t})(),U$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ft({type:t}),t.\u0275inj=Lt({imports:[[ps]]}),t})(),AD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ft({type:t}),t.\u0275inj=Lt({imports:[[ps]]}),t})();Math;let ev=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ft({type:t}),t.\u0275inj=Lt({imports:[[ps]]}),t})(),Q$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ft({type:t}),t.\u0275inj=Lt({imports:[[ps,ev,AD]]}),t})(),t9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ft({type:t}),t.\u0275inj=Lt({imports:[[ps]]}),t})(),s9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ft({type:t}),t.\u0275inj=Lt({imports:[[ps]]}),t})(),a9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ft({type:t}),t.\u0275inj=Lt({imports:[[ps,ev,TD]]}),t})(),c9=(()=>{class t{constructor(){!function l9(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ft({type:t}),t.\u0275inj=Lt({imports:[ps,V$,TD,z$,U$,AD,Q$,t9,ev,s9,a9]}),t})();function PD(t,n,e){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+n)/6,(t._y0+4*t._y1+e)/6)}function Rh(t){this._context=t}function ND(t,n){this._basis=new Rh(t),this._beta=n}Rh.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:PD(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,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);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:PD(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},ND.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var l,i=t[0],s=n[0],r=t[e]-i,o=n[e]-s,a=-1;++a<=e;)this._basis.point(this._beta*t[a]+(1-this._beta)*(i+(l=a/e)*r),this._beta*n[a]+(1-this._beta)*(s+l*o));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};const u9=function t(n){function e(i){return 1===n?new Rh(i):new ND(i,n)}return e.beta=function(i){return t(+i)},e}(.85);var RD=Math.PI;function VD(t){return(1-Math.cos(RD*t))/2}const HD=(()=>{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 zD(t,n){return function(i){return i.lift(new h9(t,n))}}class h9{constructor(n,e){this.predicate=n,this.thisArg=e}call(n,e){return e.subscribe(new d9(n,this.predicate,this.thisArg))}}class d9 extends k{constructor(n,e,i){super(n),this.predicate=e,this.thisArg=i,this.count=0}_next(n){let e;try{e=this.predicate.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(n)}}const f9=(()=>{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 Bh(t){return n=>0===t?Rw():n.lift(new p9(t))}class p9{constructor(n){if(this.total=n,this.total<0)throw new f9}call(n,e){return e.subscribe(new g9(n,this.total))}}class g9 extends k{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){const e=this.total,i=++this.count;i<=e&&(this.destination.next(n),i===e&&(this.destination.complete(),this.unsubscribe()))}}function m9(t=null){return n=>n.lift(new v9(t))}class v9{constructor(n){this.defaultValue=n}call(n,e){return e.subscribe(new _9(n,this.defaultValue))}}class _9 extends k{constructor(n,e){super(n),this.defaultValue=e,this.isEmpty=!0}_next(n){this.isEmpty=!1,this.destination.next(n)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function y9(t=w9){return n=>n.lift(new x9(t))}class x9{constructor(n){this.errorFactory=n}call(n,e){return e.subscribe(new b9(n,this.errorFactory))}}class b9 extends k{constructor(n,e){super(n),this.errorFactory=e,this.hasValue=!1}_next(n){this.hasValue=!0,this.destination.next(n)}_complete(){if(this.hasValue)return this.destination.complete();{let n;try{n=this.errorFactory()}catch(e){n=e}this.destination.error(n)}}}function w9(){return new HD}function L9(t){return void 0===t}function P9(t){if(Array.isArray(t)){for(var n=0,e=Array(t.length);n<t.length;n++)e[n]=t[n];return e}return Array.from(t)}function N9(t){return Array.isArray(t)?t:Array.from(t)}function ec(){for(var t=arguments.length,n=Array(t),e=0;e<t;e++)n[e]=arguments[e];var i=function(b,T){return{a:b.a*T.a+b.c*T.b,c:b.a*T.c+b.c*T.d,e:b.a*T.e+b.c*T.f+b.e,b:b.b*T.a+b.d*T.b,d:b.b*T.c+b.d*T.d,f:b.b*T.e+b.d*T.f+b.f}};switch((n=Array.isArray(n[0])?n[0]:n).length){case 0:throw new Error("no matrices provided");case 1:return n[0];case 2:return i(n[0],n[1]);default:var s=n,r=N9(s),o=r[0],a=r[1],l=r.slice(2),c=i(o,a);return ec.apply(void 0,[c].concat(P9(l)))}}function $D(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{a:1,c:0,e:t,b:0,d:1,f:n}}"function"==typeof Symbol&&Symbol,Math,Math,Math,Math;var _a=Zn(9695);function B9(t,n){var e;function i(){var s,o,r=e.length,a=0,l=0;for(s=0;s<r;++s)a+=(o=e[s]).x,l+=o.y;for(a=a/r-t,l=l/r-n,s=0;s<r;++s)(o=e[s]).x-=a,o.y-=l}return null==t&&(t=0),null==n&&(n=0),i.initialize=function(s){e=s},i.x=function(s){return arguments.length?(t=+s,i):t},i.y=function(s){return arguments.length?(n=+s,i):n},i}function Rn(t){return function(){return t}}function Tr(){return 1e-6*(Math.random()-.5)}function UD(t,n,e,i){if(isNaN(n)||isNaN(e))return t;var s,b,T,M,I,B,P,K,Q,r=t._root,o={data:i},a=t._x0,l=t._y0,c=t._x1,h=t._y1;if(!r)return t._root=o,t;for(;r.length;)if((B=n>=(b=(a+c)/2))?a=b:c=b,(P=e>=(T=(l+h)/2))?l=T:h=T,s=r,!(r=r[K=P<<1|B]))return s[K]=o,t;if(M=+t._x.call(null,r.data),I=+t._y.call(null,r.data),n===M&&e===I)return o.next=r,s?s[K]=o:t._root=o,t;do{s=s?s[K]=new Array(4):t._root=new Array(4),(B=n>=(b=(a+c)/2))?a=b:c=b,(P=e>=(T=(l+h)/2))?l=T:h=T}while((K=P<<1|B)==(Q=(I>=T)<<1|M>=b));return s[Q]=r,s[K]=o,t}function hi(t,n,e,i,s){this.node=t,this.x0=n,this.y0=e,this.x1=i,this.y1=s}function Q9(t){return t[0]}function q9(t){return t[1]}function tv(t,n,e){var i=new nv(null==n?Q9:n,null==e?q9:e,NaN,NaN,NaN,NaN);return null==t?i:i.addAll(t)}function nv(t,n,e,i,s,r){this._x=t,this._y=n,this._x0=e,this._y0=i,this._x1=s,this._y1=r,this._root=void 0}function WD(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var di=tv.prototype=nv.prototype;function t7(t){return t.x+t.vx}function n7(t){return t.y+t.vy}function YD(t){var n,e,i=1,s=1;function r(){for(var l,h,b,T,M,I,B,c=n.length,P=0;P<s;++P)for(h=tv(n,t7,n7).visitAfter(o),l=0;l<c;++l)B=(I=e[(b=n[l]).index])*I,T=b.x+b.vx,M=b.y+b.vy,h.visit(K);function K(Q,ne,ge,Ce,we){var Oe=Q.data,Je=Q.r,Ge=I+Je;if(!Oe)return ne>T+Ge||Ce<T-Ge||ge>M+Ge||we<M-Ge;if(Oe.index>b.index){var Ze=T-Oe.x-Oe.vx,Ue=M-Oe.y-Oe.vy,Le=Ze*Ze+Ue*Ue;Le<Ge*Ge&&(0===Ze&&(Le+=(Ze=Tr())*Ze),0===Ue&&(Le+=(Ue=Tr())*Ue),Le=(Ge-(Le=Math.sqrt(Le)))/Le*i,b.vx+=(Ze*=Le)*(Ge=(Je*=Je)/(B+Je)),b.vy+=(Ue*=Le)*Ge,Oe.vx-=Ze*(Ge=1-Ge),Oe.vy-=Ue*Ge)}}}function o(l){if(l.data)return l.r=e[l.data.index];for(var c=l.r=0;c<4;++c)l[c]&&l[c].r>l.r&&(l.r=l[c].r)}function a(){if(n){var l,h,c=n.length;for(e=new Array(c),l=0;l<c;++l)e[(h=n[l]).index]=+t(h,l,n)}}return"function"!=typeof t&&(t=Rn(null==t?1:+t)),r.initialize=function(l){n=l,a()},r.iterations=function(l){return arguments.length?(s=+l,r):s},r.strength=function(l){return arguments.length?(i=+l,r):i},r.radius=function(l){return arguments.length?(t="function"==typeof l?l:Rn(+l),a(),r):t},r}di.copy=function(){var e,i,t=new nv(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root;if(!n)return t;if(!n.length)return t._root=WD(n),t;for(e=[{source:n,target:t._root=new Array(4)}];n=e.pop();)for(var s=0;s<4;++s)(i=n.source[s])&&(i.length?e.push({source:i,target:n.target[s]=new Array(4)}):n.target[s]=WD(i));return t},di.add=function V9(t){var n=+this._x.call(null,t),e=+this._y.call(null,t);return UD(this.cover(n,e),n,e,t)},di.addAll=function H9(t){var n,e,s,r,i=t.length,o=new Array(i),a=new Array(i),l=1/0,c=1/0,h=-1/0,b=-1/0;for(e=0;e<i;++e)isNaN(s=+this._x.call(null,n=t[e]))||isNaN(r=+this._y.call(null,n))||(o[e]=s,a[e]=r,s<l&&(l=s),s>h&&(h=s),r<c&&(c=r),r>b&&(b=r));if(l>h||c>b)return this;for(this.cover(l,c).cover(h,b),e=0;e<i;++e)UD(this,o[e],a[e],t[e]);return this},di.cover=function z9(t,n){if(isNaN(t=+t)||isNaN(n=+n))return this;var e=this._x0,i=this._y0,s=this._x1,r=this._y1;if(isNaN(e))s=(e=Math.floor(t))+1,r=(i=Math.floor(n))+1;else{for(var l,c,o=s-e,a=this._root;e>t||t>=s||i>n||n>=r;)switch(c=(n<i)<<1|t<e,l=new Array(4),l[c]=a,a=l,o*=2,c){case 0:s=e+o,r=i+o;break;case 1:e=s-o,r=i+o;break;case 2:s=e+o,i=r-o;break;case 3:e=s-o,i=r-o}this._root&&this._root.length&&(this._root=a)}return this._x0=e,this._y0=i,this._x1=s,this._y1=r,this},di.data=function j9(){var t=[];return this.visit(function(n){if(!n.length)do{t.push(n.data)}while(n=n.next)}),t},di.extent=function G9(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]]},di.find=function $9(t,n,e){var i,o,a,l,c,I,B,s=this._x0,r=this._y0,h=this._x1,b=this._y1,T=[],M=this._root;for(M&&T.push(new hi(M,s,r,h,b)),null==e?e=1/0:(s=t-e,r=n-e,h=t+e,b=n+e,e*=e);I=T.pop();)if(!(!(M=I.node)||(o=I.x0)>h||(a=I.y0)>b||(l=I.x1)<s||(c=I.y1)<r))if(M.length){var P=(o+l)/2,K=(a+c)/2;T.push(new hi(M[3],P,K,l,c),new hi(M[2],o,K,P,c),new hi(M[1],P,a,l,K),new hi(M[0],o,a,P,K)),(B=(n>=K)<<1|t>=P)&&(I=T[T.length-1],T[T.length-1]=T[T.length-1-B],T[T.length-1-B]=I)}else{var Q=t-+this._x.call(null,M.data),ne=n-+this._y.call(null,M.data),ge=Q*Q+ne*ne;if(ge<e){var Ce=Math.sqrt(e=ge);s=t-Ce,r=n-Ce,h=t+Ce,b=n+Ce,i=M.data}}return i},di.remove=function U9(t){if(isNaN(h=+this._x.call(null,t))||isNaN(b=+this._y.call(null,t)))return this;var n,i,s,r,h,b,T,M,I,B,P,K,e=this._root,o=this._x0,a=this._y0,l=this._x1,c=this._y1;if(!e)return this;if(e.length)for(;;){if((I=h>=(T=(o+l)/2))?o=T:l=T,(B=b>=(M=(a+c)/2))?a=M:c=M,n=e,!(e=e[P=B<<1|I]))return this;if(!e.length)break;(n[P+1&3]||n[P+2&3]||n[P+3&3])&&(i=n,K=P)}for(;e.data!==t;)if(s=e,!(e=e.next))return this;return(r=e.next)&&delete e.next,s?(r?s.next=r:delete s.next,this):n?(r?n[P]=r:delete n[P],(e=n[0]||n[1]||n[2]||n[3])&&e===(n[3]||n[2]||n[1]||n[0])&&!e.length&&(i?i[K]=e:this._root=e),this):(this._root=r,this)},di.removeAll=function W9(t){for(var n=0,e=t.length;n<e;++n)this.remove(t[n]);return this},di.root=function Y9(){return this._root},di.size=function X9(){var t=0;return this.visit(function(n){if(!n.length)do{++t}while(n=n.next)}),t},di.visit=function Z9(t){var e,s,r,o,a,l,n=[],i=this._root;for(i&&n.push(new hi(i,this._x0,this._y0,this._x1,this._y1));e=n.pop();)if(!t(i=e.node,r=e.x0,o=e.y0,a=e.x1,l=e.y1)&&i.length){var c=(r+a)/2,h=(o+l)/2;(s=i[3])&&n.push(new hi(s,c,h,a,l)),(s=i[2])&&n.push(new hi(s,r,h,c,l)),(s=i[1])&&n.push(new hi(s,c,o,a,h)),(s=i[0])&&n.push(new hi(s,r,o,c,h))}return this},di.visitAfter=function K9(t){var i,n=[],e=[];for(this._root&&n.push(new hi(this._root,this._x0,this._y0,this._x1,this._y1));i=n.pop();){var s=i.node;if(s.length){var r,o=i.x0,a=i.y0,l=i.x1,c=i.y1,h=(o+l)/2,b=(a+c)/2;(r=s[0])&&n.push(new hi(r,o,a,h,b)),(r=s[1])&&n.push(new hi(r,h,a,l,b)),(r=s[2])&&n.push(new hi(r,o,b,h,c)),(r=s[3])&&n.push(new hi(r,h,b,l,c))}e.push(i)}for(;i=e.pop();)t(i.node,i.x0,i.y0,i.x1,i.y1);return this},di.x=function J9(t){return arguments.length?(this._x=t,this):this._x},di.y=function e7(t){return arguments.length?(this._y=t,this):this._y};var Zi="$";function Vh(){}function XD(t,n){var e=new Vh;if(t instanceof Vh)t.each(function(a,l){e.set(l,a)});else if(Array.isArray(t)){var r,i=-1,s=t.length;if(null==n)for(;++i<s;)e.set(i,t[i]);else for(;++i<s;)e.set(n(r=t[i],i,t),r)}else if(t)for(var o in t)e.set(o,t[o]);return e}Vh.prototype=XD.prototype={constructor:Vh,has:function(t){return Zi+t in this},get:function(t){return this[Zi+t]},set:function(t,n){return this[Zi+t]=n,this},remove:function(t){var n=Zi+t;return n in this&&delete this[n]},clear:function(){for(var t in this)t[0]===Zi&&delete this[t]},keys:function(){var t=[];for(var n in this)n[0]===Zi&&t.push(n.slice(1));return t},values:function(){var t=[];for(var n in this)n[0]===Zi&&t.push(this[n]);return t},entries:function(){var t=[];for(var n in this)n[0]===Zi&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var t=0;for(var n in this)n[0]===Zi&&++t;return t},empty:function(){for(var t in this)if(t[0]===Zi)return!1;return!0},each:function(t){for(var n in this)n[0]===Zi&&t(this[n],n.slice(1),this)}};const iv=XD;function Hh(){}var ro=iv.prototype;function o7(t){return t.index}function QD(t,n){var e=t.get(n);if(!e)throw new Error("missing: "+n);return e}function JD(t){var i,r,o,a,l,n=o7,e=function h(B){return 1/Math.min(a[B.source.index],a[B.target.index])},s=Rn(30),c=1;function b(B){for(var P=0,K=t.length;P<c;++P)for(var ne,ge,Ce,we,Oe,Je,Ge,Q=0;Q<K;++Q)we=(Ce=(ne=t[Q]).target).x+Ce.vx-(ge=ne.source).x-ge.vx||Tr(),Oe=Ce.y+Ce.vy-ge.y-ge.vy||Tr(),Oe*=Je=((Je=Math.sqrt(we*we+Oe*Oe))-r[Q])/Je*B*i[Q],Ce.vx-=(we*=Je)*(Ge=l[Q]),Ce.vy-=Oe*Ge,ge.vx+=we*(Ge=1-Ge),ge.vy+=Oe*Ge}function T(){if(o){var B,ne,P=o.length,K=t.length,Q=iv(o,n);for(B=0,a=new Array(P);B<K;++B)(ne=t[B]).index=B,"object"!=typeof ne.source&&(ne.source=QD(Q,ne.source)),"object"!=typeof ne.target&&(ne.target=QD(Q,ne.target)),a[ne.source.index]=(a[ne.source.index]||0)+1,a[ne.target.index]=(a[ne.target.index]||0)+1;for(B=0,l=new Array(K);B<K;++B)l[B]=a[(ne=t[B]).source.index]/(a[ne.source.index]+a[ne.target.index]);i=new Array(K),M(),r=new Array(K),I()}}function M(){if(o)for(var B=0,P=t.length;B<P;++B)i[B]=+e(t[B],B,t)}function I(){if(o)for(var B=0,P=t.length;B<P;++B)r[B]=+s(t[B],B,t)}return null==t&&(t=[]),b.initialize=function(B){o=B,T()},b.links=function(B){return arguments.length?(t=B,T(),b):t},b.id=function(B){return arguments.length?(n=B,b):n},b.iterations=function(B){return arguments.length?(c=+B,b):c},b.strength=function(B){return arguments.length?(e="function"==typeof B?B:Rn(+B),M(),b):e},b.distance=function(B){return arguments.length?(s="function"==typeof B?B:Rn(+B),I(),b):s},b}function a7(t){return t.x}function l7(t){return t.y}Hh.prototype=function r7(t,n){var e=new Hh;if(t instanceof Hh)t.each(function(r){e.add(r)});else if(t){var i=-1,s=t.length;if(null==n)for(;++i<s;)e.add(t[i]);else for(;++i<s;)e.add(n(t[i],i,t))}return e}.prototype={constructor:Hh,has:ro.has,add:function(t){return this[Zi+(t+="")]=t,this},remove:ro.remove,clear:ro.clear,values:ro.keys,size:ro.size,empty:ro.empty,each:ro.each};var u7=Math.PI*(3-Math.sqrt(5));function qD(t){var n,e=1,i=.001,s=1-Math.pow(i,1/300),r=0,o=.6,a=iv(),l=hh(h),c=sh("tick","end");function h(){b(),c.call("tick",n),e<i&&(l.stop(),c.call("end",n))}function b(I){var B,K,P=t.length;void 0===I&&(I=1);for(var Q=0;Q<I;++Q)for(e+=(r-e)*s,a.each(function(ne){ne(e)}),B=0;B<P;++B)null==(K=t[B]).fx?K.x+=K.vx*=o:(K.x=K.fx,K.vx=0),null==K.fy?K.y+=K.vy*=o:(K.y=K.fy,K.vy=0);return n}function T(){for(var P,I=0,B=t.length;I<B;++I){if((P=t[I]).index=I,null!=P.fx&&(P.x=P.fx),null!=P.fy&&(P.y=P.fy),isNaN(P.x)||isNaN(P.y)){var K=10*Math.sqrt(I),Q=I*u7;P.x=K*Math.cos(Q),P.y=K*Math.sin(Q)}(isNaN(P.vx)||isNaN(P.vy))&&(P.vx=P.vy=0)}}function M(I){return I.initialize&&I.initialize(t),I}return null==t&&(t=[]),T(),n={tick:b,restart:function(){return l.restart(h),n},stop:function(){return l.stop(),n},nodes:function(I){return arguments.length?(t=I,T(),a.each(M),n):t},alpha:function(I){return arguments.length?(e=+I,n):e},alphaMin:function(I){return arguments.length?(i=+I,n):i},alphaDecay:function(I){return arguments.length?(s=+I,n):+s},alphaTarget:function(I){return arguments.length?(r=+I,n):r},velocityDecay:function(I){return arguments.length?(o=1-I,n):1-o},force:function(I,B){return arguments.length>1?(null==B?a.remove(I):a.set(I,M(B)),n):a.get(I)},find:function(I,B,P){var ne,ge,Ce,we,Oe,K=0,Q=t.length;for(null==P?P=1/0:P*=P,K=0;K<Q;++K)(Ce=(ne=I-(we=t[K]).x)*ne+(ge=B-we.y)*ge)<P&&(Oe=we,P=Ce);return Oe},on:function(I,B){return arguments.length>1?(c.on(I,B),n):c.on(I)}}}function eE(){var t,n,e,s,i=Rn(-30),r=1,o=1/0,a=.81;function l(T){var M,I=t.length,B=tv(t,a7,l7).visitAfter(h);for(e=T,M=0;M<I;++M)n=t[M],B.visit(b)}function c(){if(t){var T,I,M=t.length;for(s=new Array(M),T=0;T<M;++T)s[(I=t[T]).index]=+i(I,T,t)}}function h(T){var I,B,K,Q,ne,M=0,P=0;if(T.length){for(K=Q=ne=0;ne<4;++ne)(I=T[ne])&&(B=Math.abs(I.value))&&(M+=I.value,P+=B,K+=B*I.x,Q+=B*I.y);T.x=K/P,T.y=Q/P}else{(I=T).x=I.data.x,I.y=I.data.y;do{M+=s[I.data.index]}while(I=I.next)}T.value=M}function b(T,M,I,B){if(!T.value)return!0;var P=T.x-n.x,K=T.y-n.y,Q=B-M,ne=P*P+K*K;if(Q*Q/a<ne)return ne<o&&(0===P&&(ne+=(P=Tr())*P),0===K&&(ne+=(K=Tr())*K),ne<r&&(ne=Math.sqrt(r*ne)),n.vx+=P*T.value*e/ne,n.vy+=K*T.value*e/ne),!0;if(!(T.length||ne>=o)){(T.data!==n||T.next)&&(0===P&&(ne+=(P=Tr())*P),0===K&&(ne+=(K=Tr())*K),ne<r&&(ne=Math.sqrt(r*ne)));do{T.data!==n&&(n.vx+=P*(Q=s[T.data.index]*e/ne),n.vy+=K*Q)}while(T=T.next)}}return l.initialize=function(T){t=T,c()},l.strength=function(T){return arguments.length?(i="function"==typeof T?T:Rn(+T),c(),l):i},l.distanceMin=function(T){return arguments.length?(r=T*T,l):Math.sqrt(r)},l.distanceMax=function(T){return arguments.length?(o=T*T,l):Math.sqrt(o)},l.theta=function(T){return arguments.length?(a=T*T,l):Math.sqrt(a)},l}function h7(t,n,e){var i,r,o,s=Rn(.1);function a(c){for(var h=0,b=i.length;h<b;++h){var T=i[h],M=T.x-n||1e-6,I=T.y-e||1e-6,B=Math.sqrt(M*M+I*I),P=(o[h]-B)*r[h]*c/B;T.vx+=M*P,T.vy+=I*P}}function l(){if(i){var c,h=i.length;for(r=new Array(h),o=new Array(h),c=0;c<h;++c)o[c]=+t(i[c],c,i),r[c]=isNaN(o[c])?0:+s(i[c],c,i)}}return"function"!=typeof t&&(t=Rn(+t)),null==n&&(n=0),null==e&&(e=0),a.initialize=function(c){i=c,l()},a.strength=function(c){return arguments.length?(s="function"==typeof c?c:Rn(+c),l(),a):s},a.radius=function(c){return arguments.length?(t="function"==typeof c?c:Rn(+c),l(),a):t},a.x=function(c){return arguments.length?(n=+c,a):n},a.y=function(c){return arguments.length?(e=+c,a):e},a}function d7(t){var e,i,s,n=Rn(.1);function r(a){for(var h,l=0,c=e.length;l<c;++l)(h=e[l]).vx+=(s[l]-h.x)*i[l]*a}function o(){if(e){var a,l=e.length;for(i=new Array(l),s=new Array(l),a=0;a<l;++a)i[a]=isNaN(s[a]=+t(e[a],a,e))?0:+n(e[a],a,e)}}return"function"!=typeof t&&(t=Rn(null==t?0:+t)),r.initialize=function(a){e=a,o()},r.strength=function(a){return arguments.length?(n="function"==typeof a?a:Rn(+a),o(),r):n},r.x=function(a){return arguments.length?(t="function"==typeof a?a:Rn(+a),o(),r):t},r}function f7(t){var e,i,s,n=Rn(.1);function r(a){for(var h,l=0,c=e.length;l<c;++l)(h=e[l]).vy+=(s[l]-h.y)*i[l]*a}function o(){if(e){var a,l=e.length;for(i=new Array(l),s=new Array(l),a=0;a<l;++a)i[a]=isNaN(s[a]=+t(e[a],a,e))?0:+n(e[a],a,e)}}return"function"!=typeof t&&(t=Rn(null==t?0:+t)),r.initialize=function(a){e=a,o()},r.strength=function(a){return arguments.length?(n="function"==typeof a?a:Rn(+a),o(),r):n},r.y=function(a){return arguments.length?(t="function"==typeof a?a:Rn(+a),o(),r):t},r}var p7=Zn(7824);function g7(t,n,e){var i=new Nl,s=n;return null==n?(i.restart(t,n,e),i):(n=+n,e=null==e?oa():+e,i.restart(function r(o){o+=s,i.restart(r,s+=n,e),t(o)},n,e),i)}const m7=["linkTemplate"],v7=["nodeTemplate"],_7=["clusterTemplate"],y7=["defsTemplate"],x7=["miniMapNodeTemplate"],b7=["nodeElement"],w7=["linkElement"];function C7(t,n){1&t&&(ae(),fr(0,14)),2&t&&j("ngTemplateOutlet",W(2).defsTemplate)}function T7(t,n){if(1&t&&(ae(),Ie(0,"path",15)),2&t){const e=n.$implicit;me("d",e.textPath)("id",e.id)}}const tc=function(t){return{$implicit:t}};function D7(t,n){if(1&t&&(ae(),fr(0,20)),2&t){const e=W().$implicit;j("ngTemplateOutlet",W(2).clusterTemplate)("ngTemplateOutletContext",js(2,tc,e))}}function E7(t,n){if(1&t&&(ae(),q(0,"g",21),Ie(1,"rect"),q(2,"text",22),St(3),re()()),2&t){const e=W().$implicit;G(1),me("width",e.dimension.width)("height",e.dimension.height)("fill",null==e.data?null:e.data.color),G(1),me("x",10)("y",e.dimension.height/2),G(1),nn(" ",e.label," ")}}function S7(t,n){if(1&t){const e=Be();ae(),q(0,"g",16,17),ye("click",function(){const r=ve(e).$implicit;return W(2).onClick(r)}),ue(2,D7,1,4,"ng-container",18),ue(3,E7,4,6,"g",19),re()}if(2&t){const e=n.$implicit,i=W(2);an("old-node",i.animate&&i.oldClusters.has(e.id)),j("id",e.id),me("transform",e.transform),G(2),j("ngIf",i.clusterTemplate),G(1),j("ngIf",!i.clusterTemplate)}}function A7(t,n){if(1&t&&(ae(),fr(0,20)),2&t){const e=W().$implicit;j("ngTemplateOutlet",W(2).linkTemplate)("ngTemplateOutletContext",js(2,tc,e))}}function M7(t,n){1&t&&(ae(),Ie(0,"path",26)),2&t&&me("d",W().$implicit.line)}function k7(t,n){if(1&t&&(ae(),q(0,"g",23,24),ue(2,A7,1,4,"ng-container",18),ue(3,M7,1,1,"path",25),re()),2&t){const e=n.$implicit,i=W(2);j("id",e.id),G(2),j("ngIf",i.linkTemplate),G(1),j("ngIf",!i.linkTemplate)}}function L7(t,n){if(1&t&&(ae(),fr(0,20)),2&t){const e=W().$implicit;j("ngTemplateOutlet",W(2).nodeTemplate)("ngTemplateOutletContext",js(2,tc,e))}}function I7(t,n){if(1&t&&(ae(),Ie(0,"circle",30)),2&t){const e=W().$implicit;me("cx",e.dimension.width/2)("cy",e.dimension.height/2)("fill",null==e.data?null:e.data.color)}}function O7(t,n){if(1&t){const e=Be();ae(),q(0,"g",27,28),ye("click",function(){const r=ve(e).$implicit;return W(2).onClick(r)})("mousedown",function(s){const o=ve(e).$implicit;return W(2).onNodeMouseDown(s,o)}),ue(2,L7,1,4,"ng-container",18),ue(3,I7,1,3,"circle",29),re()}if(2&t){const e=n.$implicit,i=W(2);an("old-node",i.animate&&i.oldNodes.has(e.id)),j("id",e.id),me("transform",e.transform),G(2),j("ngIf",i.nodeTemplate),G(1),j("ngIf",!i.nodeTemplate)}}function F7(t,n){if(1&t){const e=Be();ae(),q(0,"g",4),ye("touchstart",function(s){return ve(e),W().onTouchStart(s)})("touchend",function(s){return ve(e),W().onTouchEnd(s)}),q(1,"defs"),ue(2,C7,1,1,"ng-container",5),ue(3,T7,1,2,"path",6),re(),q(4,"rect",7),ye("mousedown",function(){return ve(e),W().isPanning=!0}),re(),function Jc(t,n=0,e){const i=Se(),s=kt(),r=ko(s,20+t,16,null,e||null);null===r.projection&&(r.projection=n),yd(),64!=(64&r.flags)&&function eM(t,n,e){N_(n[11],0,n,e,S_(t,e,n),L_(e.parent||n[6],e,n))}(s,i,r)}(5),q(6,"g",8),ue(7,S7,4,6,"g",9),re(),q(8,"g",10),ue(9,k7,4,3,"g",11),re(),q(10,"g",12),ue(11,O7,4,6,"g",13),re()()}if(2&t){const e=W();me("transform",e.transform),G(2),j("ngIf",e.defsTemplate),G(1),j("ngForOf",e.graph.edges),G(1),me("width",100*e.dims.width)("height",100*e.dims.height)("transform","translate("+50*(-e.dims.width||0)+","+50*(-e.dims.height||0)+")"),G(3),j("ngForOf",e.graph.clusters)("ngForTrackBy",e.trackNodeBy),G(2),j("ngForOf",e.graph.edges)("ngForTrackBy",e.trackLinkBy),G(2),j("ngForOf",e.graph.nodes)("ngForTrackBy",e.trackNodeBy)}}function P7(t,n){if(1&t&&(ae(),fr(0,20)),2&t){const e=W().$implicit;j("ngTemplateOutlet",W(2).miniMapNodeTemplate)("ngTemplateOutletContext",js(2,tc,e))}}function N7(t,n){if(1&t&&(ae(),fr(0,20)),2&t){const e=W().$implicit;j("ngTemplateOutlet",W(2).nodeTemplate)("ngTemplateOutletContext",js(2,tc,e))}}function R7(t,n){if(1&t&&(ae(),Ie(0,"circle",30)),2&t){const e=W().$implicit,i=W(2);me("cx",e.dimension.width/2/i.minimapScaleCoefficient)("cy",e.dimension.height/2/i.minimapScaleCoefficient)("fill",null==e.data?null:e.data.color)}}function B7(t,n){if(1&t&&(ae(),q(0,"g",36,28),ue(2,P7,1,4,"ng-container",18),ue(3,N7,1,4,"ng-container",18),ue(4,R7,1,3,"circle",29),re()),2&t){const e=n.$implicit,i=W(2);an("old-node",i.animate&&i.oldNodes.has(e.id)),j("id",e.id),me("transform",e.transform),G(2),j("ngIf",i.miniMapNodeTemplate),G(1),j("ngIf",!i.miniMapNodeTemplate&&i.nodeTemplate),G(1),j("ngIf",!i.nodeTemplate&&!i.miniMapNodeTemplate)}}function V7(t,n){if(1&t){const e=Be();ae(),q(0,"g",31)(1,"rect",32),ye("mousedown",function(s){return ve(e),W().onMinimapPanTo(s)}),re(),q(2,"g")(3,"g",33),ue(4,B7,5,7,"g",34),re(),q(5,"rect",35),ye("mousedown",function(){return ve(e),W().onMinimapDragMouseDown()}),re()()()}if(2&t){const e=W();me("transform",e.minimapTransform)("clip-path","url(#"+e.minimapClipPathId+")"),G(1),me("width",e.graphDims.width/e.minimapScaleCoefficient)("height",e.graphDims.height/e.minimapScaleCoefficient),G(1),vt("transform","translate("+-e.minimapOffsetX/e.minimapScaleCoefficient+"px,"+-e.minimapOffsetY/e.minimapScaleCoefficient+"px)"),G(1),vt("transform","scale("+1/e.minimapScaleCoefficient+")"),G(1),j("ngForOf",e.graph.nodes)("ngForTrackBy",e.trackNodeBy),G(1),an("panning",e.isMinimapPanning),me("transform","translate("+e.panOffsetX/e.zoomLevel/-e.minimapScaleCoefficient+","+e.panOffsetY/e.zoomLevel/-e.minimapScaleCoefficient+")")("width",e.width/e.minimapScaleCoefficient/e.zoomLevel)("height",e.height/e.minimapScaleCoefficient/e.zoomLevel)}}const H7=["*"],tE={};function er(){let t=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return t=`a${t}`,tE[t]?er():(tE[t]=!0,t)}var ya=(()=>(function(t){t.Both="both",t.Horizontal="horizontal",t.Vertical="vertical"}(ya||(ya={})),ya))(),xa=(()=>(function(t){t.UpperLeft="UpperLeft",t.UpperRight="UpperRight"}(xa||(xa={})),xa))();function z7(t,n,e){e=e||{};let i,s,r,o=null,a=0;function l(){a=!1===e.leading?0:+new Date,o=null,r=t.apply(i,s)}return function(){const c=+new Date;!a&&!1===e.leading&&(a=c);const h=n-(c-a);return i=this,s=arguments,h<=0?(clearTimeout(o),o=null,a=c,r=t.apply(i,s)):!o&&!1!==e.trailing&&(o=setTimeout(l,h)),r}}function j7(t,n){return function(i,s,r){return{configurable:!0,enumerable:r.enumerable,get:function(){return Object.defineProperty(this,s,{configurable:!0,enumerable:r.enumerable,value:z7(r.value,t,n)}),this[s]}}}}let nE=[{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 G7{constructor(n,e,i){"string"==typeof n&&(n=nE.find(s=>s.name===n)),this.colorDomain=n.domain,this.domain=e,this.customColors=i,this.scale=this.generateColorScheme(n,this.domain)}generateColorScheme(n,e){return"string"==typeof n&&(n=nE.find(i=>i.name===n)),Th().range(n.domain).domain(e)}getColor(n){if(null==n)throw new Error("Value can not be null");if("function"==typeof this.customColors)return this.customColors(n);const e=n.toString();let i;return this.customColors&&this.customColors.length>0&&(i=this.customColors.find(s=>s.name.toLowerCase()===e.toLowerCase())),i?i.value:this.scale(n)}}let U7=(()=>{class t{constructor(e,i){this.element=e,this.zone=i,this.visible=new _e,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const e=()=>{if(!this.element)return;const{offsetHeight:i,offsetWidth:s}=this.element.nativeElement;i&&s?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e())})}}return t.\u0275fac=function(e){return new(e||t)(ke(Gt),ke(Pt))},t.\u0275dir=bn({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t})();var ba=(()=>(function(t){t.LEFT_TO_RIGHT="LR",t.RIGHT_TO_LEFT="RL",t.TOP_TO_BOTTOM="TB",t.BOTTOM_TO_TOM="BT"}(ba||(ba={})),ba))();function wa(t){return"string"==typeof t?{id:t,x:0,y:0}:t}function sE(t,n){return"number"==typeof n?t[n]:n}const rE={dagre:class W7{constructor(){this.defaultSettings={orientation:ba.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(n){this.createDagreGraph(n),_a.layout(this.dagreGraph),n.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const i=this.dagreGraph._nodes[e],s=n.nodes.find(r=>r.id===i.id);s.position={x:i.x,y:i.y},s.dimension={width:i.width,height:i.height}}return n}updateEdge(n,e){const i=n.nodes.find(l=>l.id===e.source),s=n.nodes.find(l=>l.id===e.target),r=i.position.y<=s.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-r*(i.dimension.height/2)},{x:s.position.x,y:s.position.y+r*(s.dimension.height/2)}],n}createDagreGraph(n){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new _a.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=n.nodes.map(i=>{const s=Object.assign({},i);return s.width=i.dimension.width,s.height=i.dimension.height,s.x=i.position.x,s.y=i.position.y,s}),this.dagreEdges=n.edges.map(i=>{const s=Object.assign({},i);return s.id||(s.id=er()),s});for(const i of this.dagreNodes)i.width||(i.width=20),i.height||(i.height=30),this.dagreGraph.setNode(i.id,i);for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},dagreCluster:class Y7{constructor(){this.defaultSettings={orientation:ba.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(n){this.createDagreGraph(n),_a.layout(this.dagreGraph),n.edgeLabels=this.dagreGraph._edgeLabels;const e=i=>{const s=this.dagreGraph._nodes[i.id];return Object.assign(Object.assign({},i),{position:{x:s.x,y:s.y},dimension:{width:s.width,height:s.height}})};return n.clusters=(n.clusters||[]).map(e),n.nodes=n.nodes.map(e),n}updateEdge(n,e){const i=n.nodes.find(l=>l.id===e.source),s=n.nodes.find(l=>l.id===e.target),r=i.position.y<=s.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-r*(i.dimension.height/2)},{x:s.position.x,y:s.position.y+r*(s.dimension.height/2)}],n}createDagreGraph(n){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new _a.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=n.nodes.map(i=>{const s=Object.assign({},i);return s.width=i.dimension.width,s.height=i.dimension.height,s.x=i.position.x,s.y=i.position.y,s}),this.dagreClusters=n.clusters||[],this.dagreEdges=n.edges.map(i=>{const s=Object.assign({},i);return s.id||(s.id=er()),s});for(const i of this.dagreNodes)this.dagreGraph.setNode(i.id,i);for(const i of this.dagreClusters)this.dagreGraph.setNode(i.id,i),i.childNodeIds.forEach(s=>{this.dagreGraph.setParent(s,i.id)});for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},dagreNodesOnly:class Z7{constructor(){this.defaultSettings={orientation:ba.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,curveDistance:20,multigraph:!0,compound:!0},this.settings={}}run(n){this.createDagreGraph(n),_a.layout(this.dagreGraph),n.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const i=this.dagreGraph._nodes[e],s=n.nodes.find(r=>r.id===i.id);s.position={x:i.x,y:i.y},s.dimension={width:i.width,height:i.height}}for(const e of n.edges)this.updateEdge(n,e);return n}updateEdge(n,e){const i=n.nodes.find(I=>I.id===e.source),s=n.nodes.find(I=>I.id===e.target),r="BT"===this.settings.orientation||"TB"===this.settings.orientation?"y":"x",o="y"===r?"x":"y",a="y"===r?"height":"width",l=i.position[r]<=s.position[r]?-1:1,c={[o]:i.position[o],[r]:i.position[r]-l*(i.dimension[a]/2)},h={[o]:s.position[o],[r]:s.position[r]+l*(s.dimension[a]/2)},b=this.settings.curveDistance||this.defaultSettings.curveDistance;e.points=[c,{[o]:c[o],[r]:c[r]-l*b},{[o]:h[o],[r]:h[r]+l*b},h];const M=n.edgeLabels[`${e.source}\x01${e.target}\x01\0`];return M&&(M.points=e.points),n}createDagreGraph(n){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new _a.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=n.nodes.map(i=>{const s=Object.assign({},i);return s.width=i.dimension.width,s.height=i.dimension.height,s.x=i.position.x,s.y=i.position.y,s}),this.dagreEdges=n.edges.map(i=>{const s=Object.assign({},i);return s.id||(s.id=er()),s});for(const i of this.dagreNodes)i.width||(i.width=20),i.height||(i.height=30),this.dagreGraph.setNode(i.id,i);for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},d3ForceDirected:class K7{constructor(){this.defaultSettings={force:qD().force("charge",eE().strength(-150)).force("collide",YD(5)),forceLink:JD().id(n=>n.id).distance(()=>100)},this.settings={},this.outputGraph$=new $}run(n){return this.inputGraph=n,this.d3Graph={nodes:[...this.inputGraph.nodes.map(e=>Object.assign({},e))],edges:[...this.inputGraph.edges.map(e=>Object.assign({},e))]},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(n,e){const i=Object.assign({},this.defaultSettings,this.settings);return i.force&&i.force.nodes(this.d3Graph.nodes).force("link",i.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}d3GraphToOutputGraph(n){return this.outputGraph.nodes=this.d3Graph.nodes.map(e=>Object.assign(Object.assign({},e),{id:e.id||er(),position:{x:e.x,y:e.y},dimension:{width:e.dimension&&e.dimension.width||20,height:e.dimension&&e.dimension.height||20},transform:`translate(${e.x-(e.dimension&&e.dimension.width||20)/2||0}, ${e.y-(e.dimension&&e.dimension.height||20)/2||0})`})),this.outputGraph.edges=this.d3Graph.edges.map(e=>Object.assign(Object.assign({},e),{source:wa(e.source).id,target:wa(e.target).id,points:[{x:wa(e.source).x,y:wa(e.source).y},{x:wa(e.target).x,y:wa(e.target).y}]})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(n,e){this.settings.force.alphaTarget(.3).restart();const i=this.d3Graph.nodes.find(s=>s.id===n.id);!i||(this.draggingStart={x:e.x-i.x,y:e.y-i.y},i.fx=e.x-this.draggingStart.x,i.fy=e.y-this.draggingStart.y)}onDrag(n,e){if(!n)return;const i=this.d3Graph.nodes.find(s=>s.id===n.id);!i||(i.fx=e.x-this.draggingStart.x,i.fy=e.y-this.draggingStart.y)}onDragEnd(n,e){if(!n)return;const i=this.d3Graph.nodes.find(s=>s.id===n.id);!i||(this.settings.force.alphaTarget(0),i.fx=void 0,i.fy=void 0)}},colaForceDirected:class Q7{constructor(){this.defaultSettings={force:(0,p7.d3adaptor)(Object.assign(Object.assign(Object.assign({},L),E),u)).linkDistance(150).avoidOverlaps(!0),viewDimensions:{width:600,height:600}},this.settings={},this.outputGraph$=new $}run(n){return this.inputGraph=n,this.inputGraph.clusters||(this.inputGraph.clusters=[]),this.internalGraph={nodes:[...this.inputGraph.nodes.map(e=>Object.assign(Object.assign({},e),{width:e.dimension?e.dimension.width:20,height:e.dimension?e.dimension.height:20}))],groups:[...this.inputGraph.clusters.map(e=>({padding:5,groups:e.childNodeIds.map(i=>this.inputGraph.clusters.findIndex(s=>s.id===i)).filter(i=>i>=0),leaves:e.childNodeIds.map(i=>this.inputGraph.nodes.findIndex(s=>s.id===i)).filter(i=>i>=0)}))],links:[...this.inputGraph.edges.map(e=>{const i=this.inputGraph.nodes.findIndex(r=>e.source===r.id),s=this.inputGraph.nodes.findIndex(r=>e.target===r.id);if(-1!==i&&-1!==s)return Object.assign(Object.assign({},e),{source:i,target:s})}).filter(e=>!!e)],groupLinks:[...this.inputGraph.edges.map(e=>{const i=this.inputGraph.nodes.findIndex(r=>e.source===r.id),s=this.inputGraph.nodes.findIndex(r=>e.target===r.id);if(!(i>=0&&s>=0))return e}).filter(e=>!!e)]},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(n,e){const i=Object.assign({},this.defaultSettings,this.settings);return i.force&&i.force.start(),this.outputGraph$.asObservable()}internalGraphToOutputGraph(n){return this.outputGraph.nodes=n.nodes.map(e=>Object.assign(Object.assign({},e),{id:e.id||er(),position:{x:e.x,y:e.y},dimension:{width:e.dimension&&e.dimension.width||20,height:e.dimension&&e.dimension.height||20},transform:`translate(${e.x-(e.dimension&&e.dimension.width||20)/2||0}, ${e.y-(e.dimension&&e.dimension.height||20)/2||0})`})),this.outputGraph.edges=n.links.map(e=>{const i=sE(n.nodes,e.source),s=sE(n.nodes,e.target);return Object.assign(Object.assign({},e),{source:i.id,target:s.id,points:[i.bounds.rayIntersection(s.bounds.cx(),s.bounds.cy()),s.bounds.rayIntersection(i.bounds.cx(),i.bounds.cy())]})}).concat(n.groupLinks.map(e=>{const i=n.nodes.find(a=>a.id===e.source),s=n.nodes.find(a=>a.id===e.target),r=i||n.groups.find(a=>a.id===e.source),o=s||n.groups.find(a=>a.id===e.target);return Object.assign(Object.assign({},e),{source:r.id,target:o.id,points:[r.bounds.rayIntersection(o.bounds.cx(),o.bounds.cy()),o.bounds.rayIntersection(r.bounds.cx(),r.bounds.cy())]})})),this.outputGraph.clusters=n.groups.map((e,i)=>Object.assign(Object.assign({},this.inputGraph.clusters[i]),{dimension:{width:e.bounds?e.bounds.width():20,height:e.bounds?e.bounds.height():20},position:{x:e.bounds?e.bounds.x+e.bounds.width()/2:0,y:e.bounds?e.bounds.y+e.bounds.height()/2:0}})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(n,e){const i=this.outputGraph.nodes.findIndex(r=>r.id===n.id),s=this.internalGraph.nodes[i];!s||(this.draggingStart={x:s.x-e.x,y:s.y-e.y},s.fixed=1,this.settings.force.start())}onDrag(n,e){if(!n)return;const i=this.outputGraph.nodes.findIndex(r=>r.id===n.id),s=this.internalGraph.nodes[i];!s||(s.x=this.draggingStart.x+e.x,s.y=this.draggingStart.y+e.y)}onDragEnd(n,e){if(!n)return;const i=this.outputGraph.nodes.findIndex(r=>r.id===n.id),s=this.internalGraph.nodes[i];!s||(s.fixed=0)}}};let oE=(()=>{class t{getLayout(e){if(rE[e])return new rE[e];throw new Error(`Unknown layout type '${e}'`)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})(),J7=(()=>{class t{constructor(){this.mouseWheelUp=new _e,this.mouseWheelDown=new _e}onMouseWheelChrome(e){this.mouseWheelFunc(e)}onMouseWheelFirefox(e){this.mouseWheelFunc(e)}onWheel(e){this.mouseWheelFunc(e)}onMouseWheelIE(e){this.mouseWheelFunc(e)}mouseWheelFunc(e){window.event&&(e=window.event);const i=Math.max(-1,Math.min(1,e.wheelDelta||-e.detail||e.deltaY||e.deltaX)),r=e.wheelDelta?i<0:i>0;(e.wheelDelta?i>0:i<0)?this.mouseWheelUp.emit(e):r&&this.mouseWheelDown.emit(e),e.returnValue=!1,e.preventDefault&&e.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=bn({type:t,selectors:[["","mouseWheel",""]],hostBindings:function(e,i){1&e&&ye("mousewheel",function(r){return i.onMouseWheelChrome(r)})("DOMMouseScroll",function(r){return i.onMouseWheelFirefox(r)})("wheel",function(r){return i.onWheel(r)})("onmousewheel",function(r){return i.onMouseWheelIE(r)})},outputs:{mouseWheelUp:"mouseWheelUp",mouseWheelDown:"mouseWheelDown"}}),t})(),q7=(()=>{class t{constructor(e,i,s,r){this.el=e,this.zone=i,this.cd=s,this.layoutService=r,this.nodes=[],this.clusters=[],this.links=[],this.activeEntries=[],this.draggingEnabled=!0,this.panningEnabled=!0,this.panningAxis=ya.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=xa.UpperRight,this.scheme="cool",this.animations=!0,this.select=new _e,this.activate=new _e,this.deactivate=new _e,this.zoomChange=new _e,this.clickHandler=new _e,this.isMouseMoveCalled=!1,this.graphSubscription=new m,this.subscriptions=[],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=o=>o.label}get zoomLevel(){return this.transformationMatrix.a}set zoomLevel(e){this.zoomTo(Number(e))}get panOffsetX(){return this.transformationMatrix.e}set panOffsetX(e){this.panTo(Number(e),null)}get panOffsetY(){return this.transformationMatrix.f}set panOffsetY(e){this.panTo(null,Number(e))}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(e=>{this.panToNodeId(e)})),this.minimapClipPathId=`minimapClip${er()}`}ngOnChanges(e){this.basicUpdate();const{layoutSettings:s}=e;this.setLayout(this.layout),s&&this.setLayoutSettings(this.layoutSettings),this.update()}setLayout(e){this.initialized=!1,e||(e="dagre"),"string"==typeof e&&(this.layout=this.layoutService.getLayout(e),this.setLayoutSettings(this.layoutSettings))}setLayoutSettings(e){this.layout&&"string"!=typeof this.layout&&(this.layout.settings=e)}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy());for(const e of this.subscriptions)e.unsubscribe();this.subscriptions=null}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new U7(this.el,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this)),setTimeout(()=>this.update())}update(){this.basicUpdate(),this.curve||(this.curve=u9.beta(1)),this.zone.run(()=>{this.dims=function $7({width:t,height:n}){let e=t,i=n;return e=Math.max(0,e),i=Math.max(0,i),{width:Math.floor(e),height:Math.floor(i)}}({width:this.width,height:this.height}),this.seriesDomain=this.getSeriesDomain(),this.setColors(),this.createGraph(),this.updateTransform(),this.initialized=!0})}createGraph(){this.graphSubscription.unsubscribe(),this.graphSubscription=new m;const e=i=>(i.meta||(i.meta={}),i.id||(i.id=er()),i.dimension?i.meta.forceDimensions=void 0===i.meta.forceDimensions||i.meta.forceDimensions:(i.dimension={width:this.nodeWidth?this.nodeWidth:30,height:this.nodeHeight?this.nodeHeight:30},i.meta.forceDimensions=!1),i.position={x:0,y:0},i.data=i.data?i.data:{},i);this.graph={nodes:this.nodes.length>0?[...this.nodes].map(e):[],clusters:this.clusters&&this.clusters.length>0?[...this.clusters].map(e):[],edges:this.links.length>0?[...this.links].map(i=>(i.id||(i.id=er()),i)):[]},requestAnimationFrame(()=>this.draw())}draw(){if(!this.layout||"string"==typeof this.layout)return;this.applyNodeDimensions();const e=this.layout.run(this.graph),i=e instanceof te?e:ea(e);this.graphSubscription.add(i.subscribe(s=>{this.graph=s,this.tick()})),0!==this.graph.nodes.length&&i.pipe(function C9(t,n){const e=arguments.length>=2;return i=>i.pipe(t?zD((s,r)=>t(s,r,i)):H,Bh(1),e?m9(n):y9(()=>new HD))}()).subscribe(()=>this.applyNodeDimensions())}tick(){const e=new Set;this.graph.nodes.map(r=>{r.transform=`translate(${r.position.x-r.dimension.width/2||0}, ${r.position.y-r.dimension.height/2||0})`,r.data||(r.data={}),r.data.color=this.colors.getColor(this.groupResultsBy(r)),e.add(r.id)});const i=new Set;(this.graph.clusters||[]).map(r=>{r.transform=`translate(${r.position.x-r.dimension.width/2||0}, ${r.position.y-r.dimension.height/2||0})`,r.data||(r.data={}),r.data.color=this.colors.getColor(this.groupResultsBy(r)),i.add(r.id)}),setTimeout(()=>{this.oldNodes=e,this.oldClusters=i},500);const s=[];for(const r in this.graph.edgeLabels){const o=this.graph.edgeLabels[r],a=r.replace(/[^\w-]*/g,""),l=this.layout&&"string"!=typeof this.layout&&this.layout.settings&&this.layout.settings.multigraph;let c=this._oldLinks.find(l?B=>`${B.source}${B.target}${B.id}`===a:B=>`${B.source}${B.target}`===a);const h=this.graph.edges.find(l?B=>`${B.source}${B.target}${B.id}`===a:B=>`${B.source}${B.target}`===a);c?c.data&&h&&h.data&&JSON.stringify(c.data)!==JSON.stringify(h.data)&&(c.data=h.data):c=h||o,c.oldLine=c.line;const b=o.points,T=this.generateLine(b),M=Object.assign({},c);M.line=T,M.points=b,this.updateMidpointOnEdge(M,b);const I=b[Math.floor(b.length/2)];I&&(M.textTransform=`translate(${I.x||0},${I.y||0})`),M.textAngle=0,M.oldLine||(M.oldLine=M.line),this.calcDominantBaseline(M),s.push(M)}this.graph.edges=s,this.graph.edges&&(this._oldLinks=this.graph.edges.map(r=>{const o=Object.assign({},r);return o.oldLine=r.line,o})),this.updateMinimap(),this.autoZoom&&this.zoomToFit(),this.autoCenter&&this.center(),requestAnimationFrame(()=>this.redrawLines()),this.cd.markForCheck()}getMinimapTransform(){switch(this.miniMapPosition){case xa.UpperLeft:return"";case xa.UpperRight:return"translate("+(this.dims.width-this.graphDims.width/this.minimapScaleCoefficient)+",0)";default:return""}}updateGraphDims(){let e=1/0,i=-1/0,s=1/0,r=-1/0;for(let o=0;o<this.graph.nodes.length;o++){const a=this.graph.nodes[o];e=a.position.x<e?a.position.x:e,s=a.position.y<s?a.position.y:s,i=a.position.x+a.dimension.width>i?a.position.x+a.dimension.width:i,r=a.position.y+a.dimension.height>r?a.position.y+a.dimension.height:r}e-=100,s-=100,i+=100,r+=100,this.graphDims.width=i-e,this.graphDims.height=r-s,this.minimapOffsetX=e,this.minimapOffsetY=s}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(e=>{const i=e.nativeElement,s=this.graph.nodes.find(o=>o.id===i.id);if(!s)return;let r;try{if(r=i.getBBox(),!r.width||!r.height)return}catch(o){return}if(s.dimension.height=this.nodeHeight?s.dimension.height&&s.meta.forceDimensions?s.dimension.height:this.nodeHeight:s.dimension.height&&s.meta.forceDimensions?s.dimension.height:r.height,this.nodeMaxHeight&&(s.dimension.height=Math.max(s.dimension.height,this.nodeMaxHeight)),this.nodeMinHeight&&(s.dimension.height=Math.min(s.dimension.height,this.nodeMinHeight)),this.nodeWidth)s.dimension.width=s.dimension.width&&s.meta.forceDimensions?s.dimension.width:this.nodeWidth;else if(i.getElementsByTagName("text").length){let o;try{for(const a of i.getElementsByTagName("text")){const l=a.getBBox();o?(l.width>o.width&&(o.width=l.width),l.height>o.height&&(o.height=l.height)):o=l}}catch(a){return}s.dimension.width=s.dimension.width&&s.meta.forceDimensions?s.dimension.width:o.width+20}else s.dimension.width=s.dimension.width&&s.meta.forceDimensions?s.dimension.width:r.width;this.nodeMaxWidth&&(s.dimension.width=Math.max(s.dimension.width,this.nodeMaxWidth)),this.nodeMinWidth&&(s.dimension.width=Math.min(s.dimension.width,this.nodeMinWidth))})}redrawLines(e=this.animate){this.linkElements.map(i=>{const s=this.graph.edges.find(r=>r.id===i.nativeElement.id);s&&(Sn(i.nativeElement).select(".line").attr("d",s.oldLine).transition().ease(VD).duration(e?500:0).attr("d",s.line),Sn(this.el.nativeElement).select(`#${s.id}`).attr("d",s.oldTextPath).transition().ease(VD).duration(e?500:0).attr("d",s.textPath),this.updateMidpointOnEdge(s,s.points))})}calcDominantBaseline(e){const i=e.points[0],s=e.points[e.points.length-1];e.oldTextPath=e.textPath,s.x<i.x?(e.dominantBaseline="text-before-edge",e.textPath=this.generateLine([...e.points].reverse())):(e.dominantBaseline="text-after-edge",e.textPath=e.line)}generateLine(e){return function Wl(){var t=V1,n=H1,e=$t(!0),i=null,s=to,r=null;function o(a){var l,h,T,c=a.length,b=!1;for(null==i&&(r=s(T=Rm())),l=0;l<=c;++l)!(l<c&&e(h=a[l],l,a))===b&&((b=!b)?r.lineStart():r.lineEnd()),b&&r.point(+t(h,l,a),+n(h,l,a));if(T)return r=null,T+""||null}return o.x=function(a){return arguments.length?(t="function"==typeof a?a:$t(+a),o):t},o.y=function(a){return arguments.length?(n="function"==typeof a?a:$t(+a),o):n},o.defined=function(a){return arguments.length?(e="function"==typeof a?a:$t(!!a),o):e},o.curve=function(a){return arguments.length?(s=a,null!=i&&(r=s(i)),o):s},o.context=function(a){return arguments.length?(null==a?i=r=null:r=s(i=a),o):i},o}().x(s=>s.x).y(s=>s.y).curve(this.curve)(e)}onZoom(e,i){if(this.enableTrackpadSupport&&!e.ctrlKey)return void this.pan(-1*e.deltaX,-1*e.deltaY);const s=1+("in"===i?this.zoomSpeed:-this.zoomSpeed),r=this.zoomLevel*s;if(!(r<=this.minZoomLevel||r>=this.maxZoomLevel)&&this.enableZoom)if(!0===this.panOnZoom&&e){const o=e.clientX,a=e.clientY,l=this.el.nativeElement.querySelector("svg"),c=l.querySelector("g.chart"),h=l.createSVGPoint();h.x=o,h.y=a;const b=h.matrixTransform(c.getScreenCTM().inverse());this.pan(b.x,b.y,!0),this.zoom(s),this.pan(-b.x,-b.y,!0)}else this.zoom(s)}pan(e,i,s=!1){const r=s?1:this.zoomLevel;this.transformationMatrix=ec(this.transformationMatrix,$D(e/r,i/r)),this.updateTransform()}panTo(e,i){null==e||isNaN(e)||null==i||isNaN(i)||(this.transformationMatrix=ec(this.transformationMatrix,$D((-this.panOffsetX-e*this.zoomLevel+this.dims.width/2)/this.zoomLevel,(-this.panOffsetY-i*this.zoomLevel+this.dims.height/2)/this.zoomLevel)),this.updateTransform())}zoom(e){this.transformationMatrix=ec(this.transformationMatrix,function I9(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return L9(n)&&(n=t),{a:t,c:0,e:0,b:0,d:n,f:0}}(e,e)),this.zoomChange.emit(this.zoomLevel),this.updateTransform()}zoomTo(e){this.transformationMatrix.a=isNaN(e)?this.transformationMatrix.a:Number(e),this.transformationMatrix.d=isNaN(e)?this.transformationMatrix.d:Number(e),this.zoomChange.emit(this.zoomLevel),this.updateTransform(),this.update()}onDrag(e){if(!this.draggingEnabled)return;const i=this.draggingNode;this.layout&&"string"!=typeof this.layout&&this.layout.onDrag&&this.layout.onDrag(i,e),i.position.x+=e.movementX/this.zoomLevel,i.position.y+=e.movementY/this.zoomLevel,i.transform=`translate(${i.position.x-i.dimension.width/2}, ${i.position.y-i.dimension.height/2})`;for(const o of this.graph.edges)if((o.target===i.id||o.source===i.id||o.target.id===i.id||o.source.id===i.id)&&this.layout&&"string"!=typeof this.layout){const a=this.layout.updateEdge(this.graph,o),l=a instanceof te?a:ea(a);this.graphSubscription.add(l.subscribe(c=>{this.graph=c,this.redrawEdge(o)}))}this.redrawLines(!1),this.updateMinimap()}redrawEdge(e){const i=this.generateLine(e.points);this.calcDominantBaseline(e),e.oldLine=e.line,e.line=i}updateTransform(){this.transform=function F9(t){return function GD(t){return"matrix("+t.a+","+t.b+","+t.c+","+t.d+","+t.e+","+t.f+")"}(t)}(function R9(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e10;return{a:Math.round(t.a*n)/n,b:Math.round(t.b*n)/n,c:Math.round(t.c*n)/n,d:Math.round(t.d*n)/n,e:Math.round(t.e*n)/n,f:Math.round(t.f*n)/n}}(this.transformationMatrix,100))}onClick(e){this.select.emit(e)}onActivate(e){this.activeEntries.indexOf(e)>-1||(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.indexOf(e);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}getSeriesDomain(){return this.nodes.map(e=>this.groupResultsBy(e)).reduce((e,i)=>-1!==e.indexOf(i)?e:e.concat([i]),[]).sort()}trackLinkBy(e,i){return i.id}trackNodeBy(e,i){return i.id}setColors(){this.colors=new G7(this.scheme,this.seriesDomain,this.customColors)}onMouseMove(e){this.isMouseMoveCalled=!0,(this.isPanning||this.isMinimapPanning)&&this.panningEnabled?this.panWithConstraints(this.panningAxis,e):this.isDragging&&this.draggingEnabled&&this.onDrag(e)}onMouseDown(e){this.isMouseMoveCalled=!1}graphClick(e){this.isMouseMoveCalled||this.clickHandler.emit(e)}onTouchStart(e){this._touchLastX=e.changedTouches[0].clientX,this._touchLastY=e.changedTouches[0].clientY,this.isPanning=!0}onTouchMove(e){if(this.isPanning&&this.panningEnabled){const i=e.changedTouches[0].clientX,s=e.changedTouches[0].clientY,r=i-this._touchLastX,o=s-this._touchLastY;this._touchLastX=i,this._touchLastY=s,this.pan(r,o)}}onTouchEnd(e){this.isPanning=!1}onMouseUp(e){this.isDragging=!1,this.isPanning=!1,this.isMinimapPanning=!1,this.layout&&"string"!=typeof this.layout&&this.layout.onDragEnd&&this.layout.onDragEnd(this.draggingNode,e)}onNodeMouseDown(e,i){!this.draggingEnabled||(this.isDragging=!0,this.draggingNode=i,this.layout&&"string"!=typeof this.layout&&this.layout.onDragStart&&this.layout.onDragStart(i,e))}onMinimapDragMouseDown(){this.isMinimapPanning=!0}onMinimapPanTo(e){this.panTo((e.offsetX-(this.dims.width-(this.graphDims.width+this.minimapOffsetX)/this.minimapScaleCoefficient))*this.minimapScaleCoefficient,(e.offsetY+this.minimapOffsetY/this.minimapScaleCoefficient)*this.minimapScaleCoefficient),this.isMinimapPanning=!0}center(){this.panTo(this.graphDims.width/2,this.graphDims.height/2)}zoomToFit(){let s=Math.min(this.dims.height/this.graphDims.height,this.dims.width/this.graphDims.width,1);s<this.minZoomLevel&&(s=this.minZoomLevel),s>this.maxZoomLevel&&(s=this.maxZoomLevel),s!==this.zoomLevel&&(this.zoomLevel=s,this.updateTransform(),this.zoomChange.emit(this.zoomLevel))}panToNodeId(e){const i=this.graph.nodes.find(s=>s.id===e);!i||this.panTo(i.position.x,i.position.y)}panWithConstraints(e,i){let s=i.movementX,r=i.movementY;switch(this.isMinimapPanning&&(s=-this.minimapScaleCoefficient*s*this.zoomLevel,r=-this.minimapScaleCoefficient*r*this.zoomLevel),e){case ya.Horizontal:this.pan(s,0);break;case ya.Vertical:this.pan(0,r);break;default:this.pan(s,r)}}updateMidpointOnEdge(e,i){if(e&&i)if(i.length%2==1)e.midPoint=i[Math.floor(i.length/2)];else{const s=i[i.length/2],r=i[i.length/2-1];e.midPoint={x:(s.x+r.x)/2,y:(s.y+r.y)/2}}}basicUpdate(){if(this.view)this.width=this.view[0],this.height=this.view[1];else{const e=this.getContainerDims();e&&(this.width=e.width,this.height=e.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 e,i;const s=this.el.nativeElement;if(null!==s.parentNode){const r=s.parentNode.getBoundingClientRect();e=r.width,i=r.height}return e&&i?{width:e,height:i}:null}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){const i=eh(window,"resize").pipe(Vg(200)).subscribe(s=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=i}}return t.\u0275fac=function(e){return new(e||t)(ke(Gt),ke(Pt),ke(As),ke(oE))},t.\u0275cmp=$e({type:t,selectors:[["ngx-graph"]],contentQueries:function(e,i,s){if(1&e&&(Bt(s,m7,5),Bt(s,v7,5),Bt(s,_7,5),Bt(s,y7,5),Bt(s,x7,5)),2&e){let r;ht(r=dt())&&(i.linkTemplate=r.first),ht(r=dt())&&(i.nodeTemplate=r.first),ht(r=dt())&&(i.clusterTemplate=r.first),ht(r=dt())&&(i.defsTemplate=r.first),ht(r=dt())&&(i.miniMapNodeTemplate=r.first)}},viewQuery:function(e,i){if(1&e&&(vi(b7,5),vi(w7,5)),2&e){let s;ht(s=dt())&&(i.nodeElements=s),ht(s=dt())&&(i.linkElements=s)}},hostBindings:function(e,i){1&e&&ye("mousemove",function(r){return i.onMouseMove(r)},!1,Ao)("mousedown",function(r){return i.onMouseDown(r)},!1,Ao)("click",function(r){return i.graphClick(r)},!1,Ao)("touchmove",function(r){return i.onTouchMove(r)},!1,Ao)("mouseup",function(r){return i.onMouseUp(r)},!1,Ao)},inputs:{nodes:"nodes",clusters:"clusters",links:"links",activeEntries:"activeEntries",curve:"curve",draggingEnabled:"draggingEnabled",nodeHeight:"nodeHeight",nodeMaxHeight:"nodeMaxHeight",nodeMinHeight:"nodeMinHeight",nodeWidth:"nodeWidth",nodeMinWidth:"nodeMinWidth",nodeMaxWidth:"nodeMaxWidth",panningEnabled:"panningEnabled",panningAxis:"panningAxis",enableZoom:"enableZoom",zoomSpeed:"zoomSpeed",minZoomLevel:"minZoomLevel",maxZoomLevel:"maxZoomLevel",autoZoom:"autoZoom",panOnZoom:"panOnZoom",animate:"animate",autoCenter:"autoCenter",update$:"update$",center$:"center$",zoomToFit$:"zoomToFit$",panToNode$:"panToNode$",layout:"layout",layoutSettings:"layoutSettings",enableTrackpadSupport:"enableTrackpadSupport",showMiniMap:"showMiniMap",miniMapMaxWidth:"miniMapMaxWidth",miniMapMaxHeight:"miniMapMaxHeight",miniMapPosition:"miniMapPosition",view:"view",scheme:"scheme",customColors:"customColors",animations:"animations",groupResultsBy:"groupResultsBy",zoomLevel:"zoomLevel",panOffsetX:"panOffsetX",panOffsetY:"panOffsetY"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",zoomChange:"zoomChange",clickHandler:"clickHandler"},features:[ut],ngContentSelectors:H7,decls:6,vars:11,consts:[["mouseWheel","",1,"ngx-charts-outer",3,"mouseWheelUp","mouseWheelDown"],[1,"ngx-charts"],["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(e,i){1&e&&(function Qc(t){const n=Se()[16][6];if(!n.projection){const i=n.projection=Va(t?t.length:1,null),s=i.slice();let r=n.child;for(;null!==r;){const o=t?VL(r,t):0;null!==o&&(s[o]?s[o].projectionNext=r:i[o]=r,s[o]=r),r=r.next}}}(),q(0,"div",0),ye("mouseWheelUp",function(r){return i.onZoom(r,"in")})("mouseWheelDown",function(r){return i.onZoom(r,"out")}),ae(),q(1,"svg",1),ue(2,F7,12,12,"g",2),q(3,"clipPath"),Ie(4,"rect"),re(),ue(5,V7,6,15,"g",3),re()()),2&e&&(vt("width",i.width,"px"),j("@animationState","active")("@.disabled",!i.animations),G(1),me("width",i.width)("height",i.height),G(1),j("ngIf",i.initialized&&i.graph),G(1),me("id",i.minimapClipPathId),G(1),me("width",i.graphDims.width/i.minimapScaleCoefficient)("height",i.graphDims.height/i.minimapScaleCoefficient),G(1),j("ngIf",i.showMiniMap))},directives:[J7,yt,Zp,Mt],styles:[".minimap .minimap-background{fill:#0000001a}.minimap .minimap-drag{fill:#0003;stroke:#fff;stroke-width:1px;stroke-dasharray:2px;stroke-dashoffset:2px;cursor:pointer}.minimap .minimap-drag.panning{fill:#0000004d}.minimap .minimap-nodes{opacity:.5;pointer-events:none}.graph{-webkit-user-select:none;user-select:none}.graph .edge{stroke:#666;fill:none}.graph .edge .edge-label{stroke:none;font-size:12px;fill:#251e1e}.graph .panning-rect{fill:#0000;cursor:move}.graph .node-group.old-node{transition:transform .5s ease-in-out}.graph .node-group .node:focus{outline:none}.graph .cluster rect{opacity:.2}\n"],encapsulation:2,data:{animation:[zn("animationState",[En(":enter",[lt({opacity:0}),Dn("500ms 100ms",lt({opacity:1}))])])]},changeDetection:0}),Pg([j7(500)],t.prototype,"updateMinimap",null),t})(),eU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ft({type:t}),t.\u0275inj=Lt({providers:[oE],imports:[[mr]]}),t})(),tU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ft({type:t}),t.\u0275inj=Lt({imports:[[mr],eU]}),t})();var aE=Zn(2289);class nU{constructor(n,e,i,s,r){this.element=n,this.newWidth=e,this.newHeight=i,this.oldWidth=s,this.oldHeight=r}}let iU=(()=>{class t{constructor(e){this.element=e,this.resized=new _e}ngOnInit(){aE.ResizeSensor&&(this.resizeSensor=new aE.ResizeSensor(this.element.nativeElement,()=>this.onResized()))}ngOnDestroy(){this.resizeSensor&&this.resizeSensor.detach()}onResized(){const e=this.element.nativeElement.clientWidth,i=this.element.nativeElement.clientHeight;if(e===this.oldWidth&&i===this.oldHeight)return;const s=new nU(this.element,e,i,this.oldWidth,this.oldHeight);this.oldWidth=this.element.nativeElement.clientWidth,this.oldHeight=this.element.nativeElement.clientHeight,this.resized.emit(s)}}return t.\u0275fac=function(e){return new(e||t)(ke(Gt))},t.\u0275dir=bn({type:t,selectors:[["","resized",""]],outputs:{resized:"resized"}}),t})(),sU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ft({type:t}),t.\u0275inj=Lt({imports:[[]]}),t})();function lE(t,n=0){return function oU(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):n}function zh(t){return Array.isArray(t)?t:[t]}function kn(t){return null==t?"":"string"==typeof t?t:`${t}px`}function jh(t){return t instanceof Gt?t.nativeElement:t}new class lU extends us{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,s=-1,r=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++s<r&&(n=e.shift()));if(this.active=!1,i){for(;++s<r&&(n=e.shift());)n.unsubscribe();throw i}}}(class aU extends Lu{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=requestAnimationFrame(()=>n.flush(null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(cancelAnimationFrame(e),n.scheduled=void 0)}});let uU=1;const hU=Promise.resolve(),Gh={};function cE(t){return t in Gh&&(delete Gh[t],!0)}const uE={setImmediate(t){const n=uU++;return Gh[n]=!0,hU.then(()=>cE(n)&&t()),n},clearImmediate(t){cE(t)}};new class fU extends us{flush(n){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,s=-1,r=e.length;n=n||e.shift();do{if(i=n.execute(n.state,n.delay))break}while(++s<r&&(n=e.shift()));if(this.active=!1,i){for(;++s<r&&(n=e.shift());)n.unsubscribe();throw i}}}(class dU extends Lu{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n.scheduled||(n.scheduled=uE.setImmediate(n.flush.bind(n,null))))}recycleAsyncId(n,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(n,e,i);0===n.actions.length&&(uE.clearImmediate(e),n.scheduled=void 0)}});class mU{constructor(n){this.durationSelector=n}call(n,e){return e.subscribe(new vU(n,this.durationSelector))}}class vU extends Ct{constructor(n,e){super(n),this.durationSelector=e,this.hasValue=!1}_next(n){if(this.value=n,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:s}=this;e=s(n)}catch(s){return this.destination.error(s)}const i=Qi(e,new wt(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:n,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(n))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function hE(t){return!x(t)&&t-parseFloat(t)+1>=0}function yU(t){const{index:n,period:e,subscriber:i}=t;if(i.next(n),!i.closed){if(-1===e)return i.complete();t.index=n+1,this.schedule(t,e)}}function dE(t,n=Bg){return function gU(t){return function(e){return e.lift(new mU(t))}}(()=>function _U(t=0,n,e){let i=-1;return hE(n)?i=Number(n)<1?1:Number(n):oe(n)&&(e=n),oe(e)||(e=Bg),new te(s=>{const r=hE(t)?t:+t-e.now();return e.schedule(yU,r,{index:0,period:i,subscriber:s})})}(t,n))}let sv;try{sv="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(t){sv=!1}let nc,oo,rv,gs=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function h2(t){return t===fw}(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&&!sv)&&"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)(De(Cp))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function $h(t){return function xU(){if(null==nc&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>nc=!0}))}finally{nc=nc||!1}return nc}()?t:!!t.capture}function bU(){if(null==oo){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return oo=!1,oo;if("scrollBehavior"in document.documentElement.style)oo=!0;else{const t=Element.prototype.scrollTo;oo=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return oo}function ao(t){return t.composedPath?t.composedPath()[0]:t.target}function ov(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const TU=new et("cdk-dir-doc",{providedIn:"root",factory:function DU(){return Nd(Rt)}}),EU=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let pE=(()=>{class t{constructor(e){if(this.value="ltr",this.change=new _e,e){const s=e.documentElement?e.documentElement.dir:null;this.value=function SU(t){const n=(null==t?void 0:t.toLowerCase())||"";return"auto"===n&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?EU.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((e.body?e.body.dir:null)||s||"ltr")}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(De(TU,8))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ic=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ft({type:t}),t.\u0275inj=Lt({}),t})(),gE=(()=>{class t{constructor(e,i,s){this._ngZone=e,this._platform=i,this._scrolled=new $,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=s}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new te(i=>{this._globalSubscription||this._addGlobalListener();const s=e>0?this._scrolled.pipe(dE(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):ea()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const s=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(zD(r=>!r||s.indexOf(r)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((s,r)=>{this._scrollableContainsElement(r,e)&&i.push(r)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let s=jh(i),r=e.getElementRef().nativeElement;do{if(s==r)return!0}while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>eh(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)(De(Pt),De(gs),De(Rt,8))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),mE=(()=>{class t{constructor(e,i,s){this._platform=e,this._change=new $,this._changeListener=r=>{this._change.next(r)},this._document=s,i.runOutsideAngular(()=>{if(e.isBrowser){const r=this._getWindow();r.addEventListener("resize",this._changeListener),r.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:s}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+s,right:e.left+i,height:s,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),s=e.documentElement,r=s.getBoundingClientRect();return{top:-r.top||e.body.scrollTop||i.scrollY||s.scrollTop||0,left:-r.left||e.body.scrollLeft||i.scrollX||s.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(dE(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(De(gs),De(Pt),De(Rt,8))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),av=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ft({type:t}),t.\u0275inj=Lt({}),t})(),vE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ft({type:t}),t.\u0275inj=Lt({imports:[[ic,av],ic,av]}),t})();function ms(t){return n=>n.lift(new kU(t))}class kU{constructor(n){this.notifier=n}call(n,e){const i=new LU(n),s=Qi(this.notifier,new wt(i));return s&&!i.seenValue?(i.add(s),e.subscribe(i)):i}}class LU extends Ct{constructor(n){super(n),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}const _E=bU();class IU{constructor(n,e){this._viewportRuler=n,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=kn(-this._previousScrollPosition.left),n.style.top=kn(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const n=this._document.documentElement,i=n.style,s=this._document.body.style,r=i.scrollBehavior||"",o=s.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),_E&&(i.scrollBehavior=s.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),_E&&(i.scrollBehavior=r,s.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class OU{constructor(n,e,i,s){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=s,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(n){this._overlayRef=n}enable(){if(this._scrollSubscription)return;const n=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class yE{enable(){}disable(){}attach(){}}function lv(t,n){return n.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function xE(t,n){return n.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class FU{constructor(n,e,i,s){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=s,this._scrollSubscription=null}attach(n){this._overlayRef=n}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:s}=this._viewportRuler.getViewportSize();lv(e,[{width:i,height:s,bottom:s,right:i,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 PU=(()=>{class t{constructor(e,i,s,r){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=s,this.noop=()=>new yE,this.close=o=>new OU(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new IU(this._viewportRuler,this._document),this.reposition=o=>new FU(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=r}}return t.\u0275fac=function(e){return new(e||t)(De(gE),De(mE),De(Pt),De(Rt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class NU{constructor(n){if(this.scrollStrategy=new yE,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,n){const e=Object.keys(n);for(const i of e)void 0!==n[i]&&(this[i]=n[i])}}}class RU{constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}}class BU{constructor(n,e,i,s,r,o,a,l,c){this._portalOutlet=n,this._host=e,this._pane=i,this._config=s,this._ngZone=r,this._keyboardDispatcher=o,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new $,this._attachments=new $,this._detachments=new $,this._locationChanges=m.EMPTY,this._backdropClickHandler=h=>this._backdropClick.next(h),this._backdropTransitionendHandler=h=>{this._disposeBackdrop(h.target)},this._keydownEvents=new $,this._outsidePointerEvents=new $,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Bh(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._locationChanges=this._location.subscribe(()=>this.dispose())),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 n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){var n;const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(n=this._host)||void 0===n||n.remove(),this._previousHostParent=this._pane=this._host=null,e&&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(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config=Object.assign(Object.assign({},this._config),n),this._updateElementSize()}setDirection(n){this._config=Object.assign(Object.assign({},this._config),{direction:n}),this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){const n=this._config.direction;return n?"string"==typeof n?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const n=this._pane.style;n.width=kn(this._config.width),n.height=kn(this._config.height),n.minWidth=kn(this._config.minWidth),n.minHeight=kn(this._config.minHeight),n.maxWidth=kn(this._config.maxWidth),n.maxHeight=kn(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){const n="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(n)})}):this._backdropElement.classList.add(n)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const n=this._backdropElement;!n||(n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{n.addEventListener("transitionend",this._backdropTransitionendHandler)}),n.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(n)},500)))}_toggleClasses(n,e,i){const s=zh(e||[]).filter(r=>!!r);s.length&&(i?n.classList.add(...s):n.classList.remove(...s))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const n=this._ngZone.onStable.pipe(ms(Ea(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._host.remove()),n.unsubscribe())})})}_disposeScrollStrategy(){const n=this._scrollStrategy;n&&(n.disable(),n.detach&&n.detach())}_disposeBackdrop(n){n&&(n.removeEventListener("click",this._backdropClickHandler),n.removeEventListener("transitionend",this._backdropTransitionendHandler),n.remove(),this._backdropElement===n&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}let bE=(()=>{class t{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||ov()){const s=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;r<s.length;r++)s[r].remove()}const i=this._document.createElement("div");i.classList.add(e),ov()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return t.\u0275fac=function(e){return new(e||t)(De(Rt),De(gs))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const wE="cdk-overlay-connected-position-bounding-box",VU=/([A-Za-z%]+)$/;class HU{constructor(n,e,i,s,r){this._viewportRuler=e,this._document=i,this._platform=s,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 $,this._resizeSubscription=m.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(n)}get positions(){return this._preferredPositions}attach(n){this._validatePositions(),n.hostElement.classList.add(wE),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.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(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const n=this._originRect,e=this._overlayRect,i=this._viewportRect,s=this._containerRect,r=[];let o;for(let a of this._preferredPositions){let l=this._getOriginPoint(n,s,a),c=this._getOverlayPoint(l,e,a),h=this._getOverlayFit(c,e,i,a);if(h.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(h,c,i)?r.push({position:a,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!o||o.overlayFit.visibleArea<h.visibleArea)&&(o={overlayFit:h,overlayPoint:c,originPoint:l,position:a,overlayRect:e})}if(r.length){let a=null,l=-1;for(const c of r){const h=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);h>l&&(l=h,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&lo(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(wE),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const n=this._lastPosition;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e)}else this.apply()}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,-1===n.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}_getOriginPoint(n,e,i){let s,r;if("center"==i.originX)s=n.left+n.width/2;else{const o=this._isRtl()?n.right:n.left,a=this._isRtl()?n.left:n.right;s="start"==i.originX?o:a}return e.left<0&&(s-=e.left),r="center"==i.originY?n.top+n.height/2:"top"==i.originY?n.top:n.bottom,e.top<0&&(r-=e.top),{x:s,y:r}}_getOverlayPoint(n,e,i){let s,r;return s="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:n.x+s,y:n.y+r}}_getOverlayFit(n,e,i,s){const r=TE(e);let{x:o,y:a}=n,l=this._getOffset(s,"x"),c=this._getOffset(s,"y");l&&(o+=l),c&&(a+=c);let T=0-a,M=a+r.height-i.height,I=this._subtractOverflows(r.width,0-o,o+r.width-i.width),B=this._subtractOverflows(r.height,T,M),P=I*B;return{visibleArea:P,isCompletelyWithinViewport:r.width*r.height===P,fitsInViewportVertically:B===r.height,fitsInViewportHorizontally:I==r.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){const s=i.bottom-e.y,r=i.right-e.x,o=CE(this._overlayRef.getConfig().minHeight),a=CE(this._overlayRef.getConfig().minWidth),c=n.fitsInViewportHorizontally||null!=a&&a<=r;return(n.fitsInViewportVertically||null!=o&&o<=s)&&c}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};const s=TE(e),r=this._viewportRect,o=Math.max(n.x+s.width-r.width,0),a=Math.max(n.y+s.height-r.height,0),l=Math.max(r.top-i.top-n.y,0),c=Math.max(r.left-i.left-n.x,0);let h=0,b=0;return h=s.width<=r.width?c||-o:n.x<this._viewportMargin?r.left-i.left-n.x:0,b=s.height<=r.height?l||-a:n.y<this._viewportMargin?r.top-i.top-n.y:0,this._previousPushAmount={x:h,y:b},{x:n.x+h,y:n.y+b}}_applyPosition(n,e){if(this._setTransformOrigin(n),this._setOverlayElementStyles(e,n),this._setBoundingBoxStyles(e,n),n.panelClass&&this._addPanelClasses(n.panelClass),this._lastPosition=n,this._positionChanges.observers.length){const i=this._getScrollVisibility(),s=new RU(n,i);this._positionChanges.next(s)}this._isInitialRender=!1}_setTransformOrigin(n){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,s=n.overlayY;i="center"===n.overlayX?"center":this._isRtl()?"start"===n.overlayX?"right":"left":"start"===n.overlayX?"left":"right";for(let r=0;r<e.length;r++)e[r].style.transformOrigin=`${i} ${s}`}_calculateBoundingBoxRect(n,e){const i=this._viewportRect,s=this._isRtl();let r,o,a,h,b,T;if("top"===e.overlayY)o=n.y,r=i.height-o+this._viewportMargin;else if("bottom"===e.overlayY)a=i.height-n.y+2*this._viewportMargin,r=i.height-a+this._viewportMargin;else{const M=Math.min(i.bottom-n.y+i.top,n.y),I=this._lastBoundingBoxSize.height;r=2*M,o=n.y-M,r>I&&!this._isInitialRender&&!this._growAfterOpen&&(o=n.y-I/2)}if("end"===e.overlayX&&!s||"start"===e.overlayX&&s)T=i.width-n.x+this._viewportMargin,h=n.x-this._viewportMargin;else if("start"===e.overlayX&&!s||"end"===e.overlayX&&s)b=n.x,h=i.right-n.x;else{const M=Math.min(i.right-n.x+i.left,n.x),I=this._lastBoundingBoxSize.width;h=2*M,b=n.x-M,h>I&&!this._isInitialRender&&!this._growAfterOpen&&(b=n.x-I/2)}return{top:o,left:b,bottom:a,right:T,width:h,height:r}}_setBoundingBoxStyles(n,e){const i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const s={};if(this._hasExactPosition())s.top=s.left="0",s.bottom=s.right=s.maxHeight=s.maxWidth="",s.width=s.height="100%";else{const r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;s.height=kn(i.height),s.top=kn(i.top),s.bottom=kn(i.bottom),s.width=kn(i.width),s.left=kn(i.left),s.right=kn(i.right),s.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",s.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(s.maxHeight=kn(r)),o&&(s.maxWidth=kn(o))}this._lastBoundingBoxSize=i,lo(this._boundingBox.style,s)}_resetBoundingBoxStyles(){lo(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){lo(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){const i={},s=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(s){const h=this._viewportRuler.getViewportScrollPosition();lo(i,this._getExactOverlayY(e,n,h)),lo(i,this._getExactOverlayX(e,n,h))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),o.maxHeight&&(s?i.maxHeight=kn(o.maxHeight):r&&(i.maxHeight="")),o.maxWidth&&(s?i.maxWidth=kn(o.maxWidth):r&&(i.maxWidth="")),lo(this._pane.style,i)}_getExactOverlayY(n,e,i){let s={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),"bottom"===n.overlayY?s.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":s.top=kn(r.y),s}_getExactOverlayX(n,e,i){let o,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),o=this._isRtl()?"end"===n.overlayX?"left":"right":"end"===n.overlayX?"right":"left","right"===o?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=kn(r.x),s}_getScrollVisibility(){const n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(s=>s.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:xE(n,i),isOriginOutsideView:lv(n,i),isOverlayClipped:xE(e,i),isOverlayOutsideView:lv(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,s)=>i-Math.max(s,0),n)}_getNarrowedViewportRect(){const n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,e){return"x"===e?null==n.offsetX?this._offsetX:n.offsetX:null==n.offsetY?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&zh(n).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){const n=this._origin;if(n instanceof Gt)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();const e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}}function lo(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function CE(t){if("number"!=typeof t&&null!=t){const[n,e]=t.split(VU);return e&&"px"!==e?null:parseFloat(n)}return t||null}function TE(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}const DE="cdk-global-overlay-wrapper";class zU{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(n){const e=n.getConfig();this._overlayRef=n,this._width&&!e.width&&n.updateSize({width:this._width}),this._height&&!e.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(DE),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._rightOffset="",this._leftOffset=n,this._justifyContent="flex-start",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._leftOffset="",this._rightOffset=n,this._justifyContent="flex-end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._justifyContent="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:s,height:r,maxWidth:o,maxHeight:a}=i,l=!("100%"!==s&&"100vw"!==s||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);n.position=this._cssPosition,n.marginLeft=l?"0":this._leftOffset,n.marginTop=c?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=this._rightOffset,l?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=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(DE),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}}let jU=(()=>{class t{constructor(e,i,s,r){this._viewportRuler=e,this._document=i,this._platform=s,this._overlayContainer=r}global(){return new zU}flexibleConnectedTo(e){return new HU(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(De(mE),De(Rt),De(gs),De(bE))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),EE=(()=>{class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(De(Rt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),GU=(()=>{class t extends EE{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=s=>{const r=this._attachedOverlays;for(let o=r.length-1;o>-1;o--)if(r[o]._keydownEvents.observers.length>0){const a=r[o]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(s)):a.next(s);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):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)(De(Rt),De(Pt,8))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$U=(()=>{class t extends EE{constructor(e,i,s){super(e),this._platform=i,this._ngZone=s,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=ao(r)},this._clickListener=r=>{const o=ao(r),a="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:o;this._pointerDownEventTarget=null;const l=this._attachedOverlays.slice();for(let c=l.length-1;c>-1;c--){const h=l[c];if(h._outsidePointerEvents.observers.length<1||!h.hasAttached())continue;if(h.overlayElement.contains(o)||h.overlayElement.contains(a))break;const b=h._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>b.next(r)):b.next(r)}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return t.\u0275fac=function(e){return new(e||t)(De(Rt),De(gs),De(Pt,8))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),UU=0,Wh=(()=>{class t{constructor(e,i,s,r,o,a,l,c,h,b,T){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=s,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=a,this._ngZone=l,this._document=c,this._directionality=h,this._location=b,this._outsideClickDispatcher=T}create(e){const i=this._createHostElement(),s=this._createPaneElement(i),r=this._createPortalOutlet(s),o=new NU(e);return o.direction=o.direction||this._directionality.value,new BU(r,i,s,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+UU++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(gl)),new SC(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(De(PU),De(bE),De(pr),De(jU),De(GU),De(Jn),De(Pt),De(Rt),De(pE),De(ew),De($U))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac}),t})();const XU={provide:new et("cdk-connected-overlay-scroll-strategy"),deps:[Wh],useFactory:function YU(t){return()=>t.scrollStrategies.reposition()}};let ZU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ft({type:t}),t.\u0275inj=Lt({providers:[Wh,XU],imports:[[ic,CB,vE],vE]}),t})();class KU extends ${constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return e&&!e.closed&&n.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new N;return this._value}next(n){super.next(this._value=n)}}function SE(t){return n=>n.lift(new sW(t))}class sW{constructor(n){this.total=n}call(n,e){return e.subscribe(new rW(n,this.total))}}class rW extends k{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){++this.count>this.total&&this.destination.next(n)}}class aW{constructor(n,e){this.compare=n,this.keySelector=e}call(n,e){return e.subscribe(new lW(n,this.compare,this.keySelector))}}class lW extends k{constructor(n,e,i){super(n),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(n,e){return n===e}_next(n){let e;try{const{keySelector:s}=this;e=s?s(n):n}catch(s){return this.destination.error(s)}let i=!1;if(this.hasKey)try{const{compare:s}=this;i=s(this.key,e)}catch(s){return this.destination.error(s)}else this.hasKey=!0;i||(this.key=e,this.destination.next(n))}}let cW=(()=>{class t{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),uW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ft({type:t}),t.\u0275inj=Lt({providers:[cW]}),t})();function Yh(t,n){return(t.getAttribute(n)||"").match(/\S+/g)||[]}const ME="cdk-describedby-message",Xh="cdk-describedby-host";let kE=0,fW=(()=>{class t{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+kE++,this._document=e}describe(e,i,s){if(!this._canBeDescribed(e,i))return;const r=cv(i,s);"string"!=typeof i?(LE(i),this._messageRegistry.set(r,{messageElement:i,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(i,s),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,i,s){var r;if(!i||!this._isElementNode(e))return;const o=cv(i,s);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),"string"==typeof i){const a=this._messageRegistry.get(o);a&&0===a.referenceCount&&this._deleteMessageElement(o)}0===(null===(r=this._messagesContainer)||void 0===r?void 0:r.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var e;const i=this._document.querySelectorAll(`[${Xh}="${this._id}"]`);for(let s=0;s<i.length;s++)this._removeCdkDescribedByReferenceIds(i[s]),i[s].removeAttribute(Xh);null===(e=this._messagesContainer)||void 0===e||e.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(e,i){const s=this._document.createElement("div");LE(s),s.textContent=e,i&&s.setAttribute("role",i),this._createMessagesContainer(),this._messagesContainer.appendChild(s),this._messageRegistry.set(cv(e,i),{messageElement:s,referenceCount:0})}_deleteMessageElement(e){var i,s;null===(s=null===(i=this._messageRegistry.get(e))||void 0===i?void 0:i.messageElement)||void 0===s||s.remove(),this._messageRegistry.delete(e)}_createMessagesContainer(){if(this._messagesContainer)return;const e="cdk-describedby-message-container",i=this._document.querySelectorAll(`.${e}[platform="server"]`);for(let r=0;r<i.length;r++)i[r].remove();const s=this._document.createElement("div");s.style.visibility="hidden",s.classList.add(e),s.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&s.setAttribute("platform","server"),this._document.body.appendChild(s),this._messagesContainer=s}_removeCdkDescribedByReferenceIds(e){const i=Yh(e,"aria-describedby").filter(s=>0!=s.indexOf(ME));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const s=this._messageRegistry.get(i);(function hW(t,n,e){const i=Yh(t,n);i.some(s=>s.trim()==e.trim())||(i.push(e.trim()),t.setAttribute(n,i.join(" ")))})(e,"aria-describedby",s.messageElement.id),e.setAttribute(Xh,this._id),s.referenceCount++}_removeMessageReference(e,i){const s=this._messageRegistry.get(i);s.referenceCount--,function dW(t,n,e){const s=Yh(t,n).filter(r=>r!=e.trim());s.length?t.setAttribute(n,s.join(" ")):t.removeAttribute(n)}(e,"aria-describedby",s.messageElement.id),e.removeAttribute(Xh)}_isElementDescribedByMessage(e,i){const s=Yh(e,"aria-describedby"),r=this._messageRegistry.get(i),o=r&&r.messageElement.id;return!!o&&-1!=s.indexOf(o)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const s=null==i?"":`${i}`.trim(),r=e.getAttribute("aria-label");return!(!s||r&&r.trim()===s)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(De(Rt),De(gs))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function cv(t,n){return"string"==typeof t?`${n||""}/${t}`:t}function LE(t){t.id||(t.id=`${ME}-${kE++}`)}const bW=new et("cdk-input-modality-detector-options"),wW={ignoreKeys:[18,17,224,91,16]},Ta=$h({passive:!0,capture:!0});let CW=(()=>{class t{constructor(e,i,s,r){this._platform=e,this._mostRecentTarget=null,this._modality=new KU(null),this._lastTouchMs=0,this._onKeydown=o=>{var a,l;(null===(l=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)||void 0===l?void 0:l.some(c=>c===o.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=ao(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(function yW(t){return 0===t.buttons||0===t.offsetX&&0===t.offsetY}(o)?"keyboard":"mouse"),this._mostRecentTarget=ao(o))},this._onTouchstart=o=>{!function xW(t){const n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}(o)?(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=ao(o)):this._modality.next("keyboard")},this._options=Object.assign(Object.assign({},wW),r),this.modalityDetected=this._modality.pipe(SE(1)),this.modalityChanged=this.modalityDetected.pipe(function oW(t,n){return e=>e.lift(new aW(t,n))}()),e.isBrowser&&i.runOutsideAngular(()=>{s.addEventListener("keydown",this._onKeydown,Ta),s.addEventListener("mousedown",this._onMousedown,Ta),s.addEventListener("touchstart",this._onTouchstart,Ta)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ta),document.removeEventListener("mousedown",this._onMousedown,Ta),document.removeEventListener("touchstart",this._onTouchstart,Ta))}}return t.\u0275fac=function(e){return new(e||t)(De(gs),De(Pt),De(Rt),De(bW,8))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const DW=new et("cdk-focus-monitor-default-options"),Zh=$h({passive:!0,capture:!0});let EW=(()=>{class t{constructor(e,i,s,r,o){this._ngZone=e,this._platform=i,this._inputModalityDetector=s,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new $,this._rootNodeFocusAndBlurListener=a=>{const l=ao(a),c="focus"===a.type?this._onFocus:this._onBlur;for(let h=l;h;h=h.parentElement)c.call(this,a,h)},this._document=r,this._detectionMode=(null==o?void 0:o.detectionMode)||0}monitor(e,i=!1){const s=jh(e);if(!this._platform.isBrowser||1!==s.nodeType)return ea(null);const r=function CU(t){if(function wU(){if(null==rv){const t="undefined"!=typeof document?document.head:null;rv=!(!t||!t.createShadowRoot&&!t.attachShadow)}return rv}()){const n=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}(s)||this._getDocument(),o=this._elementInfo.get(s);if(o)return i&&(o.checkChildren=!0),o.subject;const a={checkChildren:i,subject:new $,rootNode:r};return this._elementInfo.set(s,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=jh(e),s=this._elementInfo.get(i);s&&(s.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(s))}focusVia(e,i,s){const r=jh(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof r.focus&&r.focus(s))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const s=this._elementInfo.get(i),r=ao(e);!s||!s.checkChildren&&i!==r||this._originChanged(i,this._getFocusOrigin(r),s)}_onBlur(e,i){const s=this._elementInfo.get(i);!s||s.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(s.subject,null))}_emitOrigin(e,i){this._ngZone.run(()=>e.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,s=this._rootNodeFocusListenerCount.get(i)||0;s||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Zh),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Zh)}),this._rootNodeFocusListenerCount.set(i,s+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ms(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const s=this._rootNodeFocusListenerCount.get(i);s>1?this._rootNodeFocusListenerCount.set(i,s-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Zh),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Zh),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,s){this._setClasses(e,i),this._emitOrigin(s.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((s,r)=>{(r===e||s.checkChildren&&r.contains(e))&&i.push([r,s])}),i}}return t.\u0275fac=function(e){return new(e||t)(De(Pt),De(gs),De(CW),De(Rt,8),De(DW,8))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const FE="cdk-high-contrast-black-on-white",PE="cdk-high-contrast-white-on-black",uv="cdk-high-contrast-active";let NE=(()=>{class t{constructor(e,i){this._platform=e,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,s=i&&i.getComputedStyle?i.getComputedStyle(e):null,r=(s&&s.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(uv),e.remove(FE),e.remove(PE),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(e.add(uv),e.add(FE)):2===i&&(e.add(uv),e.add(PE))}}}return t.\u0275fac=function(e){return new(e||t)(De(gs),De(Rt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),SW=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(De(NE))},t.\u0275mod=Ft({type:t}),t.\u0275inj=Lt({imports:[[uW]]}),t})();const MW=new et("mat-sanity-checks",{providedIn:"root",factory:function AW(){return!0}});let VE=(()=>{class t{constructor(e,i,s){this._sanityChecks=i,this._document=s,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!ov()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return t.\u0275fac=function(e){return new(e||t)(De(NE),De(MW,8),De(Rt))},t.\u0275mod=Ft({type:t}),t.\u0275inj=Lt({imports:[[ic],ic]}),t})();class PW extends k{notifyNext(n,e,i,s,r){this.destination.next(e)}notifyError(n,e){this.destination.error(n)}notifyComplete(n){this.destination.complete()}}class NW extends k{constructor(n,e,i){super(),this.parent=n,this.outerValue=e,this.outerIndex=i,this.index=0}_next(n){this.parent.notifyNext(this.outerValue,n,this.outerIndex,this.index++,this)}_error(n){this.parent.notifyError(n,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function RW(t,n,e,i,s=new NW(t,e,i)){if(!s.closed)return n instanceof te?n.subscribe(s):Te(n)(s)}const GE={};class VW{constructor(n){this.resultSelector=n}call(n,e){return e.subscribe(new HW(n,this.resultSelector))}}class HW extends PW{constructor(n,e){super(n),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(n){this.values.push(GE),this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i<e;i++)this.add(RW(this,n[i],void 0,i))}}notifyComplete(n){0==(this.active-=1)&&this.destination.complete()}notifyNext(n,e,i){const s=this.values,o=this.toRespond?s[i]===GE?--this.toRespond:this.toRespond:0;s[i]=e,0===o&&(this.resultSelector?this._tryResultSelector(s):this.destination.next(s.slice()))}_tryResultSelector(n){let e;try{e=this.resultSelector.apply(this,n)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}function dv(...t){return function zW(){return Er(1)}()(ea(...t))}function jW(...t){const n=t[t.length-1];return oe(n)?(t.pop(),e=>dv(t,e,n)):e=>dv(t,e)}const $E=new Set;let Da,GW=(()=>{class t{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):UW}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function $W(t){if(!$E.has(t))try{Da||(Da=document.createElement("style"),Da.setAttribute("type","text/css"),document.head.appendChild(Da)),Da.sheet&&(Da.sheet.insertRule(`@media ${t} {body{ }}`,0),$E.add(t))}catch(n){console.error(n)}}(e),this._matchMedia(e)}}return t.\u0275fac=function(e){return new(e||t)(De(gs))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function UW(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let WW=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new $}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return UE(zh(e)).some(s=>this._registerQuery(s).mql.matches)}observe(e){let r=function BW(...t){let n,e;return oe(t[t.length-1])&&(e=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&x(t[0])&&(t=t[0]),ir(t,e).lift(new VW(n))}(UE(zh(e)).map(o=>this._registerQuery(o).observable));return r=dv(r.pipe(Bh(1)),r.pipe(SE(1),Vg(0))),r.pipe(de(o=>{const a={matches:!1,breakpoints:{}};return o.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),r={observable:new te(o=>{const a=l=>this._zone.run(()=>o.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(jW(i),de(({matches:o})=>({query:e,matches:o})),ms(this._destroySubject)),mql:i};return this._queries.set(e,r),r}}return t.\u0275fac=function(e){return new(e||t)(De(GW),De(Pt))},t.\u0275prov=Qe({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function UE(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}const XW=["tooltip"],WE="tooltip-panel",YE=$h({passive:!0}),XE=new et("mat-tooltip-scroll-strategy"),JW={provide:XE,deps:[Wh],useFactory:function QW(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},qW=new et("mat-tooltip-default-options",{providedIn:"root",factory:function eY(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let tY=(()=>{class t{constructor(e,i,s,r,o,a,l,c,h,b,T,M){this._overlay=e,this._elementRef=i,this._scrollDispatcher=s,this._viewContainerRef=r,this._ngZone=o,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=b,this._defaultOptions=T,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new $,this._scrollStrategy=h,this._document=M,T&&(T.position&&(this.position=T.position),T.touchGestures&&(this.touchGestures=T.touchGestures)),b.change.pipe(ms(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){var i;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=function rU(t){return null!=t&&"false"!=`${t}`}(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=lE(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=lE(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).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,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(ms(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,s])=>{e.removeEventListener(i,s,YE)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const i=this._createOverlay();this._detach(),this._portal=this._portal||new Ig(this._tooltipComponent,this._viewContainerRef);const s=this._tooltipInstance=i.attach(this._portal).instance;s._triggerElement=this._elementRef.nativeElement,s._mouseLeaveHideDelay=this._hideDelay,s.afterHidden().pipe(ms(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),s.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var e;if(this._overlayRef)return this._overlayRef;const i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),s=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return s.positionChanges.pipe(ms(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:s,panelClass:`${this._cssClassPrefix}-${WE}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(ms(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(ms(this._destroyed)).subscribe(()=>{var r;return null===(r=this._tooltipInstance)||void 0===r?void 0:r._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(ms(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!function iW(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}(r)&&(r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),(null===(e=this._defaultOptions)||void 0===e?void 0:e.disableTooltipInteractivity)&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const i=e.getConfig().positionStrategy,s=this._getOrigin(),r=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},s.main),r.main)),this._addOffset(Object.assign(Object.assign({},s.fallback),r.fallback))])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let s;"above"==i||"below"==i?s={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?s={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(s={originX:"end",originY:"center"});const{x:r,y:o}=this._invertPosition(s.originX,s.originY);return{main:s,fallback:{originX:r,originY:o}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let s;"above"==i?s={overlayX:"center",overlayY:"bottom"}:"below"==i?s={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?s={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(s={overlayX:"start",overlayY:"center"});const{x:r,y:o}=this._invertPosition(s.overlayX,s.overlayY);return{main:s,fallback:{overlayX:r,overlayY:o}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Bh(1),ms(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:s,originY:r}=e;let o;if(o="center"===i?this._dir&&"rtl"===this._dir.value?"end"===s?"left":"right":"start"===s?"left":"right":"bottom"===i&&"top"===r?"above":"below",o!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${WE}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+o)}this._currentPosition=o}}_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 e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{var s;const r=i.relatedTarget;(!r||!(null===(s=this._overlayRef)||void 0===s?void 0:s.overlayElement.contains(r)))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,s])=>{this._elementRef.nativeElement.addEventListener(i,s,YE)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),s=this._elementRef.nativeElement;i!==s&&!s.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,s=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(s.userSelect=s.msUserSelect=s.webkitUserSelect=s.MozUserSelect="none"),("on"===e||!i.draggable)&&(s.webkitUserDrag="none"),s.touchAction="none",s.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){!function bx(){throw new Error("invalid")}()},t.\u0275dir=bn({type:t,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),nY=(()=>{class t extends tY{constructor(e,i,s,r,o,a,l,c,h,b,T,M){super(e,i,s,r,o,a,l,c,h,b,T,M),this._tooltipComponent=sY}}return t.\u0275fac=function(e){return new(e||t)(ke(Wh),ke(Gt),ke(gE),ke(ji),ke(Pt),ke(gs),ke(fW),ke(EW),ke(XE),ke(pE,8),ke(qW,8),ke(Rt))},t.\u0275dir=bn({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[qt]}),t})(),iY=(()=>{class t{constructor(e,i){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new $,this._animationsDisabled="NoopAnimations"===i}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const i=this._tooltip.nativeElement,s=this._showAnimation,r=this._hideAnimation;if(i.classList.remove(e?r:s),i.classList.add(e?s:r),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const o=getComputedStyle(i);("0s"===o.getPropertyValue("animation-duration")||"none"===o.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return t.\u0275fac=function(e){return new(e||t)(ke(As),ke(qu,8))},t.\u0275dir=bn({type:t}),t})(),sY=(()=>{class t extends iY{constructor(e,i,s){super(e,s),this._breakpointObserver=i,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return t.\u0275fac=function(e){return new(e||t)(ke(As),ke(WW),ke(qu,8))},t.\u0275cmp=$e({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(e,i){if(1&e&&vi(XW,7),2&e){let s;ht(s=dt())&&(i._tooltip=s.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){1&e&&ye("mouseleave",function(r){return i._handleMouseLeave(r)}),2&e&&vt("zoom",i.isVisible()?1:null)},features:[qt],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,i){if(1&e&&(q(0,"div",0,1),ye("animationend",function(r){return i._handleAnimationEnd(r)}),function nb(t,n){const e=kt();let i;const s=t+20;e.firstCreatePass?(i=function $O(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[s]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(s,i.onDestroy)):i=e.data[s];const r=i.factory||(i.factory=Lr(i.type)),o=rr(ke);try{const a=Ec(!1),l=r();return Ec(a),function gL(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,Se(),s,l),l}finally{rr(o)}}(2,"async"),St(3),re()),2&e){let s;an("mat-tooltip-handset",null==(s=function ib(t,n,e){const i=t+20,s=Se(),r=function mo(t,n){return t[n]}(s,i);return function hl(t,n){return t[1].data[n].pure}(s,i)?Q0(s,si(),n,r.transform,e,r):r.transform(e)}(2,4,i._isHandset))?null:s.matches),j("ngClass",i.tooltipClass),G(3),mi(i.message)}},directives:[uw],pipes:[yw],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}\n"],encapsulation:2,changeDetection:0}),t})(),rY=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ft({type:t}),t.\u0275inj=Lt({providers:[JW],imports:[[SW,mr,ZU,VE],VE,av]}),t})();function oY(t,n){1&t&&(ae(),q(0,"marker",6),Ie(1,"path",7),re())}function aY(t,n){if(1&t){const e=Be();ae(),q(0,"g",8),ye("click",function(){const r=ve(e).$implicit,o=W(2);return o.onNodeClick?o.onNodeClick({nodeId:r.id}):null}),Ie(1,"rect",9)(2,"text",10),re()}if(2&t){const e=n.$implicit,i=W(2);j("matTooltip",e.data.tooltip),G(1),me("width",e.dimension.width)("height",e.dimension.height)("fill",e.data.customColor||e.data.color),G(1),j("innerHTML",i.getSanitizedString(e.label),Za),me("x",10)("y",e.dimension.height/2)}}function lY(t,n){if(1&t){const e=Be();ae(),q(0,"g",11),ye("click",function(){const r=ve(e).$implicit,o=W(2);return o.onLinkClick?o.onLinkClick({sourceNodeId:r.source,targetNodeId:r.target}):null}),Ie(1,"path",12),q(2,"text",13)(3,"textPath",14),St(4),re()()()}if(2&t){const e=n.$implicit;G(3),vt("dominant-baseline",e.dominantBaseline),me("href","#"+e.id),G(1),nn(" ",e.label," ")}}function cY(t,n){if(1&t&&(q(0,"ngx-graph",2),ue(1,oY,2,0,"ng-template",null,3,dl),ue(3,aY,3,7,"ng-template",null,4,dl),ue(5,lY,5,4,"ng-template",null,5,dl),re()),2&t){const e=W();j("showMiniMap",e.showMiniMap)("draggingEnabled",e.draggingEnabled)("links",e.links)("nodes",e.nodes)("autoCenter",e.autoCenter)("autoZoom",e.autoZoom)}}let uY=(()=>{class t{constructor(e){this.sanitizer=e}ngOnChanges(){}onResized(e){window.dispatchEvent(new Event("resize"))}getSanitizedString(e){return this.sanitizer.bypassSecurityTrustHtml(e)}}return t.\u0275fac=function(e){return new(e||t)(ke(sg))},t.\u0275cmp=$e({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:[ut],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",3,"innerHTML"],[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(e,i){1&e&&(q(0,"div",0),ye("resized",function(r){return i.onResized(r)}),ue(1,cY,7,6,"ngx-graph",1),re()),2&e&&(G(1),j("ngIf",null==i.nodes?null:i.nodes.length))},directives:[iU,yt,q7,nY],styles:[""]}),t})(),hY=(()=>{class t{constructor(e){this.injector=e}ngDoBootstrap(){const e=function vR(t,n){const e=function uR(t,n){return n.get(pr).resolveComponentFactory(t).inputs}(t,n.injector),i=n.strategyFactory||new pR(t,n.injector),s=function cR(t){const n={};return t.forEach(({propName:e,templateName:i})=>{n[function sR(t){return t.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}(i)]=e}),n}(e);class r extends mR{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||n.injector);e.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,h){this.ngElementStrategy.setInputValue(s[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return r.observedAttributes=Object.keys(s),e.forEach(({propName:o})=>{Object.defineProperty(r.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(a){this.ngElementStrategy.setInputValue(o,a)},configurable:!0,enumerable:!0})}),r}(uY,{injector:this.injector});customElements.define("drayman-ngx-graph",e)}}return t.\u0275fac=function(e){return new(e||t)(De(Jn))},t.\u0275mod=Ft({type:t}),t.\u0275inj=Lt({imports:[[Iw,_B,c9,tU,sU,rY]]}),t})();(function XF(){Vb=!1})(),IN().bootstrapModule(hY).catch(t=>console.error(t))})()})();