@techdocs/cli 1.8.17-next.1 → 1.8.17-next.3

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 (126) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/embedded-app/.config-schema.json +201 -126
  3. package/dist/embedded-app/index.html +1 -1
  4. package/dist/embedded-app/static/124.7c4c81f4.chunk.js +6 -0
  5. package/dist/embedded-app/static/124.7c4c81f4.chunk.js.map +1 -0
  6. package/dist/embedded-app/static/{1297.f8916d08.chunk.js → 1297.b4799570.chunk.js} +3 -3
  7. package/dist/embedded-app/static/1297.b4799570.chunk.js.map +1 -0
  8. package/dist/embedded-app/static/1902.6f404f8c.chunk.js +10 -0
  9. package/dist/embedded-app/static/1902.6f404f8c.chunk.js.map +1 -0
  10. package/dist/embedded-app/static/2401.14631655.chunk.js +6 -0
  11. package/dist/embedded-app/static/2401.14631655.chunk.js.map +1 -0
  12. package/dist/embedded-app/static/2420.1bc102de.chunk.js +6 -0
  13. package/dist/embedded-app/static/2420.1bc102de.chunk.js.map +1 -0
  14. package/dist/embedded-app/static/287.961ccb08.chunk.js +6 -0
  15. package/dist/embedded-app/static/287.961ccb08.chunk.js.map +1 -0
  16. package/dist/embedded-app/static/3182.3cbe56e4.chunk.js +7 -0
  17. package/dist/embedded-app/static/3182.3cbe56e4.chunk.js.map +1 -0
  18. package/dist/embedded-app/static/3632.681a005c.chunk.js +6 -0
  19. package/dist/embedded-app/static/3632.681a005c.chunk.js.map +1 -0
  20. package/dist/embedded-app/static/3720.1978cecb.chunk.js +11 -0
  21. package/dist/embedded-app/static/3720.1978cecb.chunk.js.map +1 -0
  22. package/dist/embedded-app/static/4036.32efab46.chunk.js +3 -0
  23. package/dist/embedded-app/static/4036.32efab46.chunk.js.map +1 -0
  24. package/dist/embedded-app/static/4487.f9cc6633.chunk.js +3 -0
  25. package/dist/embedded-app/static/4487.f9cc6633.chunk.js.map +1 -0
  26. package/dist/embedded-app/static/4516.b1a92d53.chunk.js +3 -0
  27. package/dist/embedded-app/static/4516.b1a92d53.chunk.js.map +1 -0
  28. package/dist/embedded-app/static/4919.e2124196.chunk.js +3 -0
  29. package/dist/embedded-app/static/4919.e2124196.chunk.js.map +1 -0
  30. package/dist/embedded-app/static/5724.8c459ffd.chunk.js +4 -0
  31. package/dist/embedded-app/static/5724.8c459ffd.chunk.js.map +1 -0
  32. package/dist/embedded-app/static/6271.d5297b21.chunk.js +6 -0
  33. package/dist/embedded-app/static/6271.d5297b21.chunk.js.map +1 -0
  34. package/dist/embedded-app/static/6415.3f0e01a6.chunk.js +6 -0
  35. package/dist/embedded-app/static/6415.3f0e01a6.chunk.js.map +1 -0
  36. package/dist/embedded-app/static/8307.fd2c3bf0.chunk.js +9 -0
  37. package/dist/embedded-app/static/8307.fd2c3bf0.chunk.js.map +1 -0
  38. package/dist/embedded-app/static/8384.bfea9665.chunk.js +6 -0
  39. package/dist/embedded-app/static/8384.bfea9665.chunk.js.map +1 -0
  40. package/dist/embedded-app/static/898.b3655147.chunk.js +4 -0
  41. package/dist/embedded-app/static/898.b3655147.chunk.js.map +1 -0
  42. package/dist/embedded-app/static/{9234.ac5ee4d5.chunk.js → 9234.ad94610e.chunk.js} +2 -2
  43. package/dist/embedded-app/static/{9234.ac5ee4d5.chunk.js.map → 9234.ad94610e.chunk.js.map} +1 -1
  44. package/dist/embedded-app/static/9605.92f660fa.chunk.js +11 -0
  45. package/dist/embedded-app/static/9605.92f660fa.chunk.js.map +1 -0
  46. package/dist/embedded-app/static/9652.aec21fe8.chunk.js +6 -0
  47. package/dist/embedded-app/static/9652.aec21fe8.chunk.js.map +1 -0
  48. package/dist/embedded-app/static/main.3d49bafb.js +509 -0
  49. package/dist/embedded-app/static/main.3d49bafb.js.map +1 -0
  50. package/dist/embedded-app/static/{module-material-table.60f080a9.js → module-material-table.e3f26578.js} +2 -2
  51. package/dist/embedded-app/static/{module-material-table.60f080a9.js.map → module-material-table.e3f26578.js.map} +1 -1
  52. package/dist/embedded-app/static/module-material-ui.f1846a3c.js +24 -0
  53. package/dist/embedded-app/static/module-material-ui.f1846a3c.js.map +1 -0
  54. package/dist/embedded-app/static/module-react-router-dom.0c2bb614.js +23 -0
  55. package/dist/embedded-app/static/module-react-router-dom.0c2bb614.js.map +1 -0
  56. package/dist/embedded-app/static/module-react-router.dac764ce.js +23 -0
  57. package/dist/embedded-app/static/module-react-router.dac764ce.js.map +1 -0
  58. package/dist/embedded-app/static/module-zod.9a0df421.js +3 -0
  59. package/dist/embedded-app/static/{module-zod.18508a39.js.map → module-zod.9a0df421.js.map} +1 -1
  60. package/dist/embedded-app/static/{react-syntax-highlighter_languages_highlight_lisp.4a81e0ae.chunk.js → react-syntax-highlighter_languages_highlight_lisp.e1c07c6d.chunk.js} +2 -2
  61. package/dist/embedded-app/static/{react-syntax-highlighter_languages_highlight_lisp.4a81e0ae.chunk.js.map → react-syntax-highlighter_languages_highlight_lisp.e1c07c6d.chunk.js.map} +1 -1
  62. package/dist/embedded-app/static/{runtime.e9838633.js → runtime.3d49bafb.js} +2 -2
  63. package/dist/embedded-app/static/runtime.3d49bafb.js.map +1 -0
  64. package/dist/embedded-app/static/vendor.3d49bafb.js +155 -0
  65. package/dist/embedded-app/static/vendor.3d49bafb.js.map +1 -0
  66. package/dist/index.cjs.js +1 -1
  67. package/package.json +5 -5
  68. package/dist/embedded-app/static/124.5ba6885f.chunk.js +0 -6
  69. package/dist/embedded-app/static/124.5ba6885f.chunk.js.map +0 -1
  70. package/dist/embedded-app/static/1297.f8916d08.chunk.js.map +0 -1
  71. package/dist/embedded-app/static/2401.d309433f.chunk.js +0 -6
  72. package/dist/embedded-app/static/2401.d309433f.chunk.js.map +0 -1
  73. package/dist/embedded-app/static/2420.037cfc15.chunk.js +0 -6
  74. package/dist/embedded-app/static/2420.037cfc15.chunk.js.map +0 -1
  75. package/dist/embedded-app/static/2745.5b1c08b3.chunk.js +0 -6
  76. package/dist/embedded-app/static/2745.5b1c08b3.chunk.js.map +0 -1
  77. package/dist/embedded-app/static/2772.bdf6f4ac.chunk.js +0 -168
  78. package/dist/embedded-app/static/2772.bdf6f4ac.chunk.js.map +0 -1
  79. package/dist/embedded-app/static/287.0d76734a.chunk.js +0 -6
  80. package/dist/embedded-app/static/287.0d76734a.chunk.js.map +0 -1
  81. package/dist/embedded-app/static/3182.690c18de.chunk.js +0 -7
  82. package/dist/embedded-app/static/3182.690c18de.chunk.js.map +0 -1
  83. package/dist/embedded-app/static/3632.c54686af.chunk.js +0 -6
  84. package/dist/embedded-app/static/3632.c54686af.chunk.js.map +0 -1
  85. package/dist/embedded-app/static/4036.6d4f48ee.chunk.js +0 -3
  86. package/dist/embedded-app/static/4036.6d4f48ee.chunk.js.map +0 -1
  87. package/dist/embedded-app/static/4400.74f2ff55.chunk.js +0 -6
  88. package/dist/embedded-app/static/4400.74f2ff55.chunk.js.map +0 -1
  89. package/dist/embedded-app/static/4943.f9ffc89d.chunk.js +0 -4
  90. package/dist/embedded-app/static/4943.f9ffc89d.chunk.js.map +0 -1
  91. package/dist/embedded-app/static/5502.59e5e2d7.chunk.js +0 -3
  92. package/dist/embedded-app/static/5502.59e5e2d7.chunk.js.map +0 -1
  93. package/dist/embedded-app/static/5580.aad136c2.chunk.js +0 -4
  94. package/dist/embedded-app/static/5580.aad136c2.chunk.js.map +0 -1
  95. package/dist/embedded-app/static/6066.c5fcf8d3.chunk.js +0 -3
  96. package/dist/embedded-app/static/6066.c5fcf8d3.chunk.js.map +0 -1
  97. package/dist/embedded-app/static/6271.50d6fc37.chunk.js +0 -6
  98. package/dist/embedded-app/static/6271.50d6fc37.chunk.js.map +0 -1
  99. package/dist/embedded-app/static/6545.2f399250.chunk.js +0 -3
  100. package/dist/embedded-app/static/6545.2f399250.chunk.js.map +0 -1
  101. package/dist/embedded-app/static/7137.9e328e07.chunk.js +0 -3
  102. package/dist/embedded-app/static/7137.9e328e07.chunk.js.map +0 -1
  103. package/dist/embedded-app/static/8307.0cba06d7.chunk.js +0 -9
  104. package/dist/embedded-app/static/8307.0cba06d7.chunk.js.map +0 -1
  105. package/dist/embedded-app/static/8384.e32c3b89.chunk.js +0 -6
  106. package/dist/embedded-app/static/8384.e32c3b89.chunk.js.map +0 -1
  107. package/dist/embedded-app/static/8721.77fdaf76.chunk.js +0 -11
  108. package/dist/embedded-app/static/8721.77fdaf76.chunk.js.map +0 -1
  109. package/dist/embedded-app/static/9605.c3d05fe5.chunk.js +0 -11
  110. package/dist/embedded-app/static/9605.c3d05fe5.chunk.js.map +0 -1
  111. package/dist/embedded-app/static/9652.f79c63a2.chunk.js +0 -6
  112. package/dist/embedded-app/static/9652.f79c63a2.chunk.js.map +0 -1
  113. package/dist/embedded-app/static/9797.047c7087.chunk.js +0 -10
  114. package/dist/embedded-app/static/9797.047c7087.chunk.js.map +0 -1
  115. package/dist/embedded-app/static/main.e9838633.js +0 -513
  116. package/dist/embedded-app/static/main.e9838633.js.map +0 -1
  117. package/dist/embedded-app/static/module-material-ui.b719b7fa.js +0 -24
  118. package/dist/embedded-app/static/module-material-ui.b719b7fa.js.map +0 -1
  119. package/dist/embedded-app/static/module-react-router-dom.473a1e8a.js +0 -22
  120. package/dist/embedded-app/static/module-react-router-dom.473a1e8a.js.map +0 -1
  121. package/dist/embedded-app/static/module-react-router.933956ac.js +0 -22
  122. package/dist/embedded-app/static/module-react-router.933956ac.js.map +0 -1
  123. package/dist/embedded-app/static/module-zod.18508a39.js +0 -3
  124. package/dist/embedded-app/static/runtime.e9838633.js.map +0 -1
  125. package/dist/embedded-app/static/vendor.e9838633.js +0 -155
  126. package/dist/embedded-app/static/vendor.e9838633.js.map +0 -1
@@ -1,168 +0,0 @@
1
- (()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[2772],{95431:(_,A)=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0}),A.default=void 0;var n={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},r=n;A.default=r},67542:(_,A)=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0}),A.default=void 0;var n={black:"#000",white:"#fff"},r=n;A.default=r},35932:(_,A)=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0}),A.default=void 0;var n={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},r=n;A.default=r},74468:(_,A)=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0}),A.default=void 0;var n={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},r=n;A.default=r},36965:(_,A)=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0}),A.default=void 0;var n={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},r=n;A.default=r},17537:(_,A)=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0}),A.default=void 0;var n={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},r=n;A.default=r},35927:(_,A)=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0}),A.default=void 0;var n={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},r=n;A.default=r},63147:(_,A)=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0}),A.default=void 0;var n={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},r=n;A.default=r},71248:(_,A,n)=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0}),A.hexToRgb=l,A.rgbToHex=c,A.hslToRgb=g,A.decomposeColor=m,A.recomposeColor=f,A.getContrastRatio=v,A.getLuminance=x,A.emphasize=y,A.fade=O,A.alpha=N,A.darken=j,A.lighten=B;var r=n(96541);function d(k){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.min(Math.max(P,k),L)}function l(k){k=k.substr(1);var P=new RegExp(".{1,".concat(k.length>=6?2:1,"}"),"g"),L=k.match(P);return L&&L[0].length===1&&(L=L.map(function(F){return F+F})),L?"rgb".concat(L.length===4?"a":"","(").concat(L.map(function(F,U){return U<3?parseInt(F,16):Math.round(parseInt(F,16)/255*1e3)/1e3}).join(", "),")"):""}function p(k){var P=k.toString(16);return P.length===1?"0".concat(P):P}function c(k){if(k.indexOf("#")===0)return k;var P=m(k),L=P.values;return"#".concat(L.map(function(F){return p(F)}).join(""))}function g(k){k=m(k);var P=k,L=P.values,F=L[0],U=L[1]/100,W=L[2]/100,q=U*Math.min(W,1-W),re=function(ue){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:(ue+F/30)%12;return W-q*Math.max(Math.min(ye-3,9-ye,1),-1)},he="rgb",pe=[Math.round(re(0)*255),Math.round(re(8)*255),Math.round(re(4)*255)];return k.type==="hsla"&&(he+="a",pe.push(L[3])),f({type:he,values:pe})}function m(k){if(k.type)return k;if(k.charAt(0)==="#")return m(l(k));var P=k.indexOf("("),L=k.substring(0,P);if(["rgb","rgba","hsl","hsla"].indexOf(L)===-1)throw new Error((0,r.formatMuiErrorMessage)(3,k));var F=k.substring(P+1,k.length-1).split(",");return F=F.map(function(U){return parseFloat(U)}),{type:L,values:F}}function f(k){var P=k.type,L=k.values;return P.indexOf("rgb")!==-1?L=L.map(function(F,U){return U<3?parseInt(F,10):F}):P.indexOf("hsl")!==-1&&(L[1]="".concat(L[1],"%"),L[2]="".concat(L[2],"%")),"".concat(P,"(").concat(L.join(", "),")")}function v(k,P){var L=x(k),F=x(P);return(Math.max(L,F)+.05)/(Math.min(L,F)+.05)}function x(k){k=m(k);var P=k.type==="hsl"?m(g(k)).values:k.values;return P=P.map(function(L){return L/=255,L<=.03928?L/12.92:Math.pow((L+.055)/1.055,2.4)}),Number((.2126*P[0]+.7152*P[1]+.0722*P[2]).toFixed(3))}function y(k){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.15;return x(k)>.5?j(k,P):B(k,P)}var E=!1;function O(k,P){return N(k,P)}function N(k,P){return k=m(k),P=d(P),(k.type==="rgb"||k.type==="hsl")&&(k.type+="a"),k.values[3]=P,f(k)}function j(k,P){if(k=m(k),P=d(P),k.type.indexOf("hsl")!==-1)k.values[2]*=1-P;else if(k.type.indexOf("rgb")!==-1)for(var L=0;L<3;L+=1)k.values[L]*=1-P;return f(k)}function B(k,P){if(k=m(k),P=d(P),k.type.indexOf("hsl")!==-1)k.values[2]+=(100-k.values[2])*P;else if(k.type.indexOf("rgb")!==-1)for(var L=0;L<3;L+=1)k.values[L]+=(255-k.values[L])*P;return f(k)}},85589:(_,A,n)=>{"use strict";var r=n(4293);Object.defineProperty(A,"__esModule",{value:!0}),A.default=c,A.keys=void 0;var d=r(n(24505)),l=r(n(67996)),p=["xs","sm","md","lg","xl"];A.keys=p;function c(g){var m=g.values,f=m===void 0?{xs:0,sm:600,md:960,lg:1280,xl:1920}:m,v=g.unit,x=v===void 0?"px":v,y=g.step,E=y===void 0?5:y,O=(0,l.default)(g,["values","unit","step"]);function N(F){var U=typeof f[F]=="number"?f[F]:F;return"@media (min-width:".concat(U).concat(x,")")}function j(F){var U=p.indexOf(F)+1,W=f[p[U]];if(U===p.length)return N("xs");var q=typeof W=="number"&&U>0?W:F;return"@media (max-width:".concat(q-E/100).concat(x,")")}function B(F,U){var W=p.indexOf(U);return W===p.length-1?N(F):"@media (min-width:".concat(typeof f[F]=="number"?f[F]:F).concat(x,") and ")+"(max-width:".concat((W!==-1&&typeof f[p[W+1]]=="number"?f[p[W+1]]:U)-E/100).concat(x,")")}function k(F){return B(F,F)}var P=!1;function L(F){return f[F]}return(0,d.default)({keys:p,values:f,up:N,down:j,between:B,only:k,width:L},O)}},24215:(_,A,n)=>{"use strict";var r=n(4293);Object.defineProperty(A,"__esModule",{value:!0}),A.default=p;var d=r(n(58212)),l=r(n(24505));function p(c,g,m){var f;return(0,l.default)({gutters:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:",`
2
- paddingLeft: theme.spacing(2),
3
- paddingRight: theme.spacing(2),
4
- [theme.breakpoints.up('sm')]: {
5
- paddingLeft: theme.spacing(3),
6
- paddingRight: theme.spacing(3),
7
- },
8
- `].join(`
9
- `)),(0,l.default)({paddingLeft:g(2),paddingRight:g(2)},x,(0,d.default)({},c.up("sm"),(0,l.default)({paddingLeft:g(3),paddingRight:g(3)},x[c.up("sm")])))},toolbar:(f={minHeight:56},(0,d.default)(f,"".concat(c.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,d.default)(f,c.up("sm"),{minHeight:64}),f)},m)}},13238:(_,A,n)=>{"use strict";var r=n(4293);Object.defineProperty(A,"__esModule",{value:!0}),A.default=k,A.dark=A.light=void 0;var d=r(n(24505)),l=r(n(67996)),p=n(96541),c=r(n(67542)),g=r(n(74468)),m=r(n(36965)),f=r(n(35927)),v=r(n(63147)),x=r(n(17537)),y=r(n(95431)),E=r(n(35932)),O=n(71248),N={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:c.default.white,default:g.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};A.light=N;var j={text:{primary:c.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:g.default[800],default:"#303030"},action:{active:c.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};A.dark=j;function B(P,L,F,U){var W=U.light||U,q=U.dark||U*1.5;P[L]||(P.hasOwnProperty(F)?P[L]=P[F]:L==="light"?P.light=(0,O.lighten)(P.main,W):L==="dark"&&(P.dark=(0,O.darken)(P.main,q)))}function k(P){var L=P.primary,F=L===void 0?{light:m.default[300],main:m.default[500],dark:m.default[700]}:L,U=P.secondary,W=U===void 0?{light:f.default.A200,main:f.default.A400,dark:f.default.A700}:U,q=P.error,re=q===void 0?{light:v.default[300],main:v.default[500],dark:v.default[700]}:q,he=P.warning,pe=he===void 0?{light:x.default[300],main:x.default[500],dark:x.default[700]}:he,de=P.info,ue=de===void 0?{light:y.default[300],main:y.default[500],dark:y.default[700]}:de,ye=P.success,te=ye===void 0?{light:E.default[300],main:E.default[500],dark:E.default[700]}:ye,Se=P.type,De=Se===void 0?"light":Se,Be=P.contrastThreshold,ut=Be===void 0?3:Be,et=P.tonalOffset,dt=et===void 0?.2:et,pt=(0,l.default)(P,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function At(J){var le=(0,O.getContrastRatio)(J,j.text.primary)>=ut?j.text.primary:N.text.primary;if(0)var ke;return le}var mt=function(le){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:500,Ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:300,Ze=arguments.length>3&&arguments[3]!==void 0?arguments[3]:700;if(le=(0,d.default)({},le),!le.main&&le[ke]&&(le.main=le[ke]),!le.main)throw new Error((0,p.formatMuiErrorMessage)(4,ke));if(typeof le.main!="string")throw new Error(_formatMuiErrorMessage(5,JSON.stringify(le.main)));return B(le,"light",Ge,dt),B(le,"dark",Ze,dt),le.contrastText||(le.contrastText=At(le.main)),le},Rt={dark:j,light:N},oe=(0,p.deepmerge)((0,d.default)({common:c.default,type:De,primary:mt(F),secondary:mt(W,"A400","A200","A700"),error:mt(re),warning:mt(pe),info:mt(ue),success:mt(te),grey:g.default,contrastThreshold:ut,getContrastText:At,augmentColor:mt,tonalOffset:dt},Rt[De]),pt);return oe}},70764:(_,A,n)=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0}),A.default=l;var r=n(70128),d;function l(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:8;if(p.mui)return p;var c=(0,r.createUnarySpacing)({spacing:p}),g=function(){for(var f=arguments.length,v=new Array(f),x=0;x<f;x++)v[x]=arguments[x];return v.length===0?c(1):v.length===1?c(v[0]):v.map(function(y){if(typeof y=="string")return y;var E=c(y);return typeof E=="number"?"".concat(E,"px"):E}).join(" ")};return Object.defineProperty(g,"unit",{get:function(){return p}}),g.mui=!0,g}},13400:(_,A,n)=>{"use strict";var r=n(4293);Object.defineProperty(A,"__esModule",{value:!0}),A.createMuiTheme=B,A.default=void 0;var d=r(n(58212)),l=r(n(67996)),p=n(96541),c=r(n(85589)),g=r(n(24215)),m=r(n(13238)),f=r(n(52104)),v=r(n(87884)),x=r(n(50088)),y=r(n(70764)),E=r(n(73469)),O=r(n(96791));function N(){for(var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},L=P.breakpoints,F=L===void 0?{}:L,U=P.mixins,W=U===void 0?{}:U,q=P.palette,re=q===void 0?{}:q,he=P.spacing,pe=P.typography,de=pe===void 0?{}:pe,ue=(0,l.default)(P,["breakpoints","mixins","palette","spacing","typography"]),ye=(0,m.default)(re),te=(0,c.default)(F),Se=(0,y.default)(he),De=(0,p.deepmerge)({breakpoints:te,direction:"ltr",mixins:(0,g.default)(te,Se,W),overrides:{},palette:ye,props:{},shadows:v.default,typography:(0,f.default)(ye,de),spacing:Se,shape:x.default,transitions:E.default,zIndex:O.default},ue),Be=arguments.length,ut=new Array(Be>1?Be-1:0),et=1;et<Be;et++)ut[et-1]=arguments[et];if(De=ut.reduce(function(At,mt){return(0,p.deepmerge)(At,mt)},De),0)var dt,pt;return De}var j=!1;function B(){return N.apply(void 0,arguments)}var k=N;A.default=k},52104:(_,A,n)=>{"use strict";var r=n(4293);Object.defineProperty(A,"__esModule",{value:!0}),A.default=x;var d=r(n(24505)),l=r(n(67996)),p=n(96541);function c(y){return Math.round(y*1e5)/1e5}var g=!1;function m(y){return c(y)}var f={textTransform:"uppercase"},v='"Roboto", "Helvetica", "Arial", sans-serif';function x(y,E){var O=typeof E=="function"?E(y):E,N=O.fontFamily,j=N===void 0?v:N,B=O.fontSize,k=B===void 0?14:B,P=O.fontWeightLight,L=P===void 0?300:P,F=O.fontWeightRegular,U=F===void 0?400:F,W=O.fontWeightMedium,q=W===void 0?500:W,re=O.fontWeightBold,he=re===void 0?700:re,pe=O.htmlFontSize,de=pe===void 0?16:pe,ue=O.allVariants,ye=O.pxToRem,te=(0,l.default)(O,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),Se=k/14,De=ye||function(et){return"".concat(et/de*Se,"rem")},Be=function(dt,pt,At,mt,Rt){return(0,d.default)({fontFamily:j,fontWeight:dt,fontSize:De(pt),lineHeight:At},j===v?{letterSpacing:"".concat(c(mt/pt),"em")}:{},Rt,ue)},ut={h1:Be(L,96,1.167,-1.5),h2:Be(L,60,1.2,-.5),h3:Be(U,48,1.167,0),h4:Be(U,34,1.235,.25),h5:Be(U,24,1.334,0),h6:Be(q,20,1.6,.15),subtitle1:Be(U,16,1.75,.15),subtitle2:Be(q,14,1.57,.1),body1:Be(U,16,1.5,.15),body2:Be(U,14,1.43,.15),button:Be(q,14,1.75,.4,f),caption:Be(U,12,1.66,.4),overline:Be(U,12,2.66,1,f)};return(0,p.deepmerge)((0,d.default)({htmlFontSize:de,pxToRem:De,round:m,fontFamily:j,fontSize:k,fontWeightLight:L,fontWeightRegular:U,fontWeightMedium:q,fontWeightBold:he},ut),te,{clone:!1})}},72763:(_,A,n)=>{"use strict";var r=n(4293);Object.defineProperty(A,"__esModule",{value:!0}),A.default=void 0;var d=r(n(13400)),l=(0,d.default)(),p=l;A.default=p},22249:(_,A,n)=>{"use strict";var r,d=n(4293);r={value:!0},A.A=void 0;var l=d(n(24505)),p=n(1587),c=d(n(72763));function g(f){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,p.makeStyles)(f,(0,l.default)({defaultTheme:c.default},v))}var m=g;A.A=m},87884:(_,A)=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0}),A.default=void 0;var n=.2,r=.14,d=.12;function l(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(n,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(r,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(d,")")].join(",")}var p=["none",l(0,2,1,-1,0,1,1,0,0,1,3,0),l(0,3,1,-2,0,2,2,0,0,1,5,0),l(0,3,3,-2,0,3,4,0,0,1,8,0),l(0,2,4,-1,0,4,5,0,0,1,10,0),l(0,3,5,-1,0,5,8,0,0,1,14,0),l(0,3,5,-1,0,6,10,0,0,1,18,0),l(0,4,5,-2,0,7,10,1,0,2,16,1),l(0,5,5,-3,0,8,10,1,0,3,14,2),l(0,5,6,-3,0,9,12,1,0,3,16,2),l(0,6,6,-3,0,10,14,1,0,4,18,3),l(0,6,7,-4,0,11,15,1,0,4,20,3),l(0,7,8,-4,0,12,17,2,0,5,22,4),l(0,7,8,-4,0,13,19,2,0,5,24,4),l(0,7,9,-4,0,14,21,2,0,5,26,4),l(0,8,9,-5,0,15,22,2,0,6,28,5),l(0,8,10,-5,0,16,24,2,0,6,30,5),l(0,8,11,-5,0,17,26,2,0,6,32,5),l(0,9,11,-5,0,18,28,2,0,7,34,6),l(0,9,12,-6,0,19,29,2,0,7,36,6),l(0,10,13,-6,0,20,31,3,0,8,38,7),l(0,10,13,-6,0,21,33,3,0,8,40,7),l(0,10,14,-6,0,22,35,3,0,8,42,7),l(0,11,14,-7,0,23,36,3,0,9,44,8),l(0,11,15,-7,0,24,38,3,0,9,46,8)],c=p;A.default=c},50088:(_,A)=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0}),A.default=void 0;var n={borderRadius:4},r=n;A.default=r},73469:(_,A,n)=>{"use strict";var r=n(4293);Object.defineProperty(A,"__esModule",{value:!0}),A.default=A.duration=A.easing=void 0;var d=r(n(67996)),l={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};A.easing=l;var p={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};A.duration=p;function c(m){return"".concat(Math.round(m),"ms")}var g={easing:l,duration:p,create:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["all"],v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=v.duration,y=x===void 0?p.standard:x,E=v.easing,O=E===void 0?l.easeInOut:E,N=v.delay,j=N===void 0?0:N,B=(0,d.default)(v,["duration","easing","delay"]);if(0)var k,P;return(Array.isArray(f)?f:[f]).map(function(L){return"".concat(L," ").concat(typeof y=="string"?y:c(y)," ").concat(O," ").concat(typeof j=="string"?j:c(j))}).join(",")},getAutoHeightDuration:function(f){if(!f)return 0;var v=f/36;return Math.round((4+15*Math.pow(v,.25)+v/5)*10)}};A.default=g},41809:(_,A,n)=>{"use strict";var r,d=n(4293);r={value:!0},A.A=g;var l=n(1587),p=d(n(14041)),c=d(n(72763));function g(){var m=(0,l.useTheme)()||c.default;return m}},96791:(_,A)=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0}),A.default=void 0;var n={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},r=n;A.default=r},85005:(_,A,n)=>{"use strict";var r,d=n(4293),l=n(78920);r={value:!0},A.A=void 0;var p=l(n(14041)),c=d(n(74044)),g=(0,c.default)(p.createElement("path",{d:"M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-6 8h-4v-2h4v2zm0-4h-4v-2h4v2z"}),"BugReport");A.A=g},92399:(_,A,n)=>{"use strict";var r,d=n(4293),l=n(78920);r={value:!0},A.A=void 0;var p=l(n(14041)),c=d(n(74044)),g=(0,c.default)(p.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");A.A=g},26314:(_,A,n)=>{"use strict";var r,d=n(4293),l=n(78920);r={value:!0},A.A=void 0;var p=l(n(14041)),c=d(n(74044)),g=(0,c.default)(p.createElement(p.Fragment,null,p.createElement("path",{d:"M14 7H8v14h11v-9h-5z",opacity:".3"}),p.createElement("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4H8c-1.1 0-1.99.9-1.99 2L6 21c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V11l-6-6zm4 16H8V7h6v5h5v9z"})),"FileCopyTwoTone");A.A=g},97262:(_,A,n)=>{"use strict";var r,d=n(4293),l=n(78920);r={value:!0},A.A=void 0;var p=l(n(14041)),c=d(n(74044)),g=(0,c.default)(p.createElement("path",{d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z"}),"HelpOutline");A.A=g},71407:(_,A,n)=>{"use strict";var r,d=n(4293),l=n(78920);r={value:!0},A.A=void 0;var p=l(n(14041)),c=d(n(74044)),g=(0,c.default)(p.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");A.A=g},1587:(_,A,n)=>{"use strict";n.r(A),n.d(A,{ServerStyleSheets:()=>m.A,StylesContext:()=>v.si,StylesProvider:()=>v.Ay,ThemeProvider:()=>x.A,createGenerateClassName:()=>r.A,createStyles:()=>d.A,getThemeProps:()=>l.A,jssPreset:()=>p.A,makeStyles:()=>c.A,mergeClasses:()=>g.A,sheetsManager:()=>v.Az,styled:()=>f.A,useTheme:()=>y.A,withStyles:()=>E.A,withTheme:()=>O.A,withThemeCreator:()=>O.u});var r=n(55288),d=n(77114),l=n(70160),p=n(22856),c=n(20904),g=n(49474),m=n(40936),f=n(51e3),v=n(91360),x=n(50868),y=n(2202),E=n(80430),O=n(49884);/** @license Material-UI v4.11.5
10
- *
11
- * This source code is licensed under the MIT license found in the
12
- * LICENSE file in the root directory of this source tree.
13
- */},70128:(_,A,n)=>{"use strict";n.r(A),n.d(A,{alignContent:()=>g.j_,alignItems:()=>g.mt,alignSelf:()=>g.i4,bgcolor:()=>f.N_,border:()=>r.PQ,borderBottom:()=>r.I5,borderColor:()=>r.Cz,borderLeft:()=>r.Kz,borderRadius:()=>r.Vq,borderRight:()=>r.fo,borderTop:()=>r.Iy,borders:()=>r.Ay,bottom:()=>v.sQ,boxSizing:()=>y.K,breakpoints:()=>d.A,color:()=>f.yW,compose:()=>l.A,createUnarySpacing:()=>E.L,css:()=>p.A,display:()=>c.Ay,flex:()=>g.Uu,flexBasis:()=>g.OO,flexDirection:()=>g.D0,flexGrow:()=>g.fB,flexShrink:()=>g.v2,flexWrap:()=>g.aR,flexbox:()=>g.Ay,fontFamily:()=>N.mw,fontSize:()=>N.J,fontStyle:()=>N.xC,fontWeight:()=>N.Wy,grid:()=>m.Ay,gridArea:()=>m.Iz,gridAutoColumns:()=>m.RK,gridAutoFlow:()=>m.s,gridAutoRows:()=>m.Zh,gridColumn:()=>m.FB,gridColumnGap:()=>m.XH,gridGap:()=>m.T_,gridRow:()=>m.lJ,gridRowGap:()=>m.hI,gridTemplateAreas:()=>m.by,gridTemplateColumns:()=>m.y9,gridTemplateRows:()=>m.co,height:()=>y.uJ,justifyContent:()=>g.wt,justifyItems:()=>g.Px,justifySelf:()=>g.gV,left:()=>v.kb,letterSpacing:()=>N.oU,lineHeight:()=>N.K_,maxHeight:()=>y.Kr,maxWidth:()=>y.JX,minHeight:()=>y.yO,minWidth:()=>y.bV,order:()=>g.fq,palette:()=>f.Ay,position:()=>v.G1,positions:()=>v.Ay,right:()=>v.pG,shadows:()=>x.A,sizeHeight:()=>y.fu,sizeWidth:()=>y.E$,sizing:()=>y.Ay,spacing:()=>E.A,style:()=>O.A,styleFunctionSx:()=>p.h,textAlign:()=>N.Jh,top:()=>v.Mn,typography:()=>N.Ay,width:()=>y.VL,zIndex:()=>v.fE});var r=n(28147),d=n(59292),l=n(11632),p=n(95906),c=n(25006),g=n(55060),m=n(77658),f=n(13103),v=n(18792),x=n(98945),y=n(956),E=n(38184),O=n(45953),N=n(97403);/** @license Material-UI v4.12.2
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */},96541:(_,A,n)=>{"use strict";n.r(A),n.d(A,{HTMLElementType:()=>re,chainPropTypes:()=>r,deepmerge:()=>d.A,elementAcceptingRef:()=>f,elementTypeAcceptingRef:()=>y,exactProp:()=>j,formatMuiErrorMessage:()=>B.A,getDisplayName:()=>q,ponyfillGlobal:()=>he,refType:()=>de});function r(ue,ye){return function(){return null}}var d=n(16328),l=n(39067),p=n.n(l);function c(ue){var ye=ue.prototype,te=ye===void 0?{}:ye;return!!te.isReactComponent}function g(ue,ye,te,Se,De){var Be=ue[ye],ut=De||ye;if(Be==null)return null;var et,dt=Be.type;return typeof dt=="function"&&!c(dt)&&(et="Did you accidentally use a plain function component for an element instead?"),et!==void 0?new Error("Invalid ".concat(Se," `").concat(ut,"` supplied to `").concat(te,"`. ")+"Expected an element that can hold a ref. ".concat(et," ")+"For more information see https://mui.com/r/caveat-with-refs-guide"):null}var m=r(p().element,g);m.isRequired=r(p().element.isRequired,g);const f=m;function v(ue){var ye=ue.prototype,te=ye===void 0?{}:ye;return!!te.isReactComponent}function x(ue,ye,te,Se,De){var Be=ue[ye],ut=De||ye;if(Be==null)return null;var et;return typeof Be=="function"&&!v(Be)&&(et="Did you accidentally provide a plain function component instead?"),et!==void 0?new Error("Invalid ".concat(Se," `").concat(ut,"` supplied to `").concat(te,"`. ")+"Expected an element type that can hold a ref. ".concat(et," ")+"For more information see https://mui.com/r/caveat-with-refs-guide"):null}const y=r(l.elementType,x);var E=n(24586),O=n(89575),N="exact-prop: \u200B";function j(ue){return ue}var B=n(87447),k=n(17545),P=n(49492),L=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function F(ue){var ye="".concat(ue).match(L),te=ye&&ye[1];return te||""}function U(ue){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return ue.displayName||ue.name||F(ue)||ye}function W(ue,ye,te){var Se=U(ye);return ue.displayName||(Se!==""?"".concat(te,"(").concat(Se,")"):te)}function q(ue){if(ue!=null){if(typeof ue=="string")return ue;if(typeof ue=="function")return U(ue,"Component");if((0,k.A)(ue)==="object")switch(ue.$$typeof){case P.ForwardRef:return W(ue,ue.render,"ForwardRef");case P.Memo:return W(ue,ue.type,"memo");default:return}}}function re(ue,ye,te,Se,De){return null;var Be,ut}const he=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();var pe=p().oneOfType([p().func,p().object]);const de=pe;/** @license Material-UI v4.11.3
18
- *
19
- * This source code is licensed under the MIT license found in the
20
- * LICENSE file in the root directory of this source tree.
21
- */},46584:(_,A)=>{"use strict";var n;/** @license React v17.0.2
22
- * react-is.production.min.js
23
- *
24
- * Copyright (c) Facebook, Inc. and its affiliates.
25
- *
26
- * This source code is licensed under the MIT license found in the
27
- * LICENSE file in the root directory of this source tree.
28
- */var r=60103,d=60106,l=60107,p=60108,c=60114,g=60109,m=60110,f=60112,v=60113,x=60120,y=60115,E=60116,O=60121,N=60122,j=60117,B=60129,k=60131;if(typeof Symbol=="function"&&Symbol.for){var P=Symbol.for;r=P("react.element"),d=P("react.portal"),l=P("react.fragment"),p=P("react.strict_mode"),c=P("react.profiler"),g=P("react.provider"),m=P("react.context"),f=P("react.forward_ref"),v=P("react.suspense"),x=P("react.suspense_list"),y=P("react.memo"),E=P("react.lazy"),O=P("react.block"),N=P("react.server.block"),j=P("react.fundamental"),B=P("react.debug_trace_mode"),k=P("react.legacy_hidden")}function L(te){if(typeof te=="object"&&te!==null){var Se=te.$$typeof;switch(Se){case r:switch(te=te.type,te){case l:case c:case p:case v:case x:return te;default:switch(te=te&&te.$$typeof,te){case m:case f:case E:case y:case g:return te;default:return Se}}case d:return Se}}}var F=g,U=r,W=f,q=l,re=E,he=y,pe=d,de=c,ue=p,ye=v;n=m,n=F,n=U,A.ForwardRef=W,n=q,n=re,A.Memo=he,n=pe,n=de,n=ue,n=ye,n=function(){return!1},n=function(){return!1},n=function(te){return L(te)===m},n=function(te){return L(te)===g},n=function(te){return typeof te=="object"&&te!==null&&te.$$typeof===r},n=function(te){return L(te)===f},n=function(te){return L(te)===l},n=function(te){return L(te)===E},n=function(te){return L(te)===y},n=function(te){return L(te)===d},n=function(te){return L(te)===c},n=function(te){return L(te)===p},n=function(te){return L(te)===v},n=function(te){return typeof te=="string"||typeof te=="function"||te===l||te===c||te===B||te===p||te===v||te===x||te===k||typeof te=="object"&&te!==null&&(te.$$typeof===E||te.$$typeof===y||te.$$typeof===g||te.$$typeof===m||te.$$typeof===f||te.$$typeof===j||te.$$typeof===O||te[0]===N)},n=L},49492:(_,A,n)=>{"use strict";_.exports=n(46584)},67991:(_,A,n)=>{_.exports={graphlib:n(62396),layout:n(43685),debug:n(24376),util:{time:n(74023).time,notime:n(74023).notime},version:n(63639)}},83452:(_,A,n)=>{"use strict";var r=n(55766),d=n(44024);_.exports={run:l,undo:c};function l(g){var m=g.graph().acyclicer==="greedy"?d(g,f(g)):p(g);r.forEach(m,function(v){var x=g.edge(v);g.removeEdge(v),x.forwardName=v.name,x.reversed=!0,g.setEdge(v.w,v.v,x,r.uniqueId("rev"))});function f(v){return function(x){return v.edge(x).weight}}}function p(g){var m=[],f={},v={};function x(y){r.has(v,y)||(v[y]=!0,f[y]=!0,r.forEach(g.outEdges(y),function(E){r.has(f,E.w)?m.push(E):x(E.w)}),delete f[y])}return r.forEach(g.nodes(),x),m}function c(g){r.forEach(g.edges(),function(m){var f=g.edge(m);if(f.reversed){g.removeEdge(m);var v=f.forwardName;delete f.reversed,delete f.forwardName,g.setEdge(m.w,m.v,f,v)}})}},23950:(_,A,n)=>{var r=n(55766),d=n(74023);_.exports=l;function l(c){function g(m){var f=c.children(m),v=c.node(m);if(f.length&&r.forEach(f,g),r.has(v,"minRank")){v.borderLeft=[],v.borderRight=[];for(var x=v.minRank,y=v.maxRank+1;x<y;++x)p(c,"borderLeft","_bl",m,v,x),p(c,"borderRight","_br",m,v,x)}}r.forEach(c.children(),g)}function p(c,g,m,f,v,x){var y={width:0,height:0,rank:x,borderType:g},E=v[g][x-1],O=d.addDummyNode(c,"border",y,m);v[g][x]=O,c.setParent(O,f),E&&c.setEdge(E,O,{weight:1})}},18579:(_,A,n)=>{"use strict";var r=n(55766);_.exports={adjust:d,undo:l};function d(x){var y=x.graph().rankdir.toLowerCase();(y==="lr"||y==="rl")&&p(x)}function l(x){var y=x.graph().rankdir.toLowerCase();(y==="bt"||y==="rl")&&g(x),(y==="lr"||y==="rl")&&(f(x),p(x))}function p(x){r.forEach(x.nodes(),function(y){c(x.node(y))}),r.forEach(x.edges(),function(y){c(x.edge(y))})}function c(x){var y=x.width;x.width=x.height,x.height=y}function g(x){r.forEach(x.nodes(),function(y){m(x.node(y))}),r.forEach(x.edges(),function(y){var E=x.edge(y);r.forEach(E.points,m),r.has(E,"y")&&m(E)})}function m(x){x.y=-x.y}function f(x){r.forEach(x.nodes(),function(y){v(x.node(y))}),r.forEach(x.edges(),function(y){var E=x.edge(y);r.forEach(E.points,v),r.has(E,"x")&&v(E)})}function v(x){var y=x.x;x.x=x.y,x.y=y}},50334:_=>{_.exports=A;function A(){var d={};d._next=d._prev=d,this._sentinel=d}A.prototype.dequeue=function(){var d=this._sentinel,l=d._prev;if(l!==d)return n(l),l},A.prototype.enqueue=function(d){var l=this._sentinel;d._prev&&d._next&&n(d),d._next=l._next,l._next._prev=d,l._next=d,d._prev=l},A.prototype.toString=function(){for(var d=[],l=this._sentinel,p=l._prev;p!==l;)d.push(JSON.stringify(p,r)),p=p._prev;return"["+d.join(", ")+"]"};function n(d){d._prev._next=d._next,d._next._prev=d._prev,delete d._next,delete d._prev}function r(d,l){if(d!=="_next"&&d!=="_prev")return l}},24376:(_,A,n)=>{var r=n(55766),d=n(74023),l=n(62396).Graph;_.exports={debugOrdering:p};function p(c){var g=d.buildLayerMatrix(c),m=new l({compound:!0,multigraph:!0}).setGraph({});return r.forEach(c.nodes(),function(f){m.setNode(f,{label:f}),m.setParent(f,"layer"+c.node(f).rank)}),r.forEach(c.edges(),function(f){m.setEdge(f.v,f.w,{},f.name)}),r.forEach(g,function(f,v){var x="layer"+v;m.setNode(x,{rank:"same"}),r.reduce(f,function(y,E){return m.setEdge(y,E,{style:"invis"}),E})}),m}},62396:(_,A,n)=>{var r;try{r=n(16381)}catch{}r||(r=window.graphlib),_.exports=r},44024:(_,A,n)=>{var r=n(55766),d=n(62396).Graph,l=n(50334);_.exports=c;var p=r.constant(1);function c(x,y){if(x.nodeCount()<=1)return[];var E=f(x,y||p),O=g(E.graph,E.buckets,E.zeroIdx);return r.flatten(r.map(O,function(N){return x.outEdges(N.v,N.w)}),!0)}function g(x,y,E){for(var O=[],N=y[y.length-1],j=y[0],B;x.nodeCount();){for(;B=j.dequeue();)m(x,y,E,B);for(;B=N.dequeue();)m(x,y,E,B);if(x.nodeCount()){for(var k=y.length-2;k>0;--k)if(B=y[k].dequeue(),B){O=O.concat(m(x,y,E,B,!0));break}}}return O}function m(x,y,E,O,N){var j=N?[]:void 0;return r.forEach(x.inEdges(O.v),function(B){var k=x.edge(B),P=x.node(B.v);N&&j.push({v:B.v,w:B.w}),P.out-=k,v(y,E,P)}),r.forEach(x.outEdges(O.v),function(B){var k=x.edge(B),P=B.w,L=x.node(P);L.in-=k,v(y,E,L)}),x.removeNode(O.v),j}function f(x,y){var E=new d,O=0,N=0;r.forEach(x.nodes(),function(k){E.setNode(k,{v:k,in:0,out:0})}),r.forEach(x.edges(),function(k){var P=E.edge(k.v,k.w)||0,L=y(k),F=P+L;E.setEdge(k.v,k.w,F),N=Math.max(N,E.node(k.v).out+=L),O=Math.max(O,E.node(k.w).in+=L)});var j=r.range(N+O+3).map(function(){return new l}),B=O+1;return r.forEach(E.nodes(),function(k){v(j,B,E.node(k))}),{graph:E,buckets:j,zeroIdx:B}}function v(x,y,E){E.out?E.in?x[E.out-E.in+y].enqueue(E):x[x.length-1].enqueue(E):x[0].enqueue(E)}},43685:(_,A,n)=>{"use strict";var r=n(55766),d=n(83452),l=n(19124),p=n(10006),c=n(74023).normalizeRanks,g=n(22241),m=n(74023).removeEmptyRanks,f=n(31916),v=n(23950),x=n(18579),y=n(75924),E=n(55491),O=n(74023),N=n(62396).Graph;_.exports=j;function j(oe,J){var le=J&&J.debugTiming?O.time:O.notime;le("layout",function(){var ke=le(" buildLayoutGraph",function(){return pe(oe)});le(" runLayout",function(){B(ke,le)}),le(" updateInputGraph",function(){k(oe,ke)})})}function B(oe,J){J(" makeSpaceForEdgeLabels",function(){de(oe)}),J(" removeSelfEdges",function(){dt(oe)}),J(" acyclic",function(){d.run(oe)}),J(" nestingGraph.run",function(){f.run(oe)}),J(" rank",function(){p(O.asNonCompoundGraph(oe))}),J(" injectEdgeLabelProxies",function(){ue(oe)}),J(" removeEmptyRanks",function(){m(oe)}),J(" nestingGraph.cleanup",function(){f.cleanup(oe)}),J(" normalizeRanks",function(){c(oe)}),J(" assignRankMinMax",function(){ye(oe)}),J(" removeEdgeLabelProxies",function(){te(oe)}),J(" normalize.run",function(){l.run(oe)}),J(" parentDummyChains",function(){g(oe)}),J(" addBorderSegments",function(){v(oe)}),J(" order",function(){y(oe)}),J(" insertSelfEdges",function(){pt(oe)}),J(" adjustCoordinateSystem",function(){x.adjust(oe)}),J(" position",function(){E(oe)}),J(" positionSelfEdges",function(){At(oe)}),J(" removeBorderNodes",function(){et(oe)}),J(" normalize.undo",function(){l.undo(oe)}),J(" fixupEdgeLabelCoords",function(){Be(oe)}),J(" undoCoordinateSystem",function(){x.undo(oe)}),J(" translateGraph",function(){Se(oe)}),J(" assignNodeIntersects",function(){De(oe)}),J(" reversePoints",function(){ut(oe)}),J(" acyclic.undo",function(){d.undo(oe)})}function k(oe,J){r.forEach(oe.nodes(),function(le){var ke=oe.node(le),Ge=J.node(le);ke&&(ke.x=Ge.x,ke.y=Ge.y,J.children(le).length&&(ke.width=Ge.width,ke.height=Ge.height))}),r.forEach(oe.edges(),function(le){var ke=oe.edge(le),Ge=J.edge(le);ke.points=Ge.points,r.has(Ge,"x")&&(ke.x=Ge.x,ke.y=Ge.y)}),oe.graph().width=J.graph().width,oe.graph().height=J.graph().height}var P=["nodesep","edgesep","ranksep","marginx","marginy"],L={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},F=["acyclicer","ranker","rankdir","align"],U=["width","height"],W={width:0,height:0},q=["minlen","weight","width","height","labeloffset"],re={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},he=["labelpos"];function pe(oe){var J=new N({multigraph:!0,compound:!0}),le=Rt(oe.graph());return J.setGraph(r.merge({},L,mt(le,P),r.pick(le,F))),r.forEach(oe.nodes(),function(ke){var Ge=Rt(oe.node(ke));J.setNode(ke,r.defaults(mt(Ge,U),W)),J.setParent(ke,oe.parent(ke))}),r.forEach(oe.edges(),function(ke){var Ge=Rt(oe.edge(ke));J.setEdge(ke,r.merge({},re,mt(Ge,q),r.pick(Ge,he)))}),J}function de(oe){var J=oe.graph();J.ranksep/=2,r.forEach(oe.edges(),function(le){var ke=oe.edge(le);ke.minlen*=2,ke.labelpos.toLowerCase()!=="c"&&(J.rankdir==="TB"||J.rankdir==="BT"?ke.width+=ke.labeloffset:ke.height+=ke.labeloffset)})}function ue(oe){r.forEach(oe.edges(),function(J){var le=oe.edge(J);if(le.width&&le.height){var ke=oe.node(J.v),Ge=oe.node(J.w),Ze={rank:(Ge.rank-ke.rank)/2+ke.rank,e:J};O.addDummyNode(oe,"edge-proxy",Ze,"_ep")}})}function ye(oe){var J=0;r.forEach(oe.nodes(),function(le){var ke=oe.node(le);ke.borderTop&&(ke.minRank=oe.node(ke.borderTop).rank,ke.maxRank=oe.node(ke.borderBottom).rank,J=r.max(J,ke.maxRank))}),oe.graph().maxRank=J}function te(oe){r.forEach(oe.nodes(),function(J){var le=oe.node(J);le.dummy==="edge-proxy"&&(oe.edge(le.e).labelRank=le.rank,oe.removeNode(J))})}function Se(oe){var J=Number.POSITIVE_INFINITY,le=0,ke=Number.POSITIVE_INFINITY,Ge=0,Ze=oe.graph(),rt=Ze.marginx||0,wt=Ze.marginy||0;function tn(ht){var ot=ht.x,Ye=ht.y,kt=ht.width,He=ht.height;J=Math.min(J,ot-kt/2),le=Math.max(le,ot+kt/2),ke=Math.min(ke,Ye-He/2),Ge=Math.max(Ge,Ye+He/2)}r.forEach(oe.nodes(),function(ht){tn(oe.node(ht))}),r.forEach(oe.edges(),function(ht){var ot=oe.edge(ht);r.has(ot,"x")&&tn(ot)}),J-=rt,ke-=wt,r.forEach(oe.nodes(),function(ht){var ot=oe.node(ht);ot.x-=J,ot.y-=ke}),r.forEach(oe.edges(),function(ht){var ot=oe.edge(ht);r.forEach(ot.points,function(Ye){Ye.x-=J,Ye.y-=ke}),r.has(ot,"x")&&(ot.x-=J),r.has(ot,"y")&&(ot.y-=ke)}),Ze.width=le-J+rt,Ze.height=Ge-ke+wt}function De(oe){r.forEach(oe.edges(),function(J){var le=oe.edge(J),ke=oe.node(J.v),Ge=oe.node(J.w),Ze,rt;le.points?(Ze=le.points[0],rt=le.points[le.points.length-1]):(le.points=[],Ze=Ge,rt=ke),le.points.unshift(O.intersectRect(ke,Ze)),le.points.push(O.intersectRect(Ge,rt))})}function Be(oe){r.forEach(oe.edges(),function(J){var le=oe.edge(J);if(r.has(le,"x"))switch((le.labelpos==="l"||le.labelpos==="r")&&(le.width-=le.labeloffset),le.labelpos){case"l":le.x-=le.width/2+le.labeloffset;break;case"r":le.x+=le.width/2+le.labeloffset;break}})}function ut(oe){r.forEach(oe.edges(),function(J){var le=oe.edge(J);le.reversed&&le.points.reverse()})}function et(oe){r.forEach(oe.nodes(),function(J){if(oe.children(J).length){var le=oe.node(J),ke=oe.node(le.borderTop),Ge=oe.node(le.borderBottom),Ze=oe.node(r.last(le.borderLeft)),rt=oe.node(r.last(le.borderRight));le.width=Math.abs(rt.x-Ze.x),le.height=Math.abs(Ge.y-ke.y),le.x=Ze.x+le.width/2,le.y=ke.y+le.height/2}}),r.forEach(oe.nodes(),function(J){oe.node(J).dummy==="border"&&oe.removeNode(J)})}function dt(oe){r.forEach(oe.edges(),function(J){if(J.v===J.w){var le=oe.node(J.v);le.selfEdges||(le.selfEdges=[]),le.selfEdges.push({e:J,label:oe.edge(J)}),oe.removeEdge(J)}})}function pt(oe){var J=O.buildLayerMatrix(oe);r.forEach(J,function(le){var ke=0;r.forEach(le,function(Ge,Ze){var rt=oe.node(Ge);rt.order=Ze+ke,r.forEach(rt.selfEdges,function(wt){O.addDummyNode(oe,"selfedge",{width:wt.label.width,height:wt.label.height,rank:rt.rank,order:Ze+ ++ke,e:wt.e,label:wt.label},"_se")}),delete rt.selfEdges})})}function At(oe){r.forEach(oe.nodes(),function(J){var le=oe.node(J);if(le.dummy==="selfedge"){var ke=oe.node(le.e.v),Ge=ke.x+ke.width/2,Ze=ke.y,rt=le.x-Ge,wt=ke.height/2;oe.setEdge(le.e,le.label),oe.removeNode(J),le.label.points=[{x:Ge+2*rt/3,y:Ze-wt},{x:Ge+5*rt/6,y:Ze-wt},{x:Ge+rt,y:Ze},{x:Ge+5*rt/6,y:Ze+wt},{x:Ge+2*rt/3,y:Ze+wt}],le.label.x=le.x,le.label.y=le.y}})}function mt(oe,J){return r.mapValues(r.pick(oe,J),Number)}function Rt(oe){var J={};return r.forEach(oe,function(le,ke){J[ke.toLowerCase()]=le}),J}},55766:(_,A,n)=>{var r;try{r={cloneDeep:n(46108),constant:n(82619),defaults:n(32293),each:n(4642),filter:n(57581),find:n(81936),flatten:n(75857),forEach:n(83657),forIn:n(68371),has:n(52103),isUndefined:n(58771),last:n(98087),map:n(40105),mapValues:n(46155),max:n(47217),merge:n(4832),min:n(7011),minBy:n(40690),now:n(94495),pick:n(74874),range:n(73758),reduce:n(90769),sortBy:n(40074),uniqueId:n(38285),values:n(39817),zipObject:n(21595)}}catch{}r||(r=window._),_.exports=r},31916:(_,A,n)=>{var r=n(55766),d=n(74023);_.exports={run:l,cleanup:m};function l(f){var v=d.addDummyNode(f,"root",{},"_root"),x=c(f),y=r.max(r.values(x))-1,E=2*y+1;f.graph().nestingRoot=v,r.forEach(f.edges(),function(N){f.edge(N).minlen*=E});var O=g(f)+1;r.forEach(f.children(),function(N){p(f,v,E,O,y,x,N)}),f.graph().nodeRankFactor=E}function p(f,v,x,y,E,O,N){var j=f.children(N);if(!j.length){N!==v&&f.setEdge(v,N,{weight:0,minlen:x});return}var B=d.addBorderNode(f,"_bt"),k=d.addBorderNode(f,"_bb"),P=f.node(N);f.setParent(B,N),P.borderTop=B,f.setParent(k,N),P.borderBottom=k,r.forEach(j,function(L){p(f,v,x,y,E,O,L);var F=f.node(L),U=F.borderTop?F.borderTop:L,W=F.borderBottom?F.borderBottom:L,q=F.borderTop?y:2*y,re=U!==W?1:E-O[N]+1;f.setEdge(B,U,{weight:q,minlen:re,nestingEdge:!0}),f.setEdge(W,k,{weight:q,minlen:re,nestingEdge:!0})}),f.parent(N)||f.setEdge(v,B,{weight:0,minlen:E+O[N]})}function c(f){var v={};function x(y,E){var O=f.children(y);O&&O.length&&r.forEach(O,function(N){x(N,E+1)}),v[y]=E}return r.forEach(f.children(),function(y){x(y,1)}),v}function g(f){return r.reduce(f.edges(),function(v,x){return v+f.edge(x).weight},0)}function m(f){var v=f.graph();f.removeNode(v.nestingRoot),delete v.nestingRoot,r.forEach(f.edges(),function(x){var y=f.edge(x);y.nestingEdge&&f.removeEdge(x)})}},19124:(_,A,n)=>{"use strict";var r=n(55766),d=n(74023);_.exports={run:l,undo:c};function l(g){g.graph().dummyChains=[],r.forEach(g.edges(),function(m){p(g,m)})}function p(g,m){var f=m.v,v=g.node(f).rank,x=m.w,y=g.node(x).rank,E=m.name,O=g.edge(m),N=O.labelRank;if(y!==v+1){g.removeEdge(m);var j,B,k;for(k=0,++v;v<y;++k,++v)O.points=[],B={width:0,height:0,edgeLabel:O,edgeObj:m,rank:v},j=d.addDummyNode(g,"edge",B,"_d"),v===N&&(B.width=O.width,B.height=O.height,B.dummy="edge-label",B.labelpos=O.labelpos),g.setEdge(f,j,{weight:O.weight},E),k===0&&g.graph().dummyChains.push(j),f=j;g.setEdge(f,x,{weight:O.weight},E)}}function c(g){r.forEach(g.graph().dummyChains,function(m){var f=g.node(m),v=f.edgeLabel,x;for(g.setEdge(f.edgeObj,v);f.dummy;)x=g.successors(m)[0],g.removeNode(m),v.points.push({x:f.x,y:f.y}),f.dummy==="edge-label"&&(v.x=f.x,v.y=f.y,v.width=f.width,v.height=f.height),m=x,f=g.node(m)})}},17319:(_,A,n)=>{var r=n(55766);_.exports=d;function d(l,p,c){var g={},m;r.forEach(c,function(f){for(var v=l.parent(f),x,y;v;){if(x=l.parent(v),x?(y=g[x],g[x]=v):(y=m,m=v),y&&y!==v){p.setEdge(y,v);return}v=x}})}},59035:(_,A,n)=>{var r=n(55766);_.exports=d;function d(l,p){return r.map(p,function(c){var g=l.inEdges(c);if(g.length){var m=r.reduce(g,function(f,v){var x=l.edge(v),y=l.node(v.v);return{sum:f.sum+x.weight*y.order,weight:f.weight+x.weight}},{sum:0,weight:0});return{v:c,barycenter:m.sum/m.weight,weight:m.weight}}else return{v:c}})}},52197:(_,A,n)=>{var r=n(55766),d=n(62396).Graph;_.exports=l;function l(c,g,m){var f=p(c),v=new d({compound:!0}).setGraph({root:f}).setDefaultNodeLabel(function(x){return c.node(x)});return r.forEach(c.nodes(),function(x){var y=c.node(x),E=c.parent(x);(y.rank===g||y.minRank<=g&&g<=y.maxRank)&&(v.setNode(x),v.setParent(x,E||f),r.forEach(c[m](x),function(O){var N=O.v===x?O.w:O.v,j=v.edge(N,x),B=r.isUndefined(j)?0:j.weight;v.setEdge(N,x,{weight:c.edge(O).weight+B})}),r.has(y,"minRank")&&v.setNode(x,{borderLeft:y.borderLeft[g],borderRight:y.borderRight[g]}))}),v}function p(c){for(var g;c.hasNode(g=r.uniqueId("_root")););return g}},98886:(_,A,n)=>{"use strict";var r=n(55766);_.exports=d;function d(p,c){for(var g=0,m=1;m<c.length;++m)g+=l(p,c[m-1],c[m]);return g}function l(p,c,g){for(var m=r.zipObject(g,r.map(g,function(O,N){return N})),f=r.flatten(r.map(c,function(O){return r.sortBy(r.map(p.outEdges(O),function(N){return{pos:m[N.w],weight:p.edge(N).weight}}),"pos")}),!0),v=1;v<g.length;)v<<=1;var x=2*v-1;v-=1;var y=r.map(new Array(x),function(){return 0}),E=0;return r.forEach(f.forEach(function(O){var N=O.pos+v;y[N]+=O.weight;for(var j=0;N>0;)N%2&&(j+=y[N+1]),N=N-1>>1,y[N]+=O.weight;E+=O.weight*j})),E}},75924:(_,A,n)=>{"use strict";var r=n(55766),d=n(97721),l=n(98886),p=n(33661),c=n(52197),g=n(17319),m=n(62396).Graph,f=n(74023);_.exports=v;function v(O){var N=f.maxRank(O),j=x(O,r.range(1,N+1),"inEdges"),B=x(O,r.range(N-1,-1,-1),"outEdges"),k=d(O);E(O,k);for(var P=Number.POSITIVE_INFINITY,L,F=0,U=0;U<4;++F,++U){y(F%2?j:B,F%4>=2),k=f.buildLayerMatrix(O);var W=l(O,k);W<P&&(U=0,L=r.cloneDeep(k),P=W)}E(O,L)}function x(O,N,j){return r.map(N,function(B){return c(O,B,j)})}function y(O,N){var j=new m;r.forEach(O,function(B){var k=B.graph().root,P=p(B,k,j,N);r.forEach(P.vs,function(L,F){B.node(L).order=F}),g(B,j,P.vs)})}function E(O,N){r.forEach(N,function(j){r.forEach(j,function(B,k){O.node(B).order=k})})}},97721:(_,A,n)=>{"use strict";var r=n(55766);_.exports=d;function d(l){var p={},c=r.filter(l.nodes(),function(x){return!l.children(x).length}),g=r.max(r.map(c,function(x){return l.node(x).rank})),m=r.map(r.range(g+1),function(){return[]});function f(x){if(!r.has(p,x)){p[x]=!0;var y=l.node(x);m[y.rank].push(x),r.forEach(l.successors(x),f)}}var v=r.sortBy(c,function(x){return l.node(x).rank});return r.forEach(v,f),m}},65758:(_,A,n)=>{"use strict";var r=n(55766);_.exports=d;function d(c,g){var m={};r.forEach(c,function(v,x){var y=m[v.v]={indegree:0,in:[],out:[],vs:[v.v],i:x};r.isUndefined(v.barycenter)||(y.barycenter=v.barycenter,y.weight=v.weight)}),r.forEach(g.edges(),function(v){var x=m[v.v],y=m[v.w];!r.isUndefined(x)&&!r.isUndefined(y)&&(y.indegree++,x.out.push(m[v.w]))});var f=r.filter(m,function(v){return!v.indegree});return l(f)}function l(c){var g=[];function m(x){return function(y){y.merged||(r.isUndefined(y.barycenter)||r.isUndefined(x.barycenter)||y.barycenter>=x.barycenter)&&p(x,y)}}function f(x){return function(y){y.in.push(x),--y.indegree===0&&c.push(y)}}for(;c.length;){var v=c.pop();g.push(v),r.forEach(v.in.reverse(),m(v)),r.forEach(v.out,f(v))}return r.map(r.filter(g,function(x){return!x.merged}),function(x){return r.pick(x,["vs","i","barycenter","weight"])})}function p(c,g){var m=0,f=0;c.weight&&(m+=c.barycenter*c.weight,f+=c.weight),g.weight&&(m+=g.barycenter*g.weight,f+=g.weight),c.vs=g.vs.concat(c.vs),c.barycenter=m/f,c.weight=f,c.i=Math.min(g.i,c.i),g.merged=!0}},33661:(_,A,n)=>{var r=n(55766),d=n(59035),l=n(65758),p=n(83374);_.exports=c;function c(f,v,x,y){var E=f.children(v),O=f.node(v),N=O?O.borderLeft:void 0,j=O?O.borderRight:void 0,B={};N&&(E=r.filter(E,function(W){return W!==N&&W!==j}));var k=d(f,E);r.forEach(k,function(W){if(f.children(W.v).length){var q=c(f,W.v,x,y);B[W.v]=q,r.has(q,"barycenter")&&m(W,q)}});var P=l(k,x);g(P,B);var L=p(P,y);if(N&&(L.vs=r.flatten([N,L.vs,j],!0),f.predecessors(N).length)){var F=f.node(f.predecessors(N)[0]),U=f.node(f.predecessors(j)[0]);r.has(L,"barycenter")||(L.barycenter=0,L.weight=0),L.barycenter=(L.barycenter*L.weight+F.order+U.order)/(L.weight+2),L.weight+=2}return L}function g(f,v){r.forEach(f,function(x){x.vs=r.flatten(x.vs.map(function(y){return v[y]?v[y].vs:y}),!0)})}function m(f,v){r.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)}},83374:(_,A,n)=>{var r=n(55766),d=n(74023);_.exports=l;function l(g,m){var f=d.partition(g,function(B){return r.has(B,"barycenter")}),v=f.lhs,x=r.sortBy(f.rhs,function(B){return-B.i}),y=[],E=0,O=0,N=0;v.sort(c(!!m)),N=p(y,x,N),r.forEach(v,function(B){N+=B.vs.length,y.push(B.vs),E+=B.barycenter*B.weight,O+=B.weight,N=p(y,x,N)});var j={vs:r.flatten(y,!0)};return O&&(j.barycenter=E/O,j.weight=O),j}function p(g,m,f){for(var v;m.length&&(v=r.last(m)).i<=f;)m.pop(),g.push(v.vs),f++;return f}function c(g){return function(m,f){return m.barycenter<f.barycenter?-1:m.barycenter>f.barycenter?1:g?f.i-m.i:m.i-f.i}}},22241:(_,A,n)=>{var r=n(55766);_.exports=d;function d(c){var g=p(c);r.forEach(c.graph().dummyChains,function(m){for(var f=c.node(m),v=f.edgeObj,x=l(c,g,v.v,v.w),y=x.path,E=x.lca,O=0,N=y[O],j=!0;m!==v.w;){if(f=c.node(m),j){for(;(N=y[O])!==E&&c.node(N).maxRank<f.rank;)O++;N===E&&(j=!1)}if(!j){for(;O<y.length-1&&c.node(N=y[O+1]).minRank<=f.rank;)O++;N=y[O]}c.setParent(m,N),m=c.successors(m)[0]}})}function l(c,g,m,f){var v=[],x=[],y=Math.min(g[m].low,g[f].low),E=Math.max(g[m].lim,g[f].lim),O,N;O=m;do O=c.parent(O),v.push(O);while(O&&(g[O].low>y||E>g[O].lim));for(N=O,O=f;(O=c.parent(O))!==N;)x.push(O);return{path:v.concat(x.reverse()),lca:N}}function p(c){var g={},m=0;function f(v){var x=m;r.forEach(c.children(v),f),g[v]={low:x,lim:m++}}return r.forEach(c.children(),f),g}},30132:(_,A,n)=>{"use strict";var r=n(55766),d=n(62396).Graph,l=n(74023);_.exports={positionX:j,findType1Conflicts:p,findType2Conflicts:c,addConflict:m,hasConflict:f,verticalAlignment:v,horizontalCompaction:x,alignCoordinates:O,findSmallestWidthAlignment:E,balance:N};function p(P,L){var F={};function U(W,q){var re=0,he=0,pe=W.length,de=r.last(q);return r.forEach(q,function(ue,ye){var te=g(P,ue),Se=te?P.node(te).order:pe;(te||ue===de)&&(r.forEach(q.slice(he,ye+1),function(De){r.forEach(P.predecessors(De),function(Be){var ut=P.node(Be),et=ut.order;(et<re||Se<et)&&!(ut.dummy&&P.node(De).dummy)&&m(F,Be,De)})}),he=ye+1,re=Se)}),q}return r.reduce(L,U),F}function c(P,L){var F={};function U(q,re,he,pe,de){var ue;r.forEach(r.range(re,he),function(ye){ue=q[ye],P.node(ue).dummy&&r.forEach(P.predecessors(ue),function(te){var Se=P.node(te);Se.dummy&&(Se.order<pe||Se.order>de)&&m(F,te,ue)})})}function W(q,re){var he=-1,pe,de=0;return r.forEach(re,function(ue,ye){if(P.node(ue).dummy==="border"){var te=P.predecessors(ue);te.length&&(pe=P.node(te[0]).order,U(re,de,ye,he,pe),de=ye,he=pe)}U(re,de,re.length,pe,q.length)}),re}return r.reduce(L,W),F}function g(P,L){if(P.node(L).dummy)return r.find(P.predecessors(L),function(F){return P.node(F).dummy})}function m(P,L,F){if(L>F){var U=L;L=F,F=U}var W=P[L];W||(P[L]=W={}),W[F]=!0}function f(P,L,F){if(L>F){var U=L;L=F,F=U}return r.has(P[L],F)}function v(P,L,F,U){var W={},q={},re={};return r.forEach(L,function(he){r.forEach(he,function(pe,de){W[pe]=pe,q[pe]=pe,re[pe]=de})}),r.forEach(L,function(he){var pe=-1;r.forEach(he,function(de){var ue=U(de);if(ue.length){ue=r.sortBy(ue,function(Be){return re[Be]});for(var ye=(ue.length-1)/2,te=Math.floor(ye),Se=Math.ceil(ye);te<=Se;++te){var De=ue[te];q[de]===de&&pe<re[De]&&!f(F,de,De)&&(q[De]=de,q[de]=W[de]=W[De],pe=re[De])}}})}),{root:W,align:q}}function x(P,L,F,U,W){var q={},re=y(P,L,F,W),he=W?"borderLeft":"borderRight";function pe(ye,te){for(var Se=re.nodes(),De=Se.pop(),Be={};De;)Be[De]?ye(De):(Be[De]=!0,Se.push(De),Se=Se.concat(te(De))),De=Se.pop()}function de(ye){q[ye]=re.inEdges(ye).reduce(function(te,Se){return Math.max(te,q[Se.v]+re.edge(Se))},0)}function ue(ye){var te=re.outEdges(ye).reduce(function(De,Be){return Math.min(De,q[Be.w]-re.edge(Be))},Number.POSITIVE_INFINITY),Se=P.node(ye);te!==Number.POSITIVE_INFINITY&&Se.borderType!==he&&(q[ye]=Math.max(q[ye],te))}return pe(de,re.predecessors.bind(re)),pe(ue,re.successors.bind(re)),r.forEach(U,function(ye){q[ye]=q[F[ye]]}),q}function y(P,L,F,U){var W=new d,q=P.graph(),re=B(q.nodesep,q.edgesep,U);return r.forEach(L,function(he){var pe;r.forEach(he,function(de){var ue=F[de];if(W.setNode(ue),pe){var ye=F[pe],te=W.edge(ye,ue);W.setEdge(ye,ue,Math.max(re(P,de,pe),te||0))}pe=de})}),W}function E(P,L){return r.minBy(r.values(L),function(F){var U=Number.NEGATIVE_INFINITY,W=Number.POSITIVE_INFINITY;return r.forIn(F,function(q,re){var he=k(P,re)/2;U=Math.max(q+he,U),W=Math.min(q-he,W)}),U-W})}function O(P,L){var F=r.values(L),U=r.min(F),W=r.max(F);r.forEach(["u","d"],function(q){r.forEach(["l","r"],function(re){var he=q+re,pe=P[he],de;if(pe!==L){var ue=r.values(pe);de=re==="l"?U-r.min(ue):W-r.max(ue),de&&(P[he]=r.mapValues(pe,function(ye){return ye+de}))}})})}function N(P,L){return r.mapValues(P.ul,function(F,U){if(L)return P[L.toLowerCase()][U];var W=r.sortBy(r.map(P,U));return(W[1]+W[2])/2})}function j(P){var L=l.buildLayerMatrix(P),F=r.merge(p(P,L),c(P,L)),U={},W;r.forEach(["u","d"],function(re){W=re==="u"?L:r.values(L).reverse(),r.forEach(["l","r"],function(he){he==="r"&&(W=r.map(W,function(ye){return r.values(ye).reverse()}));var pe=(re==="u"?P.predecessors:P.successors).bind(P),de=v(P,W,F,pe),ue=x(P,W,de.root,de.align,he==="r");he==="r"&&(ue=r.mapValues(ue,function(ye){return-ye})),U[re+he]=ue})});var q=E(P,U);return O(U,q),N(U,P.graph().align)}function B(P,L,F){return function(U,W,q){var re=U.node(W),he=U.node(q),pe=0,de;if(pe+=re.width/2,r.has(re,"labelpos"))switch(re.labelpos.toLowerCase()){case"l":de=-re.width/2;break;case"r":de=re.width/2;break}if(de&&(pe+=F?de:-de),de=0,pe+=(re.dummy?L:P)/2,pe+=(he.dummy?L:P)/2,pe+=he.width/2,r.has(he,"labelpos"))switch(he.labelpos.toLowerCase()){case"l":de=he.width/2;break;case"r":de=-he.width/2;break}return de&&(pe+=F?de:-de),de=0,pe}}function k(P,L){return P.node(L).width}},55491:(_,A,n)=>{"use strict";var r=n(55766),d=n(74023),l=n(30132).positionX;_.exports=p;function p(g){g=d.asNonCompoundGraph(g),c(g),r.forEach(l(g),function(m,f){g.node(f).x=m})}function c(g){var m=d.buildLayerMatrix(g),f=g.graph().ranksep,v=0;r.forEach(m,function(x){var y=r.max(r.map(x,function(E){return g.node(E).height}));r.forEach(x,function(E){g.node(E).y=v+y/2}),v+=y+f})}},15606:(_,A,n)=>{"use strict";var r=n(55766),d=n(62396).Graph,l=n(25672).slack;_.exports=p;function p(f){var v=new d({directed:!1}),x=f.nodes()[0],y=f.nodeCount();v.setNode(x,{});for(var E,O;c(v,f)<y;)E=g(v,f),O=v.hasNode(E.v)?l(f,E):-l(f,E),m(v,f,O);return v}function c(f,v){function x(y){r.forEach(v.nodeEdges(y),function(E){var O=E.v,N=y===O?E.w:O;!f.hasNode(N)&&!l(v,E)&&(f.setNode(N,{}),f.setEdge(y,N,{}),x(N))})}return r.forEach(f.nodes(),x),f.nodeCount()}function g(f,v){return r.minBy(v.edges(),function(x){if(f.hasNode(x.v)!==f.hasNode(x.w))return l(v,x)})}function m(f,v,x){r.forEach(f.nodes(),function(y){v.node(y).rank+=x})}},10006:(_,A,n)=>{"use strict";var r=n(25672),d=r.longestPath,l=n(15606),p=n(26840);_.exports=c;function c(v){switch(v.graph().ranker){case"network-simplex":f(v);break;case"tight-tree":m(v);break;case"longest-path":g(v);break;default:f(v)}}var g=d;function m(v){d(v),l(v)}function f(v){p(v)}},26840:(_,A,n)=>{"use strict";var r=n(55766),d=n(15606),l=n(25672).slack,p=n(25672).longestPath,c=n(62396).alg.preorder,g=n(62396).alg.postorder,m=n(74023).simplify;_.exports=f,f.initLowLimValues=E,f.initCutValues=v,f.calcCutValue=y,f.leaveEdge=N,f.enterEdge=j,f.exchangeEdges=B;function f(F){F=m(F),p(F);var U=d(F);E(U),v(U,F);for(var W,q;W=N(U);)q=j(U,F,W),B(U,F,W,q)}function v(F,U){var W=g(F,F.nodes());W=W.slice(0,W.length-1),r.forEach(W,function(q){x(F,U,q)})}function x(F,U,W){var q=F.node(W),re=q.parent;F.edge(W,re).cutvalue=y(F,U,W)}function y(F,U,W){var q=F.node(W),re=q.parent,he=!0,pe=U.edge(W,re),de=0;return pe||(he=!1,pe=U.edge(re,W)),de=pe.weight,r.forEach(U.nodeEdges(W),function(ue){var ye=ue.v===W,te=ye?ue.w:ue.v;if(te!==re){var Se=ye===he,De=U.edge(ue).weight;if(de+=Se?De:-De,P(F,W,te)){var Be=F.edge(W,te).cutvalue;de+=Se?-Be:Be}}}),de}function E(F,U){arguments.length<2&&(U=F.nodes()[0]),O(F,{},1,U)}function O(F,U,W,q,re){var he=W,pe=F.node(q);return U[q]=!0,r.forEach(F.neighbors(q),function(de){r.has(U,de)||(W=O(F,U,W,de,q))}),pe.low=he,pe.lim=W++,re?pe.parent=re:delete pe.parent,W}function N(F){return r.find(F.edges(),function(U){return F.edge(U).cutvalue<0})}function j(F,U,W){var q=W.v,re=W.w;U.hasEdge(q,re)||(q=W.w,re=W.v);var he=F.node(q),pe=F.node(re),de=he,ue=!1;he.lim>pe.lim&&(de=pe,ue=!0);var ye=r.filter(U.edges(),function(te){return ue===L(F,F.node(te.v),de)&&ue!==L(F,F.node(te.w),de)});return r.minBy(ye,function(te){return l(U,te)})}function B(F,U,W,q){var re=W.v,he=W.w;F.removeEdge(re,he),F.setEdge(q.v,q.w,{}),E(F),v(F,U),k(F,U)}function k(F,U){var W=r.find(F.nodes(),function(re){return!U.node(re).parent}),q=c(F,W);q=q.slice(1),r.forEach(q,function(re){var he=F.node(re).parent,pe=U.edge(re,he),de=!1;pe||(pe=U.edge(he,re),de=!0),U.node(re).rank=U.node(he).rank+(de?pe.minlen:-pe.minlen)})}function P(F,U,W){return F.hasEdge(U,W)}function L(F,U,W){return W.low<=U.lim&&U.lim<=W.lim}},25672:(_,A,n)=>{"use strict";var r=n(55766);_.exports={longestPath:d,slack:l};function d(p){var c={};function g(m){var f=p.node(m);if(r.has(c,m))return f.rank;c[m]=!0;var v=r.min(r.map(p.outEdges(m),function(x){return g(x.w)-p.edge(x).minlen}));return(v===Number.POSITIVE_INFINITY||v===void 0||v===null)&&(v=0),f.rank=v}r.forEach(p.sources(),g)}function l(p,c){return p.node(c.w).rank-p.node(c.v).rank-p.edge(c).minlen}},74023:(_,A,n)=>{"use strict";var r=n(55766),d=n(62396).Graph;_.exports={addDummyNode:l,simplify:p,asNonCompoundGraph:c,successorWeights:g,predecessorWeights:m,intersectRect:f,buildLayerMatrix:v,normalizeRanks:x,removeEmptyRanks:y,addBorderNode:E,maxRank:O,partition:N,time:j,notime:B};function l(k,P,L,F){var U;do U=r.uniqueId(F);while(k.hasNode(U));return L.dummy=P,k.setNode(U,L),U}function p(k){var P=new d().setGraph(k.graph());return r.forEach(k.nodes(),function(L){P.setNode(L,k.node(L))}),r.forEach(k.edges(),function(L){var F=P.edge(L.v,L.w)||{weight:0,minlen:1},U=k.edge(L);P.setEdge(L.v,L.w,{weight:F.weight+U.weight,minlen:Math.max(F.minlen,U.minlen)})}),P}function c(k){var P=new d({multigraph:k.isMultigraph()}).setGraph(k.graph());return r.forEach(k.nodes(),function(L){k.children(L).length||P.setNode(L,k.node(L))}),r.forEach(k.edges(),function(L){P.setEdge(L,k.edge(L))}),P}function g(k){var P=r.map(k.nodes(),function(L){var F={};return r.forEach(k.outEdges(L),function(U){F[U.w]=(F[U.w]||0)+k.edge(U).weight}),F});return r.zipObject(k.nodes(),P)}function m(k){var P=r.map(k.nodes(),function(L){var F={};return r.forEach(k.inEdges(L),function(U){F[U.v]=(F[U.v]||0)+k.edge(U).weight}),F});return r.zipObject(k.nodes(),P)}function f(k,P){var L=k.x,F=k.y,U=P.x-L,W=P.y-F,q=k.width/2,re=k.height/2;if(!U&&!W)throw new Error("Not possible to find intersection inside of the rectangle");var he,pe;return Math.abs(W)*q>Math.abs(U)*re?(W<0&&(re=-re),he=re*U/W,pe=re):(U<0&&(q=-q),he=q,pe=q*W/U),{x:L+he,y:F+pe}}function v(k){var P=r.map(r.range(O(k)+1),function(){return[]});return r.forEach(k.nodes(),function(L){var F=k.node(L),U=F.rank;r.isUndefined(U)||(P[U][F.order]=L)}),P}function x(k){var P=r.min(r.map(k.nodes(),function(L){return k.node(L).rank}));r.forEach(k.nodes(),function(L){var F=k.node(L);r.has(F,"rank")&&(F.rank-=P)})}function y(k){var P=r.min(r.map(k.nodes(),function(W){return k.node(W).rank})),L=[];r.forEach(k.nodes(),function(W){var q=k.node(W).rank-P;L[q]||(L[q]=[]),L[q].push(W)});var F=0,U=k.graph().nodeRankFactor;r.forEach(L,function(W,q){r.isUndefined(W)&&q%U!==0?--F:F&&r.forEach(W,function(re){k.node(re).rank+=F})})}function E(k,P,L,F){var U={width:0,height:0};return arguments.length>=4&&(U.rank=L,U.order=F),l(k,"border",U,P)}function O(k){return r.max(r.map(k.nodes(),function(P){var L=k.node(P).rank;if(!r.isUndefined(L))return L}))}function N(k,P){var L={lhs:[],rhs:[]};return r.forEach(k,function(F){P(F)?L.lhs.push(F):L.rhs.push(F)}),L}function j(k,P){var L=r.now();try{return P()}finally{console.log(k+" time: "+(r.now()-L)+"ms")}}function B(k,P){return P()}},63639:_=>{_.exports="0.8.5"},16381:(_,A,n)=>{var r=n(35909);_.exports={Graph:r.Graph,json:n(45431),alg:n(26228),version:r.version}},35430:(_,A,n)=>{var r=n(6364);_.exports=d;function d(l){var p={},c=[],g;function m(f){r.has(p,f)||(p[f]=!0,g.push(f),r.each(l.successors(f),m),r.each(l.predecessors(f),m))}return r.each(l.nodes(),function(f){g=[],m(f),g.length&&c.push(g)}),c}},91487:(_,A,n)=>{var r=n(6364);_.exports=d;function d(p,c,g){r.isArray(c)||(c=[c]);var m=(p.isDirected()?p.successors:p.neighbors).bind(p),f=[],v={};return r.each(c,function(x){if(!p.hasNode(x))throw new Error("Graph does not have node: "+x);l(p,x,g==="post",v,m,f)}),f}function l(p,c,g,m,f,v){r.has(m,c)||(m[c]=!0,g||v.push(c),r.each(f(c),function(x){l(p,x,g,m,f,v)}),g&&v.push(c))}},56318:(_,A,n)=>{var r=n(43484),d=n(6364);_.exports=l;function l(p,c,g){return d.transform(p.nodes(),function(m,f){m[f]=r(p,f,c,g)},{})}},43484:(_,A,n)=>{var r=n(6364),d=n(17198);_.exports=p;var l=r.constant(1);function p(g,m,f,v){return c(g,String(m),f||l,v||function(x){return g.outEdges(x)})}function c(g,m,f,v){var x={},y=new d,E,O,N=function(j){var B=j.v!==E?j.v:j.w,k=x[B],P=f(j),L=O.distance+P;if(P<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+j+" Weight: "+P);L<k.distance&&(k.distance=L,k.predecessor=E,y.decrease(B,L))};for(g.nodes().forEach(function(j){var B=j===m?0:Number.POSITIVE_INFINITY;x[j]={distance:B},y.add(j,B)});y.size()>0&&(E=y.removeMin(),O=x[E],O.distance!==Number.POSITIVE_INFINITY);)v(E).forEach(N);return x}},7189:(_,A,n)=>{var r=n(6364),d=n(2570);_.exports=l;function l(p){return r.filter(d(p),function(c){return c.length>1||c.length===1&&p.hasEdge(c[0],c[0])})}},57187:(_,A,n)=>{var r=n(6364);_.exports=l;var d=r.constant(1);function l(c,g,m){return p(c,g||d,m||function(f){return c.outEdges(f)})}function p(c,g,m){var f={},v=c.nodes();return v.forEach(function(x){f[x]={},f[x][x]={distance:0},v.forEach(function(y){x!==y&&(f[x][y]={distance:Number.POSITIVE_INFINITY})}),m(x).forEach(function(y){var E=y.v===x?y.w:y.v,O=g(y);f[x][E]={distance:O,predecessor:x}})}),v.forEach(function(x){var y=f[x];v.forEach(function(E){var O=f[E];v.forEach(function(N){var j=O[x],B=y[N],k=O[N],P=j.distance+B.distance;P<k.distance&&(k.distance=P,k.predecessor=B.predecessor)})})}),f}},26228:(_,A,n)=>{_.exports={components:n(35430),dijkstra:n(43484),dijkstraAll:n(56318),findCycles:n(7189),floydWarshall:n(57187),isAcyclic:n(93143),postorder:n(3030),preorder:n(27693),prim:n(34586),tarjan:n(2570),topsort:n(65403)}},93143:(_,A,n)=>{var r=n(65403);_.exports=d;function d(l){try{r(l)}catch(p){if(p instanceof r.CycleException)return!1;throw p}return!0}},3030:(_,A,n)=>{var r=n(91487);_.exports=d;function d(l,p){return r(l,p,"post")}},27693:(_,A,n)=>{var r=n(91487);_.exports=d;function d(l,p){return r(l,p,"pre")}},34586:(_,A,n)=>{var r=n(6364),d=n(97025),l=n(17198);_.exports=p;function p(c,g){var m=new d,f={},v=new l,x;function y(O){var N=O.v===x?O.w:O.v,j=v.priority(N);if(j!==void 0){var B=g(O);B<j&&(f[N]=x,v.decrease(N,B))}}if(c.nodeCount()===0)return m;r.each(c.nodes(),function(O){v.add(O,Number.POSITIVE_INFINITY),m.setNode(O)}),v.decrease(c.nodes()[0],0);for(var E=!1;v.size()>0;){if(x=v.removeMin(),r.has(f,x))m.setEdge(x,f[x]);else{if(E)throw new Error("Input graph is not connected: "+c);E=!0}c.nodeEdges(x).forEach(y)}return m}},2570:(_,A,n)=>{var r=n(6364);_.exports=d;function d(l){var p=0,c=[],g={},m=[];function f(v){var x=g[v]={onStack:!0,lowlink:p,index:p++};if(c.push(v),l.successors(v).forEach(function(O){r.has(g,O)?g[O].onStack&&(x.lowlink=Math.min(x.lowlink,g[O].index)):(f(O),x.lowlink=Math.min(x.lowlink,g[O].lowlink))}),x.lowlink===x.index){var y=[],E;do E=c.pop(),g[E].onStack=!1,y.push(E);while(v!==E);m.push(y)}}return l.nodes().forEach(function(v){r.has(g,v)||f(v)}),m}},65403:(_,A,n)=>{var r=n(6364);_.exports=d,d.CycleException=l;function d(p){var c={},g={},m=[];function f(v){if(r.has(g,v))throw new l;r.has(c,v)||(g[v]=!0,c[v]=!0,r.each(p.predecessors(v),f),delete g[v],m.push(v))}if(r.each(p.sinks(),f),r.size(c)!==p.nodeCount())throw new l;return m}function l(){}l.prototype=new Error},17198:(_,A,n)=>{var r=n(6364);_.exports=d;function d(){this._arr=[],this._keyIndices={}}d.prototype.size=function(){return this._arr.length},d.prototype.keys=function(){return this._arr.map(function(l){return l.key})},d.prototype.has=function(l){return r.has(this._keyIndices,l)},d.prototype.priority=function(l){var p=this._keyIndices[l];if(p!==void 0)return this._arr[p].priority},d.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},d.prototype.add=function(l,p){var c=this._keyIndices;if(l=String(l),!r.has(c,l)){var g=this._arr,m=g.length;return c[l]=m,g.push({key:l,priority:p}),this._decrease(m),!0}return!1},d.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var l=this._arr.pop();return delete this._keyIndices[l.key],this._heapify(0),l.key},d.prototype.decrease=function(l,p){var c=this._keyIndices[l];if(p>this._arr[c].priority)throw new Error("New priority is greater than current priority. Key: "+l+" Old: "+this._arr[c].priority+" New: "+p);this._arr[c].priority=p,this._decrease(c)},d.prototype._heapify=function(l){var p=this._arr,c=2*l,g=c+1,m=l;c<p.length&&(m=p[c].priority<p[m].priority?c:m,g<p.length&&(m=p[g].priority<p[m].priority?g:m),m!==l&&(this._swap(l,m),this._heapify(m)))},d.prototype._decrease=function(l){for(var p=this._arr,c=p[l].priority,g;l!==0&&(g=l>>1,!(p[g].priority<c));)this._swap(l,g),l=g},d.prototype._swap=function(l,p){var c=this._arr,g=this._keyIndices,m=c[l],f=c[p];c[l]=f,c[p]=m,g[f.key]=l,g[m.key]=p}},97025:(_,A,n)=>{"use strict";var r=n(6364);_.exports=c;var d="\0",l="\0",p="";function c(y){this._isDirected=r.has(y,"directed")?y.directed:!0,this._isMultigraph=r.has(y,"multigraph")?y.multigraph:!1,this._isCompound=r.has(y,"compound")?y.compound:!1,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[l]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}c.prototype._nodeCount=0,c.prototype._edgeCount=0,c.prototype.isDirected=function(){return this._isDirected},c.prototype.isMultigraph=function(){return this._isMultigraph},c.prototype.isCompound=function(){return this._isCompound},c.prototype.setGraph=function(y){return this._label=y,this},c.prototype.graph=function(){return this._label},c.prototype.setDefaultNodeLabel=function(y){return r.isFunction(y)||(y=r.constant(y)),this._defaultNodeLabelFn=y,this},c.prototype.nodeCount=function(){return this._nodeCount},c.prototype.nodes=function(){return r.keys(this._nodes)},c.prototype.sources=function(){var y=this;return r.filter(this.nodes(),function(E){return r.isEmpty(y._in[E])})},c.prototype.sinks=function(){var y=this;return r.filter(this.nodes(),function(E){return r.isEmpty(y._out[E])})},c.prototype.setNodes=function(y,E){var O=arguments,N=this;return r.each(y,function(j){O.length>1?N.setNode(j,E):N.setNode(j)}),this},c.prototype.setNode=function(y,E){return r.has(this._nodes,y)?(arguments.length>1&&(this._nodes[y]=E),this):(this._nodes[y]=arguments.length>1?E:this._defaultNodeLabelFn(y),this._isCompound&&(this._parent[y]=l,this._children[y]={},this._children[l][y]=!0),this._in[y]={},this._preds[y]={},this._out[y]={},this._sucs[y]={},++this._nodeCount,this)},c.prototype.node=function(y){return this._nodes[y]},c.prototype.hasNode=function(y){return r.has(this._nodes,y)},c.prototype.removeNode=function(y){var E=this;if(r.has(this._nodes,y)){var O=function(N){E.removeEdge(E._edgeObjs[N])};delete this._nodes[y],this._isCompound&&(this._removeFromParentsChildList(y),delete this._parent[y],r.each(this.children(y),function(N){E.setParent(N)}),delete this._children[y]),r.each(r.keys(this._in[y]),O),delete this._in[y],delete this._preds[y],r.each(r.keys(this._out[y]),O),delete this._out[y],delete this._sucs[y],--this._nodeCount}return this},c.prototype.setParent=function(y,E){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(E))E=l;else{E+="";for(var O=E;!r.isUndefined(O);O=this.parent(O))if(O===y)throw new Error("Setting "+E+" as parent of "+y+" would create a cycle");this.setNode(E)}return this.setNode(y),this._removeFromParentsChildList(y),this._parent[y]=E,this._children[E][y]=!0,this},c.prototype._removeFromParentsChildList=function(y){delete this._children[this._parent[y]][y]},c.prototype.parent=function(y){if(this._isCompound){var E=this._parent[y];if(E!==l)return E}},c.prototype.children=function(y){if(r.isUndefined(y)&&(y=l),this._isCompound){var E=this._children[y];if(E)return r.keys(E)}else{if(y===l)return this.nodes();if(this.hasNode(y))return[]}},c.prototype.predecessors=function(y){var E=this._preds[y];if(E)return r.keys(E)},c.prototype.successors=function(y){var E=this._sucs[y];if(E)return r.keys(E)},c.prototype.neighbors=function(y){var E=this.predecessors(y);if(E)return r.union(E,this.successors(y))},c.prototype.isLeaf=function(y){var E;return this.isDirected()?E=this.successors(y):E=this.neighbors(y),E.length===0},c.prototype.filterNodes=function(y){var E=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});E.setGraph(this.graph());var O=this;r.each(this._nodes,function(B,k){y(k)&&E.setNode(k,B)}),r.each(this._edgeObjs,function(B){E.hasNode(B.v)&&E.hasNode(B.w)&&E.setEdge(B,O.edge(B))});var N={};function j(B){var k=O.parent(B);return k===void 0||E.hasNode(k)?(N[B]=k,k):k in N?N[k]:j(k)}return this._isCompound&&r.each(E.nodes(),function(B){E.setParent(B,j(B))}),E},c.prototype.setDefaultEdgeLabel=function(y){return r.isFunction(y)||(y=r.constant(y)),this._defaultEdgeLabelFn=y,this},c.prototype.edgeCount=function(){return this._edgeCount},c.prototype.edges=function(){return r.values(this._edgeObjs)},c.prototype.setPath=function(y,E){var O=this,N=arguments;return r.reduce(y,function(j,B){return N.length>1?O.setEdge(j,B,E):O.setEdge(j,B),B}),this},c.prototype.setEdge=function(){var y,E,O,N,j=!1,B=arguments[0];typeof B=="object"&&B!==null&&"v"in B?(y=B.v,E=B.w,O=B.name,arguments.length===2&&(N=arguments[1],j=!0)):(y=B,E=arguments[1],O=arguments[3],arguments.length>2&&(N=arguments[2],j=!0)),y=""+y,E=""+E,r.isUndefined(O)||(O=""+O);var k=f(this._isDirected,y,E,O);if(r.has(this._edgeLabels,k))return j&&(this._edgeLabels[k]=N),this;if(!r.isUndefined(O)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(y),this.setNode(E),this._edgeLabels[k]=j?N:this._defaultEdgeLabelFn(y,E,O);var P=v(this._isDirected,y,E,O);return y=P.v,E=P.w,Object.freeze(P),this._edgeObjs[k]=P,g(this._preds[E],y),g(this._sucs[y],E),this._in[E][k]=P,this._out[y][k]=P,this._edgeCount++,this},c.prototype.edge=function(y,E,O){var N=arguments.length===1?x(this._isDirected,arguments[0]):f(this._isDirected,y,E,O);return this._edgeLabels[N]},c.prototype.hasEdge=function(y,E,O){var N=arguments.length===1?x(this._isDirected,arguments[0]):f(this._isDirected,y,E,O);return r.has(this._edgeLabels,N)},c.prototype.removeEdge=function(y,E,O){var N=arguments.length===1?x(this._isDirected,arguments[0]):f(this._isDirected,y,E,O),j=this._edgeObjs[N];return j&&(y=j.v,E=j.w,delete this._edgeLabels[N],delete this._edgeObjs[N],m(this._preds[E],y),m(this._sucs[y],E),delete this._in[E][N],delete this._out[y][N],this._edgeCount--),this},c.prototype.inEdges=function(y,E){var O=this._in[y];if(O){var N=r.values(O);return E?r.filter(N,function(j){return j.v===E}):N}},c.prototype.outEdges=function(y,E){var O=this._out[y];if(O){var N=r.values(O);return E?r.filter(N,function(j){return j.w===E}):N}},c.prototype.nodeEdges=function(y,E){var O=this.inEdges(y,E);if(O)return O.concat(this.outEdges(y,E))};function g(y,E){y[E]?y[E]++:y[E]=1}function m(y,E){--y[E]||delete y[E]}function f(y,E,O,N){var j=""+E,B=""+O;if(!y&&j>B){var k=j;j=B,B=k}return j+p+B+p+(r.isUndefined(N)?d:N)}function v(y,E,O,N){var j=""+E,B=""+O;if(!y&&j>B){var k=j;j=B,B=k}var P={v:j,w:B};return N&&(P.name=N),P}function x(y,E){return f(y,E.v,E.w,E.name)}},35909:(_,A,n)=>{_.exports={Graph:n(97025),version:n(45757)}},45431:(_,A,n)=>{var r=n(6364),d=n(97025);_.exports={write:l,read:g};function l(m){var f={options:{directed:m.isDirected(),multigraph:m.isMultigraph(),compound:m.isCompound()},nodes:p(m),edges:c(m)};return r.isUndefined(m.graph())||(f.value=r.clone(m.graph())),f}function p(m){return r.map(m.nodes(),function(f){var v=m.node(f),x=m.parent(f),y={v:f};return r.isUndefined(v)||(y.value=v),r.isUndefined(x)||(y.parent=x),y})}function c(m){return r.map(m.edges(),function(f){var v=m.edge(f),x={v:f.v,w:f.w};return r.isUndefined(f.name)||(x.name=f.name),r.isUndefined(v)||(x.value=v),x})}function g(m){var f=new d(m.options).setGraph(m.value);return r.each(m.nodes,function(v){f.setNode(v.v,v.value),v.parent&&f.setParent(v.v,v.parent)}),r.each(m.edges,function(v){f.setEdge({v:v.v,w:v.w,name:v.name},v.value)}),f}},6364:(_,A,n)=>{var r;try{r={clone:n(72846),constant:n(82619),each:n(4642),filter:n(57581),has:n(52103),isArray:n(53142),isEmpty:n(3514),isFunction:n(93655),isUndefined:n(58771),keys:n(81211),map:n(40105),reduce:n(90769),size:n(41114),transform:n(2011),union:n(55620),values:n(39817)}}catch{}r||(r=window._),_.exports=r},45757:_=>{_.exports="2.1.8"},86912:_=>{function A(n,r,d){switch(d.length){case 0:return n.call(r);case 1:return n.call(r,d[0]);case 2:return n.call(r,d[0],d[1]);case 3:return n.call(r,d[0],d[1],d[2])}return n.apply(r,d)}_.exports=A},73788:_=>{function A(n,r,d,l){for(var p=-1,c=n==null?0:n.length;++p<c;){var g=n[p];r(l,g,d(g),n)}return l}_.exports=A},79968:_=>{function A(n,r){for(var d=-1,l=n==null?0:n.length;++d<l&&r(n[d],d,n)!==!1;);return n}_.exports=A},59756:(_,A,n)=>{var r=n(2478);function d(l,p){var c=l==null?0:l.length;return!!c&&r(l,p,0)>-1}_.exports=d},43316:_=>{function A(n,r,d){for(var l=-1,p=n==null?0:n.length;++l<p;)if(d(r,n[l]))return!0;return!1}_.exports=A},44187:_=>{function A(n,r,d,l){var p=-1,c=n==null?0:n.length;for(l&&c&&(d=n[++p]);++p<c;)d=r(d,n[p],p,n);return d}_.exports=A},60906:(_,A,n)=>{var r=n(12762),d=r("length");_.exports=d},24810:(_,A,n)=>{var r=n(57073),d=n(46285);function l(p,c,g){(g!==void 0&&!d(p[c],g)||g===void 0&&!(c in p))&&r(p,c,g)}_.exports=l},3422:(_,A,n)=>{var r=n(57073),d=n(46285),l=Object.prototype,p=l.hasOwnProperty;function c(g,m,f){var v=g[m];(!(p.call(g,m)&&d(v,f))||f===void 0&&!(m in g))&&r(g,m,f)}_.exports=c},82226:(_,A,n)=>{var r=n(84570);function d(l,p,c,g){return r(l,function(m,f,v){p(g,m,c(m),v)}),g}_.exports=d},37930:(_,A,n)=>{var r=n(39032),d=n(81211);function l(p,c){return p&&r(c,d(c),p)}_.exports=l},30125:(_,A,n)=>{var r=n(39032),d=n(25288);function l(p,c){return p&&r(c,d(c),p)}_.exports=l},69334:(_,A,n)=>{var r=n(51340),d=n(79968),l=n(3422),p=n(37930),c=n(30125),g=n(17099),m=n(84354),f=n(83546),v=n(24733),x=n(80393),y=n(93650),E=n(28486),O=n(97350),N=n(50424),j=n(75964),B=n(53142),k=n(75853),P=n(37681),L=n(41580),F=n(83943),U=n(81211),W=n(25288),q=1,re=2,he=4,pe="[object Arguments]",de="[object Array]",ue="[object Boolean]",ye="[object Date]",te="[object Error]",Se="[object Function]",De="[object GeneratorFunction]",Be="[object Map]",ut="[object Number]",et="[object Object]",dt="[object RegExp]",pt="[object Set]",At="[object String]",mt="[object Symbol]",Rt="[object WeakMap]",oe="[object ArrayBuffer]",J="[object DataView]",le="[object Float32Array]",ke="[object Float64Array]",Ge="[object Int8Array]",Ze="[object Int16Array]",rt="[object Int32Array]",wt="[object Uint8Array]",tn="[object Uint8ClampedArray]",ht="[object Uint16Array]",ot="[object Uint32Array]",Ye={};Ye[pe]=Ye[de]=Ye[oe]=Ye[J]=Ye[ue]=Ye[ye]=Ye[le]=Ye[ke]=Ye[Ge]=Ye[Ze]=Ye[rt]=Ye[Be]=Ye[ut]=Ye[et]=Ye[dt]=Ye[pt]=Ye[At]=Ye[mt]=Ye[wt]=Ye[tn]=Ye[ht]=Ye[ot]=!0,Ye[te]=Ye[Se]=Ye[Rt]=!1;function kt(He,vt,xt,dn,Dt,zt){var at,nn=vt&q,$t=vt&re,_n=vt&he;if(xt&&(at=Dt?xt(He,dn,Dt,zt):xt(He)),at!==void 0)return at;if(!L(He))return He;var Qt=B(He);if(Qt){if(at=O(He),!nn)return m(He,at)}else{var sn=E(He),Zt=sn==Se||sn==De;if(k(He))return g(He,nn);if(sn==et||sn==pe||Zt&&!Dt){if(at=$t||Zt?{}:j(He),!nn)return $t?v(He,c(at,He)):f(He,p(at,He))}else{if(!Ye[sn])return Dt?He:{};at=N(He,sn,nn)}}zt||(zt=new r);var pn=zt.get(He);if(pn)return pn;zt.set(He,at),F(He)?He.forEach(function(lt){at.add(kt(lt,vt,xt,lt,He,zt))}):P(He)&&He.forEach(function(lt,_t){at.set(_t,kt(lt,vt,xt,_t,He,zt))});var Hn=_n?$t?y:x:$t?W:U,Ln=Qt?void 0:Hn(He);return d(Ln||He,function(lt,_t){Ln&&(_t=lt,lt=He[_t]),l(at,_t,kt(lt,vt,xt,_t,He,zt))}),at}_.exports=kt},39747:(_,A,n)=>{var r=n(41580),d=Object.create,l=function(){function p(){}return function(c){if(!r(c))return{};if(d)return d(c);p.prototype=c;var g=new p;return p.prototype=void 0,g}}();_.exports=l},84570:(_,A,n)=>{var r=n(47170),d=n(45770),l=d(r);_.exports=l},90988:(_,A,n)=>{var r=n(51187);function d(l,p,c){for(var g=-1,m=l.length;++g<m;){var f=l[g],v=p(f);if(v!=null&&(x===void 0?v===v&&!r(v):c(v,x)))var x=v,y=f}return y}_.exports=d},44661:(_,A,n)=>{var r=n(84570);function d(l,p){var c=[];return r(l,function(g,m,f){p(g,m,f)&&c.push(g)}),c}_.exports=d},37250:_=>{function A(n,r,d,l){for(var p=n.length,c=d+(l?1:-1);l?c--:++c<p;)if(r(n[c],c,n))return c;return-1}_.exports=A},90313:(_,A,n)=>{var r=n(11129),d=n(20714);function l(p,c,g,m,f){var v=-1,x=p.length;for(g||(g=d),f||(f=[]);++v<x;){var y=p[v];c>0&&g(y)?c>1?l(y,c-1,g,m,f):r(f,y):m||(f[f.length]=y)}return f}_.exports=l},2840:_=>{function A(n,r){return n>r}_.exports=A},63599:_=>{var A=Object.prototype,n=A.hasOwnProperty;function r(d,l){return d!=null&&n.call(d,l)}_.exports=r},2478:(_,A,n)=>{var r=n(37250),d=n(69454),l=n(97706);function p(c,g,m){return g===g?l(c,g,m):r(c,d,m)}_.exports=p},80777:(_,A,n)=>{var r=n(28486),d=n(80547),l="[object Map]";function p(c){return d(c)&&r(c)==l}_.exports=p},69454:_=>{function A(n){return n!==n}_.exports=A},81935:(_,A,n)=>{var r=n(28486),d=n(80547),l="[object Set]";function p(c){return d(c)&&r(c)==l}_.exports=p},57200:(_,A,n)=>{var r=n(41580),d=n(84882),l=n(38546),p=Object.prototype,c=p.hasOwnProperty;function g(m){if(!r(m))return l(m);var f=d(m),v=[];for(var x in m)x=="constructor"&&(f||!c.call(m,x))||v.push(x);return v}_.exports=g},62527:_=>{function A(n,r){return n<r}_.exports=A},41393:(_,A,n)=>{var r=n(84570),d=n(36529);function l(p,c){var g=-1,m=d(p)?Array(p.length):[];return r(p,function(f,v,x){m[++g]=c(f,v,x)}),m}_.exports=l},40091:(_,A,n)=>{var r=n(51340),d=n(24810),l=n(35636),p=n(26885),c=n(41580),g=n(25288),m=n(78763);function f(v,x,y,E,O){v!==x&&l(x,function(N,j){if(O||(O=new r),c(N))p(v,x,j,y,f,E,O);else{var B=E?E(m(v,j),N,j+"",v,x,O):void 0;B===void 0&&(B=N),d(v,j,B)}},g)}_.exports=f},26885:(_,A,n)=>{var r=n(24810),d=n(17099),l=n(92264),p=n(84354),c=n(75964),g=n(3283),m=n(53142),f=n(65406),v=n(75853),x=n(93655),y=n(41580),E=n(48360),O=n(8666),N=n(78763),j=n(64207);function B(k,P,L,F,U,W,q){var re=N(k,L),he=N(P,L),pe=q.get(he);if(pe){r(k,L,pe);return}var de=W?W(re,he,L+"",k,P,q):void 0,ue=de===void 0;if(ue){var ye=m(he),te=!ye&&v(he),Se=!ye&&!te&&O(he);de=he,ye||te||Se?m(re)?de=re:f(re)?de=p(re):te?(ue=!1,de=d(he,!0)):Se?(ue=!1,de=l(he,!0)):de=[]:E(he)||g(he)?(de=re,g(re)?de=j(re):(!y(re)||x(re))&&(de=c(he))):ue=!1}ue&&(q.set(he,de),U(de,he,F,W,q),q.delete(he)),r(k,L,de)}_.exports=B},70310:(_,A,n)=>{var r=n(65111),d=n(57923),l=n(3334),p=n(41393),c=n(50642),g=n(49460),m=n(46775),f=n(22053),v=n(53142);function x(y,E,O){E.length?E=r(E,function(B){return v(B)?function(k){return d(k,B.length===1?B[0]:B)}:B}):E=[f];var N=-1;E=r(E,g(l));var j=p(y,function(B,k,P){var L=r(E,function(F){return F(B)});return{criteria:L,index:++N,value:B}});return c(j,function(B,k){return m(B,k,O)})}_.exports=x},90242:(_,A,n)=>{var r=n(35031),d=n(27276);function l(p,c){return r(p,c,function(g,m){return d(p,m)})}_.exports=l},35031:(_,A,n)=>{var r=n(57923),d=n(87655),l=n(93526);function p(c,g,m){for(var f=-1,v=g.length,x={};++f<v;){var y=g[f],E=r(c,y);m(E,y)&&d(x,l(y,c),E)}return x}_.exports=p},96902:_=>{var A=Math.ceil,n=Math.max;function r(d,l,p,c){for(var g=-1,m=n(A((l-d)/(p||1)),0),f=Array(m);m--;)f[c?m:++g]=d,d+=p;return f}_.exports=r},51961:_=>{function A(n,r,d,l,p){return p(n,function(c,g,m){d=l?(l=!1,c):r(d,c,g,m)}),d}_.exports=A},23945:(_,A,n)=>{var r=n(22053),d=n(75234),l=n(80796);function p(c,g){return l(d(c,g,r),c+"")}_.exports=p},87655:(_,A,n)=>{var r=n(3422),d=n(93526),l=n(69632),p=n(41580),c=n(66040);function g(m,f,v,x){if(!p(m))return m;f=d(f,m);for(var y=-1,E=f.length,O=E-1,N=m;N!=null&&++y<E;){var j=c(f[y]),B=v;if(j==="__proto__"||j==="constructor"||j==="prototype")return m;if(y!=O){var k=N[j];B=x?x(k,j,N):void 0,B===void 0&&(B=p(k)?k:l(f[y+1])?[]:{})}r(N,j,B),N=N[j]}return m}_.exports=g},47403:(_,A,n)=>{var r=n(82619),d=n(72532),l=n(22053),p=d?function(c,g){return d(c,"toString",{configurable:!0,enumerable:!1,value:r(g),writable:!0})}:l;_.exports=p},50642:_=>{function A(n,r){var d=n.length;for(n.sort(r);d--;)n[d]=n[d].value;return n}_.exports=A},15630:(_,A,n)=>{var r=n(23212),d=n(59756),l=n(43316),p=n(65568),c=n(36208),g=n(49828),m=200;function f(v,x,y){var E=-1,O=d,N=v.length,j=!0,B=[],k=B;if(y)j=!1,O=l;else if(N>=m){var P=x?null:c(v);if(P)return g(P);j=!1,O=p,k=new r}else k=x?[]:B;e:for(;++E<N;){var L=v[E],F=x?x(L):L;if(L=y||L!==0?L:0,j&&F===F){for(var U=k.length;U--;)if(k[U]===F)continue e;x&&k.push(F),B.push(L)}else O(k,F,y)||(k!==B&&k.push(F),B.push(L))}return B}_.exports=f},3905:(_,A,n)=>{var r=n(65111);function d(l,p){return r(p,function(c){return l[c]})}_.exports=d},4851:_=>{function A(n,r,d){for(var l=-1,p=n.length,c=r.length,g={};++l<p;){var m=l<c?r[l]:void 0;d(g,n[l],m)}return g}_.exports=A},23997:(_,A,n)=>{var r=n(22053);function d(l){return typeof l=="function"?l:r}_.exports=d},58898:(_,A,n)=>{var r=n(31623);function d(l){var p=new l.constructor(l.byteLength);return new r(p).set(new r(l)),p}_.exports=d},17099:(_,A,n)=>{_=n.nmd(_);var r=n(78942),d=A&&!A.nodeType&&A,l=d&&!0&&_&&!_.nodeType&&_,p=l&&l.exports===d,c=p?r.Buffer:void 0,g=c?c.allocUnsafe:void 0;function m(f,v){if(v)return f.slice();var x=f.length,y=g?g(x):new f.constructor(x);return f.copy(y),y}_.exports=m},92480:(_,A,n)=>{var r=n(58898);function d(l,p){var c=p?r(l.buffer):l.buffer;return new l.constructor(c,l.byteOffset,l.byteLength)}_.exports=d},78340:_=>{var A=/\w*$/;function n(r){var d=new r.constructor(r.source,A.exec(r));return d.lastIndex=r.lastIndex,d}_.exports=n},18069:(_,A,n)=>{var r=n(65650),d=r?r.prototype:void 0,l=d?d.valueOf:void 0;function p(c){return l?Object(l.call(c)):{}}_.exports=p},92264:(_,A,n)=>{var r=n(58898);function d(l,p){var c=p?r(l.buffer):l.buffer;return new l.constructor(c,l.byteOffset,l.length)}_.exports=d},63521:(_,A,n)=>{var r=n(51187);function d(l,p){if(l!==p){var c=l!==void 0,g=l===null,m=l===l,f=r(l),v=p!==void 0,x=p===null,y=p===p,E=r(p);if(!x&&!E&&!f&&l>p||f&&v&&y&&!x&&!E||g&&v&&y||!c&&y||!m)return 1;if(!g&&!f&&!E&&l<p||E&&c&&m&&!g&&!f||x&&c&&m||!v&&m||!y)return-1}return 0}_.exports=d},46775:(_,A,n)=>{var r=n(63521);function d(l,p,c){for(var g=-1,m=l.criteria,f=p.criteria,v=m.length,x=c.length;++g<v;){var y=r(m[g],f[g]);if(y){if(g>=x)return y;var E=c[g];return y*(E=="desc"?-1:1)}}return l.index-p.index}_.exports=d},84354:_=>{function A(n,r){var d=-1,l=n.length;for(r||(r=Array(l));++d<l;)r[d]=n[d];return r}_.exports=A},39032:(_,A,n)=>{var r=n(3422),d=n(57073);function l(p,c,g,m){var f=!g;g||(g={});for(var v=-1,x=c.length;++v<x;){var y=c[v],E=m?m(g[y],p[y],y,g,p):void 0;E===void 0&&(E=p[y]),f?d(g,y,E):r(g,y,E)}return g}_.exports=l},83546:(_,A,n)=>{var r=n(39032),d=n(77979);function l(p,c){return r(p,d(p),c)}_.exports=l},24733:(_,A,n)=>{var r=n(39032),d=n(85832);function l(p,c){return r(p,d(p),c)}_.exports=l},72195:(_,A,n)=>{var r=n(73788),d=n(82226),l=n(3334),p=n(53142);function c(g,m){return function(f,v){var x=p(f)?r:d,y=m?m():{};return x(f,g,l(v,2),y)}}_.exports=c},77848:(_,A,n)=>{var r=n(23945),d=n(74535);function l(p){return r(function(c,g){var m=-1,f=g.length,v=f>1?g[f-1]:void 0,x=f>2?g[2]:void 0;for(v=p.length>3&&typeof v=="function"?(f--,v):void 0,x&&d(g[0],g[1],x)&&(v=f<3?void 0:v,f=1),c=Object(c);++m<f;){var y=g[m];y&&p(c,y,m,v)}return c})}_.exports=l},45770:(_,A,n)=>{var r=n(36529);function d(l,p){return function(c,g){if(c==null)return c;if(!r(c))return l(c,g);for(var m=c.length,f=p?m:-1,v=Object(c);(p?f--:++f<m)&&g(v[f],f,v)!==!1;);return c}}_.exports=d},77317:(_,A,n)=>{var r=n(3334),d=n(36529),l=n(81211);function p(c){return function(g,m,f){var v=Object(g);if(!d(g)){var x=r(m,3);g=l(g),m=function(E){return x(v[E],E,v)}}var y=c(g,m,f);return y>-1?v[x?g[y]:y]:void 0}}_.exports=p},40165:(_,A,n)=>{var r=n(96902),d=n(74535),l=n(43301);function p(c){return function(g,m,f){return f&&typeof f!="number"&&d(g,m,f)&&(m=f=void 0),g=l(g),m===void 0?(m=g,g=0):m=l(m),f=f===void 0?g<m?1:-1:l(f),r(g,m,f,c)}}_.exports=p},36208:(_,A,n)=>{var r=n(64512),d=n(79071),l=n(49828),p=1/0,c=r&&1/l(new r([,-0]))[1]==p?function(g){return new r(g)}:d;_.exports=c},41439:(_,A,n)=>{var r=n(75857),d=n(75234),l=n(80796);function p(c){return l(d(c,void 0,r),c+"")}_.exports=p},93650:(_,A,n)=>{var r=n(48244),d=n(85832),l=n(25288);function p(c){return r(c,l,d)}_.exports=p},74784:(_,A,n)=>{var r=n(3766),d=r(Object.getPrototypeOf,Object);_.exports=d},85832:(_,A,n)=>{var r=n(11129),d=n(74784),l=n(77979),p=n(99306),c=Object.getOwnPropertySymbols,g=c?function(m){for(var f=[];m;)r(f,l(m)),m=d(m);return f}:p;_.exports=g},83417:_=>{var A="\\ud800-\\udfff",n="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",d="\\u20d0-\\u20ff",l=n+r+d,p="\\ufe0e\\ufe0f",c="\\u200d",g=RegExp("["+c+A+l+p+"]");function m(f){return g.test(f)}_.exports=m},97350:_=>{var A=Object.prototype,n=A.hasOwnProperty;function r(d){var l=d.length,p=new d.constructor(l);return l&&typeof d[0]=="string"&&n.call(d,"index")&&(p.index=d.index,p.input=d.input),p}_.exports=r},50424:(_,A,n)=>{var r=n(58898),d=n(92480),l=n(78340),p=n(18069),c=n(92264),g="[object Boolean]",m="[object Date]",f="[object Map]",v="[object Number]",x="[object RegExp]",y="[object Set]",E="[object String]",O="[object Symbol]",N="[object ArrayBuffer]",j="[object DataView]",B="[object Float32Array]",k="[object Float64Array]",P="[object Int8Array]",L="[object Int16Array]",F="[object Int32Array]",U="[object Uint8Array]",W="[object Uint8ClampedArray]",q="[object Uint16Array]",re="[object Uint32Array]";function he(pe,de,ue){var ye=pe.constructor;switch(de){case N:return r(pe);case g:case m:return new ye(+pe);case j:return d(pe,ue);case B:case k:case P:case L:case F:case U:case W:case q:case re:return c(pe,ue);case f:return new ye;case v:case E:return new ye(pe);case x:return l(pe);case y:return new ye;case O:return p(pe)}}_.exports=he},75964:(_,A,n)=>{var r=n(39747),d=n(74784),l=n(84882);function p(c){return typeof c.constructor=="function"&&!l(c)?r(d(c)):{}}_.exports=p},20714:(_,A,n)=>{var r=n(65650),d=n(3283),l=n(53142),p=r?r.isConcatSpreadable:void 0;function c(g){return l(g)||d(g)||!!(p&&g&&g[p])}_.exports=c},74535:(_,A,n)=>{var r=n(46285),d=n(36529),l=n(69632),p=n(41580);function c(g,m,f){if(!p(f))return!1;var v=typeof m;return(v=="number"?d(f)&&l(m,f.length):v=="string"&&m in f)?r(f[m],g):!1}_.exports=c},38546:_=>{function A(n){var r=[];if(n!=null)for(var d in Object(n))r.push(d);return r}_.exports=A},75234:(_,A,n)=>{var r=n(86912),d=Math.max;function l(p,c,g){return c=d(c===void 0?p.length-1:c,0),function(){for(var m=arguments,f=-1,v=d(m.length-c,0),x=Array(v);++f<v;)x[f]=m[c+f];f=-1;for(var y=Array(c+1);++f<c;)y[f]=m[f];return y[c]=g(x),r(p,this,y)}}_.exports=l},78763:_=>{function A(n,r){if(!(r==="constructor"&&typeof n[r]=="function")&&r!="__proto__")return n[r]}_.exports=A},80796:(_,A,n)=>{var r=n(47403),d=n(3316),l=d(r);_.exports=l},3316:_=>{var A=800,n=16,r=Date.now;function d(l){var p=0,c=0;return function(){var g=r(),m=n-(g-c);if(c=g,m>0){if(++p>=A)return arguments[0]}else p=0;return l.apply(void 0,arguments)}}_.exports=d},97706:_=>{function A(n,r,d){for(var l=d-1,p=n.length;++l<p;)if(n[l]===r)return l;return-1}_.exports=A},91090:(_,A,n)=>{var r=n(60906),d=n(83417),l=n(64962);function p(c){return d(c)?l(c):r(c)}_.exports=p},64962:_=>{var A="\\ud800-\\udfff",n="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",d="\\u20d0-\\u20ff",l=n+r+d,p="\\ufe0e\\ufe0f",c="["+A+"]",g="["+l+"]",m="\\ud83c[\\udffb-\\udfff]",f="(?:"+g+"|"+m+")",v="[^"+A+"]",x="(?:\\ud83c[\\udde6-\\uddff]){2}",y="[\\ud800-\\udbff][\\udc00-\\udfff]",E="\\u200d",O=f+"?",N="["+p+"]?",j="(?:"+E+"(?:"+[v,x,y].join("|")+")"+N+O+")*",B=N+O+j,k="(?:"+[v+g+"?",g,x,y,c].join("|")+")",P=RegExp(m+"(?="+m+")|"+k+B,"g");function L(F){for(var U=P.lastIndex=0;P.test(F);)++U;return U}_.exports=L},72846:(_,A,n)=>{var r=n(69334),d=4;function l(p){return r(p,d)}_.exports=l},46108:(_,A,n)=>{var r=n(69334),d=1,l=4;function p(c){return r(c,d|l)}_.exports=p},82619:_=>{function A(n){return function(){return n}}_.exports=A},32293:(_,A,n)=>{var r=n(23945),d=n(46285),l=n(74535),p=n(25288),c=Object.prototype,g=c.hasOwnProperty,m=r(function(f,v){f=Object(f);var x=-1,y=v.length,E=y>2?v[2]:void 0;for(E&&l(v[0],v[1],E)&&(y=1);++x<y;)for(var O=v[x],N=p(O),j=-1,B=N.length;++j<B;){var k=N[j],P=f[k];(P===void 0||d(P,c[k])&&!g.call(f,k))&&(f[k]=O[k])}return f});_.exports=m},4642:(_,A,n)=>{_.exports=n(83657)},57581:(_,A,n)=>{var r=n(79847),d=n(44661),l=n(3334),p=n(53142);function c(g,m){var f=p(g)?r:d;return f(g,l(m,3))}_.exports=c},81936:(_,A,n)=>{var r=n(77317),d=n(92154),l=r(d);_.exports=l},92154:(_,A,n)=>{var r=n(37250),d=n(3334),l=n(67642),p=Math.max;function c(g,m,f){var v=g==null?0:g.length;if(!v)return-1;var x=f==null?0:l(f);return x<0&&(x=p(v+x,0)),r(g,d(m,3),x)}_.exports=c},75857:(_,A,n)=>{var r=n(90313);function d(l){var p=l==null?0:l.length;return p?r(l,1):[]}_.exports=d},83657:(_,A,n)=>{var r=n(79968),d=n(84570),l=n(23997),p=n(53142);function c(g,m){var f=p(g)?r:d;return f(g,l(m))}_.exports=c},68371:(_,A,n)=>{var r=n(35636),d=n(23997),l=n(25288);function p(c,g){return c==null?c:r(c,d(g),l)}_.exports=p},87809:(_,A,n)=>{var r=n(57073),d=n(72195),l=Object.prototype,p=l.hasOwnProperty,c=d(function(g,m,f){p.call(g,f)?g[f].push(m):r(g,f,[m])});_.exports=c},52103:(_,A,n)=>{var r=n(63599),d=n(85899);function l(p,c){return p!=null&&d(p,c,r)}_.exports=l},65406:(_,A,n)=>{var r=n(36529),d=n(80547);function l(p){return d(p)&&r(p)}_.exports=l},3514:(_,A,n)=>{var r=n(195),d=n(28486),l=n(3283),p=n(53142),c=n(36529),g=n(75853),m=n(84882),f=n(8666),v="[object Map]",x="[object Set]",y=Object.prototype,E=y.hasOwnProperty;function O(N){if(N==null)return!0;if(c(N)&&(p(N)||typeof N=="string"||typeof N.splice=="function"||g(N)||f(N)||l(N)))return!N.length;var j=d(N);if(j==v||j==x)return!N.size;if(m(N))return!r(N).length;for(var B in N)if(E.call(N,B))return!1;return!0}_.exports=O},20644:(_,A,n)=>{var r=n(78942),d=r.isFinite;function l(p){return typeof p=="number"&&d(p)}_.exports=l},37681:(_,A,n)=>{var r=n(80777),d=n(49460),l=n(2306),p=l&&l.isMap,c=p?d(p):r;_.exports=c},48360:(_,A,n)=>{var r=n(87379),d=n(74784),l=n(80547),p="[object Object]",c=Function.prototype,g=Object.prototype,m=c.toString,f=g.hasOwnProperty,v=m.call(Object);function x(y){if(!l(y)||r(y)!=p)return!1;var E=d(y);if(E===null)return!0;var O=f.call(E,"constructor")&&E.constructor;return typeof O=="function"&&O instanceof O&&m.call(O)==v}_.exports=x},83943:(_,A,n)=>{var r=n(81935),d=n(49460),l=n(2306),p=l&&l.isSet,c=p?d(p):r;_.exports=c},8138:(_,A,n)=>{var r=n(87379),d=n(53142),l=n(80547),p="[object String]";function c(g){return typeof g=="string"||!d(g)&&l(g)&&r(g)==p}_.exports=c},58771:_=>{function A(n){return n===void 0}_.exports=A},25288:(_,A,n)=>{var r=n(10358),d=n(57200),l=n(36529);function p(c){return l(c)?r(c,!0):d(c)}_.exports=p},98087:_=>{function A(n){var r=n==null?0:n.length;return r?n[r-1]:void 0}_.exports=A},40105:(_,A,n)=>{var r=n(65111),d=n(3334),l=n(41393),p=n(53142);function c(g,m){var f=p(g)?r:l;return f(g,d(m,3))}_.exports=c},47217:(_,A,n)=>{var r=n(90988),d=n(2840),l=n(22053);function p(c){return c&&c.length?r(c,l,d):void 0}_.exports=p},4832:(_,A,n)=>{var r=n(40091),d=n(77848),l=d(function(p,c,g){r(p,c,g)});_.exports=l},7011:(_,A,n)=>{var r=n(90988),d=n(62527),l=n(22053);function p(c){return c&&c.length?r(c,l,d):void 0}_.exports=p},40690:(_,A,n)=>{var r=n(90988),d=n(3334),l=n(62527);function p(c,g){return c&&c.length?r(c,d(g,2),l):void 0}_.exports=p},79071:_=>{function A(){}_.exports=A},74874:(_,A,n)=>{var r=n(90242),d=n(41439),l=d(function(p,c){return p==null?{}:r(p,c)});_.exports=l},73758:(_,A,n)=>{var r=n(40165),d=r();_.exports=d},90769:(_,A,n)=>{var r=n(44187),d=n(84570),l=n(3334),p=n(51961),c=n(53142);function g(m,f,v){var x=c(m)?r:p,y=arguments.length<3;return x(m,l(f,4),v,y,d)}_.exports=g},41114:(_,A,n)=>{var r=n(195),d=n(28486),l=n(36529),p=n(8138),c=n(91090),g="[object Map]",m="[object Set]";function f(v){if(v==null)return 0;if(l(v))return p(v)?c(v):v.length;var x=d(v);return x==g||x==m?v.size:r(v).length}_.exports=f},40074:(_,A,n)=>{var r=n(90313),d=n(70310),l=n(23945),p=n(74535),c=l(function(g,m){if(g==null)return[];var f=m.length;return f>1&&p(g,m[0],m[1])?m=[]:f>2&&p(m[0],m[1],m[2])&&(m=[m[0]]),d(g,r(m,1),[])});_.exports=c},43301:(_,A,n)=>{var r=n(6131),d=1/0,l=17976931348623157e292;function p(c){if(!c)return c===0?c:0;if(c=r(c),c===d||c===-d){var g=c<0?-1:1;return g*l}return c===c?c:0}_.exports=p},67642:(_,A,n)=>{var r=n(43301);function d(l){var p=r(l),c=p%1;return p===p?c?p-c:p:0}_.exports=d},64207:(_,A,n)=>{var r=n(39032),d=n(25288);function l(p){return r(p,d(p))}_.exports=l},2011:(_,A,n)=>{var r=n(79968),d=n(39747),l=n(47170),p=n(3334),c=n(74784),g=n(53142),m=n(75853),f=n(93655),v=n(41580),x=n(8666);function y(E,O,N){var j=g(E),B=j||m(E)||x(E);if(O=p(O,4),N==null){var k=E&&E.constructor;B?N=j?new k:[]:v(E)?N=f(k)?d(c(E)):{}:N={}}return(B?r:l)(E,function(P,L,F){return O(N,P,L,F)}),N}_.exports=y},55620:(_,A,n)=>{var r=n(90313),d=n(23945),l=n(15630),p=n(65406),c=d(function(g){return l(r(g,1,p,!0))});_.exports=c},38285:(_,A,n)=>{var r=n(95243),d=0;function l(p){var c=++d;return r(p)+c}_.exports=l},39817:(_,A,n)=>{var r=n(3905),d=n(81211);function l(p){return p==null?[]:r(p,d(p))}_.exports=l},21595:(_,A,n)=>{var r=n(3422),d=n(4851);function l(p,c){return d(p||[],c||[],r)}_.exports=l},62474:(_,A,n)=>{"use strict";n.d(A,{A:()=>r,j:()=>d});function r(l){return function(){return this.matches(l)}}function d(l){return function(p){return p.matches(l)}}},65399:(_,A,n)=>{"use strict";n.d(A,{A:()=>d});var r=n(69538);function d(l){var p=l+="",c=p.indexOf(":");return c>=0&&(p=l.slice(0,c))!=="xmlns"&&(l=l.slice(c+1)),r.A.hasOwnProperty(p)?{space:r.A[p],local:l}:l}},69538:(_,A,n)=>{"use strict";n.d(A,{A:()=>d,g:()=>r});var r="http://www.w3.org/1999/xhtml";const d={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},67566:(_,A,n)=>{"use strict";n.d(A,{A:()=>d});var r=n(97810);function d(l){return typeof l=="string"?new r.LN([[document.querySelector(l)]],[document.documentElement]):new r.LN([[l]],r.zr)}},97810:(_,A,n)=>{"use strict";n.d(A,{LN:()=>Nt,Ay:()=>It,zr:()=>On});var r=n(17096);function d($){typeof $!="function"&&($=(0,r.A)($));for(var Q=this._groups,_e=Q.length,Ae=new Array(_e),ge=0;ge<_e;++ge)for(var Oe=Q[ge],Pe=Oe.length,$e=Ae[ge]=new Array(Pe),Fe,ze,tt=0;tt<Pe;++tt)(Fe=Oe[tt])&&(ze=$.call(Fe,Fe.__data__,tt,Oe))&&("__data__"in Fe&&(ze.__data__=Fe.__data__),$e[tt]=ze);return new Nt(Ae,this._parents)}function l($){return $==null?[]:Array.isArray($)?$:Array.from($)}var p=n(53972);function c($){return function(){return l($.apply(this,arguments))}}function g($){typeof $=="function"?$=c($):$=(0,p.A)($);for(var Q=this._groups,_e=Q.length,Ae=[],ge=[],Oe=0;Oe<_e;++Oe)for(var Pe=Q[Oe],$e=Pe.length,Fe,ze=0;ze<$e;++ze)(Fe=Pe[ze])&&(Ae.push($.call(Fe,Fe.__data__,ze,Pe)),ge.push(Fe));return new Nt(Ae,ge)}var m=n(62474),f=Array.prototype.find;function v($){return function(){return f.call(this.children,$)}}function x(){return this.firstElementChild}function y($){return this.select($==null?x:v(typeof $=="function"?$:(0,m.j)($)))}var E=Array.prototype.filter;function O(){return Array.from(this.children)}function N($){return function(){return E.call(this.children,$)}}function j($){return this.selectAll($==null?O:N(typeof $=="function"?$:(0,m.j)($)))}function B($){typeof $!="function"&&($=(0,m.A)($));for(var Q=this._groups,_e=Q.length,Ae=new Array(_e),ge=0;ge<_e;++ge)for(var Oe=Q[ge],Pe=Oe.length,$e=Ae[ge]=[],Fe,ze=0;ze<Pe;++ze)(Fe=Oe[ze])&&$.call(Fe,Fe.__data__,ze,Oe)&&$e.push(Fe);return new Nt(Ae,this._parents)}function k($){return new Array($.length)}function P(){return new Nt(this._enter||this._groups.map(k),this._parents)}function L($,Q){this.ownerDocument=$.ownerDocument,this.namespaceURI=$.namespaceURI,this._next=null,this._parent=$,this.__data__=Q}L.prototype={constructor:L,appendChild:function($){return this._parent.insertBefore($,this._next)},insertBefore:function($,Q){return this._parent.insertBefore($,Q)},querySelector:function($){return this._parent.querySelector($)},querySelectorAll:function($){return this._parent.querySelectorAll($)}};function F($){return function(){return $}}function U($,Q,_e,Ae,ge,Oe){for(var Pe=0,$e,Fe=Q.length,ze=Oe.length;Pe<ze;++Pe)($e=Q[Pe])?($e.__data__=Oe[Pe],Ae[Pe]=$e):_e[Pe]=new L($,Oe[Pe]);for(;Pe<Fe;++Pe)($e=Q[Pe])&&(ge[Pe]=$e)}function W($,Q,_e,Ae,ge,Oe,Pe){var $e,Fe,ze=new Map,tt=Q.length,Ct=Oe.length,Ft=new Array(tt),Pt;for($e=0;$e<tt;++$e)(Fe=Q[$e])&&(Ft[$e]=Pt=Pe.call(Fe,Fe.__data__,$e,Q)+"",ze.has(Pt)?ge[$e]=Fe:ze.set(Pt,Fe));for($e=0;$e<Ct;++$e)Pt=Pe.call($,Oe[$e],$e,Oe)+"",(Fe=ze.get(Pt))?(Ae[$e]=Fe,Fe.__data__=Oe[$e],ze.delete(Pt)):_e[$e]=new L($,Oe[$e]);for($e=0;$e<tt;++$e)(Fe=Q[$e])&&ze.get(Ft[$e])===Fe&&(ge[$e]=Fe)}function q($){return $.__data__}function re($,Q){if(!arguments.length)return Array.from(this,q);var _e=Q?W:U,Ae=this._parents,ge=this._groups;typeof $!="function"&&($=F($));for(var Oe=ge.length,Pe=new Array(Oe),$e=new Array(Oe),Fe=new Array(Oe),ze=0;ze<Oe;++ze){var tt=Ae[ze],Ct=ge[ze],Ft=Ct.length,Pt=he($.call(tt,tt&&tt.__data__,ze,Ae)),jt=Pt.length,bn=$e[ze]=new Array(jt),un=Pe[ze]=new Array(jt),Jn=Fe[ze]=new Array(Ft);_e(tt,Ct,bn,un,Jn,Pt,Q);for(var Nn=0,Kn=0,wn,ln;Nn<jt;++Nn)if(wn=bn[Nn]){for(Nn>=Kn&&(Kn=Nn+1);!(ln=un[Kn])&&++Kn<jt;);wn._next=ln||null}}return Pe=new Nt(Pe,Ae),Pe._enter=$e,Pe._exit=Fe,Pe}function he($){return typeof $=="object"&&"length"in $?$:Array.from($)}function pe(){return new Nt(this._exit||this._groups.map(k),this._parents)}function de($,Q,_e){var Ae=this.enter(),ge=this,Oe=this.exit();return typeof $=="function"?(Ae=$(Ae),Ae&&(Ae=Ae.selection())):Ae=Ae.append($+""),Q!=null&&(ge=Q(ge),ge&&(ge=ge.selection())),_e==null?Oe.remove():_e(Oe),Ae&&ge?Ae.merge(ge).order():ge}function ue($){for(var Q=$.selection?$.selection():$,_e=this._groups,Ae=Q._groups,ge=_e.length,Oe=Ae.length,Pe=Math.min(ge,Oe),$e=new Array(ge),Fe=0;Fe<Pe;++Fe)for(var ze=_e[Fe],tt=Ae[Fe],Ct=ze.length,Ft=$e[Fe]=new Array(Ct),Pt,jt=0;jt<Ct;++jt)(Pt=ze[jt]||tt[jt])&&(Ft[jt]=Pt);for(;Fe<ge;++Fe)$e[Fe]=_e[Fe];return new Nt($e,this._parents)}function ye(){for(var $=this._groups,Q=-1,_e=$.length;++Q<_e;)for(var Ae=$[Q],ge=Ae.length-1,Oe=Ae[ge],Pe;--ge>=0;)(Pe=Ae[ge])&&(Oe&&Pe.compareDocumentPosition(Oe)^4&&Oe.parentNode.insertBefore(Pe,Oe),Oe=Pe);return this}function te($){$||($=Se);function Q(Ct,Ft){return Ct&&Ft?$(Ct.__data__,Ft.__data__):!Ct-!Ft}for(var _e=this._groups,Ae=_e.length,ge=new Array(Ae),Oe=0;Oe<Ae;++Oe){for(var Pe=_e[Oe],$e=Pe.length,Fe=ge[Oe]=new Array($e),ze,tt=0;tt<$e;++tt)(ze=Pe[tt])&&(Fe[tt]=ze);Fe.sort(Q)}return new Nt(ge,this._parents).order()}function Se($,Q){return $<Q?-1:$>Q?1:$>=Q?0:NaN}function De(){var $=arguments[0];return arguments[0]=this,$.apply(null,arguments),this}function Be(){return Array.from(this)}function ut(){for(var $=this._groups,Q=0,_e=$.length;Q<_e;++Q)for(var Ae=$[Q],ge=0,Oe=Ae.length;ge<Oe;++ge){var Pe=Ae[ge];if(Pe)return Pe}return null}function et(){let $=0;for(const Q of this)++$;return $}function dt(){return!this.node()}function pt($){for(var Q=this._groups,_e=0,Ae=Q.length;_e<Ae;++_e)for(var ge=Q[_e],Oe=0,Pe=ge.length,$e;Oe<Pe;++Oe)($e=ge[Oe])&&$.call($e,$e.__data__,Oe,ge);return this}var At=n(65399);function mt($){return function(){this.removeAttribute($)}}function Rt($){return function(){this.removeAttributeNS($.space,$.local)}}function oe($,Q){return function(){this.setAttribute($,Q)}}function J($,Q){return function(){this.setAttributeNS($.space,$.local,Q)}}function le($,Q){return function(){var _e=Q.apply(this,arguments);_e==null?this.removeAttribute($):this.setAttribute($,_e)}}function ke($,Q){return function(){var _e=Q.apply(this,arguments);_e==null?this.removeAttributeNS($.space,$.local):this.setAttributeNS($.space,$.local,_e)}}function Ge($,Q){var _e=(0,At.A)($);if(arguments.length<2){var Ae=this.node();return _e.local?Ae.getAttributeNS(_e.space,_e.local):Ae.getAttribute(_e)}return this.each((Q==null?_e.local?Rt:mt:typeof Q=="function"?_e.local?ke:le:_e.local?J:oe)(_e,Q))}var Ze=n(45632);function rt($){return function(){delete this[$]}}function wt($,Q){return function(){this[$]=Q}}function tn($,Q){return function(){var _e=Q.apply(this,arguments);_e==null?delete this[$]:this[$]=_e}}function ht($,Q){return arguments.length>1?this.each((Q==null?rt:typeof Q=="function"?tn:wt)($,Q)):this.node()[$]}function ot($){return $.trim().split(/^|\s+/)}function Ye($){return $.classList||new kt($)}function kt($){this._node=$,this._names=ot($.getAttribute("class")||"")}kt.prototype={add:function($){var Q=this._names.indexOf($);Q<0&&(this._names.push($),this._node.setAttribute("class",this._names.join(" ")))},remove:function($){var Q=this._names.indexOf($);Q>=0&&(this._names.splice(Q,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function($){return this._names.indexOf($)>=0}};function He($,Q){for(var _e=Ye($),Ae=-1,ge=Q.length;++Ae<ge;)_e.add(Q[Ae])}function vt($,Q){for(var _e=Ye($),Ae=-1,ge=Q.length;++Ae<ge;)_e.remove(Q[Ae])}function xt($){return function(){He(this,$)}}function dn($){return function(){vt(this,$)}}function Dt($,Q){return function(){(Q.apply(this,arguments)?He:vt)(this,$)}}function zt($,Q){var _e=ot($+"");if(arguments.length<2){for(var Ae=Ye(this.node()),ge=-1,Oe=_e.length;++ge<Oe;)if(!Ae.contains(_e[ge]))return!1;return!0}return this.each((typeof Q=="function"?Dt:Q?xt:dn)(_e,Q))}function at(){this.textContent=""}function nn($){return function(){this.textContent=$}}function $t($){return function(){var Q=$.apply(this,arguments);this.textContent=Q??""}}function _n($){return arguments.length?this.each($==null?at:(typeof $=="function"?$t:nn)($)):this.node().textContent}function Qt(){this.innerHTML=""}function sn($){return function(){this.innerHTML=$}}function Zt($){return function(){var Q=$.apply(this,arguments);this.innerHTML=Q??""}}function pn($){return arguments.length?this.each($==null?Qt:(typeof $=="function"?Zt:sn)($)):this.node().innerHTML}function Hn(){this.nextSibling&&this.parentNode.appendChild(this)}function Ln(){return this.each(Hn)}function lt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function _t(){return this.each(lt)}var En=n(69538);function yi($){return function(){var Q=this.ownerDocument,_e=this.namespaceURI;return _e===En.g&&Q.documentElement.namespaceURI===En.g?Q.createElement($):Q.createElementNS(_e,$)}}function Pn($){return function(){return this.ownerDocument.createElementNS($.space,$.local)}}function mn($){var Q=(0,At.A)($);return(Q.local?Pn:yi)(Q)}function jn($){var Q=typeof $=="function"?$:mn($);return this.select(function(){return this.appendChild(Q.apply(this,arguments))})}function Rn(){return null}function gn($,Q){var _e=typeof $=="function"?$:mn($),Ae=Q==null?Rn:typeof Q=="function"?Q:(0,r.A)(Q);return this.select(function(){return this.insertBefore(_e.apply(this,arguments),Ae.apply(this,arguments)||null)})}function Vt(){var $=this.parentNode;$&&$.removeChild(this)}function Wt(){return this.each(Vt)}function gt(){var $=this.cloneNode(!1),Q=this.parentNode;return Q?Q.insertBefore($,this.nextSibling):$}function Gt(){var $=this.cloneNode(!0),Q=this.parentNode;return Q?Q.insertBefore($,this.nextSibling):$}function qn($){return this.select($?Gt:gt)}function ui($){return arguments.length?this.property("__data__",$):this.node().__data__}function $n($){return function(Q){$.call(this,Q,this.__data__)}}function yn($){return $.trim().split(/^|\s+/).map(function(Q){var _e="",Ae=Q.indexOf(".");return Ae>=0&&(_e=Q.slice(Ae+1),Q=Q.slice(0,Ae)),{type:Q,name:_e}})}function Bt($){return function(){var Q=this.__on;if(Q){for(var _e=0,Ae=-1,ge=Q.length,Oe;_e<ge;++_e)Oe=Q[_e],(!$.type||Oe.type===$.type)&&Oe.name===$.name?this.removeEventListener(Oe.type,Oe.listener,Oe.options):Q[++Ae]=Oe;++Ae?Q.length=Ae:delete this.__on}}}function An($,Q,_e){return function(){var Ae=this.__on,ge,Oe=$n(Q);if(Ae){for(var Pe=0,$e=Ae.length;Pe<$e;++Pe)if((ge=Ae[Pe]).type===$.type&&ge.name===$.name){this.removeEventListener(ge.type,ge.listener,ge.options),this.addEventListener(ge.type,ge.listener=Oe,ge.options=_e),ge.value=Q;return}}this.addEventListener($.type,Oe,_e),ge={type:$.type,name:$.name,value:Q,listener:Oe,options:_e},Ae?Ae.push(ge):this.__on=[ge]}}function Yt($,Q,_e){var Ae=yn($+""),ge,Oe=Ae.length,Pe;if(arguments.length<2){var $e=this.node().__on;if($e){for(var Fe=0,ze=$e.length,tt;Fe<ze;++Fe)for(ge=0,tt=$e[Fe];ge<Oe;++ge)if((Pe=Ae[ge]).type===tt.type&&Pe.name===tt.name)return tt.value}return}for($e=Q?An:Bt,ge=0;ge<Oe;++ge)this.each($e(Ae[ge],Q,_e));return this}var vn=n(31382);function on($,Q,_e){var Ae=(0,vn.A)($),ge=Ae.CustomEvent;typeof ge=="function"?ge=new ge(Q,_e):(ge=Ae.document.createEvent("Event"),_e?(ge.initEvent(Q,_e.bubbles,_e.cancelable),ge.detail=_e.detail):ge.initEvent(Q,!1,!1)),$.dispatchEvent(ge)}function Sn($,Q){return function(){return on(this,$,Q)}}function Un($,Q){return function(){return on(this,$,Q.apply(this,arguments))}}function Tn($,Q){return this.each((typeof Q=="function"?Un:Sn)($,Q))}function*Lt(){for(var $=this._groups,Q=0,_e=$.length;Q<_e;++Q)for(var Ae=$[Q],ge=0,Oe=Ae.length,Pe;ge<Oe;++ge)(Pe=Ae[ge])&&(yield Pe)}var On=[null];function Nt($,Q){this._groups=$,this._parents=Q}function Xn(){return new Nt([[document.documentElement]],On)}function an(){return this}Nt.prototype=Xn.prototype={constructor:Nt,select:d,selectAll:g,selectChild:y,selectChildren:j,filter:B,data:re,enter:P,exit:pe,join:de,merge:ue,selection:an,order:ye,sort:te,call:De,nodes:Be,node:ut,size:et,empty:dt,each:pt,attr:Ge,style:Ze.A,property:ht,classed:zt,text:_n,html:pn,raise:Ln,lower:_t,append:jn,insert:gn,remove:Wt,clone:qn,datum:ui,on:Yt,dispatch:Tn,[Symbol.iterator]:Lt};const It=Xn},45632:(_,A,n)=>{"use strict";n.d(A,{A:()=>c,j:()=>g});var r=n(31382);function d(m){return function(){this.style.removeProperty(m)}}function l(m,f,v){return function(){this.style.setProperty(m,f,v)}}function p(m,f,v){return function(){var x=f.apply(this,arguments);x==null?this.style.removeProperty(m):this.style.setProperty(m,x,v)}}function c(m,f,v){return arguments.length>1?this.each((f==null?d:typeof f=="function"?p:l)(m,f,v??"")):g(this.node(),m)}function g(m,f){return m.style.getPropertyValue(f)||(0,r.A)(m).getComputedStyle(m,null).getPropertyValue(f)}},17096:(_,A,n)=>{"use strict";n.d(A,{A:()=>d});function r(){}function d(l){return l==null?r:function(){return this.querySelector(l)}}},53972:(_,A,n)=>{"use strict";n.d(A,{A:()=>d});function r(){return[]}function d(l){return l==null?r:function(){return this.querySelectorAll(l)}}},31382:(_,A,n)=>{"use strict";n.d(A,{A:()=>r});function r(d){return d.ownerDocument&&d.ownerDocument.defaultView||d.document&&d||d.defaultView}},44850:(_,A,n)=>{"use strict";n.d(A,{A:()=>d,d:()=>r});var r=Array.prototype.slice;function d(l){return typeof l=="object"&&"length"in l?l:Array.from(l)}},49855:(_,A,n)=>{"use strict";n.d(A,{A:()=>r});function r(d){return function(){return d}}},20482:(_,A,n)=>{"use strict";n.d(A,{A:()=>d});function r(l){this._context=l}r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(l,p){switch(l=+l,p=+p,this._point){case 0:this._point=1,this._line?this._context.lineTo(l,p):this._context.moveTo(l,p);break;case 1:this._point=2;default:this._context.lineTo(l,p);break}}};function d(l){return new r(l)}},24260:(_,A,n)=>{"use strict";n.r(A),n.d(A,{arc:()=>q,area:()=>ue,areaRadial:()=>pt,curveBasis:()=>Gt,curveBasisClosed:()=>ui,curveBasisOpen:()=>yn,curveBumpX:()=>oe,curveBumpY:()=>J,curveBundle:()=>An,curveCardinal:()=>on,curveCardinalClosed:()=>Un,curveCardinalOpen:()=>Lt,curveCatmullRom:()=>Xn,curveCatmullRomClosed:()=>It,curveCatmullRomOpen:()=>Q,curveLinear:()=>he.A,curveLinearClosed:()=>Ae,curveMonotoneX:()=>Ct,curveMonotoneY:()=>Ft,curveNatural:()=>bn,curveStep:()=>Jn,curveStepAfter:()=>Kn,curveStepBefore:()=>Nn,line:()=>pe.A,lineRadial:()=>dt,link:()=>Ze,linkHorizontal:()=>rt,linkRadial:()=>tn,linkVertical:()=>wt,pie:()=>Se,pointRadial:()=>At,radialArea:()=>pt,radialLine:()=>dt,stack:()=>li,stackOffsetDiverging:()=>ci,stackOffsetExpand:()=>bi,stackOffsetNone:()=>wn,stackOffsetSilhouette:()=>fi,stackOffsetWiggle:()=>Mi,stackOrderAppearance:()=>wi,stackOrderAscending:()=>Qn,stackOrderDescending:()=>xi,stackOrderInsideOut:()=>_i,stackOrderNone:()=>ln,stackOrderReverse:()=>Ei,symbol:()=>gn,symbolAsterisk:()=>ot,symbolCircle:()=>Ye,symbolCross:()=>kt,symbolDiamond:()=>xt,symbolDiamond2:()=>dn,symbolPlus:()=>Dt,symbolSquare:()=>zt,symbolSquare2:()=>at,symbolStar:()=>sn,symbolTimes:()=>mn,symbolTriangle:()=>pn,symbolTriangle2:()=>Ln,symbolWye:()=>Pn,symbolX:()=>mn,symbols:()=>jn,symbolsFill:()=>jn,symbolsStroke:()=>Rn});var r=n(49855);const d=Math.abs,l=Math.atan2,p=Math.cos,c=Math.max,g=Math.min,m=Math.sin,f=Math.sqrt,v=1e-12,x=Math.PI,y=x/2,E=2*x;function O(u){return u>1?0:u<-1?x:Math.acos(u)}function N(u){return u>=1?y:u<=-1?-y:Math.asin(u)}var j=n(24362);function B(u){return u.innerRadius}function k(u){return u.outerRadius}function P(u){return u.startAngle}function L(u){return u.endAngle}function F(u){return u&&u.padAngle}function U(u,T,I,z,ne,ee,ce,ie){var Ce=I-u,ve=z-T,Ne=ce-ne,Ie=ie-ee,Me=Ie*Ce-Ne*ve;if(!(Me*Me<v))return Me=(Ne*(T-ee)-Ie*(u-ne))/Me,[u+Me*Ce,T+Me*ve]}function W(u,T,I,z,ne,ee,ce){var ie=u-I,Ce=T-z,ve=(ce?ee:-ee)/f(ie*ie+Ce*Ce),Ne=ve*Ce,Ie=-ve*ie,Me=u+Ne,qe=T+Ie,nt=I+Ne,st=z+Ie,bt=(Me+nt)/2,it=(qe+st)/2,Tt=nt-Me,St=st-qe,Et=Tt*Tt+St*St,Ut=ne-ee,Mt=Me*st-nt*qe,cn=(St<0?-1:1)*f(c(0,Ut*Ut*Et-Mt*Mt)),fn=(Mt*St-Tt*cn)/Et,kn=(-Mt*Tt-St*cn)/Et,qt=(Mt*St+Tt*cn)/Et,en=(-Mt*Tt+St*cn)/Et,Ht=fn-bt,Je=kn-it,ct=qt-bt,In=en-it;return Ht*Ht+Je*Je>ct*ct+In*In&&(fn=qt,kn=en),{cx:fn,cy:kn,x01:-Ne,y01:-Ie,x11:fn*(ne/Ut-1),y11:kn*(ne/Ut-1)}}function q(){var u=B,T=k,I=(0,r.A)(0),z=null,ne=P,ee=L,ce=F,ie=null,Ce=(0,j.i)(ve);function ve(){var Ne,Ie,Me=+u.apply(this,arguments),qe=+T.apply(this,arguments),nt=ne.apply(this,arguments)-y,st=ee.apply(this,arguments)-y,bt=d(st-nt),it=st>nt;if(ie||(ie=Ne=Ce()),qe<Me&&(Ie=qe,qe=Me,Me=Ie),!(qe>v))ie.moveTo(0,0);else if(bt>E-v)ie.moveTo(qe*p(nt),qe*m(nt)),ie.arc(0,0,qe,nt,st,!it),Me>v&&(ie.moveTo(Me*p(st),Me*m(st)),ie.arc(0,0,Me,st,nt,it));else{var Tt=nt,St=st,Et=nt,Ut=st,Mt=bt,cn=bt,fn=ce.apply(this,arguments)/2,kn=fn>v&&(z?+z.apply(this,arguments):f(Me*Me+qe*qe)),qt=g(d(qe-Me)/2,+I.apply(this,arguments)),en=qt,Ht=qt,Je,ct;if(kn>v){var In=N(kn/Me*m(fn)),Cn=N(kn/qe*m(fn));(Mt-=In*2)>v?(In*=it?1:-1,Et+=In,Ut-=In):(Mt=0,Et=Ut=(nt+st)/2),(cn-=Cn*2)>v?(Cn*=it?1:-1,Tt+=Cn,St-=Cn):(cn=0,Tt=St=(nt+st)/2)}var Wn=qe*p(Tt),Mn=qe*m(Tt),ti=Me*p(Ut),ni=Me*m(Ut);if(qt>v){var ii=qe*p(St),si=qe*m(St),ri=Me*p(Et),hi=Me*m(Et),xn;if(bt<x)if(xn=U(Wn,Mn,ri,hi,ii,si,ti,ni)){var di=Wn-xn[0],pi=Mn-xn[1],oi=ii-xn[0],Zn=si-xn[1],Ai=1/m(O((di*oi+pi*Zn)/(f(di*di+pi*pi)*f(oi*oi+Zn*Zn)))/2),Si=f(xn[0]*xn[0]+xn[1]*xn[1]);en=g(qt,(Me-Si)/(Ai-1)),Ht=g(qt,(qe-Si)/(Ai+1))}else en=Ht=0}cn>v?Ht>v?(Je=W(ri,hi,Wn,Mn,qe,Ht,it),ct=W(ii,si,ti,ni,qe,Ht,it),ie.moveTo(Je.cx+Je.x01,Je.cy+Je.y01),Ht<qt?ie.arc(Je.cx,Je.cy,Ht,l(Je.y01,Je.x01),l(ct.y01,ct.x01),!it):(ie.arc(Je.cx,Je.cy,Ht,l(Je.y01,Je.x01),l(Je.y11,Je.x11),!it),ie.arc(0,0,qe,l(Je.cy+Je.y11,Je.cx+Je.x11),l(ct.cy+ct.y11,ct.cx+ct.x11),!it),ie.arc(ct.cx,ct.cy,Ht,l(ct.y11,ct.x11),l(ct.y01,ct.x01),!it))):(ie.moveTo(Wn,Mn),ie.arc(0,0,qe,Tt,St,!it)):ie.moveTo(Wn,Mn),!(Me>v)||!(Mt>v)?ie.lineTo(ti,ni):en>v?(Je=W(ti,ni,ii,si,Me,-en,it),ct=W(Wn,Mn,ri,hi,Me,-en,it),ie.lineTo(Je.cx+Je.x01,Je.cy+Je.y01),en<qt?ie.arc(Je.cx,Je.cy,en,l(Je.y01,Je.x01),l(ct.y01,ct.x01),!it):(ie.arc(Je.cx,Je.cy,en,l(Je.y01,Je.x01),l(Je.y11,Je.x11),!it),ie.arc(0,0,Me,l(Je.cy+Je.y11,Je.cx+Je.x11),l(ct.cy+ct.y11,ct.cx+ct.x11),it),ie.arc(ct.cx,ct.cy,en,l(ct.y11,ct.x11),l(ct.y01,ct.x01),!it))):ie.arc(0,0,Me,Ut,Et,it)}if(ie.closePath(),Ne)return ie=null,Ne+""||null}return ve.centroid=function(){var Ne=(+u.apply(this,arguments)+ +T.apply(this,arguments))/2,Ie=(+ne.apply(this,arguments)+ +ee.apply(this,arguments))/2-x/2;return[p(Ie)*Ne,m(Ie)*Ne]},ve.innerRadius=function(Ne){return arguments.length?(u=typeof Ne=="function"?Ne:(0,r.A)(+Ne),ve):u},ve.outerRadius=function(Ne){return arguments.length?(T=typeof Ne=="function"?Ne:(0,r.A)(+Ne),ve):T},ve.cornerRadius=function(Ne){return arguments.length?(I=typeof Ne=="function"?Ne:(0,r.A)(+Ne),ve):I},ve.padRadius=function(Ne){return arguments.length?(z=Ne==null?null:typeof Ne=="function"?Ne:(0,r.A)(+Ne),ve):z},ve.startAngle=function(Ne){return arguments.length?(ne=typeof Ne=="function"?Ne:(0,r.A)(+Ne),ve):ne},ve.endAngle=function(Ne){return arguments.length?(ee=typeof Ne=="function"?Ne:(0,r.A)(+Ne),ve):ee},ve.padAngle=function(Ne){return arguments.length?(ce=typeof Ne=="function"?Ne:(0,r.A)(+Ne),ve):ce},ve.context=function(Ne){return arguments.length?(ie=Ne??null,ve):ie},ve}var re=n(44850),he=n(20482),pe=n(1121),de=n(74517);function ue(u,T,I){var z=null,ne=(0,r.A)(!0),ee=null,ce=he.A,ie=null,Ce=(0,j.i)(ve);u=typeof u=="function"?u:u===void 0?de.x:(0,r.A)(+u),T=typeof T=="function"?T:T===void 0?(0,r.A)(0):(0,r.A)(+T),I=typeof I=="function"?I:I===void 0?de.y:(0,r.A)(+I);function ve(Ie){var Me,qe,nt,st=(Ie=(0,re.A)(Ie)).length,bt,it=!1,Tt,St=new Array(st),Et=new Array(st);for(ee==null&&(ie=ce(Tt=Ce())),Me=0;Me<=st;++Me){if(!(Me<st&&ne(bt=Ie[Me],Me,Ie))===it)if(it=!it)qe=Me,ie.areaStart(),ie.lineStart();else{for(ie.lineEnd(),ie.lineStart(),nt=Me-1;nt>=qe;--nt)ie.point(St[nt],Et[nt]);ie.lineEnd(),ie.areaEnd()}it&&(St[Me]=+u(bt,Me,Ie),Et[Me]=+T(bt,Me,Ie),ie.point(z?+z(bt,Me,Ie):St[Me],I?+I(bt,Me,Ie):Et[Me]))}if(Tt)return ie=null,Tt+""||null}function Ne(){return(0,pe.A)().defined(ne).curve(ce).context(ee)}return ve.x=function(Ie){return arguments.length?(u=typeof Ie=="function"?Ie:(0,r.A)(+Ie),z=null,ve):u},ve.x0=function(Ie){return arguments.length?(u=typeof Ie=="function"?Ie:(0,r.A)(+Ie),ve):u},ve.x1=function(Ie){return arguments.length?(z=Ie==null?null:typeof Ie=="function"?Ie:(0,r.A)(+Ie),ve):z},ve.y=function(Ie){return arguments.length?(T=typeof Ie=="function"?Ie:(0,r.A)(+Ie),I=null,ve):T},ve.y0=function(Ie){return arguments.length?(T=typeof Ie=="function"?Ie:(0,r.A)(+Ie),ve):T},ve.y1=function(Ie){return arguments.length?(I=Ie==null?null:typeof Ie=="function"?Ie:(0,r.A)(+Ie),ve):I},ve.lineX0=ve.lineY0=function(){return Ne().x(u).y(T)},ve.lineY1=function(){return Ne().x(u).y(I)},ve.lineX1=function(){return Ne().x(z).y(T)},ve.defined=function(Ie){return arguments.length?(ne=typeof Ie=="function"?Ie:(0,r.A)(!!Ie),ve):ne},ve.curve=function(Ie){return arguments.length?(ce=Ie,ee!=null&&(ie=ce(ee)),ve):ce},ve.context=function(Ie){return arguments.length?(Ie==null?ee=ie=null:ie=ce(ee=Ie),ve):ee},ve}function ye(u,T){return T<u?-1:T>u?1:T>=u?0:NaN}function te(u){return u}function Se(){var u=te,T=ye,I=null,z=(0,r.A)(0),ne=(0,r.A)(E),ee=(0,r.A)(0);function ce(ie){var Ce,ve=(ie=(0,re.A)(ie)).length,Ne,Ie,Me=0,qe=new Array(ve),nt=new Array(ve),st=+z.apply(this,arguments),bt=Math.min(E,Math.max(-E,ne.apply(this,arguments)-st)),it,Tt=Math.min(Math.abs(bt)/ve,ee.apply(this,arguments)),St=Tt*(bt<0?-1:1),Et;for(Ce=0;Ce<ve;++Ce)(Et=nt[qe[Ce]=Ce]=+u(ie[Ce],Ce,ie))>0&&(Me+=Et);for(T!=null?qe.sort(function(Ut,Mt){return T(nt[Ut],nt[Mt])}):I!=null&&qe.sort(function(Ut,Mt){return I(ie[Ut],ie[Mt])}),Ce=0,Ie=Me?(bt-ve*St)/Me:0;Ce<ve;++Ce,st=it)Ne=qe[Ce],Et=nt[Ne],it=st+(Et>0?Et*Ie:0)+St,nt[Ne]={data:ie[Ne],index:Ce,value:Et,startAngle:st,endAngle:it,padAngle:Tt};return nt}return ce.value=function(ie){return arguments.length?(u=typeof ie=="function"?ie:(0,r.A)(+ie),ce):u},ce.sortValues=function(ie){return arguments.length?(T=ie,I=null,ce):T},ce.sort=function(ie){return arguments.length?(I=ie,T=null,ce):I},ce.startAngle=function(ie){return arguments.length?(z=typeof ie=="function"?ie:(0,r.A)(+ie),ce):z},ce.endAngle=function(ie){return arguments.length?(ne=typeof ie=="function"?ie:(0,r.A)(+ie),ce):ne},ce.padAngle=function(ie){return arguments.length?(ee=typeof ie=="function"?ie:(0,r.A)(+ie),ce):ee},ce}var De=ut(he.A);function Be(u){this._curve=u}Be.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(u,T){this._curve.point(T*Math.sin(u),T*-Math.cos(u))}};function ut(u){function T(I){return new Be(u(I))}return T._curve=u,T}function et(u){var T=u.curve;return u.angle=u.x,delete u.x,u.radius=u.y,delete u.y,u.curve=function(I){return arguments.length?T(ut(I)):T()._curve},u}function dt(){return et((0,pe.A)().curve(De))}function pt(){var u=ue().curve(De),T=u.curve,I=u.lineX0,z=u.lineX1,ne=u.lineY0,ee=u.lineY1;return u.angle=u.x,delete u.x,u.startAngle=u.x0,delete u.x0,u.endAngle=u.x1,delete u.x1,u.radius=u.y,delete u.y,u.innerRadius=u.y0,delete u.y0,u.outerRadius=u.y1,delete u.y1,u.lineStartAngle=function(){return et(I())},delete u.lineX0,u.lineEndAngle=function(){return et(z())},delete u.lineX1,u.lineInnerRadius=function(){return et(ne())},delete u.lineY0,u.lineOuterRadius=function(){return et(ee())},delete u.lineY1,u.curve=function(ce){return arguments.length?T(ut(ce)):T()._curve},u}function At(u,T){return[(T=+T)*Math.cos(u-=Math.PI/2),T*Math.sin(u)]}class mt{constructor(T,I){this._context=T,this._x=I}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(T,I){switch(T=+T,I=+I,this._point){case 0:{this._point=1,this._line?this._context.lineTo(T,I):this._context.moveTo(T,I);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+T)/2,this._y0,this._x0,I,T,I):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+I)/2,T,this._y0,T,I);break}}this._x0=T,this._y0=I}}class Rt{constructor(T){this._context=T}lineStart(){this._point=0}lineEnd(){}point(T,I){if(T=+T,I=+I,this._point===0)this._point=1;else{const z=At(this._x0,this._y0),ne=At(this._x0,this._y0=(this._y0+I)/2),ee=At(T,this._y0),ce=At(T,I);this._context.moveTo(...z),this._context.bezierCurveTo(...ne,...ee,...ce)}this._x0=T,this._y0=I}}function oe(u){return new mt(u,!0)}function J(u){return new mt(u,!1)}function le(u){return new Rt(u)}function ke(u){return u.source}function Ge(u){return u.target}function Ze(u){let T=ke,I=Ge,z=de.x,ne=de.y,ee=null,ce=null,ie=(0,j.i)(Ce);function Ce(){let ve;const Ne=re.d.call(arguments),Ie=T.apply(this,Ne),Me=I.apply(this,Ne);if(ee==null&&(ce=u(ve=ie())),ce.lineStart(),Ne[0]=Ie,ce.point(+z.apply(this,Ne),+ne.apply(this,Ne)),Ne[0]=Me,ce.point(+z.apply(this,Ne),+ne.apply(this,Ne)),ce.lineEnd(),ve)return ce=null,ve+""||null}return Ce.source=function(ve){return arguments.length?(T=ve,Ce):T},Ce.target=function(ve){return arguments.length?(I=ve,Ce):I},Ce.x=function(ve){return arguments.length?(z=typeof ve=="function"?ve:(0,r.A)(+ve),Ce):z},Ce.y=function(ve){return arguments.length?(ne=typeof ve=="function"?ve:(0,r.A)(+ve),Ce):ne},Ce.context=function(ve){return arguments.length?(ve==null?ee=ce=null:ce=u(ee=ve),Ce):ee},Ce}function rt(){return Ze(oe)}function wt(){return Ze(J)}function tn(){const u=Ze(le);return u.angle=u.x,delete u.x,u.radius=u.y,delete u.y,u}const ht=f(3),ot={draw(u,T){const I=f(T+g(T/28,.75))*.59436,z=I/2,ne=z*ht;u.moveTo(0,I),u.lineTo(0,-I),u.moveTo(-ne,-z),u.lineTo(ne,z),u.moveTo(-ne,z),u.lineTo(ne,-z)}},Ye={draw(u,T){const I=f(T/x);u.moveTo(I,0),u.arc(0,0,I,0,E)}},kt={draw(u,T){const I=f(T/5)/2;u.moveTo(-3*I,-I),u.lineTo(-I,-I),u.lineTo(-I,-3*I),u.lineTo(I,-3*I),u.lineTo(I,-I),u.lineTo(3*I,-I),u.lineTo(3*I,I),u.lineTo(I,I),u.lineTo(I,3*I),u.lineTo(-I,3*I),u.lineTo(-I,I),u.lineTo(-3*I,I),u.closePath()}},He=f(1/3),vt=He*2,xt={draw(u,T){const I=f(T/vt),z=I*He;u.moveTo(0,-I),u.lineTo(z,0),u.lineTo(0,I),u.lineTo(-z,0),u.closePath()}},dn={draw(u,T){const I=f(T)*.62625;u.moveTo(0,-I),u.lineTo(I,0),u.lineTo(0,I),u.lineTo(-I,0),u.closePath()}},Dt={draw(u,T){const I=f(T-g(T/7,2))*.87559;u.moveTo(-I,0),u.lineTo(I,0),u.moveTo(0,I),u.lineTo(0,-I)}},zt={draw(u,T){const I=f(T),z=-I/2;u.rect(z,z,I,I)}},at={draw(u,T){const I=f(T)*.4431;u.moveTo(I,I),u.lineTo(I,-I),u.lineTo(-I,-I),u.lineTo(-I,I),u.closePath()}},nn=.8908130915292852,$t=m(x/10)/m(7*x/10),_n=m(E/10)*$t,Qt=-p(E/10)*$t,sn={draw(u,T){const I=f(T*nn),z=_n*I,ne=Qt*I;u.moveTo(0,-I),u.lineTo(z,ne);for(let ee=1;ee<5;++ee){const ce=E*ee/5,ie=p(ce),Ce=m(ce);u.lineTo(Ce*I,-ie*I),u.lineTo(ie*z-Ce*ne,Ce*z+ie*ne)}u.closePath()}},Zt=f(3),pn={draw(u,T){const I=-f(T/(Zt*3));u.moveTo(0,I*2),u.lineTo(-Zt*I,-I),u.lineTo(Zt*I,-I),u.closePath()}},Hn=f(3),Ln={draw(u,T){const I=f(T)*.6824,z=I/2,ne=I*Hn/2;u.moveTo(0,-I),u.lineTo(ne,z),u.lineTo(-ne,z),u.closePath()}},lt=-.5,_t=f(3)/2,En=1/f(12),yi=(En/2+1)*3,Pn={draw(u,T){const I=f(T/yi),z=I/2,ne=I*En,ee=z,ce=I*En+I,ie=-ee,Ce=ce;u.moveTo(z,ne),u.lineTo(ee,ce),u.lineTo(ie,Ce),u.lineTo(lt*z-_t*ne,_t*z+lt*ne),u.lineTo(lt*ee-_t*ce,_t*ee+lt*ce),u.lineTo(lt*ie-_t*Ce,_t*ie+lt*Ce),u.lineTo(lt*z+_t*ne,lt*ne-_t*z),u.lineTo(lt*ee+_t*ce,lt*ce-_t*ee),u.lineTo(lt*ie+_t*Ce,lt*Ce-_t*ie),u.closePath()}},mn={draw(u,T){const I=f(T-g(T/6,1.7))*.6189;u.moveTo(-I,-I),u.lineTo(I,I),u.moveTo(-I,I),u.lineTo(I,-I)}},jn=[Ye,kt,xt,zt,sn,pn,Pn],Rn=[Ye,Dt,mn,Ln,ot,at,dn];function gn(u,T){let I=null,z=(0,j.i)(ne);u=typeof u=="function"?u:(0,r.A)(u||Ye),T=typeof T=="function"?T:(0,r.A)(T===void 0?64:+T);function ne(){let ee;if(I||(I=ee=z()),u.apply(this,arguments).draw(I,+T.apply(this,arguments)),ee)return I=null,ee+""||null}return ne.type=function(ee){return arguments.length?(u=typeof ee=="function"?ee:(0,r.A)(ee),ne):u},ne.size=function(ee){return arguments.length?(T=typeof ee=="function"?ee:(0,r.A)(+ee),ne):T},ne.context=function(ee){return arguments.length?(I=ee??null,ne):I},ne}function Vt(){}function Wt(u,T,I){u._context.bezierCurveTo((2*u._x0+u._x1)/3,(2*u._y0+u._y1)/3,(u._x0+2*u._x1)/3,(u._y0+2*u._y1)/3,(u._x0+4*u._x1+T)/6,(u._y0+4*u._y1+I)/6)}function gt(u){this._context=u}gt.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:Wt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(u,T){switch(u=+u,T=+T,this._point){case 0:this._point=1,this._line?this._context.lineTo(u,T):this._context.moveTo(u,T);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Wt(this,u,T);break}this._x0=this._x1,this._x1=u,this._y0=this._y1,this._y1=T}};function Gt(u){return new gt(u)}function qn(u){this._context=u}qn.prototype={areaStart:Vt,areaEnd:Vt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(u,T){switch(u=+u,T=+T,this._point){case 0:this._point=1,this._x2=u,this._y2=T;break;case 1:this._point=2,this._x3=u,this._y3=T;break;case 2:this._point=3,this._x4=u,this._y4=T,this._context.moveTo((this._x0+4*this._x1+u)/6,(this._y0+4*this._y1+T)/6);break;default:Wt(this,u,T);break}this._x0=this._x1,this._x1=u,this._y0=this._y1,this._y1=T}};function ui(u){return new qn(u)}function $n(u){this._context=u}$n.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(u,T){switch(u=+u,T=+T,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var I=(this._x0+4*this._x1+u)/6,z=(this._y0+4*this._y1+T)/6;this._line?this._context.lineTo(I,z):this._context.moveTo(I,z);break;case 3:this._point=4;default:Wt(this,u,T);break}this._x0=this._x1,this._x1=u,this._y0=this._y1,this._y1=T}};function yn(u){return new $n(u)}function Bt(u,T){this._basis=new gt(u),this._beta=T}Bt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var u=this._x,T=this._y,I=u.length-1;if(I>0)for(var z=u[0],ne=T[0],ee=u[I]-z,ce=T[I]-ne,ie=-1,Ce;++ie<=I;)Ce=ie/I,this._basis.point(this._beta*u[ie]+(1-this._beta)*(z+Ce*ee),this._beta*T[ie]+(1-this._beta)*(ne+Ce*ce));this._x=this._y=null,this._basis.lineEnd()},point:function(u,T){this._x.push(+u),this._y.push(+T)}};const An=function u(T){function I(z){return T===1?new gt(z):new Bt(z,T)}return I.beta=function(z){return u(+z)},I}(.85);function Yt(u,T,I){u._context.bezierCurveTo(u._x1+u._k*(u._x2-u._x0),u._y1+u._k*(u._y2-u._y0),u._x2+u._k*(u._x1-T),u._y2+u._k*(u._y1-I),u._x2,u._y2)}function vn(u,T){this._context=u,this._k=(1-T)/6}vn.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:Yt(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(u,T){switch(u=+u,T=+T,this._point){case 0:this._point=1,this._line?this._context.lineTo(u,T):this._context.moveTo(u,T);break;case 1:this._point=2,this._x1=u,this._y1=T;break;case 2:this._point=3;default:Yt(this,u,T);break}this._x0=this._x1,this._x1=this._x2,this._x2=u,this._y0=this._y1,this._y1=this._y2,this._y2=T}};const on=function u(T){function I(z){return new vn(z,T)}return I.tension=function(z){return u(+z)},I}(0);function Sn(u,T){this._context=u,this._k=(1-T)/6}Sn.prototype={areaStart:Vt,areaEnd:Vt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(u,T){switch(u=+u,T=+T,this._point){case 0:this._point=1,this._x3=u,this._y3=T;break;case 1:this._point=2,this._context.moveTo(this._x4=u,this._y4=T);break;case 2:this._point=3,this._x5=u,this._y5=T;break;default:Yt(this,u,T);break}this._x0=this._x1,this._x1=this._x2,this._x2=u,this._y0=this._y1,this._y1=this._y2,this._y2=T}};const Un=function u(T){function I(z){return new Sn(z,T)}return I.tension=function(z){return u(+z)},I}(0);function Tn(u,T){this._context=u,this._k=(1-T)/6}Tn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(u,T){switch(u=+u,T=+T,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Yt(this,u,T);break}this._x0=this._x1,this._x1=this._x2,this._x2=u,this._y0=this._y1,this._y1=this._y2,this._y2=T}};const Lt=function u(T){function I(z){return new Tn(z,T)}return I.tension=function(z){return u(+z)},I}(0);function On(u,T,I){var z=u._x1,ne=u._y1,ee=u._x2,ce=u._y2;if(u._l01_a>v){var ie=2*u._l01_2a+3*u._l01_a*u._l12_a+u._l12_2a,Ce=3*u._l01_a*(u._l01_a+u._l12_a);z=(z*ie-u._x0*u._l12_2a+u._x2*u._l01_2a)/Ce,ne=(ne*ie-u._y0*u._l12_2a+u._y2*u._l01_2a)/Ce}if(u._l23_a>v){var ve=2*u._l23_2a+3*u._l23_a*u._l12_a+u._l12_2a,Ne=3*u._l23_a*(u._l23_a+u._l12_a);ee=(ee*ve+u._x1*u._l23_2a-T*u._l12_2a)/Ne,ce=(ce*ve+u._y1*u._l23_2a-I*u._l12_2a)/Ne}u._context.bezierCurveTo(z,ne,ee,ce,u._x2,u._y2)}function Nt(u,T){this._context=u,this._alpha=T}Nt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(u,T){if(u=+u,T=+T,this._point){var I=this._x2-u,z=this._y2-T;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(I*I+z*z,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(u,T):this._context.moveTo(u,T);break;case 1:this._point=2;break;case 2:this._point=3;default:On(this,u,T);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=u,this._y0=this._y1,this._y1=this._y2,this._y2=T}};const Xn=function u(T){function I(z){return T?new Nt(z,T):new vn(z,0)}return I.alpha=function(z){return u(+z)},I}(.5);function an(u,T){this._context=u,this._alpha=T}an.prototype={areaStart:Vt,areaEnd:Vt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(u,T){if(u=+u,T=+T,this._point){var I=this._x2-u,z=this._y2-T;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(I*I+z*z,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=u,this._y3=T;break;case 1:this._point=2,this._context.moveTo(this._x4=u,this._y4=T);break;case 2:this._point=3,this._x5=u,this._y5=T;break;default:On(this,u,T);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=u,this._y0=this._y1,this._y1=this._y2,this._y2=T}};const It=function u(T){function I(z){return T?new an(z,T):new Sn(z,0)}return I.alpha=function(z){return u(+z)},I}(.5);function $(u,T){this._context=u,this._alpha=T}$.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(u,T){if(u=+u,T=+T,this._point){var I=this._x2-u,z=this._y2-T;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(I*I+z*z,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:On(this,u,T);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=u,this._y0=this._y1,this._y1=this._y2,this._y2=T}};const Q=function u(T){function I(z){return T?new $(z,T):new Tn(z,0)}return I.alpha=function(z){return u(+z)},I}(.5);function _e(u){this._context=u}_e.prototype={areaStart:Vt,areaEnd:Vt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(u,T){u=+u,T=+T,this._point?this._context.lineTo(u,T):(this._point=1,this._context.moveTo(u,T))}};function Ae(u){return new _e(u)}function ge(u){return u<0?-1:1}function Oe(u,T,I){var z=u._x1-u._x0,ne=T-u._x1,ee=(u._y1-u._y0)/(z||ne<0&&-0),ce=(I-u._y1)/(ne||z<0&&-0),ie=(ee*ne+ce*z)/(z+ne);return(ge(ee)+ge(ce))*Math.min(Math.abs(ee),Math.abs(ce),.5*Math.abs(ie))||0}function Pe(u,T){var I=u._x1-u._x0;return I?(3*(u._y1-u._y0)/I-T)/2:T}function $e(u,T,I){var z=u._x0,ne=u._y0,ee=u._x1,ce=u._y1,ie=(ee-z)/3;u._context.bezierCurveTo(z+ie,ne+ie*T,ee-ie,ce-ie*I,ee,ce)}function Fe(u){this._context=u}Fe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:$e(this,this._t0,Pe(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(u,T){var I=NaN;if(u=+u,T=+T,!(u===this._x1&&T===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(u,T):this._context.moveTo(u,T);break;case 1:this._point=2;break;case 2:this._point=3,$e(this,Pe(this,I=Oe(this,u,T)),I);break;default:$e(this,this._t0,I=Oe(this,u,T));break}this._x0=this._x1,this._x1=u,this._y0=this._y1,this._y1=T,this._t0=I}}};function ze(u){this._context=new tt(u)}(ze.prototype=Object.create(Fe.prototype)).point=function(u,T){Fe.prototype.point.call(this,T,u)};function tt(u){this._context=u}tt.prototype={moveTo:function(u,T){this._context.moveTo(T,u)},closePath:function(){this._context.closePath()},lineTo:function(u,T){this._context.lineTo(T,u)},bezierCurveTo:function(u,T,I,z,ne,ee){this._context.bezierCurveTo(T,u,z,I,ee,ne)}};function Ct(u){return new Fe(u)}function Ft(u){return new ze(u)}function Pt(u){this._context=u}Pt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var u=this._x,T=this._y,I=u.length;if(I)if(this._line?this._context.lineTo(u[0],T[0]):this._context.moveTo(u[0],T[0]),I===2)this._context.lineTo(u[1],T[1]);else for(var z=jt(u),ne=jt(T),ee=0,ce=1;ce<I;++ee,++ce)this._context.bezierCurveTo(z[0][ee],ne[0][ee],z[1][ee],ne[1][ee],u[ce],T[ce]);(this._line||this._line!==0&&I===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(u,T){this._x.push(+u),this._y.push(+T)}};function jt(u){var T,I=u.length-1,z,ne=new Array(I),ee=new Array(I),ce=new Array(I);for(ne[0]=0,ee[0]=2,ce[0]=u[0]+2*u[1],T=1;T<I-1;++T)ne[T]=1,ee[T]=4,ce[T]=4*u[T]+2*u[T+1];for(ne[I-1]=2,ee[I-1]=7,ce[I-1]=8*u[I-1]+u[I],T=1;T<I;++T)z=ne[T]/ee[T-1],ee[T]-=z,ce[T]-=z*ce[T-1];for(ne[I-1]=ce[I-1]/ee[I-1],T=I-2;T>=0;--T)ne[T]=(ce[T]-ne[T+1])/ee[T];for(ee[I-1]=(u[I]+ne[I-1])/2,T=0;T<I-1;++T)ee[T]=2*u[T+1]-ne[T+1];return[ne,ee]}function bn(u){return new Pt(u)}function un(u,T){this._context=u,this._t=T}un.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(u,T){switch(u=+u,T=+T,this._point){case 0:this._point=1,this._line?this._context.lineTo(u,T):this._context.moveTo(u,T);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,T),this._context.lineTo(u,T);else{var I=this._x*(1-this._t)+u*this._t;this._context.lineTo(I,this._y),this._context.lineTo(I,T)}break}}this._x=u,this._y=T}};function Jn(u){return new un(u,.5)}function Nn(u){return new un(u,0)}function Kn(u){return new un(u,1)}function wn(u,T){if((ce=u.length)>1)for(var I=1,z,ne,ee=u[T[0]],ce,ie=ee.length;I<ce;++I)for(ne=ee,ee=u[T[I]],z=0;z<ie;++z)ee[z][1]+=ee[z][0]=isNaN(ne[z][1])?ne[z][0]:ne[z][1]}function ln(u){for(var T=u.length,I=new Array(T);--T>=0;)I[T]=T;return I}function vi(u,T){return u[T]}function zn(u){const T=[];return T.key=u,T}function li(){var u=(0,r.A)([]),T=ln,I=wn,z=vi;function ne(ee){var ce=Array.from(u.apply(this,arguments),zn),ie,Ce=ce.length,ve=-1,Ne;for(const Ie of ee)for(ie=0,++ve;ie<Ce;++ie)(ce[ie][ve]=[0,+z(Ie,ce[ie].key,ve,ee)]).data=Ie;for(ie=0,Ne=(0,re.A)(T(ce));ie<Ce;++ie)ce[Ne[ie]].index=ie;return I(ce,Ne),ce}return ne.keys=function(ee){return arguments.length?(u=typeof ee=="function"?ee:(0,r.A)(Array.from(ee)),ne):u},ne.value=function(ee){return arguments.length?(z=typeof ee=="function"?ee:(0,r.A)(+ee),ne):z},ne.order=function(ee){return arguments.length?(T=ee==null?ln:typeof ee=="function"?ee:(0,r.A)(Array.from(ee)),ne):T},ne.offset=function(ee){return arguments.length?(I=ee??wn,ne):I},ne}function bi(u,T){if((z=u.length)>0){for(var I,z,ne=0,ee=u[0].length,ce;ne<ee;++ne){for(ce=I=0;I<z;++I)ce+=u[I][ne][1]||0;if(ce)for(I=0;I<z;++I)u[I][ne][1]/=ce}wn(u,T)}}function ci(u,T){if((Ce=u.length)>0)for(var I,z=0,ne,ee,ce,ie,Ce,ve=u[T[0]].length;z<ve;++z)for(ce=ie=0,I=0;I<Ce;++I)(ee=(ne=u[T[I]][z])[1]-ne[0])>0?(ne[0]=ce,ne[1]=ce+=ee):ee<0?(ne[1]=ie,ne[0]=ie+=ee):(ne[0]=0,ne[1]=ee)}function fi(u,T){if((ne=u.length)>0){for(var I=0,z=u[T[0]],ne,ee=z.length;I<ee;++I){for(var ce=0,ie=0;ce<ne;++ce)ie+=u[ce][I][1]||0;z[I][1]+=z[I][0]=-ie/2}wn(u,T)}}function Mi(u,T){if(!(!((ce=u.length)>0)||!((ee=(ne=u[T[0]]).length)>0))){for(var I=0,z=1,ne,ee,ce;z<ee;++z){for(var ie=0,Ce=0,ve=0;ie<ce;++ie){for(var Ne=u[T[ie]],Ie=Ne[z][1]||0,Me=Ne[z-1][1]||0,qe=(Ie-Me)/2,nt=0;nt<ie;++nt){var st=u[T[nt]],bt=st[z][1]||0,it=st[z-1][1]||0;qe+=bt-it}Ce+=Ie,ve+=qe*Ie}ne[z-1][1]+=ne[z-1][0]=I,Ce&&(I-=ve/Ce)}ne[z-1][1]+=ne[z-1][0]=I,wn(u,T)}}function wi(u){var T=u.map(Vn);return ln(u).sort(function(I,z){return T[I]-T[z]})}function Vn(u){for(var T=-1,I=0,z=u.length,ne,ee=-1/0;++T<z;)(ne=+u[T][1])>ee&&(ee=ne,I=T);return I}function Qn(u){var T=u.map(ei);return ln(u).sort(function(I,z){return T[I]-T[z]})}function ei(u){for(var T=0,I=-1,z=u.length,ne;++I<z;)(ne=+u[I][1])&&(T+=ne);return T}function xi(u){return Qn(u).reverse()}function _i(u){var T=u.length,I,z,ne=u.map(ei),ee=wi(u),ce=0,ie=0,Ce=[],ve=[];for(I=0;I<T;++I)z=ee[I],ce<ie?(ce+=ne[z],Ce.push(z)):(ie+=ne[z],ve.push(z));return ve.reverse().concat(Ce)}function Ei(u){return ln(u).reverse()}},1121:(_,A,n)=>{"use strict";n.d(A,{A:()=>g});var r=n(44850),d=n(49855),l=n(20482),p=n(24362),c=n(74517);function g(m,f){var v=(0,d.A)(!0),x=null,y=l.A,E=null,O=(0,p.i)(N);m=typeof m=="function"?m:m===void 0?c.x:(0,d.A)(m),f=typeof f=="function"?f:f===void 0?c.y:(0,d.A)(f);function N(j){var B,k=(j=(0,r.A)(j)).length,P,L=!1,F;for(x==null&&(E=y(F=O())),B=0;B<=k;++B)!(B<k&&v(P=j[B],B,j))===L&&((L=!L)?E.lineStart():E.lineEnd()),L&&E.point(+m(P,B,j),+f(P,B,j));if(F)return E=null,F+""||null}return N.x=function(j){return arguments.length?(m=typeof j=="function"?j:(0,d.A)(+j),N):m},N.y=function(j){return arguments.length?(f=typeof j=="function"?j:(0,d.A)(+j),N):f},N.defined=function(j){return arguments.length?(v=typeof j=="function"?j:(0,d.A)(!!j),N):v},N.curve=function(j){return arguments.length?(y=j,x!=null&&(E=y(x)),N):y},N.context=function(j){return arguments.length?(j==null?x=E=null:E=y(x=j),N):x},N}},24362:(_,A,n)=>{"use strict";n.d(A,{i:()=>x});const r=Math.PI,d=2*r,l=1e-6,p=d-l;function c(y){this._+=y[0];for(let E=1,O=y.length;E<O;++E)this._+=arguments[E]+y[E]}function g(y){let E=Math.floor(y);if(!(E>=0))throw new Error(`invalid digits: ${y}`);if(E>15)return c;const O=10**E;return function(N){this._+=N[0];for(let j=1,B=N.length;j<B;++j)this._+=Math.round(arguments[j]*O)/O+N[j]}}class m{constructor(E){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=E==null?c:g(E)}moveTo(E,O){this._append`M${this._x0=this._x1=+E},${this._y0=this._y1=+O}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(E,O){this._append`L${this._x1=+E},${this._y1=+O}`}quadraticCurveTo(E,O,N,j){this._append`Q${+E},${+O},${this._x1=+N},${this._y1=+j}`}bezierCurveTo(E,O,N,j,B,k){this._append`C${+E},${+O},${+N},${+j},${this._x1=+B},${this._y1=+k}`}arcTo(E,O,N,j,B){if(E=+E,O=+O,N=+N,j=+j,B=+B,B<0)throw new Error(`negative radius: ${B}`);let k=this._x1,P=this._y1,L=N-E,F=j-O,U=k-E,W=P-O,q=U*U+W*W;if(this._x1===null)this._append`M${this._x1=E},${this._y1=O}`;else if(q>l)if(!(Math.abs(W*L-F*U)>l)||!B)this._append`L${this._x1=E},${this._y1=O}`;else{let re=N-k,he=j-P,pe=L*L+F*F,de=re*re+he*he,ue=Math.sqrt(pe),ye=Math.sqrt(q),te=B*Math.tan((r-Math.acos((pe+q-de)/(2*ue*ye)))/2),Se=te/ye,De=te/ue;Math.abs(Se-1)>l&&this._append`L${E+Se*U},${O+Se*W}`,this._append`A${B},${B},0,0,${+(W*re>U*he)},${this._x1=E+De*L},${this._y1=O+De*F}`}}arc(E,O,N,j,B,k){if(E=+E,O=+O,N=+N,k=!!k,N<0)throw new Error(`negative radius: ${N}`);let P=N*Math.cos(j),L=N*Math.sin(j),F=E+P,U=O+L,W=1^k,q=k?j-B:B-j;this._x1===null?this._append`M${F},${U}`:(Math.abs(this._x1-F)>l||Math.abs(this._y1-U)>l)&&this._append`L${F},${U}`,N&&(q<0&&(q=q%d+d),q>p?this._append`A${N},${N},0,1,${W},${E-P},${O-L}A${N},${N},0,1,${W},${this._x1=F},${this._y1=U}`:q>l&&this._append`A${N},${N},0,${+(q>=r)},${W},${this._x1=E+N*Math.cos(B)},${this._y1=O+N*Math.sin(B)}`)}rect(E,O,N,j){this._append`M${this._x0=this._x1=+E},${this._y0=this._y1=+O}h${N=+N}v${+j}h${-N}Z`}toString(){return this._}}function f(){return new m}f.prototype=m.prototype;function v(y=3){return new m(+y)}function x(y){let E=3;return y.digits=function(O){if(!arguments.length)return E;if(O==null)E=null;else{const N=Math.floor(O);if(!(N>=0))throw new RangeError(`invalid digits: ${O}`);E=N}return y},()=>new m(E)}},74517:(_,A,n)=>{"use strict";n.d(A,{x:()=>r,y:()=>d});function r(l){return l[0]}function d(l){return l[1]}},66650:(_,A,n)=>{"use strict";n.d(A,{s_:()=>Ui});var r={value:()=>{}};function d(){for(var o=0,b=arguments.length,S={},R;o<b;++o){if(!(R=arguments[o]+"")||R in S||/[\s.]/.test(R))throw new Error("illegal type: "+R);S[R]=[]}return new l(S)}function l(o){this._=o}function p(o,b){return o.trim().split(/^|\s+/).map(function(S){var R="",K=S.indexOf(".");if(K>=0&&(R=S.slice(K+1),S=S.slice(0,K)),S&&!b.hasOwnProperty(S))throw new Error("unknown type: "+S);return{type:S,name:R}})}l.prototype=d.prototype={constructor:l,on:function(o,b){var S=this._,R=p(o+"",S),K,Z=-1,H=R.length;if(arguments.length<2){for(;++Z<H;)if((K=(o=R[Z]).type)&&(K=c(S[K],o.name)))return K;return}if(b!=null&&typeof b!="function")throw new Error("invalid callback: "+b);for(;++Z<H;)if(K=(o=R[Z]).type)S[K]=g(S[K],o.name,b);else if(b==null)for(K in S)S[K]=g(S[K],o.name,null);return this},copy:function(){var o={},b=this._;for(var S in b)o[S]=b[S].slice();return new l(o)},call:function(o,b){if((K=arguments.length-2)>0)for(var S=new Array(K),R=0,K,Z;R<K;++R)S[R]=arguments[R+2];if(!this._.hasOwnProperty(o))throw new Error("unknown type: "+o);for(Z=this._[o],R=0,K=Z.length;R<K;++R)Z[R].value.apply(b,S)},apply:function(o,b,S){if(!this._.hasOwnProperty(o))throw new Error("unknown type: "+o);for(var R=this._[o],K=0,Z=R.length;K<Z;++K)R[K].value.apply(b,S)}};function c(o,b){for(var S=0,R=o.length,K;S<R;++S)if((K=o[S]).name===b)return K.value}function g(o,b,S){for(var R=0,K=o.length;R<K;++R)if(o[R].name===b){o[R]=r,o=o.slice(0,R).concat(o.slice(R+1));break}return S!=null&&o.push({name:b,value:S}),o}const m=d;var f=n(67566);const v={passive:!1},x={capture:!0,passive:!1};function y(o){o.stopImmediatePropagation()}function E(o){o.preventDefault(),o.stopImmediatePropagation()}function O(o){var b=o.document.documentElement,S=(0,f.A)(o).on("dragstart.drag",E,x);"onselectstart"in b?S.on("selectstart.drag",E,x):(b.__noselect=b.style.MozUserSelect,b.style.MozUserSelect="none")}function N(o,b){var S=o.document.documentElement,R=(0,f.A)(o).on("dragstart.drag",null);b&&(R.on("click.drag",E,x),setTimeout(function(){R.on("click.drag",null)},0)),"onselectstart"in S?R.on("selectstart.drag",null):(S.style.MozUserSelect=S.__noselect,delete S.__noselect)}var j=1e-12;function B(o){return((o=Math.exp(o))+1/o)/2}function k(o){return((o=Math.exp(o))-1/o)/2}function P(o){return((o=Math.exp(2*o))-1)/(o+1)}const L=function o(b,S,R){function K(Z,H){var ae=Z[0],be=Z[1],we=Z[2],xe=H[0],Ke=H[1],je=H[2],Xe=xe-ae,Jt=Ke-be,Ot=Xe*Xe+Jt*Jt,rn,Qe;if(Ot<j)Qe=Math.log(je/we)/b,rn=function(a){return[ae+a*Xe,be+a*Jt,we*Math.exp(b*a*Qe)]};else{var Yn=Math.sqrt(Ot),i=(je*je-we*we+R*Ot)/(2*we*S*Yn),e=(je*je-we*we-R*Ot)/(2*je*S*Yn),t=Math.log(Math.sqrt(i*i+1)-i),s=Math.log(Math.sqrt(e*e+1)-e);Qe=(s-t)/b,rn=function(a){var h=a*Qe,w=B(t),C=we/(S*Yn)*(w*P(b*h+t)-k(t));return[ae+C*Xe,be+C*Jt,we*w/B(b*h+t)]}}return rn.duration=Qe*1e3*b/Math.SQRT2,rn}return K.rho=function(Z){var H=Math.max(.001,+Z),ae=H*H,be=ae*ae;return o(H,ae,be)},K}(Math.SQRT2,2,4);function F(o){let b;for(;b=o.sourceEvent;)o=b;return o}function U(o,b){if(o=F(o),b===void 0&&(b=o.currentTarget),b){var S=b.ownerSVGElement||b;if(S.createSVGPoint){var R=S.createSVGPoint();return R.x=o.clientX,R.y=o.clientY,R=R.matrixTransform(b.getScreenCTM().inverse()),[R.x,R.y]}if(b.getBoundingClientRect){var K=b.getBoundingClientRect();return[o.clientX-K.left-b.clientLeft,o.clientY-K.top-b.clientTop]}}return[o.pageX,o.pageY]}var W=n(97810),q=0,re=0,he=0,pe=1e3,de,ue,ye=0,te=0,Se=0,De=typeof performance=="object"&&performance.now?performance:Date,Be=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(o){setTimeout(o,17)};function ut(){return te||(Be(et),te=De.now()+Se)}function et(){te=0}function dt(){this._call=this._time=this._next=null}dt.prototype=pt.prototype={constructor:dt,restart:function(o,b,S){if(typeof o!="function")throw new TypeError("callback is not a function");S=(S==null?ut():+S)+(b==null?0:+b),!this._next&&ue!==this&&(ue?ue._next=this:de=this,ue=this),this._call=o,this._time=S,J()},stop:function(){this._call&&(this._call=null,this._time=1/0,J())}};function pt(o,b,S){var R=new dt;return R.restart(o,b,S),R}function At(){ut(),++q;for(var o=de,b;o;)(b=te-o._time)>=0&&o._call.call(void 0,b),o=o._next;--q}function mt(){te=(ye=De.now())+Se,q=re=0;try{At()}finally{q=0,oe(),te=0}}function Rt(){var o=De.now(),b=o-ye;b>pe&&(Se-=b,ye=o)}function oe(){for(var o,b=de,S,R=1/0;b;)b._call?(R>b._time&&(R=b._time),o=b,b=b._next):(S=b._next,b._next=null,b=o?o._next=S:de=S);ue=o,J(R)}function J(o){if(!q){re&&(re=clearTimeout(re));var b=o-te;b>24?(o<1/0&&(re=setTimeout(mt,o-De.now()-Se)),he&&(he=clearInterval(he))):(he||(ye=De.now(),he=setInterval(Rt,pe)),q=1,Be(mt))}}function le(o,b,S){var R=new dt;return b=b==null?0:+b,R.restart(K=>{R.stop(),o(K+b)},b,S),R}var ke=m("start","end","cancel","interrupt"),Ge=[],Ze=0,rt=1,wt=2,tn=3,ht=4,ot=5,Ye=6;function kt(o,b,S,R,K,Z){var H=o.__transition;if(!H)o.__transition={};else if(S in H)return;dn(o,S,{name:b,index:R,group:K,on:ke,tween:Ge,time:Z.time,delay:Z.delay,duration:Z.duration,ease:Z.ease,timer:null,state:Ze})}function He(o,b){var S=xt(o,b);if(S.state>Ze)throw new Error("too late; already scheduled");return S}function vt(o,b){var S=xt(o,b);if(S.state>tn)throw new Error("too late; already running");return S}function xt(o,b){var S=o.__transition;if(!S||!(S=S[b]))throw new Error("transition not found");return S}function dn(o,b,S){var R=o.__transition,K;R[b]=S,S.timer=pt(Z,0,S.time);function Z(we){S.state=rt,S.timer.restart(H,S.delay,S.time),S.delay<=we&&H(we-S.delay)}function H(we){var xe,Ke,je,Xe;if(S.state!==rt)return be();for(xe in R)if(Xe=R[xe],Xe.name===S.name){if(Xe.state===tn)return le(H);Xe.state===ht?(Xe.state=Ye,Xe.timer.stop(),Xe.on.call("interrupt",o,o.__data__,Xe.index,Xe.group),delete R[xe]):+xe<b&&(Xe.state=Ye,Xe.timer.stop(),Xe.on.call("cancel",o,o.__data__,Xe.index,Xe.group),delete R[xe])}if(le(function(){S.state===tn&&(S.state=ht,S.timer.restart(ae,S.delay,S.time),ae(we))}),S.state=wt,S.on.call("start",o,o.__data__,S.index,S.group),S.state===wt){for(S.state=tn,K=new Array(je=S.tween.length),xe=0,Ke=-1;xe<je;++xe)(Xe=S.tween[xe].value.call(o,o.__data__,S.index,S.group))&&(K[++Ke]=Xe);K.length=Ke+1}}function ae(we){for(var xe=we<S.duration?S.ease.call(null,we/S.duration):(S.timer.restart(be),S.state=ot,1),Ke=-1,je=K.length;++Ke<je;)K[Ke].call(o,xe);S.state===ot&&(S.on.call("end",o,o.__data__,S.index,S.group),be())}function be(){S.state=Ye,S.timer.stop(),delete R[b];for(var we in R)return;delete o.__transition}}function Dt(o,b){var S=o.__transition,R,K,Z=!0,H;if(S){b=b==null?null:b+"";for(H in S){if((R=S[H]).name!==b){Z=!1;continue}K=R.state>wt&&R.state<ot,R.state=Ye,R.timer.stop(),R.on.call(K?"interrupt":"cancel",o,o.__data__,R.index,R.group),delete S[H]}Z&&delete o.__transition}}function zt(o){return this.each(function(){Dt(this,o)})}function at(o,b){return o=+o,b=+b,function(S){return o*(1-S)+b*S}}var nn=180/Math.PI,$t={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function _n(o,b,S,R,K,Z){var H,ae,be;return(H=Math.sqrt(o*o+b*b))&&(o/=H,b/=H),(be=o*S+b*R)&&(S-=o*be,R-=b*be),(ae=Math.sqrt(S*S+R*R))&&(S/=ae,R/=ae,be/=ae),o*R<b*S&&(o=-o,b=-b,be=-be,H=-H),{translateX:K,translateY:Z,rotate:Math.atan2(b,o)*nn,skewX:Math.atan(be)*nn,scaleX:H,scaleY:ae}}var Qt;function sn(o){const b=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(o+"");return b.isIdentity?$t:_n(b.a,b.b,b.c,b.d,b.e,b.f)}function Zt(o){return o==null||(Qt||(Qt=document.createElementNS("http://www.w3.org/2000/svg","g")),Qt.setAttribute("transform",o),!(o=Qt.transform.baseVal.consolidate()))?$t:(o=o.matrix,_n(o.a,o.b,o.c,o.d,o.e,o.f))}function pn(o,b,S,R){function K(we){return we.length?we.pop()+" ":""}function Z(we,xe,Ke,je,Xe,Jt){if(we!==Ke||xe!==je){var Ot=Xe.push("translate(",null,b,null,S);Jt.push({i:Ot-4,x:at(we,Ke)},{i:Ot-2,x:at(xe,je)})}else(Ke||je)&&Xe.push("translate("+Ke+b+je+S)}function H(we,xe,Ke,je){we!==xe?(we-xe>180?xe+=360:xe-we>180&&(we+=360),je.push({i:Ke.push(K(Ke)+"rotate(",null,R)-2,x:at(we,xe)})):xe&&Ke.push(K(Ke)+"rotate("+xe+R)}function ae(we,xe,Ke,je){we!==xe?je.push({i:Ke.push(K(Ke)+"skewX(",null,R)-2,x:at(we,xe)}):xe&&Ke.push(K(Ke)+"skewX("+xe+R)}function be(we,xe,Ke,je,Xe,Jt){if(we!==Ke||xe!==je){var Ot=Xe.push(K(Xe)+"scale(",null,",",null,")");Jt.push({i:Ot-4,x:at(we,Ke)},{i:Ot-2,x:at(xe,je)})}else(Ke!==1||je!==1)&&Xe.push(K(Xe)+"scale("+Ke+","+je+")")}return function(we,xe){var Ke=[],je=[];return we=o(we),xe=o(xe),Z(we.translateX,we.translateY,xe.translateX,xe.translateY,Ke,je),H(we.rotate,xe.rotate,Ke,je),ae(we.skewX,xe.skewX,Ke,je),be(we.scaleX,we.scaleY,xe.scaleX,xe.scaleY,Ke,je),we=xe=null,function(Xe){for(var Jt=-1,Ot=je.length,rn;++Jt<Ot;)Ke[(rn=je[Jt]).i]=rn.x(Xe);return Ke.join("")}}}var Hn=pn(sn,"px, ","px)","deg)"),Ln=pn(Zt,", ",")",")"),lt=n(65399);function _t(o,b){var S,R;return function(){var K=vt(this,o),Z=K.tween;if(Z!==S){R=S=Z;for(var H=0,ae=R.length;H<ae;++H)if(R[H].name===b){R=R.slice(),R.splice(H,1);break}}K.tween=R}}function En(o,b,S){var R,K;if(typeof S!="function")throw new Error;return function(){var Z=vt(this,o),H=Z.tween;if(H!==R){K=(R=H).slice();for(var ae={name:b,value:S},be=0,we=K.length;be<we;++be)if(K[be].name===b){K[be]=ae;break}be===we&&K.push(ae)}Z.tween=K}}function yi(o,b){var S=this._id;if(o+="",arguments.length<2){for(var R=xt(this.node(),S).tween,K=0,Z=R.length,H;K<Z;++K)if((H=R[K]).name===o)return H.value;return null}return this.each((b==null?_t:En)(S,o,b))}function Pn(o,b,S){var R=o._id;return o.each(function(){var K=vt(this,R);(K.value||(K.value={}))[b]=S.apply(this,arguments)}),function(K){return xt(K,R).value[b]}}function mn(o,b,S){o.prototype=b.prototype=S,S.constructor=o}function jn(o,b){var S=Object.create(o.prototype);for(var R in b)S[R]=b[R];return S}function Rn(){}var gn=.7,Vt=1/gn,Wt="\\s*([+-]?\\d+)\\s*",gt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Gt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",qn=/^#([0-9a-f]{3,8})$/,ui=new RegExp(`^rgb\\(${Wt},${Wt},${Wt}\\)$`),$n=new RegExp(`^rgb\\(${Gt},${Gt},${Gt}\\)$`),yn=new RegExp(`^rgba\\(${Wt},${Wt},${Wt},${gt}\\)$`),Bt=new RegExp(`^rgba\\(${Gt},${Gt},${Gt},${gt}\\)$`),An=new RegExp(`^hsl\\(${gt},${Gt},${Gt}\\)$`),Yt=new RegExp(`^hsla\\(${gt},${Gt},${Gt},${gt}\\)$`),vn={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};mn(Rn,Lt,{copy(o){return Object.assign(new this.constructor,this,o)},displayable(){return this.rgb().displayable()},hex:on,formatHex:on,formatHex8:Sn,formatHsl:Un,formatRgb:Tn,toString:Tn});function on(){return this.rgb().formatHex()}function Sn(){return this.rgb().formatHex8()}function Un(){return $e(this).formatHsl()}function Tn(){return this.rgb().formatRgb()}function Lt(o){var b,S;return o=(o+"").trim().toLowerCase(),(b=qn.exec(o))?(S=b[1].length,b=parseInt(b[1],16),S===6?On(b):S===3?new It(b>>8&15|b>>4&240,b>>4&15|b&240,(b&15)<<4|b&15,1):S===8?Nt(b>>24&255,b>>16&255,b>>8&255,(b&255)/255):S===4?Nt(b>>12&15|b>>8&240,b>>8&15|b>>4&240,b>>4&15|b&240,((b&15)<<4|b&15)/255):null):(b=ui.exec(o))?new It(b[1],b[2],b[3],1):(b=$n.exec(o))?new It(b[1]*255/100,b[2]*255/100,b[3]*255/100,1):(b=yn.exec(o))?Nt(b[1],b[2],b[3],b[4]):(b=Bt.exec(o))?Nt(b[1]*255/100,b[2]*255/100,b[3]*255/100,b[4]):(b=An.exec(o))?Pe(b[1],b[2]/100,b[3]/100,1):(b=Yt.exec(o))?Pe(b[1],b[2]/100,b[3]/100,b[4]):vn.hasOwnProperty(o)?On(vn[o]):o==="transparent"?new It(NaN,NaN,NaN,0):null}function On(o){return new It(o>>16&255,o>>8&255,o&255,1)}function Nt(o,b,S,R){return R<=0&&(o=b=S=NaN),new It(o,b,S,R)}function Xn(o){return o instanceof Rn||(o=Lt(o)),o?(o=o.rgb(),new It(o.r,o.g,o.b,o.opacity)):new It}function an(o,b,S,R){return arguments.length===1?Xn(o):new It(o,b,S,R??1)}function It(o,b,S,R){this.r=+o,this.g=+b,this.b=+S,this.opacity=+R}mn(It,an,jn(Rn,{brighter(o){return o=o==null?Vt:Math.pow(Vt,o),new It(this.r*o,this.g*o,this.b*o,this.opacity)},darker(o){return o=o==null?gn:Math.pow(gn,o),new It(this.r*o,this.g*o,this.b*o,this.opacity)},rgb(){return this},clamp(){return new It(ge(this.r),ge(this.g),ge(this.b),Ae(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:$,formatHex:$,formatHex8:Q,formatRgb:_e,toString:_e}));function $(){return`#${Oe(this.r)}${Oe(this.g)}${Oe(this.b)}`}function Q(){return`#${Oe(this.r)}${Oe(this.g)}${Oe(this.b)}${Oe((isNaN(this.opacity)?1:this.opacity)*255)}`}function _e(){const o=Ae(this.opacity);return`${o===1?"rgb(":"rgba("}${ge(this.r)}, ${ge(this.g)}, ${ge(this.b)}${o===1?")":`, ${o})`}`}function Ae(o){return isNaN(o)?1:Math.max(0,Math.min(1,o))}function ge(o){return Math.max(0,Math.min(255,Math.round(o)||0))}function Oe(o){return o=ge(o),(o<16?"0":"")+o.toString(16)}function Pe(o,b,S,R){return R<=0?o=b=S=NaN:S<=0||S>=1?o=b=NaN:b<=0&&(o=NaN),new ze(o,b,S,R)}function $e(o){if(o instanceof ze)return new ze(o.h,o.s,o.l,o.opacity);if(o instanceof Rn||(o=Lt(o)),!o)return new ze;if(o instanceof ze)return o;o=o.rgb();var b=o.r/255,S=o.g/255,R=o.b/255,K=Math.min(b,S,R),Z=Math.max(b,S,R),H=NaN,ae=Z-K,be=(Z+K)/2;return ae?(b===Z?H=(S-R)/ae+(S<R)*6:S===Z?H=(R-b)/ae+2:H=(b-S)/ae+4,ae/=be<.5?Z+K:2-Z-K,H*=60):ae=be>0&&be<1?0:H,new ze(H,ae,be,o.opacity)}function Fe(o,b,S,R){return arguments.length===1?$e(o):new ze(o,b,S,R??1)}function ze(o,b,S,R){this.h=+o,this.s=+b,this.l=+S,this.opacity=+R}mn(ze,Fe,jn(Rn,{brighter(o){return o=o==null?Vt:Math.pow(Vt,o),new ze(this.h,this.s,this.l*o,this.opacity)},darker(o){return o=o==null?gn:Math.pow(gn,o),new ze(this.h,this.s,this.l*o,this.opacity)},rgb(){var o=this.h%360+(this.h<0)*360,b=isNaN(o)||isNaN(this.s)?0:this.s,S=this.l,R=S+(S<.5?S:1-S)*b,K=2*S-R;return new It(Ft(o>=240?o-240:o+120,K,R),Ft(o,K,R),Ft(o<120?o+240:o-120,K,R),this.opacity)},clamp(){return new ze(tt(this.h),Ct(this.s),Ct(this.l),Ae(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const o=Ae(this.opacity);return`${o===1?"hsl(":"hsla("}${tt(this.h)}, ${Ct(this.s)*100}%, ${Ct(this.l)*100}%${o===1?")":`, ${o})`}`}}));function tt(o){return o=(o||0)%360,o<0?o+360:o}function Ct(o){return Math.max(0,Math.min(1,o||0))}function Ft(o,b,S){return(o<60?b+(S-b)*o/60:o<180?S:o<240?b+(S-b)*(240-o)/60:b)*255}function Pt(o,b,S,R,K){var Z=o*o,H=Z*o;return((1-3*o+3*Z-H)*b+(4-6*Z+3*H)*S+(1+3*o+3*Z-3*H)*R+H*K)/6}function jt(o){var b=o.length-1;return function(S){var R=S<=0?S=0:S>=1?(S=1,b-1):Math.floor(S*b),K=o[R],Z=o[R+1],H=R>0?o[R-1]:2*K-Z,ae=R<b-1?o[R+2]:2*Z-K;return Pt((S-R/b)*b,H,K,Z,ae)}}function bn(o){var b=o.length;return function(S){var R=Math.floor(((S%=1)<0?++S:S)*b),K=o[(R+b-1)%b],Z=o[R%b],H=o[(R+1)%b],ae=o[(R+2)%b];return Pt((S-R/b)*b,K,Z,H,ae)}}const un=o=>()=>o;function Jn(o,b){return function(S){return o+S*b}}function Nn(o,b,S){return o=Math.pow(o,S),b=Math.pow(b,S)-o,S=1/S,function(R){return Math.pow(o+R*b,S)}}function Kn(o,b){var S=b-o;return S?Jn(o,S>180||S<-180?S-360*Math.round(S/360):S):constant(isNaN(o)?b:o)}function wn(o){return(o=+o)==1?ln:function(b,S){return S-b?Nn(b,S,o):un(isNaN(b)?S:b)}}function ln(o,b){var S=b-o;return S?Jn(o,S):un(isNaN(o)?b:o)}const vi=function o(b){var S=wn(b);function R(K,Z){var H=S((K=an(K)).r,(Z=an(Z)).r),ae=S(K.g,Z.g),be=S(K.b,Z.b),we=ln(K.opacity,Z.opacity);return function(xe){return K.r=H(xe),K.g=ae(xe),K.b=be(xe),K.opacity=we(xe),K+""}}return R.gamma=o,R}(1);function zn(o){return function(b){var S=b.length,R=new Array(S),K=new Array(S),Z=new Array(S),H,ae;for(H=0;H<S;++H)ae=an(b[H]),R[H]=ae.r||0,K[H]=ae.g||0,Z[H]=ae.b||0;return R=o(R),K=o(K),Z=o(Z),ae.opacity=1,function(be){return ae.r=R(be),ae.g=K(be),ae.b=Z(be),ae+""}}}var li=zn(jt),bi=zn(bn),ci=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,fi=new RegExp(ci.source,"g");function Mi(o){return function(){return o}}function wi(o){return function(b){return o(b)+""}}function Vn(o,b){var S=ci.lastIndex=fi.lastIndex=0,R,K,Z,H=-1,ae=[],be=[];for(o=o+"",b=b+"";(R=ci.exec(o))&&(K=fi.exec(b));)(Z=K.index)>S&&(Z=b.slice(S,Z),ae[H]?ae[H]+=Z:ae[++H]=Z),(R=R[0])===(K=K[0])?ae[H]?ae[H]+=K:ae[++H]=K:(ae[++H]=null,be.push({i:H,x:at(R,K)})),S=fi.lastIndex;return S<b.length&&(Z=b.slice(S),ae[H]?ae[H]+=Z:ae[++H]=Z),ae.length<2?be[0]?wi(be[0].x):Mi(b):(b=be.length,function(we){for(var xe=0,Ke;xe<b;++xe)ae[(Ke=be[xe]).i]=Ke.x(we);return ae.join("")})}function Qn(o,b){var S;return(typeof b=="number"?at:b instanceof Lt?vi:(S=Lt(b))?(b=S,vi):Vn)(o,b)}function ei(o){return function(){this.removeAttribute(o)}}function xi(o){return function(){this.removeAttributeNS(o.space,o.local)}}function _i(o,b,S){var R,K=S+"",Z;return function(){var H=this.getAttribute(o);return H===K?null:H===R?Z:Z=b(R=H,S)}}function Ei(o,b,S){var R,K=S+"",Z;return function(){var H=this.getAttributeNS(o.space,o.local);return H===K?null:H===R?Z:Z=b(R=H,S)}}function u(o,b,S){var R,K,Z;return function(){var H,ae=S(this),be;return ae==null?void this.removeAttribute(o):(H=this.getAttribute(o),be=ae+"",H===be?null:H===R&&be===K?Z:(K=be,Z=b(R=H,ae)))}}function T(o,b,S){var R,K,Z;return function(){var H,ae=S(this),be;return ae==null?void this.removeAttributeNS(o.space,o.local):(H=this.getAttributeNS(o.space,o.local),be=ae+"",H===be?null:H===R&&be===K?Z:(K=be,Z=b(R=H,ae)))}}function I(o,b){var S=(0,lt.A)(o),R=S==="transform"?Ln:Qn;return this.attrTween(o,typeof b=="function"?(S.local?T:u)(S,R,Pn(this,"attr."+o,b)):b==null?(S.local?xi:ei)(S):(S.local?Ei:_i)(S,R,b))}function z(o,b){return function(S){this.setAttribute(o,b.call(this,S))}}function ne(o,b){return function(S){this.setAttributeNS(o.space,o.local,b.call(this,S))}}function ee(o,b){var S,R;function K(){var Z=b.apply(this,arguments);return Z!==R&&(S=(R=Z)&&ne(o,Z)),S}return K._value=b,K}function ce(o,b){var S,R;function K(){var Z=b.apply(this,arguments);return Z!==R&&(S=(R=Z)&&z(o,Z)),S}return K._value=b,K}function ie(o,b){var S="attr."+o;if(arguments.length<2)return(S=this.tween(S))&&S._value;if(b==null)return this.tween(S,null);if(typeof b!="function")throw new Error;var R=(0,lt.A)(o);return this.tween(S,(R.local?ee:ce)(R,b))}function Ce(o,b){return function(){He(this,o).delay=+b.apply(this,arguments)}}function ve(o,b){return b=+b,function(){He(this,o).delay=b}}function Ne(o){var b=this._id;return arguments.length?this.each((typeof o=="function"?Ce:ve)(b,o)):xt(this.node(),b).delay}function Ie(o,b){return function(){vt(this,o).duration=+b.apply(this,arguments)}}function Me(o,b){return b=+b,function(){vt(this,o).duration=b}}function qe(o){var b=this._id;return arguments.length?this.each((typeof o=="function"?Ie:Me)(b,o)):xt(this.node(),b).duration}function nt(o,b){if(typeof b!="function")throw new Error;return function(){vt(this,o).ease=b}}function st(o){var b=this._id;return arguments.length?this.each(nt(b,o)):xt(this.node(),b).ease}function bt(o,b){return function(){var S=b.apply(this,arguments);if(typeof S!="function")throw new Error;vt(this,o).ease=S}}function it(o){if(typeof o!="function")throw new Error;return this.each(bt(this._id,o))}var Tt=n(62474);function St(o){typeof o!="function"&&(o=(0,Tt.A)(o));for(var b=this._groups,S=b.length,R=new Array(S),K=0;K<S;++K)for(var Z=b[K],H=Z.length,ae=R[K]=[],be,we=0;we<H;++we)(be=Z[we])&&o.call(be,be.__data__,we,Z)&&ae.push(be);return new Bn(R,this._parents,this._name,this._id)}function Et(o){if(o._id!==this._id)throw new Error;for(var b=this._groups,S=o._groups,R=b.length,K=S.length,Z=Math.min(R,K),H=new Array(R),ae=0;ae<Z;++ae)for(var be=b[ae],we=S[ae],xe=be.length,Ke=H[ae]=new Array(xe),je,Xe=0;Xe<xe;++Xe)(je=be[Xe]||we[Xe])&&(Ke[Xe]=je);for(;ae<R;++ae)H[ae]=b[ae];return new Bn(H,this._parents,this._name,this._id)}function Ut(o){return(o+"").trim().split(/^|\s+/).every(function(b){var S=b.indexOf(".");return S>=0&&(b=b.slice(0,S)),!b||b==="start"})}function Mt(o,b,S){var R,K,Z=Ut(b)?He:vt;return function(){var H=Z(this,o),ae=H.on;ae!==R&&(K=(R=ae).copy()).on(b,S),H.on=K}}function cn(o,b){var S=this._id;return arguments.length<2?xt(this.node(),S).on.on(o):this.each(Mt(S,o,b))}function fn(o){return function(){var b=this.parentNode;for(var S in this.__transition)if(+S!==o)return;b&&b.removeChild(this)}}function kn(){return this.on("end.remove",fn(this._id))}var qt=n(17096);function en(o){var b=this._name,S=this._id;typeof o!="function"&&(o=(0,qt.A)(o));for(var R=this._groups,K=R.length,Z=new Array(K),H=0;H<K;++H)for(var ae=R[H],be=ae.length,we=Z[H]=new Array(be),xe,Ke,je=0;je<be;++je)(xe=ae[je])&&(Ke=o.call(xe,xe.__data__,je,ae))&&("__data__"in xe&&(Ke.__data__=xe.__data__),we[je]=Ke,kt(we[je],b,S,je,we,xt(xe,S)));return new Bn(Z,this._parents,b,S)}var Ht=n(53972);function Je(o){var b=this._name,S=this._id;typeof o!="function"&&(o=(0,Ht.A)(o));for(var R=this._groups,K=R.length,Z=[],H=[],ae=0;ae<K;++ae)for(var be=R[ae],we=be.length,xe,Ke=0;Ke<we;++Ke)if(xe=be[Ke]){for(var je=o.call(xe,xe.__data__,Ke,be),Xe,Jt=xt(xe,S),Ot=0,rn=je.length;Ot<rn;++Ot)(Xe=je[Ot])&&kt(Xe,b,S,Ot,je,Jt);Z.push(je),H.push(xe)}return new Bn(Z,H,b,S)}var ct=W.Ay.prototype.constructor;function In(){return new ct(this._groups,this._parents)}var Cn=n(45632);function Wn(o,b){var S,R,K;return function(){var Z=(0,Cn.j)(this,o),H=(this.style.removeProperty(o),(0,Cn.j)(this,o));return Z===H?null:Z===S&&H===R?K:K=b(S=Z,R=H)}}function Mn(o){return function(){this.style.removeProperty(o)}}function ti(o,b,S){var R,K=S+"",Z;return function(){var H=(0,Cn.j)(this,o);return H===K?null:H===R?Z:Z=b(R=H,S)}}function ni(o,b,S){var R,K,Z;return function(){var H=(0,Cn.j)(this,o),ae=S(this),be=ae+"";return ae==null&&(be=ae=(this.style.removeProperty(o),(0,Cn.j)(this,o))),H===be?null:H===R&&be===K?Z:(K=be,Z=b(R=H,ae))}}function ii(o,b){var S,R,K,Z="style."+b,H="end."+Z,ae;return function(){var be=vt(this,o),we=be.on,xe=be.value[Z]==null?ae||(ae=Mn(b)):void 0;(we!==S||K!==xe)&&(R=(S=we).copy()).on(H,K=xe),be.on=R}}function si(o,b,S){var R=(o+="")=="transform"?Hn:Qn;return b==null?this.styleTween(o,Wn(o,R)).on("end.style."+o,Mn(o)):typeof b=="function"?this.styleTween(o,ni(o,R,Pn(this,"style."+o,b))).each(ii(this._id,o)):this.styleTween(o,ti(o,R,b),S).on("end.style."+o,null)}function ri(o,b,S){return function(R){this.style.setProperty(o,b.call(this,R),S)}}function hi(o,b,S){var R,K;function Z(){var H=b.apply(this,arguments);return H!==K&&(R=(K=H)&&ri(o,H,S)),R}return Z._value=b,Z}function xn(o,b,S){var R="style."+(o+="");if(arguments.length<2)return(R=this.tween(R))&&R._value;if(b==null)return this.tween(R,null);if(typeof b!="function")throw new Error;return this.tween(R,hi(o,b,S??""))}function di(o){return function(){this.textContent=o}}function pi(o){return function(){var b=o(this);this.textContent=b??""}}function oi(o){return this.tween("text",typeof o=="function"?pi(Pn(this,"text",o)):di(o==null?"":o+""))}function Zn(o){return function(b){this.textContent=o.call(this,b)}}function Ai(o){var b,S;function R(){var K=o.apply(this,arguments);return K!==S&&(b=(S=K)&&Zn(K)),b}return R._value=o,R}function Si(o){var b="text";if(arguments.length<1)return(b=this.tween(b))&&b._value;if(o==null)return this.tween(b,null);if(typeof o!="function")throw new Error;return this.tween(b,Ai(o))}function mi(){for(var o=this._name,b=this._id,S=$i(),R=this._groups,K=R.length,Z=0;Z<K;++Z)for(var H=R[Z],ae=H.length,be,we=0;we<ae;++we)if(be=H[we]){var xe=xt(be,b);kt(be,o,S,we,H,{time:xe.time+xe.delay+xe.duration,delay:0,duration:xe.duration,ease:xe.ease})}return new Bn(R,this._parents,o,S)}function Ri(){var o,b,S=this,R=S._id,K=S.size();return new Promise(function(Z,H){var ae={value:H},be={value:function(){--K===0&&Z()}};S.each(function(){var we=vt(this,R),xe=we.on;xe!==o&&(b=(o=xe).copy(),b._.cancel.push(ae),b._.interrupt.push(ae),b._.end.push(be)),we.on=b}),K===0&&Z()})}var Li=0;function Bn(o,b,S,R){this._groups=o,this._parents=b,this._name=S,this._id=R}function Ki(o){return(0,W.Ay)().transition(o)}function $i(){return++Li}var Dn=W.Ay.prototype;Bn.prototype=Ki.prototype={constructor:Bn,select:en,selectAll:Je,selectChild:Dn.selectChild,selectChildren:Dn.selectChildren,filter:St,merge:Et,selection:In,transition:mi,call:Dn.call,nodes:Dn.nodes,node:Dn.node,size:Dn.size,empty:Dn.empty,each:Dn.each,on:cn,attr:I,attrTween:ie,style:si,styleTween:xn,text:oi,textTween:Si,remove:kn,tween:yi,delay:Ne,duration:qe,ease:st,easeVarying:it,end:Ri,[Symbol.iterator]:Dn[Symbol.iterator]};function zi(o){return o*o*o}function Bi(o){return--o*o*o+1}function Vi(o){return((o*=2)<=1?o*o*o:(o-=2)*o*o+2)/2}var Ti={time:null,delay:0,duration:250,ease:Vi};function Oi(o,b){for(var S;!(S=o.__transition)||!(S=S[b]);)if(!(o=o.parentNode))throw new Error(`transition ${b} not found`);return S}function Pi(o){var b,S;o instanceof Bn?(b=o._id,o=o._name):(b=$i(),(S=Ti).time=ut(),o=o==null?null:o+"");for(var R=this._groups,K=R.length,Z=0;Z<K;++Z)for(var H=R[Z],ae=H.length,be,we=0;we<ae;++we)(be=H[we])&&kt(be,o,b,we,H,S||Oi(be,b));return new Bn(R,this._parents,o,b)}W.Ay.prototype.interrupt=zt,W.Ay.prototype.transition=Pi;const Ni=o=>()=>o;function Di(o,{sourceEvent:b,target:S,transform:R,dispatch:K}){Object.defineProperties(this,{type:{value:o,enumerable:!0,configurable:!0},sourceEvent:{value:b,enumerable:!0,configurable:!0},target:{value:S,enumerable:!0,configurable:!0},transform:{value:R,enumerable:!0,configurable:!0},_:{value:K}})}function Xt(o,b,S){this.k=o,this.x=b,this.y=S}Xt.prototype={constructor:Xt,scale:function(o){return o===1?this:new Xt(this.k*o,this.x,this.y)},translate:function(o,b){return o===0&b===0?this:new Xt(this.k,this.x+this.k*o,this.y+this.k*b)},apply:function(o){return[o[0]*this.k+this.x,o[1]*this.k+this.y]},applyX:function(o){return o*this.k+this.x},applyY:function(o){return o*this.k+this.y},invert:function(o){return[(o[0]-this.x)/this.k,(o[1]-this.y)/this.k]},invertX:function(o){return(o-this.x)/this.k},invertY:function(o){return(o-this.y)/this.k},rescaleX:function(o){return o.copy().domain(o.range().map(this.invertX,this).map(o.invert,o))},rescaleY:function(o){return o.copy().domain(o.range().map(this.invertY,this).map(o.invert,o))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var ki=new Xt(1,0,0);Ii.prototype=Xt.prototype;function Ii(o){for(;!o.__zoom;)if(!(o=o.parentNode))return ki;return o.__zoom}function ai(o){o.stopImmediatePropagation()}function Gn(o){o.preventDefault(),o.stopImmediatePropagation()}function gi(o){return(!o.ctrlKey||o.type==="wheel")&&!o.button}function Wi(){var o=this;return o instanceof SVGElement?(o=o.ownerSVGElement||o,o.hasAttribute("viewBox")?(o=o.viewBox.baseVal,[[o.x,o.y],[o.x+o.width,o.y+o.height]]):[[0,0],[o.width.baseVal.value,o.height.baseVal.value]]):[[0,0],[o.clientWidth,o.clientHeight]]}function Fi(){return this.__zoom||ki}function Gi(o){return-o.deltaY*(o.deltaMode===1?.05:o.deltaMode?1:.002)*(o.ctrlKey?10:1)}function ji(){return navigator.maxTouchPoints||"ontouchstart"in this}function hn(o,b,S){var R=o.invertX(b[0][0])-S[0][0],K=o.invertX(b[1][0])-S[1][0],Z=o.invertY(b[0][1])-S[0][1],H=o.invertY(b[1][1])-S[1][1];return o.translate(K>R?(R+K)/2:Math.min(0,R)||Math.max(0,K),H>Z?(Z+H)/2:Math.min(0,Z)||Math.max(0,H))}function Ui(){var o=gi,b=Wi,S=hn,R=Gi,K=ji,Z=[0,1/0],H=[[-1/0,-1/0],[1/0,1/0]],ae=250,be=L,we=m("start","zoom","end"),xe,Ke,je,Xe=500,Jt=150,Ot=0,rn=10;function Qe(M){M.property("__zoom",Fi).on("wheel.zoom",h,{passive:!1}).on("mousedown.zoom",w).on("dblclick.zoom",C).filter(K).on("touchstart.zoom",D).on("touchmove.zoom",Y).on("touchend.zoom touchcancel.zoom",me).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}Qe.transform=function(M,G,V,fe){var X=M.selection?M.selection():M;X.property("__zoom",Fi),M!==X?t(M,G,V,fe):X.interrupt().each(function(){s(this,arguments).event(fe).start().zoom(null,typeof G=="function"?G.apply(this,arguments):G).end()})},Qe.scaleBy=function(M,G,V,fe){Qe.scaleTo(M,function(){var X=this.__zoom.k,se=typeof G=="function"?G.apply(this,arguments):G;return X*se},V,fe)},Qe.scaleTo=function(M,G,V,fe){Qe.transform(M,function(){var X=b.apply(this,arguments),se=this.__zoom,Ee=V==null?e(X):typeof V=="function"?V.apply(this,arguments):V,Te=se.invert(Ee),Le=typeof G=="function"?G.apply(this,arguments):G;return S(i(Yn(se,Le),Ee,Te),X,H)},V,fe)},Qe.translateBy=function(M,G,V,fe){Qe.transform(M,function(){return S(this.__zoom.translate(typeof G=="function"?G.apply(this,arguments):G,typeof V=="function"?V.apply(this,arguments):V),b.apply(this,arguments),H)},null,fe)},Qe.translateTo=function(M,G,V,fe,X){Qe.transform(M,function(){var se=b.apply(this,arguments),Ee=this.__zoom,Te=fe==null?e(se):typeof fe=="function"?fe.apply(this,arguments):fe;return S(ki.translate(Te[0],Te[1]).scale(Ee.k).translate(typeof G=="function"?-G.apply(this,arguments):-G,typeof V=="function"?-V.apply(this,arguments):-V),se,H)},fe,X)};function Yn(M,G){return G=Math.max(Z[0],Math.min(Z[1],G)),G===M.k?M:new Xt(G,M.x,M.y)}function i(M,G,V){var fe=G[0]-V[0]*M.k,X=G[1]-V[1]*M.k;return fe===M.x&&X===M.y?M:new Xt(M.k,fe,X)}function e(M){return[(+M[0][0]+ +M[1][0])/2,(+M[0][1]+ +M[1][1])/2]}function t(M,G,V,fe){M.on("start.zoom",function(){s(this,arguments).event(fe).start()}).on("interrupt.zoom end.zoom",function(){s(this,arguments).event(fe).end()}).tween("zoom",function(){var X=this,se=arguments,Ee=s(X,se).event(fe),Te=b.apply(X,se),Le=V==null?e(Te):typeof V=="function"?V.apply(X,se):V,We=Math.max(Te[1][0]-Te[0][0],Te[1][1]-Te[0][1]),Ve=X.__zoom,Ue=typeof G=="function"?G.apply(X,se):G,ft=be(Ve.invert(Le).concat(We/Ve.k),Ue.invert(Le).concat(We/Ue.k));return function(Re){if(Re===1)Re=Ue;else{var yt=ft(Re),Fn=We/yt[2];Re=new Xt(Fn,Le[0]-yt[0]*Fn,Le[1]-yt[1]*Fn)}Ee.zoom(null,Re)}})}function s(M,G,V){return!V&&M.__zooming||new a(M,G)}function a(M,G){this.that=M,this.args=G,this.active=0,this.sourceEvent=null,this.extent=b.apply(M,G),this.taps=0}a.prototype={event:function(M){return M&&(this.sourceEvent=M),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(M,G){return this.mouse&&M!=="mouse"&&(this.mouse[1]=G.invert(this.mouse[0])),this.touch0&&M!=="touch"&&(this.touch0[1]=G.invert(this.touch0[0])),this.touch1&&M!=="touch"&&(this.touch1[1]=G.invert(this.touch1[0])),this.that.__zoom=G,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(M){var G=(0,f.A)(this.that).datum();we.call(M,this.that,new Di(M,{sourceEvent:this.sourceEvent,target:Qe,type:M,transform:this.that.__zoom,dispatch:we}),G)}};function h(M,...G){if(!o.apply(this,arguments))return;var V=s(this,G).event(M),fe=this.__zoom,X=Math.max(Z[0],Math.min(Z[1],fe.k*Math.pow(2,R.apply(this,arguments)))),se=U(M);if(V.wheel)(V.mouse[0][0]!==se[0]||V.mouse[0][1]!==se[1])&&(V.mouse[1]=fe.invert(V.mouse[0]=se)),clearTimeout(V.wheel);else{if(fe.k===X)return;V.mouse=[se,fe.invert(se)],Dt(this),V.start()}Gn(M),V.wheel=setTimeout(Ee,Jt),V.zoom("mouse",S(i(Yn(fe,X),V.mouse[0],V.mouse[1]),V.extent,H));function Ee(){V.wheel=null,V.end()}}function w(M,...G){if(je||!o.apply(this,arguments))return;var V=M.currentTarget,fe=s(this,G,!0).event(M),X=(0,f.A)(M.view).on("mousemove.zoom",Le,!0).on("mouseup.zoom",We,!0),se=U(M,V),Ee=M.clientX,Te=M.clientY;O(M.view),ai(M),fe.mouse=[se,this.__zoom.invert(se)],Dt(this),fe.start();function Le(Ve){if(Gn(Ve),!fe.moved){var Ue=Ve.clientX-Ee,ft=Ve.clientY-Te;fe.moved=Ue*Ue+ft*ft>Ot}fe.event(Ve).zoom("mouse",S(i(fe.that.__zoom,fe.mouse[0]=U(Ve,V),fe.mouse[1]),fe.extent,H))}function We(Ve){X.on("mousemove.zoom mouseup.zoom",null),N(Ve.view,fe.moved),Gn(Ve),fe.event(Ve).end()}}function C(M,...G){if(o.apply(this,arguments)){var V=this.__zoom,fe=U(M.changedTouches?M.changedTouches[0]:M,this),X=V.invert(fe),se=V.k*(M.shiftKey?.5:2),Ee=S(i(Yn(V,se),fe,X),b.apply(this,G),H);Gn(M),ae>0?(0,f.A)(this).transition().duration(ae).call(t,Ee,fe,M):(0,f.A)(this).call(Qe.transform,Ee,fe,M)}}function D(M,...G){if(o.apply(this,arguments)){var V=M.touches,fe=V.length,X=s(this,G,M.changedTouches.length===fe).event(M),se,Ee,Te,Le;for(ai(M),Ee=0;Ee<fe;++Ee)Te=V[Ee],Le=U(Te,this),Le=[Le,this.__zoom.invert(Le),Te.identifier],X.touch0?!X.touch1&&X.touch0[2]!==Le[2]&&(X.touch1=Le,X.taps=0):(X.touch0=Le,se=!0,X.taps=1+!!xe);xe&&(xe=clearTimeout(xe)),se&&(X.taps<2&&(Ke=Le[0],xe=setTimeout(function(){xe=null},Xe)),Dt(this),X.start())}}function Y(M,...G){if(this.__zooming){var V=s(this,G).event(M),fe=M.changedTouches,X=fe.length,se,Ee,Te,Le;for(Gn(M),se=0;se<X;++se)Ee=fe[se],Te=U(Ee,this),V.touch0&&V.touch0[2]===Ee.identifier?V.touch0[0]=Te:V.touch1&&V.touch1[2]===Ee.identifier&&(V.touch1[0]=Te);if(Ee=V.that.__zoom,V.touch1){var We=V.touch0[0],Ve=V.touch0[1],Ue=V.touch1[0],ft=V.touch1[1],Re=(Re=Ue[0]-We[0])*Re+(Re=Ue[1]-We[1])*Re,yt=(yt=ft[0]-Ve[0])*yt+(yt=ft[1]-Ve[1])*yt;Ee=Yn(Ee,Math.sqrt(Re/yt)),Te=[(We[0]+Ue[0])/2,(We[1]+Ue[1])/2],Le=[(Ve[0]+ft[0])/2,(Ve[1]+ft[1])/2]}else if(V.touch0)Te=V.touch0[0],Le=V.touch0[1];else return;V.zoom("touch",S(i(Ee,Te,Le),V.extent,H))}}function me(M,...G){if(this.__zooming){var V=s(this,G).event(M),fe=M.changedTouches,X=fe.length,se,Ee;for(ai(M),je&&clearTimeout(je),je=setTimeout(function(){je=null},Xe),se=0;se<X;++se)Ee=fe[se],V.touch0&&V.touch0[2]===Ee.identifier?delete V.touch0:V.touch1&&V.touch1[2]===Ee.identifier&&delete V.touch1;if(V.touch1&&!V.touch0&&(V.touch0=V.touch1,delete V.touch1),V.touch0)V.touch0[1]=this.__zoom.invert(V.touch0[0]);else if(V.end(),V.taps===2&&(Ee=U(Ee,this),Math.hypot(Ke[0]-Ee[0],Ke[1]-Ee[1])<rn)){var Te=(0,f.A)(this).on("dblclick.zoom");Te&&Te.apply(this,arguments)}}}return Qe.wheelDelta=function(M){return arguments.length?(R=typeof M=="function"?M:Ni(+M),Qe):R},Qe.filter=function(M){return arguments.length?(o=typeof M=="function"?M:Ni(!!M),Qe):o},Qe.touchable=function(M){return arguments.length?(K=typeof M=="function"?M:Ni(!!M),Qe):K},Qe.extent=function(M){return arguments.length?(b=typeof M=="function"?M:Ni([[+M[0][0],+M[0][1]],[+M[1][0],+M[1][1]]]),Qe):b},Qe.scaleExtent=function(M){return arguments.length?(Z[0]=+M[0],Z[1]=+M[1],Qe):[Z[0],Z[1]]},Qe.translateExtent=function(M){return arguments.length?(H[0][0]=+M[0][0],H[1][0]=+M[1][0],H[0][1]=+M[0][1],H[1][1]=+M[1][1],Qe):[[H[0][0],H[0][1]],[H[1][0],H[1][1]]]},Qe.constrain=function(M){return arguments.length?(S=M,Qe):S},Qe.duration=function(M){return arguments.length?(ae=+M,Qe):ae},Qe.interpolate=function(M){return arguments.length?(be=M,Qe):be},Qe.on=function(){var M=we.on.apply(we,arguments);return M===we?Qe:M},Qe.clickDistance=function(M){return arguments.length?(Ot=(M=+M)*M,Qe):Math.sqrt(Ot)},Qe.tapDistance=function(M){return arguments.length?(rn=+M,Qe):rn},Qe}},51419:(_,A,n)=>{"use strict";n.d(A,{Ay:()=>Yn});var r={};n.r(r),n.d(r,{BOM:()=>Ii,DOCUMENT:()=>ai,FLOW_END:()=>Gn,SCALAR:()=>gi,createScalarToken:()=>Ki,isCollection:()=>Wi,isScalar:()=>Fi,prettyToken:()=>Gi,resolveAsScalar:()=>Bn,setScalarValue:()=>$i,stringify:()=>Vi,tokenType:()=>ji,visit:()=>Xt});var d={};n.r(d),n.d(d,{Alias:()=>mt,CST:()=>r,Composer:()=>Li,Document:()=>ve,Lexer:()=>K,LineCounter:()=>Z,Pair:()=>gt,Parser:()=>je,Scalar:()=>J,Schema:()=>ie,YAMLError:()=>Ie,YAMLMap:()=>Bt,YAMLParseError:()=>Me,YAMLSeq:()=>Yt,YAMLWarning:()=>qe,isAlias:()=>x,isCollection:()=>B,isDocument:()=>y,isMap:()=>E,isNode:()=>k,isPair:()=>O,isScalar:()=>N,isSeq:()=>j,parse:()=>rn,parseAllDocuments:()=>Jt,parseDocument:()=>Ot,stringify:()=>Qe,visit:()=>W,visitAsync:()=>re});const l=Symbol.for("yaml.alias"),p=Symbol.for("yaml.document"),c=Symbol.for("yaml.map"),g=Symbol.for("yaml.pair"),m=Symbol.for("yaml.scalar"),f=Symbol.for("yaml.seq"),v=Symbol.for("yaml.node.type"),x=i=>!!i&&typeof i=="object"&&i[v]===l,y=i=>!!i&&typeof i=="object"&&i[v]===p,E=i=>!!i&&typeof i=="object"&&i[v]===c,O=i=>!!i&&typeof i=="object"&&i[v]===g,N=i=>!!i&&typeof i=="object"&&i[v]===m,j=i=>!!i&&typeof i=="object"&&i[v]===f;function B(i){if(i&&typeof i=="object")switch(i[v]){case c:case f:return!0}return!1}function k(i){if(i&&typeof i=="object")switch(i[v]){case l:case c:case m:case f:return!0}return!1}const P=i=>(N(i)||B(i))&&!!i.anchor,L=Symbol("break visit"),F=Symbol("skip children"),U=Symbol("remove node");function W(i,e){const t=pe(e);y(i)?q(null,i.contents,t,Object.freeze([i]))===U&&(i.contents=null):q(null,i,t,Object.freeze([]))}W.BREAK=L,W.SKIP=F,W.REMOVE=U;function q(i,e,t,s){const a=de(i,e,t,s);if(k(a)||O(a))return ue(i,s,a),q(i,a,t,s);if(typeof a!="symbol"){if(B(e)){s=Object.freeze(s.concat(e));for(let h=0;h<e.items.length;++h){const w=q(h,e.items[h],t,s);if(typeof w=="number")h=w-1;else{if(w===L)return L;w===U&&(e.items.splice(h,1),h-=1)}}}else if(O(e)){s=Object.freeze(s.concat(e));const h=q("key",e.key,t,s);if(h===L)return L;h===U&&(e.key=null);const w=q("value",e.value,t,s);if(w===L)return L;w===U&&(e.value=null)}}return a}async function re(i,e){const t=pe(e);y(i)?await he(null,i.contents,t,Object.freeze([i]))===U&&(i.contents=null):await he(null,i,t,Object.freeze([]))}re.BREAK=L,re.SKIP=F,re.REMOVE=U;async function he(i,e,t,s){const a=await de(i,e,t,s);if(k(a)||O(a))return ue(i,s,a),he(i,a,t,s);if(typeof a!="symbol"){if(B(e)){s=Object.freeze(s.concat(e));for(let h=0;h<e.items.length;++h){const w=await he(h,e.items[h],t,s);if(typeof w=="number")h=w-1;else{if(w===L)return L;w===U&&(e.items.splice(h,1),h-=1)}}}else if(O(e)){s=Object.freeze(s.concat(e));const h=await he("key",e.key,t,s);if(h===L)return L;h===U&&(e.key=null);const w=await he("value",e.value,t,s);if(w===L)return L;w===U&&(e.value=null)}}return a}function pe(i){return typeof i=="object"&&(i.Collection||i.Node||i.Value)?Object.assign({Alias:i.Node,Map:i.Node,Scalar:i.Node,Seq:i.Node},i.Value&&{Map:i.Value,Scalar:i.Value,Seq:i.Value},i.Collection&&{Map:i.Collection,Seq:i.Collection},i):i}function de(i,e,t,s){if(typeof t=="function")return t(i,e,s);if(E(e))return t.Map?.(i,e,s);if(j(e))return t.Seq?.(i,e,s);if(O(e))return t.Pair?.(i,e,s);if(N(e))return t.Scalar?.(i,e,s);if(x(e))return t.Alias?.(i,e,s)}function ue(i,e,t){const s=e[e.length-1];if(B(s))s.items[i]=t;else if(O(s))i==="key"?s.key=t:s.value=t;else if(y(s))s.contents=t;else{const a=x(s)?"alias":"scalar";throw new Error(`Cannot replace node with ${a} parent`)}}const ye={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},te=i=>i.replace(/[!,[\]{}]/g,e=>ye[e]);class Se{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Se.defaultYaml,e),this.tags=Object.assign({},Se.defaultTags,t)}clone(){const e=new Se(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new Se(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Se.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Se.defaultTags);break}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:Se.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Se.defaultTags),this.atNextDocument=!1);const s=e.trim().split(/[ \t]+/),a=s.shift();switch(a){case"%TAG":{if(s.length!==2&&(t(0,"%TAG directive should contain exactly two parts"),s.length<2))return!1;const[h,w]=s;return this.tags[h]=w,!0}case"%YAML":{if(this.yaml.explicit=!0,s.length!==1)return t(0,"%YAML directive should contain exactly one part"),!1;const[h]=s;if(h==="1.1"||h==="1.2")return this.yaml.version=h,!0;{const w=/^\d+\.\d+$/.test(h);return t(6,`Unsupported YAML version ${h}`,w),!1}}default:return t(0,`Unknown directive ${a}`,!0),!1}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!")return t(`Not a valid tag: ${e}`),null;if(e[1]==="<"){const w=e.slice(2,-1);return w==="!"||w==="!!"?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&t("Verbatim tags must end with a >"),w)}const[,s,a]=e.match(/^(.*!)([^!]*)$/s);a||t(`The ${e} tag has no suffix`);const h=this.tags[s];if(h)try{return h+decodeURIComponent(a)}catch(w){return t(String(w)),null}return s==="!"?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[t,s]of Object.entries(this.tags))if(e.startsWith(s))return t+te(e.substring(s.length));return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],s=Object.entries(this.tags);let a;if(e&&s.length>0&&k(e.contents)){const h={};W(e.contents,(w,C)=>{k(C)&&C.tag&&(h[C.tag]=!0)}),a=Object.keys(h)}else a=[];for(const[h,w]of s)h==="!!"&&w==="tag:yaml.org,2002:"||(!e||a.some(C=>C.startsWith(w)))&&t.push(`%TAG ${h} ${w}`);return t.join(`
29
- `)}}Se.defaultYaml={explicit:!1,version:"1.2"},Se.defaultTags={"!!":"tag:yaml.org,2002:"};function De(i){if(/[\x00-\x19\s,[\]{}]/.test(i)){const t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(i)}`;throw new Error(t)}return!0}function Be(i){const e=new Set;return W(i,{Value(t,s){s.anchor&&e.add(s.anchor)}}),e}function ut(i,e){for(let t=1;;++t){const s=`${i}${t}`;if(!e.has(s))return s}}function et(i,e){const t=[],s=new Map;let a=null;return{onAnchor:h=>{t.push(h),a||(a=Be(i));const w=ut(e,a);return a.add(w),w},setAnchors:()=>{for(const h of t){const w=s.get(h);if(typeof w=="object"&&w.anchor&&(N(w.node)||B(w.node)))w.node.anchor=w.anchor;else{const C=new Error("Failed to resolve repeated object (this should not happen)");throw C.source=h,C}}},sourceObjects:s}}function dt(i,e,t,s){if(s&&typeof s=="object")if(Array.isArray(s))for(let a=0,h=s.length;a<h;++a){const w=s[a],C=dt(i,s,String(a),w);C===void 0?delete s[a]:C!==w&&(s[a]=C)}else if(s instanceof Map)for(const a of Array.from(s.keys())){const h=s.get(a),w=dt(i,s,a,h);w===void 0?s.delete(a):w!==h&&s.set(a,w)}else if(s instanceof Set)for(const a of Array.from(s)){const h=dt(i,s,a,a);h===void 0?s.delete(a):h!==a&&(s.delete(a),s.add(h))}else for(const[a,h]of Object.entries(s)){const w=dt(i,s,a,h);w===void 0?delete s[a]:w!==h&&(s[a]=w)}return i.call(e,t,s)}function pt(i,e,t){if(Array.isArray(i))return i.map((s,a)=>pt(s,String(a),t));if(i&&typeof i.toJSON=="function"){if(!t||!P(i))return i.toJSON(e,t);const s={aliasCount:0,count:1,res:void 0};t.anchors.set(i,s),t.onCreate=h=>{s.res=h,delete t.onCreate};const a=i.toJSON(e,t);return t.onCreate&&t.onCreate(a),a}return typeof i=="bigint"&&!t?.keep?Number(i):i}class At{constructor(e){Object.defineProperty(this,v,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:s,onAnchor:a,reviver:h}={}){if(!y(e))throw new TypeError("A document argument is required");const w={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof s=="number"?s:100},C=pt(this,"",w);if(typeof a=="function")for(const{count:D,res:Y}of w.anchors.values())a(Y,D);return typeof h=="function"?dt(h,{"":C},"",C):C}}class mt extends At{constructor(e){super(l),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t;return W(e,{Node:(s,a)=>{if(a===this)return W.BREAK;a.anchor===this.source&&(t=a)}}),t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:s,doc:a,maxAliasCount:h}=t,w=this.resolve(a);if(!w){const D=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(D)}let C=s.get(w);if(C||(pt(w,null,t),C=s.get(w)),!C||C.res===void 0){const D="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(D)}if(h>=0&&(C.count+=1,C.aliasCount===0&&(C.aliasCount=Rt(a,w,s)),C.count*C.aliasCount>h)){const D="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(D)}return C.res}toString(e,t,s){const a=`*${this.source}`;if(e){if(De(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const h=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(h)}if(e.implicitKey)return`${a} `}return a}}function Rt(i,e,t){if(x(e)){const s=e.resolve(i),a=t&&s&&t.get(s);return a?a.count*a.aliasCount:0}else if(B(e)){let s=0;for(const a of e.items){const h=Rt(i,a,t);h>s&&(s=h)}return s}else if(O(e)){const s=Rt(i,e.key,t),a=Rt(i,e.value,t);return Math.max(s,a)}return 1}const oe=i=>!i||typeof i!="function"&&typeof i!="object";class J extends At{constructor(e){super(m),this.value=e}toJSON(e,t){return t?.keep?this.value:pt(this.value,e,t)}toString(){return String(this.value)}}J.BLOCK_FOLDED="BLOCK_FOLDED",J.BLOCK_LITERAL="BLOCK_LITERAL",J.PLAIN="PLAIN",J.QUOTE_DOUBLE="QUOTE_DOUBLE",J.QUOTE_SINGLE="QUOTE_SINGLE";const le="tag:yaml.org,2002:";function ke(i,e,t){if(e){const s=t.filter(h=>h.tag===e),a=s.find(h=>!h.format)??s[0];if(!a)throw new Error(`Tag ${e} not found`);return a}return t.find(s=>s.identify?.(i)&&!s.format)}function Ge(i,e,t){if(y(i)&&(i=i.contents),k(i))return i;if(O(i)){const M=t.schema[c].createNode?.(t.schema,null,t);return M.items.push(i),M}(i instanceof String||i instanceof Number||i instanceof Boolean||typeof BigInt<"u"&&i instanceof BigInt)&&(i=i.valueOf());const{aliasDuplicateObjects:s,onAnchor:a,onTagObj:h,schema:w,sourceObjects:C}=t;let D;if(s&&i&&typeof i=="object"){if(D=C.get(i),D)return D.anchor||(D.anchor=a(i)),new mt(D.anchor);D={anchor:null,node:null},C.set(i,D)}e?.startsWith("!!")&&(e=le+e.slice(2));let Y=ke(i,e,w.tags);if(!Y){if(i&&typeof i.toJSON=="function"&&(i=i.toJSON()),!i||typeof i!="object"){const M=new J(i);return D&&(D.node=M),M}Y=i instanceof Map?w[c]:Symbol.iterator in Object(i)?w[f]:w[c]}h&&(h(Y),delete t.onTagObj);const me=Y?.createNode?Y.createNode(t.schema,i,t):typeof Y?.nodeClass?.from=="function"?Y.nodeClass.from(t.schema,i,t):new J(i);return e?me.tag=e:Y.default||(me.tag=Y.tag),D&&(D.node=me),me}function Ze(i,e,t){let s=t;for(let a=e.length-1;a>=0;--a){const h=e[a];if(typeof h=="number"&&Number.isInteger(h)&&h>=0){const w=[];w[h]=s,s=w}else s=new Map([[h,s]])}return Ge(s,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:i,sourceObjects:new Map})}const rt=i=>i==null||typeof i=="object"&&!!i[Symbol.iterator]().next().done;class wt extends At{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(s=>k(s)||O(s)?s.clone(e):s),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(rt(e))this.add(t);else{const[s,...a]=e,h=this.get(s,!0);if(B(h))h.addIn(a,t);else if(h===void 0&&this.schema)this.set(s,Ze(this.schema,a,t));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${a}`)}}deleteIn(e){const[t,...s]=e;if(s.length===0)return this.delete(t);const a=this.get(t,!0);if(B(a))return a.deleteIn(s);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${s}`)}getIn(e,t){const[s,...a]=e,h=this.get(s,!0);return a.length===0?!t&&N(h)?h.value:h:B(h)?h.getIn(a,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!O(t))return!1;const s=t.value;return s==null||e&&N(s)&&s.value==null&&!s.commentBefore&&!s.comment&&!s.tag})}hasIn(e){const[t,...s]=e;if(s.length===0)return this.has(t);const a=this.get(t,!0);return B(a)?a.hasIn(s):!1}setIn(e,t){const[s,...a]=e;if(a.length===0)this.set(s,t);else{const h=this.get(s,!0);if(B(h))h.setIn(a,t);else if(h===void 0&&this.schema)this.set(s,Ze(this.schema,a,t));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${a}`)}}}wt.maxFlowStringSingleLineLength=60;const tn=i=>i.replace(/^(?!$)(?: $)?/gm,"#");function ht(i,e){return/^\n+$/.test(i)?i.substring(1):e?i.replace(/^(?! *$)/gm,e):i}const ot=(i,e,t)=>i.endsWith(`
30
- `)?ht(t,e):t.includes(`
31
- `)?`
32
- `+ht(t,e):(i.endsWith(" ")?"":" ")+t,Ye="flow",kt="block",He="quoted";function vt(i,e,t="flow",{indentAtStart:s,lineWidth:a=80,minContentWidth:h=20,onFold:w,onOverflow:C}={}){if(!a||a<0)return i;const D=Math.max(1+h,1+a-e.length);if(i.length<=D)return i;const Y=[],me={};let M=a-e.length;typeof s=="number"&&(s>a-Math.max(2,h)?Y.push(0):M=a-s);let G,V,fe=!1,X=-1,se=-1,Ee=-1;t===kt&&(X=xt(i,X,e.length),X!==-1&&(M=X+D));for(let Le;Le=i[X+=1];){if(t===He&&Le==="\\"){switch(se=X,i[X+1]){case"x":X+=3;break;case"u":X+=5;break;case"U":X+=9;break;default:X+=1}Ee=X}if(Le===`
33
- `)t===kt&&(X=xt(i,X,e.length)),M=X+e.length+D,G=void 0;else{if(Le===" "&&V&&V!==" "&&V!==`
34
- `&&V!==" "){const We=i[X+1];We&&We!==" "&&We!==`
35
- `&&We!==" "&&(G=X)}if(X>=M)if(G)Y.push(G),M=G+D,G=void 0;else if(t===He){for(;V===" "||V===" ";)V=Le,Le=i[X+=1],fe=!0;const We=X>Ee+1?X-2:se-1;if(me[We])return i;Y.push(We),me[We]=!0,M=We+D,G=void 0}else fe=!0}V=Le}if(fe&&C&&C(),Y.length===0)return i;w&&w();let Te=i.slice(0,Y[0]);for(let Le=0;Le<Y.length;++Le){const We=Y[Le],Ve=Y[Le+1]||i.length;We===0?Te=`
36
- ${e}${i.slice(0,Ve)}`:(t===He&&me[We]&&(Te+=`${i[We]}\\`),Te+=`
37
- ${e}${i.slice(We+1,Ve)}`)}return Te}function xt(i,e,t){let s=e,a=e+1,h=i[a];for(;h===" "||h===" ";)if(e<a+t)h=i[++e];else{do h=i[++e];while(h&&h!==`
38
- `);s=e,a=e+1,h=i[a]}return s}const dn=(i,e)=>({indentAtStart:e?i.indent.length:i.indentAtStart,lineWidth:i.options.lineWidth,minContentWidth:i.options.minContentWidth}),Dt=i=>/^(%|---|\.\.\.)/m.test(i);function zt(i,e,t){if(!e||e<0)return!1;const s=e-t,a=i.length;if(a<=s)return!1;for(let h=0,w=0;h<a;++h)if(i[h]===`
39
- `){if(h-w>s)return!0;if(w=h+1,a-w<=s)return!1}return!0}function at(i,e){const t=JSON.stringify(i);if(e.options.doubleQuotedAsJSON)return t;const{implicitKey:s}=e,a=e.options.doubleQuotedMinMultiLineLength,h=e.indent||(Dt(i)?" ":"");let w="",C=0;for(let D=0,Y=t[D];Y;Y=t[++D])if(Y===" "&&t[D+1]==="\\"&&t[D+2]==="n"&&(w+=t.slice(C,D)+"\\ ",D+=1,C=D,Y="\\"),Y==="\\")switch(t[D+1]){case"u":{w+=t.slice(C,D);const me=t.substr(D+2,4);switch(me){case"0000":w+="\\0";break;case"0007":w+="\\a";break;case"000b":w+="\\v";break;case"001b":w+="\\e";break;case"0085":w+="\\N";break;case"00a0":w+="\\_";break;case"2028":w+="\\L";break;case"2029":w+="\\P";break;default:me.substr(0,2)==="00"?w+="\\x"+me.substr(2):w+=t.substr(D,6)}D+=5,C=D+1}break;case"n":if(s||t[D+2]==='"'||t.length<a)D+=1;else{for(w+=t.slice(C,D)+`
40
-
41
- `;t[D+2]==="\\"&&t[D+3]==="n"&&t[D+4]!=='"';)w+=`
42
- `,D+=2;w+=h,t[D+2]===" "&&(w+="\\"),D+=1,C=D+1}break;default:D+=1}return w=C?w+t.slice(C):t,s?w:vt(w,h,He,dn(e,!1))}function nn(i,e){if(e.options.singleQuote===!1||e.implicitKey&&i.includes(`
43
- `)||/[ \t]\n|\n[ \t]/.test(i))return at(i,e);const t=e.indent||(Dt(i)?" ":""),s="'"+i.replace(/'/g,"''").replace(/\n+/g,`$&
44
- ${t}`)+"'";return e.implicitKey?s:vt(s,t,Ye,dn(e,!1))}function $t(i,e){const{singleQuote:t}=e.options;let s;if(t===!1)s=at;else{const a=i.includes('"'),h=i.includes("'");a&&!h?s=nn:h&&!a?s=at:s=t?nn:at}return s(i,e)}let _n;try{_n=new RegExp(`(^|(?<!
45
- ))
46
- +(?!
47
- |$)`,"g")}catch{_n=/\n+(?!\n|$)/g}function Qt({comment:i,type:e,value:t},s,a,h){const{blockQuote:w,commentString:C,lineWidth:D}=s.options;if(!w||/\n[\t ]+$/.test(t)||/^\s*$/.test(t))return $t(t,s);const Y=s.indent||(s.forceBlockIndent||Dt(t)?" ":""),me=w==="literal"?!0:w==="folded"||e===J.BLOCK_FOLDED?!1:e===J.BLOCK_LITERAL?!0:!zt(t,D,Y.length);if(!t)return me?`|
48
- `:`>
49
- `;let M,G;for(G=t.length;G>0;--G){const Ue=t[G-1];if(Ue!==`
50
- `&&Ue!==" "&&Ue!==" ")break}let V=t.substring(G);const fe=V.indexOf(`
51
- `);fe===-1?M="-":t===V||fe!==V.length-1?(M="+",h&&h()):M="",V&&(t=t.slice(0,-V.length),V[V.length-1]===`
52
- `&&(V=V.slice(0,-1)),V=V.replace(_n,`$&${Y}`));let X=!1,se,Ee=-1;for(se=0;se<t.length;++se){const Ue=t[se];if(Ue===" ")X=!0;else if(Ue===`
53
- `)Ee=se;else break}let Te=t.substring(0,Ee<se?Ee+1:se);Te&&(t=t.substring(Te.length),Te=Te.replace(/\n+/g,`$&${Y}`));let We=(me?"|":">")+(X?Y?"2":"1":"")+M;if(i&&(We+=" "+C(i.replace(/ ?[\r\n]+/g," ")),a&&a()),me)return t=t.replace(/\n+/g,`$&${Y}`),`${We}
54
- ${Y}${Te}${t}${V}`;t=t.replace(/\n+/g,`
55
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${Y}`);const Ve=vt(`${Te}${t}${V}`,Y,kt,dn(s,!0));return`${We}
56
- ${Y}${Ve}`}function sn(i,e,t,s){const{type:a,value:h}=i,{actualString:w,implicitKey:C,indent:D,indentStep:Y,inFlow:me}=e;if(C&&h.includes(`
57
- `)||me&&/[[\]{},]/.test(h))return $t(h,e);if(!h||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(h))return C||me||!h.includes(`
58
- `)?$t(h,e):Qt(i,e,t,s);if(!C&&!me&&a!==J.PLAIN&&h.includes(`
59
- `))return Qt(i,e,t,s);if(Dt(h)){if(D==="")return e.forceBlockIndent=!0,Qt(i,e,t,s);if(C&&D===Y)return $t(h,e)}const M=h.replace(/\n+/g,`$&
60
- ${D}`);if(w){const G=X=>X.default&&X.tag!=="tag:yaml.org,2002:str"&&X.test?.test(M),{compat:V,tags:fe}=e.doc.schema;if(fe.some(G)||V?.some(G))return $t(h,e)}return C?M:vt(M,D,Ye,dn(e,!1))}function Zt(i,e,t,s){const{implicitKey:a,inFlow:h}=e,w=typeof i.value=="string"?i:Object.assign({},i,{value:String(i.value)});let{type:C}=i;C!==J.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(w.value)&&(C=J.QUOTE_DOUBLE);const D=me=>{switch(me){case J.BLOCK_FOLDED:case J.BLOCK_LITERAL:return a||h?$t(w.value,e):Qt(w,e,t,s);case J.QUOTE_DOUBLE:return at(w.value,e);case J.QUOTE_SINGLE:return nn(w.value,e);case J.PLAIN:return sn(w,e,t,s);default:return null}};let Y=D(C);if(Y===null){const{defaultKeyType:me,defaultStringType:M}=e.options,G=a&&me||M;if(Y=D(G),Y===null)throw new Error(`Unsupported default string type ${G}`)}return Y}function pn(i,e){const t=Object.assign({blockQuote:!0,commentString:tn,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},i.schema.toStringOptions,e);let s;switch(t.collectionStyle){case"block":s=!1;break;case"flow":s=!0;break;default:s=null}return{anchors:new Set,doc:i,flowCollectionPadding:t.flowCollectionPadding?" ":"",indent:"",indentStep:typeof t.indent=="number"?" ".repeat(t.indent):" ",inFlow:s,options:t}}function Hn(i,e){if(e.tag){const a=i.filter(h=>h.tag===e.tag);if(a.length>0)return a.find(h=>h.format===e.format)??a[0]}let t,s;if(N(e)){s=e.value;const a=i.filter(h=>h.identify?.(s));t=a.find(h=>h.format===e.format)??a.find(h=>!h.format)}else s=e,t=i.find(a=>a.nodeClass&&s instanceof a.nodeClass);if(!t){const a=s?.constructor?.name??typeof s;throw new Error(`Tag not resolved for ${a} value`)}return t}function Ln(i,e,{anchors:t,doc:s}){if(!s.directives)return"";const a=[],h=(N(i)||B(i))&&i.anchor;h&&De(h)&&(t.add(h),a.push(`&${h}`));const w=i.tag?i.tag:e.default?null:e.tag;return w&&a.push(s.directives.tagString(w)),a.join(" ")}function lt(i,e,t,s){if(O(i))return i.toString(e,t,s);if(x(i)){if(e.doc.directives)return i.toString(e);if(e.resolvedAliases?.has(i))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(i):e.resolvedAliases=new Set([i]),i=i.resolve(e.doc)}let a;const h=k(i)?i:e.doc.createNode(i,{onTagObj:D=>a=D});a||(a=Hn(e.doc.schema.tags,h));const w=Ln(h,a,e);w.length>0&&(e.indentAtStart=(e.indentAtStart??0)+w.length+1);const C=typeof a.stringify=="function"?a.stringify(h,e,t,s):N(h)?Zt(h,e,t,s):h.toString(e,t,s);return w?N(h)||C[0]==="{"||C[0]==="["?`${w} ${C}`:`${w}
61
- ${e.indent}${C}`:C}function _t({key:i,value:e},t,s,a){const{allNullValues:h,doc:w,indent:C,indentStep:D,options:{commentString:Y,indentSeq:me,simpleKeys:M}}=t;let G=k(i)&&i.comment||null;if(M){if(G)throw new Error("With simple keys, key nodes cannot have comments");if(B(i)||!k(i)&&typeof i=="object"){const ft="With simple keys, collection cannot be used as a key value";throw new Error(ft)}}let V=!M&&(!i||G&&e==null&&!t.inFlow||B(i)||(N(i)?i.type===J.BLOCK_FOLDED||i.type===J.BLOCK_LITERAL:typeof i=="object"));t=Object.assign({},t,{allNullValues:!1,implicitKey:!V&&(M||!h),indent:C+D});let fe=!1,X=!1,se=lt(i,t,()=>fe=!0,()=>X=!0);if(!V&&!t.inFlow&&se.length>1024){if(M)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");V=!0}if(t.inFlow){if(h||e==null)return fe&&s&&s(),se===""?"?":V?`? ${se}`:se}else if(h&&!M||e==null&&V)return se=`? ${se}`,G&&!fe?se+=ot(se,t.indent,Y(G)):X&&a&&a(),se;fe&&(G=null),V?(G&&(se+=ot(se,t.indent,Y(G))),se=`? ${se}
62
- ${C}:`):(se=`${se}:`,G&&(se+=ot(se,t.indent,Y(G))));let Ee,Te,Le;k(e)?(Ee=!!e.spaceBefore,Te=e.commentBefore,Le=e.comment):(Ee=!1,Te=null,Le=null,e&&typeof e=="object"&&(e=w.createNode(e))),t.implicitKey=!1,!V&&!G&&N(e)&&(t.indentAtStart=se.length+1),X=!1,!me&&D.length>=2&&!t.inFlow&&!V&&j(e)&&!e.flow&&!e.tag&&!e.anchor&&(t.indent=t.indent.substring(2));let We=!1;const Ve=lt(e,t,()=>We=!0,()=>X=!0);let Ue=" ";if(G||Ee||Te){if(Ue=Ee?`
63
- `:"",Te){const ft=Y(Te);Ue+=`
64
- ${ht(ft,t.indent)}`}Ve===""&&!t.inFlow?Ue===`
65
- `&&(Ue=`
66
-
67
- `):Ue+=`
68
- ${t.indent}`}else if(!V&&B(e)){const ft=Ve[0],Re=Ve.indexOf(`
69
- `),yt=Re!==-1,Fn=t.inFlow??e.flow??e.items.length===0;if(yt||!Fn){let Ci=!1;if(yt&&(ft==="&"||ft==="!")){let Kt=Ve.indexOf(" ");ft==="&"&&Kt!==-1&&Kt<Re&&Ve[Kt+1]==="!"&&(Kt=Ve.indexOf(" ",Kt+1)),(Kt===-1||Re<Kt)&&(Ci=!0)}Ci||(Ue=`
70
- ${t.indent}`)}}else(Ve===""||Ve[0]===`
71
- `)&&(Ue="");return se+=Ue+Ve,t.inFlow?We&&s&&s():Le&&!We?se+=ot(se,t.indent,Y(Le)):X&&a&&a(),se}var En=n(39907);function yi(i,...e){i==="debug"&&console.log(...e)}function Pn(i,e){(i==="debug"||i==="warn")&&(typeof En<"u"&&En.emitWarning?En.emitWarning(e):console.warn(e))}const mn="<<";function jn(i,e,{key:t,value:s}){if(i?.doc.schema.merge&&Rn(t))if(s=x(s)?s.resolve(i.doc):s,j(s))for(const a of s.items)gn(i,e,a);else if(Array.isArray(s))for(const a of s)gn(i,e,a);else gn(i,e,s);else{const a=pt(t,"",i);if(e instanceof Map)e.set(a,pt(s,a,i));else if(e instanceof Set)e.add(a);else{const h=Vt(t,a,i),w=pt(s,h,i);h in e?Object.defineProperty(e,h,{value:w,writable:!0,enumerable:!0,configurable:!0}):e[h]=w}}return e}const Rn=i=>i===mn||N(i)&&i.value===mn&&(!i.type||i.type===J.PLAIN);function gn(i,e,t){const s=i&&x(t)?t.resolve(i.doc):t;if(!E(s))throw new Error("Merge sources must be maps or map aliases");const a=s.toJSON(null,i,Map);for(const[h,w]of a)e instanceof Map?e.has(h)||e.set(h,w):e instanceof Set?e.add(h):Object.prototype.hasOwnProperty.call(e,h)||Object.defineProperty(e,h,{value:w,writable:!0,enumerable:!0,configurable:!0});return e}function Vt(i,e,t){if(e===null)return"";if(typeof e!="object")return String(e);if(k(i)&&t?.doc){const s=pn(t.doc,{});s.anchors=new Set;for(const h of t.anchors.keys())s.anchors.add(h.anchor);s.inFlow=!0,s.inStringifyKey=!0;const a=i.toString(s);if(!t.mapKeyWarned){let h=JSON.stringify(a);h.length>40&&(h=h.substring(0,36)+'..."'),Pn(t.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${h}. Set mapAsMap: true to use object keys.`),t.mapKeyWarned=!0}return a}return JSON.stringify(e)}function Wt(i,e,t){const s=Ge(i,void 0,t),a=Ge(e,void 0,t);return new gt(s,a)}class gt{constructor(e,t=null){Object.defineProperty(this,v,{value:g}),this.key=e,this.value=t}clone(e){let{key:t,value:s}=this;return k(t)&&(t=t.clone(e)),k(s)&&(s=s.clone(e)),new gt(t,s)}toJSON(e,t){const s=t?.mapAsMap?new Map:{};return jn(t,s,this)}toString(e,t,s){return e?.doc?_t(this,e,t,s):JSON.stringify(this)}}function Gt(i,e,t){return(e.inFlow??i.flow?ui:qn)(i,e,t)}function qn({comment:i,items:e},t,{blockItemPrefix:s,flowChars:a,itemIndent:h,onChompKeep:w,onComment:C}){const{indent:D,options:{commentString:Y}}=t,me=Object.assign({},t,{indent:h,type:null});let M=!1;const G=[];for(let fe=0;fe<e.length;++fe){const X=e[fe];let se=null;if(k(X))!M&&X.spaceBefore&&G.push(""),$n(t,G,X.commentBefore,M),X.comment&&(se=X.comment);else if(O(X)){const Te=k(X.key)?X.key:null;Te&&(!M&&Te.spaceBefore&&G.push(""),$n(t,G,Te.commentBefore,M))}M=!1;let Ee=lt(X,me,()=>se=null,()=>M=!0);se&&(Ee+=ot(Ee,h,Y(se))),M&&se&&(M=!1),G.push(s+Ee)}let V;if(G.length===0)V=a.start+a.end;else{V=G[0];for(let fe=1;fe<G.length;++fe){const X=G[fe];V+=X?`
72
- ${D}${X}`:`
73
- `}}return i?(V+=`
74
- `+ht(Y(i),D),C&&C()):M&&w&&w(),V}function ui({items:i},e,{flowChars:t,itemIndent:s}){const{indent:a,indentStep:h,flowCollectionPadding:w,options:{commentString:C}}=e;s+=h;const D=Object.assign({},e,{indent:s,inFlow:!0,type:null});let Y=!1,me=0;const M=[];for(let fe=0;fe<i.length;++fe){const X=i[fe];let se=null;if(k(X))X.spaceBefore&&M.push(""),$n(e,M,X.commentBefore,!1),X.comment&&(se=X.comment);else if(O(X)){const Te=k(X.key)?X.key:null;Te&&(Te.spaceBefore&&M.push(""),$n(e,M,Te.commentBefore,!1),Te.comment&&(Y=!0));const Le=k(X.value)?X.value:null;Le?(Le.comment&&(se=Le.comment),Le.commentBefore&&(Y=!0)):X.value==null&&Te?.comment&&(se=Te.comment)}se&&(Y=!0);let Ee=lt(X,D,()=>se=null);fe<i.length-1&&(Ee+=","),se&&(Ee+=ot(Ee,s,C(se))),!Y&&(M.length>me||Ee.includes(`
75
- `))&&(Y=!0),M.push(Ee),me=M.length}const{start:G,end:V}=t;if(M.length===0)return G+V;if(!Y){const fe=M.reduce((X,se)=>X+se.length+2,2);Y=e.options.lineWidth>0&&fe>e.options.lineWidth}if(Y){let fe=G;for(const X of M)fe+=X?`
76
- ${h}${a}${X}`:`
77
- `;return`${fe}
78
- ${a}${V}`}else return`${G}${w}${M.join(" ")}${w}${V}`}function $n({indent:i,options:{commentString:e}},t,s,a){if(s&&a&&(s=s.replace(/^\n+/,"")),s){const h=ht(e(s),i);t.push(h.trimStart())}}function yn(i,e){const t=N(e)?e.value:e;for(const s of i)if(O(s)&&(s.key===e||s.key===t||N(s.key)&&s.key.value===t))return s}class Bt extends wt{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(c,e),this.items=[]}static from(e,t,s){const{keepUndefined:a,replacer:h}=s,w=new this(e),C=(D,Y)=>{if(typeof h=="function")Y=h.call(t,D,Y);else if(Array.isArray(h)&&!h.includes(D))return;(Y!==void 0||a)&&w.items.push(Wt(D,Y,s))};if(t instanceof Map)for(const[D,Y]of t)C(D,Y);else if(t&&typeof t=="object")for(const D of Object.keys(t))C(D,t[D]);return typeof e.sortMapEntries=="function"&&w.items.sort(e.sortMapEntries),w}add(e,t){let s;O(e)?s=e:!e||typeof e!="object"||!("key"in e)?s=new gt(e,e?.value):s=new gt(e.key,e.value);const a=yn(this.items,s.key),h=this.schema?.sortMapEntries;if(a){if(!t)throw new Error(`Key ${s.key} already set`);N(a.value)&&oe(s.value)?a.value.value=s.value:a.value=s.value}else if(h){const w=this.items.findIndex(C=>h(s,C)<0);w===-1?this.items.push(s):this.items.splice(w,0,s)}else this.items.push(s)}delete(e){const t=yn(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){const a=yn(this.items,e)?.value;return(!t&&N(a)?a.value:a)??void 0}has(e){return!!yn(this.items,e)}set(e,t){this.add(new gt(e,t),!0)}toJSON(e,t,s){const a=s?new s:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(a);for(const h of this.items)jn(t,a,h);return a}toString(e,t,s){if(!e)return JSON.stringify(this);for(const a of this.items)if(!O(a))throw new Error(`Map items must all be pairs; found ${JSON.stringify(a)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Gt(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:s,onComment:t})}}const An={collection:"map",default:!0,nodeClass:Bt,tag:"tag:yaml.org,2002:map",resolve(i,e){return E(i)||e("Expected a mapping for this tag"),i},createNode:(i,e,t)=>Bt.from(i,e,t)};class Yt extends wt{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(f,e),this.items=[]}add(e){this.items.push(e)}delete(e){const t=vn(e);return typeof t!="number"?!1:this.items.splice(t,1).length>0}get(e,t){const s=vn(e);if(typeof s!="number")return;const a=this.items[s];return!t&&N(a)?a.value:a}has(e){const t=vn(e);return typeof t=="number"&&t<this.items.length}set(e,t){const s=vn(e);if(typeof s!="number")throw new Error(`Expected a valid index, not ${e}.`);const a=this.items[s];N(a)&&oe(t)?a.value=t:this.items[s]=t}toJSON(e,t){const s=[];t?.onCreate&&t.onCreate(s);let a=0;for(const h of this.items)s.push(pt(h,String(a++),t));return s}toString(e,t,s){return e?Gt(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:s,onComment:t}):JSON.stringify(this)}static from(e,t,s){const{replacer:a}=s,h=new this(e);if(t&&Symbol.iterator in Object(t)){let w=0;for(let C of t){if(typeof a=="function"){const D=t instanceof Set?C:String(w++);C=a.call(t,D,C)}h.items.push(Ge(C,void 0,s))}}return h}}function vn(i){let e=N(i)?i.value:i;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}const on={collection:"seq",default:!0,nodeClass:Yt,tag:"tag:yaml.org,2002:seq",resolve(i,e){return j(i)||e("Expected a sequence for this tag"),i},createNode:(i,e,t)=>Yt.from(i,e,t)},Sn={identify:i=>typeof i=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:i=>i,stringify(i,e,t,s){return e=Object.assign({actualString:!0},e),Zt(i,e,t,s)}},Un={identify:i=>i==null,createNode:()=>new J(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new J(null),stringify:({source:i},e)=>typeof i=="string"&&Un.test.test(i)?i:e.options.nullStr},Tn={identify:i=>typeof i=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:i=>new J(i[0]==="t"||i[0]==="T"),stringify({source:i,value:e},t){if(i&&Tn.test.test(i)){const s=i[0]==="t"||i[0]==="T";if(e===s)return i}return e?t.options.trueStr:t.options.falseStr}};function Lt({format:i,minFractionDigits:e,tag:t,value:s}){if(typeof s=="bigint")return String(s);const a=typeof s=="number"?s:Number(s);if(!isFinite(a))return isNaN(a)?".nan":a<0?"-.inf":".inf";let h=JSON.stringify(s);if(!i&&e&&(!t||t==="tag:yaml.org,2002:float")&&/^\d/.test(h)){let w=h.indexOf(".");w<0&&(w=h.length,h+=".");let C=e-(h.length-w-1);for(;C-- >0;)h+="0"}return h}const On={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:i=>i.slice(-3).toLowerCase()==="nan"?NaN:i[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Lt},Nt={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:i=>parseFloat(i),stringify(i){const e=Number(i.value);return isFinite(e)?e.toExponential():Lt(i)}},Xn={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(i){const e=new J(parseFloat(i)),t=i.indexOf(".");return t!==-1&&i[i.length-1]==="0"&&(e.minFractionDigits=i.length-t-1),e},stringify:Lt},an=i=>typeof i=="bigint"||Number.isInteger(i),It=(i,e,t,{intAsBigInt:s})=>s?BigInt(i):parseInt(i.substring(e),t);function $(i,e,t){const{value:s}=i;return an(s)&&s>=0?t+s.toString(e):Lt(i)}const Q={identify:i=>an(i)&&i>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(i,e,t)=>It(i,2,8,t),stringify:i=>$(i,8,"0o")},_e={identify:an,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(i,e,t)=>It(i,0,10,t),stringify:Lt},Ae={identify:i=>an(i)&&i>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(i,e,t)=>It(i,2,16,t),stringify:i=>$(i,16,"0x")},ge=[An,on,Sn,Un,Tn,Q,_e,Ae,On,Nt,Xn];function Oe(i){return typeof i=="bigint"||Number.isInteger(i)}const Pe=({value:i})=>JSON.stringify(i),$e=[{identify:i=>typeof i=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:i=>i,stringify:Pe},{identify:i=>i==null,createNode:()=>new J(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Pe},{identify:i=>typeof i=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:i=>i==="true",stringify:Pe},{identify:Oe,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(i,e,{intAsBigInt:t})=>t?BigInt(i):parseInt(i,10),stringify:({value:i})=>Oe(i)?i.toString():JSON.stringify(i)},{identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:i=>parseFloat(i),stringify:Pe}],Fe={default:!0,tag:"",test:/^/,resolve(i,e){return e(`Unresolved plain scalar ${JSON.stringify(i)}`),i}},ze=[An,on].concat($e,Fe);var tt=n(1048).hp;const Ct={identify:i=>i instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(i,e){if(typeof tt=="function")return tt.from(i,"base64");if(typeof atob=="function"){const t=atob(i.replace(/[\n\r]/g,"")),s=new Uint8Array(t.length);for(let a=0;a<t.length;++a)s[a]=t.charCodeAt(a);return s}else return e("This environment does not support reading binary tags; either Buffer or atob is required"),i},stringify({comment:i,type:e,value:t},s,a,h){const w=t;let C;if(typeof tt=="function")C=w instanceof tt?w.toString("base64"):tt.from(w.buffer).toString("base64");else if(typeof btoa=="function"){let D="";for(let Y=0;Y<w.length;++Y)D+=String.fromCharCode(w[Y]);C=btoa(D)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e||(e=J.BLOCK_LITERAL),e!==J.QUOTE_DOUBLE){const D=Math.max(s.options.lineWidth-s.indent.length,s.options.minContentWidth),Y=Math.ceil(C.length/D),me=new Array(Y);for(let M=0,G=0;M<Y;++M,G+=D)me[M]=C.substr(G,D);C=me.join(e===J.BLOCK_LITERAL?`
79
- `:" ")}return Zt({comment:i,type:e,value:C},s,a,h)}};function Ft(i,e){if(j(i))for(let t=0;t<i.items.length;++t){let s=i.items[t];if(!O(s)){if(E(s)){s.items.length>1&&e("Each pair must have its own sequence indicator");const a=s.items[0]||new gt(new J(null));if(s.commentBefore&&(a.key.commentBefore=a.key.commentBefore?`${s.commentBefore}
80
- ${a.key.commentBefore}`:s.commentBefore),s.comment){const h=a.value??a.key;h.comment=h.comment?`${s.comment}
81
- ${h.comment}`:s.comment}s=a}i.items[t]=O(s)?s:new gt(s)}}else e("Expected a sequence for this tag");return i}function Pt(i,e,t){const{replacer:s}=t,a=new Yt(i);a.tag="tag:yaml.org,2002:pairs";let h=0;if(e&&Symbol.iterator in Object(e))for(let w of e){typeof s=="function"&&(w=s.call(e,String(h++),w));let C,D;if(Array.isArray(w))if(w.length===2)C=w[0],D=w[1];else throw new TypeError(`Expected [key, value] tuple: ${w}`);else if(w&&w instanceof Object){const Y=Object.keys(w);if(Y.length===1)C=Y[0],D=w[C];else throw new TypeError(`Expected tuple with one key, not ${Y.length} keys`)}else C=w;a.items.push(Wt(C,D,t))}return a}const jt={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Ft,createNode:Pt};class bn extends Yt{constructor(){super(),this.add=Bt.prototype.add.bind(this),this.delete=Bt.prototype.delete.bind(this),this.get=Bt.prototype.get.bind(this),this.has=Bt.prototype.has.bind(this),this.set=Bt.prototype.set.bind(this),this.tag=bn.tag}toJSON(e,t){if(!t)return super.toJSON(e);const s=new Map;t?.onCreate&&t.onCreate(s);for(const a of this.items){let h,w;if(O(a)?(h=pt(a.key,"",t),w=pt(a.value,h,t)):h=pt(a,"",t),s.has(h))throw new Error("Ordered maps must not include duplicate keys");s.set(h,w)}return s}static from(e,t,s){const a=Pt(e,t,s),h=new this;return h.items=a.items,h}}bn.tag="tag:yaml.org,2002:omap";const un={collection:"seq",identify:i=>i instanceof Map,nodeClass:bn,default:!1,tag:"tag:yaml.org,2002:omap",resolve(i,e){const t=Ft(i,e),s=[];for(const{key:a}of t.items)N(a)&&(s.includes(a.value)?e(`Ordered maps must not include duplicate keys: ${a.value}`):s.push(a.value));return Object.assign(new bn,t)},createNode:(i,e,t)=>bn.from(i,e,t)};function Jn({value:i,source:e},t){return e&&(i?Nn:Kn).test.test(e)?e:i?t.options.trueStr:t.options.falseStr}const Nn={identify:i=>i===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new J(!0),stringify:Jn},Kn={identify:i=>i===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new J(!1),stringify:Jn},wn={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:i=>i.slice(-3).toLowerCase()==="nan"?NaN:i[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Lt},ln={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:i=>parseFloat(i.replace(/_/g,"")),stringify(i){const e=Number(i.value);return isFinite(e)?e.toExponential():Lt(i)}},vi={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(i){const e=new J(parseFloat(i.replace(/_/g,""))),t=i.indexOf(".");if(t!==-1){const s=i.substring(t+1).replace(/_/g,"");s[s.length-1]==="0"&&(e.minFractionDigits=s.length)}return e},stringify:Lt},zn=i=>typeof i=="bigint"||Number.isInteger(i);function li(i,e,t,{intAsBigInt:s}){const a=i[0];if((a==="-"||a==="+")&&(e+=1),i=i.substring(e).replace(/_/g,""),s){switch(t){case 2:i=`0b${i}`;break;case 8:i=`0o${i}`;break;case 16:i=`0x${i}`;break}const w=BigInt(i);return a==="-"?BigInt(-1)*w:w}const h=parseInt(i,t);return a==="-"?-1*h:h}function bi(i,e,t){const{value:s}=i;if(zn(s)){const a=s.toString(e);return s<0?"-"+t+a.substr(1):t+a}return Lt(i)}const ci={identify:zn,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(i,e,t)=>li(i,2,2,t),stringify:i=>bi(i,2,"0b")},fi={identify:zn,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(i,e,t)=>li(i,1,8,t),stringify:i=>bi(i,8,"0")},Mi={identify:zn,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(i,e,t)=>li(i,0,10,t),stringify:Lt},wi={identify:zn,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(i,e,t)=>li(i,2,16,t),stringify:i=>bi(i,16,"0x")};class Vn extends Bt{constructor(e){super(e),this.tag=Vn.tag}add(e){let t;O(e)?t=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?t=new gt(e.key,null):t=new gt(e,null),yn(this.items,t.key)||this.items.push(t)}get(e,t){const s=yn(this.items,e);return!t&&O(s)?N(s.key)?s.key.value:s.key:s}set(e,t){if(typeof t!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const s=yn(this.items,e);s&&!t?this.items.splice(this.items.indexOf(s),1):!s&&t&&this.items.push(new gt(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,s){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,s);throw new Error("Set items must all have null values")}static from(e,t,s){const{replacer:a}=s,h=new this(e);if(t&&Symbol.iterator in Object(t))for(let w of t)typeof a=="function"&&(w=a.call(t,w,w)),h.items.push(Wt(w,null,s));return h}}Vn.tag="tag:yaml.org,2002:set";const Qn={collection:"map",identify:i=>i instanceof Set,nodeClass:Vn,default:!1,tag:"tag:yaml.org,2002:set",createNode:(i,e,t)=>Vn.from(i,e,t),resolve(i,e){if(E(i)){if(i.hasAllNullValues(!0))return Object.assign(new Vn,i);e("Set items must all have null values")}else e("Expected a mapping for this tag");return i}};function ei(i,e){const t=i[0],s=t==="-"||t==="+"?i.substring(1):i,a=w=>e?BigInt(w):Number(w),h=s.replace(/_/g,"").split(":").reduce((w,C)=>w*a(60)+a(C),a(0));return t==="-"?a(-1)*h:h}function xi(i){let{value:e}=i,t=w=>w;if(typeof e=="bigint")t=w=>BigInt(w);else if(isNaN(e)||!isFinite(e))return Lt(i);let s="";e<0&&(s="-",e*=t(-1));const a=t(60),h=[e%a];return e<60?h.unshift(0):(e=(e-h[0])/a,h.unshift(e%a),e>=60&&(e=(e-h[0])/a,h.unshift(e))),s+h.map(w=>String(w).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const _i={identify:i=>typeof i=="bigint"||Number.isInteger(i),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(i,e,{intAsBigInt:t})=>ei(i,t),stringify:xi},Ei={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:i=>ei(i,!1),stringify:xi},u={identify:i=>i instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(i){const e=i.match(u.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,t,s,a,h,w,C]=e.map(Number),D=e[7]?Number((e[7]+"00").substr(1,3)):0;let Y=Date.UTC(t,s-1,a,h||0,w||0,C||0,D);const me=e[8];if(me&&me!=="Z"){let M=ei(me,!1);Math.abs(M)<30&&(M*=60),Y-=6e4*M}return new Date(Y)},stringify:({value:i})=>i.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},T=[An,on,Sn,Un,Nn,Kn,ci,fi,Mi,wi,wn,ln,vi,Ct,un,jt,Qn,_i,Ei,u],I=new Map([["core",ge],["failsafe",[An,on,Sn]],["json",ze],["yaml11",T],["yaml-1.1",T]]),z={binary:Ct,bool:Tn,float:Xn,floatExp:Nt,floatNaN:On,floatTime:Ei,int:_e,intHex:Ae,intOct:Q,intTime:_i,map:An,null:Un,omap:un,pairs:jt,seq:on,set:Qn,timestamp:u},ne={"tag:yaml.org,2002:binary":Ct,"tag:yaml.org,2002:omap":un,"tag:yaml.org,2002:pairs":jt,"tag:yaml.org,2002:set":Qn,"tag:yaml.org,2002:timestamp":u};function ee(i,e){let t=I.get(e);if(!t)if(Array.isArray(i))t=[];else{const s=Array.from(I.keys()).filter(a=>a!=="yaml11").map(a=>JSON.stringify(a)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${s} or define customTags array`)}if(Array.isArray(i))for(const s of i)t=t.concat(s);else typeof i=="function"&&(t=i(t.slice()));return t.map(s=>{if(typeof s!="string")return s;const a=z[s];if(a)return a;const h=Object.keys(z).map(w=>JSON.stringify(w)).join(", ");throw new Error(`Unknown custom tag "${s}"; use one of ${h}`)})}const ce=(i,e)=>i.key<e.key?-1:i.key>e.key?1:0;class ie{constructor({compat:e,customTags:t,merge:s,resolveKnownTags:a,schema:h,sortMapEntries:w,toStringDefaults:C}){this.compat=Array.isArray(e)?ee(e,"compat"):e?ee(null,e):null,this.merge=!!s,this.name=typeof h=="string"&&h||"core",this.knownTags=a?ne:{},this.tags=ee(t,this.name),this.toStringOptions=C??null,Object.defineProperty(this,c,{value:An}),Object.defineProperty(this,m,{value:Sn}),Object.defineProperty(this,f,{value:on}),this.sortMapEntries=typeof w=="function"?w:w===!0?ce:null}clone(){const e=Object.create(ie.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}function Ce(i,e){const t=[];let s=e.directives===!0;if(e.directives!==!1&&i.directives){const D=i.directives.toString(i);D?(t.push(D),s=!0):i.directives.docStart&&(s=!0)}s&&t.push("---");const a=pn(i,e),{commentString:h}=a.options;if(i.commentBefore){t.length!==1&&t.unshift("");const D=h(i.commentBefore);t.unshift(ht(D,""))}let w=!1,C=null;if(i.contents){if(k(i.contents)){if(i.contents.spaceBefore&&s&&t.push(""),i.contents.commentBefore){const me=h(i.contents.commentBefore);t.push(ht(me,""))}a.forceBlockIndent=!!i.comment,C=i.contents.comment}const D=C?void 0:()=>w=!0;let Y=lt(i.contents,a,()=>C=null,D);C&&(Y+=ot(Y,"",h(C))),(Y[0]==="|"||Y[0]===">")&&t[t.length-1]==="---"?t[t.length-1]=`--- ${Y}`:t.push(Y)}else t.push(lt(i.contents,a));if(i.directives?.docEnd)if(i.comment){const D=h(i.comment);D.includes(`
82
- `)?(t.push("..."),t.push(ht(D,""))):t.push(`... ${D}`)}else t.push("...");else{let D=i.comment;D&&w&&(D=D.replace(/^\n+/,"")),D&&((!w||C)&&t[t.length-1]!==""&&t.push(""),t.push(ht(h(D),"")))}return t.join(`
83
- `)+`
84
- `}class ve{constructor(e,t,s){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,v,{value:p});let a=null;typeof t=="function"||Array.isArray(t)?a=t:s===void 0&&t&&(s=t,t=void 0);const h=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},s);this.options=h;let{version:w}=h;s?._directives?(this.directives=s._directives.atDocument(),this.directives.yaml.explicit&&(w=this.directives.yaml.version)):this.directives=new Se({version:w}),this.setSchema(w,s),this.contents=e===void 0?null:this.createNode(e,a,s)}clone(){const e=Object.create(ve.prototype,{[v]:{value:p}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=k(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){Ne(this.contents)&&this.contents.add(e)}addIn(e,t){Ne(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const s=Be(this);e.anchor=!t||s.has(t)?ut(t||"a",s):t}return new mt(e.anchor)}createNode(e,t,s){let a;if(typeof t=="function")e=t.call({"":e},"",e),a=t;else if(Array.isArray(t)){const se=Te=>typeof Te=="number"||Te instanceof String||Te instanceof Number,Ee=t.filter(se).map(String);Ee.length>0&&(t=t.concat(Ee)),a=t}else s===void 0&&t&&(s=t,t=void 0);const{aliasDuplicateObjects:h,anchorPrefix:w,flow:C,keepUndefined:D,onTagObj:Y,tag:me}=s??{},{onAnchor:M,setAnchors:G,sourceObjects:V}=et(this,w||"a"),fe={aliasDuplicateObjects:h??!0,keepUndefined:D??!1,onAnchor:M,onTagObj:Y,replacer:a,schema:this.schema,sourceObjects:V},X=Ge(e,me,fe);return C&&B(X)&&(X.flow=!0),G(),X}createPair(e,t,s={}){const a=this.createNode(e,null,s),h=this.createNode(t,null,s);return new gt(a,h)}delete(e){return Ne(this.contents)?this.contents.delete(e):!1}deleteIn(e){return rt(e)?this.contents==null?!1:(this.contents=null,!0):Ne(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return B(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return rt(e)?!t&&N(this.contents)?this.contents.value:this.contents:B(this.contents)?this.contents.getIn(e,t):void 0}has(e){return B(this.contents)?this.contents.has(e):!1}hasIn(e){return rt(e)?this.contents!==void 0:B(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=Ze(this.schema,[e],t):Ne(this.contents)&&this.contents.set(e,t)}setIn(e,t){rt(e)?this.contents=t:this.contents==null?this.contents=Ze(this.schema,Array.from(e),t):Ne(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e=="number"&&(e=String(e));let s;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Se({version:"1.1"}),s={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new Se({version:e}),s={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,s=null;break;default:{const a=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${a}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(s)this.schema=new ie(Object.assign(s,t));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:s,maxAliasCount:a,onAnchor:h,reviver:w}={}){const C={anchors:new Map,doc:this,keep:!e,mapAsMap:s===!0,mapKeyWarned:!1,maxAliasCount:typeof a=="number"?a:100},D=pt(this.contents,t??"",C);if(typeof h=="function")for(const{count:Y,res:me}of C.anchors.values())h(me,Y);return typeof w=="function"?dt(w,{"":D},"",D):D}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return Ce(this,e)}}function Ne(i){if(B(i))return!0;throw new Error("Expected a YAML collection as document contents")}class Ie extends Error{constructor(e,t,s,a){super(),this.name=e,this.code=s,this.message=a,this.pos=t}}class Me extends Ie{constructor(e,t,s){super("YAMLParseError",e,t,s)}}class qe extends Ie{constructor(e,t,s){super("YAMLWarning",e,t,s)}}const nt=(i,e)=>t=>{if(t.pos[0]===-1)return;t.linePos=t.pos.map(C=>e.linePos(C));const{line:s,col:a}=t.linePos[0];t.message+=` at line ${s}, column ${a}`;let h=a-1,w=i.substring(e.lineStarts[s-1],e.lineStarts[s]).replace(/[\n\r]+$/,"");if(h>=60&&w.length>80){const C=Math.min(h-39,w.length-79);w="\u2026"+w.substring(C),h-=C-1}if(w.length>80&&(w=w.substring(0,79)+"\u2026"),s>1&&/^ *$/.test(w.substring(0,h))){let C=i.substring(e.lineStarts[s-2],e.lineStarts[s-1]);C.length>80&&(C=C.substring(0,79)+`\u2026
85
- `),w=C+w}if(/[^ ]/.test(w)){let C=1;const D=t.linePos[1];D&&D.line===s&&D.col>a&&(C=Math.max(1,Math.min(D.col-a,80-h)));const Y=" ".repeat(h)+"^".repeat(C);t.message+=`:
86
-
87
- ${w}
88
- ${Y}
89
- `}};function st(i,{flow:e,indicator:t,next:s,offset:a,onError:h,parentIndent:w,startOnNewline:C}){let D=!1,Y=C,me=C,M="",G="",V=!1,fe=!1,X=!1,se=null,Ee=null,Te=null,Le=null,We=null,Ve=null;for(const Re of i)switch(X&&(Re.type!=="space"&&Re.type!=="newline"&&Re.type!=="comma"&&h(Re.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),X=!1),se&&(Y&&Re.type!=="comment"&&Re.type!=="newline"&&h(se,"TAB_AS_INDENT","Tabs are not allowed as indentation"),se=null),Re.type){case"space":!e&&(t!=="doc-start"||s?.type!=="flow-collection")&&Re.source.includes(" ")&&(se=Re),me=!0;break;case"comment":{me||h(Re,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const yt=Re.source.substring(1)||" ";M?M+=G+yt:M=yt,G="",Y=!1;break}case"newline":Y?M?M+=Re.source:D=!0:G+=Re.source,Y=!0,V=!0,(Ee||Te)&&(fe=!0),me=!0;break;case"anchor":Ee&&h(Re,"MULTIPLE_ANCHORS","A node can have at most one anchor"),Re.source.endsWith(":")&&h(Re.offset+Re.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),Ee=Re,Ve===null&&(Ve=Re.offset),Y=!1,me=!1,X=!0;break;case"tag":{Te&&h(Re,"MULTIPLE_TAGS","A node can have at most one tag"),Te=Re,Ve===null&&(Ve=Re.offset),Y=!1,me=!1,X=!0;break}case t:(Ee||Te)&&h(Re,"BAD_PROP_ORDER",`Anchors and tags must be after the ${Re.source} indicator`),We&&h(Re,"UNEXPECTED_TOKEN",`Unexpected ${Re.source} in ${e??"collection"}`),We=Re,Y=t==="seq-item-ind"||t==="explicit-key-ind",me=!1;break;case"comma":if(e){Le&&h(Re,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),Le=Re,Y=!1,me=!1;break}default:h(Re,"UNEXPECTED_TOKEN",`Unexpected ${Re.type} token`),Y=!1,me=!1}const Ue=i[i.length-1],ft=Ue?Ue.offset+Ue.source.length:a;return X&&s&&s.type!=="space"&&s.type!=="newline"&&s.type!=="comma"&&(s.type!=="scalar"||s.source!=="")&&h(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),se&&(Y&&se.indent<=w||s?.type==="block-map"||s?.type==="block-seq")&&h(se,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:Le,found:We,spaceBefore:D,comment:M,hasNewline:V,hasNewlineAfterProp:fe,anchor:Ee,tag:Te,end:ft,start:Ve??ft}}function bt(i){if(!i)return null;switch(i.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(i.source.includes(`
90
- `))return!0;if(i.end){for(const e of i.end)if(e.type==="newline")return!0}return!1;case"flow-collection":for(const e of i.items){for(const t of e.start)if(t.type==="newline")return!0;if(e.sep){for(const t of e.sep)if(t.type==="newline")return!0}if(bt(e.key)||bt(e.value))return!0}return!1;default:return!0}}function it(i,e,t){if(e?.type==="flow-collection"){const s=e.end[0];s.indent===i&&(s.source==="]"||s.source==="}")&&bt(e)&&t(s,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Tt(i,e,t){const{uniqueKeys:s}=i.options;if(s===!1)return!1;const a=typeof s=="function"?s:(h,w)=>h===w||N(h)&&N(w)&&h.value===w.value&&!(h.value==="<<"&&i.schema.merge);return e.some(h=>a(h.key,t))}const St="All mapping items must start at the same column";function Et({composeNode:i,composeEmptyNode:e},t,s,a,h){const w=h?.nodeClass??Bt,C=new w(t.schema);t.atRoot&&(t.atRoot=!1);let D=s.offset,Y=null;for(const me of s.items){const{start:M,key:G,sep:V,value:fe}=me,X=st(M,{indicator:"explicit-key-ind",next:G??V?.[0],offset:D,onError:a,parentIndent:s.indent,startOnNewline:!0}),se=!X.found;if(se){if(G&&(G.type==="block-seq"?a(D,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in G&&G.indent!==s.indent&&a(D,"BAD_INDENT",St)),!X.anchor&&!X.tag&&!V){Y=X.end,X.comment&&(C.comment?C.comment+=`
91
- `+X.comment:C.comment=X.comment);continue}(X.hasNewlineAfterProp||bt(G))&&a(G??M[M.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else X.found?.indent!==s.indent&&a(D,"BAD_INDENT",St);const Ee=X.end,Te=G?i(t,G,X,a):e(t,Ee,M,null,X,a);t.schema.compat&&it(s.indent,G,a),Tt(t,C.items,Te)&&a(Ee,"DUPLICATE_KEY","Map keys must be unique");const Le=st(V??[],{indicator:"map-value-ind",next:fe,offset:Te.range[2],onError:a,parentIndent:s.indent,startOnNewline:!G||G.type==="block-scalar"});if(D=Le.end,Le.found){se&&(fe?.type==="block-map"&&!Le.hasNewline&&a(D,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),t.options.strict&&X.start<Le.found.offset-1024&&a(Te.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const We=fe?i(t,fe,Le,a):e(t,D,V,null,Le,a);t.schema.compat&&it(s.indent,fe,a),D=We.range[2];const Ve=new gt(Te,We);t.options.keepSourceTokens&&(Ve.srcToken=me),C.items.push(Ve)}else{se&&a(Te.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),Le.comment&&(Te.comment?Te.comment+=`
92
- `+Le.comment:Te.comment=Le.comment);const We=new gt(Te);t.options.keepSourceTokens&&(We.srcToken=me),C.items.push(We)}}return Y&&Y<D&&a(Y,"IMPOSSIBLE","Map comment with trailing content"),C.range=[s.offset,D,Y??D],C}function Ut({composeNode:i,composeEmptyNode:e},t,s,a,h){const w=h?.nodeClass??Yt,C=new w(t.schema);t.atRoot&&(t.atRoot=!1);let D=s.offset,Y=null;for(const{start:me,value:M}of s.items){const G=st(me,{indicator:"seq-item-ind",next:M,offset:D,onError:a,parentIndent:s.indent,startOnNewline:!0});if(!G.found)if(G.anchor||G.tag||M)M&&M.type==="block-seq"?a(G.end,"BAD_INDENT","All sequence items must start at the same column"):a(D,"MISSING_CHAR","Sequence item without - indicator");else{Y=G.end,G.comment&&(C.comment=G.comment);continue}const V=M?i(t,M,G,a):e(t,G.end,me,null,G,a);t.schema.compat&&it(s.indent,M,a),D=V.range[2],C.items.push(V)}return C.range=[s.offset,D,Y??D],C}function Mt(i,e,t,s){let a="";if(i){let h=!1,w="";for(const C of i){const{source:D,type:Y}=C;switch(Y){case"space":h=!0;break;case"comment":{t&&!h&&s(C,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const me=D.substring(1)||" ";a?a+=w+me:a=me,w="";break}case"newline":a&&(w+=D),h=!0;break;default:s(C,"UNEXPECTED_TOKEN",`Unexpected ${Y} at node end`)}e+=D.length}}return{comment:a,offset:e}}const cn="Block collections are not allowed within flow collections",fn=i=>i&&(i.type==="block-map"||i.type==="block-seq");function kn({composeNode:i,composeEmptyNode:e},t,s,a,h){const w=s.start.source==="{",C=w?"flow map":"flow sequence",D=h?.nodeClass??(w?Bt:Yt),Y=new D(t.schema);Y.flow=!0;const me=t.atRoot;me&&(t.atRoot=!1);let M=s.offset+s.start.source.length;for(let se=0;se<s.items.length;++se){const Ee=s.items[se],{start:Te,key:Le,sep:We,value:Ve}=Ee,Ue=st(Te,{flow:C,indicator:"explicit-key-ind",next:Le??We?.[0],offset:M,onError:a,parentIndent:s.indent,startOnNewline:!1});if(!Ue.found){if(!Ue.anchor&&!Ue.tag&&!We&&!Ve){se===0&&Ue.comma?a(Ue.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${C}`):se<s.items.length-1&&a(Ue.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${C}`),Ue.comment&&(Y.comment?Y.comment+=`
93
- `+Ue.comment:Y.comment=Ue.comment),M=Ue.end;continue}!w&&t.options.strict&&bt(Le)&&a(Le,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(se===0)Ue.comma&&a(Ue.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${C}`);else if(Ue.comma||a(Ue.start,"MISSING_CHAR",`Missing , between ${C} items`),Ue.comment){let ft="";e:for(const Re of Te)switch(Re.type){case"comma":case"space":break;case"comment":ft=Re.source.substring(1);break e;default:break e}if(ft){let Re=Y.items[Y.items.length-1];O(Re)&&(Re=Re.value??Re.key),Re.comment?Re.comment+=`
94
- `+ft:Re.comment=ft,Ue.comment=Ue.comment.substring(ft.length+1)}}if(!w&&!We&&!Ue.found){const ft=Ve?i(t,Ve,Ue,a):e(t,Ue.end,We,null,Ue,a);Y.items.push(ft),M=ft.range[2],fn(Ve)&&a(ft.range,"BLOCK_IN_FLOW",cn)}else{const ft=Ue.end,Re=Le?i(t,Le,Ue,a):e(t,ft,Te,null,Ue,a);fn(Le)&&a(Re.range,"BLOCK_IN_FLOW",cn);const yt=st(We??[],{flow:C,indicator:"map-value-ind",next:Ve,offset:Re.range[2],onError:a,parentIndent:s.indent,startOnNewline:!1});if(yt.found){if(!w&&!Ue.found&&t.options.strict){if(We)for(const Kt of We){if(Kt===yt.found)break;if(Kt.type==="newline"){a(Kt,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}Ue.start<yt.found.offset-1024&&a(yt.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else Ve&&("source"in Ve&&Ve.source&&Ve.source[0]===":"?a(Ve,"MISSING_CHAR",`Missing space after : in ${C}`):a(yt.start,"MISSING_CHAR",`Missing , or : between ${C} items`));const Fn=Ve?i(t,Ve,yt,a):yt.found?e(t,yt.end,We,null,yt,a):null;Fn?fn(Ve)&&a(Fn.range,"BLOCK_IN_FLOW",cn):yt.comment&&(Re.comment?Re.comment+=`
95
- `+yt.comment:Re.comment=yt.comment);const Ci=new gt(Re,Fn);if(t.options.keepSourceTokens&&(Ci.srcToken=Ee),w){const Kt=Y;Tt(t,Kt.items,Re)&&a(ft,"DUPLICATE_KEY","Map keys must be unique"),Kt.items.push(Ci)}else{const Kt=new Bt(t.schema);Kt.flow=!0,Kt.items.push(Ci),Y.items.push(Kt)}M=Fn?Fn.range[2]:yt.end}}const G=w?"}":"]",[V,...fe]=s.end;let X=M;if(V&&V.source===G)X=V.offset+V.source.length;else{const se=C[0].toUpperCase()+C.substring(1),Ee=me?`${se} must end with a ${G}`:`${se} in block collection must be sufficiently indented and end with a ${G}`;a(M,me?"MISSING_CHAR":"BAD_INDENT",Ee),V&&V.source.length!==1&&fe.unshift(V)}if(fe.length>0){const se=Mt(fe,X,t.options.strict,a);se.comment&&(Y.comment?Y.comment+=`
96
- `+se.comment:Y.comment=se.comment),Y.range=[s.offset,X,se.offset]}else Y.range=[s.offset,X,X];return Y}function qt(i,e,t,s,a,h){const w=t.type==="block-map"?Et(i,e,t,s,h):t.type==="block-seq"?Ut(i,e,t,s,h):kn(i,e,t,s,h),C=w.constructor;return a==="!"||a===C.tagName?(w.tag=C.tagName,w):(a&&(w.tag=a),w)}function en(i,e,t,s,a){const h=s?e.directives.tagName(s.source,M=>a(s,"TAG_RESOLVE_FAILED",M)):null,w=t.type==="block-map"?"map":t.type==="block-seq"?"seq":t.start.source==="{"?"map":"seq";if(!s||!h||h==="!"||h===Bt.tagName&&w==="map"||h===Yt.tagName&&w==="seq"||!w)return qt(i,e,t,a,h);let C=e.schema.tags.find(M=>M.tag===h&&M.collection===w);if(!C){const M=e.schema.knownTags[h];if(M&&M.collection===w)e.schema.tags.push(Object.assign({},M,{default:!1})),C=M;else return M?.collection?a(s,"BAD_COLLECTION_TYPE",`${M.tag} used for ${w} collection, but expects ${M.collection}`,!0):a(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${h}`,!0),qt(i,e,t,a,h)}const D=qt(i,e,t,a,h,C),Y=C.resolve?.(D,M=>a(s,"TAG_RESOLVE_FAILED",M),e.options)??D,me=k(Y)?Y:new J(Y);return me.range=D.range,me.tag=h,C?.format&&(me.format=C.format),me}function Ht(i,e,t){const s=e.offset,a=Je(e,i.options.strict,t);if(!a)return{value:"",type:null,comment:"",range:[s,s,s]};const h=a.mode===">"?J.BLOCK_FOLDED:J.BLOCK_LITERAL,w=e.source?ct(e.source):[];let C=w.length;for(let X=w.length-1;X>=0;--X){const se=w[X][1];if(se===""||se==="\r")C=X;else break}if(C===0){const X=a.chomp==="+"&&w.length>0?`
97
- `.repeat(Math.max(1,w.length-1)):"";let se=s+a.length;return e.source&&(se+=e.source.length),{value:X,type:h,comment:a.comment,range:[s,se,se]}}let D=e.indent+a.indent,Y=e.offset+a.length,me=0;for(let X=0;X<C;++X){const[se,Ee]=w[X];if(Ee===""||Ee==="\r")a.indent===0&&se.length>D&&(D=se.length);else{se.length<D&&t(Y+se.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),a.indent===0&&(D=se.length),me=X,D===0&&!i.atRoot&&t(Y,"BAD_INDENT","Block scalar values in collections must be indented");break}Y+=se.length+Ee.length+1}for(let X=w.length-1;X>=C;--X)w[X][0].length>D&&(C=X+1);let M="",G="",V=!1;for(let X=0;X<me;++X)M+=w[X][0].slice(D)+`
98
- `;for(let X=me;X<C;++X){let[se,Ee]=w[X];Y+=se.length+Ee.length+1;const Te=Ee[Ee.length-1]==="\r";if(Te&&(Ee=Ee.slice(0,-1)),Ee&&se.length<D){const We=`Block scalar lines must not be less indented than their ${a.indent?"explicit indentation indicator":"first line"}`;t(Y-Ee.length-(Te?2:1),"BAD_INDENT",We),se=""}h===J.BLOCK_LITERAL?(M+=G+se.slice(D)+Ee,G=`
99
- `):se.length>D||Ee[0]===" "?(G===" "?G=`
100
- `:!V&&G===`
101
- `&&(G=`
102
-
103
- `),M+=G+se.slice(D)+Ee,G=`
104
- `,V=!0):Ee===""?G===`
105
- `?M+=`
106
- `:G=`
107
- `:(M+=G+Ee,G=" ",V=!1)}switch(a.chomp){case"-":break;case"+":for(let X=C;X<w.length;++X)M+=`
108
- `+w[X][0].slice(D);M[M.length-1]!==`
109
- `&&(M+=`
110
- `);break;default:M+=`
111
- `}const fe=s+a.length+e.source.length;return{value:M,type:h,comment:a.comment,range:[s,fe,fe]}}function Je({offset:i,props:e},t,s){if(e[0].type!=="block-scalar-header")return s(e[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:a}=e[0],h=a[0];let w=0,C="",D=-1;for(let G=1;G<a.length;++G){const V=a[G];if(!C&&(V==="-"||V==="+"))C=V;else{const fe=Number(V);!w&&fe?w=fe:D===-1&&(D=i+G)}}D!==-1&&s(D,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${a}`);let Y=!1,me="",M=a.length;for(let G=1;G<e.length;++G){const V=e[G];switch(V.type){case"space":Y=!0;case"newline":M+=V.source.length;break;case"comment":t&&!Y&&s(V,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),M+=V.source.length,me=V.source.substring(1);break;case"error":s(V,"UNEXPECTED_TOKEN",V.message),M+=V.source.length;break;default:{const fe=`Unexpected token in block scalar header: ${V.type}`;s(V,"UNEXPECTED_TOKEN",fe);const X=V.source;X&&typeof X=="string"&&(M+=X.length)}}}return{mode:h,indent:w,chomp:C,comment:me,length:M}}function ct(i){const e=i.split(/\n( *)/),t=e[0],s=t.match(/^( *)/),h=[s?.[1]?[s[1],t.slice(s[1].length)]:["",t]];for(let w=1;w<e.length;w+=2)h.push([e[w],e[w+1]]);return h}function In(i,e,t){const{offset:s,type:a,source:h,end:w}=i;let C,D;const Y=(G,V,fe)=>t(s+G,V,fe);switch(a){case"scalar":C=J.PLAIN,D=Cn(h,Y);break;case"single-quoted-scalar":C=J.QUOTE_SINGLE,D=Wn(h,Y);break;case"double-quoted-scalar":C=J.QUOTE_DOUBLE,D=ti(h,Y);break;default:return t(i,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${a}`),{value:"",type:null,comment:"",range:[s,s+h.length,s+h.length]}}const me=s+h.length,M=Mt(w,me,e,t);return{value:D,type:C,comment:M.comment,range:[s,me,M.offset]}}function Cn(i,e){let t="";switch(i[0]){case" ":t="a tab character";break;case",":t="flow indicator character ,";break;case"%":t="directive indicator character %";break;case"|":case">":{t=`block scalar indicator ${i[0]}`;break}case"@":case"`":{t=`reserved character ${i[0]}`;break}}return t&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${t}`),Mn(i)}function Wn(i,e){return(i[i.length-1]!=="'"||i.length===1)&&e(i.length,"MISSING_CHAR","Missing closing 'quote"),Mn(i.slice(1,-1)).replace(/''/g,"'")}function Mn(i){let e,t;try{e=new RegExp(`(.*?)(?<![ ])[ ]*\r?
112
- `,"sy"),t=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
113
- `,"sy")}catch{e=/(.*?)[ \t]*\r?\n/sy,t=/[ \t]*(.*?)[ \t]*\r?\n/sy}let s=e.exec(i);if(!s)return i;let a=s[1],h=" ",w=e.lastIndex;for(t.lastIndex=w;s=t.exec(i);)s[1]===""?h===`
114
- `?a+=h:h=`
115
- `:(a+=h+s[1],h=" "),w=t.lastIndex;const C=/[ \t]*(.*)/sy;return C.lastIndex=w,s=C.exec(i),a+h+(s?.[1]??"")}function ti(i,e){let t="";for(let s=1;s<i.length-1;++s){const a=i[s];if(!(a==="\r"&&i[s+1]===`
116
- `))if(a===`
117
- `){const{fold:h,offset:w}=ni(i,s);t+=h,s=w}else if(a==="\\"){let h=i[++s];const w=ii[h];if(w)t+=w;else if(h===`
118
- `)for(h=i[s+1];h===" "||h===" ";)h=i[++s+1];else if(h==="\r"&&i[s+1]===`
119
- `)for(h=i[++s+1];h===" "||h===" ";)h=i[++s+1];else if(h==="x"||h==="u"||h==="U"){const C={x:2,u:4,U:8}[h];t+=si(i,s+1,C,e),s+=C}else{const C=i.substr(s-1,2);e(s-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${C}`),t+=C}}else if(a===" "||a===" "){const h=s;let w=i[s+1];for(;w===" "||w===" ";)w=i[++s+1];w!==`
120
- `&&!(w==="\r"&&i[s+2]===`
121
- `)&&(t+=s>h?i.slice(h,s+1):a)}else t+=a}return(i[i.length-1]!=='"'||i.length===1)&&e(i.length,"MISSING_CHAR",'Missing closing "quote'),t}function ni(i,e){let t="",s=i[e+1];for(;(s===" "||s===" "||s===`
122
- `||s==="\r")&&!(s==="\r"&&i[e+2]!==`
123
- `);)s===`
124
- `&&(t+=`
125
- `),e+=1,s=i[e+1];return t||(t=" "),{fold:t,offset:e}}const ii={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
126
- `,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function si(i,e,t,s){const a=i.substr(e,t),w=a.length===t&&/^[0-9a-fA-F]+$/.test(a)?parseInt(a,16):NaN;if(isNaN(w)){const C=i.substr(e-2,t+2);return s(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${C}`),C}return String.fromCodePoint(w)}function ri(i,e,t,s){const{value:a,type:h,comment:w,range:C}=e.type==="block-scalar"?Ht(i,e,s):In(e,i.options.strict,s),D=t?i.directives.tagName(t.source,M=>s(t,"TAG_RESOLVE_FAILED",M)):null,Y=t&&D?hi(i.schema,a,D,t,s):e.type==="scalar"?xn(i,a,e,s):i.schema[m];let me;try{const M=Y.resolve(a,G=>s(t??e,"TAG_RESOLVE_FAILED",G),i.options);me=N(M)?M:new J(M)}catch(M){const G=M instanceof Error?M.message:String(M);s(t??e,"TAG_RESOLVE_FAILED",G),me=new J(a)}return me.range=C,me.source=a,h&&(me.type=h),D&&(me.tag=D),Y.format&&(me.format=Y.format),w&&(me.comment=w),me}function hi(i,e,t,s,a){if(t==="!")return i[m];const h=[];for(const C of i.tags)if(!C.collection&&C.tag===t)if(C.default&&C.test)h.push(C);else return C;for(const C of h)if(C.test?.test(e))return C;const w=i.knownTags[t];return w&&!w.collection?(i.tags.push(Object.assign({},w,{default:!1,test:void 0})),w):(a(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${t}`,t!=="tag:yaml.org,2002:str"),i[m])}function xn({directives:i,schema:e},t,s,a){const h=e.tags.find(w=>w.default&&w.test?.test(t))||e[m];if(e.compat){const w=e.compat.find(C=>C.default&&C.test?.test(t))??e[m];if(h.tag!==w.tag){const C=i.tagString(h.tag),D=i.tagString(w.tag),Y=`Value may be parsed as either ${C} or ${D}`;a(s,"TAG_RESOLVE_FAILED",Y,!0)}}return h}function di(i,e,t){if(e){t===null&&(t=e.length);for(let s=t-1;s>=0;--s){let a=e[s];switch(a.type){case"space":case"comment":case"newline":i-=a.source.length;continue}for(a=e[++s];a?.type==="space";)i+=a.source.length,a=e[++s];break}}return i}const pi={composeNode:oi,composeEmptyNode:Zn};function oi(i,e,t,s){const{spaceBefore:a,comment:h,anchor:w,tag:C}=t;let D,Y=!0;switch(e.type){case"alias":D=Ai(i,e,s),(w||C)&&s(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":D=ri(i,e,C,s),w&&(D.anchor=w.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":D=en(pi,i,e,C,s),w&&(D.anchor=w.source.substring(1));break;default:{const me=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;s(e,"UNEXPECTED_TOKEN",me),D=Zn(i,e.offset,void 0,null,t,s),Y=!1}}return w&&D.anchor===""&&s(w,"BAD_ALIAS","Anchor cannot be an empty string"),a&&(D.spaceBefore=!0),h&&(e.type==="scalar"&&e.source===""?D.comment=h:D.commentBefore=h),i.options.keepSourceTokens&&Y&&(D.srcToken=e),D}function Zn(i,e,t,s,{spaceBefore:a,comment:h,anchor:w,tag:C,end:D},Y){const me={type:"scalar",offset:di(e,t,s),indent:-1,source:""},M=ri(i,me,C,Y);return w&&(M.anchor=w.source.substring(1),M.anchor===""&&Y(w,"BAD_ALIAS","Anchor cannot be an empty string")),a&&(M.spaceBefore=!0),h&&(M.comment=h,M.range[2]=D),M}function Ai({options:i},{offset:e,source:t,end:s},a){const h=new mt(t.substring(1));h.source===""&&a(e,"BAD_ALIAS","Alias cannot be an empty string"),h.source.endsWith(":")&&a(e+t.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const w=e+t.length,C=Mt(s,w,i.strict,a);return h.range=[e,w,C.offset],C.comment&&(h.comment=C.comment),h}function Si(i,e,{offset:t,start:s,value:a,end:h},w){const C=Object.assign({_directives:e},i),D=new ve(void 0,C),Y={atRoot:!0,directives:D.directives,options:D.options,schema:D.schema},me=st(s,{indicator:"doc-start",next:a??h?.[0],offset:t,onError:w,parentIndent:0,startOnNewline:!0});me.found&&(D.directives.docStart=!0,a&&(a.type==="block-map"||a.type==="block-seq")&&!me.hasNewline&&w(me.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),D.contents=a?oi(Y,a,me,w):Zn(Y,me.end,s,null,me,w);const M=D.contents.range[2],G=Mt(h,M,!1,w);return G.comment&&(D.comment=G.comment),D.range=[t,M,G.offset],D}function mi(i){if(typeof i=="number")return[i,i+1];if(Array.isArray(i))return i.length===2?i:[i[0],i[1]];const{offset:e,source:t}=i;return[e,e+(typeof t=="string"?t.length:1)]}function Ri(i){let e="",t=!1,s=!1;for(let a=0;a<i.length;++a){const h=i[a];switch(h[0]){case"#":e+=(e===""?"":s?`
127
-
128
- `:`
129
- `)+(h.substring(1)||" "),t=!0,s=!1;break;case"%":i[a+1]?.[0]!=="#"&&(a+=1),t=!1;break;default:t||(s=!0),t=!1}}return{comment:e,afterEmptyLine:s}}class Li{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(t,s,a,h)=>{const w=mi(t);h?this.warnings.push(new qe(w,s,a)):this.errors.push(new Me(w,s,a))},this.directives=new Se({version:e.version||"1.2"}),this.options=e}decorate(e,t){const{comment:s,afterEmptyLine:a}=Ri(this.prelude);if(s){const h=e.contents;if(t)e.comment=e.comment?`${e.comment}
130
- ${s}`:s;else if(a||e.directives.docStart||!h)e.commentBefore=s;else if(B(h)&&!h.flow&&h.items.length>0){let w=h.items[0];O(w)&&(w=w.key);const C=w.commentBefore;w.commentBefore=C?`${s}
131
- ${C}`:s}else{const w=h.commentBefore;h.commentBefore=w?`${s}
132
- ${w}`:s}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Ri(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,s=-1){for(const a of e)yield*this.next(a);yield*this.end(t,s)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(t,s,a)=>{const h=mi(e);h[0]+=t,this.onError(h,"BAD_DIRECTIVE",s,a)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const t=Si(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,s=new Me(mi(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(s):this.doc.errors.push(s);break}case"doc-end":{if(!this.doc){const s="Unexpected doc-end without preceding document";this.errors.push(new Me(mi(e),"UNEXPECTED_TOKEN",s));break}this.doc.directives.docEnd=!0;const t=Mt(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){const s=this.doc.comment;this.doc.comment=s?`${s}
133
- ${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new Me(mi(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const s=Object.assign({_directives:this.directives},this.options),a=new ve(void 0,s);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),a.range=[0,t,t],this.decorate(a,!1),yield a}}}function Bn(i,e=!0,t){if(i){const s=(a,h,w)=>{const C=typeof a=="number"?a:Array.isArray(a)?a[0]:a.offset;if(t)t(C,h,w);else throw new Me([C,C+1],h,w)};switch(i.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return In(i,e,s);case"block-scalar":return Ht({options:{strict:e}},i,s)}}return null}function Ki(i,e){const{implicitKey:t=!1,indent:s,inFlow:a=!1,offset:h=-1,type:w="PLAIN"}=e,C=Zt({type:w,value:i},{implicitKey:t,indent:s>0?" ".repeat(s):"",inFlow:a,options:{blockQuote:!0,lineWidth:-1}}),D=e.end??[{type:"newline",offset:-1,indent:s,source:`
134
- `}];switch(C[0]){case"|":case">":{const Y=C.indexOf(`
135
- `),me=C.substring(0,Y),M=C.substring(Y+1)+`
136
- `,G=[{type:"block-scalar-header",offset:h,indent:s,source:me}];return zi(G,D)||G.push({type:"newline",offset:-1,indent:s,source:`
137
- `}),{type:"block-scalar",offset:h,indent:s,props:G,source:M}}case'"':return{type:"double-quoted-scalar",offset:h,indent:s,source:C,end:D};case"'":return{type:"single-quoted-scalar",offset:h,indent:s,source:C,end:D};default:return{type:"scalar",offset:h,indent:s,source:C,end:D}}}function $i(i,e,t={}){let{afterKey:s=!1,implicitKey:a=!1,inFlow:h=!1,type:w}=t,C="indent"in i?i.indent:null;if(s&&typeof C=="number"&&(C+=2),!w)switch(i.type){case"single-quoted-scalar":w="QUOTE_SINGLE";break;case"double-quoted-scalar":w="QUOTE_DOUBLE";break;case"block-scalar":{const Y=i.props[0];if(Y.type!=="block-scalar-header")throw new Error("Invalid block scalar header");w=Y.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:w="PLAIN"}const D=Zt({type:w,value:e},{implicitKey:a||C===null,indent:C!==null&&C>0?" ".repeat(C):"",inFlow:h,options:{blockQuote:!0,lineWidth:-1}});switch(D[0]){case"|":case">":Dn(i,D);break;case'"':Bi(i,D,"double-quoted-scalar");break;case"'":Bi(i,D,"single-quoted-scalar");break;default:Bi(i,D,"scalar")}}function Dn(i,e){const t=e.indexOf(`
138
- `),s=e.substring(0,t),a=e.substring(t+1)+`
139
- `;if(i.type==="block-scalar"){const h=i.props[0];if(h.type!=="block-scalar-header")throw new Error("Invalid block scalar header");h.source=s,i.source=a}else{const{offset:h}=i,w="indent"in i?i.indent:-1,C=[{type:"block-scalar-header",offset:h,indent:w,source:s}];zi(C,"end"in i?i.end:void 0)||C.push({type:"newline",offset:-1,indent:w,source:`
140
- `});for(const D of Object.keys(i))D!=="type"&&D!=="offset"&&delete i[D];Object.assign(i,{type:"block-scalar",indent:w,props:C,source:a})}}function zi(i,e){if(e)for(const t of e)switch(t.type){case"space":case"comment":i.push(t);break;case"newline":return i.push(t),!0}return!1}function Bi(i,e,t){switch(i.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":i.type=t,i.source=e;break;case"block-scalar":{const s=i.props.slice(1);let a=e.length;i.props[0].type==="block-scalar-header"&&(a-=i.props[0].source.length);for(const h of s)h.offset+=a;delete i.props,Object.assign(i,{type:t,source:e,end:s});break}case"block-map":case"block-seq":{const a={type:"newline",offset:i.offset+e.length,indent:i.indent,source:`
141
- `};delete i.items,Object.assign(i,{type:t,source:e,end:[a]});break}default:{const s="indent"in i?i.indent:-1,a="end"in i&&Array.isArray(i.end)?i.end.filter(h=>h.type==="space"||h.type==="comment"||h.type==="newline"):[];for(const h of Object.keys(i))h!=="type"&&h!=="offset"&&delete i[h];Object.assign(i,{type:t,indent:s,source:e,end:a})}}}const Vi=i=>"type"in i?Ti(i):Oi(i);function Ti(i){switch(i.type){case"block-scalar":{let e="";for(const t of i.props)e+=Ti(t);return e+i.source}case"block-map":case"block-seq":{let e="";for(const t of i.items)e+=Oi(t);return e}case"flow-collection":{let e=i.start.source;for(const t of i.items)e+=Oi(t);for(const t of i.end)e+=t.source;return e}case"document":{let e=Oi(i);if(i.end)for(const t of i.end)e+=t.source;return e}default:{let e=i.source;if("end"in i&&i.end)for(const t of i.end)e+=t.source;return e}}}function Oi({start:i,key:e,sep:t,value:s}){let a="";for(const h of i)a+=h.source;if(e&&(a+=Ti(e)),t)for(const h of t)a+=h.source;return s&&(a+=Ti(s)),a}const Pi=Symbol("break visit"),Ni=Symbol("skip children"),Di=Symbol("remove item");function Xt(i,e){"type"in i&&i.type==="document"&&(i={start:i.start,value:i.value}),ki(Object.freeze([]),i,e)}Xt.BREAK=Pi,Xt.SKIP=Ni,Xt.REMOVE=Di,Xt.itemAtPath=(i,e)=>{let t=i;for(const[s,a]of e){const h=t?.[s];if(h&&"items"in h)t=h.items[a];else return}return t},Xt.parentCollection=(i,e)=>{const t=Xt.itemAtPath(i,e.slice(0,-1)),s=e[e.length-1][0],a=t?.[s];if(a&&"items"in a)return a;throw new Error("Parent collection not found")};function ki(i,e,t){let s=t(e,i);if(typeof s=="symbol")return s;for(const a of["key","value"]){const h=e[a];if(h&&"items"in h){for(let w=0;w<h.items.length;++w){const C=ki(Object.freeze(i.concat([[a,w]])),h.items[w],t);if(typeof C=="number")w=C-1;else{if(C===Pi)return Pi;C===Di&&(h.items.splice(w,1),w-=1)}}typeof s=="function"&&a==="key"&&(s=s(e,i))}}return typeof s=="function"?s(e,i):s}const Ii="\uFEFF",ai="",Gn="",gi="",Wi=i=>!!i&&"items"in i,Fi=i=>!!i&&(i.type==="scalar"||i.type==="single-quoted-scalar"||i.type==="double-quoted-scalar"||i.type==="block-scalar");function Gi(i){switch(i){case Ii:return"<BOM>";case ai:return"<DOC>";case Gn:return"<FLOW_END>";case gi:return"<SCALAR>";default:return JSON.stringify(i)}}function ji(i){switch(i){case Ii:return"byte-order-mark";case ai:return"doc-mode";case Gn:return"flow-error-end";case gi:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
142
- `:case`\r
143
- `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(i[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function hn(i){switch(i){case void 0:case" ":case`
144
- `:case"\r":case" ":return!0;default:return!1}}const Ui=new Set("0123456789ABCDEFabcdef"),o=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),b=new Set(",[]{}"),S=new Set(` ,[]{}
145
- \r `),R=i=>!i||S.has(i);class K{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if(typeof e!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let s=this.next??"stream";for(;s&&(t||this.hasChars(1));)s=yield*this.parseNext(s)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===" "||t===" ";)t=this.buffer[++e];return!t||t==="#"||t===`
146
- `?!0:t==="\r"?this.buffer[e+1]===`
147
- `:!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let s=0;for(;t===" ";)t=this.buffer[++s+e];if(t==="\r"){const a=this.buffer[s+e+1];if(a===`
148
- `||!a&&!this.atEnd)return e+s+1}return t===`
149
- `||s>=this.indentNext||!t&&!this.atEnd?e+s:-1}if(t==="-"||t==="."){const s=this.buffer.substr(e,3);if((s==="---"||s==="...")&&hn(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!="number"||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
150
- `,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]==="\r"&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext("stream");if(e[0]===Ii&&(yield*this.pushCount(1),e=e.substring(1)),e[0]==="%"){let t=e.length,s=e.indexOf("#");for(;s!==-1;){const h=e[s-1];if(h===" "||h===" "){t=s-1;break}else s=e.indexOf("#",s+1)}for(;;){const h=e[t-1];if(h===" "||h===" ")t-=1;else break}const a=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-a),this.pushNewline(),"stream"}if(this.atLineEnd()){const t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield ai,yield*this.parseLineStart()}*parseLineStart(){const e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if(e==="-"||e==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const t=this.peek(3);if(t==="---"&&hn(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if(t==="..."&&hn(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!hn(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&hn(t)){const s=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=s,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(R),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,s=-1;do e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=s=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);const a=this.getLine();if(a===null)return this.setNext("flow");if((s!==-1&&s<this.indentNext&&a[0]!=="#"||s===0&&(a.startsWith("---")||a.startsWith("..."))&&hn(a[3]))&&!(s===this.indentNext-1&&this.flowLevel===1&&(a[0]==="]"||a[0]==="}")))return this.flowLevel=0,yield Gn,yield*this.parseLineStart();let h=0;for(;a[h]===",";)h+=yield*this.pushCount(1),h+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(h+=yield*this.pushIndicators(),a[h]){case void 0:return"flow";case"#":return yield*this.pushCount(a.length-h),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(R),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const w=this.charAt(1);if(this.flowKey||hn(w)||w===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const e=this.charAt(0);let t=this.buffer.indexOf(e,this.pos+1);if(e==="'")for(;t!==-1&&this.buffer[t+1]==="'";)t=this.buffer.indexOf("'",t+2);else for(;t!==-1;){let h=0;for(;this.buffer[t-1-h]==="\\";)h+=1;if(h%2===0)break;t=this.buffer.indexOf('"',t+1)}const s=this.buffer.substring(0,t);let a=s.indexOf(`
151
- `,this.pos);if(a!==-1){for(;a!==-1;){const h=this.continueScalar(a+1);if(h===-1)break;a=s.indexOf(`
152
- `,h)}a!==-1&&(t=a-(s[a-1]==="\r"?2:1))}if(t===-1){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){const t=this.buffer[++e];if(t==="+")this.blockScalarKeep=!0;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil(t=>hn(t)||t==="#")}*parseBlockScalar(){let e=this.pos-1,t=0,s;e:for(let h=this.pos;s=this.buffer[h];++h)switch(s){case" ":t+=1;break;case`
153
- `:e=h,t=0;break;case"\r":{const w=this.buffer[h+1];if(!w&&!this.atEnd)return this.setNext("block-scalar");if(w===`
154
- `)break}default:break e}if(!s&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=t:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const h=this.continueScalar(e+1);if(h===-1)break;e=this.buffer.indexOf(`
155
- `,h)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let a=e+1;for(s=this.buffer[a];s===" ";)s=this.buffer[++a];if(s===" "){for(;s===" "||s===" "||s==="\r"||s===`
156
- `;)s=this.buffer[++a];e=a-1}else if(!this.blockScalarKeep)do{let h=e-1,w=this.buffer[h];w==="\r"&&(w=this.buffer[--h]);const C=h;for(;w===" ";)w=this.buffer[--h];if(w===`
157
- `&&h>=this.pos&&h+1+t>C)e=h;else break}while(!0);return yield gi,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t=this.pos-1,s=this.pos-1,a;for(;a=this.buffer[++s];)if(a===":"){const h=this.buffer[s+1];if(hn(h)||e&&b.has(h))break;t=s}else if(hn(a)){let h=this.buffer[s+1];if(a==="\r"&&(h===`
158
- `?(s+=1,a=`
159
- `,h=this.buffer[s+1]):t=s),h==="#"||e&&b.has(h))break;if(a===`
160
- `){const w=this.continueScalar(s+1);if(w===-1)break;s=Math.max(s,w-2)}}else{if(e&&b.has(a))break;t=s}return!a&&!this.atEnd?this.setNext("plain-scalar"):(yield gi,yield*this.pushToIndex(t+1,!0),e?"flow":"doc")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){const s=this.buffer.slice(this.pos,e);return s?(yield s,this.pos+=s.length,s.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(R))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0,t=this.charAt(1);if(hn(t)||e&&b.has(t))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,t=this.buffer[e];for(;!hn(t)&&t!==">";)t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,!1)}else{let e=this.pos+1,t=this.buffer[e];for(;t;)if(o.has(t))t=this.buffer[++e];else if(t==="%"&&Ui.has(this.buffer[e+1])&&Ui.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return e===`
161
- `?yield*this.pushCount(1):e==="\r"&&this.charAt(1)===`
162
- `?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,s;do s=this.buffer[++t];while(s===" "||e&&s===" ");const a=t-this.pos;return a>0&&(yield this.buffer.substr(this.pos,a),this.pos=t),a}*pushUntil(e){let t=this.pos,s=this.buffer[t];for(;!e(s);)s=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}class Z{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,s=this.lineStarts.length;for(;t<s;){const h=t+s>>1;this.lineStarts[h]<e?t=h+1:s=h}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};const a=this.lineStarts[t-1];return{line:t,col:e-a+1}}}}function H(i,e){for(let t=0;t<i.length;++t)if(i[t].type===e)return!0;return!1}function ae(i){for(let e=0;e<i.length;++e)switch(i[e].type){case"space":case"comment":case"newline":break;default:return e}return-1}function be(i){switch(i?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function we(i){switch(i.type){case"document":return i.start;case"block-map":{const e=i.items[i.items.length-1];return e.sep??e.start}case"block-seq":return i.items[i.items.length-1].start;default:return[]}}function xe(i){if(i.length===0)return[];let e=i.length;e:for(;--e>=0;)switch(i[e].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;i[++e]?.type==="space";);return i.splice(e,i.length)}function Ke(i){if(i.start.type==="flow-seq-start")for(const e of i.items)e.sep&&!e.value&&!H(e.start,"explicit-key-ind")&&!H(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,be(e.value)?e.value.end?Array.prototype.push.apply(e.value.end,e.sep):e.value.end=e.sep:Array.prototype.push.apply(e.start,e.sep),delete e.sep)}class je{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new K,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const s of this.lexer.lex(e,t))yield*this.next(s);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}const t=ji(e);if(t)if(t==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&e[0]===" "&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{const s=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:s,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(!t)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield t;else{const s=this.peek(1);switch(t.type==="block-scalar"?t.indent="indent"in s?s.indent:0:t.type==="flow-collection"&&s.type==="document"&&(t.indent=0),t.type==="flow-collection"&&Ke(t),s.type){case"document":s.value=t;break;case"block-scalar":s.props.push(t);break;case"block-map":{const a=s.items[s.items.length-1];if(a.value){s.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(a.sep)a.value=t;else{Object.assign(a,{key:t,sep:[]}),this.onKeyLine=!a.explicitKey;return}break}case"block-seq":{const a=s.items[s.items.length-1];a.value?s.items.push({start:[],value:t}):a.value=t;break}case"flow-collection":{const a=s.items[s.items.length-1];!a||a.value?s.items.push({start:[],key:t,sep:[]}):a.sep?a.value=t:Object.assign(a,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((s.type==="document"||s.type==="block-map"||s.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){const a=t.items[t.items.length-1];a&&!a.sep&&!a.value&&a.start.length>0&&ae(a.start)===-1&&(t.indent===0||a.start.every(h=>h.type!=="comment"||h.indent<t.indent))&&(s.type==="document"?s.end=a.start:s.items.push({start:a.start}),t.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const e={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":{ae(e.start)!==-1?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}const t=this.startBlockValue(e);t?this.stack.push(t):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type==="map-value-ind"){const t=we(this.peek(2)),s=xe(t);let a;e.end?(a=e.end,a.push(this.sourceToken),delete e.end):a=[this.sourceToken];const h={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:s,key:e,sep:a}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=h}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let t=this.source.indexOf(`
163
- `)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
164
- `,t)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,t.value){const s="end"in t.value?t.value.end:void 0;(Array.isArray(s)?s[s.length-1]:void 0)?.type==="comment"?s?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){const a=e.items[e.items.length-2]?.value?.end;if(Array.isArray(a)){Array.prototype.push.apply(a,t.start),a.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const s=!this.onKeyLine&&this.indent===e.indent,a=s&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind";let h=[];if(a&&t.sep&&!t.value){const w=[];for(let C=0;C<t.sep.length;++C){const D=t.sep[C];switch(D.type){case"newline":w.push(C);break;case"space":break;case"comment":D.indent>e.indent&&(w.length=0);break;default:w.length=0}}w.length>=2&&(h=t.sep.splice(w[1]))}switch(this.type){case"anchor":case"tag":a||t.value?(h.push(this.sourceToken),e.items.push({start:h}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"explicit-key-ind":!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):a||t.value?(h.push(this.sourceToken),e.items.push({start:h,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(t.explicitKey)if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(H(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:h,key:null,sep:[this.sourceToken]}]});else if(be(t.key)&&!H(t.sep,"newline")){const w=xe(t.start),C=t.key,D=t.sep;D.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:w,key:C,sep:D}]})}else h.length>0?t.sep=t.sep.concat(h,this.sourceToken):t.sep.push(this.sourceToken);else if(H(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{const w=xe(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:w,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||a?e.items.push({start:h,key:null,sep:[this.sourceToken]}):H(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const w=this.flowScalar(this.type);a||t.value?(e.items.push({start:h,key:w,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(w):(Object.assign(t,{key:w,sep:[]}),this.onKeyLine=!0);return}default:{const w=this.startBlockValue(e);if(w){s&&w.type!=="block-seq"&&e.items.push({start:h}),this.stack.push(w);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const s="end"in t.value?t.value.end:void 0;(Array.isArray(s)?s[s.length-1]:void 0)?.type==="comment"?s?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const a=e.items[e.items.length-2]?.value?.end;if(Array.isArray(a)){Array.prototype.push.apply(a,t.start),a.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;t.value||H(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){const s=this.startBlockValue(e);if(s){this.stack.push(s);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let s;do yield*this.pop(),s=this.peek(1);while(s&&s.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case"map-value-ind":!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const a=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:a,sep:[]}):t.sep?this.stack.push(a):Object.assign(t,{key:a,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const s=this.startBlockValue(e);s?this.stack.push(s):(yield*this.pop(),yield*this.step())}else{const s=this.peek(2);if(s.type==="block-map"&&(this.type==="map-value-ind"&&s.indent===e.indent||this.type==="newline"&&!s.items[s.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&s.type!=="flow-collection"){const a=we(s),h=xe(a);Ke(e);const w=e.end.splice(1,e.end.length);w.push(this.sourceToken);const C={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:h,key:e,sep:w}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=C}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let t=this.source.indexOf(`
165
- `)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
166
- `,t)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const t=we(e),s=xe(t);return s.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const t=we(e),s=xe(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!=="comment"||this.indent<=t?!1:e.every(s=>s.type==="newline"||s.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function Xe(i){const e=i.prettyErrors!==!1;return{lineCounter:i.lineCounter||e&&new Z||null,prettyErrors:e}}function Jt(i,e={}){const{lineCounter:t,prettyErrors:s}=Xe(e),a=new je(t?.addNewLine),h=new Li(e),w=Array.from(h.compose(a.parse(i)));if(s&&t)for(const C of w)C.errors.forEach(nt(i,t)),C.warnings.forEach(nt(i,t));return w.length>0?w:Object.assign([],{empty:!0},h.streamInfo())}function Ot(i,e={}){const{lineCounter:t,prettyErrors:s}=Xe(e),a=new je(t?.addNewLine),h=new Li(e);let w=null;for(const C of h.compose(a.parse(i),!0,i.length))if(!w)w=C;else if(w.options.logLevel!=="silent"){w.errors.push(new Me(C.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return s&&t&&(w.errors.forEach(nt(i,t)),w.warnings.forEach(nt(i,t))),w}function rn(i,e,t){let s;typeof e=="function"?s=e:t===void 0&&e&&typeof e=="object"&&(t=e);const a=Ot(i,t);if(!a)return null;if(a.warnings.forEach(h=>Pn(a.options.logLevel,h)),a.errors.length>0){if(a.options.logLevel!=="silent")throw a.errors[0];a.errors=[]}return a.toJS(Object.assign({reviver:s},t))}function Qe(i,e,t){let s=null;if(typeof e=="function"||Array.isArray(e)?s=e:t===void 0&&e&&(t=e),typeof t=="string"&&(t=t.length),typeof t=="number"){const a=Math.round(t);t=a<1?void 0:a>8?{indent:8}:{indent:a}}if(i===void 0){const{keepUndefined:a}=t??e??{};if(!a)return}return new ve(i,s,t).toString(t)}const Yn=d}}]);})();
167
-
168
- //# sourceMappingURL=2772.bdf6f4ac.chunk.js.map