From 4a30886755de6a2509bb05716f6c565fdf06cb5b Mon Sep 17 00:00:00 2001 From: CI Builder Date: Fri, 18 Aug 2023 02:40:03 +0000 Subject: [PATCH] Auto deploy --- BUILT.txt | 2 +- _RESOURCE_FILES_ | 1 + shader-libraries/built-in/_libraryIndex.json | 36 ++++++++++- .../built-in/effects/Moires_bad_trip.glsl | 61 +++++++++++++++++++ .../built-in/shaders/BAAAHS_SheepShrooms.glsl | 26 ++++++-- .../built-in/shaders/BAAAHS_WobblyLines.glsl | 19 ++++-- sparklemotion.js | 2 +- sparklemotion.js.map | 2 +- 8 files changed, 135 insertions(+), 14 deletions(-) create mode 100644 shader-libraries/built-in/effects/Moires_bad_trip.glsl diff --git a/BUILT.txt b/BUILT.txt index 9b5ee4478b..558be9905c 100644 --- a/BUILT.txt +++ b/BUILT.txt @@ -1 +1 @@ -Build 2494 at Fri 18 Aug 2023 02:38:27 AM UTC. +Build 2495 at Fri 18 Aug 2023 02:39:57 AM UTC. diff --git a/_RESOURCE_FILES_ b/_RESOURCE_FILES_ index 20cb0bf7b9..ba68427edc 100644 --- a/_RESOURCE_FILES_ +++ b/_RESOURCE_FILES_ @@ -45,6 +45,7 @@ shader-libraries/built-in/effects/Blackout.glsl shader-libraries/built-in/effects/Brightness.glsl shader-libraries/built-in/effects/HSB.glsl shader-libraries/built-in/effects/Heart.glsl +shader-libraries/built-in/effects/Moires_bad_trip.glsl shader-libraries/built-in/effects/Movers On.glsl shader-libraries/built-in/effects/Movers Swirl.glsl shader-libraries/built-in/effects/Ripple.glsl diff --git a/shader-libraries/built-in/_libraryIndex.json b/shader-libraries/built-in/_libraryIndex.json index 532e49724e..0457af7f9f 100644 --- a/shader-libraries/built-in/_libraryIndex.json +++ b/shader-libraries/built-in/_libraryIndex.json @@ -80,6 +80,17 @@ ], "srcFile": "effects/Heart.glsl" }, + { + "id": "moires-bad-trip", + "title": "Moiré's Bad Trip", + "description": "More distortion... I said MORE DISTORTION!", + "lastModifiedMs": 0, + "tags": [ + "@filter", + "@type=mover" + ], + "srcFile": "effects/Moires_bad_trip.glsl" + }, { "id": "movers-swirl", "title": "Movers Swirl Filter", @@ -151,7 +162,10 @@ "title": "Ripple", "description": "It's wobbly!", "lastModifiedMs": 0, - "tags": [], + "tags": [ + "@filter", + "@type=filter" + ], "srcFile": "effects/Ripple.glsl" }, { @@ -215,6 +229,26 @@ ], "srcFile": "shaders/BAAAHS_Eclipse.glsl" }, + { + "id": "baaahs-sheep-shrooms", + "title": "[\uD83D\uDC11] Sheep Shrooms", + "description": "Pearl took a little bit too much this time", + "lastModifiedMs": 0, + "tags": [ + "@type=paint" + ], + "srcFile": "shaders/BAAAHS_SheepShrooms.glsl" + }, + { + "id": "baaahs-solar-flare", + "title": "[\uD83D\uDC11] Solar Flare", + "description": "The power of the sun... on the ass of my sheep", + "lastModifiedMs": 0, + "tags": [ + "@type=paint" + ], + "srcFile": "shaders/BAAAHS_WobblyLines.glsl" + }, { "id": "baaahs-geometric-colorpulse", "title": "[\uD83D\uDC11] Geometric ColorPulse", diff --git a/shader-libraries/built-in/effects/Moires_bad_trip.glsl b/shader-libraries/built-in/effects/Moires_bad_trip.glsl new file mode 100644 index 0000000000..893be2a86b --- /dev/null +++ b/shader-libraries/built-in/effects/Moires_bad_trip.glsl @@ -0,0 +1,61 @@ +uniform float time; // @@Time +uniform vec2 resolution; // @@Resolution + +uniform float depth; // @@Slider default=0.5 min=0.1 max=0.9 +uniform float iterations; // @@Slider default=20. min=5. max=50. +uniform float exponent; // @@Slider default=1.5 min=-3. max=3. +uniform float beatResponsiveness; // @@Slider default=0.0 min=0.0 max=0.5 +uniform float start_radius; //@@Slider default=2.75 min=1. max = 5. +uniform float squareness; //@@Slider default=30. min=1. max=100. + +struct BeatInfo { + float beat; + float bpm; + float intensity; + float confidence; +}; + +uniform BeatInfo beatInfo; // @@baaahs.BeatLink:BeatInfo + +float tanh_approx(float x) { + float x2 = x*x; + return clamp(x*(27.0 + x2)/(27.0+9.0*x2), -1.0, 1.0); +} + +vec3 offset(float z) { float a = z; vec2 p = -0.1*vec2(1.2, .6)*(vec2(cos(a), sin(a*sqrt(2.0))) + vec2(cos(a*sqrt(0.75)), sin(a*sqrt(0.5)))); return vec3(p, z); } +vec3 doffset(float z) { float eps = 0.05; return 0.5*(offset(z + eps) - offset(z - eps))/(2.0*eps); } +vec3 ddoffset(float z) { float eps = 0.05; return 0.5*(doffset(z + eps) - doffset(z - eps))/(2.0*eps); } + +// @return uv-coordinate +// @param uvIn uv-coordinate +vec2 main(vec2 uvIn) { + float tm = depth*time*beatInfo.bpm/60.0; + vec3 ro = offset(tm); + vec3 dro = doffset(tm); + vec3 ddro = ddoffset(tm); + + vec3 ww = normalize(dro); + vec3 uu = normalize(cross(normalize(vec3(0.0, 1.0, 0.0)+ddro), ww)); + vec3 vv = cross(ww, uu); + + float lp = length(uvIn); + float cosScale = squareness * (1. - beatResponsiveness * beatInfo.intensity); + + const float outer_rad=0.5; + float rdd = start_radius + outer_rad*pow(lp, exponent)*tanh_approx(lp+3.*0.5*(cos(cosScale*uvIn.x)+1.0)*0.5*(cos(cosScale*uvIn.y)+1.0)); + + vec3 rd = normalize(uvIn.x*uu + uvIn.y*vv + rdd*ww); + + float nz_sheep = ro.z / depth; + + float pz_sheep = depth*nz_sheep + depth * iterations; + float pd_sheep = (pz_sheep - ro.z) / rd.z; + vec3 pp_sheep = ro + rd*pd_sheep; + vec3 off_sheep = offset(pp_sheep.z); + vec2 p_sheep = (pp_sheep-off_sheep*vec3(1.0, 1.0, 0.0)).xy; + + float sheep_scale=0.6; + vec2 sheep_xy = p_sheep / sheep_scale; + + return sheep_xy; +} diff --git a/shader-libraries/built-in/shaders/BAAAHS_SheepShrooms.glsl b/shader-libraries/built-in/shaders/BAAAHS_SheepShrooms.glsl index 70355c4bd7..3206676da5 100644 --- a/shader-libraries/built-in/shaders/BAAAHS_SheepShrooms.glsl +++ b/shader-libraries/built-in/shaders/BAAAHS_SheepShrooms.glsl @@ -5,8 +5,8 @@ // Combined with own code from https://www.shadertoy.com/view/7dVBWV // Made on too little sleep lol -#define resolution iResolution -#define time iTime +//#define resolution iResolution +//#define time iTime #define PI 3.141592654 #define PI_2 (0.5*PI) #define TAU (2.0*PI) @@ -22,12 +22,26 @@ #define beatInfo_intensity .5*(smoothstep(1., 0., mod(beatInfo_beat, 1.) / 0.4) + .5*smoothstep(1., 0., (1. - mod(beatInfo_beat, 1.)) / 0.2)) #define beatInfo_confidence 1.0 +uniform float time; // @@Time +uniform vec2 resolution; // @@Resolution + +struct BeatInfo { + float beat; + float bpm; + float intensity; + float confidence; +}; +uniform BeatInfo beatInfo; // @@baaahs.BeatLink:BeatInfo const float FREQ_RANGE = 64.0; const float RADIUS = 0.4; const float BRIGHTNESS = 0.2; const float SPEED = 0.4; + +//uniform float planeDist; // @@Slider default=0.8 min=0.5 max=0.9 +//uniform int furthest; // @@Slider default=6 min=4 max=20 + const float planeDist = 1.0-0.8; const int furthest = 6; const int fadeFrom = max(furthest-4, 0); @@ -53,7 +67,7 @@ float luma(vec3 color) { } float getfrequency(float x) { - return .2 + .3 * beatInfo_intensity;//texture(soundAnalysis.buckets, vec2(floor(x * FREQ_RANGE + 1.0) / FREQ_RANGE, 0.25)).x + 0.06; + return .2 + .3 * beatInfo.intensity;//texture(soundAnalysis.buckets, vec2(floor(x * FREQ_RANGE + 1.0) / FREQ_RANGE, 0.25)).x + 0.06; } float getfrequency_smooth(float x) { @@ -300,20 +314,20 @@ vec3 color(vec3 ww, vec3 uu, vec3 vv, vec3 ro, vec2 p) { float sheep_scale=0.6; vec2 sheep_xy = p_sheep / sheep_scale; - float logoRadius = RADIUS + 0.05 * min((beatInfo_intensity), 1.); + float logoRadius = RADIUS + 0.05 * min((beatInfo.intensity), 1.); float radiusFalloff = 4.; float dR = max(length(p_sheep) - logoRadius - 0.1, 0.); //uv0 /= (1. + exp(-radiusFalloff*dR) * logoRadius / LOGO_RADIUS); if (length(sheep_xy) < 1.2 * logoRadius) { - col *= (1. + 2.*beatInfo_intensity); + col *= (1. + 2.*beatInfo.intensity); } if (length(sheep_xy) < logoRadius) { col *= .05; } col += drawSheep(sheep_xy, logoRadius); - col *= (.95 + .1*beatInfo_intensity); + col *= (.95 + .1*beatInfo.intensity); // To debug cutouts due to transparency // col += cutOut ? vec3(1.0, -1.0, 0.0) : vec3(0.0); diff --git a/shader-libraries/built-in/shaders/BAAAHS_WobblyLines.glsl b/shader-libraries/built-in/shaders/BAAAHS_WobblyLines.glsl index 1430201deb..070fea498e 100644 --- a/shader-libraries/built-in/shaders/BAAAHS_WobblyLines.glsl +++ b/shader-libraries/built-in/shaders/BAAAHS_WobblyLines.glsl @@ -4,8 +4,8 @@ // Built off of https://www.shadertoy.com/view/mdBBRW // Copy-paste this to add a mock beatInfo object to shadertoy for testing purposes -#define time iTime -#define resolution iResolution +//#define time iTime +//#define resolution iResolution #define BPM 125.0 // These will need to be Find-Replaced from beatInfo_beat -> beatInfo.beat #define beatInfo_beat mod(time * (BPM /60.), 4.) @@ -13,6 +13,17 @@ #define beatInfo_intensity (.5*smoothstep(1., 0., mod(beatInfo_beat, 1.) / 0.4) + .5*smoothstep(1., 0., (1. - mod(beatInfo_beat, 1.)) / 0.2)) #define beatInfo_confidence 1.0 +uniform float time; // @@Time +uniform vec2 resolution; // @@Resolution + +struct BeatInfo { + float beat; + float bpm; + float intensity; + float confidence; +}; +uniform BeatInfo beatInfo; // @@baaahs.BeatLink:BeatInfo + const float PI = 3.141592653589; const float LOGO_RADIUS = 0.5; const float LOGO_BRIGHTNESS = 0.2; @@ -30,7 +41,7 @@ vec3 palette (float t) { /* Minified BAAAHS logo code: use pointInSheep(vec2 point, float scale, vec2 offset) to determine if a pixel is in the sheep logo. */ float COORD_SCALE = 0.03; vec2 HEART[187] = vec2[187](vec2(-1.408e1,2.96),vec2(-1.39e1,3.56),vec2(-1.326e1,3.86),vec2(-1.37e1,4.4),vec2(-1.36e1,5.08),vec2(-1.322e1,5.4),vec2(-1.268e1,5.46),vec2(-13,5.92),vec2(-1.292e1,6.52),vec2(-1.242e1,6.92),vec2(-1.174e1,6.84),vec2(-1.198e1,7.4),vec2(-1.174e1,7.98),vec2(-1.126e1,8.22),vec2(-1.054e1,8.02),vec2(-1.058e1,8.66),vec2(-1.012e1,9.14),vec2(-9.6,9.18),vec2(-9.1,8.88),vec2(-9.08,9.42),vec2(-8.62,9.86),vec2(-8,9.86),vec2(-7.54,9.42),vec2(-7.4,9.94),vec2(-6.88,1.028e1),vec2(-6.22,1.014e1),vec2(-5.9,9.56),vec2(-5.46,1.01e1),vec2(-4.78,1.014e1),vec2(-4.42,9.88),vec2(-4.22,9.32),vec2(-3.86,9.8),vec2(-3.2,9.88),vec2(-2.74,9.54),vec2(-2.6,8.88),vec2(-2.02,9.24),vec2(-1.38,9.04),vec2(-1.12,8.6),vec2(-1.14,8.06),vec2(-0.52,8.28),vec2(0,8.02),vec2(0.58,8.16),vec2(1.04,7.96),vec2(1,8.5),vec2(1.28,8.96),vec2(1.98,9.14),vec2(2.54,8.78),vec2(2.52,9.3),vec2(2.98,9.8),vec2(3.6,9.82),vec2(4.12,9.3),vec2(4.22,9.72),vec2(4.62,1.008e1),vec2(5.32,1.006e1),vec2(5.78,9.52),vec2(6.1,1.014e1),vec2(6.74,1.028e1),vec2(7.24,9.98),vec2(7.4,9.44),vec2(7.98,9.92),vec2(8.64,9.82),vec2(8.98,9.4),vec2(8.98,8.88),vec2(9.5,9.24),vec2(1.02e1,9.1),vec2(1.052e1,8.58),vec2(1.046e1,8.04),vec2(1.11e1,8.3),vec2(1.166e1,8.04),vec2(1.188e1,7.38),vec2(1.166e1,6.92),vec2(1.236e1,7),vec2(1.284e1,6.62),vec2(1.294e1,6.06),vec2(1.268e1,5.54),vec2(1.326e1,5.48),vec2(1.368e1,4.92),vec2(1.364e1,4.44),vec2(1.326e1,3.98),vec2(1.378e1,3.82),vec2(1.41e1,3.24),vec2(1.394e1,2.66),vec2(1.34e1,2.36),vec2(1.386e1,2.08),vec2(1.408e1,1.62),vec2(1.388e1,0.94),vec2(1.32e1,0.68),vec2(1.36e1,0.16),vec2(1.356e1,-0.42),vec2(1.322e1,-0.8),vec2(1.262e1,-0.92),vec2(1.302e1,-1.38),vec2(1.294e1,-2.06),vec2(1.244e1,-2.44),vec2(1.188e1,-2.38),vec2(1.212e1,-2.92),vec2(1.198e1,-3.46),vec2(1.152e1,-3.8),vec2(1.094e1,-3.74),vec2(1.114e1,-4.44),vec2(1.08e1,-5.02),vec2(1.036e1,-5.18),vec2(9.86,-5.06),vec2(1.006e1,-5.66),vec2(9.84,-6.16),vec2(9.3,-6.42),vec2(8.72,-6.22),vec2(8.82,-6.92),vec2(8.46,-7.42),vec2(7.88,-7.54),vec2(7.48,-7.38),vec2(7.62,-8),vec2(7.34,-8.48),vec2(6.74,-8.68),vec2(6.26,-8.46),vec2(6.36,-9.14),vec2(5.88,-9.7),vec2(5.34,-9.74),vec2(4.94,-9.48),vec2(4.98,-1.016e1),vec2(4.64,-1.058e1),vec2(4.18,-1.072e1),vec2(3.56,-1.046e1),vec2(3.64,-1.102e1),vec2(3.3,-1.152e1),vec2(2.76,-1.166e1),vec2(2.22,-1.14e1),vec2(2.28,-1.198e1),vec2(1.92,-1.248e1),vec2(1.34,-1.26e1),vec2(0.86,-1.232e1),vec2(0.9,-13),vec2(0.74,-1.328e1),vec2(0.28,-1.354e1),vec2(-0.24,-1.35e1),vec2(-0.6,-1.324e1),vec2(-0.76,-1.242e1),vec2(-1.22,-1.266e1),vec2(-1.84,-1.25e1),vec2(-2.14,-1.204e1),vec2(-2.08,-1.146e1),vec2(-2.62,-1.172e1),vec2(-3.24,-1.152e1),vec2(-3.52,-11),vec2(-3.42,-1.052e1),vec2(-3.9,-1.076e1),vec2(-4.54,-1.062e1),vec2(-4.88,-1.006e1),vec2(-4.8,-9.54),vec2(-5.32,-9.82),vec2(-5.94,-9.64),vec2(-6.24,-9.1),vec2(-6.1,-8.5),vec2(-6.54,-8.74),vec2(-7.18,-8.58),vec2(-7.5,-8.02),vec2(-7.38,-7.44),vec2(-7.82,-7.62),vec2(-8.36,-7.48),vec2(-8.72,-6.88),vec2(-8.56,-6.32),vec2(-9.08,-6.5),vec2(-9.56,-6.36),vec2(-9.94,-5.72),vec2(-9.74,-5.14),vec2(-1.034e1,-5.26),vec2(-1.086e1,-4.96),vec2(-1.104e1,-4.34),vec2(-1.082e1,-3.82),vec2(-1.128e1,-3.92),vec2(-1.168e1,-3.76),vec2(-1.202e1,-3.1),vec2(-1.18e1,-2.48),vec2(-1.242e1,-2.54),vec2(-1.294e1,-2.02),vec2(-1.294e1,-1.46),vec2(-1.256e1,-1.04),vec2(-1.314e1,-0.92),vec2(-1.352e1,-0.46),vec2(-1.352e1,8.0e-2),vec2(-1.31e1,0.54),vec2(-1.382e1,0.78),vec2(-1.406e1,1.5),vec2(-1.382e1,1.98),vec2(-1.336e1,2.22),vec2(-1.386e1,2.46),vec2(-1.406e1,2.94)); vec2 HEART_MIN_XY = vec2(-70.5, -67.9); vec2 HEART_MAX_XY = vec2(70.6, 51.6); vec2 FACE[26] = vec2[26](vec2(-5.24,2.5),vec2(-5.18,3.56),vec2(-5.04,3.84),vec2(-4.8,3.88),vec2(-3.58,3.3),vec2(-1.88,2.12),vec2(2.16,2.12),vec2(4.02,3.68),vec2(4.78,4.04),vec2(5.18,4.02),vec2(5.38,3.64),vec2(5.44,2.72),vec2(5.12,0),vec2(2.84,-7.52),vec2(2.7,-8.46),vec2(2.36,-9.22),vec2(1.86,-9.8),vec2(1.14,-1.026e1),vec2(0.46,-1.046e1),vec2(-0.36,-1.044e1),vec2(-1.28,-1.008e1),vec2(-1.88,-9.58),vec2(-2.38,-8.8),vec2(-2.64,-7.5),vec2(-4.76,-0.72),vec2(-5.22,2.48)); vec2 MOUTH[35] = vec2[35](vec2(-1.66,-6.76),vec2(-1.56,-6.52),vec2(-1.3,-6.58),vec2(-0.32,-7.72),vec2(0.2,-7.86),vec2(0.58,-7.68),vec2(1.4,-6.66),vec2(1.62,-6.52),vec2(1.84,-6.58),vec2(1.82,-6.84),vec2(1.52,-6.98),vec2(1.22,-7.28),vec2(0.3,-8.66),vec2(0.3,-9.18),vec2(0.4,-9.28),vec2(1.14,-9.04),vec2(1.66,-8.64),vec2(1.8,-8.68),vec2(1.78,-8.82),vec2(1.44,-9.2),vec2(0.98,-9.52),vec2(0.42,-9.78),vec2(2.0e-2,-9.84),vec2(-0.86,-9.46),vec2(-1.54,-8.82),vec2(-1.56,-8.68),vec2(-1.44,-8.64),vec2(-1,-8.98),vec2(-0.18,-9.28),vec2(-8.0e-2,-9.16),vec2(-8.0e-2,-8.74),vec2(-0.14,-8.5),vec2(-0.8,-7.54),vec2(-1.26,-7.02),vec2(-1.64,-6.76)); vec2 EYE_LEFT[10] = vec2[10](vec2(-4.6,2.4),vec2(-4.6,2.72),vec2(-4.46,2.98),vec2(-4.14,3.02),vec2(-3.82,2.8),vec2(-3.48,2.14),vec2(-3.54,1.6),vec2(-4,1.6),vec2(-4.26,1.72),vec2(-4.58,2.38)); vec2 EYE_RIGHT[10] = vec2[10](vec2(3.64,1.8),vec2(3.72,2.34),vec2(4,2.8),vec2(4.32,3.02),vec2(4.68,2.94),vec2(4.78,2.42),vec2(4.48,1.76),vec2(4.2,1.6),vec2(3.7,1.6),vec2(3.66,1.78)); vec2 EAR_LEFT[9] = vec2[9](vec2(-1.092e1,6.08),vec2(-1.084e1,6.26),vec2(-1.058e1,6.3),vec2(-7.02,6.24),vec2(-6.94,4.48),vec2(-7.14,4.38),vec2(-7.84,4.42),vec2(-1.078e1,5.88),vec2(-1.09e1,6.06)); vec2 EAR_RIGHT[10] = vec2[10](vec2(7.22,4.48),vec2(7.42,4.38),vec2(8.12,4.42),vec2(1.106e1,5.88),vec2(1.12e1,6.14),vec2(1.112e1,6.26),vec2(1.086e1,6.3),vec2(7.36,6.28),vec2(7.26,6.18),vec2(7.22,4.5)); bool pointInHeart(vec2 point, float scale, vec2 offset){ int len = 187; int i, j; bool c = false; vec2 p = (point - offset)/(scale * COORD_SCALE); for (i = 0, j = len-1; i < len; j = i++) { if ( ((HEART[i].y > p.y) != (HEART[j].y > p.y)) && (p.x < (HEART[j].x-HEART[i].x) * (p.y-HEART[i].y) / (HEART[j].y-HEART[i].y) + HEART[i].x) ) c = !c; } return c; } bool pointInFace(vec2 point, float scale, vec2 offset){ int len = 26; int i, j; bool c = false; vec2 p = (point - offset)/(scale * COORD_SCALE); for (i = 0, j = len-1; i < len; j = i++) { if ( ((FACE[i].y > p.y) != (FACE[j].y > p.y)) && (p.x < (FACE[j].x-FACE[i].x) * (p.y-FACE[i].y) / (FACE[j].y-FACE[i].y) + FACE[i].x) ) c = !c; } return c; } bool pointInMouth(vec2 point, float scale, vec2 offset){ int len = 35; int i, j; bool c = false; vec2 p = (point - offset)/(scale * COORD_SCALE); for (i = 0, j = len-1; i < len; j = i++) { if ( ((MOUTH[i].y > p.y) != (MOUTH[j].y > p.y)) && (p.x < (MOUTH[j].x-MOUTH[i].x) * (p.y-MOUTH[i].y) / (MOUTH[j].y-MOUTH[i].y) + MOUTH[i].x) ) c = !c; } return c; } bool pointInEyeLeft(vec2 point, float scale, vec2 offset){ int len = 10; int i, j; bool c = false; vec2 p = (point - offset)/(scale * COORD_SCALE); for (i = 0, j = len-1; i < len; j = i++) { if ( ((EYE_LEFT[i].y > p.y) != (EYE_LEFT[j].y > p.y)) && (p.x < (EYE_LEFT[j].x-EYE_LEFT[i].x) * (p.y-EYE_LEFT[i].y) / (EYE_LEFT[j].y-EYE_LEFT[i].y) + EYE_LEFT[i].x) ) c = !c; } return c; } bool pointInEyeRight(vec2 point, float scale, vec2 offset){ int len = 10; int i, j; bool c = false; vec2 p = (point - offset)/(scale * COORD_SCALE); for (i = 0, j = len-1; i < len; j = i++) { if ( ((EYE_RIGHT[i].y > p.y) != (EYE_RIGHT[j].y > p.y)) && (p.x < (EYE_RIGHT[j].x-EYE_RIGHT[i].x) * (p.y-EYE_RIGHT[i].y) / (EYE_RIGHT[j].y-EYE_RIGHT[i].y) + EYE_RIGHT[i].x) ) c = !c; } return c; } bool pointInEarLeft(vec2 point, float scale, vec2 offset){ int len = 9; int i, j; bool c = false; vec2 p = (point - offset)/(scale * COORD_SCALE); for (i = 0, j = len-1; i < len; j = i++) { if ( ((EAR_LEFT[i].y > p.y) != (EAR_LEFT[j].y > p.y)) && (p.x < (EAR_LEFT[j].x-EAR_LEFT[i].x) * (p.y-EAR_LEFT[i].y) / (EAR_LEFT[j].y-EAR_LEFT[i].y) + EAR_LEFT[i].x) ) c = !c; } return c; } bool pointInEarRight(vec2 point, float scale, vec2 offset){ int len = 10; int i, j; bool c = false; vec2 p = (point - offset)/(scale * COORD_SCALE); for (i = 0, j = len-1; i < len; j = i++) { if ( ((EAR_RIGHT[i].y > p.y) != (EAR_RIGHT[j].y > p.y)) && (p.x < (EAR_RIGHT[j].x-EAR_RIGHT[i].x) * (p.y-EAR_RIGHT[i].y) / (EAR_RIGHT[j].y-EAR_RIGHT[i].y) + EAR_RIGHT[i].x) ) c = !c; } return c; } bool pointInSheep(vec2 point, float scale, vec2 offset) { vec2 p = (point - offset)/(scale * COORD_SCALE); if (p.x > HEART_MAX_XY.x || p.y > HEART_MAX_XY.y || p.x < HEART_MIN_XY.x || p.y < HEART_MIN_XY.y) { return false; } bool inHeart = pointInHeart(point, scale, offset); bool inFace = pointInFace(point, scale, offset); bool inMouth = pointInMouth(point, scale, offset); bool inEyeLeft = pointInEyeLeft(point, scale, offset); bool inEyeRight = pointInEyeRight(point, scale, offset); bool inEarLeft = pointInEarLeft(point, scale, offset); bool inEarRight = pointInEarRight(point, scale, offset); return inHeart && (!(inFace || inEarLeft || inEarRight) || (inMouth || inEyeLeft || inEyeRight)); } -float getfrequency(float x) { return .1 + .2 * beatInfo_intensity; /* texture(soundAnalysis.buckets, vec2(floor(x * FREQ_RANGE + 1.0) / FREQ_RANGE, 0.25)).x + 0.06; */ } +float getfrequency(float x) { return .1 + .2 * beatInfo.intensity; /* texture(soundAnalysis.buckets, vec2(floor(x * FREQ_RANGE + 1.0) / FREQ_RANGE, 0.25)).x + 0.06; */ } float getfrequency_smooth(float x) { float index = floor(x * FREQ_RANGE) / FREQ_RANGE; float next = floor(x * FREQ_RANGE + 1.0) / FREQ_RANGE; return mix(getfrequency(index), getfrequency(next), smoothstep(0.0, 1.0, fract(x * FREQ_RANGE))); } float getfrequency_blend(float x) { return mix(getfrequency(x), getfrequency_smooth(x), 0.5); } @@ -92,7 +103,7 @@ void mainImage( out vec4 fragColor, in vec2 fragCoord ) vec2 uv = (fragCoord * 2.0 - iResolution.xy) / iResolution.y; - float logoRadius = LOGO_RADIUS * (1. + 0.2 * (beatInfo_intensity)); + float logoRadius = LOGO_RADIUS * (1. + 0.2 * (beatInfo.intensity)); float radiusFalloff = 5.; float dR = max(length(fragPos) - logoRadius - 0.2, 0.); diff --git a/sparklemotion.js b/sparklemotion.js index 6d154e551f..312a7e8958 100644 --- a/sparklemotion.js +++ b/sparklemotion.js @@ -99,5 +99,5 @@ animation: ${0} 1.4s linear infinite; `),k))),$=(0,h.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,n)=>n.svg})({display:"block"}),E=(0,h.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.circle,n[`circle${(0,l.Z)(e.variant)}`],e.disableShrink&&n.circleDisableShrink]}})((({ownerState:t,theme:n})=>(0,i.Z)({stroke:"currentColor"},"determinate"===t.variant&&{transition:n.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})),(({ownerState:t})=>"indeterminate"===t.variant&&!t.disableShrink&&(0,u.iv)(b||(b=x` animation: ${0} 1.4s ease-in-out infinite; - `),S))),M=o.forwardRef((function(t,n){const e=(0,c.Z)({props:t,name:"MuiCircularProgress"}),{className:o,color:u="primary",disableShrink:h=!1,size:f=40,style:d,thickness:_=3.6,value:g=0,variant:y="indeterminate"}=e,w=(0,r.Z)(e,m),b=(0,i.Z)({},e,{color:u,disableShrink:h,size:f,thickness:_,value:g,variant:y}),x=(t=>{const{classes:n,variant:e,color:r,disableShrink:i}=t,o={root:["root",e,`color${(0,l.Z)(r)}`],svg:["svg"],circle:["circle",`circle${(0,l.Z)(e)}`,i&&"circleDisableShrink"]};return(0,a.Z)(o,p,n)})(b),k={},S={},M={};if("determinate"===y){const t=2*Math.PI*((44-_)/2);k.strokeDasharray=t.toFixed(3),M["aria-valuenow"]=Math.round(g),k.strokeDashoffset=`${((100-g)/100*t).toFixed(3)}px`,S.transform="rotate(-90deg)"}return(0,v.jsx)(C,(0,i.Z)({className:(0,s.default)(x.root,o),style:(0,i.Z)({width:f,height:f},S,d),ownerState:b,ref:n,role:"progressbar"},M,w,{children:(0,v.jsx)($,{className:x.svg,ownerState:b,viewBox:"22 22 44 44",children:(0,v.jsx)(E,{className:x.circle,style:k,ownerState:b,cx:44,cy:44,r:(44-_)/2,fill:"none",strokeWidth:_})})}))}))},46635:(t,n,e)=>{"use strict";e.r(n),e.d(n,{containerClasses:()=>S,default:()=>x,getContainerUtilityClass:()=>k});var r=e(55559),i=e(30984),o=e(66204),s=e(53583),a=e(46730),u=e(95201),l=e(58029),c=e(77877);const h=(0,e(37422).ZP)();var f=e(716),d=e(43188);const p=["className","component","disableGutters","fixed","maxWidth","classes"],_=(0,f.Z)(),v=h("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,n[`maxWidth${(0,a.Z)(String(e.maxWidth))}`],e.fixed&&n.fixed,e.disableGutters&&n.disableGutters]}}),m=t=>(0,c.Z)({props:t,name:"MuiContainer",defaultTheme:_});var g=e(40118),y=e(61125),w=e(57369);const b=function(t={}){const{createStyledComponent:n=v,useThemeProps:e=m,componentName:c="MuiContainer"}=t,h=n((({theme:t,ownerState:n})=>(0,i.Z)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!n.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}})),(({theme:t,ownerState:n})=>n.fixed&&Object.keys(t.breakpoints.values).reduce(((n,e)=>{const r=e,i=t.breakpoints.values[r];return 0!==i&&(n[t.breakpoints.up(r)]={maxWidth:`${i}${t.breakpoints.unit}`}),n}),{})),(({theme:t,ownerState:n})=>(0,i.Z)({},"xs"===n.maxWidth&&{[t.breakpoints.up("xs")]:{maxWidth:Math.max(t.breakpoints.values.xs,444)}},n.maxWidth&&"xs"!==n.maxWidth&&{[t.breakpoints.up(n.maxWidth)]:{maxWidth:`${t.breakpoints.values[n.maxWidth]}${t.breakpoints.unit}`}}))),f=o.forwardRef((function(t,n){const o=e(t),{className:f,component:_="div",disableGutters:v=!1,fixed:m=!1,maxWidth:g="lg"}=o,y=(0,r.Z)(o,p),w=(0,i.Z)({},o,{component:_,disableGutters:v,fixed:m,maxWidth:g}),b=((t,n)=>{const{classes:e,fixed:r,disableGutters:i,maxWidth:o}=t,s={root:["root",o&&`maxWidth${(0,a.Z)(String(o))}`,r&&"fixed",i&&"disableGutters"]};return(0,l.Z)(s,(t=>(0,u.Z)(n,t)),e)})(w,c);return(0,d.jsx)(h,(0,i.Z)({as:_,ownerState:w,className:(0,s.default)(b.root,f),ref:n},y))}));return f}({createStyledComponent:(0,y.ZP)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,n[`maxWidth${(0,g.Z)(String(e.maxWidth))}`],e.fixed&&n.fixed,e.disableGutters&&n.disableGutters]}}),useThemeProps:t=>(0,w.Z)({props:t,name:"MuiContainer"})}),x=b;function k(t){return(0,u.Z)("MuiContainer",t)}const S=(0,e(58109).Z)("MuiContainer",["root","disableGutters","fixed","maxWidthXs","maxWidthSm","maxWidthMd","maxWidthLg","maxWidthXl"])},11662:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>c});var r=e(30984),i=e(66204),o=e(57369),s=e(44260),a=e(43188);const u=(t,n)=>(0,r.Z)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},n&&!t.vars&&{colorScheme:t.palette.mode}),l=t=>(0,r.Z)({color:(t.vars||t).palette.text.primary},t.typography.body1,{backgroundColor:(t.vars||t).palette.background.default,"@media print":{backgroundColor:(t.vars||t).palette.common.white}}),c=function(t){const n=(0,o.Z)({props:t,name:"MuiCssBaseline"}),{children:e,enableColorScheme:c=!1}=n;return(0,a.jsxs)(i.Fragment,{children:[(0,a.jsx)(s.Z,{styles:t=>((t,n=!1)=>{var e,i;const o={};n&&t.colorSchemes&&Object.entries(t.colorSchemes).forEach((([n,e])=>{var r;o[t.getColorSchemeSelector(n).replace(/\s*&/,"")]={colorScheme:null==(r=e.palette)?void 0:r.mode}}));let s=(0,r.Z)({html:u(t,n),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:t.typography.fontWeightBold},body:(0,r.Z)({margin:0},l(t),{"&::backdrop":{backgroundColor:(t.vars||t).palette.background.default}})},o);const a=null==(e=t.components)||null==(i=e.MuiCssBaseline)?void 0:i.styleOverrides;return a&&(s=[s,a]),s})(t,c)}),e]})}},57604:(t,n,e)=>{"use strict";e.d(n,{Z:()=>r});const r=e(66204).createContext({})},10028:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>M,dialogClasses:()=>g,getDialogUtilityClass:()=>m});var r=e(55559),i=e(30984),o=e(66204),s=e(53583),a=e(58029),u=e(96744),l=e(40118),c=e(42727),h=e(63270),f=e(53601),d=e(57369),p=e(61125),_=e(58109),v=e(95201);function m(t){return(0,v.Z)("MuiDialog",t)}const g=(0,_.Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);var y=e(57604),w=e(8570),b=e(92368),x=e(43188);const k=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],S=(0,p.ZP)(w.Z,{name:"MuiDialog",slot:"Backdrop",overrides:(t,n)=>n.backdrop})({zIndex:-1}),C=(0,p.ZP)(c.Z,{name:"MuiDialog",slot:"Root",overridesResolver:(t,n)=>n.root})({"@media print":{position:"absolute !important"}}),$=(0,p.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.container,n[`scroll${(0,l.Z)(e.scroll)}`]]}})((({ownerState:t})=>(0,i.Z)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===t.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===t.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}))),E=(0,p.ZP)(f.Z,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.paper,n[`scrollPaper${(0,l.Z)(e.scroll)}`],n[`paperWidth${(0,l.Z)(String(e.maxWidth))}`],e.fullWidth&&n.paperFullWidth,e.fullScreen&&n.paperFullScreen]}})((({theme:t,ownerState:n})=>(0,i.Z)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===n.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===n.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!n.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===n.maxWidth&&{maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${g.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},n.maxWidth&&"xs"!==n.maxWidth&&{maxWidth:`${t.breakpoints.values[n.maxWidth]}${t.breakpoints.unit}`,[`&.${g.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[n.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},n.fullWidth&&{width:"calc(100% - 64px)"},n.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${g.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}))),M=o.forwardRef((function(t,n){const e=(0,d.Z)({props:t,name:"MuiDialog"}),c=(0,b.default)(),p={enter:c.transitions.duration.enteringScreen,exit:c.transitions.duration.leavingScreen},{"aria-describedby":_,"aria-labelledby":v,BackdropComponent:g,BackdropProps:w,children:M,className:z,disableEscapeKeyDown:T=!1,fullScreen:j=!1,fullWidth:A=!1,maxWidth:q="sm",onBackdropClick:P,onClose:R,open:L,PaperComponent:O=f.Z,PaperProps:I={},scroll:D="paper",TransitionComponent:N=h.Z,transitionDuration:B=p,TransitionProps:F}=e,U=(0,r.Z)(e,k),H=(0,i.Z)({},e,{disableEscapeKeyDown:T,fullScreen:j,fullWidth:A,maxWidth:q,scroll:D}),G=(t=>{const{classes:n,scroll:e,maxWidth:r,fullWidth:i,fullScreen:o}=t,s={root:["root"],container:["container",`scroll${(0,l.Z)(e)}`],paper:["paper",`paperScroll${(0,l.Z)(e)}`,`paperWidth${(0,l.Z)(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return(0,a.Z)(s,m,n)})(H),W=o.useRef(),V=(0,u.Z)(v),Z=o.useMemo((()=>({titleId:V})),[V]);return(0,x.jsx)(C,(0,i.Z)({className:(0,s.default)(G.root,z),closeAfterTransition:!0,components:{Backdrop:S},componentsProps:{backdrop:(0,i.Z)({transitionDuration:B,as:g},w)},disableEscapeKeyDown:T,onClose:R,open:L,ref:n,onClick:t=>{W.current&&(W.current=null,P&&P(t),R&&R(t,"backdropClick"))},ownerState:H},U,{children:(0,x.jsx)(N,(0,i.Z)({appear:!0,in:L,timeout:B,role:"presentation"},F,{children:(0,x.jsx)($,{className:(0,s.default)(G.container),onMouseDown:t=>{W.current=t.target===t.currentTarget},ownerState:H,children:(0,x.jsx)(E,(0,i.Z)({as:O,elevation:24,role:"dialog","aria-describedby":_,"aria-labelledby":V},I,{className:(0,s.default)(G.paper,I.className),ownerState:H,children:(0,x.jsx)(y.Z.Provider,{value:Z,children:M})}))})}))}))}))},3702:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>m,dialogActionsClasses:()=>d,getDialogActionsUtilityClass:()=>f});var r=e(55559),i=e(30984),o=e(66204),s=e(53583),a=e(58029),u=e(61125),l=e(57369),c=e(58109),h=e(95201);function f(t){return(0,h.Z)("MuiDialogActions",t)}const d=(0,c.Z)("MuiDialogActions",["root","spacing"]);var p=e(43188);const _=["className","disableSpacing"],v=(0,u.ZP)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,!e.disableSpacing&&n.spacing]}})((({ownerState:t})=>(0,i.Z)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}}))),m=o.forwardRef((function(t,n){const e=(0,l.Z)({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:u=!1}=e,c=(0,r.Z)(e,_),h=(0,i.Z)({},e,{disableSpacing:u}),d=(t=>{const{classes:n,disableSpacing:e}=t,r={root:["root",!e&&"spacing"]};return(0,a.Z)(r,f,n)})(h);return(0,p.jsx)(v,(0,i.Z)({className:(0,s.default)(d.root,o),ownerState:h,ref:n},c))}))},68024:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>g,dialogContentClasses:()=>d,getDialogContentUtilityClass:()=>f});var r=e(55559),i=e(30984),o=e(66204),s=e(53583),a=e(58029),u=e(61125),l=e(57369),c=e(58109),h=e(95201);function f(t){return(0,h.Z)("MuiDialogContent",t)}const d=(0,c.Z)("MuiDialogContent",["root","dividers"]);var p=e(73521),_=e(43188);const v=["className","dividers"],m=(0,u.ZP)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,e.dividers&&n.dividers]}})((({theme:t,ownerState:n})=>(0,i.Z)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},n.dividers?{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}:{[`.${p.Z.root} + &`]:{paddingTop:0}}))),g=o.forwardRef((function(t,n){const e=(0,l.Z)({props:t,name:"MuiDialogContent"}),{className:o,dividers:u=!1}=e,c=(0,r.Z)(e,v),h=(0,i.Z)({},e,{dividers:u}),d=(t=>{const{classes:n,dividers:e}=t,r={root:["root",e&&"dividers"]};return(0,a.Z)(r,f,n)})(h);return(0,_.jsx)(m,(0,i.Z)({className:(0,s.default)(d.root,o),ownerState:h,ref:n},c))}))},83391:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>g,dialogContentTextClasses:()=>p,getDialogContentTextUtilityClass:()=>d});var r=e(55559),i=e(30984),o=e(66204),s=e(53583),a=e(58029),u=e(61125),l=e(57369),c=e(80013),h=e(58109),f=e(95201);function d(t){return(0,f.Z)("MuiDialogContentText",t)}const p=(0,h.Z)("MuiDialogContentText",["root"]);var _=e(43188);const v=["children","className"],m=(0,u.ZP)(c.Z,{shouldForwardProp:t=>(0,u.FO)(t)||"classes"===t,name:"MuiDialogContentText",slot:"Root",overridesResolver:(t,n)=>n.root})({}),g=o.forwardRef((function(t,n){const e=(0,l.Z)({props:t,name:"MuiDialogContentText"}),{className:o}=e,u=(0,r.Z)(e,v),c=(t=>{const{classes:n}=t,e=(0,a.Z)({root:["root"]},d,n);return(0,i.Z)({},n,e)})(u);return(0,_.jsx)(m,(0,i.Z)({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:u,className:(0,s.default)(c.root,o)},e,{classes:c}))}))},73521:(t,n,e)=>{"use strict";e.d(n,{Z:()=>s,a:()=>o});var r=e(58109),i=e(95201);function o(t){return(0,i.Z)("MuiDialogTitle",t)}const s=(0,r.Z)("MuiDialogTitle",["root"])},45072:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>v,dialogTitleClasses:()=>h.Z,getDialogTitleUtilityClass:()=>h.a});var r=e(30984),i=e(55559),o=e(66204),s=e(53583),a=e(58029),u=e(80013),l=e(61125),c=e(57369),h=e(73521),f=e(57604),d=e(43188);const p=["className","id"],_=(0,l.ZP)(u.Z,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(t,n)=>n.root})({padding:"16px 24px",flex:"0 0 auto"}),v=o.forwardRef((function(t,n){const e=(0,c.Z)({props:t,name:"MuiDialogTitle"}),{className:u,id:l}=e,v=(0,i.Z)(e,p),m=e,g=(t=>{const{classes:n}=t;return(0,a.Z)({root:["root"]},h.a,n)})(m),{titleId:y=l}=o.useContext(f.Z);return(0,d.jsx)(_,(0,r.Z)({component:"h2",className:(0,s.default)(g.root,u),ownerState:m,ref:n,variant:"h6",id:null!=l?l:y},v))}))},92165:(t,n,e)=>{"use strict";e.d(n,{V:()=>o,Z:()=>s});var r=e(58109),i=e(95201);function o(t){return(0,i.Z)("MuiDivider",t)}const s=(0,r.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"])},36517:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>v,dividerClasses:()=>h.Z,getDividerUtilityClass:()=>h.V});var r=e(55559),i=e(30984),o=e(66204),s=e(53583),a=e(58029),u=e(73330),l=e(61125),c=e(57369),h=e(92165),f=e(43188);const d=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],p=(0,l.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,e.absolute&&n.absolute,n[e.variant],e.light&&n.light,"vertical"===e.orientation&&n.vertical,e.flexItem&&n.flexItem,e.children&&n.withChildren,e.children&&"vertical"===e.orientation&&n.withChildrenVertical,"right"===e.textAlign&&"vertical"!==e.orientation&&n.textAlignRight,"left"===e.textAlign&&"vertical"!==e.orientation&&n.textAlignLeft]}})((({theme:t,ownerState:n})=>(0,i.Z)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},n.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},n.light&&{borderColor:t.vars?`rgba(${t.vars.palette.dividerChannel} / 0.08)`:(0,u.Fq)(t.palette.divider,.08)},"inset"===n.variant&&{marginLeft:72},"middle"===n.variant&&"horizontal"===n.orientation&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},"middle"===n.variant&&"vertical"===n.orientation&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},"vertical"===n.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},n.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:t})=>(0,i.Z)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:t,ownerState:n})=>(0,i.Z)({},n.children&&"vertical"!==n.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(t.vars||t).palette.divider}`}})),(({theme:t,ownerState:n})=>(0,i.Z)({},n.children&&"vertical"===n.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(t.vars||t).palette.divider}`}})),(({ownerState:t})=>(0,i.Z)({},"right"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),_=(0,l.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.wrapper,"vertical"===e.orientation&&n.wrapperVertical]}})((({theme:t,ownerState:n})=>(0,i.Z)({display:"inline-block",paddingLeft:`calc(${t.spacing(1)} * 1.2)`,paddingRight:`calc(${t.spacing(1)} * 1.2)`},"vertical"===n.orientation&&{paddingTop:`calc(${t.spacing(1)} * 1.2)`,paddingBottom:`calc(${t.spacing(1)} * 1.2)`}))),v=o.forwardRef((function(t,n){const e=(0,c.Z)({props:t,name:"MuiDivider"}),{absolute:o=!1,children:u,className:l,component:v=(u?"div":"hr"),flexItem:m=!1,light:g=!1,orientation:y="horizontal",role:w=("hr"!==v?"separator":void 0),textAlign:b="center",variant:x="fullWidth"}=e,k=(0,r.Z)(e,d),S=(0,i.Z)({},e,{absolute:o,component:v,flexItem:m,light:g,orientation:y,role:w,textAlign:b,variant:x}),C=(t=>{const{absolute:n,children:e,classes:r,flexItem:i,light:o,orientation:s,textAlign:u,variant:l}=t,c={root:["root",n&&"absolute",l,o&&"light","vertical"===s&&"vertical",i&&"flexItem",e&&"withChildren",e&&"vertical"===s&&"withChildrenVertical","right"===u&&"vertical"!==s&&"textAlignRight","left"===u&&"vertical"!==s&&"textAlignLeft"],wrapper:["wrapper","vertical"===s&&"wrapperVertical"]};return(0,a.Z)(c,h.V,r)})(S);return(0,f.jsx)(p,(0,i.Z)({as:v,className:(0,s.default)(C.root,l),role:w,ref:n,ownerState:S},k,{children:u?(0,f.jsx)(_,{className:C.wrapper,ownerState:S,children:u}):null}))}))},77657:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>P,drawerClasses:()=>$,getDrawerUtilityClass:()=>C});var r=e(55559),i=e(30984),o=e(66204),s=e(53583),a=e(58029),u=e(42727),l=e(44628),c=e(78101),h=e(81597),f=e(92368),d=e(41372),p=e(19514),_=e(43188);const v=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function m(t,n,e){var r;const i=function(t,n,e){const r=n.getBoundingClientRect(),i=e&&e.getBoundingClientRect(),o=(0,p.Z)(n);let s;if(n.fakeTransform)s=n.fakeTransform;else{const t=o.getComputedStyle(n);s=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("transform")}let a=0,u=0;if(s&&"none"!==s&&"string"==typeof s){const t=s.split("(")[1].split(")")[0].split(",");a=parseInt(t[4],10),u=parseInt(t[5],10)}return"left"===t?i?`translateX(${i.right+a-r.left}px)`:`translateX(${o.innerWidth+a-r.left}px)`:"right"===t?i?`translateX(-${r.right-i.left-a}px)`:`translateX(-${r.left+r.width-a}px)`:"up"===t?i?`translateY(${i.bottom+u-r.top}px)`:`translateY(${o.innerHeight+u-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-u}px)`:`translateY(-${r.top+r.height-u}px)`}(t,n,"function"==typeof(r=e)?r():r);i&&(n.style.webkitTransform=i,n.style.transform=i)}const g=o.forwardRef((function(t,n){const e=(0,f.default)(),s={enter:e.transitions.easing.easeOut,exit:e.transitions.easing.sharp},a={enter:e.transitions.duration.enteringScreen,exit:e.transitions.duration.leavingScreen},{addEndListener:u,appear:g=!0,children:y,container:w,direction:b="down",easing:x=s,in:k,onEnter:S,onEntered:C,onEntering:$,onExit:E,onExited:M,onExiting:z,style:T,timeout:j=a,TransitionComponent:A=l.ZP}=t,q=(0,r.Z)(t,v),P=o.useRef(null),R=(0,h.Z)(y.ref,P,n),L=t=>n=>{t&&(void 0===n?t(P.current):t(P.current,n))},O=L(((t,n)=>{m(b,t,w),(0,d.n)(t),S&&S(t,n)})),I=L(((t,n)=>{const r=(0,d.C)({timeout:j,style:T,easing:x},{mode:"enter"});t.style.webkitTransition=e.transitions.create("-webkit-transform",(0,i.Z)({},r)),t.style.transition=e.transitions.create("transform",(0,i.Z)({},r)),t.style.webkitTransform="none",t.style.transform="none",$&&$(t,n)})),D=L(C),N=L(z),B=L((t=>{const n=(0,d.C)({timeout:j,style:T,easing:x},{mode:"exit"});t.style.webkitTransition=e.transitions.create("-webkit-transform",n),t.style.transition=e.transitions.create("transform",n),m(b,t,w),E&&E(t)})),F=L((t=>{t.style.webkitTransition="",t.style.transition="",M&&M(t)})),U=o.useCallback((()=>{P.current&&m(b,P.current,w)}),[b,w]);return o.useEffect((()=>{if(k||"down"===b||"right"===b)return;const t=(0,c.Z)((()=>{P.current&&m(b,P.current,w)})),n=(0,p.Z)(P.current);return n.addEventListener("resize",t),()=>{t.clear(),n.removeEventListener("resize",t)}}),[b,k,w]),o.useEffect((()=>{k||U()}),[k,U]),(0,_.jsx)(A,(0,i.Z)({nodeRef:P,onEnter:O,onEntered:D,onEntering:I,onExit:B,onExited:F,onExiting:N,addEndListener:t=>{u&&u(P.current,t)},appear:g,in:k,timeout:j},q,{children:(t,n)=>o.cloneElement(y,(0,i.Z)({ref:R,style:(0,i.Z)({visibility:"exited"!==t||k?void 0:"hidden"},T,y.props.style)},n))}))}));var y=e(53601),w=e(40118),b=e(57369),x=e(61125),k=e(58109),S=e(95201);function C(t){return(0,S.Z)("MuiDrawer",t)}const $=(0,k.Z)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]),E=["BackdropProps"],M=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],z=(t,n)=>{const{ownerState:e}=t;return[n.root,("permanent"===e.variant||"persistent"===e.variant)&&n.docked,n.modal]},T=(0,x.ZP)(u.Z,{name:"MuiDrawer",slot:"Root",overridesResolver:z})((({theme:t})=>({zIndex:(t.vars||t).zIndex.drawer}))),j=(0,x.ZP)("div",{shouldForwardProp:x.FO,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:z})({flex:"0 0 auto"}),A=(0,x.ZP)(y.Z,{name:"MuiDrawer",slot:"Paper",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.paper,n[`paperAnchor${(0,w.Z)(e.anchor)}`],"temporary"!==e.variant&&n[`paperAnchorDocked${(0,w.Z)(e.anchor)}`]]}})((({theme:t,ownerState:n})=>(0,i.Z)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(t.vars||t).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===n.anchor&&{left:0},"top"===n.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===n.anchor&&{right:0},"bottom"===n.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===n.anchor&&"temporary"!==n.variant&&{borderRight:`1px solid ${(t.vars||t).palette.divider}`},"top"===n.anchor&&"temporary"!==n.variant&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`},"right"===n.anchor&&"temporary"!==n.variant&&{borderLeft:`1px solid ${(t.vars||t).palette.divider}`},"bottom"===n.anchor&&"temporary"!==n.variant&&{borderTop:`1px solid ${(t.vars||t).palette.divider}`}))),q={left:"right",right:"left",top:"down",bottom:"up"},P=o.forwardRef((function(t,n){const e=(0,b.Z)({props:t,name:"MuiDrawer"}),u=(0,f.default)(),l={enter:u.transitions.duration.enteringScreen,exit:u.transitions.duration.leavingScreen},{anchor:c="left",BackdropProps:h,children:d,className:p,elevation:v=16,hideBackdrop:m=!1,ModalProps:{BackdropProps:y}={},onClose:x,open:k=!1,PaperProps:S={},SlideProps:$,TransitionComponent:z=g,transitionDuration:P=l,variant:R="temporary"}=e,L=(0,r.Z)(e.ModalProps,E),O=(0,r.Z)(e,M),I=o.useRef(!1);o.useEffect((()=>{I.current=!0}),[]);const D=function(t,n){return"rtl"===t.direction&&function(t){return-1!==["left","right"].indexOf(t)}(n)?q[n]:n}(u,c),N=c,B=(0,i.Z)({},e,{anchor:N,elevation:v,open:k,variant:R},O),F=(t=>{const{classes:n,anchor:e,variant:r}=t,i={root:["root"],docked:[("permanent"===r||"persistent"===r)&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${(0,w.Z)(e)}`,"temporary"!==r&&`paperAnchorDocked${(0,w.Z)(e)}`]};return(0,a.Z)(i,C,n)})(B),U=(0,_.jsx)(A,(0,i.Z)({elevation:"temporary"===R?v:0,square:!0},S,{className:(0,s.default)(F.paper,S.className),ownerState:B,children:d}));if("permanent"===R)return(0,_.jsx)(j,(0,i.Z)({className:(0,s.default)(F.root,F.docked,p),ownerState:B,ref:n},O,{children:U}));const H=(0,_.jsx)(z,(0,i.Z)({in:k,direction:q[D],timeout:P,appear:I.current},$,{children:U}));return"persistent"===R?(0,_.jsx)(j,(0,i.Z)({className:(0,s.default)(F.root,F.docked,p),ownerState:B,ref:n},O,{children:H})):(0,_.jsx)(T,(0,i.Z)({BackdropProps:(0,i.Z)({},h,y,{transitionDuration:P}),className:(0,s.default)(F.root,F.modal,p),open:k,ownerState:B,onClose:x,hideBackdrop:m,ref:n},O,L,{children:H}))}))},63270:(t,n,e)=>{"use strict";e.d(n,{Z:()=>d});var r=e(30984),i=e(55559),o=e(66204),s=e(44628),a=e(92368),u=e(41372),l=e(81597),c=e(43188);const h=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],f={entering:{opacity:1},entered:{opacity:1}},d=o.forwardRef((function(t,n){const e=(0,a.default)(),d={enter:e.transitions.duration.enteringScreen,exit:e.transitions.duration.leavingScreen},{addEndListener:p,appear:_=!0,children:v,easing:m,in:g,onEnter:y,onEntered:w,onEntering:b,onExit:x,onExited:k,onExiting:S,style:C,timeout:$=d,TransitionComponent:E=s.ZP}=t,M=(0,i.Z)(t,h),z=o.useRef(null),T=(0,l.Z)(z,v.ref,n),j=t=>n=>{if(t){const e=z.current;void 0===n?t(e):t(e,n)}},A=j(b),q=j(((t,n)=>{(0,u.n)(t);const r=(0,u.C)({style:C,timeout:$,easing:m},{mode:"enter"});t.style.webkitTransition=e.transitions.create("opacity",r),t.style.transition=e.transitions.create("opacity",r),y&&y(t,n)})),P=j(w),R=j(S),L=j((t=>{const n=(0,u.C)({style:C,timeout:$,easing:m},{mode:"exit"});t.style.webkitTransition=e.transitions.create("opacity",n),t.style.transition=e.transitions.create("opacity",n),x&&x(t)})),O=j(k);return(0,c.jsx)(E,(0,r.Z)({appear:_,in:g,nodeRef:z,onEnter:q,onEntered:P,onEntering:A,onExit:L,onExited:O,onExiting:R,addEndListener:t=>{p&&p(z.current,t)},timeout:$},M,{children:(t,n)=>o.cloneElement(v,(0,r.Z)({style:(0,r.Z)({opacity:0,visibility:"exited"!==t||g?void 0:"hidden"},f[t],C,v.props.style),ref:T},n))}))}))},60381:(t,n,e)=>{"use strict";e.d(n,{Z:()=>b});var r=e(55559),i=e(30984),o=e(66204),s=e(53709),a=e(58029),u=e(12303),l=e(61125),c=e(57369),h=e(58109),f=e(95201),d=e(33872);function p(t){return(0,f.Z)("MuiFilledInput",t)}const _=(0,i.Z)({},d.Z,(0,h.Z)("MuiFilledInput",["root","underline","input"]));var v=e(43188);const m=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],g=(0,l.ZP)(u.Ej,{shouldForwardProp:t=>(0,l.FO)(t)||"classes"===t,name:"MuiFilledInput",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[...(0,u.Gx)(t,n),!e.disableUnderline&&n.underline]}})((({theme:t,ownerState:n})=>{var e;const r="light"===t.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",s=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",u=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,i.Z)({position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s}},[`&.${_.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s},[`&.${_.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:u}},!n.disableUnderline&&{"&:after":{borderBottom:`2px solid ${null==(e=(t.vars||t).palette[n.color||"primary"])?void 0:e.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${_.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${_.error}`]:{"&:before, &:after":{borderBottomColor:(t.vars||t).palette.error.main}},"&:before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${_.disabled}, .${_.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${_.disabled}:before`]:{borderBottomStyle:"dotted"}},n.startAdornment&&{paddingLeft:12},n.endAdornment&&{paddingRight:12},n.multiline&&(0,i.Z)({padding:"25px 12px 8px"},"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),y=(0,l.ZP)(u.rA,{name:"MuiFilledInput",slot:"Input",overridesResolver:u._o})((({theme:t,ownerState:n})=>(0,i.Z)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17},n.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0},n.hiddenLabel&&"small"===n.size&&{paddingTop:8,paddingBottom:9}))),w=o.forwardRef((function(t,n){var e,o,l,h;const f=(0,c.Z)({props:t,name:"MuiFilledInput"}),{components:d={},componentsProps:_,fullWidth:w=!1,inputComponent:b="input",multiline:x=!1,slotProps:k,slots:S={},type:C="text"}=f,$=(0,r.Z)(f,m),E=(0,i.Z)({},f,{fullWidth:w,inputComponent:b,multiline:x,type:C}),M=(t=>{const{classes:n,disableUnderline:e}=t,r={root:["root",!e&&"underline"],input:["input"]},o=(0,a.Z)(r,p,n);return(0,i.Z)({},n,o)})(f),z={root:{ownerState:E},input:{ownerState:E}},T=(null!=k?k:_)?(0,s.Z)(null!=k?k:_,z):z,j=null!=(e=null!=(o=S.root)?o:d.Root)?e:g,A=null!=(l=null!=(h=S.input)?h:d.Input)?l:y;return(0,v.jsx)(u.ZP,(0,i.Z)({slots:{root:j,input:A},componentsProps:T,fullWidth:w,inputComponent:b,multiline:x,ref:n,type:C},$,{classes:M}))}));w.muiName="Input";const b=w},94926:(t,n,e)=>{"use strict";e.d(n,{Z:()=>g});var r=e(55559),i=e(30984),o=e(66204),s=e(53583),a=e(58029),u=e(57369),l=e(61125),c=e(43716),h=e(40118),f=e(6842),d=e(30954),p=e(4870),_=e(43188);const v=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],m=(0,l.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:t},n)=>(0,i.Z)({},n.root,n[`margin${(0,h.Z)(t.margin)}`],t.fullWidth&&n.fullWidth)})((({ownerState:t})=>(0,i.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===t.margin&&{marginTop:16,marginBottom:8},"dense"===t.margin&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"}))),g=o.forwardRef((function(t,n){const e=(0,u.Z)({props:t,name:"MuiFormControl"}),{children:l,className:g,color:y="primary",component:w="div",disabled:b=!1,error:x=!1,focused:k,fullWidth:S=!1,hiddenLabel:C=!1,margin:$="none",required:E=!1,size:M="medium",variant:z="outlined"}=e,T=(0,r.Z)(e,v),j=(0,i.Z)({},e,{color:y,component:w,disabled:b,error:x,fullWidth:S,hiddenLabel:C,margin:$,required:E,size:M,variant:z}),A=(t=>{const{classes:n,margin:e,fullWidth:r}=t,i={root:["root","none"!==e&&`margin${(0,h.Z)(e)}`,r&&"fullWidth"]};return(0,a.Z)(i,p.e,n)})(j),[q,P]=o.useState((()=>{let t=!1;return l&&o.Children.forEach(l,(n=>{if(!(0,f.Z)(n,["Input","Select"]))return;const e=(0,f.Z)(n,["Select"])?n.props.input:n;e&&(0,c.B7)(e.props)&&(t=!0)})),t})),[R,L]=o.useState((()=>{let t=!1;return l&&o.Children.forEach(l,(n=>{(0,f.Z)(n,["Input","Select"])&&((0,c.vd)(n.props,!0)||(0,c.vd)(n.props.inputProps,!0))&&(t=!0)})),t})),[O,I]=o.useState(!1);b&&O&&I(!1);const D=void 0===k||b?O:k;let N;const B=o.useMemo((()=>({adornedStart:q,setAdornedStart:P,color:y,disabled:b,error:x,filled:R,focused:D,fullWidth:S,hiddenLabel:C,size:M,onBlur:()=>{I(!1)},onEmpty:()=>{L(!1)},onFilled:()=>{L(!0)},onFocus:()=>{I(!0)},registerEffect:N,required:E,variant:z})),[q,y,b,x,R,D,S,C,N,E,M,z]);return(0,_.jsx)(d.Z.Provider,{value:B,children:(0,_.jsx)(m,(0,i.Z)({as:w,ownerState:j,className:(0,s.default)(A.root,g),ref:n},T,{children:l}))})}))},30954:(t,n,e)=>{"use strict";e.d(n,{Z:()=>r});const r=e(66204).createContext(void 0)},4870:(t,n,e)=>{"use strict";e.d(n,{Z:()=>s,e:()=>o});var r=e(58109),i=e(95201);function o(t){return(0,i.Z)("MuiFormControl",t)}const s=(0,r.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"])},92407:(t,n,e)=>{"use strict";function r({props:t,states:n,muiFormControl:e}){return n.reduce(((n,r)=>(n[r]=t[r],e&&void 0===t[r]&&(n[r]=e[r]),n)),{})}e.d(n,{Z:()=>r})},63085:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>r.Z,formControlClasses:()=>o.Z,getFormControlUtilityClasses:()=>o.e,useFormControl:()=>i.Z});var r=e(94926),i=e(55834),o=e(4870)},55834:(t,n,e)=>{"use strict";e.d(n,{Z:()=>o});var r=e(66204),i=e(30954);function o(){return r.useContext(i.Z)}},86765:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>x,formControlLabelClasses:()=>v,getFormControlLabelUtilityClasses:()=>_});var r=e(55559),i=e(30984),o=e(66204),s=e(53583),a=e(58029),u=e(55834),l=e(80013),c=e(40118),h=e(61125),f=e(57369),d=e(58109),p=e(95201);function _(t){return(0,p.Z)("MuiFormControlLabel",t)}const v=(0,d.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);var m=e(92407),g=e(43188);const y=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],w=(0,h.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[{[`& .${v.label}`]:n.label},n.root,n[`labelPlacement${(0,c.Z)(e.labelPlacement)}`]]}})((({theme:t,ownerState:n})=>(0,i.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${v.disabled}`]:{cursor:"default"}},"start"===n.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===n.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===n.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${v.label}`]:{[`&.${v.disabled}`]:{color:(t.vars||t).palette.text.disabled}}}))),b=(0,h.ZP)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(t,n)=>n.asterisk})((({theme:t})=>({[`&.${v.error}`]:{color:(t.vars||t).palette.error.main}}))),x=o.forwardRef((function(t,n){var e,h;const d=(0,f.Z)({props:t,name:"MuiFormControlLabel"}),{className:p,componentsProps:v={},control:x,disabled:k,disableTypography:S,label:C,labelPlacement:$="end",required:E,slotProps:M={}}=d,z=(0,r.Z)(d,y),T=(0,u.Z)(),j=null!=(e=null!=k?k:x.props.disabled)?e:null==T?void 0:T.disabled,A=null!=E?E:x.props.required,q={disabled:j,required:A};["checked","name","onChange","value","inputRef"].forEach((t=>{void 0===x.props[t]&&void 0!==d[t]&&(q[t]=d[t])}));const P=(0,m.Z)({props:d,muiFormControl:T,states:["error"]}),R=(0,i.Z)({},d,{disabled:j,labelPlacement:$,required:A,error:P.error}),L=(t=>{const{classes:n,disabled:e,labelPlacement:r,error:i,required:o}=t,s={root:["root",e&&"disabled",`labelPlacement${(0,c.Z)(r)}`,i&&"error",o&&"required"],label:["label",e&&"disabled"],asterisk:["asterisk",i&&"error"]};return(0,a.Z)(s,_,n)})(R),O=null!=(h=M.typography)?h:v.typography;let I=C;return null==I||I.type===l.Z||S||(I=(0,g.jsx)(l.Z,(0,i.Z)({component:"span"},O,{className:(0,s.default)(L.label,null==O?void 0:O.className),children:I}))),(0,g.jsxs)(w,(0,i.Z)({className:(0,s.default)(L.root,p),ownerState:R,ref:n},z,{children:[o.cloneElement(x,q),I,A&&(0,g.jsxs)(b,{ownerState:R,"aria-hidden":!0,className:L.asterisk,children:[" ","*"]})]}))}))},35861:(t,n,e)=>{"use strict";e.d(n,{Z:()=>g});var r,i=e(55559),o=e(30984),s=e(66204),a=e(53583),u=e(58029),l=e(92407),c=e(55834),h=e(61125),f=e(40118),d=e(54475),p=e(57369),_=e(43188);const v=["children","className","component","disabled","error","filled","focused","margin","required","variant"],m=(0,h.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,e.size&&n[`size${(0,f.Z)(e.size)}`],e.contained&&n.contained,e.filled&&n.filled]}})((({theme:t,ownerState:n})=>(0,o.Z)({color:(t.vars||t).palette.text.secondary},t.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${d.Z.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${d.Z.error}`]:{color:(t.vars||t).palette.error.main}},"small"===n.size&&{marginTop:4},n.contained&&{marginLeft:14,marginRight:14}))),g=s.forwardRef((function(t,n){const e=(0,p.Z)({props:t,name:"MuiFormHelperText"}),{children:s,className:h,component:g="p"}=e,y=(0,i.Z)(e,v),w=(0,c.Z)(),b=(0,l.Z)({props:e,muiFormControl:w,states:["variant","size","disabled","error","filled","focused","required"]}),x=(0,o.Z)({},e,{component:g,contained:"filled"===b.variant||"outlined"===b.variant,variant:b.variant,size:b.size,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required}),k=(t=>{const{classes:n,contained:e,size:r,disabled:i,error:o,filled:s,focused:a,required:l}=t,c={root:["root",i&&"disabled",o&&"error",r&&`size${(0,f.Z)(r)}`,e&&"contained",a&&"focused",s&&"filled",l&&"required"]};return(0,u.Z)(c,d.E,n)})(x);return(0,_.jsx)(m,(0,o.Z)({as:g,ownerState:x,className:(0,a.default)(k.root,h),ref:n},y,{children:" "===s?r||(r=(0,_.jsx)("span",{className:"notranslate",children:"​"})):s}))}))},54475:(t,n,e)=>{"use strict";e.d(n,{E:()=>o,Z:()=>s});var r=e(58109),i=e(95201);function o(t){return(0,i.Z)("MuiFormHelperText",t)}const s=(0,r.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"])},50441:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>r.Z,formHelperTextClasses:()=>i.Z,getFormHelperTextUtilityClasses:()=>i.E});var r=e(35861),i=e(54475)},5723:(t,n,e)=>{"use strict";e.d(n,{D:()=>v,Z:()=>g});var r=e(55559),i=e(30984),o=e(66204),s=e(53583),a=e(58029),u=e(92407),l=e(55834),c=e(40118),h=e(57369),f=e(61125),d=e(25454),p=e(43188);const _=["children","className","color","component","disabled","error","filled","focused","required"],v=(0,f.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:t},n)=>(0,i.Z)({},n.root,"secondary"===t.color&&n.colorSecondary,t.filled&&n.filled)})((({theme:t,ownerState:n})=>(0,i.Z)({color:(t.vars||t).palette.text.secondary},t.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${d.Z.focused}`]:{color:(t.vars||t).palette[n.color].main},[`&.${d.Z.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${d.Z.error}`]:{color:(t.vars||t).palette.error.main}}))),m=(0,f.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(t,n)=>n.asterisk})((({theme:t})=>({[`&.${d.Z.error}`]:{color:(t.vars||t).palette.error.main}}))),g=o.forwardRef((function(t,n){const e=(0,h.Z)({props:t,name:"MuiFormLabel"}),{children:o,className:f,component:g="label"}=e,y=(0,r.Z)(e,_),w=(0,l.Z)(),b=(0,u.Z)({props:e,muiFormControl:w,states:["color","required","focused","disabled","error","filled"]}),x=(0,i.Z)({},e,{color:b.color||"primary",component:g,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required}),k=(t=>{const{classes:n,color:e,focused:r,disabled:i,error:o,filled:s,required:u}=t,l={root:["root",`color${(0,c.Z)(e)}`,i&&"disabled",o&&"error",s&&"filled",r&&"focused",u&&"required"],asterisk:["asterisk",o&&"error"]};return(0,a.Z)(l,d.M,n)})(x);return(0,p.jsxs)(v,(0,i.Z)({as:g,ownerState:x,className:(0,s.default)(k.root,f),ref:n},y,{children:[o,b.required&&(0,p.jsxs)(m,{ownerState:x,"aria-hidden":!0,className:k.asterisk,children:[" ","*"]})]}))}))},25454:(t,n,e)=>{"use strict";e.d(n,{M:()=>o,Z:()=>s});var r=e(58109),i=e(95201);function o(t){return(0,i.Z)("MuiFormLabel",t)}const s=(0,r.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"])},98517:(t,n,e)=>{"use strict";e.r(n),e.d(n,{FormLabelRoot:()=>r.D,default:()=>r.Z,formLabelClasses:()=>i.Z,getFormLabelUtilityClasses:()=>i.M});var r=e(5723),i=e(25454)},44260:(t,n,e)=>{"use strict";e.d(n,{Z:()=>h});var r=e(30984),i=(e(66204),e(71580)),o=e(43188);function s(t){const{styles:n,defaultTheme:e={}}=t,r="function"==typeof n?t=>{return n(null==(r=t)||0===Object.keys(r).length?e:t);var r}:n;return(0,o.jsx)(i.xB,{styles:r})}var a=e(85293);const u=function({styles:t,themeId:n,defaultTheme:e={}}){const r=(0,a.Z)(e),i="function"==typeof t?t(n&&r[n]||r):t;return(0,o.jsx)(s,{styles:i})};var l=e(86995),c=e(80880);const h=function(t){return(0,o.jsx)(u,(0,r.Z)({},t,{defaultTheme:l.Z,themeId:c.Z}))}},23160:(t,n,e)=>{"use strict";e.d(n,{Z:()=>v});var r=e(30984),i=e(55559),o=e(66204),s=e(44628),a=e(92368),u=e(41372),l=e(81597),c=e(43188);const h=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function f(t){return`scale(${t}, ${t**2})`}const d={entering:{opacity:1,transform:f(1)},entered:{opacity:1,transform:"none"}},p="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),_=o.forwardRef((function(t,n){const{addEndListener:e,appear:_=!0,children:v,easing:m,in:g,onEnter:y,onEntered:w,onEntering:b,onExit:x,onExited:k,onExiting:S,style:C,timeout:$="auto",TransitionComponent:E=s.ZP}=t,M=(0,i.Z)(t,h),z=o.useRef(),T=o.useRef(),j=(0,a.default)(),A=o.useRef(null),q=(0,l.Z)(A,v.ref,n),P=t=>n=>{if(t){const e=A.current;void 0===n?t(e):t(e,n)}},R=P(b),L=P(((t,n)=>{(0,u.n)(t);const{duration:e,delay:r,easing:i}=(0,u.C)({style:C,timeout:$,easing:m},{mode:"enter"});let o;"auto"===$?(o=j.transitions.getAutoHeightDuration(t.clientHeight),T.current=o):o=e,t.style.transition=[j.transitions.create("opacity",{duration:o,delay:r}),j.transitions.create("transform",{duration:p?o:.666*o,delay:r,easing:i})].join(","),y&&y(t,n)})),O=P(w),I=P(S),D=P((t=>{const{duration:n,delay:e,easing:r}=(0,u.C)({style:C,timeout:$,easing:m},{mode:"exit"});let i;"auto"===$?(i=j.transitions.getAutoHeightDuration(t.clientHeight),T.current=i):i=n,t.style.transition=[j.transitions.create("opacity",{duration:i,delay:e}),j.transitions.create("transform",{duration:p?i:.666*i,delay:p?e:e||.333*i,easing:r})].join(","),t.style.opacity=0,t.style.transform=f(.75),x&&x(t)})),N=P(k);return o.useEffect((()=>()=>{clearTimeout(z.current)}),[]),(0,c.jsx)(E,(0,r.Z)({appear:_,in:g,nodeRef:A,onEnter:L,onEntered:O,onEntering:R,onExit:D,onExited:N,onExiting:I,addEndListener:t=>{"auto"===$&&(z.current=setTimeout(t,T.current||0)),e&&e(A.current,t)},timeout:"auto"===$?null:$},M,{children:(t,n)=>o.cloneElement(v,(0,r.Z)({style:(0,r.Z)({opacity:0,transform:f(.75),visibility:"exited"!==t||g?void 0:"hidden"},d[t],C,v.props.style),ref:q},n))}))}));_.muiSupportAuto=!0;const v=_},49140:(t,n,e)=>{"use strict";e.d(n,{Z:()=>m});var r=e(55559),i=e(30984),o=e(66204),s=e(53583),a=e(58029),u=e(73330),l=e(61125),c=e(57369),h=e(52983),f=e(40118),d=e(28141),p=e(43188);const _=["edge","children","className","color","disabled","disableFocusRipple","size"],v=(0,l.ZP)(h.Z,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,"default"!==e.color&&n[`color${(0,f.Z)(e.color)}`],e.edge&&n[`edge${(0,f.Z)(e.edge)}`],n[`size${(0,f.Z)(e.size)}`]]}})((({theme:t,ownerState:n})=>(0,i.Z)({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,u.Fq)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===n.edge&&{marginLeft:"small"===n.size?-3:-12},"end"===n.edge&&{marginRight:"small"===n.size?-3:-12})),(({theme:t,ownerState:n})=>{var e;const r=null==(e=(t.vars||t).palette)?void 0:e[n.color];return(0,i.Z)({},"inherit"===n.color&&{color:"inherit"},"inherit"!==n.color&&"default"!==n.color&&(0,i.Z)({color:null==r?void 0:r.main},!n.disableRipple&&{"&:hover":(0,i.Z)({},r&&{backgroundColor:t.vars?`rgba(${r.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,u.Fq)(r.main,t.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===n.size&&{padding:5,fontSize:t.typography.pxToRem(18)},"large"===n.size&&{padding:12,fontSize:t.typography.pxToRem(28)},{[`&.${d.Z.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}})})),m=o.forwardRef((function(t,n){const e=(0,c.Z)({props:t,name:"MuiIconButton"}),{edge:o=!1,children:u,className:l,color:h="default",disabled:m=!1,disableFocusRipple:g=!1,size:y="medium"}=e,w=(0,r.Z)(e,_),b=(0,i.Z)({},e,{edge:o,color:h,disabled:m,disableFocusRipple:g,size:y}),x=(t=>{const{classes:n,disabled:e,color:r,edge:i,size:o}=t,s={root:["root",e&&"disabled","default"!==r&&`color${(0,f.Z)(r)}`,i&&`edge${(0,f.Z)(i)}`,`size${(0,f.Z)(o)}`]};return(0,a.Z)(s,d.r,n)})(b);return(0,p.jsx)(v,(0,i.Z)({className:(0,s.default)(x.root,l),centerRipple:!0,focusRipple:!g,disabled:m,ref:n,ownerState:b},w,{children:u}))}))},28141:(t,n,e)=>{"use strict";e.d(n,{Z:()=>s,r:()=>o});var r=e(58109),i=e(95201);function o(t){return(0,i.Z)("MuiIconButton",t)}const s=(0,r.Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"])},52545:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>r.Z,getIconButtonUtilityClass:()=>i.r,iconButtonClasses:()=>i.Z});var r=e(49140),i=e(28141)},61054:(t,n,e)=>{"use strict";e.d(n,{Z:()=>m});var r=e(55559),i=e(30984),o=e(66204),s=e(58029),a=e(53709),u=e(12303),l=e(61125),c=e(57369),h=e(2994),f=e(43188);const d=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],p=(0,l.ZP)(u.Ej,{shouldForwardProp:t=>(0,l.FO)(t)||"classes"===t,name:"MuiInput",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[...(0,u.Gx)(t,n),!e.disableUnderline&&n.underline]}})((({theme:t,ownerState:n})=>{let e="light"===t.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(e=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),(0,i.Z)({position:"relative"},n.formControl&&{"label + &":{marginTop:16}},!n.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(t.vars||t).palette[n.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${h.Z.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${h.Z.error}`]:{"&:before, &:after":{borderBottomColor:(t.vars||t).palette.error.main}},"&:before":{borderBottom:`1px solid ${e}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${h.Z.disabled}, .${h.Z.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${e}`}},[`&.${h.Z.disabled}:before`]:{borderBottomStyle:"dotted"}})})),_=(0,l.ZP)(u.rA,{name:"MuiInput",slot:"Input",overridesResolver:u._o})({}),v=o.forwardRef((function(t,n){var e,o,l,v;const m=(0,c.Z)({props:t,name:"MuiInput"}),{disableUnderline:g,components:y={},componentsProps:w,fullWidth:b=!1,inputComponent:x="input",multiline:k=!1,slotProps:S,slots:C={},type:$="text"}=m,E=(0,r.Z)(m,d),M=(t=>{const{classes:n,disableUnderline:e}=t,r={root:["root",!e&&"underline"],input:["input"]},o=(0,s.Z)(r,h.l,n);return(0,i.Z)({},n,o)})(m),z={root:{ownerState:{disableUnderline:g}}},T=(null!=S?S:w)?(0,a.Z)(null!=S?S:w,z):z,j=null!=(e=null!=(o=C.root)?o:y.Root)?e:p,A=null!=(l=null!=(v=C.input)?v:y.Input)?l:_;return(0,f.jsx)(u.ZP,(0,i.Z)({slots:{root:j,input:A},slotProps:T,fullWidth:b,inputComponent:x,multiline:k,ref:n,type:$},E,{classes:M}))}));v.muiName="Input";const m=v},26629:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>r.Z,getInputUtilityClass:()=>i.l,inputClasses:()=>i.Z});var r=e(61054),i=e(2994)},2994:(t,n,e)=>{"use strict";e.d(n,{Z:()=>u,l:()=>a});var r=e(30984),i=e(58109),o=e(95201),s=e(33872);function a(t){return(0,o.Z)("MuiInput",t)}const u=(0,r.Z)({},s.Z,(0,i.Z)("MuiInput",["root","underline","input"]))},59172:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>x,getInputAdornmentUtilityClass:()=>_,inputAdornmentClasses:()=>v});var r=e(55559),i=e(30984),o=e(66204),s=e(53583),a=e(58029),u=e(40118),l=e(80013),c=e(30954),h=e(55834),f=e(61125),d=e(58109),p=e(95201);function _(t){return(0,p.Z)("MuiInputAdornment",t)}const v=(0,d.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var m,g=e(57369),y=e(43188);const w=["children","className","component","disablePointerEvents","disableTypography","position","variant"],b=(0,f.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,n[`position${(0,u.Z)(e.position)}`],!0===e.disablePointerEvents&&n.disablePointerEvents,n[e.variant]]}})((({theme:t,ownerState:n})=>(0,i.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===n.variant&&{[`&.${v.positionStart}&:not(.${v.hiddenLabel})`]:{marginTop:16}},"start"===n.position&&{marginRight:8},"end"===n.position&&{marginLeft:8},!0===n.disablePointerEvents&&{pointerEvents:"none"}))),x=o.forwardRef((function(t,n){const e=(0,g.Z)({props:t,name:"MuiInputAdornment"}),{children:f,className:d,component:p="div",disablePointerEvents:v=!1,disableTypography:x=!1,position:k,variant:S}=e,C=(0,r.Z)(e,w),$=(0,h.Z)()||{};let E=S;S&&$.variant,$&&!E&&(E=$.variant);const M=(0,i.Z)({},e,{hiddenLabel:$.hiddenLabel,size:$.size,disablePointerEvents:v,position:k,variant:E}),z=(t=>{const{classes:n,disablePointerEvents:e,hiddenLabel:r,position:i,size:o,variant:s}=t,l={root:["root",e&&"disablePointerEvents",i&&`position${(0,u.Z)(i)}`,s,r&&"hiddenLabel",o&&`size${(0,u.Z)(o)}`]};return(0,a.Z)(l,_,n)})(M);return(0,y.jsx)(c.Z.Provider,{value:null,children:(0,y.jsx)(b,(0,i.Z)({as:p,ownerState:M,className:(0,s.default)(z.root,d),ref:n},C,{children:"string"!=typeof f||x?(0,y.jsxs)(o.Fragment,{children:["start"===k?m||(m=(0,y.jsx)("span",{className:"notranslate",children:"​"})):null,f]}):(0,y.jsx)(l.Z,{color:"text.secondary",children:f})}))})}))},12303:(t,n,e)=>{"use strict";e.d(n,{rA:()=>L,Ej:()=>R,ZP:()=>I,_o:()=>P,Gx:()=>q});var r=e(55559),i=e(30984),o=e(89274),s=e(66204),a=e(53583),u=e(58029),l=e(42457),c=e(52682),h=e(45796),f=e(72650),d=e(40401),p=e(43188);const _=["onChange","maxRows","minRows","style","value"];function v(t){return parseInt(t,10)||0}const m={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function g(t){return null==t||0===Object.keys(t).length||0===t.outerHeightStyle&&!t.overflow}const y=s.forwardRef((function(t,n){const{onChange:e,maxRows:o,minRows:a=1,style:u,value:y}=t,w=(0,r.Z)(t,_),{current:b}=s.useRef(null!=y),x=s.useRef(null),k=(0,c.Z)(n,x),S=s.useRef(null),C=s.useRef(0),[$,E]=s.useState({outerHeightStyle:0}),M=s.useCallback((()=>{const n=x.current,e=(0,h.Z)(n).getComputedStyle(n);if("0px"===e.width)return{outerHeightStyle:0};const r=S.current;r.style.width=e.width,r.value=n.value||t.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const i=e.boxSizing,s=v(e.paddingBottom)+v(e.paddingTop),u=v(e.borderBottomWidth)+v(e.borderTopWidth),l=r.scrollHeight;r.value="x";const c=r.scrollHeight;let f=l;return a&&(f=Math.max(Number(a)*c,f)),o&&(f=Math.min(Number(o)*c,f)),f=Math.max(f,c),{outerHeightStyle:f+("border-box"===i?s+u:0),overflow:Math.abs(f-l)<=1}}),[o,a,t.placeholder]),z=(t,n)=>{const{outerHeightStyle:e,overflow:r}=n;return C.current<20&&(e>0&&Math.abs((t.outerHeightStyle||0)-e)>1||t.overflow!==r)?(C.current+=1,{overflow:r,outerHeightStyle:e}):t},T=s.useCallback((()=>{const t=M();g(t)||E((n=>z(n,t)))}),[M]);return s.useEffect((()=>{const t=(0,f.Z)((()=>{C.current=0,x.current&&(()=>{const t=M();g(t)||l.flushSync((()=>{E((n=>z(n,t)))}))})()}));let n;const e=x.current,r=(0,h.Z)(e);return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(t),n.observe(e)),()=>{t.clear(),r.removeEventListener("resize",t),n&&n.disconnect()}})),(0,d.Z)((()=>{T()})),s.useEffect((()=>{C.current=0}),[y]),(0,p.jsxs)(s.Fragment,{children:[(0,p.jsx)("textarea",(0,i.Z)({value:y,onChange:t=>{C.current=0,b||T(),e&&e(t)},ref:k,rows:a,style:(0,i.Z)({height:$.outerHeightStyle,overflow:$.overflow?"hidden":void 0},u)},w)),(0,p.jsx)("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:S,tabIndex:-1,style:(0,i.Z)({},m,u,{padding:0})})]})}));var w=e(38094),b=e(92407),x=e(30954),k=e(55834),S=e(61125),C=e(57369),$=e(40118),E=e(81597),M=e(5429),z=e(44260),T=e(43716),j=e(33872);const A=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],q=(t,n)=>{const{ownerState:e}=t;return[n.root,e.formControl&&n.formControl,e.startAdornment&&n.adornedStart,e.endAdornment&&n.adornedEnd,e.error&&n.error,"small"===e.size&&n.sizeSmall,e.multiline&&n.multiline,e.color&&n[`color${(0,$.Z)(e.color)}`],e.fullWidth&&n.fullWidth,e.hiddenLabel&&n.hiddenLabel]},P=(t,n)=>{const{ownerState:e}=t;return[n.input,"small"===e.size&&n.inputSizeSmall,e.multiline&&n.inputMultiline,"search"===e.type&&n.inputTypeSearch,e.startAdornment&&n.inputAdornedStart,e.endAdornment&&n.inputAdornedEnd,e.hiddenLabel&&n.inputHiddenLabel]},R=(0,S.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:q})((({theme:t,ownerState:n})=>(0,i.Z)({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${j.Z.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},n.multiline&&(0,i.Z)({padding:"4px 0 5px"},"small"===n.size&&{paddingTop:1}),n.fullWidth&&{width:"100%"}))),L=(0,S.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:P})((({theme:t,ownerState:n})=>{const e="light"===t.palette.mode,r=(0,i.Z)({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),o={opacity:"0 !important"},s=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5};return(0,i.Z)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${j.Z.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus:-ms-input-placeholder":s,"&:focus::-ms-input-placeholder":s},[`&.${j.Z.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===n.size&&{paddingTop:1},n.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===n.type&&{MozAppearance:"textfield"})})),O=(0,p.jsx)(z.Z,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),I=s.forwardRef((function(t,n){var e;const l=(0,C.Z)({props:t,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:h,autoFocus:f,className:d,components:_={},componentsProps:v={},defaultValue:m,disabled:g,disableInjectingGlobalStyles:S,endAdornment:z,fullWidth:q=!1,id:P,inputComponent:I="input",inputProps:D={},inputRef:N,maxRows:B,minRows:F,multiline:U=!1,name:H,onBlur:G,onChange:W,onClick:V,onFocus:Z,onKeyDown:X,onKeyUp:Y,placeholder:K,readOnly:J,renderSuffix:Q,rows:tt,slotProps:nt={},slots:et={},startAdornment:rt,type:it="text",value:ot}=l,st=(0,r.Z)(l,A),at=null!=D.value?D.value:ot,{current:ut}=s.useRef(null!=at),lt=s.useRef(),ct=s.useCallback((t=>{}),[]),ht=(0,E.Z)(lt,N,D.ref,ct),[ft,dt]=s.useState(!1),pt=(0,k.Z)(),_t=(0,b.Z)({props:l,muiFormControl:pt,states:["color","disabled","error","hiddenLabel","size","required","filled"]});_t.focused=pt?pt.focused:ft,s.useEffect((()=>{!pt&&g&&ft&&(dt(!1),G&&G())}),[pt,g,ft,G]);const vt=pt&&pt.onFilled,mt=pt&&pt.onEmpty,gt=s.useCallback((t=>{(0,T.vd)(t)?vt&&vt():mt&&mt()}),[vt,mt]);(0,M.Z)((()=>{ut&>({value:at})}),[at,gt,ut]),s.useEffect((()=>{gt(lt.current)}),[]);let yt=I,wt=D;U&&"input"===yt&&(wt=tt?(0,i.Z)({type:void 0,minRows:tt,maxRows:tt},wt):(0,i.Z)({type:void 0,maxRows:B,minRows:F},wt),yt=y),s.useEffect((()=>{pt&&pt.setAdornedStart(Boolean(rt))}),[pt,rt]);const bt=(0,i.Z)({},l,{color:_t.color||"primary",disabled:_t.disabled,endAdornment:z,error:_t.error,focused:_t.focused,formControl:pt,fullWidth:q,hiddenLabel:_t.hiddenLabel,multiline:U,size:_t.size,startAdornment:rt,type:it}),xt=(t=>{const{classes:n,color:e,disabled:r,error:i,endAdornment:o,focused:s,formControl:a,fullWidth:l,hiddenLabel:c,multiline:h,readOnly:f,size:d,startAdornment:p,type:_}=t,v={root:["root",`color${(0,$.Z)(e)}`,r&&"disabled",i&&"error",l&&"fullWidth",s&&"focused",a&&"formControl","small"===d&&"sizeSmall",h&&"multiline",p&&"adornedStart",o&&"adornedEnd",c&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled","search"===_&&"inputTypeSearch",h&&"inputMultiline","small"===d&&"inputSizeSmall",c&&"inputHiddenLabel",p&&"inputAdornedStart",o&&"inputAdornedEnd",f&&"readOnly"]};return(0,u.Z)(v,j.u,n)})(bt),kt=et.root||_.Root||R,St=nt.root||v.root||{},Ct=et.input||_.Input||L;return wt=(0,i.Z)({},wt,null!=(e=nt.input)?e:v.input),(0,p.jsxs)(s.Fragment,{children:[!S&&O,(0,p.jsxs)(kt,(0,i.Z)({},St,!(0,w.Z)(kt)&&{ownerState:(0,i.Z)({},bt,St.ownerState)},{ref:n,onClick:t=>{lt.current&&t.currentTarget===t.target&<.current.focus(),V&&!_t.disabled&&V(t)}},st,{className:(0,a.default)(xt.root,St.className,d,J&&"MuiInputBase-readOnly"),children:[rt,(0,p.jsx)(x.Z.Provider,{value:null,children:(0,p.jsx)(Ct,(0,i.Z)({ownerState:bt,"aria-invalid":_t.error,"aria-describedby":c,autoComplete:h,autoFocus:f,defaultValue:m,disabled:_t.disabled,id:P,onAnimationStart:t=>{gt("mui-auto-fill-cancel"===t.animationName?lt.current:{value:"x"})},name:H,placeholder:K,readOnly:J,required:_t.required,rows:tt,value:at,onKeyDown:X,onKeyUp:Y,type:it},wt,!(0,w.Z)(Ct)&&{as:yt,ownerState:(0,i.Z)({},bt,wt.ownerState)},{ref:ht,className:(0,a.default)(xt.input,wt.className,J&&"MuiInputBase-readOnly"),onBlur:t=>{G&&G(t),D.onBlur&&D.onBlur(t),pt&&pt.onBlur?pt.onBlur(t):dt(!1)},onChange:(t,...n)=>{if(!ut){const n=t.target||lt.current;if(null==n)throw new Error((0,o.Z)(1));gt({value:n.value})}D.onChange&&D.onChange(t,...n),W&&W(t,...n)},onFocus:t=>{_t.disabled?t.stopPropagation():(Z&&Z(t),D.onFocus&&D.onFocus(t),pt&&pt.onFocus?pt.onFocus(t):dt(!0))}}))}),z,Q?Q((0,i.Z)({},_t,{startAdornment:rt})):null]}))]})}))},33872:(t,n,e)=>{"use strict";e.d(n,{Z:()=>s,u:()=>o});var r=e(58109),i=e(95201);function o(t){return(0,i.Z)("MuiInputBase",t)}const s=(0,r.Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"])},43716:(t,n,e)=>{"use strict";function r(t){return null!=t&&!(Array.isArray(t)&&0===t.length)}function i(t,n=!1){return t&&(r(t.value)&&""!==t.value||n&&r(t.defaultValue)&&""!==t.defaultValue)}function o(t){return t.startAdornment}e.d(n,{B7:()=>o,vd:()=>i})},60962:(t,n,e)=>{"use strict";e.d(n,{Z:()=>g});var r=e(55559),i=e(30984),o=e(66204),s=e(58029),a=e(53583),u=e(92407),l=e(55834),c=e(5723),h=e(25454),f=e(57369),d=e(61125),p=e(90301),_=e(43188);const v=["disableAnimation","margin","shrink","variant","className"],m=(0,d.ZP)(c.Z,{shouldForwardProp:t=>(0,d.FO)(t)||"classes"===t,name:"MuiInputLabel",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[{[`& .${h.Z.asterisk}`]:n.asterisk},n.root,e.formControl&&n.formControl,"small"===e.size&&n.sizeSmall,e.shrink&&n.shrink,!e.disableAnimation&&n.animated,n[e.variant]]}})((({theme:t,ownerState:n})=>(0,i.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},n.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===n.size&&{transform:"translate(0, 17px) scale(1)"},n.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!n.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===n.variant&&(0,i.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(12px, 13px) scale(1)"},n.shrink&&(0,i.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===n.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===n.variant&&(0,i.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(14px, 9px) scale(1)"},n.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"})))),g=o.forwardRef((function(t,n){const e=(0,f.Z)({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:c,className:h}=e,d=(0,r.Z)(e,v),g=(0,l.Z)();let y=c;void 0===y&&g&&(y=g.filled||g.focused||g.adornedStart);const w=(0,u.Z)({props:e,muiFormControl:g,states:["size","variant","required"]}),b=(0,i.Z)({},e,{disableAnimation:o,formControl:g,shrink:y,size:w.size,variant:w.variant,required:w.required}),x=(t=>{const{classes:n,formControl:e,size:r,shrink:o,disableAnimation:a,variant:u,required:l}=t,c={root:["root",e&&"formControl",!a&&"animated",o&&"shrink","small"===r&&"sizeSmall",u],asterisk:[l&&"asterisk"]},h=(0,s.Z)(c,p.Y,n);return(0,i.Z)({},n,h)})(b);return(0,_.jsx)(m,(0,i.Z)({"data-shrink":y,ownerState:b,ref:n,className:(0,a.default)(x.root,h)},d,{classes:x}))}))},97097:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>r.Z,getInputLabelUtilityClasses:()=>i.Y,inputLabelClasses:()=>i.Z});var r=e(60962),i=e(90301)},90301:(t,n,e)=>{"use strict";e.d(n,{Y:()=>o,Z:()=>s});var r=e(58109),i=e(95201);function o(t){return(0,i.Z)("MuiInputLabel",t)}const s=(0,r.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"])},19079:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>C,getLinkUtilityClass:()=>v,linkClasses:()=>m});var r=e(55559),i=e(30984),o=e(66204),s=e(53583),a=e(58029),u=e(40118),l=e(61125),c=e(57369),h=e(71323),f=e(81597),d=e(80013),p=e(58109),_=e(95201);function v(t){return(0,_.Z)("MuiLink",t)}const m=(0,p.Z)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var g=e(4860),y=e(73330);const w={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},b=({theme:t,ownerState:n})=>{const e=(t=>w[t]||t)(n.color),r=(0,g.DW)(t,`palette.${e}`,!1)||n.color,i=(0,g.DW)(t,`palette.${e}Channel`);return"vars"in t&&i?`rgba(${i} / 0.4)`:(0,y.Fq)(r,.4)};var x=e(43188);const k=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],S=(0,l.ZP)(d.Z,{name:"MuiLink",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,n[`underline${(0,u.Z)(e.underline)}`],"button"===e.component&&n.button]}})((({theme:t,ownerState:n})=>(0,i.Z)({},"none"===n.underline&&{textDecoration:"none"},"hover"===n.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===n.underline&&(0,i.Z)({textDecoration:"underline"},"inherit"!==n.color&&{textDecorationColor:b({theme:t,ownerState:n})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===n.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${m.focusVisible}`]:{outline:"auto"}}))),C=o.forwardRef((function(t,n){const e=(0,c.Z)({props:t,name:"MuiLink"}),{className:l,color:d="primary",component:p="a",onBlur:_,onFocus:m,TypographyClasses:g,underline:y="always",variant:b="inherit",sx:C}=e,$=(0,r.Z)(e,k),{isFocusVisibleRef:E,onBlur:M,onFocus:z,ref:T}=(0,h.Z)(),[j,A]=o.useState(!1),q=(0,f.Z)(n,T),P=(0,i.Z)({},e,{color:d,component:p,focusVisible:j,underline:y,variant:b}),R=(t=>{const{classes:n,component:e,focusVisible:r,underline:i}=t,o={root:["root",`underline${(0,u.Z)(i)}`,"button"===e&&"button",r&&"focusVisible"]};return(0,a.Z)(o,v,n)})(P);return(0,x.jsx)(S,(0,i.Z)({color:d,className:(0,s.default)(R.root,l),classes:g,component:p,onBlur:t=>{M(t),!1===E.current&&A(!1),_&&_(t)},onFocus:t=>{z(t),!0===E.current&&A(!0),m&&m(t)},ref:q,ownerState:P,variant:b,sx:[...Object.keys(w).includes(d)?[]:[{color:d}],...Array.isArray(C)?C:[C]]},$))}))},86600:(t,n,e)=>{"use strict";e.d(n,{Z:()=>_});var r=e(55559),i=e(30984),o=e(66204),s=e(53583),a=e(58029),u=e(61125),l=e(57369),c=e(5524),h=e(37711),f=e(43188);const d=["children","className","component","dense","disablePadding","subheader"],p=(0,u.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,!e.disablePadding&&n.padding,e.dense&&n.dense,e.subheader&&n.subheader]}})((({ownerState:t})=>(0,i.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0}))),_=o.forwardRef((function(t,n){const e=(0,l.Z)({props:t,name:"MuiList"}),{children:u,className:_,component:v="ul",dense:m=!1,disablePadding:g=!1,subheader:y}=e,w=(0,r.Z)(e,d),b=o.useMemo((()=>({dense:m})),[m]),x=(0,i.Z)({},e,{component:v,dense:m,disablePadding:g}),k=(t=>{const{classes:n,disablePadding:e,dense:r,subheader:i}=t,o={root:["root",!e&&"padding",r&&"dense",i&&"subheader"]};return(0,a.Z)(o,h.z,n)})(x);return(0,f.jsx)(c.Z.Provider,{value:b,children:(0,f.jsxs)(p,(0,i.Z)({as:v,className:(0,s.default)(k.root,_),ref:n,ownerState:x},w,{children:[y,u]}))})}))},5524:(t,n,e)=>{"use strict";e.d(n,{Z:()=>r});const r=e(66204).createContext({})},15795:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>r.Z,getListUtilityClass:()=>i.z,listClasses:()=>i.Z});var r=e(86600),i=e(37711)},37711:(t,n,e)=>{"use strict";e.d(n,{Z:()=>s,z:()=>o});var r=e(58109),i=e(95201);function o(t){return(0,i.Z)("MuiList",t)}const s=(0,r.Z)("MuiList",["root","padding","dense","subheader"])},1662:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>A,getListItemUtilityClass:()=>y,listItemClasses:()=>w});var r=e(55559),i=e(30984),o=e(66204),s=e(53583),a=e(58029),u=e(38094),l=e(73330),c=e(61125),h=e(57369),f=e(52983),d=e(6842),p=e(5429),_=e(81597),v=e(5524),m=e(58109),g=e(95201);function y(t){return(0,g.Z)("MuiListItem",t)}const w=(0,m.Z)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var b=e(481);function x(t){return(0,g.Z)("MuiListItemSecondaryAction",t)}(0,m.Z)("MuiListItemSecondaryAction",["root","disableGutters"]);var k=e(43188);const S=["className"],C=(0,c.ZP)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,e.disableGutters&&n.disableGutters]}})((({ownerState:t})=>(0,i.Z)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},t.disableGutters&&{right:0}))),$=o.forwardRef((function(t,n){const e=(0,h.Z)({props:t,name:"MuiListItemSecondaryAction"}),{className:u}=e,l=(0,r.Z)(e,S),c=o.useContext(v.Z),f=(0,i.Z)({},e,{disableGutters:c.disableGutters}),d=(t=>{const{disableGutters:n,classes:e}=t,r={root:["root",n&&"disableGutters"]};return(0,a.Z)(r,x,e)})(f);return(0,k.jsx)(C,(0,i.Z)({className:(0,s.default)(d.root,u),ownerState:f,ref:n},l))}));$.muiName="ListItemSecondaryAction";const E=$,M=["className"],z=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],T=(0,c.ZP)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,e.dense&&n.dense,"flex-start"===e.alignItems&&n.alignItemsFlexStart,e.divider&&n.divider,!e.disableGutters&&n.gutters,!e.disablePadding&&n.padding,e.button&&n.button,e.hasSecondaryAction&&n.secondaryAction]}})((({theme:t,ownerState:n})=>(0,i.Z)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!n.disablePadding&&(0,i.Z)({paddingTop:8,paddingBottom:8},n.dense&&{paddingTop:4,paddingBottom:4},!n.disableGutters&&{paddingLeft:16,paddingRight:16},!!n.secondaryAction&&{paddingRight:48}),!!n.secondaryAction&&{[`& > .${b.Z.root}`]:{paddingRight:48}},{[`&.${w.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${w.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${w.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${w.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"flex-start"===n.alignItems&&{alignItems:"flex-start"},n.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},n.button&&{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${w.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)}}},n.hasSecondaryAction&&{paddingRight:48}))),j=(0,c.ZP)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(t,n)=>n.container})({position:"relative"}),A=o.forwardRef((function(t,n){const e=(0,h.Z)({props:t,name:"MuiListItem"}),{alignItems:l="center",autoFocus:c=!1,button:m=!1,children:g,className:b,component:x,components:S={},componentsProps:C={},ContainerComponent:$="li",ContainerProps:{className:A}={},dense:q=!1,disabled:P=!1,disableGutters:R=!1,disablePadding:L=!1,divider:O=!1,focusVisibleClassName:I,secondaryAction:D,selected:N=!1,slotProps:B={},slots:F={}}=e,U=(0,r.Z)(e.ContainerProps,M),H=(0,r.Z)(e,z),G=o.useContext(v.Z),W=o.useMemo((()=>({dense:q||G.dense||!1,alignItems:l,disableGutters:R})),[l,G.dense,q,R]),V=o.useRef(null);(0,p.Z)((()=>{c&&V.current&&V.current.focus()}),[c]);const Z=o.Children.toArray(g),X=Z.length&&(0,d.Z)(Z[Z.length-1],["ListItemSecondaryAction"]),Y=(0,i.Z)({},e,{alignItems:l,autoFocus:c,button:m,dense:W.dense,disabled:P,disableGutters:R,disablePadding:L,divider:O,hasSecondaryAction:X,selected:N}),K=(t=>{const{alignItems:n,button:e,classes:r,dense:i,disabled:o,disableGutters:s,disablePadding:u,divider:l,hasSecondaryAction:c,selected:h}=t,f={root:["root",i&&"dense",!s&&"gutters",!u&&"padding",l&&"divider",o&&"disabled",e&&"button","flex-start"===n&&"alignItemsFlexStart",c&&"secondaryAction",h&&"selected"],container:["container"]};return(0,a.Z)(f,y,r)})(Y),J=(0,_.Z)(V,n),Q=F.root||S.Root||T,tt=B.root||C.root||{},nt=(0,i.Z)({className:(0,s.default)(K.root,tt.className,b),disabled:P},H);let et=x||"li";return m&&(nt.component=x||"div",nt.focusVisibleClassName=(0,s.default)(w.focusVisible,I),et=f.Z),X?(et=nt.component||x?et:"div","li"===$&&("li"===et?et="div":"li"===nt.component&&(nt.component="div")),(0,k.jsx)(v.Z.Provider,{value:W,children:(0,k.jsxs)(j,(0,i.Z)({as:$,className:(0,s.default)(K.container,A),ref:J,ownerState:Y},U,{children:[(0,k.jsx)(Q,(0,i.Z)({},tt,!(0,u.Z)(Q)&&{as:et,ownerState:(0,i.Z)({},Y,tt.ownerState)},nt,{children:Z})),Z.pop()]}))})):(0,k.jsx)(v.Z.Provider,{value:W,children:(0,k.jsxs)(Q,(0,i.Z)({},tt,{as:et,ref:J},!(0,u.Z)(Q)&&{ownerState:(0,i.Z)({},Y,tt.ownerState)},nt,{children:[Z,D&&(0,k.jsx)(E,{children:D})]}))})}))},40837:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>y,getListItemButtonUtilityClass:()=>_.t,listItemButtonClasses:()=>_.Z});var r=e(55559),i=e(30984),o=e(66204),s=e(53583),a=e(58029),u=e(73330),l=e(61125),c=e(57369),h=e(52983),f=e(5429),d=e(81597),p=e(5524),_=e(481),v=e(43188);const m=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],g=(0,l.ZP)(h.Z,{shouldForwardProp:t=>(0,l.FO)(t)||"classes"===t,name:"MuiListItemButton",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,e.dense&&n.dense,"flex-start"===e.alignItems&&n.alignItemsFlexStart,e.divider&&n.divider,!e.disableGutters&&n.gutters]}})((({theme:t,ownerState:n})=>(0,i.Z)({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${_.Z.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,u.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${_.Z.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:(0,u.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${_.Z.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:(0,u.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,u.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${_.Z.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${_.Z.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},n.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===n.alignItems&&{alignItems:"flex-start"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.dense&&{paddingTop:4,paddingBottom:4}))),y=o.forwardRef((function(t,n){const e=(0,c.Z)({props:t,name:"MuiListItemButton"}),{alignItems:u="center",autoFocus:l=!1,component:h="div",children:y,dense:w=!1,disableGutters:b=!1,divider:x=!1,focusVisibleClassName:k,selected:S=!1,className:C}=e,$=(0,r.Z)(e,m),E=o.useContext(p.Z),M=o.useMemo((()=>({dense:w||E.dense||!1,alignItems:u,disableGutters:b})),[u,E.dense,w,b]),z=o.useRef(null);(0,f.Z)((()=>{l&&z.current&&z.current.focus()}),[l]);const T=(0,i.Z)({},e,{alignItems:u,dense:M.dense,disableGutters:b,divider:x,selected:S}),j=(t=>{const{alignItems:n,classes:e,dense:r,disabled:o,disableGutters:s,divider:u,selected:l}=t,c={root:["root",r&&"dense",!s&&"gutters",u&&"divider",o&&"disabled","flex-start"===n&&"alignItemsFlexStart",l&&"selected"]},h=(0,a.Z)(c,_.t,e);return(0,i.Z)({},e,h)})(T),A=(0,d.Z)(z,n);return(0,v.jsx)(p.Z.Provider,{value:M,children:(0,v.jsx)(g,(0,i.Z)({ref:A,href:$.href||$.to,component:($.href||$.to)&&"div"===h?"button":h,focusVisibleClassName:(0,s.default)(j.focusVisible,k),ownerState:T,className:(0,s.default)(j.root,C)},$,{classes:j,children:y}))})}))},481:(t,n,e)=>{"use strict";e.d(n,{Z:()=>s,t:()=>o});var r=e(58109),i=e(95201);function o(t){return(0,i.Z)("MuiListItemButton",t)}const s=(0,r.Z)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"])},31913:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>_,getListItemIconUtilityClass:()=>c.f,listItemIconClasses:()=>c.Z});var r=e(55559),i=e(30984),o=e(66204),s=e(53583),a=e(58029),u=e(61125),l=e(57369),c=e(87017),h=e(5524),f=e(43188);const d=["className"],p=(0,u.ZP)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,"flex-start"===e.alignItems&&n.alignItemsFlexStart]}})((({theme:t,ownerState:n})=>(0,i.Z)({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===n.alignItems&&{marginTop:8}))),_=o.forwardRef((function(t,n){const e=(0,l.Z)({props:t,name:"MuiListItemIcon"}),{className:u}=e,_=(0,r.Z)(e,d),v=o.useContext(h.Z),m=(0,i.Z)({},e,{alignItems:v.alignItems}),g=(t=>{const{alignItems:n,classes:e}=t,r={root:["root","flex-start"===n&&"alignItemsFlexStart"]};return(0,a.Z)(r,c.f,e)})(m);return(0,f.jsx)(p,(0,i.Z)({className:(0,s.default)(g.root,u),ownerState:m,ref:n},_))}))},87017:(t,n,e)=>{"use strict";e.d(n,{Z:()=>s,f:()=>o});var r=e(58109),i=e(95201);function o(t){return(0,i.Z)("MuiListItemIcon",t)}const s=(0,r.Z)("MuiListItemIcon",["root","alignItemsFlexStart"])},3306:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>v,getListItemTextUtilityClass:()=>f.L,listItemTextClasses:()=>f.Z});var r=e(55559),i=e(30984),o=e(66204),s=e(53583),a=e(58029),u=e(80013),l=e(5524),c=e(57369),h=e(61125),f=e(99700),d=e(43188);const p=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],_=(0,h.ZP)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[{[`& .${f.Z.primary}`]:n.primary},{[`& .${f.Z.secondary}`]:n.secondary},n.root,e.inset&&n.inset,e.primary&&e.secondary&&n.multiline,e.dense&&n.dense]}})((({ownerState:t})=>(0,i.Z)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},t.primary&&t.secondary&&{marginTop:6,marginBottom:6},t.inset&&{paddingLeft:56}))),v=o.forwardRef((function(t,n){const e=(0,c.Z)({props:t,name:"MuiListItemText"}),{children:h,className:v,disableTypography:m=!1,inset:g=!1,primary:y,primaryTypographyProps:w,secondary:b,secondaryTypographyProps:x}=e,k=(0,r.Z)(e,p),{dense:S}=o.useContext(l.Z);let C=null!=y?y:h,$=b;const E=(0,i.Z)({},e,{disableTypography:m,inset:g,primary:!!C,secondary:!!$,dense:S}),M=(t=>{const{classes:n,inset:e,primary:r,secondary:i,dense:o}=t,s={root:["root",e&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]};return(0,a.Z)(s,f.L,n)})(E);return null==C||C.type===u.Z||m||(C=(0,d.jsx)(u.Z,(0,i.Z)({variant:S?"body2":"body1",className:M.primary,component:null!=w&&w.variant?void 0:"span",display:"block"},w,{children:C}))),null==$||$.type===u.Z||m||($=(0,d.jsx)(u.Z,(0,i.Z)({variant:"body2",className:M.secondary,color:"text.secondary",display:"block"},x,{children:$}))),(0,d.jsxs)(_,(0,i.Z)({className:(0,s.default)(M.root,v),ownerState:E,ref:n},k,{children:[C,$]}))}))},99700:(t,n,e)=>{"use strict";e.d(n,{L:()=>o,Z:()=>s});var r=e(58109),i=e(95201);function o(t){return(0,i.Z)("MuiListItemText",t)}const s=(0,r.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"])},35943:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>y,getListSubheaderUtilityClass:()=>d,listSubheaderClasses:()=>p});var r=e(55559),i=e(30984),o=e(66204),s=e(53583),a=e(58029),u=e(61125),l=e(57369),c=e(40118),h=e(58109),f=e(95201);function d(t){return(0,f.Z)("MuiListSubheader",t)}const p=(0,h.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var _=e(43188);const v=["className","color","component","disableGutters","disableSticky","inset"],m=(0,u.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,"default"!==e.color&&n[`color${(0,c.Z)(e.color)}`],!e.disableGutters&&n.gutters,e.inset&&n.inset,!e.disableSticky&&n.sticky]}})((({theme:t,ownerState:n})=>(0,i.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14)},"primary"===n.color&&{color:(t.vars||t).palette.primary.main},"inherit"===n.color&&{color:"inherit"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.inset&&{paddingLeft:72},!n.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper}))),g=o.forwardRef((function(t,n){const e=(0,l.Z)({props:t,name:"MuiListSubheader"}),{className:o,color:u="default",component:h="li",disableGutters:f=!1,disableSticky:p=!1,inset:g=!1}=e,y=(0,r.Z)(e,v),w=(0,i.Z)({},e,{color:u,component:h,disableGutters:f,disableSticky:p,inset:g}),b=(t=>{const{classes:n,color:e,disableGutters:r,inset:i,disableSticky:o}=t,s={root:["root","default"!==e&&`color${(0,c.Z)(e)}`,!r&&"gutters",i&&"inset",!o&&"sticky"]};return(0,a.Z)(s,d,n)})(w);return(0,_.jsx)(m,(0,i.Z)({as:h,className:(0,s.default)(b.root,o),ref:n,ownerState:w},y))}));g.muiSkipListHighlight=!0;const y=g},54617:(t,n,e)=>{"use strict";e.d(n,{Z:()=>x});var r=e(30984),i=e(55559),o=e(66204),s=(e(5356),e(53583)),a=e(58029),u=e(21174),l=e(64883),c=e(61125),h=e(92368),f=e(57369),d=e(55373),p=e(43188);const _=["onEntering"],v=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],m={vertical:"top",horizontal:"right"},g={vertical:"top",horizontal:"left"},y=(0,c.ZP)(l.ZP,{shouldForwardProp:t=>(0,c.FO)(t)||"classes"===t,name:"MuiMenu",slot:"Root",overridesResolver:(t,n)=>n.root})({}),w=(0,c.ZP)(l.XS,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,n)=>n.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),b=(0,c.ZP)(u.Z,{name:"MuiMenu",slot:"List",overridesResolver:(t,n)=>n.list})({outline:0}),x=o.forwardRef((function(t,n){const e=(0,f.Z)({props:t,name:"MuiMenu"}),{autoFocus:u=!0,children:l,disableAutoFocusItem:c=!1,MenuListProps:x={},onClose:k,open:S,PaperProps:C={},PopoverClasses:$,transitionDuration:E="auto",TransitionProps:{onEntering:M}={},variant:z="selectedMenu"}=e,T=(0,i.Z)(e.TransitionProps,_),j=(0,i.Z)(e,v),A=(0,h.default)(),q="rtl"===A.direction,P=(0,r.Z)({},e,{autoFocus:u,disableAutoFocusItem:c,MenuListProps:x,onEntering:M,PaperProps:C,transitionDuration:E,TransitionProps:T,variant:z}),R=(t=>{const{classes:n}=t;return(0,a.Z)({root:["root"],paper:["paper"],list:["list"]},d.Q,n)})(P),L=u&&!c&&S,O=o.useRef(null);let I=-1;return o.Children.map(l,((t,n)=>{o.isValidElement(t)&&(t.props.disabled||("selectedMenu"===z&&t.props.selected||-1===I)&&(I=n))})),(0,p.jsx)(y,(0,r.Z)({onClose:k,anchorOrigin:{vertical:"bottom",horizontal:q?"right":"left"},transformOrigin:q?m:g,slots:{paper:w},slotProps:{paper:(0,r.Z)({},C,{classes:(0,r.Z)({},C.classes,{root:R.paper})})},className:R.root,open:S,ref:n,transitionDuration:E,TransitionProps:(0,r.Z)({onEntering:(t,n)=>{O.current&&O.current.adjustStyleForScrollbar(t,A),M&&M(t,n)}},T),ownerState:P},j,{classes:$,children:(0,p.jsx)(b,(0,r.Z)({onKeyDown:t=>{"Tab"===t.key&&(t.preventDefault(),k&&k(t,"tabKeyDown"))},actions:O,autoFocus:u&&(-1===I||c),autoFocusItem:L,variant:z},x,{className:(0,s.default)(R.list,x.className),children:l}))}))}))},85212:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>r.Z,getMenuUtilityClass:()=>i.Q,menuClasses:()=>i.Z});var r=e(54617),i=e(55373)},55373:(t,n,e)=>{"use strict";e.d(n,{Q:()=>o,Z:()=>s});var r=e(58109),i=e(95201);function o(t){return(0,i.Z)("MuiMenu",t)}const s=(0,r.Z)("MuiMenu",["root","paper","list"])},19453:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>C,getMenuItemUtilityClass:()=>w,menuItemClasses:()=>b});var r=e(55559),i=e(30984),o=e(66204),s=e(53583),a=e(58029),u=e(73330),l=e(61125),c=e(57369),h=e(5524),f=e(52983),d=e(5429),p=e(81597),_=e(92165),v=e(87017),m=e(99700),g=e(58109),y=e(95201);function w(t){return(0,y.Z)("MuiMenuItem",t)}const b=(0,g.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var x=e(43188);const k=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],S=(0,l.ZP)(f.Z,{shouldForwardProp:t=>(0,l.FO)(t)||"classes"===t,name:"MuiMenuItem",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,e.dense&&n.dense,e.divider&&n.divider,!e.disableGutters&&n.gutters]}})((({theme:t,ownerState:n})=>(0,i.Z)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${b.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,u.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${b.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:(0,u.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${b.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:(0,u.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,u.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${b.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${b.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${_.Z.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${_.Z.inset}`]:{marginLeft:52},[`& .${m.Z.root}`]:{marginTop:0,marginBottom:0},[`& .${m.Z.inset}`]:{paddingLeft:36},[`& .${v.Z.root}`]:{minWidth:36}},!n.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},n.dense&&(0,i.Z)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{[`& .${v.Z.root} svg`]:{fontSize:"1.25rem"}})))),C=o.forwardRef((function(t,n){const e=(0,c.Z)({props:t,name:"MuiMenuItem"}),{autoFocus:u=!1,component:l="li",dense:f=!1,divider:_=!1,disableGutters:v=!1,focusVisibleClassName:m,role:g="menuitem",tabIndex:y,className:b}=e,C=(0,r.Z)(e,k),$=o.useContext(h.Z),E=o.useMemo((()=>({dense:f||$.dense||!1,disableGutters:v})),[$.dense,f,v]),M=o.useRef(null);(0,d.Z)((()=>{u&&M.current&&M.current.focus()}),[u]);const z=(0,i.Z)({},e,{dense:E.dense,divider:_,disableGutters:v}),T=(t=>{const{disabled:n,dense:e,divider:r,disableGutters:o,selected:s,classes:u}=t,l={root:["root",e&&"dense",n&&"disabled",!o&&"gutters",r&&"divider",s&&"selected"]},c=(0,a.Z)(l,w,u);return(0,i.Z)({},u,c)})(e),j=(0,p.Z)(M,n);let A;return e.disabled||(A=void 0!==y?y:-1),(0,x.jsx)(h.Z.Provider,{value:E,children:(0,x.jsx)(S,(0,i.Z)({ref:j,role:g,tabIndex:A,component:l,focusVisibleClassName:(0,s.default)(T.focusVisible,m),className:(0,s.default)(T.root,b)},C,{ownerState:z,classes:T}))})}))},21174:(t,n,e)=>{"use strict";e.d(n,{Z:()=>m});var r=e(30984),i=e(55559),o=e(66204),s=(e(5356),e(60617)),a=e(86600);const u=e(35802).Z;var l=e(81597),c=e(5429),h=e(43188);const f=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function d(t,n,e){return t===n?t.firstChild:n&&n.nextElementSibling?n.nextElementSibling:e?null:t.firstChild}function p(t,n,e){return t===n?e?t.firstChild:t.lastChild:n&&n.previousElementSibling?n.previousElementSibling:e?null:t.lastChild}function _(t,n){if(void 0===n)return!0;let e=t.innerText;return void 0===e&&(e=t.textContent),e=e.trim().toLowerCase(),0!==e.length&&(n.repeating?e[0]===n.keys[0]:0===e.indexOf(n.keys.join("")))}function v(t,n,e,r,i,o){let s=!1,a=i(t,n,!!n&&e);for(;a;){if(a===t.firstChild){if(s)return!1;s=!0}const n=!r&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&_(a,o)&&!n)return a.focus(),!0;a=i(t,a,e)}return!1}const m=o.forwardRef((function(t,n){const{actions:e,autoFocus:m=!1,autoFocusItem:g=!1,children:y,className:w,disabledItemsFocusable:b=!1,disableListWrap:x=!1,onKeyDown:k,variant:S="selectedMenu"}=t,C=(0,i.Z)(t,f),$=o.useRef(null),E=o.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,c.Z)((()=>{m&&$.current.focus()}),[m]),o.useImperativeHandle(e,(()=>({adjustStyleForScrollbar:(t,n)=>{const e=!$.current.style.width;if(t.clientHeight<$.current.clientHeight&&e){const e=`${u((0,s.Z)(t))}px`;$.current.style["rtl"===n.direction?"paddingLeft":"paddingRight"]=e,$.current.style.width=`calc(100% + ${e})`}return $.current}})),[]);const M=(0,l.Z)($,n);let z=-1;o.Children.forEach(y,((t,n)=>{o.isValidElement(t)?(t.props.disabled||("selectedMenu"===S&&t.props.selected||-1===z)&&(z=n),z===n&&(t.props.disabled||t.props.muiSkipListHighlight||t.type.muiSkipListHighlight)&&(z+=1,z>=y.length&&(z=-1))):z===n&&(z+=1,z>=y.length&&(z=-1))}));const T=o.Children.map(y,((t,n)=>{if(n===z){const n={};return g&&(n.autoFocus=!0),void 0===t.props.tabIndex&&"selectedMenu"===S&&(n.tabIndex=0),o.cloneElement(t,n)}return t}));return(0,h.jsx)(a.Z,(0,r.Z)({role:"menu",ref:M,className:w,onKeyDown:t=>{const n=$.current,e=t.key,r=(0,s.Z)(n).activeElement;if("ArrowDown"===e)t.preventDefault(),v(n,r,x,b,d);else if("ArrowUp"===e)t.preventDefault(),v(n,r,x,b,p);else if("Home"===e)t.preventDefault(),v(n,null,x,b,d);else if("End"===e)t.preventDefault(),v(n,null,x,b,p);else if(1===e.length){const i=E.current,o=e.toLowerCase(),s=performance.now();i.keys.length>0&&(s-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=s,i.keys.push(o);const a=r&&!i.repeating&&_(r,i);i.previousKeyMatched&&(a||v(n,r,!1,b,d,i))?t.preventDefault():i.previousKeyMatched=!1}k&&k(t)},tabIndex:m?0:-1},C,{children:T}))}))},24511:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>r.Z});var r=e(21174)},42727:(t,n,e)=>{"use strict";e.d(n,{Z:()=>B,W:()=>I});var r=e(55559),i=e(30984),o=e(66204),s=e(53583),a=e(58109),u=e(95201);function l(t){return(0,u.Z)("MuiModal",t)}const c=(0,a.Z)("MuiModal",["root","hidden","backdrop"]);var h=e(52682),f=e(26074),d=e(76734),p=e(74603),_=e(58029),v=e(42457),m=e(40401),g=e(513),y=e(43188);const w=o.forwardRef((function(t,n){const{children:e,container:r,disablePortal:i=!1}=t,[s,a]=o.useState(null),u=(0,h.Z)(o.isValidElement(e)?e.ref:null,n);if((0,m.Z)((()=>{i||a(function(t){return"function"==typeof t?t():t}(r)||document.body)}),[r,i]),(0,m.Z)((()=>{if(s&&!i)return(0,g.Z)(n,s),()=>{(0,g.Z)(n,null)}}),[n,s,i]),i){if(o.isValidElement(e)){const t={ref:u};return o.cloneElement(e,t)}return(0,y.jsx)(o.Fragment,{children:e})}return(0,y.jsx)(o.Fragment,{children:s?v.createPortal(e,s):s})}));var b=e(29332);const x=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function k(t){const n=[],e=[];return Array.from(t.querySelectorAll(x)).forEach(((t,r)=>{const i=function(t){const n=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(n)?"true"===t.contentEditable||("AUDIO"===t.nodeName||"VIDEO"===t.nodeName||"DETAILS"===t.nodeName)&&null===t.getAttribute("tabindex")?0:t.tabIndex:n}(t);-1!==i&&function(t){return!(t.disabled||"INPUT"===t.tagName&&"hidden"===t.type||function(t){if("INPUT"!==t.tagName||"radio"!==t.type)return!1;if(!t.name)return!1;const n=n=>t.ownerDocument.querySelector(`input[type="radio"]${n}`);let e=n(`[name="${t.name}"]:checked`);return e||(e=n(`[name="${t.name}"]`)),e!==t}(t))}(t)&&(0===i?n.push(t):e.push({documentOrder:r,tabIndex:i,node:t}))})),e.sort(((t,n)=>t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex)).map((t=>t.node)).concat(n)}function S(){return!0}const C=function(t){const{children:n,disableAutoFocus:e=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:s=k,isEnabled:a=S,open:u}=t,l=o.useRef(!1),c=o.useRef(null),d=o.useRef(null),p=o.useRef(null),_=o.useRef(null),v=o.useRef(!1),m=o.useRef(null),g=(0,h.Z)(n.ref,m),w=o.useRef(null);o.useEffect((()=>{u&&m.current&&(v.current=!e)}),[e,u]),o.useEffect((()=>{if(!u||!m.current)return;const t=(0,f.Z)(m.current);return m.current.contains(t.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),v.current&&m.current.focus()),()=>{i||(p.current&&p.current.focus&&(l.current=!0,p.current.focus()),p.current=null)}}),[u]),o.useEffect((()=>{if(!u||!m.current)return;const t=(0,f.Z)(m.current),n=n=>{const{current:e}=m;if(null!==e)if(t.hasFocus()&&!r&&a()&&!l.current){if(!e.contains(t.activeElement)){if(n&&_.current!==n.target||t.activeElement!==_.current)_.current=null;else if(null!==_.current)return;if(!v.current)return;let r=[];if(t.activeElement!==c.current&&t.activeElement!==d.current||(r=s(m.current)),r.length>0){var i,o;const t=Boolean((null==(i=w.current)?void 0:i.shiftKey)&&"Tab"===(null==(o=w.current)?void 0:o.key)),n=r[0],e=r[r.length-1];"string"!=typeof n&&"string"!=typeof e&&(t?e.focus():n.focus())}else e.focus()}}else l.current=!1},e=n=>{w.current=n,!r&&a()&&"Tab"===n.key&&t.activeElement===m.current&&n.shiftKey&&(l.current=!0,d.current&&d.current.focus())};t.addEventListener("focusin",n),t.addEventListener("keydown",e,!0);const i=setInterval((()=>{t.activeElement&&"BODY"===t.activeElement.tagName&&n(null)}),50);return()=>{clearInterval(i),t.removeEventListener("focusin",n),t.removeEventListener("keydown",e,!0)}}),[e,r,i,a,u,s]);const b=t=>{null===p.current&&(p.current=t.relatedTarget),v.current=!0};return(0,y.jsxs)(o.Fragment,{children:[(0,y.jsx)("div",{tabIndex:u?0:-1,onFocus:b,ref:c,"data-testid":"sentinelStart"}),o.cloneElement(n,{ref:g,onFocus:t=>{null===p.current&&(p.current=t.relatedTarget),v.current=!0,_.current=t.target;const e=n.props.onFocus;e&&e(t)}}),(0,y.jsx)("div",{tabIndex:u?0:-1,onFocus:b,ref:d,"data-testid":"sentinelEnd"})]})};var $=e(98858);const E={disableDefaultClasses:!1},M=o.createContext(E),z=["children","closeAfterTransition","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],T=new b.Z,j=o.forwardRef((function(t,n){var e,s;const{children:a,closeAfterTransition:u=!1,container:c,disableAutoFocus:v=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:g=!1,disablePortal:x=!1,disableRestoreFocus:k=!1,disableScrollLock:S=!1,hideBackdrop:E=!1,keepMounted:j=!1,manager:A=T,onBackdropClick:q,onClose:P,onKeyDown:R,open:L,onTransitionEnter:O,onTransitionExited:I,slotProps:D={},slots:N={}}=t,B=(0,r.Z)(t,z),F=A,[U,H]=o.useState(!L),G=o.useRef({}),W=o.useRef(null),V=o.useRef(null),Z=(0,h.Z)(V,n),X=function(t){return!!t&&t.props.hasOwnProperty("in")}(a),Y=null==(e=t["aria-hidden"])||e,K=()=>(G.current.modalRef=V.current,G.current.mountNode=W.current,G.current),J=()=>{F.mount(K(),{disableScrollLock:S}),V.current&&(V.current.scrollTop=0)},Q=(0,d.Z)((()=>{const t=function(t){return"function"==typeof t?t():t}(c)||(0,f.Z)(W.current).body;F.add(K(),t),V.current&&J()})),tt=o.useCallback((()=>F.isTopModal(K())),[F]),nt=(0,d.Z)((t=>{W.current=t,t&&V.current&&(L&&tt()?J():(0,b.G)(V.current,Y))})),et=o.useCallback((()=>{F.remove(K(),Y)}),[F,Y]);o.useEffect((()=>()=>{et()}),[et]),o.useEffect((()=>{L?Q():X&&u||et()}),[L,et,X,u,Q]);const rt=(0,i.Z)({},t,{closeAfterTransition:u,disableAutoFocus:v,disableEnforceFocus:m,disableEscapeKeyDown:g,disablePortal:x,disableRestoreFocus:k,disableScrollLock:S,exited:U,hideBackdrop:E,keepMounted:j}),it=(t=>{const{open:n,exited:e}=t,r={root:["root",!n&&e&&"hidden"],backdrop:["backdrop"]};return(0,_.Z)(r,function(t){const{disableDefaultClasses:n}=o.useContext(M);return e=>n?"":t(e)}(l))})(rt),ot={};void 0===a.props.tabIndex&&(ot.tabIndex="-1"),X&&(ot.onEnter=(0,p.Z)((()=>{H(!1),O&&O()}),a.props.onEnter),ot.onExited=(0,p.Z)((()=>{H(!0),I&&I(),u&&et()}),a.props.onExited));const st=null!=(s=N.root)?s:"div",at=(0,$.Z)({elementType:st,externalSlotProps:D.root,externalForwardedProps:B,additionalProps:{ref:Z,role:"presentation",onKeyDown:t=>{R&&R(t),"Escape"===t.key&&tt()&&(g||(t.stopPropagation(),P&&P(t,"escapeKeyDown")))}},className:it.root,ownerState:rt}),ut=N.backdrop,lt=(0,$.Z)({elementType:ut,externalSlotProps:D.backdrop,additionalProps:{"aria-hidden":!0,onClick:t=>{t.target===t.currentTarget&&(q&&q(t),P&&P(t,"backdropClick"))},open:L},className:it.backdrop,ownerState:rt});return j||L||X&&!U?(0,y.jsx)(w,{ref:nt,container:c,disablePortal:x,children:(0,y.jsxs)(st,(0,i.Z)({},at,{children:[!E&&ut?(0,y.jsx)(ut,(0,i.Z)({},lt)):null,(0,y.jsx)(C,{disableEnforceFocus:m,disableAutoFocus:v,disableRestoreFocus:k,isEnabled:tt,open:L,children:o.cloneElement(a,ot)})]}))}):null}));var A=e(34582),q=e(38094),P=e(61125),R=e(57369),L=e(8570);const O=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","open","slotProps","slots","theme"],I=c,D=(0,P.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,!e.open&&e.exited&&n.hidden]}})((({theme:t,ownerState:n})=>(0,i.Z)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!n.open&&n.exited&&{visibility:"hidden"}))),N=(0,P.ZP)(L.Z,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,n)=>n.backdrop})({zIndex:-1}),B=o.forwardRef((function(t,n){var e,a,u,l,c,h;const f=(0,R.Z)({name:"MuiModal",props:t}),{BackdropComponent:d=N,BackdropProps:p,classes:_,className:v,closeAfterTransition:m=!1,children:g,container:w,component:b,components:x={},componentsProps:k={},disableAutoFocus:S=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:$=!1,disablePortal:E=!1,disableRestoreFocus:M=!1,disableScrollLock:z=!1,hideBackdrop:T=!1,keepMounted:P=!1,onBackdropClick:L,onClose:I,open:B,slotProps:F,slots:U,theme:H}=f,G=(0,r.Z)(f,O),[W,V]=o.useState(!0),Z={container:w,closeAfterTransition:m,disableAutoFocus:S,disableEnforceFocus:C,disableEscapeKeyDown:$,disablePortal:E,disableRestoreFocus:M,disableScrollLock:z,hideBackdrop:T,keepMounted:P,onBackdropClick:L,onClose:I,open:B},X=(0,i.Z)({},f,Z,{exited:W}),Y=null!=(e=null!=(a=null==U?void 0:U.root)?a:x.Root)?e:D,K=null!=(u=null!=(l=null==U?void 0:U.backdrop)?l:x.Backdrop)?u:d,J=null!=(c=null==F?void 0:F.root)?c:k.root,Q=null!=(h=null==F?void 0:F.backdrop)?h:k.backdrop;return(0,y.jsx)(j,(0,i.Z)({slots:{root:Y,backdrop:K},slotProps:{root:()=>(0,i.Z)({},(0,A.Z)(J,X),!(0,q.Z)(Y)&&{as:b,theme:H},{className:(0,s.default)(v,null==J?void 0:J.className,null==_?void 0:_.root,!X.open&&X.exited&&(null==_?void 0:_.hidden))}),backdrop:()=>(0,i.Z)({},p,(0,A.Z)(Q,X),{className:(0,s.default)(null==Q?void 0:Q.className,null==p?void 0:p.className,null==_?void 0:_.backdrop)})},onTransitionEnter:()=>V(!1),onTransitionExited:()=>V(!0),ref:n},G,Z,{children:g}))}))},88976:(t,n,e)=>{"use strict";e.r(n),e.d(n,{ModalManager:()=>r.Z,default:()=>i.Z,modalClasses:()=>i.W});var r=e(29332),i=e(42727)},20713:(t,n,e)=>{"use strict";e.d(n,{Z:()=>E});var r,i=e(55559),o=e(30984),s=e(66204),a=e(58029),u=e(61125),l=e(43188);const c=["children","classes","className","label","notched"],h=(0,u.ZP)("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),f=(0,u.ZP)("legend")((({ownerState:t,theme:n})=>(0,o.Z)({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:n.transitions.create("width",{duration:150,easing:n.transitions.easing.easeOut})},t.withLabel&&(0,o.Z)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:n.transitions.create("max-width",{duration:50,easing:n.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:n.transitions.create("max-width",{duration:100,easing:n.transitions.easing.easeOut,delay:50})}))));var d=e(55834),p=e(92407),_=e(58109),v=e(95201),m=e(33872);function g(t){return(0,v.Z)("MuiOutlinedInput",t)}const y=(0,o.Z)({},m.Z,(0,_.Z)("MuiOutlinedInput",["root","notchedOutline","input"]));var w=e(12303),b=e(57369);const x=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],k=(0,u.ZP)(w.Ej,{shouldForwardProp:t=>(0,u.FO)(t)||"classes"===t,name:"MuiOutlinedInput",slot:"Root",overridesResolver:w.Gx})((({theme:t,ownerState:n})=>{const e="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,o.Z)({position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${y.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${y.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}},[`&.${y.focused} .${y.notchedOutline}`]:{borderColor:(t.vars||t).palette[n.color].main,borderWidth:2},[`&.${y.error} .${y.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${y.disabled} .${y.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}},n.startAdornment&&{paddingLeft:14},n.endAdornment&&{paddingRight:14},n.multiline&&(0,o.Z)({padding:"16.5px 14px"},"small"===n.size&&{padding:"8.5px 14px"}))})),S=(0,u.ZP)((function(t){const{className:n,label:e,notched:s}=t,a=(0,i.Z)(t,c),u=null!=e&&""!==e,d=(0,o.Z)({},t,{notched:s,withLabel:u});return(0,l.jsx)(h,(0,o.Z)({"aria-hidden":!0,className:n,ownerState:d},a,{children:(0,l.jsx)(f,{ownerState:d,children:u?(0,l.jsx)("span",{children:e}):r||(r=(0,l.jsx)("span",{className:"notranslate",children:"​"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,n)=>n.notchedOutline})((({theme:t})=>{const n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:n}})),C=(0,u.ZP)(w.rA,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:w._o})((({theme:t,ownerState:n})=>(0,o.Z)({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===n.size&&{padding:"8.5px 14px"},n.multiline&&{padding:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0}))),$=s.forwardRef((function(t,n){var e,r,u,c,h;const f=(0,b.Z)({props:t,name:"MuiOutlinedInput"}),{components:_={},fullWidth:v=!1,inputComponent:m="input",label:y,multiline:$=!1,notched:E,slots:M={},type:z="text"}=f,T=(0,i.Z)(f,x),j=(t=>{const{classes:n}=t,e=(0,a.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},g,n);return(0,o.Z)({},n,e)})(f),A=(0,d.Z)(),q=(0,p.Z)({props:f,muiFormControl:A,states:["required"]}),P=(0,o.Z)({},f,{color:q.color||"primary",disabled:q.disabled,error:q.error,focused:q.focused,formControl:A,fullWidth:v,hiddenLabel:q.hiddenLabel,multiline:$,size:q.size,type:z}),R=null!=(e=null!=(r=M.root)?r:_.Root)?e:k,L=null!=(u=null!=(c=M.input)?c:_.Input)?u:C;return(0,l.jsx)(w.ZP,(0,o.Z)({slots:{root:R,input:L},renderSuffix:t=>(0,l.jsx)(S,{ownerState:P,className:j.notchedOutline,label:null!=y&&""!==y&&q.required?h||(h=(0,l.jsxs)(s.Fragment,{children:[y," ","*"]})):y,notched:void 0!==E?E:Boolean(t.startAdornment||t.filled||t.focused)}),fullWidth:v,inputComponent:m,multiline:$,ref:n,type:z},T,{classes:(0,o.Z)({},j,{notchedOutline:null})}))}));$.muiName="Input";const E=$},53601:(t,n,e)=>{"use strict";e.d(n,{Z:()=>v});var r=e(55559),i=e(30984),o=e(66204),s=e(53583),a=e(58029),u=e(73330),l=e(61125);const c=t=>{let n;return n=t<1?5.11916*t**2:4.5*Math.log(t+1)+2,(n/100).toFixed(2)};var h=e(57369),f=e(90515),d=e(43188);const p=["className","component","elevation","square","variant"],_=(0,l.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,n[e.variant],!e.square&&n.rounded,"elevation"===e.variant&&n[`elevation${e.elevation}`]]}})((({theme:t,ownerState:n})=>{var e;return(0,i.Z)({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!n.square&&{borderRadius:t.shape.borderRadius},"outlined"===n.variant&&{border:`1px solid ${(t.vars||t).palette.divider}`},"elevation"===n.variant&&(0,i.Z)({boxShadow:(t.vars||t).shadows[n.elevation]},!t.vars&&"dark"===t.palette.mode&&{backgroundImage:`linear-gradient(${(0,u.Fq)("#fff",c(n.elevation))}, ${(0,u.Fq)("#fff",c(n.elevation))})`},t.vars&&{backgroundImage:null==(e=t.vars.overlays)?void 0:e[n.elevation]}))})),v=o.forwardRef((function(t,n){const e=(0,h.Z)({props:t,name:"MuiPaper"}),{className:o,component:u="div",elevation:l=1,square:c=!1,variant:v="elevation"}=e,m=(0,r.Z)(e,p),g=(0,i.Z)({},e,{component:u,elevation:l,square:c,variant:v}),y=(t=>{const{square:n,elevation:e,variant:r,classes:i}=t,o={root:["root",r,!n&&"rounded","elevation"===r&&`elevation${e}`]};return(0,a.Z)(o,f.J,i)})(g);return(0,d.jsx)(_,(0,i.Z)({as:u,ownerState:g,className:(0,s.default)(y.root,o),ref:n},m))}))},63155:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>r.Z,getPaperUtilityClass:()=>i.J,paperClasses:()=>i.Z});var r=e(53601),i=e(90515)},90515:(t,n,e)=>{"use strict";e.d(n,{J:()=>o,Z:()=>s});var r=e(58109),i=e(95201);function o(t){return(0,i.Z)("MuiPaper",t)}const s=(0,r.Z)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"])},64883:(t,n,e)=>{"use strict";e.d(n,{Pg:()=>M,XS:()=>z,ZP:()=>T,oJ:()=>S,pB:()=>C});var r=e(30984),i=e(55559),o=e(66204),s=e(53583),a=e(58029),u=e(98858),l=e(38094),c=e(61125),h=e(57369),f=e(78101),d=e(60617),p=e(19514),_=e(81597),v=e(23160),m=e(42727),g=e(53601),y=e(22349),w=e(43188);const b=["onEntering"],x=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"],k=["slotProps"];function S(t,n){let e=0;return"number"==typeof n?e=n:"center"===n?e=t.height/2:"bottom"===n&&(e=t.height),e}function C(t,n){let e=0;return"number"==typeof n?e=n:"center"===n?e=t.width/2:"right"===n&&(e=t.width),e}function $(t){return[t.horizontal,t.vertical].map((t=>"number"==typeof t?`${t}px`:t)).join(" ")}function E(t){return"function"==typeof t?t():t}const M=(0,c.ZP)(m.Z,{name:"MuiPopover",slot:"Root",overridesResolver:(t,n)=>n.root})({}),z=(0,c.ZP)(g.Z,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,n)=>n.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),T=o.forwardRef((function(t,n){var e,c,m;const g=(0,h.Z)({props:t,name:"MuiPopover"}),{action:T,anchorEl:j,anchorOrigin:A={vertical:"top",horizontal:"left"},anchorPosition:q,anchorReference:P="anchorEl",children:R,className:L,container:O,elevation:I=8,marginThreshold:D=16,open:N,PaperProps:B={},slots:F,slotProps:U,transformOrigin:H={vertical:"top",horizontal:"left"},TransitionComponent:G=v.Z,transitionDuration:W="auto",TransitionProps:{onEntering:V}={}}=g,Z=(0,i.Z)(g.TransitionProps,b),X=(0,i.Z)(g,x),Y=null!=(e=null==U?void 0:U.paper)?e:B,K=o.useRef(),J=(0,_.Z)(K,Y.ref),Q=(0,r.Z)({},g,{anchorOrigin:A,anchorReference:P,elevation:I,marginThreshold:D,externalPaperSlotProps:Y,transformOrigin:H,TransitionComponent:G,transitionDuration:W,TransitionProps:Z}),tt=(t=>{const{classes:n}=t;return(0,a.Z)({root:["root"],paper:["paper"]},y.s,n)})(Q),nt=o.useCallback((()=>{if("anchorPosition"===P)return q;const t=E(j),n=(t&&1===t.nodeType?t:(0,d.Z)(K.current).body).getBoundingClientRect();return{top:n.top+S(n,A.vertical),left:n.left+C(n,A.horizontal)}}),[j,A.horizontal,A.vertical,q,P]),et=o.useCallback((t=>({vertical:S(t,H.vertical),horizontal:C(t,H.horizontal)})),[H.horizontal,H.vertical]),rt=o.useCallback((t=>{const n={width:t.offsetWidth,height:t.offsetHeight},e=et(n);if("none"===P)return{top:null,left:null,transformOrigin:$(e)};const r=nt();let i=r.top-e.vertical,o=r.left-e.horizontal;const s=i+n.height,a=o+n.width,u=(0,p.Z)(E(j)),l=u.innerHeight-D,c=u.innerWidth-D;if(il){const t=s-l;i-=t,e.vertical+=t}if(oc){const t=a-c;o-=t,e.horizontal+=t}return{top:`${Math.round(i)}px`,left:`${Math.round(o)}px`,transformOrigin:$(e)}}),[j,P,nt,et,D]),[it,ot]=o.useState(N),st=o.useCallback((()=>{const t=K.current;if(!t)return;const n=rt(t);null!==n.top&&(t.style.top=n.top),null!==n.left&&(t.style.left=n.left),t.style.transformOrigin=n.transformOrigin,ot(!0)}),[rt]);o.useEffect((()=>{N&&st()})),o.useImperativeHandle(T,(()=>N?{updatePosition:()=>{st()}}:null),[N,st]),o.useEffect((()=>{if(!N)return;const t=(0,f.Z)((()=>{st()})),n=(0,p.Z)(j);return n.addEventListener("resize",t),()=>{t.clear(),n.removeEventListener("resize",t)}}),[j,N,st]);let at=W;"auto"!==W||G.muiSupportAuto||(at=void 0);const ut=O||(j?(0,d.Z)(E(j)).body:void 0),lt=null!=(c=null==F?void 0:F.root)?c:M,ct=null!=(m=null==F?void 0:F.paper)?m:z,ht=(0,u.Z)({elementType:ct,externalSlotProps:(0,r.Z)({},Y,{style:it?Y.style:(0,r.Z)({},Y.style,{opacity:0})}),additionalProps:{elevation:I,ref:J},ownerState:Q,className:(0,s.default)(tt.paper,null==Y?void 0:Y.className)}),ft=(0,u.Z)({elementType:lt,externalSlotProps:(null==U?void 0:U.root)||{},externalForwardedProps:X,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:ut,open:N},ownerState:Q,className:(0,s.default)(tt.root,L)}),{slotProps:dt}=ft,pt=(0,i.Z)(ft,k);return(0,w.jsx)(lt,(0,r.Z)({},pt,!(0,l.Z)(lt)&&{slotProps:dt},{children:(0,w.jsx)(G,(0,r.Z)({appear:!0,in:N,onEntering:(t,n)=>{V&&V(t,n),st()},onExited:()=>{ot(!1)},timeout:at},Z,{children:(0,w.jsx)(ct,(0,r.Z)({},ht,{children:R}))}))}))}))},97827:(t,n,e)=>{"use strict";e.r(n),e.d(n,{PopoverPaper:()=>r.XS,PopoverRoot:()=>r.Pg,default:()=>r.ZP,getOffsetLeft:()=>r.pB,getOffsetTop:()=>r.oJ,getPopoverUtilityClass:()=>i.s,popoverClasses:()=>i.Z});var r=e(64883),i=e(22349)},22349:(t,n,e)=>{"use strict";e.d(n,{Z:()=>s,s:()=>o});var r=e(58109),i=e(95201);function o(t){return(0,i.Z)("MuiPopover",t)}const s=(0,r.Z)("MuiPopover",["root","paper"])},625:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>j,getRadioUtilityClass:()=>C,radioClasses:()=>$});var r=e(55559),i=e(30984),o=e(66204),s=e(53583),a=e(58029),u=e(73330),l=e(68892),c=e(57369),h=e(50968),f=e(43188);const d=(0,h.Z)((0,f.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),p=(0,h.Z)((0,f.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked");var _=e(61125);const v=(0,_.ZP)("span")({position:"relative",display:"flex"}),m=(0,_.ZP)(d)({transform:"scale(1)"}),g=(0,_.ZP)(p)((({theme:t,ownerState:n})=>(0,i.Z)({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest})},n.checked&&{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})}))),y=function(t){const{checked:n=!1,classes:e={},fontSize:r}=t,o=(0,i.Z)({},t,{checked:n});return(0,f.jsxs)(v,{className:e.root,ownerState:o,children:[(0,f.jsx)(m,{fontSize:r,className:e.background,ownerState:o}),(0,f.jsx)(g,{fontSize:r,className:e.dot,ownerState:o})]})};var w=e(40118),b=e(91882),x=e(66021),k=e(58109),S=e(95201);function C(t){return(0,S.Z)("MuiRadio",t)}const $=(0,k.Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]),E=["checked","checkedIcon","color","icon","name","onChange","size","className"],M=(0,_.ZP)(l.Z,{shouldForwardProp:t=>(0,_.FO)(t)||"classes"===t,name:"MuiRadio",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,n[`color${(0,w.Z)(e.color)}`]]}})((({theme:t,ownerState:n})=>(0,i.Z)({color:(t.vars||t).palette.text.secondary},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${"default"===n.color?t.vars.palette.action.activeChannel:t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,u.Fq)("default"===n.color?t.palette.action.active:t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&{[`&.${$.checked}`]:{color:(t.vars||t).palette[n.color].main}},{[`&.${$.disabled}`]:{color:(t.vars||t).palette.action.disabled}}))),z=(0,f.jsx)(y,{checked:!0}),T=(0,f.jsx)(y,{}),j=o.forwardRef((function(t,n){var e,u;const l=(0,c.Z)({props:t,name:"MuiRadio"}),{checked:h,checkedIcon:d=z,color:p="primary",icon:_=T,name:v,onChange:m,size:g="medium",className:y}=l,k=(0,r.Z)(l,E),S=(0,i.Z)({},l,{color:p,size:g}),$=(t=>{const{classes:n,color:e}=t,r={root:["root",`color${(0,w.Z)(e)}`]};return(0,i.Z)({},n,(0,a.Z)(r,C,n))})(S),j=(0,x.Z)();let A=h;const q=(0,b.Z)(m,j&&j.onChange);let P=v;var R,L;return j&&(void 0===A&&(R=j.value,A="object"==typeof(L=l.value)&&null!==L?R===L:String(R)===String(L)),void 0===P&&(P=j.name)),(0,f.jsx)(M,(0,i.Z)({type:"radio",icon:o.cloneElement(_,{fontSize:null!=(e=T.props.fontSize)?e:g}),checkedIcon:o.cloneElement(d,{fontSize:null!=(u=z.props.fontSize)?u:g}),ownerState:S,classes:$,name:P,checked:A,onChange:q,ref:n,className:(0,s.default)($.root,y)},k))}))},54855:(t,n,e)=>{"use strict";e.d(n,{Z:()=>r});const r=e(66204).createContext(void 0)},88794:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>S,useRadioGroup:()=>C.Z});var r=e(30984),i=e(55559),o=e(66204),s=e(53583),a=e(58029),u=e(61125),l=e(57369),c=e(58109),h=e(95201);function f(t){return(0,h.Z)("MuiFormGroup",t)}(0,c.Z)("MuiFormGroup",["root","row","error"]);var d=e(55834),p=e(92407),_=e(43188);const v=["className","row"],m=(0,u.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,e.row&&n.row]}})((({ownerState:t})=>(0,r.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},t.row&&{flexDirection:"row"}))),g=o.forwardRef((function(t,n){const e=(0,l.Z)({props:t,name:"MuiFormGroup"}),{className:o,row:u=!1}=e,c=(0,i.Z)(e,v),h=(0,d.Z)(),g=(0,p.Z)({props:e,muiFormControl:h,states:["error"]}),y=(0,r.Z)({},e,{row:u,error:g.error}),w=(t=>{const{classes:n,row:e,error:r}=t,i={root:["root",e&&"row",r&&"error"]};return(0,a.Z)(i,f,n)})(y);return(0,_.jsx)(m,(0,r.Z)({className:(0,s.default)(w.root,o),ownerState:y,ref:n},c))}));var y=e(81597),w=e(66262),b=e(54855),x=e(79673);const k=["actions","children","defaultValue","name","onChange","value"],S=o.forwardRef((function(t,n){const{actions:e,children:s,defaultValue:a,name:u,onChange:l,value:c}=t,h=(0,i.Z)(t,k),f=o.useRef(null),[d,p]=(0,w.Z)({controlled:c,default:a,name:"RadioGroup"});o.useImperativeHandle(e,(()=>({focus:()=>{let t=f.current.querySelector("input:not(:disabled):checked");t||(t=f.current.querySelector("input:not(:disabled)")),t&&t.focus()}})),[]);const v=(0,y.Z)(n,f),m=(0,x.Z)(u),S=o.useMemo((()=>({name:m,onChange(t){p(t.target.value),l&&l(t,t.target.value)},value:d})),[m,l,p,d]);return(0,_.jsx)(b.Z.Provider,{value:S,children:(0,_.jsx)(g,(0,r.Z)({role:"radiogroup",ref:v},h,{children:s}))})}));var C=e(66021)},66021:(t,n,e)=>{"use strict";e.d(n,{Z:()=>o});var r=e(66204),i=e(54855);function o(){return r.useContext(i.Z)}},31574:(t,n,e)=>{"use strict";e.d(n,{Z:()=>Y});var r=e(30984),i=e(55559),o=e(66204),s=e(53583),a=e(53709),u=e(89274),l=(e(5356),e(58029)),c=e(60617),h=e(40118),f=e(54617),d=e(58109),p=e(95201);function _(t){return(0,p.Z)("MuiNativeSelect",t)}const v=(0,d.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var m=e(61125),g=e(43188);const y=["className","disabled","error","IconComponent","inputRef","variant"],w=({ownerState:t,theme:n})=>(0,r.Z)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,r.Z)({},n.vars?{backgroundColor:`rgba(${n.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===n.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${v.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(n.vars||n).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===t.variant&&{"&&&":{paddingRight:32}},"outlined"===t.variant&&{borderRadius:(n.vars||n).shape.borderRadius,"&:focus":{borderRadius:(n.vars||n).shape.borderRadius},"&&&":{paddingRight:32}}),b=(0,m.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:m.FO,overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.select,n[e.variant],e.error&&n.error,{[`&.${v.multiple}`]:n.multiple}]}})(w),x=({ownerState:t,theme:n})=>(0,r.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(n.vars||n).palette.action.active,[`&.${v.disabled}`]:{color:(n.vars||n).palette.action.disabled}},t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7}),k=(0,m.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.icon,e.variant&&n[`icon${(0,h.Z)(e.variant)}`],e.open&&n.iconOpen]}})(x),S=o.forwardRef((function(t,n){const{className:e,disabled:a,error:u,IconComponent:c,inputRef:f,variant:d="standard"}=t,p=(0,i.Z)(t,y),v=(0,r.Z)({},t,{disabled:a,variant:d,error:u}),m=(t=>{const{classes:n,variant:e,disabled:r,multiple:i,open:o,error:s}=t,a={select:["select",e,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${(0,h.Z)(e)}`,o&&"iconOpen",r&&"disabled"]};return(0,l.Z)(a,_,n)})(v);return(0,g.jsxs)(o.Fragment,{children:[(0,g.jsx)(b,(0,r.Z)({ownerState:v,className:(0,s.default)(m.select,e),disabled:a,ref:f||n},p)),t.multiple?null:(0,g.jsx)(k,{as:c,ownerState:v,className:m.icon})]})}));var C,$=e(43716),E=e(81597),M=e(66262),z=e(37617);const T=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],j=(0,m.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[{[`&.${z.Z.select}`]:n.select},{[`&.${z.Z.select}`]:n[e.variant]},{[`&.${z.Z.error}`]:n.error},{[`&.${z.Z.multiple}`]:n.multiple}]}})(w,{[`&.${z.Z.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),A=(0,m.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.icon,e.variant&&n[`icon${(0,h.Z)(e.variant)}`],e.open&&n.iconOpen]}})(x),q=(0,m.ZP)("input",{shouldForwardProp:t=>(0,m.Dz)(t)&&"classes"!==t,name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,n)=>n.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function P(t,n){return"object"==typeof n&&null!==n?t===n:String(t)===String(n)}function R(t){return null==t||"string"==typeof t&&!t.trim()}const L=o.forwardRef((function(t,n){const{"aria-describedby":e,"aria-label":a,autoFocus:d,autoWidth:p,children:_,className:v,defaultOpen:m,defaultValue:y,disabled:w,displayEmpty:b,error:x=!1,IconComponent:k,inputRef:S,labelId:L,MenuProps:O={},multiple:I,name:D,onBlur:N,onChange:B,onClose:F,onFocus:U,onOpen:H,open:G,readOnly:W,renderValue:V,SelectDisplayProps:Z={},tabIndex:X,value:Y,variant:K="standard"}=t,J=(0,i.Z)(t,T),[Q,tt]=(0,M.Z)({controlled:Y,default:y,name:"Select"}),[nt,et]=(0,M.Z)({controlled:G,default:m,name:"Select"}),rt=o.useRef(null),it=o.useRef(null),[ot,st]=o.useState(null),{current:at}=o.useRef(null!=G),[ut,lt]=o.useState(),ct=(0,E.Z)(n,S),ht=o.useCallback((t=>{it.current=t,t&&st(t)}),[]),ft=null==ot?void 0:ot.parentNode;o.useImperativeHandle(ct,(()=>({focus:()=>{it.current.focus()},node:rt.current,value:Q})),[Q]),o.useEffect((()=>{m&&nt&&ot&&!at&&(lt(p?null:ft.clientWidth),it.current.focus())}),[ot,p]),o.useEffect((()=>{d&&it.current.focus()}),[d]),o.useEffect((()=>{if(!L)return;const t=(0,c.Z)(it.current).getElementById(L);if(t){const n=()=>{getSelection().isCollapsed&&it.current.focus()};return t.addEventListener("click",n),()=>{t.removeEventListener("click",n)}}}),[L]);const dt=(t,n)=>{t?H&&H(n):F&&F(n),at||(lt(p?null:ft.clientWidth),et(t))},pt=o.Children.toArray(_),_t=t=>n=>{let e;if(n.currentTarget.hasAttribute("tabindex")){if(I){e=Array.isArray(Q)?Q.slice():[];const n=Q.indexOf(t.props.value);-1===n?e.push(t.props.value):e.splice(n,1)}else e=t.props.value;if(t.props.onClick&&t.props.onClick(n),Q!==e&&(tt(e),B)){const r=n.nativeEvent||n,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:e,name:D}}),B(i,t)}I||dt(!1,n)}},vt=null!==ot&&nt;let mt,gt;delete J["aria-invalid"];const yt=[];let wt=!1,bt=!1;((0,$.vd)({value:Q})||b)&&(V?mt=V(Q):wt=!0);const xt=pt.map((t=>{if(!o.isValidElement(t))return null;let n;if(I){if(!Array.isArray(Q))throw new Error((0,u.Z)(2));n=Q.some((n=>P(n,t.props.value))),n&&wt&&yt.push(t.props.children)}else n=P(Q,t.props.value),n&&wt&&(gt=t.props.children);return n&&(bt=!0),o.cloneElement(t,{"aria-selected":n?"true":"false",onClick:_t(t),onKeyUp:n=>{" "===n.key&&n.preventDefault(),t.props.onKeyUp&&t.props.onKeyUp(n)},role:"option",selected:n,value:void 0,"data-value":t.props.value})}));wt&&(mt=I?0===yt.length?null:yt.reduce(((t,n,e)=>(t.push(n),e{const{classes:n,variant:e,disabled:r,multiple:i,open:o,error:s}=t,a={select:["select",e,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${(0,h.Z)(e)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return(0,l.Z)(a,z.o,n)})($t);return(0,g.jsxs)(o.Fragment,{children:[(0,g.jsx)(j,(0,r.Z)({ref:ht,tabIndex:kt,role:"button","aria-disabled":w?"true":void 0,"aria-expanded":vt?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[L,Ct].filter(Boolean).join(" ")||void 0,"aria-describedby":e,onKeyDown:t=>{W||-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(t.key)&&(t.preventDefault(),dt(!0,t))},onMouseDown:w||W?null:t=>{0===t.button&&(t.preventDefault(),it.current.focus(),dt(!0,t))},onBlur:t=>{!vt&&N&&(Object.defineProperty(t,"target",{writable:!0,value:{value:Q,name:D}}),N(t))},onFocus:U},Z,{ownerState:$t,className:(0,s.default)(Z.className,Et.select,v),id:Ct,children:R(mt)?C||(C=(0,g.jsx)("span",{className:"notranslate",children:"​"})):mt})),(0,g.jsx)(q,(0,r.Z)({"aria-invalid":x,value:Array.isArray(Q)?Q.join(","):Q,name:D,ref:rt,"aria-hidden":!0,onChange:t=>{const n=pt.find((n=>n.props.value===t.target.value));void 0!==n&&(tt(n.props.value),B&&B(t,n))},tabIndex:-1,disabled:w,className:Et.nativeInput,autoFocus:d,ownerState:$t},J)),(0,g.jsx)(A,{as:k,className:Et.icon,ownerState:$t}),(0,g.jsx)(f.Z,(0,r.Z)({id:`menu-${D||""}`,anchorEl:ft,open:vt,onClose:t=>{dt(!1,t)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},O,{MenuListProps:(0,r.Z)({"aria-labelledby":L,role:"listbox",disableListWrap:!0},O.MenuListProps),PaperProps:(0,r.Z)({},O.PaperProps,{style:(0,r.Z)({minWidth:St},null!=O.PaperProps?O.PaperProps.style:null)}),children:xt}))]})}));var O=e(92407),I=e(55834);const D=(0,e(50968).Z)((0,g.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");var N=e(61054),B=e(60381),F=e(20713),U=e(57369);const H=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],G={name:"MuiSelect",overridesResolver:(t,n)=>n.root,shouldForwardProp:t=>(0,m.FO)(t)&&"variant"!==t,slot:"Root"},W=(0,m.ZP)(N.Z,G)(""),V=(0,m.ZP)(F.Z,G)(""),Z=(0,m.ZP)(B.Z,G)(""),X=o.forwardRef((function(t,n){const e=(0,U.Z)({name:"MuiSelect",props:t}),{autoWidth:u=!1,children:l,classes:c={},className:h,defaultOpen:f=!1,displayEmpty:d=!1,IconComponent:p=D,id:_,input:v,inputProps:m,label:y,labelId:w,MenuProps:b,multiple:x=!1,native:k=!1,onClose:C,onOpen:$,open:M,renderValue:z,SelectDisplayProps:T,variant:j="outlined"}=e,A=(0,i.Z)(e,H),q=k?S:L,P=(0,I.Z)(),R=(0,O.Z)({props:e,muiFormControl:P,states:["variant","error"]}),N=R.variant||j,B=(0,r.Z)({},e,{variant:N,classes:c}),F=(t=>{const{classes:n}=t;return n})(B),G=v||{standard:(0,g.jsx)(W,{ownerState:B}),outlined:(0,g.jsx)(V,{label:y,ownerState:B}),filled:(0,g.jsx)(Z,{ownerState:B})}[N],X=(0,E.Z)(n,G.ref);return(0,g.jsx)(o.Fragment,{children:o.cloneElement(G,(0,r.Z)({inputComponent:q,inputProps:(0,r.Z)({children:l,error:R.error,IconComponent:p,variant:N,type:void 0,multiple:x},k?{id:_}:{autoWidth:u,defaultOpen:f,displayEmpty:d,labelId:w,MenuProps:b,onClose:C,onOpen:$,open:M,renderValue:z,SelectDisplayProps:(0,r.Z)({id:_},T)},m,{classes:m?(0,a.Z)(F,m.classes):F},v?v.props.inputProps:{})},x&&k&&"outlined"===N?{notched:!0}:{},{ref:X,className:(0,s.default)(G.props.className,h)},!v&&{variant:N},A))})}));X.muiName="Select";const Y=X},12363:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>r.Z,getSelectUtilityClasses:()=>i.o,selectClasses:()=>i.Z});var r=e(31574),i=e(37617)},37617:(t,n,e)=>{"use strict";e.d(n,{Z:()=>s,o:()=>o});var r=e(58109),i=e(95201);function o(t){return(0,i.Z)("MuiSelect",t)}const s=(0,r.Z)("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"])},93345:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>L,getSnackbarUtilityClass:()=>j,snackbarClasses:()=>A});var r=e(55559),i=e(30984),o=e(66204),s=e(58029),a=e(98858),u=e(52682),l=e(76734),c=e(26074),h=e(43188);function f(t){return t.substring(2).toLowerCase()}const d=function(t){const{children:n,disableReactTree:e=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:s="onTouchEnd"}=t,a=o.useRef(!1),d=o.useRef(null),p=o.useRef(!1),_=o.useRef(!1);o.useEffect((()=>(setTimeout((()=>{p.current=!0}),0),()=>{p.current=!1})),[]);const v=(0,u.Z)(n.ref,d),m=(0,l.Z)((t=>{const n=_.current;_.current=!1;const r=(0,c.Z)(d.current);if(!p.current||!d.current||"clientX"in t&&function(t,n){return n.documentElement.clientWidth-1:!r.documentElement.contains(t.target)||d.current.contains(t.target),o||!e&&n||i(t)})),g=t=>e=>{_.current=!0;const r=n.props[t];r&&r(e)},y={ref:v};return!1!==s&&(y[s]=g(s)),o.useEffect((()=>{if(!1!==s){const t=f(s),n=(0,c.Z)(d.current),e=()=>{a.current=!0};return n.addEventListener(t,m),n.addEventListener("touchmove",e),()=>{n.removeEventListener(t,m),n.removeEventListener("touchmove",e)}}}),[m,s]),!1!==r&&(y[r]=g(r)),o.useEffect((()=>{if(!1!==r){const t=f(r),n=(0,c.Z)(d.current);return n.addEventListener(t,m),()=>{n.removeEventListener(t,m)}}}),[m,r]),(0,h.jsx)(o.Fragment,{children:o.cloneElement(n,y)})};var p=e(61234),_=e(61125),v=e(92368),m=e(57369),g=e(40118),y=e(23160),w=e(53583),b=e(73330),x=e(53601),k=e(58109),S=e(95201);function C(t){return(0,S.Z)("MuiSnackbarContent",t)}(0,k.Z)("MuiSnackbarContent",["root","message","action"]);const $=["action","className","message","role"],E=(0,_.ZP)(x.Z,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(t,n)=>n.root})((({theme:t})=>{const n="light"===t.palette.mode?.8:.98,e=(0,b._4)(t.palette.background.default,n);return(0,i.Z)({},t.typography.body2,{color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(e),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:e,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,flexGrow:1,[t.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})})),M=(0,_.ZP)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(t,n)=>n.message})({padding:"8px 0"}),z=(0,_.ZP)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(t,n)=>n.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),T=o.forwardRef((function(t,n){const e=(0,m.Z)({props:t,name:"MuiSnackbarContent"}),{action:o,className:a,message:u,role:l="alert"}=e,c=(0,r.Z)(e,$),f=e,d=(t=>{const{classes:n}=t;return(0,s.Z)({root:["root"],action:["action"],message:["message"]},C,n)})(f);return(0,h.jsxs)(E,(0,i.Z)({role:l,square:!0,elevation:6,className:(0,w.default)(d.root,a),ownerState:f,ref:n},c,{children:[(0,h.jsx)(M,{className:d.message,ownerState:f,children:u}),o?(0,h.jsx)(z,{className:d.action,ownerState:f,children:o}):null]}))}));function j(t){return(0,S.Z)("MuiSnackbar",t)}const A=(0,k.Z)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]),q=["onEnter","onExited"],P=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],R=(0,_.ZP)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,n[`anchorOrigin${(0,g.Z)(e.anchorOrigin.vertical)}${(0,g.Z)(e.anchorOrigin.horizontal)}`]]}})((({theme:t,ownerState:n})=>(0,i.Z)({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===n.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===n.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===n.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[t.breakpoints.up("sm")]:(0,i.Z)({},"top"===n.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===n.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===n.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===n.anchorOrigin.horizontal&&{right:24,left:"auto"})}))),L=o.forwardRef((function(t,n){const e=(0,m.Z)({props:t,name:"MuiSnackbar"}),u=(0,v.default)(),c={enter:u.transitions.duration.enteringScreen,exit:u.transitions.duration.leavingScreen},{action:f,anchorOrigin:{vertical:_,horizontal:w}={vertical:"bottom",horizontal:"left"},autoHideDuration:b=null,children:x,className:k,ClickAwayListenerProps:S,ContentProps:C,disableWindowBlurListener:$=!1,message:E,open:M,TransitionComponent:z=y.Z,transitionDuration:A=c,TransitionProps:{onEnter:L,onExited:O}={}}=e,I=(0,r.Z)(e.TransitionProps,q),D=(0,r.Z)(e,P),N=(0,i.Z)({},e,{anchorOrigin:{vertical:_,horizontal:w},autoHideDuration:b,disableWindowBlurListener:$,TransitionComponent:z,transitionDuration:A}),B=(t=>{const{classes:n,anchorOrigin:e}=t,r={root:["root",`anchorOrigin${(0,g.Z)(e.vertical)}${(0,g.Z)(e.horizontal)}`]};return(0,s.Z)(r,j,n)})(N),{getRootProps:F,onClickAway:U}=function(t){const{autoHideDuration:n=null,disableWindowBlurListener:e=!1,onClose:r,open:s,resumeHideDuration:a}=t,u=o.useRef();o.useEffect((()=>{if(s)return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)};function t(t){t.defaultPrevented||"Escape"!==t.key&&"Esc"!==t.key||null==r||r(t,"escapeKeyDown")}}),[s,r]);const c=(0,l.Z)(((t,n)=>{null==r||r(t,n)})),h=(0,l.Z)((t=>{r&&null!=t&&(clearTimeout(u.current),u.current=setTimeout((()=>{c(null,"timeout")}),t))}));o.useEffect((()=>(s&&h(n),()=>{clearTimeout(u.current)})),[s,n,h]);const f=()=>{clearTimeout(u.current)},d=o.useCallback((()=>{null!=n&&h(null!=a?a:.5*n)}),[n,a,h]),_=t=>n=>{const e=t.onBlur;null==e||e(n),d()},v=t=>n=>{const e=t.onFocus;null==e||e(n),f()},m=t=>n=>{const e=t.onMouseEnter;null==e||e(n),f()},g=t=>n=>{const e=t.onMouseLeave;null==e||e(n),d()};return o.useEffect((()=>{if(!e&&s)return window.addEventListener("focus",d),window.addEventListener("blur",f),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",f)}}),[e,d,s]),{getRootProps:(n={})=>{const e=(0,p.Z)(t),r=(0,i.Z)({},e,n);return(0,i.Z)({role:"presentation"},r,{onBlur:_(r),onFocus:v(r),onMouseEnter:m(r),onMouseLeave:g(r)})},onClickAway:t=>{null==r||r(t,"clickaway")}}}((0,i.Z)({},N)),[H,G]=o.useState(!0),W=(0,a.Z)({elementType:R,getSlotProps:F,externalForwardedProps:D,ownerState:N,additionalProps:{ref:n},className:[B.root,k]});return!M&&H?null:(0,h.jsx)(d,(0,i.Z)({onClickAway:U},S,{children:(0,h.jsx)(R,(0,i.Z)({},W,{children:(0,h.jsx)(z,(0,i.Z)({appear:!0,in:M,timeout:A,direction:"top"===_?"down":"up",onEnter:(t,n)=>{G(!1),L&&L(t,n)},onExited:t=>{G(!0),O&&O(t)}},I,{children:x||(0,h.jsx)(T,(0,i.Z)({message:E,action:f},C))}))}))}))}))},81650:(t,n,e)=>{"use strict";e.d(n,{Z:()=>v});var r=e(30984),i=e(55559),o=e(66204),s=e(53583),a=e(58029),u=e(40118),l=e(57369),c=e(61125),h=e(57876),f=e(43188);const d=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],p=(0,c.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,"inherit"!==e.color&&n[`color${(0,u.Z)(e.color)}`],n[`fontSize${(0,u.Z)(e.fontSize)}`]]}})((({theme:t,ownerState:n})=>{var e,r,i,o,s,a,u,l,c,h,f,d,p,_,v,m,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:n.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(e=t.transitions)||null==(r=e.create)?void 0:r.call(e,"fill",{duration:null==(i=t.transitions)||null==(o=i.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(s=t.typography)||null==(a=s.pxToRem)?void 0:a.call(s,20))||"1.25rem",medium:(null==(u=t.typography)||null==(l=u.pxToRem)?void 0:l.call(u,24))||"1.5rem",large:(null==(c=t.typography)||null==(h=c.pxToRem)?void 0:h.call(c,35))||"2.1875rem"}[n.fontSize],color:null!=(f=null==(d=(t.vars||t).palette)||null==(p=d[n.color])?void 0:p.main)?f:{action:null==(_=(t.vars||t).palette)||null==(v=_.action)?void 0:v.active,disabled:null==(m=(t.vars||t).palette)||null==(g=m.action)?void 0:g.disabled,inherit:void 0}[n.color]}})),_=o.forwardRef((function(t,n){const e=(0,l.Z)({props:t,name:"MuiSvgIcon"}),{children:c,className:_,color:v="inherit",component:m="svg",fontSize:g="medium",htmlColor:y,inheritViewBox:w=!1,titleAccess:b,viewBox:x="0 0 24 24"}=e,k=(0,i.Z)(e,d),S=o.isValidElement(c)&&"svg"===c.type,C=(0,r.Z)({},e,{color:v,component:m,fontSize:g,instanceFontSize:t.fontSize,inheritViewBox:w,viewBox:x,hasSvgAsChild:S}),$={};w||($.viewBox=x);const E=(t=>{const{color:n,fontSize:e,classes:r}=t,i={root:["root","inherit"!==n&&`color${(0,u.Z)(n)}`,`fontSize${(0,u.Z)(e)}`]};return(0,a.Z)(i,h.h,r)})(C);return(0,f.jsxs)(p,(0,r.Z)({as:m,className:(0,s.default)(E.root,_),focusable:"false",color:y,"aria-hidden":!b||void 0,role:b?"img":void 0,ref:n},$,k,S&&c.props,{ownerState:C,children:[S?c.props.children:c,b?(0,f.jsx)("title",{children:b}):null]}))}));_.muiName="SvgIcon";const v=_},81099:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>r.Z,getSvgIconUtilityClass:()=>i.h,svgIconClasses:()=>i.Z});var r=e(81650),i=e(57876)},57876:(t,n,e)=>{"use strict";e.d(n,{Z:()=>s,h:()=>o});var r=e(58109),i=e(95201);function o(t){return(0,i.Z)("MuiSvgIcon",t)}const s=(0,r.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"])},56374:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>k,getSwitchUtilityClass:()=>_,switchClasses:()=>v});var r=e(55559),i=e(30984),o=e(66204),s=e(53583),a=e(58029),u=e(73330),l=e(40118),c=e(68892),h=e(57369),f=e(61125),d=e(58109),p=e(95201);function _(t){return(0,p.Z)("MuiSwitch",t)}const v=(0,d.Z)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);var m=e(43188);const g=["className","color","edge","size","sx"],y=(0,f.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,e.edge&&n[`edge${(0,l.Z)(e.edge)}`],n[`size${(0,l.Z)(e.size)}`]]}})((({ownerState:t})=>(0,i.Z)({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===t.edge&&{marginLeft:-8},"end"===t.edge&&{marginRight:-8},"small"===t.size&&{width:40,height:24,padding:7,[`& .${v.thumb}`]:{width:16,height:16},[`& .${v.switchBase}`]:{padding:4,[`&.${v.checked}`]:{transform:"translateX(16px)"}}}))),w=(0,f.ZP)(c.Z,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.switchBase,{[`& .${v.input}`]:n.input},"default"!==e.color&&n[`color${(0,l.Z)(e.color)}`]]}})((({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${"light"===t.palette.mode?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${v.checked}`]:{transform:"translateX(20px)"},[`&.${v.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${"light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${v.checked} + .${v.track}`]:{opacity:.5},[`&.${v.disabled} + .${v.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:""+("light"===t.palette.mode?.12:.2)},[`& .${v.input}`]:{left:"-100%",width:"300%"}})),(({theme:t,ownerState:n})=>(0,i.Z)({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,u.Fq)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&{[`&.${v.checked}`]:{color:(t.vars||t).palette[n.color].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,u.Fq)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${v.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${n.color}DisabledColor`]:`${"light"===t.palette.mode?(0,u.$n)(t.palette[n.color].main,.62):(0,u._j)(t.palette[n.color].main,.55)}`}},[`&.${v.checked} + .${v.track}`]:{backgroundColor:(t.vars||t).palette[n.color].main}}))),b=(0,f.ZP)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,n)=>n.track})((({theme:t})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${"light"===t.palette.mode?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:""+("light"===t.palette.mode?.38:.3)}))),x=(0,f.ZP)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,n)=>n.thumb})((({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),k=o.forwardRef((function(t,n){const e=(0,h.Z)({props:t,name:"MuiSwitch"}),{className:o,color:u="primary",edge:c=!1,size:f="medium",sx:d}=e,p=(0,r.Z)(e,g),v=(0,i.Z)({},e,{color:u,edge:c,size:f}),k=(t=>{const{classes:n,edge:e,size:r,color:o,checked:s,disabled:u}=t,c={root:["root",e&&`edge${(0,l.Z)(e)}`,`size${(0,l.Z)(r)}`],switchBase:["switchBase",`color${(0,l.Z)(o)}`,s&&"checked",u&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},h=(0,a.Z)(c,_,n);return(0,i.Z)({},n,h)})(v),S=(0,m.jsx)(x,{className:k.thumb,ownerState:v});return(0,m.jsxs)(y,{className:(0,s.default)(k.root,o),sx:d,ownerState:v,children:[(0,m.jsx)(w,(0,i.Z)({type:"checkbox",icon:S,checkedIcon:S,ref:n,ownerState:v},p,{classes:(0,i.Z)({},k,{root:k.switchBase})})),(0,m.jsx)(b,{className:k.track,ownerState:v})]})}))},97811:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>y,getTabUtilityClass:()=>p,tabClasses:()=>_});var r=e(55559),i=e(30984),o=e(66204),s=e(53583),a=e(58029),u=e(52983),l=e(40118),c=e(57369),h=e(61125),f=e(58109),d=e(95201);function p(t){return(0,d.Z)("MuiTab",t)}const _=(0,f.Z)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]);var v=e(43188);const m=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],g=(0,h.ZP)(u.Z,{name:"MuiTab",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,e.label&&e.icon&&n.labelIcon,n[`textColor${(0,l.Z)(e.textColor)}`],e.fullWidth&&n.fullWidth,e.wrapped&&n.wrapped]}})((({theme:t,ownerState:n})=>(0,i.Z)({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},n.label&&{flexDirection:"top"===n.iconPosition||"bottom"===n.iconPosition?"column":"row"},{lineHeight:1.25},n.icon&&n.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${_.iconWrapper}`]:(0,i.Z)({},"top"===n.iconPosition&&{marginBottom:6},"bottom"===n.iconPosition&&{marginTop:6},"start"===n.iconPosition&&{marginRight:t.spacing(1)},"end"===n.iconPosition&&{marginLeft:t.spacing(1)})},"inherit"===n.textColor&&{color:"inherit",opacity:.6,[`&.${_.selected}`]:{opacity:1},[`&.${_.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"primary"===n.textColor&&{color:(t.vars||t).palette.text.secondary,[`&.${_.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${_.disabled}`]:{color:(t.vars||t).palette.text.disabled}},"secondary"===n.textColor&&{color:(t.vars||t).palette.text.secondary,[`&.${_.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${_.disabled}`]:{color:(t.vars||t).palette.text.disabled}},n.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},n.wrapped&&{fontSize:t.typography.pxToRem(12)}))),y=o.forwardRef((function(t,n){const e=(0,c.Z)({props:t,name:"MuiTab"}),{className:u,disabled:h=!1,disableFocusRipple:f=!1,fullWidth:d,icon:_,iconPosition:y="top",indicator:w,label:b,onChange:x,onClick:k,onFocus:S,selected:C,selectionFollowsFocus:$,textColor:E="inherit",value:M,wrapped:z=!1}=e,T=(0,r.Z)(e,m),j=(0,i.Z)({},e,{disabled:h,disableFocusRipple:f,selected:C,icon:!!_,iconPosition:y,label:!!b,fullWidth:d,textColor:E,wrapped:z}),A=(t=>{const{classes:n,textColor:e,fullWidth:r,wrapped:i,icon:o,label:s,selected:u,disabled:c}=t,h={root:["root",o&&s&&"labelIcon",`textColor${(0,l.Z)(e)}`,r&&"fullWidth",i&&"wrapped",u&&"selected",c&&"disabled"],iconWrapper:["iconWrapper"]};return(0,a.Z)(h,p,n)})(j),q=_&&b&&o.isValidElement(_)?o.cloneElement(_,{className:(0,s.default)(A.iconWrapper,_.props.className)}):_;return(0,v.jsxs)(g,(0,i.Z)({focusRipple:!f,className:(0,s.default)(A.root,u),ref:n,role:"tab","aria-selected":C,disabled:h,onClick:t=>{!C&&x&&x(t,M),k&&k(t)},onFocus:t=>{$&&!C&&x&&x(t,M),S&&S(t)},ownerState:j,tabIndex:C?0:-1},T,{children:["top"===y||"start"===y?(0,v.jsxs)(o.Fragment,{children:[q,b]}):(0,v.jsxs)(o.Fragment,{children:[b,q]}),w]}))}))},85163:(t,n,e)=>{"use strict";e.d(n,{Z:()=>r});const r=e(66204).createContext()},65238:(t,n,e)=>{"use strict";e.d(n,{Z:()=>r});const r=e(66204).createContext()},28488:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>y,getTableUtilityClass:()=>d,tableClasses:()=>p});var r=e(55559),i=e(30984),o=e(66204),s=e(53583),a=e(58029),u=e(85163),l=e(57369),c=e(61125),h=e(58109),f=e(95201);function d(t){return(0,f.Z)("MuiTable",t)}const p=(0,h.Z)("MuiTable",["root","stickyHeader"]);var _=e(43188);const v=["className","component","padding","size","stickyHeader"],m=(0,c.ZP)("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,e.stickyHeader&&n.stickyHeader]}})((({theme:t,ownerState:n})=>(0,i.Z)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,i.Z)({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},n.stickyHeader&&{borderCollapse:"separate"}))),g="table",y=o.forwardRef((function(t,n){const e=(0,l.Z)({props:t,name:"MuiTable"}),{className:c,component:h=g,padding:f="normal",size:p="medium",stickyHeader:y=!1}=e,w=(0,r.Z)(e,v),b=(0,i.Z)({},e,{component:h,padding:f,size:p,stickyHeader:y}),x=(t=>{const{classes:n,stickyHeader:e}=t,r={root:["root",e&&"stickyHeader"]};return(0,a.Z)(r,d,n)})(b),k=o.useMemo((()=>({padding:f,size:p,stickyHeader:y})),[f,p,y]);return(0,_.jsx)(u.Z.Provider,{value:k,children:(0,_.jsx)(m,(0,i.Z)({as:h,role:h===g?null:"table",ref:n,className:(0,s.default)(x.root,c),ownerState:b},w))})}))},62222:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>w,getTableBodyUtilityClass:()=>d,tableBodyClasses:()=>p});var r=e(30984),i=e(55559),o=e(66204),s=e(53583),a=e(58029),u=e(65238),l=e(57369),c=e(61125),h=e(58109),f=e(95201);function d(t){return(0,f.Z)("MuiTableBody",t)}const p=(0,h.Z)("MuiTableBody",["root"]);var _=e(43188);const v=["className","component"],m=(0,c.ZP)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(t,n)=>n.root})({display:"table-row-group"}),g={variant:"body"},y="tbody",w=o.forwardRef((function(t,n){const e=(0,l.Z)({props:t,name:"MuiTableBody"}),{className:o,component:c=y}=e,h=(0,i.Z)(e,v),f=(0,r.Z)({},e,{component:c}),p=(t=>{const{classes:n}=t;return(0,a.Z)({root:["root"]},d,n)})(f);return(0,_.jsx)(u.Z.Provider,{value:g,children:(0,_.jsx)(m,(0,r.Z)({className:(0,s.default)(p.root,o),as:c,ref:n,role:c===y?null:"rowgroup",ownerState:f},h))})}))},3558:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>b,getTableCellUtilityClass:()=>v,tableCellClasses:()=>m});var r=e(55559),i=e(30984),o=e(66204),s=e(53583),a=e(58029),u=e(73330),l=e(40118),c=e(85163),h=e(65238),f=e(57369),d=e(61125),p=e(58109),_=e(95201);function v(t){return(0,_.Z)("MuiTableCell",t)}const m=(0,p.Z)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);var g=e(43188);const y=["align","className","component","padding","scope","size","sortDirection","variant"],w=(0,d.ZP)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,n[e.variant],n[`size${(0,l.Z)(e.size)}`],"normal"!==e.padding&&n[`padding${(0,l.Z)(e.padding)}`],"inherit"!==e.align&&n[`align${(0,l.Z)(e.align)}`],e.stickyHeader&&n.stickyHeader]}})((({theme:t,ownerState:n})=>(0,i.Z)({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid\n ${"light"===t.palette.mode?(0,u.$n)((0,u.Fq)(t.palette.divider,1),.88):(0,u._j)((0,u.Fq)(t.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===n.variant&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},"body"===n.variant&&{color:(t.vars||t).palette.text.primary},"footer"===n.variant&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},"small"===n.size&&{padding:"6px 16px",[`&.${m.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===n.padding&&{width:48,padding:"0 0 0 4px"},"none"===n.padding&&{padding:0},"left"===n.align&&{textAlign:"left"},"center"===n.align&&{textAlign:"center"},"right"===n.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===n.align&&{textAlign:"justify"},n.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default}))),b=o.forwardRef((function(t,n){const e=(0,f.Z)({props:t,name:"MuiTableCell"}),{align:u="inherit",className:d,component:p,padding:_,scope:m,size:b,sortDirection:x,variant:k}=e,S=(0,r.Z)(e,y),C=o.useContext(c.Z),$=o.useContext(h.Z),E=$&&"head"===$.variant;let M;M=p||(E?"th":"td");let z=m;"td"===M?z=void 0:!z&&E&&(z="col");const T=k||$&&$.variant,j=(0,i.Z)({},e,{align:u,component:M,padding:_||(C&&C.padding?C.padding:"normal"),size:b||(C&&C.size?C.size:"medium"),sortDirection:x,stickyHeader:"head"===T&&C&&C.stickyHeader,variant:T}),A=(t=>{const{classes:n,variant:e,align:r,padding:i,size:o,stickyHeader:s}=t,u={root:["root",e,s&&"stickyHeader","inherit"!==r&&`align${(0,l.Z)(r)}`,"normal"!==i&&`padding${(0,l.Z)(i)}`,`size${(0,l.Z)(o)}`]};return(0,a.Z)(u,v,n)})(j);let q=null;return x&&(q="asc"===x?"ascending":"descending"),(0,g.jsx)(w,(0,i.Z)({as:M,ref:n,className:(0,s.default)(A.root,d),"aria-sort":q,scope:z,ownerState:j},S))}))},74797:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>w,getTableHeadUtilityClass:()=>d,tableHeadClasses:()=>p});var r=e(30984),i=e(55559),o=e(66204),s=e(53583),a=e(58029),u=e(65238),l=e(57369),c=e(61125),h=e(58109),f=e(95201);function d(t){return(0,f.Z)("MuiTableHead",t)}const p=(0,h.Z)("MuiTableHead",["root"]);var _=e(43188);const v=["className","component"],m=(0,c.ZP)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(t,n)=>n.root})({display:"table-header-group"}),g={variant:"head"},y="thead",w=o.forwardRef((function(t,n){const e=(0,l.Z)({props:t,name:"MuiTableHead"}),{className:o,component:c=y}=e,h=(0,i.Z)(e,v),f=(0,r.Z)({},e,{component:c}),p=(t=>{const{classes:n}=t;return(0,a.Z)({root:["root"]},d,n)})(f);return(0,_.jsx)(u.Z.Provider,{value:g,children:(0,_.jsx)(m,(0,r.Z)({as:c,className:(0,s.default)(p.root,o),ref:n,role:c===y?null:"rowgroup",ownerState:f},h))})}))},46154:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>w,getTableRowUtilityClass:()=>p,tableRowClasses:()=>_});var r=e(30984),i=e(55559),o=e(66204),s=e(53583),a=e(58029),u=e(73330),l=e(65238),c=e(57369),h=e(61125),f=e(58109),d=e(95201);function p(t){return(0,d.Z)("MuiTableRow",t)}const _=(0,f.Z)("MuiTableRow",["root","selected","hover","head","footer"]);var v=e(43188);const m=["className","component","hover","selected"],g=(0,h.ZP)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,e.head&&n.head,e.footer&&n.footer]}})((({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${_.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${_.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,u.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:(0,u.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}))),y="tr",w=o.forwardRef((function(t,n){const e=(0,c.Z)({props:t,name:"MuiTableRow"}),{className:u,component:h=y,hover:f=!1,selected:d=!1}=e,_=(0,i.Z)(e,m),w=o.useContext(l.Z),b=(0,r.Z)({},e,{component:h,hover:f,selected:d,head:w&&"head"===w.variant,footer:w&&"footer"===w.variant}),x=(t=>{const{classes:n,selected:e,hover:r,head:i,footer:o}=t,s={root:["root",e&&"selected",r&&"hover",i&&"head",o&&"footer"]};return(0,a.Z)(s,p,n)})(b);return(0,v.jsx)(g,(0,r.Z)({as:h,ref:n,className:(0,s.default)(x.root,u),role:h===y?null:"row",ownerState:b},_))}))},36240:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>V,getTabsUtilityClass:()=>P,tabsClasses:()=>R});var r=e(55559),i=e(30984),o=e(66204),s=(e(5356),e(53583)),a=e(58029),u=e(98858),l=e(61125),c=e(57369),h=e(92368),f=e(78101);let d;function p(){if(d)return d;const t=document.createElement("div"),n=document.createElement("div");return n.style.width="10px",n.style.height="1px",t.appendChild(n),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),d="reverse",t.scrollLeft>0?d="default":(t.scrollLeft=1,0===t.scrollLeft&&(d="negative")),document.body.removeChild(t),d}function _(t,n){const e=t.scrollLeft;if("rtl"!==n)return e;switch(p()){case"negative":return t.scrollWidth-t.clientWidth+e;case"reverse":return t.scrollWidth-t.clientWidth-e;default:return e}}function v(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}var m=e(5429),g=e(19514),y=e(43188);const w=["onChange"],b={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};var x=e(50968);const k=(0,x.Z)((0,y.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),S=(0,x.Z)((0,y.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var C=e(52983),$=e(58109),E=e(95201);function M(t){return(0,E.Z)("MuiTabScrollButton",t)}const z=(0,$.Z)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),T=["className","slots","slotProps","direction","orientation","disabled"],j=(0,l.ZP)(C.Z,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,e.orientation&&n[e.orientation]]}})((({ownerState:t})=>(0,i.Z)({width:40,flexShrink:0,opacity:.8,[`&.${z.disabled}`]:{opacity:0}},"vertical"===t.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}}))),A=o.forwardRef((function(t,n){var e,o;const l=(0,c.Z)({props:t,name:"MuiTabScrollButton"}),{className:f,slots:d={},slotProps:p={},direction:_}=l,v=(0,r.Z)(l,T),m="rtl"===(0,h.default)().direction,g=(0,i.Z)({isRtl:m},l),w=(t=>{const{classes:n,orientation:e,disabled:r}=t,i={root:["root",e,r&&"disabled"]};return(0,a.Z)(i,M,n)})(g),b=null!=(e=d.StartScrollButtonIcon)?e:k,x=null!=(o=d.EndScrollButtonIcon)?o:S,C=(0,u.Z)({elementType:b,externalSlotProps:p.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),$=(0,u.Z)({elementType:x,externalSlotProps:p.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return(0,y.jsx)(j,(0,i.Z)({component:"div",className:(0,s.default)(w.root,f),ref:n,role:null,ownerState:g,tabIndex:null},v,{children:"left"===_?(0,y.jsx)(b,(0,i.Z)({},C)):(0,y.jsx)(x,(0,i.Z)({},$))}))}));var q=e(42853);function P(t){return(0,E.Z)("MuiTabs",t)}const R=(0,$.Z)("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);var L=e(60617);const O=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],I=(t,n)=>t===n?t.firstChild:n&&n.nextElementSibling?n.nextElementSibling:t.firstChild,D=(t,n)=>t===n?t.lastChild:n&&n.previousElementSibling?n.previousElementSibling:t.lastChild,N=(t,n,e)=>{let r=!1,i=e(t,n);for(;i;){if(i===t.firstChild){if(r)return;r=!0}const n=i.disabled||"true"===i.getAttribute("aria-disabled");if(i.hasAttribute("tabindex")&&!n)return void i.focus();i=e(t,i)}},B=(0,l.ZP)("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[{[`& .${R.scrollButtons}`]:n.scrollButtons},{[`& .${R.scrollButtons}`]:e.scrollButtonsHideMobile&&n.scrollButtonsHideMobile},n.root,e.vertical&&n.vertical]}})((({ownerState:t,theme:n})=>(0,i.Z)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${R.scrollButtons}`]:{[n.breakpoints.down("sm")]:{display:"none"}}}))),F=(0,l.ZP)("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.scroller,e.fixed&&n.fixed,e.hideScrollbar&&n.hideScrollbar,e.scrollableX&&n.scrollableX,e.scrollableY&&n.scrollableY]}})((({ownerState:t})=>(0,i.Z)({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"}))),U=(0,l.ZP)("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.flexContainer,e.vertical&&n.flexContainerVertical,e.centered&&n.centered]}})((({ownerState:t})=>(0,i.Z)({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"}))),H=(0,l.ZP)("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,n)=>n.indicator})((({ownerState:t,theme:n})=>(0,i.Z)({position:"absolute",height:2,bottom:0,width:"100%",transition:n.transitions.create()},"primary"===t.indicatorColor&&{backgroundColor:(n.vars||n).palette.primary.main},"secondary"===t.indicatorColor&&{backgroundColor:(n.vars||n).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0}))),G=(0,l.ZP)((function(t){const{onChange:n}=t,e=(0,r.Z)(t,w),s=o.useRef(),a=o.useRef(null),u=()=>{s.current=a.current.offsetHeight-a.current.clientHeight};return(0,m.Z)((()=>{const t=(0,f.Z)((()=>{const t=s.current;u(),t!==s.current&&n(s.current)})),e=(0,g.Z)(a.current);return e.addEventListener("resize",t),()=>{t.clear(),e.removeEventListener("resize",t)}}),[n]),o.useEffect((()=>{u(),n(s.current)}),[n]),(0,y.jsx)("div",(0,i.Z)({style:b,ref:a},e))}),{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),W={},V=o.forwardRef((function(t,n){const e=(0,c.Z)({props:t,name:"MuiTabs"}),l=(0,h.default)(),d="rtl"===l.direction,{"aria-label":m,"aria-labelledby":w,action:b,centered:x=!1,children:k,className:S,component:C="div",allowScrollButtonsMobile:$=!1,indicatorColor:E="primary",onChange:M,orientation:z="horizontal",ScrollButtonComponent:T=A,scrollButtons:j="auto",selectionFollowsFocus:R,slots:V={},slotProps:Z={},TabIndicatorProps:X={},TabScrollButtonProps:Y={},textColor:K="primary",value:J,variant:Q="standard",visibleScrollbar:tt=!1}=e,nt=(0,r.Z)(e,O),et="scrollable"===Q,rt="vertical"===z,it=rt?"scrollTop":"scrollLeft",ot=rt?"top":"left",st=rt?"bottom":"right",at=rt?"clientHeight":"clientWidth",ut=rt?"height":"width",lt=(0,i.Z)({},e,{component:C,allowScrollButtonsMobile:$,indicatorColor:E,orientation:z,vertical:rt,scrollButtons:j,textColor:K,variant:Q,visibleScrollbar:tt,fixed:!et,hideScrollbar:et&&!tt,scrollableX:et&&!rt,scrollableY:et&&rt,centered:x&&!et,scrollButtonsHideMobile:!$}),ct=(t=>{const{vertical:n,fixed:e,hideScrollbar:r,scrollableX:i,scrollableY:o,centered:s,scrollButtonsHideMobile:u,classes:l}=t,c={root:["root",n&&"vertical"],scroller:["scroller",e&&"fixed",r&&"hideScrollbar",i&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",n&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",u&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]};return(0,a.Z)(c,P,l)})(lt),ht=(0,u.Z)({elementType:V.StartScrollButtonIcon,externalSlotProps:Z.startScrollButtonIcon,ownerState:lt}),ft=(0,u.Z)({elementType:V.EndScrollButtonIcon,externalSlotProps:Z.endScrollButtonIcon,ownerState:lt}),[dt,pt]=o.useState(!1),[_t,vt]=o.useState(W),[mt,gt]=o.useState({start:!1,end:!1}),[yt,wt]=o.useState({overflow:"hidden",scrollbarWidth:0}),bt=new Map,xt=o.useRef(null),kt=o.useRef(null),St=()=>{const t=xt.current;let n,e;if(t){const e=t.getBoundingClientRect();n={clientWidth:t.clientWidth,scrollLeft:t.scrollLeft,scrollTop:t.scrollTop,scrollLeftNormalized:_(t,l.direction),scrollWidth:t.scrollWidth,top:e.top,bottom:e.bottom,left:e.left,right:e.right}}if(t&&!1!==J){const t=kt.current.children;if(t.length>0){const n=t[bt.get(J)];e=n?n.getBoundingClientRect():null}}return{tabsMeta:n,tabMeta:e}},Ct=(0,q.Z)((()=>{const{tabsMeta:t,tabMeta:n}=St();let e,r=0;if(rt)e="top",n&&t&&(r=n.top-t.top+t.scrollTop);else if(e=d?"right":"left",n&&t){const i=d?t.scrollLeftNormalized+t.clientWidth-t.scrollWidth:t.scrollLeft;r=(d?-1:1)*(n[e]-t[e]+i)}const i={[e]:r,[ut]:n?n[ut]:0};if(isNaN(_t[e])||isNaN(_t[ut]))vt(i);else{const t=Math.abs(_t[e]-i[e]),n=Math.abs(_t[ut]-i[ut]);(t>=1||n>=1)&&vt(i)}})),$t=(t,{animation:n=!0}={})=>{n?function(t,n,e,r={},i=(()=>{})){const{ease:o=v,duration:s=300}=r;let a=null;const u=n[t];let l=!1;const c=r=>{if(l)return void i(new Error("Animation cancelled"));null===a&&(a=r);const h=Math.min(1,(r-a)/s);n[t]=o(h)*(e-u)+u,h>=1?requestAnimationFrame((()=>{i(null)})):requestAnimationFrame(c)};u===e?i(new Error("Element already at target position")):requestAnimationFrame(c)}(it,xt.current,t,{duration:l.transitions.duration.standard}):xt.current[it]=t},Et=t=>{let n=xt.current[it];rt?n+=t:(n+=t*(d?-1:1),n*=d&&"reverse"===p()?-1:1),$t(n)},Mt=()=>{const t=xt.current[at];let n=0;const e=Array.from(kt.current.children);for(let r=0;rt){0===r&&(n=t);break}n+=i[at]}return n},zt=()=>{Et(-1*Mt())},Tt=()=>{Et(Mt())},jt=o.useCallback((t=>{wt({overflow:null,scrollbarWidth:t})}),[]),At=(0,q.Z)((t=>{const{tabsMeta:n,tabMeta:e}=St();if(e&&n)if(e[ot]n[st]){const r=n[it]+(e[st]-n[st]);$t(r,{animation:t})}})),qt=(0,q.Z)((()=>{if(et&&!1!==j){const{scrollTop:t,scrollHeight:n,clientHeight:e,scrollWidth:r,clientWidth:i}=xt.current;let o,s;if(rt)o=t>1,s=t1,s=d?t>1:t{const t=(0,f.Z)((()=>{xt.current&&(Ct(),qt())})),n=(0,g.Z)(xt.current);let e;return n.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(t),Array.from(kt.current.children).forEach((t=>{e.observe(t)}))),()=>{t.clear(),n.removeEventListener("resize",t),e&&e.disconnect()}}),[Ct,qt]);const Pt=o.useMemo((()=>(0,f.Z)((()=>{qt()}))),[qt]);o.useEffect((()=>()=>{Pt.clear()}),[Pt]),o.useEffect((()=>{pt(!0)}),[]),o.useEffect((()=>{Ct(),qt()})),o.useEffect((()=>{At(W!==_t)}),[At,_t]),o.useImperativeHandle(b,(()=>({updateIndicator:Ct,updateScrollButtons:qt})),[Ct,qt]);const Rt=(0,y.jsx)(H,(0,i.Z)({},X,{className:(0,s.default)(ct.indicator,X.className),ownerState:lt,style:(0,i.Z)({},_t,X.style)}));let Lt=0;const Ot=o.Children.map(k,(t=>{if(!o.isValidElement(t))return null;const n=void 0===t.props.value?Lt:t.props.value;bt.set(n,Lt);const e=n===J;return Lt+=1,o.cloneElement(t,(0,i.Z)({fullWidth:"fullWidth"===Q,indicator:e&&!dt&&Rt,selected:e,selectionFollowsFocus:R,onChange:M,textColor:K,value:n},1!==Lt||!1!==J||t.props.tabIndex?{}:{tabIndex:0}))})),It=(()=>{const t={};t.scrollbarSizeListener=et?(0,y.jsx)(G,{onChange:jt,className:(0,s.default)(ct.scrollableX,ct.hideScrollbar)}):null;const n=mt.start||mt.end,e=et&&("auto"===j&&n||!0===j);return t.scrollButtonStart=e?(0,y.jsx)(T,(0,i.Z)({slots:{StartScrollButtonIcon:V.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ht},orientation:z,direction:d?"right":"left",onClick:zt,disabled:!mt.start},Y,{className:(0,s.default)(ct.scrollButtons,Y.className)})):null,t.scrollButtonEnd=e?(0,y.jsx)(T,(0,i.Z)({slots:{EndScrollButtonIcon:V.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:ft},orientation:z,direction:d?"left":"right",onClick:Tt,disabled:!mt.end},Y,{className:(0,s.default)(ct.scrollButtons,Y.className)})):null,t})();return(0,y.jsxs)(B,(0,i.Z)({className:(0,s.default)(ct.root,S),ownerState:lt,ref:n,as:C},nt,{children:[It.scrollButtonStart,It.scrollbarSizeListener,(0,y.jsxs)(F,{className:ct.scroller,ownerState:lt,style:{overflow:yt.overflow,[rt?"margin"+(d?"Left":"Right"):"marginBottom"]:tt?void 0:-yt.scrollbarWidth},ref:xt,onScroll:Pt,children:[(0,y.jsx)(U,{"aria-label":m,"aria-labelledby":w,"aria-orientation":"vertical"===z?"vertical":null,className:ct.flexContainer,ownerState:lt,onKeyDown:t=>{const n=kt.current,e=(0,L.Z)(n).activeElement;if("tab"!==e.getAttribute("role"))return;let r="horizontal"===z?"ArrowLeft":"ArrowUp",i="horizontal"===z?"ArrowRight":"ArrowDown";switch("horizontal"===z&&d&&(r="ArrowRight",i="ArrowLeft"),t.key){case r:t.preventDefault(),N(n,e,D);break;case i:t.preventDefault(),N(n,e,I);break;case"Home":t.preventDefault(),N(n,null,I);break;case"End":t.preventDefault(),N(n,null,D)}},ref:kt,role:"tablist",children:Ot}),dt&&Rt]}),It.scrollButtonEnd]}))}))},39260:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>$,getTextFieldUtilityClass:()=>w,textFieldClasses:()=>b});var r=e(30984),i=e(55559),o=e(66204),s=e(53583),a=e(58029),u=e(96744),l=e(61125),c=e(57369),h=e(61054),f=e(60381),d=e(20713),p=e(60962),_=e(94926),v=e(35861),m=e(31574),g=e(58109),y=e(95201);function w(t){return(0,y.Z)("MuiTextField",t)}const b=(0,g.Z)("MuiTextField",["root"]);var x=e(43188);const k=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],S={standard:h.Z,filled:f.Z,outlined:d.Z},C=(0,l.ZP)(_.Z,{name:"MuiTextField",slot:"Root",overridesResolver:(t,n)=>n.root})({}),$=o.forwardRef((function(t,n){const e=(0,c.Z)({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:l=!1,children:h,className:f,color:d="primary",defaultValue:_,disabled:g=!1,error:y=!1,FormHelperTextProps:b,fullWidth:$=!1,helperText:E,id:M,InputLabelProps:z,inputProps:T,InputProps:j,inputRef:A,label:q,maxRows:P,minRows:R,multiline:L=!1,name:O,onBlur:I,onChange:D,onClick:N,onFocus:B,placeholder:F,required:U=!1,rows:H,select:G=!1,SelectProps:W,type:V,value:Z,variant:X="outlined"}=e,Y=(0,i.Z)(e,k),K=(0,r.Z)({},e,{autoFocus:l,color:d,disabled:g,error:y,fullWidth:$,multiline:L,required:U,select:G,variant:X}),J=(t=>{const{classes:n}=t;return(0,a.Z)({root:["root"]},w,n)})(K),Q={};"outlined"===X&&(z&&void 0!==z.shrink&&(Q.notched=z.shrink),Q.label=q),G&&(W&&W.native||(Q.id=void 0),Q["aria-describedby"]=void 0);const tt=(0,u.Z)(M),nt=E&&tt?`${tt}-helper-text`:void 0,et=q&&tt?`${tt}-label`:void 0,rt=S[X],it=(0,x.jsx)(rt,(0,r.Z)({"aria-describedby":nt,autoComplete:o,autoFocus:l,defaultValue:_,fullWidth:$,multiline:L,name:O,rows:H,maxRows:P,minRows:R,type:V,value:Z,id:tt,inputRef:A,onBlur:I,onChange:D,onFocus:B,onClick:N,placeholder:F,inputProps:T},Q,j));return(0,x.jsxs)(C,(0,r.Z)({className:(0,s.default)(J.root,f),disabled:g,error:y,fullWidth:$,ref:n,required:U,color:d,variant:X,ownerState:K},Y,{children:[null!=q&&""!==q&&(0,x.jsx)(p.Z,(0,r.Z)({htmlFor:tt,id:et},z,{children:q})),G?(0,x.jsx)(m.Z,(0,r.Z)({"aria-describedby":nt,id:tt,labelId:et,value:Z,input:it},W,{children:h})):it,E&&(0,x.jsx)(v.Z,(0,r.Z)({id:nt},b,{children:E}))]}))}))},88494:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>w,getToggleButtonUtilityClass:()=>_,toggleButtonClasses:()=>v});var r=e(55559),i=e(30984),o=e(66204),s=e(53583),a=e(58029),u=e(73330),l=e(52983),c=e(40118),h=e(57369),f=e(61125),d=e(58109),p=e(95201);function _(t){return(0,p.Z)("MuiToggleButton",t)}const v=(0,d.Z)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge"]);var m=e(43188);const g=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],y=(0,f.ZP)(l.Z,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,n[`size${(0,c.Z)(e.size)}`]]}})((({theme:t,ownerState:n})=>{let e,r="standard"===n.color?t.palette.text.primary:t.palette[n.color].main;return t.vars&&(r="standard"===n.color?t.vars.palette.text.primary:t.vars.palette[n.color].main,e="standard"===n.color?t.vars.palette.text.primaryChannel:t.vars.palette[n.color].mainChannel),(0,i.Z)({},t.typography.button,{borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active},n.fullWidth&&{width:"100%"},{[`&.${v.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,u.Fq)(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${v.selected}`]:{color:r,backgroundColor:t.vars?`rgba(${e} / ${t.vars.palette.action.selectedOpacity})`:(0,u.Fq)(r,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${e} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:(0,u.Fq)(r,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${e} / ${t.vars.palette.action.selectedOpacity})`:(0,u.Fq)(r,t.palette.action.selectedOpacity)}}}},"small"===n.size&&{padding:7,fontSize:t.typography.pxToRem(13)},"large"===n.size&&{padding:15,fontSize:t.typography.pxToRem(15)})})),w=o.forwardRef((function(t,n){const e=(0,h.Z)({props:t,name:"MuiToggleButton"}),{children:o,className:u,color:l="standard",disabled:f=!1,disableFocusRipple:d=!1,fullWidth:p=!1,onChange:v,onClick:w,selected:b,size:x="medium",value:k}=e,S=(0,r.Z)(e,g),C=(0,i.Z)({},e,{color:l,disabled:f,disableFocusRipple:d,fullWidth:p,size:x}),$=(t=>{const{classes:n,fullWidth:e,selected:r,disabled:i,size:o,color:s}=t,u={root:["root",r&&"selected",i&&"disabled",e&&"fullWidth",`size${(0,c.Z)(o)}`,s]};return(0,a.Z)(u,_,n)})(C);return(0,m.jsx)(y,(0,i.Z)({className:(0,s.default)($.root,u),disabled:f,focusRipple:!d,ref:n,onClick:t=>{w&&(w(t,k),t.defaultPrevented)||v&&v(t,k)},onChange:v,value:k,ownerState:C,"aria-pressed":b},S,{children:o}))}))},62811:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>y,getToggleButtonGroupUtilityClass:()=>p,toggleButtonGroupClasses:()=>_});var r=e(55559),i=e(30984),o=e(66204),s=(e(5356),e(53583)),a=e(58029),u=e(61125),l=e(57369),c=e(40118);function h(t,n){return void 0!==n&&void 0!==t&&(Array.isArray(n)?n.indexOf(t)>=0:t===n)}var f=e(58109),d=e(95201);function p(t){return(0,d.Z)("MuiToggleButtonGroup",t)}const _=(0,f.Z)("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical"]);var v=e(43188);const m=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],g=(0,u.ZP)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[{[`& .${_.grouped}`]:n.grouped},{[`& .${_.grouped}`]:n[`grouped${(0,c.Z)(e.orientation)}`]},n.root,"vertical"===e.orientation&&n.vertical,e.fullWidth&&n.fullWidth]}})((({ownerState:t,theme:n})=>(0,i.Z)({display:"inline-flex",borderRadius:(n.vars||n).shape.borderRadius},"vertical"===t.orientation&&{flexDirection:"column"},t.fullWidth&&{width:"100%"},{[`& .${_.grouped}`]:(0,i.Z)({},"horizontal"===t.orientation?{"&:not(:first-of-type)":{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-of-type)":{borderTopRightRadius:0,borderBottomRightRadius:0},[`&.${_.selected} + .${_.grouped}.${_.selected}`]:{borderLeft:0,marginLeft:0}}:{"&:not(:first-of-type)":{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},"&:not(:last-of-type)":{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`&.${_.selected} + .${_.grouped}.${_.selected}`]:{borderTop:0,marginTop:0}})}))),y=o.forwardRef((function(t,n){const e=(0,l.Z)({props:t,name:"MuiToggleButtonGroup"}),{children:u,className:f,color:d="standard",disabled:_=!1,exclusive:y=!1,fullWidth:w=!1,onChange:b,orientation:x="horizontal",size:k="medium",value:S}=e,C=(0,r.Z)(e,m),$=(0,i.Z)({},e,{disabled:_,fullWidth:w,orientation:x,size:k}),E=(t=>{const{classes:n,orientation:e,fullWidth:r,disabled:i}=t,o={root:["root","vertical"===e&&"vertical",r&&"fullWidth"],grouped:["grouped",`grouped${(0,c.Z)(e)}`,i&&"disabled"]};return(0,a.Z)(o,p,n)})($),M=(t,n)=>{if(!b)return;const e=S&&S.indexOf(n);let r;S&&e>=0?(r=S.slice(),r.splice(e,1)):r=S?S.concat(n):[n],b(t,r)},z=(t,n)=>{b&&b(t,S===n?null:n)};return(0,v.jsx)(g,(0,i.Z)({role:"group",className:(0,s.default)(E.root,f),ref:n,ownerState:$},C,{children:o.Children.map(u,(t=>o.isValidElement(t)?o.cloneElement(t,{className:(0,s.default)(E.grouped,t.props.className),onChange:y?z:M,selected:void 0===t.props.selected?h(t.props.value,S):t.props.selected,size:t.props.size||k,fullWidth:w,color:t.props.color||d,disabled:t.props.disabled||_}):null))}))}))},1993:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>m,getToolbarUtilityClass:()=>f,toolbarClasses:()=>d});var r=e(55559),i=e(30984),o=e(66204),s=e(53583),a=e(58029),u=e(57369),l=e(61125),c=e(58109),h=e(95201);function f(t){return(0,h.Z)("MuiToolbar",t)}const d=(0,c.Z)("MuiToolbar",["root","gutters","regular","dense"]);var p=e(43188);const _=["className","component","disableGutters","variant"],v=(0,l.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,!e.disableGutters&&n.gutters,n[e.variant]]}})((({theme:t,ownerState:n})=>(0,i.Z)({position:"relative",display:"flex",alignItems:"center"},!n.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}},"dense"===n.variant&&{minHeight:48})),(({theme:t,ownerState:n})=>"regular"===n.variant&&t.mixins.toolbar)),m=o.forwardRef((function(t,n){const e=(0,u.Z)({props:t,name:"MuiToolbar"}),{className:o,component:l="div",disableGutters:c=!1,variant:h="regular"}=e,d=(0,r.Z)(e,_),m=(0,i.Z)({},e,{component:l,disableGutters:c,variant:h}),g=(t=>{const{classes:n,disableGutters:e,variant:r}=t,i={root:["root",!e&&"gutters",r]};return(0,a.Z)(i,f,n)})(m);return(0,p.jsx)(v,(0,i.Z)({as:l,className:(0,s.default)(g.root,o),ref:n,ownerState:m},d))}))},80013:(t,n,e)=>{"use strict";e.d(n,{Z:()=>g});var r=e(55559),i=e(30984),o=e(66204),s=e(53583),a=e(8449),u=e(58029),l=e(61125),c=e(57369),h=e(40118),f=e(39026),d=e(43188);const p=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],_=(0,l.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:e}=t;return[n.root,e.variant&&n[e.variant],"inherit"!==e.align&&n[`align${(0,h.Z)(e.align)}`],e.noWrap&&n.noWrap,e.gutterBottom&&n.gutterBottom,e.paragraph&&n.paragraph]}})((({theme:t,ownerState:n})=>(0,i.Z)({margin:0},n.variant&&t.typography[n.variant],"inherit"!==n.align&&{textAlign:n.align},n.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n.gutterBottom&&{marginBottom:"0.35em"},n.paragraph&&{marginBottom:16}))),v={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},m={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},g=o.forwardRef((function(t,n){const e=(0,c.Z)({props:t,name:"MuiTypography"}),o=(t=>m[t]||t)(e.color),l=(0,a.Z)((0,i.Z)({},e,{color:o})),{align:g="inherit",className:y,component:w,gutterBottom:b=!1,noWrap:x=!1,paragraph:k=!1,variant:S="body1",variantMapping:C=v}=l,$=(0,r.Z)(l,p),E=(0,i.Z)({},l,{align:g,color:o,className:y,component:w,gutterBottom:b,noWrap:x,paragraph:k,variant:S,variantMapping:C}),M=w||(k?"p":C[S]||v[S])||"span",z=(t=>{const{align:n,gutterBottom:e,noWrap:r,paragraph:i,variant:o,classes:s}=t,a={root:["root",o,"inherit"!==t.align&&`align${(0,h.Z)(n)}`,e&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return(0,u.Z)(a,f.f,s)})(E);return(0,d.jsx)(_,(0,i.Z)({as:M,ref:n,ownerState:E,className:(0,s.default)(z.root,y)},$))}))},87782:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>r.Z,getTypographyUtilityClass:()=>i.f,typographyClasses:()=>i.Z});var r=e(80013),i=e(39026)},39026:(t,n,e)=>{"use strict";e.d(n,{Z:()=>s,f:()=>o});var r=e(58109),i=e(95201);function o(t){return(0,i.Z)("MuiTypography",t)}const s=(0,r.Z)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"])},68892:(t,n,e)=>{"use strict";e.d(n,{Z:()=>w});var r=e(55559),i=e(30984),o=e(66204),s=e(53583),a=e(58029),u=e(40118),l=e(61125),c=e(66262),h=e(55834),f=e(52983),d=e(58109),p=e(95201);function _(t){return(0,p.Z)("PrivateSwitchBase",t)}(0,d.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var v=e(43188);const m=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],g=(0,l.ZP)(f.Z)((({ownerState:t})=>(0,i.Z)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12}))),y=(0,l.ZP)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),w=o.forwardRef((function(t,n){const{autoFocus:e,checked:o,checkedIcon:l,className:f,defaultChecked:d,disabled:p,disableFocusRipple:w=!1,edge:b=!1,icon:x,id:k,inputProps:S,inputRef:C,name:$,onBlur:E,onChange:M,onFocus:z,readOnly:T,required:j=!1,tabIndex:A,type:q,value:P}=t,R=(0,r.Z)(t,m),[L,O]=(0,c.Z)({controlled:o,default:Boolean(d),name:"SwitchBase",state:"checked"}),I=(0,h.Z)();let D=p;I&&void 0===D&&(D=I.disabled);const N="checkbox"===q||"radio"===q,B=(0,i.Z)({},t,{checked:L,disabled:D,disableFocusRipple:w,edge:b}),F=(t=>{const{classes:n,checked:e,disabled:r,edge:i}=t,o={root:["root",e&&"checked",r&&"disabled",i&&`edge${(0,u.Z)(i)}`],input:["input"]};return(0,a.Z)(o,_,n)})(B);return(0,v.jsxs)(g,(0,i.Z)({component:"span",className:(0,s.default)(F.root,f),centerRipple:!0,focusRipple:!w,disabled:D,tabIndex:null,role:void 0,onFocus:t=>{z&&z(t),I&&I.onFocus&&I.onFocus(t)},onBlur:t=>{E&&E(t),I&&I.onBlur&&I.onBlur(t)},ownerState:B,ref:n},R,{children:[(0,v.jsx)(y,(0,i.Z)({autoFocus:e,checked:o,defaultChecked:d,className:F.input,disabled:D,id:N?k:void 0,name:$,onChange:t=>{if(t.nativeEvent.defaultPrevented)return;const n=t.target.checked;O(n),M&&M(t,n)},readOnly:T,ref:C,required:j,ownerState:B,tabIndex:A,type:q},"checkbox"===q&&void 0===P?{}:{value:P},S)),L?l:x]}))}))},29332:(t,n,e)=>{"use strict";e.d(n,{G:()=>s,Z:()=>c});var r=e(26074),i=e(45796),o=e(35802);function s(t,n){n?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function a(t){return parseInt((0,i.Z)(t).getComputedStyle(t).paddingRight,10)||0}function u(t,n,e,r,i){const o=[n,e,...r];[].forEach.call(t.children,(t=>{const n=-1===o.indexOf(t),e=!function(t){const n=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(t.tagName),e="INPUT"===t.tagName&&"hidden"===t.getAttribute("type");return n||e}(t);n&&e&&s(t,i)}))}function l(t,n){let e=-1;return t.some(((t,r)=>!!n(t)&&(e=r,!0))),e}class c{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let e=this.modals.indexOf(t);if(-1!==e)return e;e=this.modals.length,this.modals.push(t),t.modalRef&&s(t.modalRef,!1);const r=function(t){const n=[];return[].forEach.call(t.children,(t=>{"true"===t.getAttribute("aria-hidden")&&n.push(t)})),n}(n);u(n,t.mount,t.modalRef,r,!0);const i=l(this.containers,(t=>t.container===n));return-1!==i?(this.containers[i].modals.push(t),e):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:r}),e)}mount(t,n){const e=l(this.containers,(n=>-1!==n.modals.indexOf(t))),s=this.containers[e];s.restore||(s.restore=function(t,n){const e=[],s=t.container;if(!n.disableScrollLock){if(function(t){const n=(0,r.Z)(t);return n.body===t?(0,i.Z)(t).innerWidth>n.documentElement.clientWidth:t.scrollHeight>t.clientHeight}(s)){const t=(0,o.Z)((0,r.Z)(s));e.push({value:s.style.paddingRight,property:"padding-right",el:s}),s.style.paddingRight=`${a(s)+t}px`;const n=(0,r.Z)(s).querySelectorAll(".mui-fixed");[].forEach.call(n,(n=>{e.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${a(n)+t}px`}))}let t;if(s.parentNode instanceof DocumentFragment)t=(0,r.Z)(s).body;else{const n=s.parentElement,e=(0,i.Z)(s);t="HTML"===(null==n?void 0:n.nodeName)&&"scroll"===e.getComputedStyle(n).overflowY?n:s}e.push({value:t.style.overflow,property:"overflow",el:t},{value:t.style.overflowX,property:"overflow-x",el:t},{value:t.style.overflowY,property:"overflow-y",el:t}),t.style.overflow="hidden"}return()=>{e.forEach((({value:t,el:n,property:e})=>{t?n.style.setProperty(e,t):n.style.removeProperty(e)}))}}(s,n))}remove(t,n=!0){const e=this.modals.indexOf(t);if(-1===e)return e;const r=l(this.containers,(n=>-1!==n.modals.indexOf(t))),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(e,1),0===i.modals.length)i.restore&&i.restore(),t.modalRef&&s(t.modalRef,n),u(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const t=i.modals[i.modals.length-1];t.modalRef&&s(t.modalRef,!1)}return e}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}},61234:(t,n,e)=>{"use strict";function r(t,n=[]){if(void 0===t)return{};const e={};return Object.keys(t).filter((e=>e.match(/^on[A-Z]/)&&"function"==typeof t[e]&&!n.includes(e))).forEach((n=>{e[n]=t[n]})),e}e.d(n,{Z:()=>r})},38094:(t,n,e)=>{"use strict";function r(t){return"string"==typeof t}e.d(n,{Z:()=>r})},34582:(t,n,e)=>{"use strict";function r(t,n){return"function"==typeof t?t(n):t}e.d(n,{Z:()=>r})},98858:(t,n,e)=>{"use strict";e.d(n,{Z:()=>f});var r=e(30984),i=e(55559),o=e(52682),s=e(38094),a=e(53583),u=e(61234);function l(t){if(void 0===t)return{};const n={};return Object.keys(t).filter((n=>!(n.match(/^on[A-Z]/)&&"function"==typeof t[n]))).forEach((e=>{n[e]=t[e]})),n}var c=e(34582);const h=["elementType","externalSlotProps","ownerState"];function f(t){var n;const{elementType:e,externalSlotProps:f,ownerState:d}=t,p=(0,i.Z)(t,h),_=(0,c.Z)(f,d),{props:v,internalRef:m}=function(t){const{getSlotProps:n,additionalProps:e,externalSlotProps:i,externalForwardedProps:o,className:s}=t;if(!n){const t=(0,a.default)(null==o?void 0:o.className,null==i?void 0:i.className,s,null==e?void 0:e.className),n=(0,r.Z)({},null==e?void 0:e.style,null==o?void 0:o.style,null==i?void 0:i.style),u=(0,r.Z)({},e,o,i);return t.length>0&&(u.className=t),Object.keys(n).length>0&&(u.style=n),{props:u,internalRef:void 0}}const c=(0,u.Z)((0,r.Z)({},o,i)),h=l(i),f=l(o),d=n(c),p=(0,a.default)(null==d?void 0:d.className,null==e?void 0:e.className,s,null==o?void 0:o.className,null==i?void 0:i.className),_=(0,r.Z)({},null==d?void 0:d.style,null==e?void 0:e.style,null==o?void 0:o.style,null==i?void 0:i.style),v=(0,r.Z)({},d,e,f,h);return p.length>0&&(v.className=p),Object.keys(_).length>0&&(v.style=_),{props:v,internalRef:d.ref}}((0,r.Z)({},p,{externalSlotProps:_})),g=(0,o.Z)(m,null==_?void 0:_.ref,null==(n=t.additionalProps)?void 0:n.ref),y=function(t,n,e){return void 0===t||(0,s.Z)(t)?n:(0,r.Z)({},n,{ownerState:(0,r.Z)({},n.ownerState,e)})}(e,(0,r.Z)({},v,{ref:g}),d);return y}},12215:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>g});var r=e(30984),i=e(55559),o=e(66204);const s=o.createContext(null);function a(){return o.useContext(s)}const u="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";var l=e(43188);const c=function(t){const{children:n,theme:e}=t,i=a(),c=o.useMemo((()=>{const t=null===i?e:function(t,n){return"function"==typeof n?n(t):(0,r.Z)({},t,n)}(i,e);return null!=t&&(t[u]=null!==i),t}),[e,i]);return(0,l.jsx)(s.Provider,{value:c,children:n})};var h=e(49558),f=e(2772);const d={};function p(t,n,e,i=!1){return o.useMemo((()=>{const o=t&&n[t]||n;if("function"==typeof e){const s=e(o),a=t?(0,r.Z)({},n,{[t]:s}):s;return i?()=>a:a}return t?(0,r.Z)({},n,{[t]:e}):(0,r.Z)({},n,e)}),[t,n,e,i])}const _=function(t){const{children:n,theme:e,themeId:r}=t,i=(0,f.Z)(d),o=a()||d,s=p(r,i,e),u=p(r,o,e,!0);return(0,l.jsx)(c,{theme:u,children:(0,l.jsx)(h.T.Provider,{value:s,children:n})})};var v=e(80880);const m=["theme"];function g(t){let{theme:n}=t,e=(0,i.Z)(t,m);const o=n[v.Z];return(0,l.jsx)(_,(0,r.Z)({},e,{themeId:o?v.Z:void 0,theme:o||n}))}},32162:(t,n,e)=>{"use strict";e.r(n),e.d(n,{createMuiTheme:()=>q,default:()=>P});var r=e(30984),i=e(55559),o=e(89274),s=e(53709),a=e(716),u=e(68342),l=e(95882),c=e(73330);const h={black:"#000",white:"#fff"},f={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},d={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},p={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"},_={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"},v={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"},m={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},g={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"},y=["mode","contrastThreshold","tonalOffset"],w={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:h.white,default:h.white},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}},b={text:{primary:h.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:h.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}};function x(t,n,e,r){const i=r.light||r,o=r.dark||1.5*r;t[n]||(t.hasOwnProperty(e)?t[n]=t[e]:"light"===n?t.light=(0,c.$n)(t.main,i):"dark"===n&&(t.dark=(0,c._j)(t.main,o)))}const k=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],S={textTransform:"uppercase"},C='"Roboto", "Helvetica", "Arial", sans-serif';function $(t,n){const e="function"==typeof n?n(t):n,{fontFamily:o=C,fontSize:a=14,fontWeightLight:u=300,fontWeightRegular:l=400,fontWeightMedium:c=500,fontWeightBold:h=700,htmlFontSize:f=16,allVariants:d,pxToRem:p}=e,_=(0,i.Z)(e,k),v=a/14,m=p||(t=>t/f*v+"rem"),g=(t,n,e,i,s)=>{return(0,r.Z)({fontFamily:o,fontWeight:t,fontSize:m(n),lineHeight:e},o===C?{letterSpacing:(a=i/n,Math.round(1e5*a)/1e5+"em")}:{},s,d);var a},y={h1:g(u,96,1.167,-1.5),h2:g(u,60,1.2,-.5),h3:g(l,48,1.167,0),h4:g(l,34,1.235,.25),h5:g(l,24,1.334,0),h6:g(c,20,1.6,.15),subtitle1:g(l,16,1.75,.15),subtitle2:g(c,14,1.57,.1),body1:g(l,16,1.5,.15),body2:g(l,14,1.43,.15),button:g(c,14,1.75,.4,S),caption:g(l,12,1.66,.4),overline:g(l,12,2.66,1,S),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,s.Z)((0,r.Z)({htmlFontSize:f,pxToRem:m,fontFamily:o,fontSize:a,fontWeightLight:u,fontWeightRegular:l,fontWeightMedium:c,fontWeightBold:h},y),_,{clone:!1})}function E(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,0.2)`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,0.14)`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,0.12)`].join(",")}const M=["none",E(0,2,1,-1,0,1,1,0,0,1,3,0),E(0,3,1,-2,0,2,2,0,0,1,5,0),E(0,3,3,-2,0,3,4,0,0,1,8,0),E(0,2,4,-1,0,4,5,0,0,1,10,0),E(0,3,5,-1,0,5,8,0,0,1,14,0),E(0,3,5,-1,0,6,10,0,0,1,18,0),E(0,4,5,-2,0,7,10,1,0,2,16,1),E(0,5,5,-3,0,8,10,1,0,3,14,2),E(0,5,6,-3,0,9,12,1,0,3,16,2),E(0,6,6,-3,0,10,14,1,0,4,18,3),E(0,6,7,-4,0,11,15,1,0,4,20,3),E(0,7,8,-4,0,12,17,2,0,5,22,4),E(0,7,8,-4,0,13,19,2,0,5,24,4),E(0,7,9,-4,0,14,21,2,0,5,26,4),E(0,8,9,-5,0,15,22,2,0,6,28,5),E(0,8,10,-5,0,16,24,2,0,6,30,5),E(0,8,11,-5,0,17,26,2,0,6,32,5),E(0,9,11,-5,0,18,28,2,0,7,34,6),E(0,9,12,-6,0,19,29,2,0,7,36,6),E(0,10,13,-6,0,20,31,3,0,8,38,7),E(0,10,13,-6,0,21,33,3,0,8,40,7),E(0,10,14,-6,0,22,35,3,0,8,42,7),E(0,11,14,-7,0,23,36,3,0,9,44,8),E(0,11,15,-7,0,24,38,3,0,9,46,8)];var z=e(14262);const T={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},j=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function A(t={},...n){const{mixins:e={},palette:k={},transitions:S={},typography:C={}}=t,E=(0,i.Z)(t,j);if(t.vars)throw new Error((0,o.Z)(18));const A=function(t){const{mode:n="light",contrastThreshold:e=3,tonalOffset:a=.2}=t,u=(0,i.Z)(t,y),l=t.primary||function(t="light"){return"dark"===t?{main:v[200],light:v[50],dark:v[400]}:{main:v[700],light:v[400],dark:v[800]}}(n),k=t.secondary||function(t="light"){return"dark"===t?{main:d[200],light:d[50],dark:d[400]}:{main:d[500],light:d[300],dark:d[700]}}(n),S=t.error||function(t="light"){return"dark"===t?{main:p[500],light:p[300],dark:p[700]}:{main:p[700],light:p[400],dark:p[800]}}(n),C=t.info||function(t="light"){return"dark"===t?{main:m[400],light:m[300],dark:m[700]}:{main:m[700],light:m[500],dark:m[900]}}(n),$=t.success||function(t="light"){return"dark"===t?{main:g[400],light:g[300],dark:g[700]}:{main:g[800],light:g[500],dark:g[900]}}(n),E=t.warning||function(t="light"){return"dark"===t?{main:_[400],light:_[300],dark:_[700]}:{main:"#ed6c02",light:_[500],dark:_[900]}}(n);function M(t){return(0,c.mi)(t,b.text.primary)>=e?b.text.primary:w.text.primary}const z=({color:t,name:n,mainShade:e=500,lightShade:i=300,darkShade:s=700})=>{if(!(t=(0,r.Z)({},t)).main&&t[e]&&(t.main=t[e]),!t.hasOwnProperty("main"))throw new Error((0,o.Z)(11,n?` (${n})`:"",e));if("string"!=typeof t.main)throw new Error((0,o.Z)(12,n?` (${n})`:"",JSON.stringify(t.main)));return x(t,"light",i,a),x(t,"dark",s,a),t.contrastText||(t.contrastText=M(t.main)),t},T={dark:b,light:w};return(0,s.Z)((0,r.Z)({common:(0,r.Z)({},h),mode:n,primary:z({color:l,name:"primary"}),secondary:z({color:k,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:z({color:S,name:"error"}),warning:z({color:E,name:"warning"}),info:z({color:C,name:"info"}),success:z({color:$,name:"success"}),grey:f,contrastThreshold:e,getContrastText:M,augmentColor:z,tonalOffset:a},T[n]),u)}(k),q=(0,a.Z)(t);let P=(0,s.Z)(q,{mixins:(R=q.breakpoints,L=e,(0,r.Z)({toolbar:{minHeight:56,[R.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[R.up("sm")]:{minHeight:64}}},L)),palette:A,shadows:M.slice(),typography:$(A,C),transitions:(0,z.ZP)(S),zIndex:(0,r.Z)({},T)});var R,L;return P=(0,s.Z)(P,E),P=n.reduce(((t,n)=>(0,s.Z)(t,n)),P),P.unstable_sxConfig=(0,r.Z)({},u.Z,null==E?void 0:E.unstable_sxConfig),P.unstable_sx=function(t){return(0,l.Z)({sx:t,theme:this})},P}function q(...t){return A(...t)}const P=A},14262:(t,n,e)=>{"use strict";e.d(n,{ZP:()=>c,x9:()=>a});var r=e(55559),i=e(30984);const o=["duration","easing","delay"],s={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={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function u(t){return`${Math.round(t)}ms`}function l(t){if(!t)return 0;const n=t/36;return Math.round(10*(4+15*n**.25+n/5))}function c(t){const n=(0,i.Z)({},s,t.easing),e=(0,i.Z)({},a,t.duration);return(0,i.Z)({getAutoHeightDuration:l,create:(t=["all"],i={})=>{const{duration:s=e.standard,easing:a=n.easeInOut,delay:l=0}=i;return(0,r.Z)(i,o),(Array.isArray(t)?t:[t]).map((t=>`${t} ${"string"==typeof s?s:u(s)} ${a} ${"string"==typeof l?l:u(l)}`)).join(",")}},t,{easing:n,duration:e})}},86995:(t,n,e)=>{"use strict";e.d(n,{Z:()=>r});const r=(0,e(32162).default)()},80880:(t,n,e)=>{"use strict";e.d(n,{Z:()=>r});const r="$$material"},61125:(t,n,e)=>{"use strict";e.d(n,{Dz:()=>a,FO:()=>s,ZP:()=>u});var r=e(37422),i=e(86995),o=e(80880);const s=t=>(0,r.x9)(t)&&"classes"!==t,a=r.x9,u=(0,r.ZP)({themeId:o.Z,defaultTheme:i.Z,rootShouldForwardProp:s})},92368:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>s}),e(66204);var r=e(85293),i=e(86995),o=e(80880);function s(){const t=(0,r.Z)(i.Z);return t[o.Z]||t}},57369:(t,n,e)=>{"use strict";e.d(n,{Z:()=>s});var r=e(77877),i=e(86995),o=e(80880);function s({props:t,name:n}){return(0,r.Z)({props:t,name:n,defaultTheme:i.Z,themeId:o.Z})}},41372:(t,n,e)=>{"use strict";e.d(n,{C:()=>i,n:()=>r});const r=t=>t.scrollTop;function i(t,n){var e,r;const{timeout:i,easing:o,style:s={}}=t;return{duration:null!=(e=s.transitionDuration)?e:"number"==typeof i?i:i[n.mode]||0,easing:null!=(r=s.transitionTimingFunction)?r:"object"==typeof o?o[n.mode]:o,delay:s.transitionDelay}}},40118:(t,n,e)=>{"use strict";e.d(n,{Z:()=>r});const r=e(46730).Z},91882:(t,n,e)=>{"use strict";e.d(n,{Z:()=>r});const r=e(74603).Z},50968:(t,n,e)=>{"use strict";e.d(n,{Z:()=>a});var r=e(30984),i=e(66204),o=e(81650),s=e(43188);function a(t,n){function e(e,i){return(0,s.jsx)(o.Z,(0,r.Z)({"data-testid":`${n}Icon`,ref:i},e,{children:t}))}return e.muiName=o.Z.muiName,i.memo(i.forwardRef(e))}},78101:(t,n,e)=>{"use strict";e.d(n,{Z:()=>r});const r=e(72650).Z},90407:(t,n,e)=>{"use strict";e.r(n),e.d(n,{capitalize:()=>i.Z,createChainedFunction:()=>o.Z,createSvgIcon:()=>s.Z,debounce:()=>a.Z,deprecatedPropType:()=>u,isMuiElement:()=>l.Z,ownerDocument:()=>c.Z,ownerWindow:()=>h.Z,requirePropFactory:()=>f,setRef:()=>d,unstable_ClassNameGenerator:()=>b,unstable_useEnhancedEffect:()=>p.Z,unstable_useId:()=>_.Z,unsupportedProp:()=>v,useControlled:()=>m.Z,useEventCallback:()=>g.Z,useForkRef:()=>y.Z,useIsFocusVisible:()=>w.Z});var r=e(51388),i=e(40118),o=e(91882),s=e(50968),a=e(78101);const u=function(t,n){return()=>null};var l=e(6842),c=e(60617),h=e(19514);e(30984);const f=function(t,n){return()=>null},d=e(513).Z;var p=e(5429),_=e(79673);const v=function(t,n,e,r,i){return null};var m=e(66262),g=e(42853),y=e(81597),w=e(71323);const b={configure:t=>{r.Z.configure(t)}}},6842:(t,n,e)=>{"use strict";e.d(n,{Z:()=>i});var r=e(66204);const i=function(t,n){return r.isValidElement(t)&&-1!==n.indexOf(t.type.muiName)}},60617:(t,n,e)=>{"use strict";e.d(n,{Z:()=>r});const r=e(26074).Z},19514:(t,n,e)=>{"use strict";e.d(n,{Z:()=>r});const r=e(45796).Z},66262:(t,n,e)=>{"use strict";e.d(n,{Z:()=>i});var r=e(66204);const i=function({controlled:t,default:n,name:e,state:i="value"}){const{current:o}=r.useRef(void 0!==t),[s,a]=r.useState(n);return[o?t:s,r.useCallback((t=>{o||a(t)}),[])]}},5429:(t,n,e)=>{"use strict";e.d(n,{Z:()=>r});const r=e(40401).Z},42853:(t,n,e)=>{"use strict";e.d(n,{Z:()=>r});const r=e(76734).Z},81597:(t,n,e)=>{"use strict";e.d(n,{Z:()=>r});const r=e(52682).Z},79673:(t,n,e)=>{"use strict";e.d(n,{Z:()=>r});const r=e(96744).Z},71323:(t,n,e)=>{"use strict";e.d(n,{Z:()=>h});var r=e(66204);let i,o=!0,s=!1;const a={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function u(t){t.metaKey||t.altKey||t.ctrlKey||(o=!0)}function l(){o=!1}function c(){"hidden"===this.visibilityState&&s&&(o=!0)}const h=function(){const t=r.useCallback((t=>{var n;null!=t&&((n=t.ownerDocument).addEventListener("keydown",u,!0),n.addEventListener("mousedown",l,!0),n.addEventListener("pointerdown",l,!0),n.addEventListener("touchstart",l,!0),n.addEventListener("visibilitychange",c,!0))}),[]),n=r.useRef(!1);return{isFocusVisibleRef:n,onFocus:function(t){return!!function(t){const{target:n}=t;try{return n.matches(":focus-visible")}catch(t){}return o||function(t){const{type:n,tagName:e}=t;return!("INPUT"!==e||!a[n]||t.readOnly)||"TEXTAREA"===e&&!t.readOnly||!!t.isContentEditable}(n)}(t)&&(n.current=!0,!0)},onBlur:function(){return!!n.current&&(s=!0,window.clearTimeout(i),i=window.setTimeout((()=>{s=!1}),100),n.current=!1,!0)},ref:t}}},60540:(t,n,e)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(t){for(var n=1;ng,Co:()=>y});var i=e(66204),o=e(36902),s=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,a=(0,o.Z)((function(t){return s.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91})),u=e(49558),l=e(99463),c=e(7124),h=e(98013),f=a,d=function(t){return"theme"!==t},p=function(t){return"string"==typeof t&&t.charCodeAt(0)>96?f:d},_=function(t,n,e){var r;if(n){var i=n.shouldForwardProp;r=t.__emotion_forwardProp&&i?function(n){return t.__emotion_forwardProp(n)&&i(n)}:i}return"function"!=typeof r&&e&&(r=t.__emotion_forwardProp),r},v=function(t){var n=t.cache,e=t.serialized,r=t.isStringTag;return(0,l.hC)(n,e,r),(0,h.L)((function(){return(0,l.My)(n,e,r)})),null},m=function t(n,e){var o,s,a=n.__emotion_real===n,h=a&&n.__emotion_base||n;void 0!==e&&(o=e.label,s=e.target);var f=_(n,e,a),d=f||p(h),m=!d("as");return function(){var g=arguments,y=a&&void 0!==n.__emotion_styles?n.__emotion_styles.slice(0):[];if(void 0!==o&&y.push("label:"+o+";"),null==g[0]||void 0===g[0].raw)y.push.apply(y,g);else{y.push(g[0][0]);for(var w=g.length,b=1;b{Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=n(t.__emotion_styles))}},79556:(t,n,e)=>{"use strict";e.d(n,{L7:()=>a,VO:()=>r,W8:()=>s,k9:()=>o});const r={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${r[t]}px)`};function o(t,n,e){const o=t.theme||{};if(Array.isArray(n)){const t=o.breakpoints||i;return n.reduce(((r,i,o)=>(r[t.up(t.keys[o])]=e(n[o]),r)),{})}if("object"==typeof n){const t=o.breakpoints||i;return Object.keys(n).reduce(((i,o)=>{if(-1!==Object.keys(t.values||r).indexOf(o))i[t.up(o)]=e(n[o],o);else{const t=o;i[t]=n[t]}return i}),{})}return e(n)}function s(t={}){var n;return(null==(n=t.keys)?void 0:n.reduce(((n,e)=>(n[t.up(e)]={},n)),{}))||{}}function a(t,n){return t.reduce(((t,n)=>{const e=t[n];return(!e||0===Object.keys(e).length)&&delete t[n],t}),n)}},73330:(t,n,e)=>{"use strict";e.d(n,{$n:()=>h,Fq:()=>l,_4:()=>f,_j:()=>c,mi:()=>u});var r=e(89274);function i(t,n=0,e=1){return Math.min(Math.max(n,t),e)}function o(t){if(t.type)return t;if("#"===t.charAt(0))return o(function(t){t=t.slice(1);const n=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let e=t.match(n);return e&&1===e[0].length&&(e=e.map((t=>t+t))),e?`rgb${4===e.length?"a":""}(${e.map(((t,n)=>n<3?parseInt(t,16):Math.round(parseInt(t,16)/255*1e3)/1e3)).join(", ")})`:""}(t));const n=t.indexOf("("),e=t.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(e))throw new Error((0,r.Z)(9,t));let i,s=t.substring(n+1,t.length-1);if("color"===e){if(s=s.split(" "),i=s.shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i))throw new Error((0,r.Z)(10,i))}else s=s.split(",");return s=s.map((t=>parseFloat(t))),{type:e,values:s,colorSpace:i}}function s(t){const{type:n,colorSpace:e}=t;let{values:r}=t;return-1!==n.indexOf("rgb")?r=r.map(((t,n)=>n<3?parseInt(t,10):t)):-1!==n.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==n.indexOf("color")?`${e} ${r.join(" ")}`:`${r.join(", ")}`,`${n}(${r})`}function a(t){let n="hsl"===(t=o(t)).type||"hsla"===t.type?o(function(t){t=o(t);const{values:n}=t,e=n[0],r=n[1]/100,i=n[2]/100,a=r*Math.min(i,1-i),u=(t,n=(t+e/30)%12)=>i-a*Math.max(Math.min(n-3,9-n,1),-1);let l="rgb";const c=[Math.round(255*u(0)),Math.round(255*u(8)),Math.round(255*u(4))];return"hsla"===t.type&&(l+="a",c.push(n[3])),s({type:l,values:c})}(t)).values:t.values;return n=n.map((n=>("color"!==t.type&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4))),Number((.2126*n[0]+.7152*n[1]+.0722*n[2]).toFixed(3))}function u(t,n){const e=a(t),r=a(n);return(Math.max(e,r)+.05)/(Math.min(e,r)+.05)}function l(t,n){return t=o(t),n=i(n),"rgb"!==t.type&&"hsl"!==t.type||(t.type+="a"),"color"===t.type?t.values[3]=`/${n}`:t.values[3]=n,s(t)}function c(t,n){if(t=o(t),n=i(n),-1!==t.type.indexOf("hsl"))t.values[2]*=1-n;else if(-1!==t.type.indexOf("rgb")||-1!==t.type.indexOf("color"))for(let e=0;e<3;e+=1)t.values[e]*=1-n;return s(t)}function h(t,n){if(t=o(t),n=i(n),-1!==t.type.indexOf("hsl"))t.values[2]+=(100-t.values[2])*n;else if(-1!==t.type.indexOf("rgb"))for(let e=0;e<3;e+=1)t.values[e]+=(255-t.values[e])*n;else if(-1!==t.type.indexOf("color"))for(let e=0;e<3;e+=1)t.values[e]+=(1-t.values[e])*n;return s(t)}function f(t,n=.15){return a(t)>.5?c(t,n):h(t,n)}},37422:(t,n,e)=>{"use strict";e.d(n,{ZP:()=>y,x9:()=>v});var r=e(55559),i=e(30984),o=e(60540),s=e(716),a=e(46730);const u=["variant"];function l(t){return 0===t.length}function c(t){const{variant:n}=t,e=(0,r.Z)(t,u);let i=n||"";return Object.keys(e).sort().forEach((n=>{i+="color"===n?l(i)?t[n]:(0,a.Z)(t[n]):`${l(i)?n:(0,a.Z)(n)}${(0,a.Z)(t[n].toString())}`})),i}var h=e(95882);const f=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],d=(t,n)=>n.components&&n.components[t]&&n.components[t].styleOverrides?n.components[t].styleOverrides:null,p=(t,n)=>{let e=[];n&&n.components&&n.components[t]&&n.components[t].variants&&(e=n.components[t].variants);const r={};return e.forEach((t=>{const n=c(t.props);r[n]=t.style})),r},_=(t,n,e,r)=>{var i,o;const{ownerState:s={}}=t,a=[],u=null==e||null==(i=e.components)||null==(o=i[r])?void 0:o.variants;return u&&u.forEach((e=>{let r=!0;Object.keys(e.props).forEach((n=>{s[n]!==e.props[n]&&t[n]!==e.props[n]&&(r=!1)})),r&&a.push(n[c(e.props)])})),a};function v(t){return"ownerState"!==t&&"theme"!==t&&"sx"!==t&&"as"!==t}const m=(0,s.Z)();function g({defaultTheme:t,theme:n,themeId:e}){return r=n,0===Object.keys(r).length?t:n[e]||n;var r}function y(t={}){const{themeId:n,defaultTheme:e=m,rootShouldForwardProp:s=v,slotShouldForwardProp:a=v}=t,u=t=>(0,h.Z)((0,i.Z)({},t,{theme:g((0,i.Z)({},t,{defaultTheme:e,themeId:n}))}));return u.__mui_systemSx=!0,(t,l={})=>{(0,o.Co)(t,(t=>t.filter((t=>!(null!=t&&t.__mui_systemSx)))));const{name:c,slot:h,skipVariantsResolver:m,skipSx:y,overridesResolver:w}=l,b=(0,r.Z)(l,f),x=void 0!==m?m:h&&"Root"!==h||!1,k=y||!1;let S=v;"Root"===h?S=s:h?S=a:function(t){return"string"==typeof t&&t.charCodeAt(0)>96}(t)&&(S=void 0);const C=(0,o.ZP)(t,(0,i.Z)({shouldForwardProp:S,label:void 0},b)),$=(r,...o)=>{const s=o?o.map((t=>"function"==typeof t&&t.__emotion_real!==t?r=>t((0,i.Z)({},r,{theme:g((0,i.Z)({},r,{defaultTheme:e,themeId:n}))})):t)):[];let a=r;c&&w&&s.push((t=>{const r=g((0,i.Z)({},t,{defaultTheme:e,themeId:n})),o=d(c,r);if(o){const n={};return Object.entries(o).forEach((([e,o])=>{n[e]="function"==typeof o?o((0,i.Z)({},t,{theme:r})):o})),w(t,n)}return null})),c&&!x&&s.push((t=>{const r=g((0,i.Z)({},t,{defaultTheme:e,themeId:n}));return _(t,p(c,r),r,c)})),k||s.push(u);const l=s.length-o.length;if(Array.isArray(r)&&l>0){const t=new Array(l).fill("");a=[...r,...t],a.raw=[...r.raw,...t]}else"function"==typeof r&&r.__emotion_real!==r&&(a=t=>r((0,i.Z)({},t,{theme:g((0,i.Z)({},t,{defaultTheme:e,themeId:n}))})));const h=C(a,...s);return t.muiName&&(h.muiName=t.muiName),h};return C.withConfig&&($.withConfig=C.withConfig),$}}},716:(t,n,e)=>{"use strict";e.d(n,{Z:()=>f});var r=e(30984),i=e(55559),o=e(53709);const s=["values","unit","step"],a={borderRadius:4};var u=e(39546),l=e(95882),c=e(68342);const h=["breakpoints","palette","spacing","shape"],f=function(t={},...n){const{breakpoints:e={},palette:f={},spacing:d,shape:p={}}=t,_=(0,i.Z)(t,h),v=function(t){const{values:n={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:e="px",step:o=5}=t,a=(0,i.Z)(t,s),u=(t=>{const n=Object.keys(t).map((n=>({key:n,val:t[n]})))||[];return n.sort(((t,n)=>t.val-n.val)),n.reduce(((t,n)=>(0,r.Z)({},t,{[n.key]:n.val})),{})})(n),l=Object.keys(u);function c(t){return`@media (min-width:${"number"==typeof n[t]?n[t]:t}${e})`}function h(t){return`@media (max-width:${("number"==typeof n[t]?n[t]:t)-o/100}${e})`}function f(t,r){const i=l.indexOf(r);return`@media (min-width:${"number"==typeof n[t]?n[t]:t}${e}) and (max-width:${(-1!==i&&"number"==typeof n[l[i]]?n[l[i]]:r)-o/100}${e})`}return(0,r.Z)({keys:l,values:u,up:c,down:h,between:f,only:function(t){return l.indexOf(t)+1(0===t.length?[1]:t).map((t=>{const e=n(t);return"number"==typeof e?`${e}px`:e})).join(" ");return e.mui=!0,e}(d);let g=(0,o.Z)({breakpoints:v,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},f),spacing:m,shape:(0,r.Z)({},a,p)},_);return g=n.reduce(((t,n)=>(0,o.Z)(t,n)),g),g.unstable_sxConfig=(0,r.Z)({},c.Z,null==_?void 0:_.unstable_sxConfig),g.unstable_sx=function(t){return(0,l.Z)({sx:t,theme:this})},g}},94941:(t,n,e)=>{"use strict";e.d(n,{Z:()=>i});var r=e(53709);const i=function(t,n){return n?(0,r.Z)(t,n,{clone:!1}):t}},39546:(t,n,e)=>{"use strict";e.d(n,{hB:()=>p,eI:()=>d,NA:()=>_,e6:()=>m,o3:()=>g});var r=e(79556),i=e(4860),o=e(94941);const s={m:"margin",p:"padding"},a={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},u={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},l=function(t){const n={};return t=>(void 0===n[t]&&(n[t]=(t=>{if(t.length>2){if(!u[t])return[t];t=u[t]}const[n,e]=t.split(""),r=s[n],i=a[e]||"";return Array.isArray(i)?i.map((t=>r+t)):[r+i]})(t)),n[t])}(),c=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],h=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],f=[...c,...h];function d(t,n,e,r){var o;const s=null!=(o=(0,i.DW)(t,n,!1))?o:e;return"number"==typeof s?t=>"string"==typeof t?t:s*t:Array.isArray(s)?t=>"string"==typeof t?t:s[t]:"function"==typeof s?s:()=>{}}function p(t){return d(t,"spacing",8)}function _(t,n){if("string"==typeof n||null==n)return n;const e=t(Math.abs(n));return n>=0?e:"number"==typeof e?-e:`-${e}`}function v(t,n){const e=p(t.theme);return Object.keys(t).map((i=>function(t,n,e,i){if(-1===n.indexOf(e))return null;const o=function(t,n){return e=>t.reduce(((t,r)=>(t[r]=_(n,e),t)),{})}(l(e),i),s=t[e];return(0,r.k9)(t,s,o)}(t,n,i,e))).reduce(o.Z,{})}function m(t){return v(t,c)}function g(t){return v(t,h)}function y(t){return v(t,f)}m.propTypes={},m.filterProps=c,g.propTypes={},g.filterProps=h,y.propTypes={},y.filterProps=f},4860:(t,n,e)=>{"use strict";e.d(n,{DW:()=>o,Jq:()=>s,ZP:()=>a});var r=e(46730),i=e(79556);function o(t,n,e=!0){if(!n||"string"!=typeof n)return null;if(t&&t.vars&&e){const e=`vars.${n}`.split(".").reduce(((t,n)=>t&&t[n]?t[n]:null),t);if(null!=e)return e}return n.split(".").reduce(((t,n)=>t&&null!=t[n]?t[n]:null),t)}function s(t,n,e,r=e){let i;return i="function"==typeof t?t(e):Array.isArray(t)?t[e]||r:o(t,e)||r,n&&(i=n(i,r,t)),i}const a=function(t){const{prop:n,cssProperty:e=t.prop,themeKey:a,transform:u}=t,l=t=>{if(null==t[n])return null;const l=t[n],c=o(t.theme,a)||{};return(0,i.k9)(t,l,(t=>{let i=s(c,u,t);return t===i&&"string"==typeof t&&(i=s(c,u,`${n}${"default"===t?"":(0,r.Z)(t)}`,t)),!1===e?i:{[e]:i}}))};return l.propTypes={},l.filterProps=[n],l}},68342:(t,n,e)=>{"use strict";e.d(n,{Z:()=>j});var r=e(39546),i=e(4860),o=e(94941);const s=function(...t){const n=t.reduce(((t,n)=>(n.filterProps.forEach((e=>{t[e]=n})),t)),{}),e=t=>Object.keys(t).reduce(((e,r)=>n[r]?(0,o.Z)(e,n[r](t)):e),{});return e.propTypes={},e.filterProps=t.reduce(((t,n)=>t.concat(n.filterProps)),[]),e};var a=e(79556);function u(t){return"number"!=typeof t?t:`${t}px solid`}const l=(0,i.ZP)({prop:"border",themeKey:"borders",transform:u}),c=(0,i.ZP)({prop:"borderTop",themeKey:"borders",transform:u}),h=(0,i.ZP)({prop:"borderRight",themeKey:"borders",transform:u}),f=(0,i.ZP)({prop:"borderBottom",themeKey:"borders",transform:u}),d=(0,i.ZP)({prop:"borderLeft",themeKey:"borders",transform:u}),p=(0,i.ZP)({prop:"borderColor",themeKey:"palette"}),_=(0,i.ZP)({prop:"borderTopColor",themeKey:"palette"}),v=(0,i.ZP)({prop:"borderRightColor",themeKey:"palette"}),m=(0,i.ZP)({prop:"borderBottomColor",themeKey:"palette"}),g=(0,i.ZP)({prop:"borderLeftColor",themeKey:"palette"}),y=t=>{if(void 0!==t.borderRadius&&null!==t.borderRadius){const n=(0,r.eI)(t.theme,"shape.borderRadius",4,"borderRadius"),e=t=>({borderRadius:(0,r.NA)(n,t)});return(0,a.k9)(t,t.borderRadius,e)}return null};y.propTypes={},y.filterProps=["borderRadius"],s(l,c,h,f,d,p,_,v,m,g,y);const w=t=>{if(void 0!==t.gap&&null!==t.gap){const n=(0,r.eI)(t.theme,"spacing",8,"gap"),e=t=>({gap:(0,r.NA)(n,t)});return(0,a.k9)(t,t.gap,e)}return null};w.propTypes={},w.filterProps=["gap"];const b=t=>{if(void 0!==t.columnGap&&null!==t.columnGap){const n=(0,r.eI)(t.theme,"spacing",8,"columnGap"),e=t=>({columnGap:(0,r.NA)(n,t)});return(0,a.k9)(t,t.columnGap,e)}return null};b.propTypes={},b.filterProps=["columnGap"];const x=t=>{if(void 0!==t.rowGap&&null!==t.rowGap){const n=(0,r.eI)(t.theme,"spacing",8,"rowGap"),e=t=>({rowGap:(0,r.NA)(n,t)});return(0,a.k9)(t,t.rowGap,e)}return null};function k(t,n){return"grey"===n?n:t}function S(t){return t<=1&&0!==t?100*t+"%":t}x.propTypes={},x.filterProps=["rowGap"],s(w,b,x,(0,i.ZP)({prop:"gridColumn"}),(0,i.ZP)({prop:"gridRow"}),(0,i.ZP)({prop:"gridAutoFlow"}),(0,i.ZP)({prop:"gridAutoColumns"}),(0,i.ZP)({prop:"gridAutoRows"}),(0,i.ZP)({prop:"gridTemplateColumns"}),(0,i.ZP)({prop:"gridTemplateRows"}),(0,i.ZP)({prop:"gridTemplateAreas"}),(0,i.ZP)({prop:"gridArea"})),s((0,i.ZP)({prop:"color",themeKey:"palette",transform:k}),(0,i.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:k}),(0,i.ZP)({prop:"backgroundColor",themeKey:"palette",transform:k}));const C=(0,i.ZP)({prop:"width",transform:S}),$=t=>{if(void 0!==t.maxWidth&&null!==t.maxWidth){const n=n=>{var e,r,i;return{maxWidth:(null==(e=t.theme)||null==(r=e.breakpoints)||null==(i=r.values)?void 0:i[n])||a.VO[n]||S(n)}};return(0,a.k9)(t,t.maxWidth,n)}return null};$.filterProps=["maxWidth"];const E=(0,i.ZP)({prop:"minWidth",transform:S}),M=(0,i.ZP)({prop:"height",transform:S}),z=(0,i.ZP)({prop:"maxHeight",transform:S}),T=(0,i.ZP)({prop:"minHeight",transform:S}),j=((0,i.ZP)({prop:"size",cssProperty:"width",transform:S}),(0,i.ZP)({prop:"size",cssProperty:"height",transform:S}),s(C,$,E,M,z,T,(0,i.ZP)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:u},borderTop:{themeKey:"borders",transform:u},borderRight:{themeKey:"borders",transform:u},borderBottom:{themeKey:"borders",transform:u},borderLeft:{themeKey:"borders",transform:u},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:y},color:{themeKey:"palette",transform:k},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:k},backgroundColor:{themeKey:"palette",transform:k},p:{style:r.o3},pt:{style:r.o3},pr:{style:r.o3},pb:{style:r.o3},pl:{style:r.o3},px:{style:r.o3},py:{style:r.o3},padding:{style:r.o3},paddingTop:{style:r.o3},paddingRight:{style:r.o3},paddingBottom:{style:r.o3},paddingLeft:{style:r.o3},paddingX:{style:r.o3},paddingY:{style:r.o3},paddingInline:{style:r.o3},paddingInlineStart:{style:r.o3},paddingInlineEnd:{style:r.o3},paddingBlock:{style:r.o3},paddingBlockStart:{style:r.o3},paddingBlockEnd:{style:r.o3},m:{style:r.e6},mt:{style:r.e6},mr:{style:r.e6},mb:{style:r.e6},ml:{style:r.e6},mx:{style:r.e6},my:{style:r.e6},margin:{style:r.e6},marginTop:{style:r.e6},marginRight:{style:r.e6},marginBottom:{style:r.e6},marginLeft:{style:r.e6},marginX:{style:r.e6},marginY:{style:r.e6},marginInline:{style:r.e6},marginInlineStart:{style:r.e6},marginInlineEnd:{style:r.e6},marginBlock:{style:r.e6},marginBlockStart:{style:r.e6},marginBlockEnd:{style:r.e6},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:w},rowGap:{style:x},columnGap:{style:b},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:S},maxWidth:{style:$},minWidth:{transform:S},height:{transform:S},maxHeight:{transform:S},minHeight:{transform:S},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},8449:(t,n,e)=>{"use strict";e.d(n,{Z:()=>l});var r=e(30984),i=e(55559),o=e(53709),s=e(68342);const a=["sx"],u=t=>{var n,e;const r={systemProps:{},otherProps:{}},i=null!=(n=null==t||null==(e=t.theme)?void 0:e.unstable_sxConfig)?n:s.Z;return Object.keys(t).forEach((n=>{i[n]?r.systemProps[n]=t[n]:r.otherProps[n]=t[n]})),r};function l(t){const{sx:n}=t,e=(0,i.Z)(t,a),{systemProps:s,otherProps:l}=u(e);let c;return c=Array.isArray(n)?[s,...n]:"function"==typeof n?(...t)=>{const e=n(...t);return(0,o.P)(e)?(0,r.Z)({},s,e):s}:(0,r.Z)({},s,n),(0,r.Z)({},l,{sx:c})}},95882:(t,n,e)=>{"use strict";e.d(n,{Z:()=>l});var r=e(46730),i=e(94941),o=e(4860),s=e(79556),a=e(68342);const u=function(){function t(t,n,e,i){const a={[t]:n,theme:e},u=i[t];if(!u)return{[t]:n};const{cssProperty:l=t,themeKey:c,transform:h,style:f}=u;if(null==n)return null;if("typography"===c&&"inherit"===n)return{[t]:n};const d=(0,o.DW)(e,c)||{};return f?f(a):(0,s.k9)(a,n,(n=>{let e=(0,o.Jq)(d,h,n);return n===e&&"string"==typeof n&&(e=(0,o.Jq)(d,h,`${t}${"default"===n?"":(0,r.Z)(n)}`,n)),!1===l?e:{[l]:e}}))}return function n(e){var r;const{sx:o,theme:u={}}=e||{};if(!o)return null;const l=null!=(r=u.unstable_sxConfig)?r:a.Z;function c(e){let r=e;if("function"==typeof e)r=e(u);else if("object"!=typeof e)return e;if(!r)return null;const o=(0,s.W8)(u.breakpoints),a=Object.keys(o);let c=o;return Object.keys(r).forEach((e=>{const o="function"==typeof(a=r[e])?a(u):a;var a;if(null!=o)if("object"==typeof o)if(l[e])c=(0,i.Z)(c,t(e,o,u,l));else{const t=(0,s.k9)({theme:u},o,(t=>({[e]:t})));!function(...t){const n=t.reduce(((t,n)=>t.concat(Object.keys(n))),[]),e=new Set(n);return t.every((t=>e.size===Object.keys(t).length))}(t,o)?c=(0,i.Z)(c,t):c[e]=n({sx:o,theme:u})}else c=(0,i.Z)(c,t(e,o,u,l))})),(0,s.L7)(a,c)}return Array.isArray(o)?o.map(c):c(o)}}();u.filterProps=["sx"];const l=u},85293:(t,n,e)=>{"use strict";e.d(n,{Z:()=>s});var r=e(716),i=e(2772);const o=(0,r.Z)(),s=function(t=o){return(0,i.Z)(t)}},77877:(t,n,e)=>{"use strict";e.d(n,{Z:()=>o});var r=e(13467),i=e(85293);function o({props:t,name:n,defaultTheme:e,themeId:o}){let s=(0,i.Z)(e);o&&(s=s[o]||s);const a=function(t){const{theme:n,name:e,props:i}=t;return n&&n.components&&n.components[e]&&n.components[e].defaultProps?(0,r.Z)(n.components[e].defaultProps,i):i}({theme:s,name:n,props:t});return a}},2772:(t,n,e)=>{"use strict";e.d(n,{Z:()=>o});var r=e(66204),i=e(49558);const o=function(t=null){const n=r.useContext(i.T);return n&&(e=n,0!==Object.keys(e).length)?n:t;var e}},51388:(t,n,e)=>{"use strict";e.d(n,{Z:()=>i});const r=t=>t,i=(()=>{let t=r;return{configure(n){t=n},generate:n=>t(n),reset(){t=r}}})()},46730:(t,n,e)=>{"use strict";e.d(n,{Z:()=>i});var r=e(89274);function i(t){if("string"!=typeof t)throw new Error((0,r.Z)(7));return t.charAt(0).toUpperCase()+t.slice(1)}},58029:(t,n,e)=>{"use strict";function r(t,n,e=void 0){const r={};return Object.keys(t).forEach((i=>{r[i]=t[i].reduce(((t,r)=>{if(r){const i=n(r);""!==i&&t.push(i),e&&e[r]&&t.push(e[r])}return t}),[]).join(" ")})),r}e.d(n,{Z:()=>r})},74603:(t,n,e)=>{"use strict";function r(...t){return t.reduce(((t,n)=>null==n?t:function(...e){t.apply(this,e),n.apply(this,e)}),(()=>{}))}e.d(n,{Z:()=>r})},72650:(t,n,e)=>{"use strict";function r(t,n=166){let e;function r(...r){clearTimeout(e),e=setTimeout((()=>{t.apply(this,r)}),n)}return r.clear=()=>{clearTimeout(e)},r}e.d(n,{Z:()=>r})},53709:(t,n,e)=>{"use strict";e.d(n,{P:()=>i,Z:()=>s});var r=e(30984);function i(t){return null!==t&&"object"==typeof t&&t.constructor===Object}function o(t){if(!i(t))return t;const n={};return Object.keys(t).forEach((e=>{n[e]=o(t[e])})),n}function s(t,n,e={clone:!0}){const a=e.clone?(0,r.Z)({},t):t;return i(t)&&i(n)&&Object.keys(n).forEach((r=>{"__proto__"!==r&&(i(n[r])&&r in t&&i(t[r])?a[r]=s(t[r],n[r],e):e.clone?a[r]=i(n[r])?o(n[r]):n[r]:a[r]=n[r])})),a}},89274:(t,n,e)=>{"use strict";function r(t){let n="https://mui.com/production-error/?code="+t;for(let t=1;tr})},95201:(t,n,e)=>{"use strict";e.d(n,{Z:()=>o});var r=e(51388);const i={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function o(t,n,e="Mui"){const o=i[n];return o?`${e}-${o}`:`${r.Z.generate(t)}-${n}`}},58109:(t,n,e)=>{"use strict";e.d(n,{Z:()=>i});var r=e(95201);function i(t,n,e="Mui"){const i={};return n.forEach((n=>{i[n]=(0,r.Z)(t,n,e)})),i}},35802:(t,n,e)=>{"use strict";function r(t){const n=t.documentElement.clientWidth;return Math.abs(window.innerWidth-n)}e.d(n,{Z:()=>r})},26074:(t,n,e)=>{"use strict";function r(t){return t&&t.ownerDocument||document}e.d(n,{Z:()=>r})},45796:(t,n,e)=>{"use strict";e.d(n,{Z:()=>i});var r=e(26074);function i(t){return(0,r.Z)(t).defaultView||window}},13467:(t,n,e)=>{"use strict";e.d(n,{Z:()=>i});var r=e(30984);function i(t,n){const e=(0,r.Z)({},n);return Object.keys(t).forEach((o=>{if(o.toString().match(/^(components|slots)$/))e[o]=(0,r.Z)({},t[o],e[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){const s=t[o]||{},a=n[o];e[o]={},a&&Object.keys(a)?s&&Object.keys(s)?(e[o]=(0,r.Z)({},a),Object.keys(s).forEach((t=>{e[o][t]=i(s[t],a[t])}))):e[o]=a:e[o]=s}else void 0===e[o]&&(e[o]=t[o])})),e}},513:(t,n,e)=>{"use strict";function r(t,n){"function"==typeof t?t(n):t&&(t.current=n)}e.d(n,{Z:()=>r})},40401:(t,n,e)=>{"use strict";e.d(n,{Z:()=>i});var r=e(66204);const i="undefined"!=typeof window?r.useLayoutEffect:r.useEffect},76734:(t,n,e)=>{"use strict";e.d(n,{Z:()=>o});var r=e(66204),i=e(40401);function o(t){const n=r.useRef(t);return(0,i.Z)((()=>{n.current=t})),r.useCallback(((...t)=>(0,n.current)(...t)),[])}},52682:(t,n,e)=>{"use strict";e.d(n,{Z:()=>o});var r=e(66204),i=e(513);function o(...t){return r.useMemo((()=>t.every((t=>null==t))?null:n=>{t.forEach((t=>{(0,i.Z)(t,n)}))}),t)}},96744:(t,n,e)=>{"use strict";var r;e.d(n,{Z:()=>a});var i=e(66204);let o=0;const s=(r||(r=e.t(i,2)))["useId".toString()];function a(t){if(void 0!==s){const n=s();return null!=t?t:n}return function(t){const[n,e]=i.useState(t),r=t||n;return i.useEffect((()=>{null==n&&(o+=1,e(`mui-${o}`))}),[n]),r}(t)}},63285:(t,n,e)=>{"use strict";function r(t,n){for(var e=arguments.length,r=new Array(e>2?e-2:0),i=2;ir})},63586:(t,n,e)=>{t=e.nmd(t),ace.define("ace/ext/searchbox.css",["require","exports","module"],(function(t,n,e){e.exports='\n\n/* ------------------------------------------------------------------------------------------\n * Editor Search Form\n * --------------------------------------------------------------------------------------- */\n.ace_search {\n background-color: #ddd;\n color: #666;\n border: 1px solid #cbcbcb;\n border-top: 0 none;\n overflow: hidden;\n margin: 0;\n padding: 4px 6px 0 4px;\n position: absolute;\n top: 0;\n z-index: 99;\n white-space: normal;\n}\n.ace_search.left {\n border-left: 0 none;\n border-radius: 0px 0px 5px 0px;\n left: 0;\n}\n.ace_search.right {\n border-radius: 0px 0px 0px 5px;\n border-right: 0 none;\n right: 0;\n}\n\n.ace_search_form, .ace_replace_form {\n margin: 0 20px 4px 0;\n overflow: hidden;\n line-height: 1.9;\n}\n.ace_replace_form {\n margin-right: 0;\n}\n.ace_search_form.ace_nomatch {\n outline: 1px solid red;\n}\n\n.ace_search_field {\n border-radius: 3px 0 0 3px;\n background-color: white;\n color: black;\n border: 1px solid #cbcbcb;\n border-right: 0 none;\n outline: 0;\n padding: 0;\n font-size: inherit;\n margin: 0;\n line-height: inherit;\n padding: 0 6px;\n min-width: 17em;\n vertical-align: top;\n min-height: 1.8em;\n box-sizing: content-box;\n}\n.ace_searchbtn {\n border: 1px solid #cbcbcb;\n line-height: inherit;\n display: inline-block;\n padding: 0 6px;\n background: #fff;\n border-right: 0 none;\n border-left: 1px solid #dcdcdc;\n cursor: pointer;\n margin: 0;\n position: relative;\n color: #666;\n}\n.ace_searchbtn:last-child {\n border-radius: 0 3px 3px 0;\n border-right: 1px solid #cbcbcb;\n}\n.ace_searchbtn:disabled {\n background: none;\n cursor: default;\n}\n.ace_searchbtn:hover {\n background-color: #eef1f6;\n}\n.ace_searchbtn.prev, .ace_searchbtn.next {\n padding: 0px 0.7em\n}\n.ace_searchbtn.prev:after, .ace_searchbtn.next:after {\n content: "";\n border: solid 2px #888;\n width: 0.5em;\n height: 0.5em;\n border-width: 2px 0 0 2px;\n display:inline-block;\n transform: rotate(-45deg);\n}\n.ace_searchbtn.next:after {\n border-width: 0 2px 2px 0 ;\n}\n.ace_searchbtn_close {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;\n border-radius: 50%;\n border: 0 none;\n color: #656565;\n cursor: pointer;\n font: 16px/16px Arial;\n padding: 0;\n height: 14px;\n width: 14px;\n top: 9px;\n right: 7px;\n position: absolute;\n}\n.ace_searchbtn_close:hover {\n background-color: #656565;\n background-position: 50% 100%;\n color: white;\n}\n\n.ace_button {\n margin-left: 2px;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -o-user-select: none;\n -ms-user-select: none;\n user-select: none;\n overflow: hidden;\n opacity: 0.7;\n border: 1px solid rgba(100,100,100,0.23);\n padding: 1px;\n box-sizing: border-box!important;\n color: black;\n}\n\n.ace_button:hover {\n background-color: #eee;\n opacity:1;\n}\n.ace_button:active {\n background-color: #ddd;\n}\n\n.ace_button.checked {\n border-color: #3399ff;\n opacity:1;\n}\n\n.ace_search_options{\n margin-bottom: 3px;\n text-align: right;\n -webkit-user-select: none;\n -moz-user-select: none;\n -o-user-select: none;\n -ms-user-select: none;\n user-select: none;\n clear: both;\n}\n\n.ace_search_counter {\n float: left;\n font-family: arial;\n padding: 0 8px;\n}'})),ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/ext/searchbox.css","ace/keyboard/hash_handler","ace/lib/keys"],(function(t,n,e){"use strict";var r=t("../lib/dom"),i=t("../lib/lang"),o=t("../lib/event"),s=t("./searchbox.css"),a=t("../keyboard/hash_handler").HashHandler,u=t("../lib/keys");r.importCssString(s,"ace_searchbox",!1);var l=function(t,n,e){var i=r.createElement("div");r.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:"Search for",spellcheck:"false"}],["span",{action:"findPrev",class:"ace_searchbtn prev"},"​"],["span",{action:"findNext",class:"ace_searchbtn next"},"​"],["span",{action:"findAll",class:"ace_searchbtn",title:"Alt-Enter"},"All"]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:"Replace with",spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},"Replace"],["span",{action:"replaceAll",class:"ace_searchbtn"},"All"]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:"Toggle Replace mode",style:"float:left;margin-top:-2px;padding:0 5px;"},"+"],["span",{class:"ace_search_counter"}],["span",{action:"toggleRegexpMode",class:"ace_button",title:"RegExp Search"},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:"CaseSensitive Search"},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:"Whole Word Search"},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:"Search In Selection"},"S"]]],i),this.element=i.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(t),r.importCssString(s,"ace_searchbox",t.container)};(function(){this.setEditor=function(t){t.searchBox=this,t.renderer.scroller.appendChild(this.element),this.editor=t},this.setSession=function(t){this.searchRange=null,this.$syncOptions(!0)},this.$initElements=function(t){this.searchBox=t.querySelector(".ace_search_form"),this.replaceBox=t.querySelector(".ace_replace_form"),this.searchOption=t.querySelector("[action=searchInSelection]"),this.replaceOption=t.querySelector("[action=toggleReplace]"),this.regExpOption=t.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=t.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=t.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=t.querySelector(".ace_search_counter")},this.$init=function(){var t=this.element;this.$initElements(t);var n=this;o.addListener(t,"mousedown",(function(t){setTimeout((function(){n.activeInput.focus()}),0),o.stopPropagation(t)})),o.addListener(t,"click",(function(t){var e=(t.target||t.srcElement).getAttribute("action");e&&n[e]?n[e]():n.$searchBarKb.commands[e]&&n.$searchBarKb.commands[e].exec(n),o.stopPropagation(t)})),o.addCommandKeyListener(t,(function(t,e,r){var i=u.keyCodeToString(r),s=n.$searchBarKb.findKeyCommand(e,i);s&&s.exec&&(s.exec(n),o.stopEvent(t))})),this.$onChange=i.delayedCall((function(){n.find(!1,!1)})),o.addListener(this.searchInput,"input",(function(){n.$onChange.schedule(20)})),o.addListener(this.searchInput,"focus",(function(){n.activeInput=n.searchInput,n.searchInput.value&&n.highlight()})),o.addListener(this.replaceInput,"focus",(function(){n.activeInput=n.replaceInput,n.searchInput.value&&n.highlight()}))},this.$closeSearchBarKb=new a([{bindKey:"Esc",name:"closeSearchBar",exec:function(t){t.searchBox.hide()}}]),this.$searchBarKb=new a,this.$searchBarKb.bindKeys({"Ctrl-f|Command-f":function(t){var n=t.isReplace=!t.isReplace;t.replaceBox.style.display=n?"":"none",t.replaceOption.checked=!1,t.$syncOptions(),t.searchInput.focus()},"Ctrl-H|Command-Option-F":function(t){t.editor.getReadOnly()||(t.replaceOption.checked=!0,t.$syncOptions(),t.replaceInput.focus())},"Ctrl-G|Command-G":function(t){t.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(t){t.findPrev()},esc:function(t){setTimeout((function(){t.hide()}))},Return:function(t){t.activeInput==t.replaceInput&&t.replace(),t.findNext()},"Shift-Return":function(t){t.activeInput==t.replaceInput&&t.replace(),t.findPrev()},"Alt-Return":function(t){t.activeInput==t.replaceInput&&t.replaceAll(),t.findAll()},Tab:function(t){(t.activeInput==t.replaceInput?t.searchInput:t.replaceInput).focus()}}),this.$searchBarKb.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(t){t.regExpOption.checked=!t.regExpOption.checked,t.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(t){t.caseSensitiveOption.checked=!t.caseSensitiveOption.checked,t.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(t){t.wholeWordOption.checked=!t.wholeWordOption.checked,t.$syncOptions()}},{name:"toggleReplace",exec:function(t){t.replaceOption.checked=!t.replaceOption.checked,t.$syncOptions()}},{name:"searchInSelection",exec:function(t){t.searchOption.checked=!t.searchRange,t.setSearchRange(t.searchOption.checked&&t.editor.getSelectionRange()),t.$syncOptions()}}]),this.setSearchRange=function(t){this.searchRange=t,t?this.searchRangeMarker=this.editor.session.addMarker(t,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},this.$syncOptions=function(t){r.setCssClass(this.replaceOption,"checked",this.searchRange),r.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",r.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),r.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),r.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var n=this.editor.getReadOnly();this.replaceOption.style.display=n?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!n?"":"none",this.find(!1,!1,t)},this.highlight=function(t){this.editor.session.highlight(t||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},this.find=function(t,n,e){var i=!this.editor.find(this.searchInput.value,{skipCurrent:t,backwards:n,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:e,range:this.searchRange})&&this.searchInput.value;r.setCssClass(this.searchBox,"ace_nomatch",i),this.editor._emit("findSearchBox",{match:!i}),this.highlight(),this.updateCounter()},this.updateCounter=function(){var t=this.editor,n=t.$search.$options.re,e=0,r=0;if(n){var i=this.searchRange?t.session.getTextRange(this.searchRange):t.getValue(),o=t.session.doc.positionToIndex(t.selection.anchor);this.searchRange&&(o-=t.session.doc.positionToIndex(this.searchRange.start));for(var s,a=n.lastIndex=0;(s=n.exec(i))&&(e++,(a=s.index)<=o&&r++,!(e>999))&&(s[0]||(n.lastIndex=a+=1,!(a>=i.length))););}this.searchCounter.textContent=r+" of "+(e>999?"999+":e)},this.findNext=function(){this.find(!0,!1)},this.findPrev=function(){this.find(!0,!0)},this.findAll=function(){var t=!this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked})&&this.searchInput.value;r.setCssClass(this.searchBox,"ace_nomatch",t),this.editor._emit("findSearchBox",{match:!t}),this.highlight(),this.hide()},this.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},this.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},this.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},this.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},this.show=function(t,n){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=n,t&&(this.searchInput.value=t),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},this.isFocused=function(){var t=document.activeElement;return t==this.searchInput||t==this.replaceInput}}).call(l.prototype),n.SearchBox=l,n.Search=function(t,n){(t.searchBox||new l(t)).show(t.session.getTextRange(),n)}})),ace.require(["ace/ext/searchbox"],(function(n){t&&(t.exports=n)}))},28028:(t,n,e)=>{t=e.nmd(t),ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(t,n,e){"use strict";var r=t("../lib/oop"),i=t("./text_highlight_rules").TextHighlightRules,o=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},o.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};r.inherits(o,i),o.getTagRule=function(t){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},o.getStartRule=function(t){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:t}},o.getEndRule=function(t){return{token:"comment.doc",regex:"\\*\\/",next:t}},n.DocCommentHighlightRules=o})),ace.define("ace/mode/c_cpp_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],(function(t,n,e){"use strict";var r=t("../lib/oop"),i=t("./doc_comment_highlight_rules").DocCommentHighlightRules,o=t("./text_highlight_rules").TextHighlightRules,s=n.cFunctions="\\b(?:hypot(?:f|l)?|s(?:scanf|ystem|nprintf|ca(?:nf|lb(?:n(?:f|l)?|ln(?:f|l)?))|i(?:n(?:h(?:f|l)?|f|l)?|gn(?:al|bit))|tr(?:s(?:tr|pn)|nc(?:py|at|mp)|c(?:spn|hr|oll|py|at|mp)|to(?:imax|d|u(?:l(?:l)?|max)|k|f|l(?:d|l)?)|error|pbrk|ftime|len|rchr|xfrm)|printf|et(?:jmp|vbuf|locale|buf)|qrt(?:f|l)?|w(?:scanf|printf)|rand)|n(?:e(?:arbyint(?:f|l)?|xt(?:toward(?:f|l)?|after(?:f|l)?))|an(?:f|l)?)|c(?:s(?:in(?:h(?:f|l)?|f|l)?|qrt(?:f|l)?)|cos(?:h(?:f)?|f|l)?|imag(?:f|l)?|t(?:ime|an(?:h(?:f|l)?|f|l)?)|o(?:s(?:h(?:f|l)?|f|l)?|nj(?:f|l)?|pysign(?:f|l)?)|p(?:ow(?:f|l)?|roj(?:f|l)?)|e(?:il(?:f|l)?|xp(?:f|l)?)|l(?:o(?:ck|g(?:f|l)?)|earerr)|a(?:sin(?:h(?:f|l)?|f|l)?|cos(?:h(?:f|l)?|f|l)?|tan(?:h(?:f|l)?|f|l)?|lloc|rg(?:f|l)?|bs(?:f|l)?)|real(?:f|l)?|brt(?:f|l)?)|t(?:ime|o(?:upper|lower)|an(?:h(?:f|l)?|f|l)?|runc(?:f|l)?|gamma(?:f|l)?|mp(?:nam|file))|i(?:s(?:space|n(?:ormal|an)|cntrl|inf|digit|u(?:nordered|pper)|p(?:unct|rint)|finite|w(?:space|c(?:ntrl|type)|digit|upper|p(?:unct|rint)|lower|al(?:num|pha)|graph|xdigit|blank)|l(?:ower|ess(?:equal|greater)?)|al(?:num|pha)|gr(?:eater(?:equal)?|aph)|xdigit|blank)|logb(?:f|l)?|max(?:div|abs))|di(?:v|fftime)|_Exit|unget(?:c|wc)|p(?:ow(?:f|l)?|ut(?:s|c(?:har)?|wc(?:har)?)|error|rintf)|e(?:rf(?:c(?:f|l)?|f|l)?|x(?:it|p(?:2(?:f|l)?|f|l|m1(?:f|l)?)?))|v(?:s(?:scanf|nprintf|canf|printf|w(?:scanf|printf))|printf|f(?:scanf|printf|w(?:scanf|printf))|w(?:scanf|printf)|a_(?:start|copy|end|arg))|qsort|f(?:s(?:canf|e(?:tpos|ek))|close|tell|open|dim(?:f|l)?|p(?:classify|ut(?:s|c|w(?:s|c))|rintf)|e(?:holdexcept|set(?:e(?:nv|xceptflag)|round)|clearexcept|testexcept|of|updateenv|r(?:aiseexcept|ror)|get(?:e(?:nv|xceptflag)|round))|flush|w(?:scanf|ide|printf|rite)|loor(?:f|l)?|abs(?:f|l)?|get(?:s|c|pos|w(?:s|c))|re(?:open|e|ad|xp(?:f|l)?)|m(?:in(?:f|l)?|od(?:f|l)?|a(?:f|l|x(?:f|l)?)?))|l(?:d(?:iv|exp(?:f|l)?)|o(?:ngjmp|cal(?:time|econv)|g(?:1(?:p(?:f|l)?|0(?:f|l)?)|2(?:f|l)?|f|l|b(?:f|l)?)?)|abs|l(?:div|abs|r(?:int(?:f|l)?|ound(?:f|l)?))|r(?:int(?:f|l)?|ound(?:f|l)?)|gamma(?:f|l)?)|w(?:scanf|c(?:s(?:s(?:tr|pn)|nc(?:py|at|mp)|c(?:spn|hr|oll|py|at|mp)|to(?:imax|d|u(?:l(?:l)?|max)|k|f|l(?:d|l)?|mbs)|pbrk|ftime|len|r(?:chr|tombs)|xfrm)|to(?:b|mb)|rtomb)|printf|mem(?:set|c(?:hr|py|mp)|move))|a(?:s(?:sert|ctime|in(?:h(?:f|l)?|f|l)?)|cos(?:h(?:f|l)?|f|l)?|t(?:o(?:i|f|l(?:l)?)|exit|an(?:h(?:f|l)?|2(?:f|l)?|f|l)?)|b(?:s|ort))|g(?:et(?:s|c(?:har)?|env|wc(?:har)?)|mtime)|r(?:int(?:f|l)?|ound(?:f|l)?|e(?:name|alloc|wind|m(?:ove|quo(?:f|l)?|ainder(?:f|l)?))|a(?:nd|ise))|b(?:search|towc)|m(?:odf(?:f|l)?|em(?:set|c(?:hr|py|mp)|move)|ktime|alloc|b(?:s(?:init|towcs|rtowcs)|towc|len|r(?:towc|len))))\\b",a=function(){var t=this.$keywords=this.createKeywordMapper({"keyword.control":"break|case|continue|default|do|else|for|goto|if|_Pragma|return|switch|while|catch|operator|try|throw|using","storage.type":"asm|__asm__|auto|bool|_Bool|char|_Complex|double|enum|float|_Imaginary|int|int8_t|int16_t|int32_t|int64_t|long|short|signed|size_t|struct|typedef|uint8_t|uint16_t|uint32_t|uint64_t|union|unsigned|void|class|wchar_t|template|char16_t|char32_t","storage.modifier":"const|extern|register|restrict|static|volatile|inline|private|protected|public|friend|explicit|virtual|export|mutable|typename|constexpr|new|delete|alignas|alignof|decltype|noexcept|thread_local","keyword.operator":"and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|const_cast|dynamic_cast|reinterpret_cast|static_cast|sizeof|namespace","variable.language":"this","constant.language":"NULL|true|false|TRUE|FALSE|nullptr"},"identifier"),n=/\\(?:['"?\\abfnrtv]|[0-7]{1,3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}U[a-fA-F\d]{8}|.)/.source,e="%"+/(\d+\$)?/.source+/[#0\- +']*/.source+/[,;:_]?/.source+/((-?\d+)|\*(-?\d+\$)?)?/.source+/(\.((-?\d+)|\*(-?\d+\$)?)?)?/.source+/(hh|h|ll|l|j|t|z|q|L|vh|vl|v|hv|hl)?/.source+/(\[[^"\]]+\]|[diouxXDOUeEfFgGaACcSspn%])/.source;this.$rules={start:[{token:"comment",regex:"//$",next:"start"},{token:"comment",regex:"//",next:"singleLineComment"},i.getStartRule("doc-start"),{token:"comment",regex:"\\/\\*",next:"comment"},{token:"string",regex:"'(?:"+n+"|.)?'"},{token:"string.start",regex:'"',stateName:"qqstring",next:[{token:"string",regex:/\\\s*$/,next:"qqstring"},{token:"constant.language.escape",regex:n},{token:"constant.language.escape",regex:e},{token:"string.end",regex:'"|$',next:"start"},{defaultToken:"string"}]},{token:"string.start",regex:'R"\\(',stateName:"rawString",next:[{token:"string.end",regex:'\\)"',next:"start"},{defaultToken:"string"}]},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\\b"},{token:"keyword",regex:"#\\s*(?:include|import|pragma|line|define|undef)\\b",next:"directive"},{token:"keyword",regex:"#\\s*(?:endif|if|ifdef|else|elif|ifndef)\\b"},{token:"support.function.C99.c",regex:s},{token:t,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*"},{token:"keyword.operator",regex:/--|\+\+|<<=|>>=|>>>=|<>|&&|\|\||\?:|[*%\/+\-&\^|~!<>=]=?/},{token:"punctuation.operator",regex:"\\?|\\:|\\,|\\;|\\."},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],comment:[{token:"comment",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}],singleLineComment:[{token:"comment",regex:/\\$/,next:"singleLineComment"},{token:"comment",regex:/$/,next:"start"},{defaultToken:"comment"}],directive:[{token:"constant.other.multiline",regex:/\\/},{token:"constant.other.multiline",regex:/.*\\/},{token:"constant.other",regex:"\\s*<.+?>",next:"start"},{token:"constant.other",regex:'\\s*["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]',next:"start"},{token:"constant.other",regex:"\\s*['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']",next:"start"},{token:"constant.other",regex:/[^\\\/]+/,next:"start"}]},this.embedRules(i,"doc-",[i.getEndRule("start")]),this.normalizeRules()};r.inherits(a,o),n.c_cppHighlightRules=a})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(t,n,e){"use strict";var r=t("../range").Range,i=function(){};(function(){this.checkOutdent=function(t,n){return!!/^\s+$/.test(t)&&/^\s*\}/.test(n)},this.autoOutdent=function(t,n){var e=t.getLine(n).match(/^(\s*\})/);if(!e)return 0;var i=e[1].length,o=t.findMatchingBracket({row:n,column:i});if(!o||o.row==n)return 0;var s=this.$getIndent(t.getLine(o.row));t.replace(new r(n,0,n,i-1),s)},this.$getIndent=function(t){return t.match(/^\s*/)[0]}}).call(i.prototype),n.MatchingBraceOutdent=i})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(t,n,e){"use strict";var r=t("../../lib/oop"),i=t("../../range").Range,o=t("./fold_mode").FoldMode,s=n.FoldMode=function(t){t&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+t.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+t.end)))};r.inherits(s,o),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(t,n,e){var r=t.getLine(e);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(t,n,e);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(t,n,e,r){var i,o=t.getLine(e);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(t,o,e);if(i=o.match(this.foldingStartMarker)){var s=i.index;if(i[1])return this.openingBracketBlock(t,i[1],e,s);var a=t.getCommentFoldRange(e,s+i[0].length,1);return a&&!a.isMultiLine()&&(r?a=this.getSectionRange(t,e):"all"!=n&&(a=null)),a}return"markbegin"!==n&&(i=o.match(this.foldingStopMarker))?(s=i.index+i[0].length,i[1]?this.closingBracketBlock(t,i[1],e,s):t.getCommentFoldRange(e,s,-1)):void 0},this.getSectionRange=function(t,n){for(var e=t.getLine(n),r=e.search(/\S/),o=n,s=e.length,a=n+=1,u=t.getLength();++nl)break;var c=this.getFoldWidgetRange(t,"all",n);if(c){if(c.start.row<=o)break;if(c.isMultiLine())n=c.end.row;else if(r==l)break}a=n}}return new i(o,s,a,t.getLine(a).length)},this.getCommentRegionBlock=function(t,n,e){for(var r=n.search(/\s*$/),o=t.getLength(),s=e,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,u=1;++es)return new i(s,r,e,n.length)}}.call(s.prototype)})),ace.define("ace/mode/c_cpp",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/c_cpp_highlight_rules","ace/mode/matching_brace_outdent","ace/range","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],(function(t,n,e){"use strict";var r=t("../lib/oop"),i=t("./text").Mode,o=t("./c_cpp_highlight_rules").c_cppHighlightRules,s=t("./matching_brace_outdent").MatchingBraceOutdent,a=(t("../range").Range,t("./behaviour/cstyle").CstyleBehaviour),u=t("./folding/cstyle").FoldMode,l=function(){this.HighlightRules=o,this.$outdent=new s,this.$behaviour=new a,this.foldingRules=new u};r.inherits(l,i),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(t,n,e){var r=this.$getIndent(n),i=this.getTokenizer().getLineTokens(n,t),o=i.tokens,s=i.state;if(o.length&&"comment"==o[o.length-1].type)return r;if("start"==t)(a=n.match(/^.*[\{\(\[]\s*$/))&&(r+=e);else if("doc-start"==t){if("start"==s)return"";var a;(a=n.match(/^\s*(\/?)\*/))&&(a[1]&&(r+=" "),r+="* ")}return r},this.checkOutdent=function(t,n,e){return this.$outdent.checkOutdent(n,e)},this.autoOutdent=function(t,n,e){this.$outdent.autoOutdent(n,e)},this.$id="ace/mode/c_cpp",this.snippetFileId="ace/snippets/c_cpp"}.call(l.prototype),n.Mode=l})),ace.define("ace/mode/glsl_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/c_cpp_highlight_rules"],(function(t,n,e){"use strict";var r=t("../lib/oop"),i=t("./c_cpp_highlight_rules").c_cppHighlightRules,o=function(){var t=this.createKeywordMapper({"variable.language":"this",keyword:"attribute|const|uniform|varying|break|continue|do|for|while|if|else|in|out|inout|float|int|void|bool|true|false|lowp|mediump|highp|precision|invariant|discard|return|mat2|mat3|mat4|vec2|vec3|vec4|ivec2|ivec3|ivec4|bvec2|bvec3|bvec4|sampler2D|samplerCube|struct","constant.language":"radians|degrees|sin|cos|tan|asin|acos|atan|pow|exp|log|exp2|log2|sqrt|inversesqrt|abs|sign|floor|ceil|fract|mod|min|max|clamp|mix|step|smoothstep|length|distance|dot|cross|normalize|faceforward|reflect|refract|matrixCompMult|lessThan|lessThanEqual|greaterThan|greaterThanEqual|equal|notEqual|any|all|not|dFdx|dFdy|fwidth|texture2D|texture2DProj|texture2DLod|texture2DProjLod|textureCube|textureCubeLod|gl_MaxVertexAttribs|gl_MaxVertexUniformVectors|gl_MaxVaryingVectors|gl_MaxVertexTextureImageUnits|gl_MaxCombinedTextureImageUnits|gl_MaxTextureImageUnits|gl_MaxFragmentUniformVectors|gl_MaxDrawBuffers|gl_DepthRangeParameters|gl_DepthRange|gl_Position|gl_PointSize|gl_FragCoord|gl_FrontFacing|gl_PointCoord|gl_FragColor|gl_FragData"},"identifier");this.$rules=(new i).$rules,this.$rules.start.forEach((function(n){"function"==typeof n.token&&(n.token=t)}))};r.inherits(o,i),n.glslHighlightRules=o})),ace.define("ace/mode/glsl",["require","exports","module","ace/lib/oop","ace/mode/c_cpp","ace/mode/glsl_highlight_rules","ace/mode/matching_brace_outdent","ace/range","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],(function(t,n,e){"use strict";var r=t("../lib/oop"),i=t("./c_cpp").Mode,o=t("./glsl_highlight_rules").glslHighlightRules,s=t("./matching_brace_outdent").MatchingBraceOutdent,a=(t("../range").Range,t("./behaviour/cstyle").CstyleBehaviour),u=t("./folding/cstyle").FoldMode,l=function(){this.HighlightRules=o,this.$outdent=new s,this.$behaviour=new a,this.foldingRules=new u};r.inherits(l,i),function(){this.$id="ace/mode/glsl"}.call(l.prototype),n.Mode=l})),ace.require(["ace/mode/glsl"],(function(n){t&&(t.exports=n)}))},26577:(t,n,e)=>{t=e.nmd(t),ace.define("ace/theme/github.css",["require","exports","module"],(function(t,n,e){e.exports='/* CSS style content from github\'s default pygments highlighter template.\n Cursor and selection styles from textmate.css. */\n.ace-github .ace_gutter {\n background: #e8e8e8;\n color: #AAA;\n}\n\n.ace-github {\n background: #fff;\n color: #000;\n}\n\n.ace-github .ace_keyword {\n font-weight: bold;\n}\n\n.ace-github .ace_string {\n color: #D14;\n}\n\n.ace-github .ace_variable.ace_class {\n color: teal;\n}\n\n.ace-github .ace_constant.ace_numeric {\n color: #099;\n}\n\n.ace-github .ace_constant.ace_buildin {\n color: #0086B3;\n}\n\n.ace-github .ace_support.ace_function {\n color: #0086B3;\n}\n\n.ace-github .ace_comment {\n color: #998;\n font-style: italic;\n}\n\n.ace-github .ace_variable.ace_language {\n color: #0086B3;\n}\n\n.ace-github .ace_paren {\n font-weight: bold;\n}\n\n.ace-github .ace_boolean {\n font-weight: bold;\n}\n\n.ace-github .ace_string.ace_regexp {\n color: #009926;\n font-weight: normal;\n}\n\n.ace-github .ace_variable.ace_instance {\n color: teal;\n}\n\n.ace-github .ace_constant.ace_language {\n font-weight: bold;\n}\n\n.ace-github .ace_cursor {\n color: black;\n}\n\n.ace-github.ace_focus .ace_marker-layer .ace_active-line {\n background: rgb(255, 255, 204);\n}\n.ace-github .ace_marker-layer .ace_active-line {\n background: rgb(245, 245, 245);\n}\n\n.ace-github .ace_marker-layer .ace_selection {\n background: rgb(181, 213, 255);\n}\n\n.ace-github.ace_multiselect .ace_selection.ace_start {\n box-shadow: 0 0 3px 0px white;\n}\n/* bold keywords cause cursor issues for some fonts */\n/* this disables bold style for editor and keeps for static highlighter */\n.ace-github.ace_nobold .ace_line > span {\n font-weight: normal !important;\n}\n\n.ace-github .ace_marker-layer .ace_step {\n background: rgb(252, 255, 0);\n}\n\n.ace-github .ace_marker-layer .ace_stack {\n background: rgb(164, 229, 101);\n}\n\n.ace-github .ace_marker-layer .ace_bracket {\n margin: -1px 0 0 -1px;\n border: 1px solid rgb(192, 192, 192);\n}\n\n.ace-github .ace_gutter-active-line {\n background-color : rgba(0, 0, 0, 0.07);\n}\n\n.ace-github .ace_marker-layer .ace_selected-word {\n background: rgb(250, 250, 255);\n border: 1px solid rgb(200, 200, 250);\n}\n\n.ace-github .ace_invisible {\n color: #BFBFBF\n}\n\n.ace-github .ace_print-margin {\n width: 1px;\n background: #e8e8e8;\n}\n\n.ace-github .ace_indent-guide {\n background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;\n}\n\n.ace-github .ace_indent-guide-active {\n background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;\n}\n'})),ace.define("ace/theme/github",["require","exports","module","ace/theme/github.css","ace/lib/dom"],(function(t,n,e){n.isDark=!1,n.cssClass="ace-github",n.cssText=t("./github.css"),t("../lib/dom").importCssString(n.cssText,n.cssClass,!1)})),ace.require(["ace/theme/github"],(function(n){t&&(t.exports=n)}))},41950:(t,n,e)=>{t=e.nmd(t),ace.define("ace/theme/tomorrow_night_bright.css",["require","exports","module"],(function(t,n,e){e.exports='.ace-tomorrow-night-bright .ace_gutter {\n background: #1a1a1a;\n color: #DEDEDE\n}\n\n.ace-tomorrow-night-bright .ace_print-margin {\n width: 1px;\n background: #1a1a1a\n}\n\n.ace-tomorrow-night-bright {\n background-color: #000000;\n color: #DEDEDE\n}\n\n.ace-tomorrow-night-bright .ace_cursor {\n color: #9F9F9F\n}\n\n.ace-tomorrow-night-bright .ace_marker-layer .ace_selection {\n background: #424242\n}\n\n.ace-tomorrow-night-bright.ace_multiselect .ace_selection.ace_start {\n box-shadow: 0 0 3px 0px #000000;\n}\n\n.ace-tomorrow-night-bright .ace_marker-layer .ace_step {\n background: rgb(102, 82, 0)\n}\n\n.ace-tomorrow-night-bright .ace_marker-layer .ace_bracket {\n margin: -1px 0 0 -1px;\n border: 1px solid #888888\n}\n\n.ace-tomorrow-night-bright .ace_marker-layer .ace_highlight {\n border: 1px solid rgb(110, 119, 0);\n border-bottom: 0;\n box-shadow: inset 0 -1px rgb(110, 119, 0);\n margin: -1px 0 0 -1px;\n background: rgba(255, 235, 0, 0.1)\n}\n\n.ace-tomorrow-night-bright .ace_marker-layer .ace_active-line {\n background: #2A2A2A\n}\n\n.ace-tomorrow-night-bright .ace_gutter-active-line {\n background-color: #2A2A2A\n}\n\n.ace-tomorrow-night-bright .ace_stack {\n background-color: rgb(66, 90, 44)\n}\n\n.ace-tomorrow-night-bright .ace_marker-layer .ace_selected-word {\n border: 1px solid #888888\n}\n\n.ace-tomorrow-night-bright .ace_invisible {\n color: #343434\n}\n\n.ace-tomorrow-night-bright .ace_keyword,\n.ace-tomorrow-night-bright .ace_meta,\n.ace-tomorrow-night-bright .ace_storage,\n.ace-tomorrow-night-bright .ace_storage.ace_type,\n.ace-tomorrow-night-bright .ace_support.ace_type {\n color: #C397D8\n}\n\n.ace-tomorrow-night-bright .ace_keyword.ace_operator {\n color: #70C0B1\n}\n\n.ace-tomorrow-night-bright .ace_constant.ace_character,\n.ace-tomorrow-night-bright .ace_constant.ace_language,\n.ace-tomorrow-night-bright .ace_constant.ace_numeric,\n.ace-tomorrow-night-bright .ace_keyword.ace_other.ace_unit,\n.ace-tomorrow-night-bright .ace_support.ace_constant,\n.ace-tomorrow-night-bright .ace_variable.ace_parameter {\n color: #E78C45\n}\n\n.ace-tomorrow-night-bright .ace_constant.ace_other {\n color: #EEEEEE\n}\n\n.ace-tomorrow-night-bright .ace_invalid {\n color: #CED2CF;\n background-color: #DF5F5F\n}\n\n.ace-tomorrow-night-bright .ace_invalid.ace_deprecated {\n color: #CED2CF;\n background-color: #B798BF\n}\n\n.ace-tomorrow-night-bright .ace_fold {\n background-color: #7AA6DA;\n border-color: #DEDEDE\n}\n\n.ace-tomorrow-night-bright .ace_entity.ace_name.ace_function,\n.ace-tomorrow-night-bright .ace_support.ace_function,\n.ace-tomorrow-night-bright .ace_variable {\n color: #7AA6DA\n}\n\n.ace-tomorrow-night-bright .ace_support.ace_class,\n.ace-tomorrow-night-bright .ace_support.ace_type {\n color: #E7C547\n}\n\n.ace-tomorrow-night-bright .ace_heading,\n.ace-tomorrow-night-bright .ace_markup.ace_heading,\n.ace-tomorrow-night-bright .ace_string {\n color: #B9CA4A\n}\n\n.ace-tomorrow-night-bright .ace_entity.ace_name.ace_tag,\n.ace-tomorrow-night-bright .ace_entity.ace_other.ace_attribute-name,\n.ace-tomorrow-night-bright .ace_meta.ace_tag,\n.ace-tomorrow-night-bright .ace_string.ace_regexp,\n.ace-tomorrow-night-bright .ace_variable {\n color: #D54E53\n}\n\n.ace-tomorrow-night-bright .ace_comment {\n color: #969896\n}\n\n.ace-tomorrow-night-bright .ace_c9searchresults.ace_keyword {\n color: #C2C280\n}\n\n.ace-tomorrow-night-bright .ace_indent-guide {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYFBXV/8PAAJoAXX4kT2EAAAAAElFTkSuQmCC) right repeat-y\n}\n\n.ace-tomorrow-night-bright .ace_indent-guide-active {\n background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;\n}\n'})),ace.define("ace/theme/tomorrow_night_bright",["require","exports","module","ace/theme/tomorrow_night_bright.css","ace/lib/dom"],(function(t,n,e){n.isDark=!0,n.cssClass="ace-tomorrow-night-bright",n.cssText=t("./tomorrow_night_bright.css"),t("../lib/dom").importCssString(n.cssText,n.cssClass,!1)})),ace.require(["ace/theme/tomorrow_night_bright"],(function(n){t&&(t.exports=n)}))},33127:(t,n,e)=>{t=e.nmd(t),function(){var t=function(){return this}();t||"undefined"==typeof window||(t=window);var n=function(t,e,r){"string"==typeof t?(2==arguments.length&&(r=e),n.modules[t]||(n.payloads[t]=r,n.modules[t]=null)):n.original?n.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace())};n.modules={},n.payloads={};var e,r,i=function(t,n,e){if("string"==typeof n){var r=a(t,n);if(null!=r)return e&&e(),r}else if("[object Array]"===Object.prototype.toString.call(n)){for(var i=[],s=0,u=n.length;se.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n})),String.prototype.repeat||r(String.prototype,"repeat",(function(t){for(var n="",e=this;t>0;)1&t&&(n+=e),(t>>=1)&&(e+=e);return n})),String.prototype.includes||r(String.prototype,"includes",(function(t,n){return-1!=this.indexOf(t,n)})),Object.assign||(Object.assign=function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),e=1;e>>0,r=arguments[1]>>0,i=r<0?Math.max(e+r,0):Math.min(r,e),o=arguments[2],s=void 0===o?e:o>>0,a=s<0?Math.max(e+s,0):Math.min(s,e);i0;)1&n&&(e+=t),(n>>=1)&&(t+=t);return e};var r=/^\s\s*/,i=/\s\s*$/;n.stringTrimLeft=function(t){return t.replace(r,"")},n.stringTrimRight=function(t){return t.replace(i,"")},n.copyObject=function(t){var n={};for(var e in t)n[e]=t[e];return n},n.copyArray=function(t){for(var n=[],e=0,r=t.length;e=0?parseFloat((o.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((o.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),n.isOldIE=n.isIE&&n.isIE<9,n.isGecko=n.isMozilla=o.match(/ Gecko\/\d+/),n.isOpera="object"==typeof opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),n.isWebKit=parseFloat(o.split("WebKit/")[1])||void 0,n.isChrome=parseFloat(o.split(" Chrome/")[1])||void 0,n.isEdge=parseFloat(o.split(" Edge/")[1])||void 0,n.isAIR=o.indexOf("AdobeAIR")>=0,n.isAndroid=o.indexOf("Android")>=0,n.isChromeOS=o.indexOf(" CrOS ")>=0,n.isIOS=/iPad|iPhone|iPod/.test(o)&&!window.MSStream,n.isIOS&&(n.isMac=!0),n.isMobile=n.isIOS||n.isAndroid})),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],(function(t,n,e){"use strict";var r,i=t("./useragent");n.buildDom=function t(n,e,r){if("string"==typeof n&&n){var i=document.createTextNode(n);return e&&e.appendChild(i),i}if(!Array.isArray(n))return n&&n.appendChild&&e&&e.appendChild(n),n;if("string"!=typeof n[0]||!n[0]){for(var o=[],s=0;s=1.5,i.isChromeOS&&(n.HI_DPI=!1),"undefined"!=typeof document){var u=document.createElement("div");n.HI_DPI&&void 0!==u.style.transform&&(n.HAS_CSS_TRANSFORMS=!0),i.isEdge||void 0===u.style.animationName||(n.HAS_CSS_ANIMATION=!0),u=null}n.HAS_CSS_TRANSFORMS?n.translate=function(t,n,e){t.style.transform="translate("+Math.round(n)+"px, "+Math.round(e)+"px)"}:n.translate=function(t,n,e){t.style.top=Math.round(e)+"px",t.style.left=Math.round(n)+"px"}})),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],(function(t,n,e){"use strict";var r=t("./dom");n.get=function(t,n){var e=new XMLHttpRequest;e.open("GET",t,!0),e.onreadystatechange=function(){4===e.readyState&&n(e.responseText)},e.send(null)},n.loadScript=function(t,n){var e=r.getDocumentHead(),i=document.createElement("script");i.src=t,e.appendChild(i),i.onload=i.onreadystatechange=function(t,e){!e&&i.readyState&&"loaded"!=i.readyState&&"complete"!=i.readyState||(i=i.onload=i.onreadystatechange=null,e||n())}},n.qualifyURL=function(t){var n=document.createElement("a");return n.href=t,n.href}})),ace.define("ace/lib/event_emitter",["require","exports","module"],(function(t,n,e){"use strict";var r={},i=function(){this.propagationStopped=!0},o=function(){this.defaultPrevented=!0};r._emit=r._dispatchEvent=function(t,n){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var e=this._eventRegistry[t]||[],r=this._defaultHandlers[t];if(e.length||r){"object"==typeof n&&n||(n={}),n.type||(n.type=t),n.stopPropagation||(n.stopPropagation=i),n.preventDefault||(n.preventDefault=o),e=e.slice();for(var s=0;s1&&(i=e[e.length-2]);var s=a[n+"Path"];return null==s?s=a.basePath:"/"==r&&(n=r=""),s&&"/"!=s.slice(-1)&&(s+="/"),s+n+r+i+this.get("suffix")},n.setModuleUrl=function(t,n){return a.$moduleUrls[t]=n};var u=function(n,e){return"ace/theme/textmate"==n?e(null,t("./theme/textmate")):console.error("loader is not configured")};n.setLoader=function(t){u=t},n.$loading={},n.loadModule=function(e,r){var o,s;Array.isArray(e)&&(s=e[0],e=e[1]);try{o=t(e)}catch(t){}if(o&&!n.$loading[e])return r&&r(o);if(n.$loading[e]||(n.$loading[e]=[]),n.$loading[e].push(r),!(n.$loading[e].length>1)){var a=function(){u(e,(function(t,r){n._emit("load.module",{name:e,module:r});var i=n.$loading[e];n.$loading[e]=null,i.forEach((function(t){t&&t(r)}))}))};if(!n.get("packaged"))return a();i.loadScript(n.moduleUrl(e,s),a),l()}};var l=function(){a.basePath||a.workerPath||a.modePath||a.themePath||Object.keys(a.$moduleUrls).length||(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),l=function(){})};n.version="1.14.0"})),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],(function(t,n,r){"use strict";t("./lib/fixoldbrowsers");var i=t("./config");i.setLoader((function(n,e){t([n],(function(t){e(null,t)}))}));var o=function(){return this||"undefined"!=typeof window&&window}();function s(n){if(o&&o.document){i.set("packaged",n||t.packaged||r.packaged||o.define&&e.amdD.packaged);for(var s,a={},u="",l=document.currentScript||document._currentScript,c=(l&&l.ownerDocument||document).getElementsByTagName("script"),h=0;h1?++h>4&&(h=1):h=1,o.isIE){var s=Math.abs(t.clientX-a)>5||Math.abs(t.clientY-u)>5;l&&!s||(h=1),l&&clearTimeout(l),l=setTimeout((function(){l=null}),e[h-1]||600),1==h&&(a=t.clientX,u=t.clientY)}if(t._clicks=h,r[i]("mousedown",t),h>4)h=0;else if(h>1)return r[i](f[h],t)}Array.isArray(t)||(t=[t]),t.forEach((function(t){c(t,"mousedown",d,s)}))};var f=function(t){return 0|(t.ctrlKey?1:0)|(t.altKey?2:0)|(t.shiftKey?4:0)|(t.metaKey?8:0)};function d(t,n,e){var r=f(n);if(!o.isMac&&s){if(n.getModifierState&&(n.getModifierState("OS")||n.getModifierState("Win"))&&(r|=8),s.altGr){if(3==(3&r))return;s.altGr=0}if(18===e||17===e){var u="location"in n?n.location:n.keyLocation;17===e&&1===u?1==s[e]&&(a=n.timeStamp):18===e&&3===r&&2===u&&n.timeStamp-a<50&&(s.altGr=!0)}}if(e in i.MODIFIER_KEYS&&(e=-1),r||13!==e||3!==(u="location"in n?n.location:n.keyLocation)||(t(n,r,-e),!n.defaultPrevented)){if(o.isChromeOS&&8&r){if(t(n,r,e),n.defaultPrevented)return;r&=-9}return!!(r||e in i.FUNCTION_KEYS||e in i.PRINTABLE_KEYS)&&t(n,r,e)}}function p(){s=Object.create(null)}if(n.getModifierString=function(t){return i.KEY_MODS[f(t)]},n.addCommandKeyListener=function(t,e,r){if(o.isOldGecko||o.isOpera&&!("KeyboardEvent"in window)){var i=null;c(t,"keydown",(function(t){i=t.keyCode}),r),c(t,"keypress",(function(t){return d(e,t,i)}),r)}else{var a=null;c(t,"keydown",(function(t){s[t.keyCode]=(s[t.keyCode]||0)+1;var n=d(e,t,t.keyCode);return a=t.defaultPrevented,n}),r),c(t,"keypress",(function(t){a&&(t.ctrlKey||t.altKey||t.shiftKey||t.metaKey)&&(n.stopEvent(t),a=null)}),r),c(t,"keyup",(function(t){s[t.keyCode]=null}),r),s||(p(),c(window,"focus",p))}},"object"==typeof window&&window.postMessage&&!o.isOldIE){var _=1;n.nextTick=function(t,e){e=e||window;var r="zero-timeout-message-"+_++,i=function(o){o.data==r&&(n.stopPropagation(o),h(e,"message",i),t())};c(e,"message",i),e.postMessage(r,"*")}}n.$idleBlocked=!1,n.onIdle=function(t,e){return setTimeout((function e(){n.$idleBlocked?setTimeout(e,100):t()}),e)},n.$idleBlockId=null,n.blockIdle=function(t){n.$idleBlockId&&clearTimeout(n.$idleBlockId),n.$idleBlocked=!0,n.$idleBlockId=setTimeout((function(){n.$idleBlocked=!1}),t||100)},n.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),n.nextFrame?n.nextFrame=n.nextFrame.bind(window):n.nextFrame=function(t){setTimeout(t,17)}})),ace.define("ace/range",["require","exports","module"],(function(t,n,e){"use strict";var r=function(t,n,e,r){this.start={row:t,column:n},this.end={row:e,column:r}};(function(){this.isEqual=function(t){return this.start.row===t.start.row&&this.end.row===t.end.row&&this.start.column===t.start.column&&this.end.column===t.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(t,n){return 0==this.compare(t,n)},this.compareRange=function(t){var n,e=t.end,r=t.start;return 1==(n=this.compare(e.row,e.column))?1==(n=this.compare(r.row,r.column))?2:0==n?1:0:-1==n?-2:-1==(n=this.compare(r.row,r.column))?-1:1==n?42:0},this.comparePoint=function(t){return this.compare(t.row,t.column)},this.containsRange=function(t){return 0==this.comparePoint(t.start)&&0==this.comparePoint(t.end)},this.intersects=function(t){var n=this.compareRange(t);return-1==n||0==n||1==n},this.isEnd=function(t,n){return this.end.row==t&&this.end.column==n},this.isStart=function(t,n){return this.start.row==t&&this.start.column==n},this.setStart=function(t,n){"object"==typeof t?(this.start.column=t.column,this.start.row=t.row):(this.start.row=t,this.start.column=n)},this.setEnd=function(t,n){"object"==typeof t?(this.end.column=t.column,this.end.row=t.row):(this.end.row=t,this.end.column=n)},this.inside=function(t,n){return 0==this.compare(t,n)&&!this.isEnd(t,n)&&!this.isStart(t,n)},this.insideStart=function(t,n){return 0==this.compare(t,n)&&!this.isEnd(t,n)},this.insideEnd=function(t,n){return 0==this.compare(t,n)&&!this.isStart(t,n)},this.compare=function(t,n){return this.isMultiLine()||t!==this.start.row?tthis.end.row?1:this.start.row===t?n>=this.start.column?0:-1:this.end.row===t?n<=this.end.column?0:1:0:nthis.end.column?1:0},this.compareStart=function(t,n){return this.start.row==t&&this.start.column==n?-1:this.compare(t,n)},this.compareEnd=function(t,n){return this.end.row==t&&this.end.column==n?1:this.compare(t,n)},this.compareInside=function(t,n){return this.end.row==t&&this.end.column==n?1:this.start.row==t&&this.start.column==n?-1:this.compare(t,n)},this.clipRows=function(t,n){if(this.end.row>n)var e={row:n+1,column:0};else this.end.rown)var i={row:n+1,column:0};else this.start.rowDate.now()-50)||(r=!1)},cancel:function(){r=Date.now()}}})),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],(function(t,n,e){"use strict";var r=t("../lib/event"),i=t("../lib/useragent"),o=t("../lib/dom"),s=t("../lib/lang"),a=t("../clipboard"),u=i.isChrome<18,l=i.isIE,c=i.isChrome>63,h=400,f=t("../lib/keys"),d=f.KEY_MODS,p=i.isIOS,_=p?/\s/:/\n/,v=i.isMobile;n.TextInput=function(t,n){var e=o.createElement("textarea");e.className="ace_text-input",e.setAttribute("wrap","off"),e.setAttribute("autocorrect","off"),e.setAttribute("autocapitalize","off"),e.setAttribute("spellcheck",!1),e.style.opacity="0",t.insertBefore(e,t.firstChild);var m=!1,g=!1,y=!1,w=!1,b="";v||(e.style.fontSize="1px");var x=!1,k=!1,S="",C=0,$=0,E=0;try{var M=document.activeElement===e}catch(t){}this.setAriaOptions=function(t){t.activeDescendant?(e.setAttribute("aria-haspopup","true"),e.setAttribute("aria-autocomplete","list"),e.setAttribute("aria-activedescendant",t.activeDescendant)):(e.setAttribute("aria-haspopup","false"),e.setAttribute("aria-autocomplete","both"),e.removeAttribute("aria-activedescendant")),t.role&&e.setAttribute("role",t.role)},this.setAriaOptions({role:"textbox"}),r.addListener(e,"blur",(function(t){k||(n.onBlur(t),M=!1)}),n),r.addListener(e,"focus",(function(t){if(!k){if(M=!0,i.isEdge)try{if(!document.hasFocus())return}catch(t){}n.onFocus(t),i.isEdge?setTimeout(z):z()}}),n),this.$focusScroll=!1,this.focus=function(){if(b||c||"browser"==this.$focusScroll)return e.focus({preventScroll:!0});var t=e.style.top;e.style.position="fixed",e.style.top="0px";try{var n=0!=e.getBoundingClientRect().top}catch(t){return}var r=[];if(n)for(var i=e.parentElement;i&&1==i.nodeType;)r.push(i),i.setAttribute("ace_nocontext",!0),i=!i.parentElement&&i.getRootNode?i.getRootNode().host:i.parentElement;e.focus({preventScroll:!0}),n&&r.forEach((function(t){t.removeAttribute("ace_nocontext")})),setTimeout((function(){e.style.position="","0px"==e.style.top&&(e.style.top=t)}),0)},this.blur=function(){e.blur()},this.isFocused=function(){return M},n.on("beforeEndOperation",(function(){var t=n.curOp,r=t&&t.command&&t.command.name;if("insertstring"!=r){var i=r&&(t.docChanged||t.selectionChanged);y&&i&&(S=e.value="",N()),z()}}));var z=p?function(t){if(M&&(!m||t)&&!w){t||(t="");var r="\n ab"+t+"cde fg\n";r!=e.value&&(e.value=S=r);var i=4+(t.length||(n.selection.isEmpty()?0:1));4==C&&$==i||e.setSelectionRange(4,i),C=4,$=i}}:function(){if(!y&&!w&&(M||j)){y=!0;var t=0,r=0,i="";if(n.session){var o=n.selection,s=o.getRange(),a=o.cursor.row;if(t=s.start.column,r=s.end.column,i=n.session.getLine(a),s.start.row!=a){var u=n.session.getLine(a-1);t=s.start.rowa+1?l.length:r,r+=i.length+1,i=i+"\n"+l}else v&&a>0&&(i="\n"+i,r+=1,t+=1);i.length>h&&(t0&&S[f]==t[f];)f++,a--;for(l=l.slice(f),f=1;u>0&&S.length-f>C-1&&S[S.length-f]==t[t.length-f];)f++,u--;c-=f-1,h-=f-1;var d=l.length-f+1;if(d<0&&(a=-d,d=0),l=l.slice(0,d),!(r||l||c||a||u||h))return"";w=!0;var p=!1;return i.isAndroid&&". "==l&&(l=" ",p=!0),l&&!a&&!u&&!c&&!h||x?n.onTextInput(l):n.onTextInput(l,{extendLeft:a,extendRight:u,restoreStart:c,restoreEnd:h}),w=!1,S=t,C=o,$=s,E=h,p?"\n":l},q=function(t){if(y)return D();if(t&&t.inputType){if("historyUndo"==t.inputType)return n.execCommand("undo");if("historyRedo"==t.inputType)return n.execCommand("redo")}var r=e.value,i=A(r,!0);(r.length>500||_.test(i)||v&&C<1&&C==$)&&z()},P=function(t,n,e){var r=t.clipboardData||window.clipboardData;if(r&&!u){var i=l||e?"Text":"text/plain";try{return n?!1!==r.setData(i,n):r.getData(i)}catch(t){if(!e)return P(t,n,!0)}}},R=function(t,i){var o=n.getCopyText();if(!o)return r.preventDefault(t);P(t,o)?(p&&(z(o),m=o,setTimeout((function(){m=!1}),10)),i?n.onCut():n.onCopy(),r.preventDefault(t)):(m=!0,e.value=o,e.select(),setTimeout((function(){m=!1,z(),i?n.onCut():n.onCopy()})))},L=function(t){R(t,!0)},O=function(t){R(t,!1)},I=function(t){var o=P(t);a.pasteCancelled()||("string"==typeof o?(o&&n.onPaste(o,t),i.isIE&&setTimeout(z),r.preventDefault(t)):(e.value="",g=!0))};r.addCommandKeyListener(e,n.onCommandKey.bind(n),n),r.addListener(e,"select",(function(t){y||(m?m=!1:function(t){return 0===t.selectionStart&&t.selectionEnd>=S.length&&t.value===S&&S&&t.selectionEnd!==$}(e)?(n.selectAll(),z()):v&&e.selectionStart!=C&&z())}),n),r.addListener(e,"input",q,n),r.addListener(e,"cut",L,n),r.addListener(e,"copy",O,n),r.addListener(e,"paste",I,n),"oncut"in e&&"oncopy"in e&&"onpaste"in e||r.addListener(t,"keydown",(function(t){if((!i.isMac||t.metaKey)&&t.ctrlKey)switch(t.keyCode){case 67:O(t);break;case 86:I(t);break;case 88:L(t)}}),n);var D=function(){if(y&&n.onCompositionUpdate&&!n.$readOnly){if(x)return B();if(y.useTextareaForIME)n.onCompositionUpdate(e.value);else{var t=e.value;A(t),y.markerRange&&(y.context&&(y.markerRange.start.column=y.selectionStart=y.context.compositionStartOffset),y.markerRange.end.column=y.markerRange.start.column+$-y.selectionStart+E)}}},N=function(t){n.onCompositionEnd&&!n.$readOnly&&(y=!1,n.onCompositionEnd(),n.off("mousedown",B),t&&q())};function B(){k=!0,e.blur(),e.focus(),k=!1}var F,U=s.delayedCall(D,50).schedule.bind(null,null);function H(){clearTimeout(F),F=setTimeout((function(){b&&(e.style.cssText=b,b=""),n.renderer.$isMousePressed=!1,n.renderer.$keepTextAreaAtCursor&&n.renderer.$moveTextAreaToCursor()}),0)}r.addListener(e,"compositionstart",(function(t){if(!y&&n.onCompositionStart&&!n.$readOnly&&(y={},!x)){t.data&&(y.useTextareaForIME=!1),setTimeout(D,0),n._signal("compositionStart"),n.on("mousedown",B);var r=n.getSelectionRange();r.end.row=r.start.row,r.end.column=r.start.column,y.markerRange=r,y.selectionStart=C,n.onCompositionStart(y),y.useTextareaForIME?(S=e.value="",C=0,$=0):(e.msGetInputContext&&(y.context=e.msGetInputContext()),e.getInputContext&&(y.context=e.getInputContext()))}}),n),r.addListener(e,"compositionupdate",D,n),r.addListener(e,"keyup",(function(t){27==t.keyCode&&e.value.length$&&"\n"==S[o]?s=f.end:r$&&S.slice(0,o).split("\n").length>2?s=f.down:o>$&&" "==S[o-1]?(s=f.right,a=d.option):(o>$||o==$&&$!=C&&r==o)&&(s=f.right),r!==o&&(a|=d.shift),s){if(!n.onCommandKey({},a,s)&&n.commands){s=f.keyCodeToString(s);var u=n.commands.findKeyCommand(a,s);u&&n.execCommand(u)}C=r,$=o,z("")}}};document.addEventListener("selectionchange",o),n.on("destroy",(function(){document.removeEventListener("selectionchange",o)}))}(0,n,e),this.destroy=function(){e.parentElement&&e.parentElement.removeChild(e)}},n.$setUserAgentForTests=function(t,n){v=t,p=n}})),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],(function(t,n,e){"use strict";var r=t("../lib/useragent");function i(t){t.$clickSelection=null;var n=t.editor;n.setDefaultHandler("mousedown",this.onMouseDown.bind(t)),n.setDefaultHandler("dblclick",this.onDoubleClick.bind(t)),n.setDefaultHandler("tripleclick",this.onTripleClick.bind(t)),n.setDefaultHandler("quadclick",this.onQuadClick.bind(t)),n.setDefaultHandler("mousewheel",this.onMouseWheel.bind(t)),["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach((function(n){t[n]=this[n]}),this),t.selectByLines=this.extendSelectionBy.bind(t,"getLineRange"),t.selectByWords=this.extendSelectionBy.bind(t,"getWordRange")}function o(t,n){if(t.start.row==t.end.row)var e=2*n.column-t.start.column-t.end.column;else if(t.start.row!=t.end.row-1||t.start.column||t.end.column)e=2*n.row-t.start.row-t.end.row;else e=n.column-4;return e<0?{cursor:t.start,anchor:t.end}:{cursor:t.end,anchor:t.start}}(function(){this.onMouseDown=function(t){var n=t.inSelection(),e=t.getDocumentPosition();this.mousedownEvent=t;var i=this.editor,o=t.getButton();return 0!==o?((i.getSelectionRange().isEmpty()||1==o)&&i.selection.moveToPosition(e),void(2==o&&(i.textInput.onContextMenu(t.domEvent),r.isMozilla||t.preventDefault()))):(this.mousedownEvent.time=Date.now(),!n||i.isFocused()||(i.focus(),!this.$focusTimeout||this.$clickSelection||i.inMultiSelectMode)?(this.captureMouse(t),this.startSelect(e,t.domEvent._clicks>1),t.preventDefault()):(this.setState("focusWait"),void this.captureMouse(t)))},this.startSelect=function(t,n){t=t||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var e=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?e.selection.selectToPosition(t):n||e.selection.moveToPosition(t),n||this.select(),e.renderer.scroller.setCapture&&e.renderer.scroller.setCapture(),e.setStyle("ace_selecting"),this.setState("select"))},this.select=function(){var t,n=this.editor,e=n.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var r=this.$clickSelection.comparePoint(e);if(-1==r)t=this.$clickSelection.end;else if(1==r)t=this.$clickSelection.start;else{var i=o(this.$clickSelection,e);e=i.cursor,t=i.anchor}n.selection.setSelectionAnchor(t.row,t.column)}n.selection.selectToPosition(e),n.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(t){var n,e=this.editor,r=e.renderer.screenToTextCoordinates(this.x,this.y),i=e.selection[t](r.row,r.column);if(this.$clickSelection){var s=this.$clickSelection.comparePoint(i.start),a=this.$clickSelection.comparePoint(i.end);if(-1==s&&a<=0)n=this.$clickSelection.end,i.end.row==r.row&&i.end.column==r.column||(r=i.start);else if(1==a&&s>=0)n=this.$clickSelection.start,i.start.row==r.row&&i.start.column==r.column||(r=i.end);else if(-1==s&&1==a)r=i.end,n=i.start;else{var u=o(this.$clickSelection,r);r=u.cursor,n=u.anchor}e.selection.setSelectionAnchor(n.row,n.column)}e.selection.selectToPosition(r),e.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var t,n,e,r,i=(t=this.mousedownEvent.x,n=this.mousedownEvent.y,e=this.x,r=this.y,Math.sqrt(Math.pow(e-t,2)+Math.pow(r-n,2))),o=Date.now();(i>0||o-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(t){var n=t.getDocumentPosition(),e=this.editor,r=e.session.getBracketRange(n);r?(r.isEmpty()&&(r.start.column--,r.end.column++),this.setState("select")):(r=e.selection.getWordRange(n.row,n.column),this.setState("selectByWords")),this.$clickSelection=r,this.select()},this.onTripleClick=function(t){var n=t.getDocumentPosition(),e=this.editor;this.setState("selectByLines");var r=e.getSelectionRange();r.isMultiLine()&&r.contains(n.row,n.column)?(this.$clickSelection=e.selection.getLineRange(r.start.row),this.$clickSelection.end=e.selection.getLineRange(r.end.row).end):this.$clickSelection=e.selection.getLineRange(n.row),this.select()},this.onQuadClick=function(t){var n=this.editor;n.selectAll(),this.$clickSelection=n.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(t){if(!t.getAccelKey()){t.getShiftKey()&&t.wheelY&&!t.wheelX&&(t.wheelX=t.wheelY,t.wheelY=0);var n=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var e=this.$lastScroll,r=t.domEvent.timeStamp,i=r-e.t,o=i?t.wheelX/i:e.vx,s=i?t.wheelY/i:e.vy;i<550&&(o=(o+e.vx)/2,s=(s+e.vy)/2);var a=Math.abs(o/s),u=!1;return a>=1&&n.renderer.isScrollableBy(t.wheelX*t.speed,0)&&(u=!0),a<=1&&n.renderer.isScrollableBy(0,t.wheelY*t.speed)&&(u=!0),u?e.allowed=r:r-e.allowed<550&&(Math.abs(o)<=1.5*Math.abs(e.vx)&&Math.abs(s)<=1.5*Math.abs(e.vy)?(u=!0,e.allowed=r):e.allowed=0),e.t=r,e.vx=o,e.vy=s,u?(n.renderer.scrollBy(t.wheelX*t.speed,t.wheelY*t.speed),t.stop()):void 0}}}).call(i.prototype),n.DefaultHandlers=i})),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],(function(t,n,e){"use strict";t("./lib/oop");var r=t("./lib/dom"),i="ace_tooltip";function o(t){this.isOpen=!1,this.$element=null,this.$parentNode=t}(function(){this.$init=function(){return this.$element=r.createElement("div"),this.$element.className=i,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(t){this.getElement().textContent=t},this.setHtml=function(t){this.getElement().innerHTML=t},this.setPosition=function(t,n){this.getElement().style.left=t+"px",this.getElement().style.top=n+"px"},this.setClassName=function(t){r.addCssClass(this.getElement(),t)},this.show=function(t,n,e){null!=t&&this.setText(t),null!=n&&null!=e&&this.setPosition(n,e),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=i,this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(o.prototype),n.Tooltip=o})),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],(function(t,n,e){"use strict";var r=t("../lib/dom"),i=t("../lib/oop"),o=t("../lib/event"),s=t("../tooltip").Tooltip;function a(t){s.call(this,t)}i.inherits(a,s),function(){this.setPosition=function(t,n){var e=window.innerWidth||document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight,i=this.getWidth(),o=this.getHeight();(t+=15)+i>e&&(t-=t+i-e),(n+=15)+o>r&&(n-=20+o),s.prototype.setPosition.call(this,t,n)}}.call(a.prototype),n.GutterHandler=function(t){var n,e,i,s=t.editor,u=s.renderer.$gutterLayer,l=new a(s.container);function c(){n&&(n=clearTimeout(n)),i&&(l.hide(),i=null,s._signal("hideGutterTooltip",l),s.off("mousewheel",c))}function h(t){l.setPosition(t.x,t.y)}t.editor.setDefaultHandler("guttermousedown",(function(n){if(s.isFocused()&&0==n.getButton()&&"foldWidgets"!=u.getRegion(n)){var e=n.getDocumentPosition().row,r=s.session.selection;if(n.getShiftKey())r.selectTo(e,0);else{if(2==n.domEvent.detail)return s.selectAll(),n.preventDefault();t.$clickSelection=s.selection.getLineRange(e)}return t.setState("selectByLines"),t.captureMouse(n),n.preventDefault()}})),t.editor.setDefaultHandler("guttermousemove",(function(o){var a=o.domEvent.target||o.domEvent.srcElement;if(r.hasCssClass(a,"ace_fold-widget"))return c();i&&t.$tooltipFollowsMouse&&h(o),e=o,n||(n=setTimeout((function(){n=null,e&&!t.isMousePressed?function(){var n=e.getDocumentPosition().row,r=u.$annotations[n];if(!r)return c();if(n==s.session.getLength()){var o=s.renderer.pixelToScreenCoordinates(0,e.y).row,a=e.$pos;if(o>s.session.documentToScreenRow(a.row,a.column))return c()}if(i!=r){i=r.text.join("
"),l.setHtml(i);var f=r.className;if(f&&l.setClassName(f.trim()),l.show(),s._signal("showGutterTooltip",l),s.on("mousewheel",c),t.$tooltipFollowsMouse)h(e);else{var d=e.domEvent.target.getBoundingClientRect(),p=l.getElement().style;p.left=d.right+"px",p.top=d.bottom+"px"}}}():c()}),50))})),o.addListener(s.renderer.$gutter,"mouseout",(function(t){e=null,i&&!n&&(n=setTimeout((function(){n=null,c()}),50))}),s),s.on("changeSession",c)}})),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(t,n,e){"use strict";var r=t("../lib/event"),i=t("../lib/useragent"),o=n.MouseEvent=function(t,n){this.domEvent=t,this.editor=n,this.x=this.clientX=t.clientX,this.y=this.clientY=t.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){r.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){r.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var t=this.editor.getSelectionRange();if(t.isEmpty())this.$inSelection=!1;else{var n=this.getDocumentPosition();this.$inSelection=t.contains(n.row,n.column)}return this.$inSelection},this.getButton=function(){return r.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=i.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(o.prototype)})),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],(function(t,n,e){"use strict";var r=t("../lib/dom"),i=t("../lib/event"),o=t("../lib/useragent");function s(t){var n=t.editor,e=r.createElement("div");e.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",e.textContent=" ",["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach((function(n){t[n]=this[n]}),this),n.on("mousedown",this.onMouseDown.bind(t));var s,u,l,c,h,f,d,p,_,v,m,g=n.container,y=0;function w(){var t=f;(function(t,e){var r=Date.now(),i=!e||t.row!=e.row,o=!e||t.column!=e.column;!v||i||o?(n.moveCursorToPosition(t),v=r,m={x:u,y:l}):a(m.x,m.y,u,l)>5?v=null:r-v>=200&&(n.renderer.scrollCursorIntoView(),v=null)})(f=n.renderer.screenToTextCoordinates(u,l),t),function(t,e){var r=Date.now(),i=n.renderer.layerConfig.lineHeight,o=n.renderer.layerConfig.characterWidth,s=n.renderer.scroller.getBoundingClientRect(),a={x:{left:u-s.left,right:s.right-u},y:{top:l-s.top,bottom:s.bottom-l}},c=Math.min(a.x.left,a.x.right),h=Math.min(a.y.top,a.y.bottom),f={row:t.row,column:t.column};c/o<=2&&(f.column+=a.x.left=200&&n.renderer.scrollCursorIntoView(f):_=r:_=null}(f,t)}function b(){h=n.selection.toOrientedRange(),s=n.session.addMarker(h,"ace_selection",n.getSelectionStyle()),n.clearSelection(),n.isFocused()&&n.renderer.$cursorLayer.setBlinking(!1),clearInterval(c),w(),c=setInterval(w,20),y=0,i.addListener(document,"mousemove",S)}function x(){clearInterval(c),n.session.removeMarker(s),s=null,n.selection.fromOrientedRange(h),n.isFocused()&&!p&&n.$resetCursorStyle(),h=null,f=null,y=0,_=null,v=null,i.removeListener(document,"mousemove",S)}this.onDragStart=function(t){if(this.cancelDrag||!g.draggable){var r=this;return setTimeout((function(){r.startSelect(),r.captureMouse(t)}),0),t.preventDefault()}h=n.getSelectionRange();var i=t.dataTransfer;i.effectAllowed=n.getReadOnly()?"copy":"copyMove",n.container.appendChild(e),i.setDragImage&&i.setDragImage(e,0,0),setTimeout((function(){n.container.removeChild(e)})),i.clearData(),i.setData("Text",n.session.getTextRange()),p=!0,this.setState("drag")},this.onDragEnd=function(t){if(g.draggable=!1,p=!1,this.setState(null),!n.getReadOnly()){var e=t.dataTransfer.dropEffect;d||"move"!=e||n.session.remove(n.getSelectionRange()),n.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(t){if(!n.getReadOnly()&&C(t.dataTransfer))return u=t.clientX,l=t.clientY,s||b(),y++,t.dataTransfer.dropEffect=d=$(t),i.preventDefault(t)},this.onDragOver=function(t){if(!n.getReadOnly()&&C(t.dataTransfer))return u=t.clientX,l=t.clientY,s||(b(),y++),null!==k&&(k=null),t.dataTransfer.dropEffect=d=$(t),i.preventDefault(t)},this.onDragLeave=function(t){if(--y<=0&&s)return x(),d=null,i.preventDefault(t)},this.onDrop=function(t){if(f){var e=t.dataTransfer;if(p)switch(d){case"move":h=h.contains(f.row,f.column)?{start:f,end:f}:n.moveText(h,f);break;case"copy":h=n.moveText(h,f,!0)}else{var r=e.getData("Text");h={start:f,end:n.session.insert(f,r)},n.focus(),d=null}return x(),i.preventDefault(t)}},i.addListener(g,"dragstart",this.onDragStart.bind(t),n),i.addListener(g,"dragend",this.onDragEnd.bind(t),n),i.addListener(g,"dragenter",this.onDragEnter.bind(t),n),i.addListener(g,"dragover",this.onDragOver.bind(t),n),i.addListener(g,"dragleave",this.onDragLeave.bind(t),n),i.addListener(g,"drop",this.onDrop.bind(t),n);var k=null;function S(){null==k&&(k=setTimeout((function(){null!=k&&s&&x()}),20))}function C(t){var n=t.types;return!n||Array.prototype.some.call(n,(function(t){return"text/plain"==t||"Text"==t}))}function $(t){var n=["copy","copymove","all","uninitialized"],e=o.isMac?t.altKey:t.ctrlKey,r="uninitialized";try{r=t.dataTransfer.effectAllowed.toLowerCase()}catch(t){}var i="none";return e&&n.indexOf(r)>=0?i="copy":["move","copymove","linkmove","all","uninitialized"].indexOf(r)>=0?i="move":n.indexOf(r)>=0&&(i="copy"),i}}function a(t,n,e,r){return Math.sqrt(Math.pow(e-t,2)+Math.pow(r-n,2))}(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(t){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var t=this.editor;t.container.draggable=!0,t.renderer.$cursorLayer.setBlinking(!1),t.setStyle("ace_dragging");var n=o.isWin?"default":"move";t.renderer.setCursorStyle(n),this.setState("dragReady")},this.onMouseDrag=function(t){var n=this.editor.container;o.isIE&&"dragReady"==this.state&&a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>3&&n.dragDrop(),"dragWait"===this.state&&a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>0&&(n.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))},this.onMouseDown=function(t){if(this.$dragEnabled){this.mousedownEvent=t;var n=this.editor,e=t.inSelection(),r=t.getButton();if(1===(t.domEvent.detail||1)&&0===r&&e){if(t.editor.inMultiSelectMode&&(t.getAccelKey()||t.getShiftKey()))return;this.mousedownEvent.time=Date.now();var i=t.domEvent.target||t.domEvent.srcElement;"unselectable"in i&&(i.unselectable="on"),n.getDragDelay()?(o.isWebKit&&(this.cancelDrag=!0,n.container.draggable=!0),this.setState("dragWait")):this.startDrag(),this.captureMouse(t,this.onMouseDrag.bind(this)),t.defaultPrevented=!0}}}}).call(s.prototype),n.DragdropHandler=s})),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],(function(t,n,e){"use strict";var r=t("./mouse_event").MouseEvent,i=t("../lib/event"),o=t("../lib/dom");n.addTouchListeners=function(t,n){var e,s,a,u,l,c,h,f,d,p="scroll",_=0,v=0,m=0,g=0;function y(){var t,e,r;d||(t=window.navigator&&window.navigator.clipboard,e=!1,r=function(r){var i,s,a=r.target.getAttribute("action");if("more"==a||!e)return e=!e,i=n.getCopyText(),s=n.session.getUndoManager().hasUndo(),void d.replaceChild(o.buildDom(e?["span",!i&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],i&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],i&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],t&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],s&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPallete"},"Palette"]]:["span"]),d.firstChild);"paste"==a?t.readText().then((function(t){n.execCommand(a,t)})):a&&("cut"!=a&&"copy"!=a||(t?t.writeText(n.getCopyText()):document.execCommand("copy")),n.execCommand(a)),d.firstChild.style.display="none",e=!1,"openCommandPallete"!=a&&n.focus()},d=o.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(t){p="menu",t.stopPropagation(),t.preventDefault(),n.textInput.focus()},ontouchend:function(t){t.stopPropagation(),t.preventDefault(),r(t)},onclick:r},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],n.container));var i=n.selection.cursor,s=n.renderer.textToScreenCoordinates(i.row,i.column),a=n.renderer.textToScreenCoordinates(0,0).pageX,u=n.renderer.scrollLeft,l=n.container.getBoundingClientRect();d.style.top=s.pageY-l.top-3+"px",s.pageX-l.left1)return clearTimeout(l),l=null,a=-1,void(p="zoom");f=n.$mouseHandler.isMousePressed=!0;var o=n.renderer.layerConfig.lineHeight,c=n.renderer.layerConfig.lineHeight,d=t.timeStamp;u=d;var y=i[0],w=y.clientX,x=y.clientY;Math.abs(e-w)+Math.abs(s-x)>o&&(a=-1),e=t.clientX=w,s=t.clientY=x,m=g=0;var k=new r(t,n);if(h=k.getDocumentPosition(),d-a<500&&1==i.length&&!_)v++,t.preventDefault(),t.button=0,function(){l=null,clearTimeout(l),n.selection.moveToPosition(h);var t=v>=2?n.selection.getLineRange(h.row):n.session.getBracketRange(h);t&&!t.isEmpty()?n.selection.setRange(t):n.selection.selectWord(),p="wait"}();else{v=0;var S=n.selection.cursor,C=n.selection.isEmpty()?S:n.selection.anchor,$=n.renderer.$cursorLayer.getPixelPosition(S,!0),E=n.renderer.$cursorLayer.getPixelPosition(C,!0),M=n.renderer.scroller.getBoundingClientRect(),z=n.renderer.layerConfig.offset,T=n.renderer.scrollLeft,j=function(t,n){return(t/=c)*t+(n=n/o-.75)*n};if(t.clientXq?"cursor":"anchor"),p=q<3.5?"anchor":A<3.5?"cursor":"scroll",l=setTimeout(b,450)}a=d}),n),i.addListener(t,"touchend",(function(t){f=n.$mouseHandler.isMousePressed=!1,c&&clearInterval(c),"zoom"==p?(p="",_=0):l?(n.selection.moveToPosition(h),_=0,y()):"scroll"==p?(_+=60,c=setInterval((function(){_--<=0&&(clearInterval(c),c=null),Math.abs(m)<.01&&(m=0),Math.abs(g)<.01&&(g=0),_<20&&(m*=.9),_<20&&(g*=.9);var t=n.session.getScrollTop();n.renderer.scrollBy(10*m,10*g),t==n.session.getScrollTop()&&(_=0)}),10),w()):y(),clearTimeout(l),l=null}),n),i.addListener(t,"touchmove",(function(t){l&&(clearTimeout(l),l=null);var i=t.touches;if(!(i.length>1||"zoom"==p)){var o=i[0],a=e-o.clientX,c=s-o.clientY;if("wait"==p){if(!(a*a+c*c>4))return t.preventDefault();p="cursor"}e=o.clientX,s=o.clientY,t.clientX=o.clientX,t.clientY=o.clientY;var h=t.timeStamp,f=h-u;if(u=h,"scroll"==p){var d=new r(t,n);d.speed=1,d.wheelX=a,d.wheelY=c,10*Math.abs(a)=t){for(o=h+1;o=t;)o++;for(a=h,u=o-1;a=n.length||2!=(u=e[i-1])&&3!=u||2!=(l=n[i+1])&&3!=l?4:(o&&(l=3),l==u?l:4);case 10:return 2==(u=i>0?e[i-1]:5)&&i+10&&2==e[i-1])return 2;if(o)return 4;for(d=i+1,f=n.length;d=1425&&_<=2303||64286==_;if(u=n[d],v&&(1==u||7==u))return 1}return i<1||5==(u=n[i-1])?4:e[i-1];case 5:return o=!1,s=!0,r;case 6:return a=!0,4;case 13:case 14:case 16:case 17:case 15:o=!1;case h:return 4}}function v(t){var n=t.charCodeAt(0),e=n>>8;return 0==e?n>191?0:f[n]:5==e?/[\u0591-\u05f4]/.test(t)?1:0:6==e?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(t)?12:/[\u0660-\u0669\u066b-\u066c]/.test(t)?3:1642==n?c:/[\u06f0-\u06f9]/.test(t)?2:7:32==e&&n<=8287?d[255&n]:254==e&&n>=65136?7:4}n.L=0,n.R=1,n.EN=2,n.ON_R=3,n.AN=4,n.R_H=5,n.B=6,n.RLE=7,n.DOT="·",n.doBidiReorder=function(t,e,c){if(t.length<2)return{};var f=t.split(""),d=new Array(f.length),m=new Array(f.length),g=[];r=c?1:0,function(t,n,e,c){var h=r?l:u,f=null,d=null,p=null,m=0,g=null,y=-1,w=null,b=null,x=[];if(!c)for(w=0,c=[];w0)if(16==g){for(w=y;w-1){for(w=y;w=0&&8==c[k];k--)n[k]=r}}(f,g,f.length,e);for(var y=0;y7&&e[y]<13||4===e[y]||e[y]===h)?g[y]=n.ON_R:y>0&&"ل"===f[y-1]&&/\u0622|\u0623|\u0625|\u0627/.test(f[y])&&(g[y-1]=g[y]=n.R_H,y++);for(f[f.length-1]===n.DOT&&(g[f.length-1]=n.B),"‫"===f[0]&&(g[0]=n.RLE),y=0;y=0&&(t=this.session.$docRowCache[e])}return t},this.getSplitIndex=function(){var t=0,n=this.session.$screenRowCache;if(n.length)for(var e,r=this.session.$getRowCacheIndex(n,this.currentRow);this.currentRow-t>0&&(e=this.session.$getRowCacheIndex(n,this.currentRow-t-1))===r;)r=e,t++;else t=this.currentRow;return t},this.updateRowLine=function(t,n){void 0===t&&(t=this.getDocumentRow());var e=t===this.session.getLength()-1?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(t),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var o=this.session.$wrapData[t];o&&(void 0===n&&(n=this.getSplitIndex()),n>0&&o.length?(this.wrapIndent=o.indent,this.wrapOffset=this.wrapIndent*this.charWidths[r.L],this.line=nn?this.session.getOverwrite()?t:t-1:n,i=r.getVisualFromLogicalIdx(e,this.bidiMap),o=this.bidiMap.bidiLevels,s=0;!this.session.getOverwrite()&&t<=n&&o[i]%2!=0&&i++;for(var a=0;an&&o[i]%2==0&&(s+=this.charWidths[o[i]]),this.wrapIndent&&(s+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(s+=this.rtlLineOffset),s},this.getSelections=function(t,n){var e,r=this.bidiMap,i=r.bidiLevels,o=[],s=0,a=Math.min(t,n)-this.wrapIndent,u=Math.max(t,n)-this.wrapIndent,l=!1,c=!1,h=0;this.wrapIndent&&(s+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var f,d=0;d=a&&fe+o/2;){if(e+=o,r===i.length-1){o=0;break}o=this.charWidths[i[++r]]}return r>0&&i[r-1]%2!=0&&i[r]%2==0?(t0&&i[r-1]%2==0&&i[r]%2!=0?n=1+(t>e?this.bidiMap.logicalFromVisual[r]:this.bidiMap.logicalFromVisual[r-1]):this.isRtlDir&&r===i.length-1&&0===o&&i[r-1]%2==0||!this.isRtlDir&&0===r&&i[r]%2!=0?n=1+this.bidiMap.logicalFromVisual[r]:(r>0&&i[r-1]%2!=0&&0!==o&&r--,n=this.bidiMap.logicalFromVisual[r]),0===n&&this.isRtlDir&&n++,n+this.wrapIndent}}).call(s.prototype),n.BidiHandler=s})),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],(function(t,n,e){"use strict";var r=t("./lib/oop"),i=t("./lib/lang"),o=t("./lib/event_emitter").EventEmitter,s=t("./range").Range,a=function(t){this.session=t,this.doc=t.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var n=this;this.cursor.on("change",(function(t){n.$cursorChanged=!0,n.$silent||n._emit("changeCursor"),n.$isEmpty||n.$silent||n._emit("changeSelection"),n.$keepDesiredColumnOnChange||t.old.column==t.value.column||(n.$desiredColumn=null)})),this.anchor.on("change",(function(){n.$anchorChanged=!0,n.$isEmpty||n.$silent||n._emit("changeSelection")}))};(function(){r.implement(this,o),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(t,n){this.$isEmpty=!1,this.anchor.setPosition(t,n)},this.getAnchor=this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.isBackwards=function(){var t=this.anchor,n=this.lead;return t.row>n.row||t.row==n.row&&t.column>n.column},this.getRange=function(){var t=this.anchor,n=this.lead;return this.$isEmpty?s.fromPoints(n,n):this.isBackwards()?s.fromPoints(n,t):s.fromPoints(t,n)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(t,n){var e=n?t.end:t.start,r=n?t.start:t.end;this.$setSelection(e.row,e.column,r.row,r.column)},this.$setSelection=function(t,n,e,r){if(!this.$silent){var i=this.$isEmpty,o=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(t,n),this.cursor.setPosition(e,r),this.$isEmpty=!s.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||i!=this.$isEmpty||o)&&this._emit("changeSelection")}},this.$moveSelection=function(t){var n=this.lead;this.$isEmpty&&this.setSelectionAnchor(n.row,n.column),t.call(this)},this.selectTo=function(t,n){this.$moveSelection((function(){this.moveCursorTo(t,n)}))},this.selectToPosition=function(t){this.$moveSelection((function(){this.moveCursorToPosition(t)}))},this.moveTo=function(t,n){this.clearSelection(),this.moveCursorTo(t,n)},this.moveToPosition=function(t){this.clearSelection(),this.moveCursorToPosition(t)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(t,n){if(void 0===n){var e=t||this.lead;t=e.row,n=e.column}return this.session.getWordRange(t,n)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var t=this.getCursor(),n=this.session.getAWordRange(t.row,t.column);this.setSelectionRange(n)},this.getLineRange=function(t,n){var e,r="number"==typeof t?t:this.lead.row,i=this.session.getFoldLine(r);return i?(r=i.start.row,e=i.end.row):e=r,!0===n?new s(r,0,e,this.session.getLine(e).length):new s(r,0,e+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(t,n,e){var r=t.column,i=t.column+n;return e<0&&(r=t.column-n,i=t.column),this.session.isTabStop(t)&&this.doc.getLine(t.row).slice(r,i).split(" ").length-1==n},this.moveCursorLeft=function(){var t,n=this.lead.getPosition();if(t=this.session.getFoldAt(n.row,n.column,-1))this.moveCursorTo(t.start.row,t.start.column);else if(0===n.column)n.row>0&&this.moveCursorTo(n.row-1,this.doc.getLine(n.row-1).length);else{var e=this.session.getTabSize();this.wouldMoveIntoSoftTab(n,e,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-e):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var t,n=this.lead.getPosition();if(t=this.session.getFoldAt(n.row,n.column,1))this.moveCursorTo(t.end.row,t.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(n.column=r)}}this.moveCursorTo(n.row,n.column)},this.moveCursorFileEnd=function(){var t=this.doc.getLength()-1,n=this.doc.getLine(t).length;this.moveCursorTo(t,n)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var t=this.lead.row,n=this.lead.column,e=this.doc.getLine(t),r=e.substring(n);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var i=this.session.getFoldAt(t,n,1);if(i)this.moveCursorTo(i.end.row,i.end.column);else{if(this.session.nonTokenRe.exec(r)&&(n+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,r=e.substring(n)),n>=e.length)return this.moveCursorTo(t,e.length),this.moveCursorRight(),void(t0&&this.moveCursorWordLeft());this.session.tokenRe.exec(o)&&(e-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(n,e)}},this.$shortWordEndIndex=function(t){var n,e=0,r=/\s/,i=this.session.tokenRe;if(i.lastIndex=0,this.session.tokenRe.exec(t))e=this.session.tokenRe.lastIndex;else{for(;(n=t[e])&&r.test(n);)e++;if(e<1)for(i.lastIndex=0;(n=t[e])&&!i.test(n);)if(i.lastIndex=0,e++,r.test(n)){if(e>2){e--;break}for(;(n=t[e])&&r.test(n);)e++;if(e>2)break}}return i.lastIndex=0,e},this.moveCursorShortWordRight=function(){var t=this.lead.row,n=this.lead.column,e=this.doc.getLine(t),r=e.substring(n),i=this.session.getFoldAt(t,n,1);if(i)return this.moveCursorTo(i.end.row,i.end.column);if(n==e.length){var o=this.doc.getLength();do{t++,r=this.doc.getLine(t)}while(t0&&/^\s*$/.test(r));e=r.length,/\s+$/.test(r)||(r="")}var o=i.stringReverse(r),s=this.$shortWordEndIndex(o);return this.moveCursorTo(n,e-s)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(t,n){var e,r=this.session.documentToScreenPosition(this.lead.row,this.lead.column);if(0===n&&(0!==t&&(this.session.$bidiHandler.isBidiRow(r.row,this.lead.row)?(e=this.session.$bidiHandler.getPosLeft(r.column),r.column=Math.round(e/this.session.$bidiHandler.charWidths[0])):e=r.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?r.column=this.$desiredColumn:this.$desiredColumn=r.column),0!=t&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var i=this.session.lineWidgets[this.lead.row];t<0?t-=i.rowsAbove||0:t>0&&(t+=i.rowCount-(i.rowsAbove||0))}var o=this.session.screenToDocumentPosition(r.row+t,r.column,e);0!==t&&0===n&&o.row===this.lead.row&&(o.column,this.lead.column),this.moveCursorTo(o.row,o.column+n,0===n)},this.moveCursorToPosition=function(t){this.moveCursorTo(t.row,t.column)},this.moveCursorTo=function(t,n,e){var r=this.session.getFoldAt(t,n,1);r&&(t=r.start.row,n=r.start.column),this.$keepDesiredColumnOnChange=!0;var i=this.session.getLine(t);/[\uDC00-\uDFFF]/.test(i.charAt(n))&&i.charAt(n-1)&&(this.lead.row==t&&this.lead.column==n+1?n-=1:n+=1),this.lead.setPosition(t,n),this.$keepDesiredColumnOnChange=!1,e||(this.$desiredColumn=null)},this.moveCursorToScreen=function(t,n,e){var r=this.session.screenToDocumentPosition(t,n);this.moveCursorTo(r.row,r.column,e)},this.detach=function(){this.lead.detach(),this.anchor.detach()},this.fromOrientedRange=function(t){this.setSelectionRange(t,t.cursor==t.start),this.$desiredColumn=t.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(t){var n=this.getRange();return t?(t.start.column=n.start.column,t.start.row=n.start.row,t.end.column=n.end.column,t.end.row=n.end.row):t=n,t.cursor=this.isBackwards()?t.start:t.end,t.desiredColumn=this.$desiredColumn,t},this.getRangeOfMovements=function(t){var n=this.getCursor();try{t(this);var e=this.getCursor();return s.fromPoints(n,e)}catch(t){return s.fromPoints(n,n)}finally{this.moveCursorToPosition(n)}},this.toJSON=function(){if(this.rangeCount)var t=this.ranges.map((function(t){var n=t.clone();return n.isBackwards=t.cursor==t.start,n}));else(t=this.getRange()).isBackwards=this.isBackwards();return t},this.fromJSON=function(t){if(null==t.start){if(this.rangeList&&t.length>1){this.toSingleRange(t[0]);for(var n=t.length;n--;){var e=s.fromPoints(t[n].start,t[n].end);t[n].isBackwards&&(e.cursor=e.start),this.addRange(e,!0)}return}t=t[0]}this.rangeList&&this.toSingleRange(t),this.setSelectionRange(t,t.isBackwards)},this.isEqual=function(t){if((t.length||this.rangeCount)&&t.length!=this.rangeCount)return!1;if(!t.length||!this.ranges)return this.getRange().isEqual(t);for(var n=this.ranges.length;n--;)if(!this.ranges[n].isEqual(t[n]))return!1;return!0}}).call(a.prototype),n.Selection=a})),ace.define("ace/tokenizer",["require","exports","module","ace/config"],(function(t,n,e){"use strict";var r=t("./config"),i=2e3,o=function(t){for(var n in this.states=t,this.regExps={},this.matchMappings={},this.states){for(var e=this.states[n],r=[],i=0,o=this.matchMappings[n]={defaultToken:"text"},s="g",a=[],u=0;u1?this.$applyToken:l.token),h>1&&(/\\\d/.test(l.regex)?c=l.regex.replace(/\\([0-9]+)/g,(function(t,n){return"\\"+(parseInt(n,10)+i+1)})):(h=1,c=this.removeCapturingGroups(l.regex)),l.splitRegex||"string"==typeof l.token||a.push(l)),o[i]=u,i+=h,r.push(c),l.onMatch||(l.onMatch=null)}}r.length||(o[0]=0,r.push("$")),a.forEach((function(t){t.splitRegex=this.createSplitterRegexp(t.regex,s)}),this),this.regExps[n]=new RegExp("("+r.join(")|(")+")|($)",s)}};(function(){this.$setMaxTokenCount=function(t){i=0|t},this.$applyToken=function(t){var n=this.splitRegex.exec(t).slice(1),e=this.token.apply(this,n);if("string"==typeof e)return[{type:e,value:t}];for(var r=[],i=0,o=e.length;ic){var m=t.substring(c,v-_.length);f.type==d?f.value+=m:(f.type&&l.push(f),f={type:d,value:m})}for(var g=0;gi){for(h>2*t.length&&this.reportError("infinite loop with in ace tokenizer",{startState:n,line:t});c1&&e[0]!==r&&e.unshift("#tmp",r),{tokens:l,state:e.length?e:r}},this.reportError=r.reportError}).call(o.prototype),n.Tokenizer=o})),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],(function(t,n,e){"use strict";var r=t("../lib/lang"),i=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(t,n){if(n)for(var e in t){for(var r=t[e],i=0;i=this.$rowTokens.length;){if(this.$row+=1,t||(t=this.$session.getLength()),this.$row>=t)return this.$row=t-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var t=this.$rowTokens,n=this.$tokenIndex,e=t[n].start;if(void 0!==e)return e;for(e=0;n>0;)e+=t[n-=1].value.length;return e},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var t=this.$rowTokens[this.$tokenIndex],n=this.getCurrentTokenColumn();return new r(this.$row,n,this.$row,n+t.value.length)}}).call(i.prototype),n.TokenIterator=i})),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],(function(t,n,e){"use strict";var r,i=t("../../lib/oop"),o=t("../behaviour").Behaviour,s=t("../../token_iterator").TokenIterator,a=t("../../lib/lang"),u=["text","paren.rparen","rparen","paren","punctuation.operator"],l=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],c={},h={'"':'"',"'":"'"},f=function(t){var n=-1;if(t.multiSelect&&(n=t.selection.index,c.rangeCount!=t.multiSelect.rangeCount&&(c={rangeCount:t.multiSelect.rangeCount})),c[n])return r=c[n];r=c[n]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},d=function(t,n,e,r){var i=t.end.row-t.start.row;return{text:e+n+r,selection:[0,t.start.column+1,i,t.end.column+(i?0:1)]}},p=function(t){this.add("braces","insertion",(function(n,e,i,o,s){var u=i.getCursorPosition(),l=o.doc.getLine(u.row);if("{"==s){f(i);var c=i.getSelectionRange(),h=o.doc.getTextRange(c);if(""!==h&&"{"!==h&&i.getWrapBehavioursEnabled())return d(c,h,"{","}");if(p.isSaneInsertion(i,o))return/[\]\}\)]/.test(l[u.column])||i.inMultiSelectMode||t&&t.braces?(p.recordAutoInsert(i,o,"}"),{text:"{}",selection:[1,1]}):(p.recordMaybeInsert(i,o,"{"),{text:"{",selection:[1,1]})}else if("}"==s){if(f(i),"}"==l.substring(u.column,u.column+1)&&null!==o.$findOpeningBracket("}",{column:u.column+1,row:u.row})&&p.isAutoInsertedClosing(u,l,s))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==s||"\r\n"==s){f(i);var _="";if(p.isMaybeInsertedClosing(u,l)&&(_=a.stringRepeat("}",r.maybeInsertedBrackets),p.clearMaybeInsertedClosing()),"}"===l.substring(u.column,u.column+1)){var v=o.findMatchingBracket({row:u.row,column:u.column+1},"}");if(!v)return null;var m=this.$getIndent(o.getLine(v.row))}else{if(!_)return void p.clearMaybeInsertedClosing();m=this.$getIndent(l)}var g=m+o.getTabString();return{text:"\n"+g+"\n"+m+_,selection:[1,g.length,1,g.length]}}p.clearMaybeInsertedClosing()}})),this.add("braces","deletion",(function(t,n,e,i,o){var s=i.doc.getTextRange(o);if(!o.isMultiLine()&&"{"==s){if(f(e),"}"==i.doc.getLine(o.start.row).substring(o.end.column,o.end.column+1))return o.end.column++,o;r.maybeInsertedBrackets--}})),this.add("parens","insertion",(function(t,n,e,r,i){if("("==i){f(e);var o=e.getSelectionRange(),s=r.doc.getTextRange(o);if(""!==s&&e.getWrapBehavioursEnabled())return d(o,s,"(",")");if(p.isSaneInsertion(e,r))return p.recordAutoInsert(e,r,")"),{text:"()",selection:[1,1]}}else if(")"==i){f(e);var a=e.getCursorPosition(),u=r.doc.getLine(a.row);if(")"==u.substring(a.column,a.column+1)&&null!==r.$findOpeningBracket(")",{column:a.column+1,row:a.row})&&p.isAutoInsertedClosing(a,u,i))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("parens","deletion",(function(t,n,e,r,i){var o=r.doc.getTextRange(i);if(!i.isMultiLine()&&"("==o&&(f(e),")"==r.doc.getLine(i.start.row).substring(i.start.column+1,i.start.column+2)))return i.end.column++,i})),this.add("brackets","insertion",(function(t,n,e,r,i){if("["==i){f(e);var o=e.getSelectionRange(),s=r.doc.getTextRange(o);if(""!==s&&e.getWrapBehavioursEnabled())return d(o,s,"[","]");if(p.isSaneInsertion(e,r))return p.recordAutoInsert(e,r,"]"),{text:"[]",selection:[1,1]}}else if("]"==i){f(e);var a=e.getCursorPosition(),u=r.doc.getLine(a.row);if("]"==u.substring(a.column,a.column+1)&&null!==r.$findOpeningBracket("]",{column:a.column+1,row:a.row})&&p.isAutoInsertedClosing(a,u,i))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("brackets","deletion",(function(t,n,e,r,i){var o=r.doc.getTextRange(i);if(!i.isMultiLine()&&"["==o&&(f(e),"]"==r.doc.getLine(i.start.row).substring(i.start.column+1,i.start.column+2)))return i.end.column++,i})),this.add("string_dquotes","insertion",(function(t,n,e,r,i){var o=r.$mode.$quotes||h;if(1==i.length&&o[i]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(i))return;f(e);var s=i,a=e.getSelectionRange(),u=r.doc.getTextRange(a);if(!(""===u||1==u.length&&o[u])&&e.getWrapBehavioursEnabled())return d(a,u,s,s);if(!u){var l=e.getCursorPosition(),c=r.doc.getLine(l.row),p=c.substring(l.column-1,l.column),_=c.substring(l.column,l.column+1),v=r.getTokenAt(l.row,l.column),m=r.getTokenAt(l.row,l.column+1);if("\\"==p&&v&&/escape/.test(v.type))return null;var g,y=v&&/string|escape/.test(v.type),w=!m||/string|escape/.test(m.type);if(_==s)(g=y!==w)&&/string\.end/.test(m.type)&&(g=!1);else{if(y&&!w)return null;if(y&&w)return null;var b=r.$mode.tokenRe;b.lastIndex=0;var x=b.test(p);b.lastIndex=0;var k=b.test(p);if(x||k)return null;if(_&&!/[\s;,.})\]\\]/.test(_))return null;var S=c[l.column-2];if(p==s&&(S==s||b.test(S)))return null;g=!0}return{text:g?s+s:"",selection:[1,1]}}}})),this.add("string_dquotes","deletion",(function(t,n,e,r,i){var o=r.$mode.$quotes||h,s=r.doc.getTextRange(i);if(!i.isMultiLine()&&o.hasOwnProperty(s)&&(f(e),r.doc.getLine(i.start.row).substring(i.start.column+1,i.start.column+2)==s))return i.end.column++,i}))};p.isSaneInsertion=function(t,n){var e=t.getCursorPosition(),r=new s(n,e.row,e.column);if(!this.$matchTokenType(r.getCurrentToken()||"text",u)){if(/[)}\]]/.test(t.session.getLine(e.row)[e.column]))return!0;var i=new s(n,e.row,e.column+1);if(!this.$matchTokenType(i.getCurrentToken()||"text",u))return!1}return r.stepForward(),r.getCurrentTokenRow()!==e.row||this.$matchTokenType(r.getCurrentToken()||"text",l)},p.$matchTokenType=function(t,n){return n.indexOf(t.type||t)>-1},p.recordAutoInsert=function(t,n,e){var i=t.getCursorPosition(),o=n.doc.getLine(i.row);this.isAutoInsertedClosing(i,o,r.autoInsertedLineEnd[0])||(r.autoInsertedBrackets=0),r.autoInsertedRow=i.row,r.autoInsertedLineEnd=e+o.substr(i.column),r.autoInsertedBrackets++},p.recordMaybeInsert=function(t,n,e){var i=t.getCursorPosition(),o=n.doc.getLine(i.row);this.isMaybeInsertedClosing(i,o)||(r.maybeInsertedBrackets=0),r.maybeInsertedRow=i.row,r.maybeInsertedLineStart=o.substr(0,i.column)+e,r.maybeInsertedLineEnd=o.substr(i.column),r.maybeInsertedBrackets++},p.isAutoInsertedClosing=function(t,n,e){return r.autoInsertedBrackets>0&&t.row===r.autoInsertedRow&&e===r.autoInsertedLineEnd[0]&&n.substr(t.column)===r.autoInsertedLineEnd},p.isMaybeInsertedClosing=function(t,n){return r.maybeInsertedBrackets>0&&t.row===r.maybeInsertedRow&&n.substr(t.column)===r.maybeInsertedLineEnd&&n.substr(0,t.column)==r.maybeInsertedLineStart},p.popAutoInsertedClosing=function(){r.autoInsertedLineEnd=r.autoInsertedLineEnd.substr(1),r.autoInsertedBrackets--},p.clearMaybeInsertedClosing=function(){r&&(r.maybeInsertedBrackets=0,r.maybeInsertedRow=-1)},i.inherits(p,o),n.CstyleBehaviour=p})),ace.define("ace/unicode",["require","exports","module"],(function(t,n,e){"use strict";for(var r=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],i=0,o=[],s=0;s2?r%l!=l-1:r%l==0})}else{if(!this.blockComment)return!1;var d=this.blockComment.start,p=this.blockComment.end,_=new RegExp("^(\\s*)(?:"+u.escapeRegExp(d)+")"),v=new RegExp("(?:"+u.escapeRegExp(p)+")\\s*$"),m=function(t,n){y(t,n)||o&&!/\S/.test(t)||(i.insertInLine({row:n,column:t.length},p),i.insertInLine({row:n,column:a},d))},g=function(t,n){var e;(e=t.match(v))&&i.removeInLine(n,t.length-e[0].length,t.length),(e=t.match(_))&&i.removeInLine(n,e[1].length,e[0].length)},y=function(t,e){if(_.test(t))return!0;for(var r=n.getTokens(e),i=0;it.length&&(b=t.length)})),a==1/0&&(a=b,o=!1,s=!1),c&&a%l!=0&&(a=Math.floor(a/l)*l),w(s?g:m)},this.toggleBlockComment=function(t,n,e,r){var i=this.blockComment;if(i){!i.start&&i[0]&&(i=i[0]);var o,s,a=(_=new l(n,r.row,r.column)).getCurrentToken(),u=(n.selection,n.selection.toOrientedRange());if(a&&/comment/.test(a.type)){for(var h,f;a&&/comment/.test(a.type);){if(-1!=(v=a.value.indexOf(i.start))){var d=_.getCurrentTokenRow(),p=_.getCurrentTokenColumn()+v;h=new c(d,p,d,p+i.start.length);break}a=_.stepBackward()}var _;for(a=(_=new l(n,r.row,r.column)).getCurrentToken();a&&/comment/.test(a.type);){var v;if(-1!=(v=a.value.indexOf(i.end))){d=_.getCurrentTokenRow(),p=_.getCurrentTokenColumn()+v,f=new c(d,p,d,p+i.end.length);break}a=_.stepForward()}f&&n.remove(f),h&&(n.remove(h),o=h.start.row,s=-i.start.length)}else s=i.start.length,o=e.start.row,n.insert(e.end,i.end),n.insert(e.start,i.start);u.start.row==o&&(u.start.column+=s),u.end.row==o&&(u.end.column+=s),n.selection.fromOrientedRange(u)}},this.getNextLineIndent=function(t,n,e){return this.$getIndent(n)},this.checkOutdent=function(t,n,e){return!1},this.autoOutdent=function(t,n,e){},this.$getIndent=function(t){return t.match(/^\s*/)[0]},this.createWorker=function(t){return null},this.createModeDelegates=function(t){for(var n in this.$embeds=[],this.$modes={},t)if(t[n]){var e=t[n],i=e.prototype.$id,o=r.$modes[i];o||(r.$modes[i]=o=new e),r.$modes[n]||(r.$modes[n]=o),this.$embeds.push(n),this.$modes[n]=o}var s=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(n=0;nthis.row)){var e=function(n,e,r){var i="insert"==n.action,o=(i?1:-1)*(n.end.row-n.start.row),s=(i?1:-1)*(n.end.column-n.start.column),a=n.start,u=i?a:n.end;return t(e,a,r)?{row:e.row,column:e.column}:t(u,e,!r)?{row:e.row+o,column:e.column+(e.row==u.row?s:0)}:{row:a.row,column:a.column}}(n,{row:this.row,column:this.column},this.$insertRight);this.setPosition(e.row,e.column,!0)}},this.setPosition=function(t,n,e){var r;if(r=e?{row:t,column:n}:this.$clipPositionToDocument(t,n),this.row!=r.row||this.column!=r.column){var i={row:this.row,column:this.column};this.row=r.row,this.column=r.column,this._signal("change",{old:i,value:r})}},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(t){this.document=t||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(t,n){var e={};return t>=this.document.getLength()?(e.row=Math.max(0,this.document.getLength()-1),e.column=this.document.getLine(e.row).length):t<0?(e.row=0,e.column=0):(e.row=t,e.column=Math.min(this.document.getLine(e.row).length,Math.max(0,n))),n<0&&(e.column=0),e}}).call(o.prototype)})),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],(function(t,n,e){"use strict";var r=t("./lib/oop"),i=t("./apply_delta").applyDelta,o=t("./lib/event_emitter").EventEmitter,s=t("./range").Range,a=t("./anchor").Anchor,u=function(t){this.$lines=[""],0===t.length?this.$lines=[""]:Array.isArray(t)?this.insertMergedLines({row:0,column:0},t):this.insert({row:0,column:0},t)};(function(){r.implement(this,o),this.setValue=function(t){var n=this.getLength()-1;this.remove(new s(0,0,n,this.getLine(n).length)),this.insert({row:0,column:0},t||"")},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(t,n){return new a(this,t,n)},0==="aaa".split(/a/).length?this.$split=function(t){return t.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(t){return t.split(/\r\n|\r|\n/)},this.$detectNewLine=function(t){var n=t.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=n?n[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(t){this.$newLineMode!==t&&(this.$newLineMode=t,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(t){return"\r\n"==t||"\r"==t||"\n"==t},this.getLine=function(t){return this.$lines[t]||""},this.getLines=function(t,n){return this.$lines.slice(t,n+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(t){return this.getLinesForRange(t).join(this.getNewLineCharacter())},this.getLinesForRange=function(t){var n;if(t.start.row===t.end.row)n=[this.getLine(t.start.row).substring(t.start.column,t.end.column)];else{(n=this.getLines(t.start.row,t.end.row))[0]=(n[0]||"").substring(t.start.column);var e=n.length-1;t.end.row-t.start.row==e&&(n[e]=n[e].substring(0,t.end.column))}return n},this.insertLines=function(t,n){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(t,n)},this.removeLines=function(t,n){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(t,n)},this.insertNewLine=function(t){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(t,["",""])},this.insert=function(t,n){return this.getLength()<=1&&this.$detectNewLine(n),this.insertMergedLines(t,this.$split(n))},this.insertInLine=function(t,n){var e=this.clippedPos(t.row,t.column),r=this.pos(t.row,t.column+n.length);return this.applyDelta({start:e,end:r,action:"insert",lines:[n]},!0),this.clonePos(r)},this.clippedPos=function(t,n){var e=this.getLength();void 0===t?t=e:t<0?t=0:t>=e&&(t=e-1,n=void 0);var r=this.getLine(t);return null==n&&(n=r.length),{row:t,column:n=Math.min(Math.max(n,0),r.length)}},this.clonePos=function(t){return{row:t.row,column:t.column}},this.pos=function(t,n){return{row:t,column:n}},this.$clipPosition=function(t){var n=this.getLength();return t.row>=n?(t.row=Math.max(0,n-1),t.column=this.getLine(n-1).length):(t.row=Math.max(0,t.row),t.column=Math.min(Math.max(t.column,0),this.getLine(t.row).length)),t},this.insertFullLines=function(t,n){var e=0;(t=Math.min(Math.max(t,0),this.getLength()))0,r=n=0&&this.applyDelta({start:this.pos(t,this.getLine(t).length),end:this.pos(t+1,0),action:"remove",lines:["",""]})},this.replace=function(t,n){return t instanceof s||(t=s.fromPoints(t.start,t.end)),0===n.length&&t.isEmpty()?t.start:n==this.getTextRange(t)?t.end:(this.remove(t),n?this.insert(t.start,n):t.start)},this.applyDeltas=function(t){for(var n=0;n=0;n--)this.revertDelta(t[n])},this.applyDelta=function(t,n){var e="insert"==t.action;(e?t.lines.length<=1&&!t.lines[0]:!s.comparePoints(t.start,t.end))||(e&&t.lines.length>2e4?this.$splitAndapplyLargeDelta(t,2e4):(i(this.$lines,t,n),this._signal("change",t)))},this.$safeApplyDelta=function(t){var n=this.$lines.length;("remove"==t.action&&t.start.row20){e.running=setTimeout(e.$worker,20);break}}e.currentLine=n,-1==r&&(r=n),o<=r&&e.fireUpdateEvent(o,r)}}};(function(){r.implement(this,i),this.setTokenizer=function(t){this.tokenizer=t,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(t){this.doc=t,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(t,n){var e={first:t,last:n};this._signal("update",{data:e})},this.start=function(t){this.currentLine=Math.min(t||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(t){var n=t.start.row,e=t.end.row-n;if(0===e)this.lines[n]=null;else if("remove"==t.action)this.lines.splice(n,e+1,null),this.states.splice(n,e+1,null);else{var r=Array(e+1);r.unshift(n,1),this.lines.splice.apply(this.lines,r),this.states.splice.apply(this.states,r)}this.currentLine=Math.min(n,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(t){return this.lines[t]||this.$tokenizeRow(t)},this.getState=function(t){return this.currentLine==t&&this.$tokenizeRow(t),this.states[t]||"start"},this.$tokenizeRow=function(t){var n=this.doc.getLine(t),e=this.states[t-1],r=this.tokenizer.getLineTokens(n,e,t);return this.states[t]+""!=r.state+""?(this.states[t]=r.state,this.lines[t+1]=null,this.currentLine>t+1&&(this.currentLine=t+1)):this.currentLine==t&&(this.currentLine=t+1),this.lines[t]=r.tokens},this.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()}}).call(o.prototype),n.BackgroundTokenizer=o})),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(t,n,e){"use strict";var r=t("./lib/lang"),i=(t("./lib/oop"),t("./range").Range),o=function(t,n,e){this.setRegexp(t),this.clazz=n,this.type=e||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(t){this.regExp+""!=t+""&&(this.regExp=t,this.cache=[])},this.update=function(t,n,e,o){if(this.regExp)for(var s=o.firstRow,a=o.lastRow,u={},l=s;l<=a;l++){var c=this.cache[l];null==c&&((c=r.getMatchOffsets(e.getLine(l),this.regExp)).length>this.MAX_RANGES&&(c=c.slice(0,this.MAX_RANGES)),c=c.map((function(t){return new i(l,t.offset,l,t.offset+t.length)})),this.cache[l]=c.length?c:"");for(var h=c.length;h--;){var f=c[h].toScreenRange(e),d=f.toString();u[d]||(u[d]=!0,n.drawSingleLineMarker(t,f,this.clazz,o))}}}}).call(o.prototype),n.SearchHighlight=o})),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],(function(t,n,e){"use strict";var r=t("../range").Range;function i(t,n){this.foldData=t,Array.isArray(n)?this.folds=n:n=this.folds=[n];var e=n[n.length-1];this.range=new r(n[0].start.row,n[0].start.column,e.end.row,e.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach((function(t){t.setFoldLine(this)}),this)}(function(){this.shiftRow=function(t){this.start.row+=t,this.end.row+=t,this.folds.forEach((function(n){n.start.row+=t,n.end.row+=t}))},this.addFold=function(t){if(t.sameRow){if(t.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(t),this.folds.sort((function(t,n){return-t.range.compareEnd(n.start.row,n.start.column)})),this.range.compareEnd(t.start.row,t.start.column)>0?(this.end.row=t.end.row,this.end.column=t.end.column):this.range.compareStart(t.end.row,t.end.column)<0&&(this.start.row=t.start.row,this.start.column=t.start.column)}else if(t.start.row==this.end.row)this.folds.push(t),this.end.row=t.end.row,this.end.column=t.end.column;else{if(t.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(t),this.start.row=t.start.row,this.start.column=t.start.column}t.foldLine=this},this.containsRow=function(t){return t>=this.start.row&&t<=this.end.row},this.walk=function(t,n,e){var r,i,o=0,s=this.folds,a=!0;null==n&&(n=this.end.row,e=this.end.column);for(var u=0;u0)){var u=r(t,s.start);return 0===a?n&&0!==u?-o-2:o:u>0||0===u&&!n?o:-o-1}}return-o-1},this.add=function(t){var n=!t.isEmpty(),e=this.pointIndex(t.start,n);e<0&&(e=-e-1);var r=this.pointIndex(t.end,n,e);return r<0?r=-r-1:r++,this.ranges.splice(e,r-e,t)},this.addList=function(t){for(var n=[],e=t.length;e--;)n.push.apply(n,this.add(t[e]));return n},this.substractPoint=function(t){var n=this.pointIndex(t);if(n>=0)return this.ranges.splice(n,1)},this.merge=function(){for(var t,n=[],e=this.ranges,i=(e=e.sort((function(t,n){return r(t.start,n.start)})))[0],o=1;o=0},this.containsPoint=function(t){return this.pointIndex(t)>=0},this.rangeAtPoint=function(t){var n=this.pointIndex(t);if(n>=0)return this.ranges[n]},this.clipRows=function(t,n){var e=this.ranges;if(e[0].start.row>n||e[e.length-1].start.row=r);s++);if("insert"==t.action){for(var u=i-r,l=-n.column+e.column;sr);s++)if(c.start.row==r&&c.start.column>=n.column&&(c.start.column==n.column&&this.$bias<=0||(c.start.column+=l,c.start.row+=u)),c.end.row==r&&c.end.column>=n.column){if(c.end.column==n.column&&this.$bias<0)continue;c.end.column==n.column&&l>0&&sc.start.column&&c.end.column==o[s+1].start.column&&(c.end.column-=l),c.end.column+=l,c.end.row+=u}}else for(u=r-i,l=n.column-e.column;si);s++)c.end.rown.column)&&(c.end.column=n.column,c.end.row=n.row):(c.end.column+=l,c.end.row+=u):c.end.row>i&&(c.end.row+=u),c.start.rown.column)&&(c.start.column=n.column,c.start.row=n.row):(c.start.column+=l,c.start.row+=u):c.start.row>i&&(c.start.row+=u);if(0!=u&&s=t)return i;if(i.end.row>t)return null}return null},this.getNextFoldLine=function(t,n){var e=this.$foldData,r=0;for(n&&(r=e.indexOf(n)),-1==r&&(r=0);r=t)return i}return null},this.getFoldedRowCount=function(t,n){for(var e=this.$foldData,r=n-t+1,i=0;i=n){a=t?r-=n-a:r=0);break}s>=t&&(r-=a>=t?s-a:s-t+1)}return r},this.$addFoldLine=function(t){return this.$foldData.push(t),this.$foldData.sort((function(t,n){return t.start.row-n.start.row})),t},this.addFold=function(t,n){var e,r=this.$foldData,s=!1;t instanceof o?e=t:(e=new o(n,t)).collapseChildren=n.collapseChildren,this.$clipRangeToDocument(e.range);var a=e.start.row,u=e.start.column,l=e.end.row,c=e.end.column,h=this.getFoldAt(a,u,1),f=this.getFoldAt(l,c,-1);if(h&&f==h)return h.addSubFold(e);h&&!h.range.isStart(a,u)&&this.removeFold(h),f&&!f.range.isEnd(l,c)&&this.removeFold(f);var d=this.getFoldsInRange(e.range);d.length>0&&(this.removeFolds(d),e.collapseChildren||d.forEach((function(t){e.addSubFold(t)})));for(var p=0;p0&&this.foldAll(t.start.row+1,t.end.row,t.collapseChildren-1),t.subFolds=[]},this.expandFolds=function(t){t.forEach((function(t){this.expandFold(t)}),this)},this.unfold=function(t,n){var e,i;if(null==t)e=new r(0,0,this.getLength(),0),null==n&&(n=!0);else if("number"==typeof t)e=new r(t,0,t,this.getLine(t).length);else if("row"in t)e=r.fromPoints(t,t);else{if(Array.isArray(t))return i=[],t.forEach((function(t){i=i.concat(this.unfold(t))}),this),i;e=t}for(var o=i=this.getFoldsInRangeList(e);1==i.length&&r.comparePoints(i[0].start,e.start)<0&&r.comparePoints(i[0].end,e.end)>0;)this.expandFolds(i),i=this.getFoldsInRangeList(e);if(0!=n?this.removeFolds(i):this.expandFolds(i),o.length)return o},this.isRowFolded=function(t,n){return!!this.getFoldLine(t,n)},this.getRowFoldEnd=function(t,n){var e=this.getFoldLine(t,n);return e?e.end.row:t},this.getRowFoldStart=function(t,n){var e=this.getFoldLine(t,n);return e?e.start.row:t},this.getFoldDisplayLine=function(t,n,e,r,i){null==r&&(r=t.start.row),null==i&&(i=0),null==n&&(n=t.end.row),null==e&&(e=this.getLine(n).length);var o=this.doc,s="";return t.walk((function(t,n,e,a){if(!(nc)break}while(o&&u.test(o.type)&&!/^comment.start/.test(o.type));o=i.stepBackward()}else o=i.getCurrentToken();return l.end.row=i.getCurrentTokenRow(),l.end.column=i.getCurrentTokenColumn(),/^comment.end/.test(o.type)||(l.end.column+=o.value.length-2),l}},this.foldAll=function(t,n,e,r){null==e&&(e=1e5);var i=this.foldWidgets;if(i){n=n||this.getLength();for(var o=t=t||0;o=t&&(o=s.end.row,s.collapseChildren=e,this.addFold("...",s))}}},this.foldToLevel=function(t){for(this.foldAll();t-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var t=this;this.foldAll(null,null,null,(function(n){for(var e=t.getTokens(n),r=0;r=0;){var o=e[i];if(null==o&&(o=e[i]=this.getFoldWidget(i)),"start"==o){var s=this.getFoldWidgetRange(i);if(r||(r=s),s&&s.end.row>=t)break}i--}return{range:-1!==i&&s,firstRange:r}},this.onFoldWidgetClick=function(t,n){var e={children:(n=n.domEvent).shiftKey,all:n.ctrlKey||n.metaKey,siblings:n.altKey};if(!this.$toggleFoldWidget(t,e)){var r=n.target||n.srcElement;r&&/ace_fold-widget/.test(r.className)&&(r.className+=" ace_invalid")}},this.$toggleFoldWidget=function(t,n){if(this.getFoldWidget){var e=this.getFoldWidget(t),r=this.getLine(t),i="end"===e?-1:1,o=this.getFoldAt(t,-1===i?0:r.length,i);if(o)return n.children||n.all?this.removeFold(o):this.expandFold(o),o;var s=this.getFoldWidgetRange(t,!0);if(s&&!s.isMultiLine()&&(o=this.getFoldAt(s.start.row,s.start.column,1))&&s.isEqual(o.range))return this.removeFold(o),o;if(n.siblings){var a=this.getParentFoldRangeData(t);if(a.range)var u=a.range.start.row+1,l=a.range.end.row;this.foldAll(u,l,n.all?1e4:0)}else n.children?(l=s?s.end.row:this.getLength(),this.foldAll(t+1,l,n.all?1e4:0)):s&&(n.all&&(s.collapseChildren=1e4),this.addFold("...",s));return s}},this.toggleFoldWidget=function(t){var n=this.selection.getCursor().row;n=this.getRowFoldStart(n);var e=this.$toggleFoldWidget(n,{});if(!e){var r=this.getParentFoldRangeData(n,!0);if(e=r.range||r.firstRange){n=e.start.row;var i=this.getFoldAt(n,this.getLine(n).length,1);i?this.removeFold(i):this.addFold("...",e)}}},this.updateFoldWidgets=function(t){var n=t.start.row,e=t.end.row-n;if(0===e)this.foldWidgets[n]=null;else if("remove"==t.action)this.foldWidgets.splice(n,e+1,null);else{var r=Array(e+1);r.unshift(n,1),this.foldWidgets.splice.apply(this.foldWidgets,r)}},this.tokenizerUpdateFoldWidgets=function(t){var n=t.data;n.first!=n.last&&this.foldWidgets.length>n.first&&this.foldWidgets.splice(n.first,this.foldWidgets.length)}}})),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],(function(t,n,e){"use strict";var r=t("../token_iterator").TokenIterator,i=t("../range").Range;n.BracketMatch=function(){this.findMatchingBracket=function(t,n){if(0==t.column)return null;var e=n||this.getLine(t.row).charAt(t.column-1);if(""==e)return null;var r=e.match(/([\(\[\{])|([\)\]\}])/);return r?r[1]?this.$findClosingBracket(r[1],t):this.$findOpeningBracket(r[2],t):null},this.getBracketRange=function(t){var n,e=this.getLine(t.row),r=!0,o=e.charAt(t.column-1),s=o&&o.match(/([\(\[\{])|([\)\]\}])/);if(s||(o=e.charAt(t.column),t={row:t.row,column:t.column+1},s=o&&o.match(/([\(\[\{])|([\)\]\}])/),r=!1),!s)return null;if(s[1]){if(!(a=this.$findClosingBracket(s[1],t)))return null;n=i.fromPoints(t,a),r||(n.end.column++,n.start.column--),n.cursor=n.end}else{var a;if(!(a=this.$findOpeningBracket(s[2],t)))return null;n=i.fromPoints(a,t),r||(n.start.column++,n.end.column--),n.cursor=n.start}return n},this.getMatchingBracketRanges=function(t,n){var e=this.getLine(t.row),r=/([\(\[\{])|([\)\]\}])/,o=!n&&e.charAt(t.column-1),s=o&&o.match(r);if(s||(o=(void 0===n||n)&&e.charAt(t.column),t={row:t.row,column:t.column+1},s=o&&o.match(r)),!s)return null;var a=new i(t.row,t.column-1,t.row,t.column),u=s[1]?this.$findClosingBracket(s[1],t):this.$findOpeningBracket(s[2],t);return u?[a,new i(u.row,u.column,u.row,u.column+1)]:[a]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(t,n,e){var i=this.$brackets[t],o=1,s=new r(this,n.row,n.column),a=s.getCurrentToken();if(a||(a=s.stepForward()),a){e||(e=new RegExp("(\\.?"+a.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var u=n.column-s.getCurrentTokenColumn()-2,l=a.value;;){for(;u>=0;){var c=l.charAt(u);if(c==i){if(0==(o-=1))return{row:s.getCurrentTokenRow(),column:u+s.getCurrentTokenColumn()}}else c==t&&(o+=1);u-=1}do{a=s.stepBackward()}while(a&&!e.test(a.type));if(null==a)break;u=(l=a.value).length-1}return null}},this.$findClosingBracket=function(t,n,e){var i=this.$brackets[t],o=1,s=new r(this,n.row,n.column),a=s.getCurrentToken();if(a||(a=s.stepForward()),a){e||(e=new RegExp("(\\.?"+a.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var u=n.column-s.getCurrentTokenColumn();;){for(var l=a.value,c=l.length;u"===n.value?r=!0:-1!==n.type.indexOf("tag-name")&&(e=!0))}while(n&&!e);return n},this.$findClosingTag=function(t,n){var e,r=n.value,o=n.value,s=0,a=new i(t.getCurrentTokenRow(),t.getCurrentTokenColumn(),t.getCurrentTokenRow(),t.getCurrentTokenColumn()+1);n=t.stepForward();var u=new i(t.getCurrentTokenRow(),t.getCurrentTokenColumn(),t.getCurrentTokenRow(),t.getCurrentTokenColumn()+n.value.length),l=!1;do{if(e=n,n=t.stepForward()){if(">"===n.value&&!l){var c=new i(t.getCurrentTokenRow(),t.getCurrentTokenColumn(),t.getCurrentTokenRow(),t.getCurrentTokenColumn()+1);l=!0}if(-1!==n.type.indexOf("tag-name")){if(o===(r=n.value))if("<"===e.value)s++;else if(""!==n.value)return;var d=new i(t.getCurrentTokenRow(),t.getCurrentTokenColumn(),t.getCurrentTokenRow(),t.getCurrentTokenColumn()+1)}}else o===r&&"/>"===n.value&&--s<0&&(d=f=h=new i(t.getCurrentTokenRow(),t.getCurrentTokenColumn(),t.getCurrentTokenRow(),t.getCurrentTokenColumn()+2),c=new i(u.end.row,u.end.column,u.end.row,u.end.column+1))}}while(n&&s>=0);if(a&&c&&h&&d&&u&&f)return{openTag:new i(a.start.row,a.start.column,c.end.row,c.end.column),closeTag:new i(h.start.row,h.start.column,d.end.row,d.end.column),openTagName:u,closeTagName:f}},this.$findOpeningTag=function(t,n){var e=t.getCurrentToken(),r=n.value,o=0,s=t.getCurrentTokenRow(),a=t.getCurrentTokenColumn(),u=a+2,l=new i(s,a,s,u);t.stepForward();var c=new i(t.getCurrentTokenRow(),t.getCurrentTokenColumn(),t.getCurrentTokenRow(),t.getCurrentTokenColumn()+n.value.length);if((n=t.stepForward())&&">"===n.value){var h=new i(t.getCurrentTokenRow(),t.getCurrentTokenColumn(),t.getCurrentTokenRow(),t.getCurrentTokenColumn()+1);t.stepBackward(),t.stepBackward();do{if(n=e,s=t.getCurrentTokenRow(),u=(a=t.getCurrentTokenColumn())+n.value.length,e=t.stepBackward(),n)if(-1!==n.type.indexOf("tag-name")){if(r===n.value)if("<"===e.value){if(++o>0){var f=new i(s,a,s,u),d=new i(t.getCurrentTokenRow(),t.getCurrentTokenColumn(),t.getCurrentTokenRow(),t.getCurrentTokenColumn()+1);do{n=t.stepForward()}while(n&&">"!==n.value);var p=new i(t.getCurrentTokenRow(),t.getCurrentTokenColumn(),t.getCurrentTokenRow(),t.getCurrentTokenColumn()+1)}}else""===n.value){for(var _=0,v=e;v;){if(-1!==v.type.indexOf("tag-name")&&v.value===r){o--;break}if("<"===v.value)break;v=t.stepBackward(),_++}for(var m=0;m<_;m++)t.stepForward()}}while(e&&o<=0);return d&&p&&l&&h&&f&&c?{openTag:new i(d.start.row,d.start.column,p.end.row,p.end.column),closeTag:new i(l.start.row,l.start.column,h.end.row,h.end.column),openTagName:f,closeTagName:c}:void 0}}}})),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/document","ace/background_tokenizer","ace/search_highlight","ace/edit_session/folding","ace/edit_session/bracket_match"],(function(t,n,e){"use strict";var r=t("./lib/oop"),i=t("./lib/lang"),o=t("./bidihandler").BidiHandler,s=t("./config"),a=t("./lib/event_emitter").EventEmitter,u=t("./selection").Selection,l=t("./mode/text").Mode,c=t("./range").Range,h=t("./document").Document,f=t("./background_tokenizer").BackgroundTokenizer,d=t("./search_highlight").SearchHighlight,p=function(t,n){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++p.$uid,this.$foldData.toString=function(){return this.join("\n")},this.bgTokenizer=new f((new l).getTokenizer(),this);var e=this;this.bgTokenizer.on("update",(function(t){e._signal("tokenizerUpdate",t)})),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),"object"==typeof t&&t.getLine||(t=new h(t)),this.setDocument(t),this.selection=new u(this),this.$bidiHandler=new o(this),s.resetOptions(this),this.setMode(n),s._signal("session",this),this.destroyed=!1};p.$uid=0,function(){r.implement(this,a),this.setDocument=function(t){this.doc&&this.doc.off("change",this.$onChange),this.doc=t,t.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},this.getDocument=function(){return this.doc},this.$resetRowCache=function(t){if(!t)return this.$docRowCache=[],void(this.$screenRowCache=[]);var n=this.$docRowCache.length,e=this.$getRowCacheIndex(this.$docRowCache,t)+1;n>e&&(this.$docRowCache.splice(e,n),this.$screenRowCache.splice(e,n))},this.$getRowCacheIndex=function(t,n){for(var e=0,r=t.length-1;e<=r;){var i=e+r>>1,o=t[i];if(n>o)e=i+1;else{if(!(n=n);o++);return(e=r[o])?(e.index=o,e.start=i-e.value.length,e):null},this.setUndoManager=function(t){if(this.$undoManager=t,this.$informUndoManager&&this.$informUndoManager.cancel(),t){var n=this;t.addSession(this),this.$syncInformUndoManager=function(){n.$informUndoManager.cancel(),n.mergeUndoDeltas=!1},this.$informUndoManager=i.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?i.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(t){this.setOption("useSoftTabs",t)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(t){this.setOption("tabSize",t)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(t){return this.$useSoftTabs&&t.column%this.$tabSize==0},this.setNavigateWithinSoftTabs=function(t){this.setOption("navigateWithinSoftTabs",t)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(t){this.setOption("overwrite",t)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(t,n){this.$decorations[t]||(this.$decorations[t]=""),this.$decorations[t]+=" "+n,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(t,n){this.$decorations[t]=(this.$decorations[t]||"").replace(" "+n,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(t){this.$breakpoints=[];for(var n=0;n0&&(r=!!e.charAt(n-1).match(this.tokenRe)),r||(r=!!e.charAt(n).match(this.tokenRe)),r)var i=this.tokenRe;else i=/^\s+$/.test(e.slice(n-1,n+1))?/\s/:this.nonTokenRe;var o=n;if(o>0){do{o--}while(o>=0&&e.charAt(o).match(i));o++}for(var s=n;st&&(t=n.screenWidth)})),this.lineWidgetWidth=t},this.$computeWidth=function(t){if(this.$modified||t){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var n=this.doc.getAllLines(),e=this.$rowLengthCache,r=0,i=0,o=this.$foldData[i],s=o?o.start.row:1/0,a=n.length,u=0;us){if((u=o.end.row+1)>=a)break;s=(o=this.$foldData[i++])?o.start.row:1/0}null==e[u]&&(e[u]=this.$getStringScreenWidth(n[u])[0]),e[u]>r&&(r=e[u])}this.screenWidth=r}},this.getLine=function(t){return this.doc.getLine(t)},this.getLines=function(t,n){return this.doc.getLines(t,n)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(t){return this.doc.getTextRange(t||this.selection.getRange())},this.insert=function(t,n){return this.doc.insert(t,n)},this.remove=function(t){return this.doc.remove(t)},this.removeFullLines=function(t,n){return this.doc.removeFullLines(t,n)},this.undoChanges=function(t,n){if(t.length){this.$fromUndo=!0;for(var e=t.length-1;-1!=e;e--){var r=t[e];"insert"==r.action||"remove"==r.action?this.doc.revertDelta(r):r.folds&&this.addFolds(r.folds)}!n&&this.$undoSelect&&(t.selectionBefore?this.selection.fromJSON(t.selectionBefore):this.selection.setRange(this.$getUndoSelection(t,!0))),this.$fromUndo=!1}},this.redoChanges=function(t,n){if(t.length){this.$fromUndo=!0;for(var e=0;et.end.column&&(o.start.column+=l),o.end.row==t.end.row&&o.end.column>t.end.column&&(o.end.column+=l)),s&&o.start.row>=t.end.row&&(o.start.row+=s,o.end.row+=s)}if(o.end=this.insert(o.start,r),i.length){var a=t.start,u=o.start,l=(s=u.row-a.row,u.column-a.column);this.addFolds(i.map((function(t){return(t=t.clone()).start.row==a.row&&(t.start.column+=l),t.end.row==a.row&&(t.end.column+=l),t.start.row+=s,t.end.row+=s,t})))}return o},this.indentRows=function(t,n,e){e=e.replace(/\t/g,this.getTabString());for(var r=t;r<=n;r++)this.doc.insertInLine({row:r,column:0},e)},this.outdentRows=function(t){for(var n=t.collapseRows(),e=new c(0,0,0,0),r=this.getTabSize(),i=n.start.row;i<=n.end.row;++i){var o=this.getLine(i);e.start.row=i,e.end.row=i;for(var s=0;s0){var i;if((i=this.getRowFoldEnd(n+e))>this.doc.getLength()-1)return 0;r=i-n}else t=this.$clipRowToDocument(t),r=(n=this.$clipRowToDocument(n))-t+1;var o=new c(t,0,n,Number.MAX_VALUE),s=this.getFoldsInRange(o).map((function(t){return(t=t.clone()).start.row+=r,t.end.row+=r,t})),a=0==e?this.doc.getLines(t,n):this.doc.removeFullLines(t,n);return this.doc.insertFullLines(t+r,a),s.length&&this.addFolds(s),r},this.moveLinesUp=function(t,n){return this.$moveLines(t,n,-1)},this.moveLinesDown=function(t,n){return this.$moveLines(t,n,1)},this.duplicateLines=function(t,n){return this.$moveLines(t,n,0)},this.$clipRowToDocument=function(t){return Math.max(0,Math.min(t,this.doc.getLength()-1))},this.$clipColumnToRow=function(t,n){return n<0?0:Math.min(this.doc.getLine(t).length,n)},this.$clipPositionToDocument=function(t,n){if(n=Math.max(0,n),t<0)t=0,n=0;else{var e=this.doc.getLength();t>=e?(t=e-1,n=this.doc.getLine(e-1).length):n=Math.min(this.doc.getLine(t).length,n)}return{row:t,column:n}},this.$clipRangeToDocument=function(t){t.start.row<0?(t.start.row=0,t.start.column=0):t.start.column=this.$clipColumnToRow(t.start.row,t.start.column);var n=this.doc.getLength()-1;return t.end.row>n?(t.end.row=n,t.end.column=this.doc.getLine(n).length):t.end.column=this.$clipColumnToRow(t.end.row,t.end.column),t},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(t){if(t!=this.$useWrapMode){if(this.$useWrapMode=t,this.$modified=!0,this.$resetRowCache(0),t){var n=this.getLength();this.$wrapData=Array(n),this.$updateWrapData(0,n-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(t,n){this.$wrapLimitRange.min===t&&this.$wrapLimitRange.max===n||(this.$wrapLimitRange={min:t,max:n},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(t,n){var e=this.$wrapLimitRange;e.max<0&&(e={min:n,max:n});var r=this.$constrainWrapLimit(t,e.min,e.max);return r!=this.$wrapLimit&&r>1&&(this.$wrapLimit=r,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(t,n,e){return n&&(t=Math.max(n,t)),e&&(t=Math.min(e,t)),t},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(t){this.setWrapLimitRange(t,t)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(t){var n=this.$useWrapMode,e=t.action,r=t.start,i=t.end,o=r.row,s=i.row,a=s-o,u=null;if(this.$updating=!0,0!=a)if("remove"===e){this[n?"$wrapData":"$rowLengthCache"].splice(o,a);var l=this.$foldData;u=this.getFoldsInRange(t),this.removeFolds(u);var c=0;if(_=this.getFoldLine(i.row)){_.addRemoveChars(i.row,i.column,r.column-i.column),_.shiftRow(-a);var h=this.getFoldLine(o);h&&h!==_&&(h.merge(_),_=h),c=l.indexOf(_)+1}for(;c=i.row&&_.shiftRow(-a);s=o}else{var f=Array(a);f.unshift(o,0);var d=n?this.$wrapData:this.$rowLengthCache;if(d.splice.apply(d,f),l=this.$foldData,c=0,_=this.getFoldLine(o)){var p=_.range.compareInside(r.row,r.column);0==p?(_=_.split(r.row,r.column))&&(_.shiftRow(a),_.addRemoveChars(s,0,i.column-r.column)):-1==p&&(_.addRemoveChars(o,0,i.column-r.column),_.shiftRow(a)),c=l.indexOf(_)+1}for(;c=o&&_.shiftRow(a)}}else a=Math.abs(t.start.column-t.end.column),"remove"===e&&(u=this.getFoldsInRange(t),this.removeFolds(u),a=-a),(_=this.getFoldLine(o))&&_.addRemoveChars(o,r.column,a);return n&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,n?this.$updateWrapData(o,s):this.$updateRowLengthCache(o,s),u},this.$updateRowLengthCache=function(t,n,e){this.$rowLengthCache[t]=null,this.$rowLengthCache[n]=null},this.$updateWrapData=function(e,r){var i,o,s=this.doc.getAllLines(),a=this.getTabSize(),u=this.$wrapData,l=this.$wrapLimit,c=e;for(r=Math.min(r,s.length-1);c<=r;)(o=this.getFoldLine(c,o))?(i=[],o.walk(function(e,r,o,a){var u;if(null!=e){(u=this.$getDisplayTokens(e,i.length))[0]=t;for(var l=1;l=4352&&t<=4447||t>=4515&&t<=4519||t>=4602&&t<=4607||t>=9001&&t<=9002||t>=11904&&t<=11929||t>=11931&&t<=12019||t>=12032&&t<=12245||t>=12272&&t<=12283||t>=12288&&t<=12350||t>=12353&&t<=12438||t>=12441&&t<=12543||t>=12549&&t<=12589||t>=12593&&t<=12686||t>=12688&&t<=12730||t>=12736&&t<=12771||t>=12784&&t<=12830||t>=12832&&t<=12871||t>=12880&&t<=13054||t>=13056&&t<=19903||t>=19968&&t<=42124||t>=42128&&t<=42182||t>=43360&&t<=43388||t>=44032&&t<=55203||t>=55216&&t<=55238||t>=55243&&t<=55291||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65106||t>=65108&&t<=65126||t>=65128&&t<=65131||t>=65281&&t<=65376||t>=65504&&t<=65510)}this.$computeWrapSplits=function(e,r,i){if(0==e.length)return[];var o=[],s=e.length,a=0,u=0,l=this.$wrapAsCode,c=this.$indentedSoftWrap,h=r<=Math.max(2*i,8)||!1===c?0:Math.floor(r/2);function f(t){for(var n=t-a,r=a;rr-d;){var p=a+r-d;if(e[p-1]>=10&&e[p]>=10)f(p);else if(e[p]!=t&&e[p]!=n){for(var _=Math.max(p-(r-(r>>2)),a-1);p>_&&e[p]_&&e[p]_&&9==e[p];)p--}else for(;p>_&&e[p]<10;)p--;p>_?f(++p):(2==e[p=a+r]&&p--,f(p-d))}else{for(;p!=a-1&&e[p]!=t;p--);if(p>a){f(p);continue}for(p=a+r;p39&&s<48||s>57&&s<64?i.push(9):s>=4352&&e(s)?i.push(1,2):i.push(1)}return i},this.$getStringScreenWidth=function(t,n,r){if(0==n)return[0,0];var i,o;for(null==n&&(n=1/0),r=r||0,o=0;o=4352&&e(i)?r+=2:r+=1,!(r>n));o++);return[r,o]},this.lineWidgets=null,this.getRowLength=function(t){var n=1;return this.lineWidgets&&(n+=this.lineWidgets[t]&&this.lineWidgets[t].rowCount||0),this.$useWrapMode&&this.$wrapData[t]?this.$wrapData[t].length+n:n},this.getRowLineCount=function(t){return this.$useWrapMode&&this.$wrapData[t]?this.$wrapData[t].length+1:1},this.getRowWrapIndent=function(t){if(this.$useWrapMode){var n=this.screenToDocumentPosition(t,Number.MAX_VALUE),e=this.$wrapData[n.row];return e.length&&e[0]=0){a=l[c],o=this.$docRowCache[c];var f=t>l[h-1]}else f=!h;for(var d=this.getLength()-1,p=this.getNextFoldLine(o),_=p?p.start.row:1/0;a<=t&&!(a+(u=this.getRowLength(o))>t||o>=d);)a+=u,++o>_&&(o=p.end.row+1,_=(p=this.getNextFoldLine(o,p))?p.start.row:1/0),f&&(this.$docRowCache.push(o),this.$screenRowCache.push(a));if(p&&p.start.row<=o)r=this.getFoldDisplayLine(p),o=p.start.row;else{if(a+u<=t||o>d)return{row:d,column:this.getLine(d).length};r=this.getLine(o),p=null}var v=0,m=Math.floor(t-a);if(this.$useWrapMode){var g=this.$wrapData[o];g&&(i=g[m],m>0&&g.length&&(v=g.indent,s=g[m-1]||g[g.length-1],r=r.substring(s)))}return void 0!==e&&this.$bidiHandler.isBidiRow(a+m,o,m)&&(n=this.$bidiHandler.offsetToCol(e)),s+=this.$getStringScreenWidth(r,n-v)[1],this.$useWrapMode&&s>=i&&(s=i-1),p?p.idxToPosition(s):{row:o,column:s}},this.documentToScreenPosition=function(t,n){if(void 0===n)var e=this.$clipPositionToDocument(t.row,t.column);else e=this.$clipPositionToDocument(t,n);t=e.row,n=e.column;var r,i=0,o=null;(r=this.getFoldAt(t,n,1))&&(t=r.start.row,n=r.start.column);var s,a=0,u=this.$docRowCache,l=this.$getRowCacheIndex(u,t),c=u.length;if(c&&l>=0){a=u[l],i=this.$screenRowCache[l];var h=t>u[c-1]}else h=!c;for(var f=this.getNextFoldLine(a),d=f?f.start.row:1/0;a=d){if((s=f.end.row+1)>t)break;d=(f=this.getNextFoldLine(s,f))?f.start.row:1/0}else s=a+1;i+=this.getRowLength(a),a=s,h&&(this.$docRowCache.push(a),this.$screenRowCache.push(i))}var p="";f&&a>=d?(p=this.getFoldDisplayLine(f,t,n),o=f.start.row):(p=this.getLine(t).substring(0,n),o=t);var _=0;if(this.$useWrapMode){var v=this.$wrapData[o];if(v){for(var m=0;p.length>=v[m];)i++,m++;p=p.substring(v[m-1]||0,p.length),_=m>0?v.indent:0}}return this.lineWidgets&&this.lineWidgets[a]&&this.lineWidgets[a].rowsAbove&&(i+=this.lineWidgets[a].rowsAbove),{row:i,column:_+this.$getStringScreenWidth(p)[0]}},this.documentToScreenColumn=function(t,n){return this.documentToScreenPosition(t,n).column},this.documentToScreenRow=function(t,n){return this.documentToScreenPosition(t,n).row},this.getScreenLength=function(){var t=0,n=null;if(this.$useWrapMode)for(var e=this.$wrapData.length,r=0,i=(a=0,(n=this.$foldData[a++])?n.start.row:1/0);ri&&(r=n.end.row+1,i=(n=this.$foldData[a++])?n.start.row:1/0)}else{t=this.getLength();for(var s=this.$foldData,a=0;ae);o++);return[r,o]})},this.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},this.isFullWidth=e}.call(p.prototype),t("./edit_session/folding").Folding.call(p.prototype),t("./edit_session/bracket_match").BracketMatch.call(p.prototype),s.defineOptions(p.prototype,"session",{wrap:{set:function(t){if(t&&"off"!=t?"free"==t?t=!0:"printMargin"==t?t=-1:"string"==typeof t&&(t=parseInt(t,10)||!1):t=!1,this.$wrap!=t)if(this.$wrap=t,t){var n="number"==typeof t?t:null;this.setWrapLimitRange(n,n),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(t){(t="auto"==t?"text"!=this.$mode.type:"text"!=t)!=this.$wrapAsCode&&(this.$wrapAsCode=t,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(t){this.$useWorker=t,this.$stopWorker(),t&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(t){(t=parseInt(t))>0&&this.$tabSize!==t&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=t,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(t){this.setFoldStyle(t)},handlesSet:!0},overwrite:{set:function(t){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(t){this.doc.setNewLineMode(t)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(t){this.setMode(t)},get:function(){return this.$modeId},handlesSet:!0}}),n.EditSession=p})),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(t,n,e){"use strict";var r=t("./lib/lang"),i=t("./lib/oop"),o=t("./range").Range,s=function(){this.$options={}};(function(){this.set=function(t){return i.mixin(this.$options,t),this},this.getOptions=function(){return r.copyObject(this.$options)},this.setOptions=function(t){this.$options=t},this.find=function(t){var n=this.$options,e=this.$matchIterator(t,n);if(!e)return!1;var r=null;return e.forEach((function(t,e,i,s){return r=new o(t,e,i,s),!(e==s&&n.start&&n.start.start&&0!=n.skipCurrent&&r.isEqual(n.start)&&(r=null,1))})),r},this.findAll=function(t){var n=this.$options;if(!n.needle)return[];this.$assembleRegExp(n);var e=n.range,i=e?t.getLines(e.start.row,e.end.row):t.doc.getAllLines(),s=[],a=n.re;if(n.$isMultiLine){var u,l=a.length,c=i.length-l;t:for(var h=a.offset||0;h<=c;h++){for(var f=0;f_||(s.push(u=new o(h,_,h+l-1,v)),l>2&&(h=h+l-2))}}else for(var m=0;mb&&s[f].end.row==x;)f--;for(s=s.slice(m,f+1),m=0,f=s.length;m=a;e--)if(h(e,Number.MAX_VALUE,t))return;if(0!=n.wrap)for(e=u,a=s.row;e>=a;e--)if(h(e,Number.MAX_VALUE,t))return}};else l=function(t){var e=s.row;if(!h(e,s.column,t)){for(e+=1;e<=u;e++)if(h(e,0,t))return;if(0!=n.wrap)for(e=a,u=s.row;e<=u;e++)if(h(e,0,t))return}};if(n.$isMultiLine)var c=e.length,h=function(n,i,o){var s=r?n-c+1:n;if(!(s<0||s+c>t.getLength())){var a=t.getLine(s),u=a.search(e[0]);if(!(!r&&ui))return!!o(s,u,s+c-1,h)||void 0}}};else h=r?function(n,r,i){var o,s=t.getLine(n),a=[],u=0;for(e.lastIndex=0;o=e.exec(s);){var l=o[0].length;if(u=o.index,!l){if(u>=s.length)break;e.lastIndex=u+=1}if(o.index+l>r)break;a.push(o.index,l)}for(var c=a.length-1;c>=0;c-=2){var h=a[c-1];if(i(n,h,n,h+(l=a[c])))return!0}}:function(n,r,i){var o,s,a=t.getLine(n);for(e.lastIndex=r;s=e.exec(a);){var u=s[0].length;if(i(n,o=s.index,n,o+u))return!0;if(!u&&(e.lastIndex=o+=1,o>=a.length))return!1}};return{forEach:l}}}).call(s.prototype),n.Search=s})),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(t,n,e){"use strict";var r=t("../lib/keys"),i=t("../lib/useragent"),o=r.KEY_MODS;function s(t,n){this.platform=n||(i.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(t),this.$singleCommand=!0}function a(t,n){s.call(this,t,n),this.$singleCommand=!1}a.prototype=s.prototype,function(){function t(t){return"object"==typeof t&&t.bindKey&&t.bindKey.position||(t.isDefault?-100:0)}this.addCommand=function(t){this.commands[t.name]&&this.removeCommand(t),this.commands[t.name]=t,t.bindKey&&this._buildKeyHash(t)},this.removeCommand=function(t,n){var e=t&&("string"==typeof t?t:t.name);t=this.commands[e],n||delete this.commands[e];var r=this.commandKeyBinding;for(var i in r){var o=r[i];if(o==t)delete r[i];else if(Array.isArray(o)){var s=o.indexOf(t);-1!=s&&(o.splice(s,1),1==o.length&&(r[i]=o[0]))}}},this.bindKey=function(t,n,e){if("object"==typeof t&&t&&(null==e&&(e=t.position),t=t[this.platform]),t)return"function"==typeof n?this.addCommand({exec:n,bindKey:t,name:n.name||t}):void t.split("|").forEach((function(t){var r="";if(-1!=t.indexOf(" ")){var i=t.split(/\s+/);t=i.pop(),i.forEach((function(t){var n=this.parseKeys(t),e=o[n.hashId]+n.key;r+=(r?" ":"")+e,this._addCommandToBinding(r,"chainKeys")}),this),r+=" "}var s=this.parseKeys(t),a=o[s.hashId]+s.key;this._addCommandToBinding(r+a,n,e)}),this)},this._addCommandToBinding=function(n,e,r){var i,o=this.commandKeyBinding;if(e)if(!o[n]||this.$singleCommand)o[n]=e;else{Array.isArray(o[n])?-1!=(i=o[n].indexOf(e))&&o[n].splice(i,1):o[n]=[o[n]],"number"!=typeof r&&(r=t(e));var s=o[n];for(i=0;ir);i++);s.splice(i,0,e)}else delete o[n]},this.addCommands=function(t){t&&Object.keys(t).forEach((function(n){var e=t[n];if(e){if("string"==typeof e)return this.bindKey(e,n);"function"==typeof e&&(e={exec:e}),"object"==typeof e&&(e.name||(e.name=n),this.addCommand(e))}}),this)},this.removeCommands=function(t){Object.keys(t).forEach((function(n){this.removeCommand(t[n])}),this)},this.bindKeys=function(t){Object.keys(t).forEach((function(n){this.bindKey(n,t[n])}),this)},this._buildKeyHash=function(t){this.bindKey(t.bindKey,t)},this.parseKeys=function(t){var n=t.toLowerCase().split(/[\-\+]([\-\+])?/).filter((function(t){return t})),e=n.pop(),i=r[e];if(r.FUNCTION_KEYS[i])e=r.FUNCTION_KEYS[i].toLowerCase();else{if(!n.length)return{key:e,hashId:-1};if(1==n.length&&"shift"==n[0])return{key:e.toUpperCase(),hashId:-1}}for(var o=0,s=n.length;s--;){var a=r.KEY_MODS[n[s]];if(null==a)return"undefined"!=typeof console&&console.error("invalid modifier "+n[s]+" in "+t),!1;o|=a}return{key:e,hashId:o}},this.findKeyCommand=function(t,n){var e=o[t]+n;return this.commandKeyBinding[e]},this.handleKeyboard=function(t,n,e,r){if(!(r<0)){var i=o[n]+e,s=this.commandKeyBinding[i];return t.$keyChain&&(t.$keyChain+=" "+i,s=this.commandKeyBinding[t.$keyChain]||s),!s||"chainKeys"!=s&&"chainKeys"!=s[s.length-1]?(t.$keyChain&&(n&&4!=n||1!=e.length?(-1==n||r>0)&&(t.$keyChain=""):t.$keyChain=t.$keyChain.slice(0,-i.length-1)),{command:s}):(t.$keyChain=t.$keyChain||i,{command:"null"})}},this.getStatusText=function(t,n){return n.$keyChain||""}}.call(s.prototype),n.HashHandler=s,n.MultiHashHandler=a})),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],(function(t,n,e){"use strict";var r=t("../lib/oop"),i=t("../keyboard/hash_handler").MultiHashHandler,o=t("../lib/event_emitter").EventEmitter,s=function(t,n){i.call(this,n,t),this.byName=this.commands,this.setDefaultHandler("exec",(function(t){return t.args?t.command.exec(t.editor,t.args,t.event,!1):t.command.exec(t.editor,{},t.event,!0)}))};r.inherits(s,i),function(){r.implement(this,o),this.exec=function(t,n,e){if(Array.isArray(t)){for(var r=t.length;r--;)if(this.exec(t[r],n,e))return!0;return!1}if("string"==typeof t&&(t=this.commands[t]),!t)return!1;if(n&&n.$readOnly&&!t.readOnly)return!1;if(0!=this.$checkCommandState&&t.isAvailable&&!t.isAvailable(n))return!1;var i={editor:n,command:t,args:e};return i.returnValue=this._emit("exec",i),this._signal("afterExec",i),!1!==i.returnValue},this.toggleRecording=function(t){if(!this.$inReplay)return t&&t._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(t){this.macro.push([t.command,t.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(t){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(t);try{this.$inReplay=!0,this.macro.forEach((function(n){"string"==typeof n?this.exec(n,t):this.exec(n[0],t,n[1])}),this)}finally{this.$inReplay=!1}}},this.trimMacro=function(t){return t.map((function(t){return"string"!=typeof t[0]&&(t[0]=t[0].name),t[1]||(t=t[0]),t}))}}.call(s.prototype),n.CommandManager=s})),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],(function(t,n,e){"use strict";var r=t("../lib/lang"),i=t("../config"),o=t("../range").Range;function s(t,n){return{win:t,mac:n}}n.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:s("Ctrl-,","Command-,"),exec:function(t){i.loadModule("ace/ext/settings_menu",(function(n){n.init(t),t.showSettingsMenu()}))},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:s("Alt-E","F4"),exec:function(t){i.loadModule("./ext/error_marker",(function(n){n.showErrorMarker(t,1)}))},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:s("Alt-Shift-E","Shift-F4"),exec:function(t){i.loadModule("./ext/error_marker",(function(n){n.showErrorMarker(t,-1)}))},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:s("Ctrl-A","Command-A"),exec:function(t){t.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:s(null,"Ctrl-L"),exec:function(t){t.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:s("Ctrl-L","Command-L"),exec:function(t,n){"number"!=typeof n||isNaN(n)||t.gotoLine(n),t.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:s("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(t){t.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:s("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(t){t.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:s("F2","F2"),exec:function(t){t.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:s("Alt-F2","Alt-F2"),exec:function(t){t.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(t){t.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(t){t.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:s("Alt-0","Command-Option-0"),exec:function(t){t.session.foldAll(),t.session.unfold(t.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:s("Alt-Shift-0","Command-Option-Shift-0"),exec:function(t){t.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:s("Ctrl-K","Command-G"),exec:function(t){t.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:s("Ctrl-Shift-K","Command-Shift-G"),exec:function(t){t.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:s("Alt-K","Ctrl-G"),exec:function(t){t.selection.isEmpty()?t.selection.selectWord():t.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:s("Alt-Shift-K","Ctrl-Shift-G"),exec:function(t){t.selection.isEmpty()?t.selection.selectWord():t.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:s("Ctrl-F","Command-F"),exec:function(t){i.loadModule("ace/ext/searchbox",(function(n){n.Search(t)}))},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(t){t.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:s("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(t){t.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:s("Ctrl-Home","Command-Home|Command-Up"),exec:function(t){t.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:s("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(t){t.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:s("Up","Up|Ctrl-P"),exec:function(t,n){t.navigateUp(n.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:s("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(t){t.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:s("Ctrl-End","Command-End|Command-Down"),exec:function(t){t.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:s("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(t){t.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:s("Down","Down|Ctrl-N"),exec:function(t,n){t.navigateDown(n.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:s("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(t){t.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:s("Ctrl-Left","Option-Left"),exec:function(t){t.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:s("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(t){t.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:s("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(t){t.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:s("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(t){t.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:s("Left","Left|Ctrl-B"),exec:function(t,n){t.navigateLeft(n.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:s("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(t){t.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:s("Ctrl-Right","Option-Right"),exec:function(t){t.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:s("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(t){t.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:s("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(t){t.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:s("Shift-Right","Shift-Right"),exec:function(t){t.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:s("Right","Right|Ctrl-F"),exec:function(t,n){t.navigateRight(n.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(t){t.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:s(null,"Option-PageDown"),exec:function(t){t.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:s("PageDown","PageDown|Ctrl-V"),exec:function(t){t.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(t){t.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:s(null,"Option-PageUp"),exec:function(t){t.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(t){t.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:s("Ctrl-Up",null),exec:function(t){t.renderer.scrollBy(0,-2*t.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:s("Ctrl-Down",null),exec:function(t){t.renderer.scrollBy(0,2*t.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(t){t.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(t){t.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:s("Ctrl-Alt-E","Command-Option-E"),exec:function(t){t.commands.toggleRecording(t)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:s("Ctrl-Shift-E","Command-Shift-E"),exec:function(t){t.commands.replay(t)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:s("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(t){t.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:s("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(t){t.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:s("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(t){t.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:s(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(t){},readOnly:!0},{name:"cut",description:"Cut",exec:function(t){var n=t.$copyWithEmptySelection&&t.selection.isEmpty()?t.selection.getLineRange():t.selection.getRange();t._emit("cut",n),n.isEmpty()||t.session.remove(n),t.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(t,n){t.$handlePaste(n)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:s("Ctrl-D","Command-D"),exec:function(t){t.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:s("Ctrl-Shift-D","Command-Shift-D"),exec:function(t){t.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:s("Ctrl-Alt-S","Command-Alt-S"),exec:function(t){t.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:s("Ctrl-/","Command-/"),exec:function(t){t.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:s("Ctrl-Shift-/","Command-Shift-/"),exec:function(t){t.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:s("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(t){t.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:s("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(t){t.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:s("Ctrl-H","Command-Option-F"),exec:function(t){i.loadModule("ace/ext/searchbox",(function(n){n.Search(t,!0)}))}},{name:"undo",description:"Undo",bindKey:s("Ctrl-Z","Command-Z"),exec:function(t){t.undo()}},{name:"redo",description:"Redo",bindKey:s("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(t){t.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:s("Alt-Shift-Up","Command-Option-Up"),exec:function(t){t.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:s("Alt-Up","Option-Up"),exec:function(t){t.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:s("Alt-Shift-Down","Command-Option-Down"),exec:function(t){t.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:s("Alt-Down","Option-Down"),exec:function(t){t.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:s("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(t){t.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:s("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(t){t.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:s("Shift-Delete",null),exec:function(t){if(!t.selection.isEmpty())return!1;t.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:s("Alt-Backspace","Command-Backspace"),exec:function(t){t.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:s("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(t){t.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:s("Ctrl-Shift-Backspace",null),exec:function(t){var n=t.selection.getRange();n.start.column=0,t.session.remove(n)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:s("Ctrl-Shift-Delete",null),exec:function(t){var n=t.selection.getRange();n.end.column=Number.MAX_VALUE,t.session.remove(n)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:s("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(t){t.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:s("Ctrl-Delete","Alt-Delete"),exec:function(t){t.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:s("Shift-Tab","Shift-Tab"),exec:function(t){t.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:s("Tab","Tab"),exec:function(t){t.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:s("Ctrl-[","Ctrl-["),exec:function(t){t.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:s("Ctrl-]","Ctrl-]"),exec:function(t){t.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(t,n){t.insert(n)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(t,n){t.insert(r.stringRepeat(n.text||"",n.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:s(null,"Ctrl-O"),exec:function(t){t.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:s("Alt-Shift-X","Ctrl-T"),exec:function(t){t.transposeLetters()},multiSelectAction:function(t){t.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:s("Ctrl-U","Ctrl-U"),exec:function(t){t.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:s("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(t){t.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:s(null,null),exec:function(t){t.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:s("Ctrl-Shift-L","Command-Shift-L"),exec:function(t){var n=t.selection.getRange();n.start.column=n.end.column=0,n.end.row++,t.selection.setRange(n,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:s("Ctrl+F3","F3"),exec:function(t){t.openLink()}},{name:"joinlines",description:"Join lines",bindKey:s(null,null),exec:function(t){for(var n=t.selection.isBackwards(),e=n?t.selection.getSelectionLead():t.selection.getSelectionAnchor(),i=n?t.selection.getSelectionAnchor():t.selection.getSelectionLead(),s=t.session.doc.getLine(e.row).length,a=t.session.doc.getTextRange(t.selection.getRange()).replace(/\n\s*/," ").length,u=t.session.doc.getLine(e.row),l=e.row+1;l<=i.row+1;l++){var c=r.stringTrimLeft(r.stringTrimRight(t.session.doc.getLine(l)));0!==c.length&&(c=" "+c),u+=c}i.row+10?(t.selection.moveCursorTo(e.row,e.column),t.selection.selectTo(e.row,e.column+a)):(s=t.session.doc.getLine(e.row).length>s?s+1:s,t.selection.moveCursorTo(e.row,s))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:s(null,null),exec:function(t){var n=t.session.doc.getLength()-1,e=t.session.doc.getLine(n).length,r=t.selection.rangeList.ranges,i=[];r.length<1&&(r=[t.selection.getRange()]);for(var s=0;s=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},i=t("./lib/oop"),o=t("./lib/dom"),s=t("./lib/lang"),a=t("./lib/useragent"),u=t("./keyboard/textinput").TextInput,l=t("./mouse/mouse_handler").MouseHandler,c=t("./mouse/fold_handler").FoldHandler,h=t("./keyboard/keybinding").KeyBinding,f=t("./edit_session").EditSession,d=t("./search").Search,p=t("./range").Range,_=t("./lib/event_emitter").EventEmitter,v=t("./commands/command_manager").CommandManager,m=t("./commands/default_commands").commands,g=t("./config"),y=t("./token_iterator").TokenIterator,w=t("./clipboard"),b=function(t,n,e){this.$toDestroy=[];var r=t.getContainerElement();this.container=r,this.renderer=t,this.id="editor"+ ++b.$uid,this.commands=new v(a.isMac?"mac":"win",m),"object"==typeof document&&(this.textInput=new u(t.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new l(this),new c(this)),this.keyBinding=new h(this),this.$search=(new d).set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=s.delayedCall(function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",(function(t,n){n._$emitInputEvent.schedule(31)})),this.setSession(n||e&&e.session||new f("")),g.resetOptions(this),e&&this.setOptions(e),g._signal("editor",this)};b.$uid=0,function(){i.implement(this,_),this.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=s.delayedCall(this.endOperation.bind(this,!0)),this.on("change",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}.bind(this),!0)},this.curOp=null,this.prevOp={},this.startOperation=function(t){if(this.curOp){if(!t||this.curOp.command)return;this.prevOp=this.curOp}t||(this.previousCommand=null,t={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:t.command||{},args:t.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},this.endOperation=function(t){if(this.curOp&&this.session){if(t&&!1===t.returnValue||!this.session)return this.curOp=null;if(1==t&&this.curOp.command&&"mouse"==this.curOp.command.name)return;if(this._signal("beforeEndOperation"),!this.curOp)return;var n=this.curOp.command,e=n&&n.scrollIntoView;if(e){switch(e){case"center-animate":e="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var r=this.selection.getRange(),i=this.renderer.layerConfig;(r.start.row>=i.lastRow||r.end.row<=i.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==e&&this.renderer.animateScrolling(this.curOp.scrollTop)}var o=this.selection.toJSON();this.curOp.selectionAfter=o,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(o),this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(t){if(this.$mergeUndoDeltas){var n=this.prevOp,e=this.$mergeableCommands,r=n.command&&t.command.name==n.command.name;if("insertstring"==t.command.name){var i=t.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),r=r&&this.mergeNextCommand&&(!/\s/.test(i)||/\s/.test(n.args)),this.mergeNextCommand=!0}else r=r&&-1!==e.indexOf(t.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(r=!1),r?this.session.mergeUndoDeltas=!0:-1!==e.indexOf(t.command.name)&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(t,n){if(t&&"string"==typeof t&&"ace"!=t){this.$keybindingId=t;var e=this;g.loadModule(["keybinding",t],(function(r){e.$keybindingId==t&&e.keyBinding.setKeyboardHandler(r&&r.handler),n&&n()}))}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(t),n&&n()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(t){if(this.session!=t){this.curOp&&this.endOperation(),this.curOp={};var n=this.session;if(n){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var e=this.session.getSelection();e.off("changeCursor",this.$onCursorChange),e.off("changeSelection",this.$onSelectionChange)}this.session=t,t?(this.$onDocumentChange=this.onDocumentChange.bind(this),t.on("change",this.$onDocumentChange),this.renderer.setSession(t),this.$onChangeMode=this.onChangeMode.bind(this),t.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),t.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),t.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),t.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),t.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),t.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=t.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(t)),this._signal("changeSession",{session:t,oldSession:n}),this.curOp=null,n&&n._signal("changeEditor",{oldEditor:this}),t&&t._signal("changeEditor",{editor:this}),t&&!t.destroyed&&t.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(t,n){return this.session.doc.setValue(t),n?1==n?this.navigateFileEnd():-1==n&&this.navigateFileStart():this.selectAll(),t},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(t){this.renderer.onResize(t)},this.setTheme=function(t,n){this.renderer.setTheme(t,n)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(t){this.renderer.setStyle(t)},this.unsetStyle=function(t){this.renderer.unsetStyle(t)},this.getFontSize=function(){return this.getOption("fontSize")||o.computedStyle(this.container).fontSize},this.setFontSize=function(t){this.setOption("fontSize",t)},this.$highlightBrackets=function(){if(!this.$highlightPending){var t=this;this.$highlightPending=!0,setTimeout((function(){t.$highlightPending=!1;var n=t.session;if(n&&!n.destroyed){n.$bracketHighlight&&(n.$bracketHighlight.markerIds.forEach((function(t){n.removeMarker(t)})),n.$bracketHighlight=null);var e=t.getCursorPosition(),r=t.getKeyboardHandler(),i=r&&r.$getDirectionForHighlight&&r.$getDirectionForHighlight(t),o=n.getMatchingBracketRanges(e,i);if(!o){var s=new y(n,e.row,e.column).getCurrentToken();if(s&&/\b(?:tag-open|tag-name)/.test(s.type)){var a=n.getMatchingTags(e);a&&(o=[a.openTagName,a.closeTagName])}}if(!o&&n.$mode.getMatching&&(o=n.$mode.getMatching(t.session)),o){var u="ace_bracket";Array.isArray(o)?1==o.length&&(u="ace_error_bracket"):o=[o],2==o.length&&(0==p.comparePoints(o[0].end,o[1].start)?o=[p.fromPoints(o[0].start,o[1].end)]:0==p.comparePoints(o[0].start,o[1].end)&&(o=[p.fromPoints(o[1].start,o[0].end)])),n.$bracketHighlight={ranges:o,markerIds:o.map((function(t){return n.addMarker(t,u,"text")}))},t.getHighlightIndentGuides()&&t.renderer.$textLayer.$highlightIndentGuide()}else t.getHighlightIndentGuides()&&t.renderer.$textLayer.$highlightIndentGuide()}}),50)}},this.focus=function(){this.textInput.focus()},this.isFocused=function(){return this.textInput.isFocused()},this.blur=function(){this.textInput.blur()},this.onFocus=function(t){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",t))},this.onBlur=function(t){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",t))},this.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},this.onDocumentChange=function(t){var n=this.session.$useWrapMode,e=t.start.row==t.end.row?t.end.row:1/0;this.renderer.updateLines(t.start.row,e,n),this._signal("change",t),this.$cursorChange()},this.onTokenizerUpdate=function(t){var n=t.data;this.renderer.updateLines(n.first,n.last)},this.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},this.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},this.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},this.$updateHighlightActiveLine=function(){var t,n=this.getSession();if(this.$highlightActiveLine&&("line"==this.$selectionStyle&&this.selection.isMultiLine()||(t=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(t=!1),!this.renderer.$maxLines||1!==this.session.getLength()||this.renderer.$minLines>1||(t=!1)),n.$highlightLineMarker&&!t)n.removeMarker(n.$highlightLineMarker.id),n.$highlightLineMarker=null;else if(!n.$highlightLineMarker&&t){var e=new p(t.row,t.column,t.row,1/0);e.id=n.addMarker(e,"ace_active-line","screenLine"),n.$highlightLineMarker=e}else t&&(n.$highlightLineMarker.start.row=t.row,n.$highlightLineMarker.end.row=t.row,n.$highlightLineMarker.start.column=t.column,n._signal("changeBackMarker"))},this.onSelectionChange=function(t){var n=this.session;if(n.$selectionMarker&&n.removeMarker(n.$selectionMarker),n.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var e=this.selection.getRange(),r=this.getSelectionStyle();n.$selectionMarker=n.addMarker(e,"ace_selection",r)}var i=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(i),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var t=this.session,n=this.getSelectionRange();if(!n.isEmpty()&&!n.isMultiLine()){var e=n.start.column,r=n.end.column,i=t.getLine(n.start.row),o=i.substring(e,r);if(!(o.length>5e3)&&/[\w\d]/.test(o)){var s=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:o}),a=i.substring(e-1,r+1);if(s.test(a))return s}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(t){this.renderer.updateText(),this._emit("changeMode",t)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var t=this.getSelectedText(),n=this.session.doc.getNewLineCharacter(),e=!1;if(!t&&this.$copyWithEmptySelection){e=!0;for(var r=this.selection.getAllRanges(),i=0;ia.search(/\S|$/)){var u=a.substr(i.column).search(/\S|$/);e.doc.removeInLine(i.row,i.column,i.column+u)}}this.clearSelection();var l=i.column,c=e.getState(i.row),h=(a=e.getLine(i.row),r.checkOutdent(c,a,t));if(e.insert(i,t),o&&o.selection&&(2==o.selection.length?this.selection.setSelectionRange(new p(i.row,l+o.selection[0],i.row,l+o.selection[1])):this.selection.setSelectionRange(new p(i.row+o.selection[0],o.selection[1],i.row+o.selection[2],o.selection[3]))),this.$enableAutoIndent){if(e.getDocument().isNewLine(t)){var f=r.getNextLineIndent(c,a.slice(0,i.column),e.getTabString());e.insert({row:i.row+1,column:0},f)}h&&r.autoOutdent(c,e,i.row)}},this.autoIndent=function(){var t,n,e=this.session,r=e.getMode();if(this.selection.isEmpty())t=0,n=e.doc.getLength()-1;else{var i=this.getSelectionRange();t=i.start.row,n=i.end.row}for(var o,s,a,u="",l="",c="",h=e.getTabString(),f=t;f<=n;f++)f>0&&(u=e.getState(f-1),l=e.getLine(f-1),c=r.getNextLineIndent(u,l,h)),o=e.getLine(f),c!==(s=r.$getIndent(o))&&(s.length>0&&(a=new p(f,0,f,s.length),e.remove(a)),c.length>0&&e.insert({row:f,column:0},c)),r.autoOutdent(u,e,f)},this.onTextInput=function(t,n){if(!n)return this.keyBinding.onTextInput(t);this.startOperation({command:{name:"insertstring"}});var e=this.applyComposition.bind(this,t,n);this.selection.rangeCount?this.forEachSelection(e):e(),this.endOperation()},this.applyComposition=function(t,n){var e;(n.extendLeft||n.extendRight)&&((e=this.selection.getRange()).start.column-=n.extendLeft,e.end.column+=n.extendRight,e.start.column<0&&(e.start.row--,e.start.column+=this.session.getLine(e.start.row).length+1),this.selection.setRange(e),t||e.isEmpty()||this.remove()),!t&&this.selection.isEmpty()||this.insert(t,!0),(n.restoreStart||n.restoreEnd)&&((e=this.selection.getRange()).start.column-=n.restoreStart,e.end.column-=n.restoreEnd,this.selection.setRange(e))},this.onCommandKey=function(t,n,e){return this.keyBinding.onCommandKey(t,n,e)},this.setOverwrite=function(t){this.session.setOverwrite(t)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(t){this.setOption("scrollSpeed",t)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(t){this.setOption("dragDelay",t)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(t){this.setOption("selectionStyle",t)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(t){this.setOption("highlightActiveLine",t)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(t){this.setOption("highlightGutterLine",t)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(t){this.setOption("highlightSelectedWord",t)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(t){this.renderer.setAnimatedScroll(t)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(t){this.renderer.setShowInvisibles(t)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(t){this.renderer.setDisplayIndentGuides(t)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setHighlightIndentGuides=function(t){this.renderer.setHighlightIndentGuides(t)},this.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},this.setShowPrintMargin=function(t){this.renderer.setShowPrintMargin(t)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(t){this.renderer.setPrintMarginColumn(t)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(t){this.setOption("readOnly",t)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(t){this.setOption("behavioursEnabled",t)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(t){this.setOption("wrapBehavioursEnabled",t)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(t){this.setOption("showFoldWidgets",t)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(t){this.setOption("fadeFoldWidgets",t)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(t){this.selection.isEmpty()&&("left"==t?this.selection.selectLeft():this.selection.selectRight());var n=this.getSelectionRange();if(this.getBehavioursEnabled()){var e=this.session,r=e.getState(n.start.row),i=e.getMode().transformAction(r,"deletion",this,e,n);if(0===n.end.column){var o=e.getTextRange(n);if("\n"==o[o.length-1]){var s=e.getLine(n.end.row);/^\s+$/.test(s)&&(n.end.column=s.length)}}i&&(n=i)}this.session.remove(n),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var t=this.getSelectionRange();t.start.column==t.end.column&&t.start.row==t.end.row&&(t.end.column=0,t.end.row++),this.session.remove(t),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var t=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(t)},this.transposeLetters=function(){if(this.selection.isEmpty()){var t=this.getCursorPosition(),n=t.column;if(0!==n){var e,r,i=this.session.getLine(t.row);nn.toLowerCase()?1:0}));var i=new p(0,0,0,0);for(r=t.first;r<=t.last;r++){var o=n.getLine(r);i.start.row=r,i.end.row=r,i.end.column=o.length,n.replace(i,e[r-t.first])}},this.toggleCommentLines=function(){var t=this.session.getState(this.getCursorPosition().row),n=this.$getSelectedRows();this.session.getMode().toggleCommentLines(t,this.session,n.first,n.last)},this.toggleBlockComment=function(){var t=this.getCursorPosition(),n=this.session.getState(t.row),e=this.getSelectionRange();this.session.getMode().toggleBlockComment(n,this.session,e,t)},this.getNumberAt=function(t,n){var e=/[\-]?[0-9]+(?:\.[0-9]+)?/g;e.lastIndex=0;for(var r=this.session.getLine(t);e.lastIndex=n)return{value:i[0],start:i.index,end:i.index+i[0].length}}return null},this.modifyNumber=function(t){var n=this.selection.getCursor().row,e=this.selection.getCursor().column,r=new p(n,e-1,n,e),i=this.session.getTextRange(r);if(!isNaN(parseFloat(i))&&isFinite(i)){var o=this.getNumberAt(n,e);if(o){var s=o.value.indexOf(".")>=0?o.start+o.value.indexOf(".")+1:o.end,a=o.start+o.value.length-s,u=parseFloat(o.value);u*=Math.pow(10,a),s!==o.end&&e=a&&o<=u&&(e=n,l.selection.clearSelection(),l.moveCursorTo(t,a+r),l.selection.selectTo(t,u+r)),a=u}));for(var c,h=this.$toggleWordPairs,f=0;f=u&&s<=l&&f.match(/((?:https?|ftp):\/\/[\S]+)/)){a=f.replace(/[\s:.,'";}\]]+$/,"");break}u=l}}catch(t){e={error:t}}finally{try{h&&!h.done&&(i=c.return)&&i.call(c)}finally{if(e)throw e.error}}return a},this.openLink=function(){var t=this.selection.getCursor(),n=this.findLinkAt(t.row,t.column);return n&&window.open(n,"_blank"),null!=n},this.removeLines=function(){var t=this.$getSelectedRows();this.session.removeFullLines(t.first,t.last),this.clearSelection()},this.duplicateSelection=function(){var t=this.selection,n=this.session,e=t.getRange(),r=t.isBackwards();if(e.isEmpty()){var i=e.start.row;n.duplicateLines(i,i)}else{var o=r?e.start:e.end,s=n.insert(o,n.getTextRange(e),!1);e.start=o,e.end=s,t.setSelectionRange(e,r)}},this.moveLinesDown=function(){this.$moveLines(1,!1)},this.moveLinesUp=function(){this.$moveLines(-1,!1)},this.moveText=function(t,n,e){return this.session.moveText(t,n,e)},this.copyLinesUp=function(){this.$moveLines(-1,!0)},this.copyLinesDown=function(){this.$moveLines(1,!0)},this.$moveLines=function(t,n){var e,r,i=this.selection;if(!i.inMultiSelectMode||this.inVirtualSelectionMode){var o=i.toOrientedRange();e=this.$getSelectedRows(o),r=this.session.$moveLines(e.first,e.last,n?0:t),n&&-1==t&&(r=0),o.moveBy(r,0),i.fromOrientedRange(o)}else{var s=i.rangeList.ranges;i.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var a=0,u=0,l=s.length,c=0;cd+1)break;d=p.last}for(c--,a=this.session.$moveLines(f,d,n?0:t),n&&-1==t&&(h=c+1);h<=c;)s[h].moveBy(a,0),h++;n||(a=0),u+=a}i.fromOrientedRange(i.ranges[0]),i.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(t){return t=(t||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(t.start.row),last:this.session.getRowFoldEnd(t.end.row)}},this.onCompositionStart=function(t){this.renderer.showComposition(t)},this.onCompositionUpdate=function(t){this.renderer.setCompositionText(t)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(t){return t>=this.getFirstVisibleRow()&&t<=this.getLastVisibleRow()},this.isRowFullyVisible=function(t){return t>=this.renderer.getFirstFullyVisibleRow()&&t<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(t,n){var e=this.renderer,r=this.renderer.layerConfig,i=t*Math.floor(r.height/r.lineHeight);!0===n?this.selection.$moveSelection((function(){this.moveCursorBy(i,0)})):!1===n&&(this.selection.moveCursorBy(i,0),this.selection.clearSelection());var o=e.scrollTop;e.scrollBy(0,i*r.lineHeight),null!=n&&e.scrollCursorIntoView(null,.5),e.animateScrolling(o)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(t){this.renderer.scrollToRow(t)},this.scrollToLine=function(t,n,e,r){this.renderer.scrollToLine(t,n,e,r)},this.centerSelection=function(){var t=this.getSelectionRange(),n={row:Math.floor(t.start.row+(t.end.row-t.start.row)/2),column:Math.floor(t.start.column+(t.end.column-t.start.column)/2)};this.renderer.alignCursor(n,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(t,n){this.selection.moveCursorTo(t,n)},this.moveCursorToPosition=function(t){this.selection.moveCursorToPosition(t)},this.jumpToMatching=function(t,n){var e=this.getCursorPosition(),r=new y(this.session,e.row,e.column),i=r.getCurrentToken(),o=0;i&&-1!==i.type.indexOf("tag-name")&&(i=r.stepBackward());var s=i||r.stepForward();if(s){var a,u,l=!1,c={},h=e.column-s.start,f={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(s.value.match(/[{}()\[\]]/g)){for(;h1?c[s.value]++:"=0;--o)this.$tryReplace(e[o],t)&&r++;return this.selection.setSelectionRange(i),r},this.$tryReplace=function(t,n){var e=this.session.getTextRange(t);return null!==(n=this.$search.replace(e,n))?(t.end=this.session.replace(t,n),t):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(t,n,e){n||(n={}),"string"==typeof t||t instanceof RegExp?n.needle=t:"object"==typeof t&&i.mixin(n,t);var r=this.selection.getRange();null==n.needle&&((t=this.session.getTextRange(r)||this.$search.$options.needle)||(r=this.session.getWordRange(r.start.row,r.start.column),t=this.session.getTextRange(r)),this.$search.set({needle:t})),this.$search.set(n),n.start||this.$search.set({start:r});var o=this.$search.find(this.session);return n.preventScroll?o:o?(this.revealRange(o,e),o):(n.backwards?r.start=r.end:r.end=r.start,void this.selection.setRange(r))},this.findNext=function(t,n){this.find({skipCurrent:!0,backwards:!1},t,n)},this.findPrevious=function(t,n){this.find(t,{skipCurrent:!0,backwards:!0},n)},this.revealRange=function(t,n){this.session.unfold(t),this.selection.setSelectionRange(t);var e=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(t.start,t.end,.5),!1!==n&&this.renderer.animateScrolling(e)},this.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach((function(t){t.destroy()})),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},this.setAutoScrollEditorIntoView=function(t){if(t){var n,e=this,r=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var i=this.$scrollAnchor;i.style.cssText="position:absolute",this.container.insertBefore(i,this.container.firstChild);var o=this.on("changeSelection",(function(){r=!0})),s=this.renderer.on("beforeRender",(function(){r&&(n=e.renderer.container.getBoundingClientRect())})),a=this.renderer.on("afterRender",(function(){if(r&&n&&(e.isFocused()||e.searchBox&&e.searchBox.isFocused())){var t=e.renderer,o=t.$cursorLayer.$pixelPos,s=t.layerConfig,a=o.top-s.offset;null!=(r=o.top>=0&&a+n.top<0||!(o.topwindow.innerHeight)&&null)&&(i.style.top=a+"px",i.style.left=o.left+"px",i.style.height=s.lineHeight+"px",i.scrollIntoView(r)),r=n=null}}));this.setAutoScrollEditorIntoView=function(t){t||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",o),this.renderer.off("afterRender",a),this.renderer.off("beforeRender",s))}}},this.$resetCursorStyle=function(){var t=this.$cursorStyle||"ace",n=this.renderer.$cursorLayer;n&&(n.setSmoothBlinking(/smooth/.test(t)),n.isBlinking=!this.$readOnly&&"wide"!=t,o.setCssClass(n.element,"ace_slim-cursors",/slim/.test(t)))},this.prompt=function(t,n,e){var r=this;g.loadModule("./ext/prompt",(function(i){i.prompt(r,t,n,e)}))}}.call(b.prototype),g.defineOptions(b.prototype,"editor",{selectionStyle:{set:function(t){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:t})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(t){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(t){this.textInput.setReadOnly(t),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(t){this.textInput.setCopyWithEmptySelection(t)},initialValue:!1},cursorStyle:{set:function(t){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(t){this.setAutoScrollEditorIntoView(t)}},keyboardHandler:{set:function(t){this.setKeyboardHandler(t)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(t){this.session.setValue(t)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(t){this.setSession(t)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(t){this.renderer.$gutterLayer.setShowLineNumbers(t),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),t&&this.$relativeLineNumbers?x.attach(this):x.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(t){this.$showLineNumbers&&t?x.attach(this):x.detach(this)}},placeholder:{set:function(t){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var t=this.session&&(this.renderer.$composition||this.getValue());if(t&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),o.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(t||this.renderer.placeholderNode)!t&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"");else{this.renderer.on("afterRender",this.$updatePlaceholder),o.addCssClass(this.container,"ace_hasPlaceholder");var n=o.createElement("div");n.className="ace_placeholder",n.textContent=this.$placeholder||"",this.renderer.placeholderNode=n,this.renderer.content.appendChild(this.renderer.placeholderNode)}}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var x={getText:function(t,n){return(Math.abs(t.selection.lead.row-n)||n+1+(n<9?"·":""))+""},getWidth:function(t,n,e){return Math.max(n.toString().length,(e.lastRow+1).toString().length,2)*e.characterWidth},update:function(t,n){n.renderer.$loop.schedule(n.renderer.CHANGE_GUTTER)},attach:function(t){t.renderer.$gutterLayer.$renderer=this,t.on("changeSelection",this.update),this.update(null,t)},detach:function(t){t.renderer.$gutterLayer.$renderer==this&&(t.renderer.$gutterLayer.$renderer=null),t.off("changeSelection",this.update),this.update(null,t)}};n.Editor=b})),ace.define("ace/undomanager",["require","exports","module","ace/range"],(function(t,n,e){"use strict";var r=function(){this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()};(function(){this.addSession=function(t){this.$session=t},this.add=function(t,n,e){if(!this.$fromUndo&&t!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),!1===n||!this.lastDeltas){this.lastDeltas=[];var r=this.$undoStack.length;r>this.$undoDepth-1&&this.$undoStack.splice(0,r-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),t.id=this.$rev=++this.$maxRev}"remove"!=t.action&&"insert"!=t.action||(this.$lastDelta=t),this.lastDeltas.push(t)}},this.addSelection=function(t,n){this.selections.push({value:t,rev:n||this.$rev})},this.startNewGroup=function(){return this.lastDeltas=null,this.$rev},this.markIgnored=function(t,n){null==n&&(n=this.$rev+1);for(var e=this.$undoStack,r=e.length;r--;){var i=e[r][0];if(i.id<=t)break;i.id0},this.canRedo=function(){return this.$redoStack.length>0},this.bookmark=function(t){null==t&&(t=this.$rev),this.mark=t},this.isAtBookmark=function(){return this.$rev===this.mark},this.toJSON=function(){},this.fromJSON=function(){},this.hasUndo=this.canUndo,this.hasRedo=this.canRedo,this.isClean=this.isAtBookmark,this.markClean=this.bookmark,this.$prettyPrint=function(t){return t?a(t):a(this.$undoStack)+"\n---\n"+a(this.$redoStack)}}).call(r.prototype);var i=t("./range").Range,o=i.comparePoints;function s(t){return{row:t.row,column:t.column}}function a(t){if(t=t||this,Array.isArray(t))return t.map(a).join("\n");var n="";return t.action?(n="insert"==t.action?"+":"-",n+="["+t.lines+"]"):t.value&&(n=Array.isArray(t.value)?t.value.map(u).join("\n"):u(t.value)),t.start&&(n+=u(t)),(t.id||t.rev)&&(n+="\t("+(t.id||t.rev)+")"),n}function u(t){return t.start.row+":"+t.start.column+"=>"+t.end.row+":"+t.end.column}function l(t,n){var e="insert"==t.action,r="insert"==n.action;if(e&&r)if(o(n.start,t.end)>=0)f(n,t,-1);else{if(!(o(n.start,t.start)<=0))return null;f(t,n,1)}else if(e&&!r)if(o(n.start,t.end)>=0)f(n,t,-1);else{if(!(o(n.end,t.start)<=0))return null;f(t,n,-1)}else if(!e&&r)if(o(n.start,t.start)>=0)f(n,t,1);else{if(!(o(n.start,t.start)<=0))return null;f(t,n,1)}else if(!e&&!r)if(o(n.start,t.start)>=0)f(n,t,1);else{if(!(o(n.end,t.start)<=0))return null;f(t,n,-1)}return[n,t]}function c(t,n){for(var e=t.length;e--;)for(var r=0;r=0?f(t,n,-1):(o(t.start,n.start)<=0||f(t,i.fromPoints(n.start,t.start),-1),f(n,t,1));else if(!e&&r)o(n.start,t.end)>=0?f(n,t,-1):(o(n.start,t.start)<=0||f(n,i.fromPoints(t.start,n.start),-1),f(t,n,1));else if(!e&&!r)if(o(n.start,t.end)>=0)f(n,t,-1);else{var s,a;if(!(o(n.end,t.start)<=0))return o(t.start,n.start)<0&&(s=t,t=p(t,n.start)),o(t.end,n.end)>0&&(a=p(t,n.end)),d(n.end,t.start,t.end,-1),a&&!s&&(t.lines=a.lines,t.start=a.start,t.end=a.end,a=t),[n,s,a].filter(Boolean);f(t,n,-1)}return[n,t]}function f(t,n,e){d(t.start,n.start,n.end,e),d(t.end,n.start,n.end,e)}function d(t,n,e,r){t.row==(1==r?n:e).row&&(t.column+=r*(e.column-n.column)),t.row+=r*(e.row-n.row)}function p(t,n){var e=t.lines,r=t.end;t.end=s(n);var i=t.end.row-t.start.row,o=e.splice(i,e.length),a=i?n.column:n.column-t.start.column;return e.push(o[0].substring(0,a)),o[0]=o[0].substr(a),{start:s(n),end:r,lines:o,action:t.action}}function _(t,n){n=function(t){return{start:s(t.start),end:s(t.end),action:t.action,lines:t.lines.slice()}}(n);for(var e=t.length;e--;){for(var r=t[e],i=0;io&&(u=i.end.row+1,o=(i=n.getNextFoldLine(u,i))?i.start.row:1/0),u>r){for(;this.$lines.getLength()>a+1;)this.$lines.pop();break}(s=this.$lines.get(++a))?s.row=u:(s=this.$lines.createCell(u,t,this.session,l),this.$lines.push(s)),this.$renderCell(s,t,i,u),u++}this._signal("afterRender"),this.$updateGutterWidth(t)},this.$updateGutterWidth=function(t){var n=this.session,e=n.gutterRenderer||this.$renderer,r=n.$firstLineNumber,i=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||n.$useWrapMode)&&(i=n.getLength()+r-1);var o=e?e.getWidth(n,i,t):i.toString().length*t.characterWidth,s=this.$padding||this.$computePadding();(o+=s.left+s.right)===this.gutterWidth||isNaN(o)||(this.gutterWidth=o,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",o))},this.$updateCursorRow=function(){if(this.$highlightGutterLine){var t=this.session.selection.getCursor();this.$cursorRow!==t.row&&(this.$cursorRow=t.row)}},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var t=this.session.selection.cursor.row;if(this.$cursorRow=t,!this.$cursorCell||this.$cursorCell.row!=t){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var n=this.$lines.cells;this.$cursorCell=null;for(var e=0;e=this.$cursorRow){if(r.row>this.$cursorRow){var i=this.session.getFoldLine(this.$cursorRow);if(!(e>0&&i&&i.start.row==n[e-1].row))break;r=n[e-1]}r.element.className="ace_gutter-active-line "+r.element.className,this.$cursorCell=r;break}}}}},this.scrollLines=function(t){var n=this.config;if(this.config=t,this.$updateCursorRow(),this.$lines.pageChanged(n,t))return this.update(t);this.$lines.moveContainer(t);var e=Math.min(t.lastRow+t.gutterOffset,this.session.getLength()-1),r=this.oldLastRow;if(this.oldLastRow=e,!n||r0;i--)this.$lines.shift();if(r>e)for(i=this.session.getFoldedRowCount(e+1,r);i>0;i--)this.$lines.pop();t.firstRowr&&this.$lines.push(this.$renderLines(t,r+1,e)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(t)},this.$renderLines=function(t,n,e){for(var r=[],i=n,o=this.session.getNextFoldLine(i),s=o?o.start.row:1/0;i>s&&(i=o.end.row+1,s=(o=this.session.getNextFoldLine(i,o))?o.start.row:1/0),!(i>e);){var a=this.$lines.createCell(i,t,this.session,l);this.$renderCell(a,t,o,i),r.push(a),i++}return r},this.$renderCell=function(t,n,e,i){var o=t.element,s=this.session,a=o.childNodes[0],u=o.childNodes[1],l=s.$firstLineNumber,c=s.$breakpoints,h=s.$decorations,f=s.gutterRenderer||this.$renderer,d=this.$showFoldWidgets&&s.foldWidgets,p=e?e.start.row:Number.MAX_VALUE,_="ace_gutter-cell ";if(this.$highlightGutterLine&&(i==this.$cursorRow||e&&i=p&&this.$cursorRow<=e.end.row)&&(_+="ace_gutter-active-line ",this.$cursorCell!=t&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=t)),c[i]&&(_+=c[i]),h[i]&&(_+=h[i]),this.$annotations[i]&&(_+=this.$annotations[i].className),o.className!=_&&(o.className=_),d){var v=d[i];null==v&&(v=d[i]=s.getFoldWidget(i))}if(v){_="ace_fold-widget ace_"+v,"start"==v&&i==p&&ie.right-n.right?"foldWidgets":void 0}}).call(u.prototype),n.Gutter=u})),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],(function(t,n,e){"use strict";var r=t("../range").Range,i=t("../lib/dom"),o=function(t){this.element=i.createElement("div"),this.element.className="ace_layer ace_marker-layer",t.appendChild(this.element)};(function(){this.$padding=0,this.setPadding=function(t){this.$padding=t},this.setSession=function(t){this.session=t},this.setMarkers=function(t){this.markers=t},this.elt=function(t,n){var e=-1!=this.i&&this.element.childNodes[this.i];e?this.i++:(e=document.createElement("div"),this.element.appendChild(e),this.i=-1),e.style.cssText=n,e.className=t},this.update=function(t){if(t){var n;for(var e in this.config=t,this.i=0,this.markers){var r=this.markers[e];if(r.range){var i=r.range.clipRows(t.firstRow,t.lastRow);if(!i.isEmpty())if(i=i.toScreenRange(this.session),r.renderer){var o=this.$getTop(i.start.row,t),s=this.$padding+i.start.column*t.characterWidth;r.renderer(n,i,s,o,t)}else"fullLine"==r.type?this.drawFullLineMarker(n,i,r.clazz,t):"screenLine"==r.type?this.drawScreenLineMarker(n,i,r.clazz,t):i.isMultiLine()?"text"==r.type?this.drawTextMarker(n,i,r.clazz,t):this.drawMultiLineMarker(n,i,r.clazz,t):this.drawSingleLineMarker(n,i,r.clazz+" ace_start ace_br15",t)}else r.update(n,this,this.session,t)}if(-1!=this.i)for(;this.if?4:0)|(l==u?8:0)),i,l==u?0:1,o)},this.drawMultiLineMarker=function(t,n,e,r,i){var o=this.$padding,s=r.lineHeight,a=this.$getTop(n.start.row,r),u=o+n.start.column*r.characterWidth;if(i=i||"",this.session.$bidiHandler.isBidiRow(n.start.row)?((l=n.clone()).end.row=l.start.row,l.end.column=this.session.getLine(l.start.row).length,this.drawBidiSingleLineMarker(t,l,e+" ace_br1 ace_start",r,null,i)):this.elt(e+" ace_br1 ace_start","height:"+s+"px;right:0;top:"+a+"px;left:"+u+"px;"+(i||"")),this.session.$bidiHandler.isBidiRow(n.end.row)){var l;(l=n.clone()).start.row=l.end.row,l.start.column=0,this.drawBidiSingleLineMarker(t,l,e+" ace_br12",r,null,i)}else{a=this.$getTop(n.end.row,r);var c=n.end.column*r.characterWidth;this.elt(e+" ace_br12","height:"+s+"px;width:"+c+"px;top:"+a+"px;left:"+o+"px;"+(i||""))}if(!((s=(n.end.row-n.start.row-1)*r.lineHeight)<=0)){a=this.$getTop(n.start.row+1,r);var h=(n.start.column?1:0)|(n.end.column?0:8);this.elt(e+(h?" ace_br"+h:""),"height:"+s+"px;right:0;top:"+a+"px;left:"+o+"px;"+(i||""))}},this.drawSingleLineMarker=function(t,n,e,r,i,o){if(this.session.$bidiHandler.isBidiRow(n.start.row))return this.drawBidiSingleLineMarker(t,n,e,r,i,o);var s=r.lineHeight,a=(n.end.column+(i||0)-n.start.column)*r.characterWidth,u=this.$getTop(n.start.row,r),l=this.$padding+n.start.column*r.characterWidth;this.elt(e,"height:"+s+"px;width:"+a+"px;top:"+u+"px;left:"+l+"px;"+(o||""))},this.drawBidiSingleLineMarker=function(t,n,e,r,i,o){var s=r.lineHeight,a=this.$getTop(n.start.row,r),u=this.$padding;this.session.$bidiHandler.getSelections(n.start.column,n.end.column).forEach((function(t){this.elt(e,"height:"+s+"px;width:"+(t.width+(i||0))+"px;top:"+a+"px;left:"+(u+t.left)+"px;"+(o||""))}),this)},this.drawFullLineMarker=function(t,n,e,r,i){var o=this.$getTop(n.start.row,r),s=r.lineHeight;n.start.row!=n.end.row&&(s+=this.$getTop(n.end.row,r)-o),this.elt(e,"height:"+s+"px;top:"+o+"px;left:0;right:0;"+(i||""))},this.drawScreenLineMarker=function(t,n,e,r,i){var o=this.$getTop(n.start.row,r),s=r.lineHeight;this.elt(e,"height:"+s+"px;top:"+o+"px;left:0;right:0;"+(i||""))}}).call(o.prototype),n.Marker=o})),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter"],(function(t,n,e){"use strict";var r=t("../lib/oop"),i=t("../lib/dom"),o=t("../lib/lang"),s=t("./lines").Lines,a=t("../lib/event_emitter").EventEmitter,u=function(t){this.dom=i,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",t.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new s(this.element)};(function(){r.implement(this,a),this.EOF_CHAR="¶",this.EOL_CHAR_LF="¬",this.EOL_CHAR_CRLF="¤",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="—",this.SPACE_CHAR="·",this.$padding=0,this.MAX_LINE_LENGTH=1e4,this.MAX_CHUNK_LENGTH=250,this.$updateEolChar=function(){var t=this.session.doc,n="\n"==t.getNewLineCharacter()&&"windows"!=t.getNewLineMode()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=n)return this.EOL_CHAR=n,!0},this.setPadding=function(t){this.$padding=t,this.element.style.margin="0 "+t+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(t){this.$fontMetrics=t,this.$fontMetrics.on("changeCharacterSize",function(t){this._signal("changeCharacterSize",t)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(t){this.session=t,t&&this.$computeTabString()},this.showInvisibles=!1,this.showSpaces=!1,this.showTabs=!1,this.showEOL=!1,this.setShowInvisibles=function(t){return this.showInvisibles!=t&&(this.showInvisibles=t,"string"==typeof t?(this.showSpaces=/tab/i.test(t),this.showTabs=/space/i.test(t),this.showEOL=/eol/i.test(t)):this.showSpaces=this.showTabs=this.showEOL=t,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(t){return this.displayIndentGuides!=t&&(this.displayIndentGuides=t,this.$computeTabString(),!0)},this.$highlightIndentGuides=!0,this.setHighlightIndentGuides=function(t){return this.$highlightIndentGuides!==t&&(this.$highlightIndentGuides=t,t)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var t=this.session.getTabSize();this.tabSize=t;for(var n=this.$tabStrings=[0],e=1;ec&&(a=u.end.row+1,c=(u=this.session.getNextFoldLine(a,u))?u.start.row:1/0),!(a>i);){var h=o[s++];if(h){this.dom.removeChildren(h),this.$renderLine(h,a,a==c&&u),l&&(h.style.top=this.$lines.computeLineTop(a,t,this.session)+"px");var f=t.lineHeight*this.session.getRowLength(a)+"px";h.style.height!=f&&(l=!0,h.style.height=f)}a++}if(l)for(;s0;i--)this.$lines.shift();if(n.lastRow>t.lastRow)for(i=this.session.getFoldedRowCount(t.lastRow+1,n.lastRow);i>0;i--)this.$lines.pop();t.firstRown.lastRow&&this.$lines.push(this.$renderLinesFragment(t,n.lastRow+1,t.lastRow)),this.$highlightIndentGuide()},this.$renderLinesFragment=function(t,n,e){for(var r=[],o=n,s=this.session.getNextFoldLine(o),a=s?s.start.row:1/0;o>a&&(o=s.end.row+1,a=(s=this.session.getNextFoldLine(o,s))?s.start.row:1/0),!(o>e);){var u=this.$lines.createCell(o,t,this.session),l=u.element;this.dom.removeChildren(l),i.setStyle(l.style,"height",this.$lines.computeLineHeight(o,t,this.session)+"px"),i.setStyle(l.style,"top",this.$lines.computeLineTop(o,t,this.session)+"px"),this.$renderLine(l,o,o==a&&s),this.$useLineGroups()?l.className="ace_line_group":(l.className="ace_line",l.setAttribute("role","option")),r.push(u),o++}return r},this.update=function(t){this.$lines.moveContainer(t),this.config=t;for(var n=t.firstRow,e=t.lastRow,r=this.$lines;r.getLength();)r.pop();r.push(this.$renderLinesFragment(t,n,e))},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderTokenInChunks=function(t,n,e,r){for(var i,o=0;o=e)return n;if(" "==n[0]){for(var i=(r-=r%this.tabSize)/this.tabSize,o=0;oi[o].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}if(!this.$highlightIndentGuideMarker.end&&""!==t[n.row]&&n.column===t[n.row].length)for(this.$highlightIndentGuideMarker.dir=1,o=n.row+1;o0)for(var r=0;r=this.$highlightIndentGuideMarker.start+1){if(r.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(r,n)}}else for(e=t.length-1;e>=0;e--)if(r=t[e],this.$highlightIndentGuideMarker.end&&r.row=s;)a=this.$renderTokenInChunks(u,a,c,h.substring(0,s-r)),h=h.substring(s-r),r=s,u=this.$createLineElement(),t.appendChild(u),u.appendChild(this.dom.createTextNode(o.stringRepeat(" ",e.indent),this.element)),a=0,s=e[++i]||Number.MAX_VALUE;0!=h.length&&(r+=h.length,a=this.$renderTokenInChunks(u,a,c,h))}}e[e.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(u,a,null,"",!0)},this.$renderSimpleLine=function(t,n){for(var e=0,r=0;rthis.MAX_LINE_LENGTH)return void this.$renderOverflowMessage(t,e,i,o);e=this.$renderTokenInChunks(t,e,i,o)}}},this.$renderOverflowMessage=function(t,n,e,r,i){e&&this.$renderTokenInChunks(t,n,e,r.slice(0,this.MAX_LINE_LENGTH-n));var o=this.dom.createElement("span");o.className="ace_inline_button ace_keyword ace_toggle_wrap",o.textContent=i?"":"",t.appendChild(o)},this.$renderLine=function(t,n,e){if(e||0==e||(e=this.session.getFoldLine(n)),e)var r=this.$getFoldLineTokens(n,e);else r=this.session.getTokens(n);var i=t;if(r.length){var o=this.session.getRowSplitData(n);o&&o.length?(this.$renderWrappedLine(t,r,o),i=t.lastChild):(i=t,this.$useLineGroups()&&(i=this.$createLineElement(),t.appendChild(i)),this.$renderSimpleLine(i,r))}else this.$useLineGroups()&&(i=this.$createLineElement(),t.appendChild(i));if(this.showEOL&&i){e&&(n=e.end.row);var s=this.dom.createElement("span");s.className="ace_invisible ace_invisible_eol",s.textContent=n==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,i.appendChild(s)}},this.$getFoldLineTokens=function(t,n){var e=this.session,r=[],i=e.getTokens(t);return n.walk((function(t,n,o,s,a){null!=t?r.push({type:"fold",value:t}):(a&&(i=e.getTokens(n)),i.length&&function(t,n,e){for(var i=0,o=0;o+t[i].value.lengthe-n&&(s=s.substring(0,e-n)),r.push({type:t[i].type,value:s}),o=n+s.length,i+=1);oe?r.push({type:t[i].type,value:s.substring(0,e-o)}):r.push(t[i]),o+=s.length,i+=1}}(i,s,o))}),n.end.row,this.session.getLine(n.end.row).length),r},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(u.prototype),n.Text=u})),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],(function(t,n,e){"use strict";var r=t("../lib/dom"),i=function(t){this.element=r.createElement("div"),this.element.className="ace_layer ace_cursor-layer",t.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),r.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)};(function(){this.$updateOpacity=function(t){for(var n=this.cursors,e=n.length;e--;)r.setStyle(n[e].style,"opacity",t?"":"0")},this.$startCssAnimation=function(){for(var t=this.cursors,n=t.length;n--;)t[n].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&r.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){this.$isAnimating=!1,r.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(t){this.$padding=t},this.setSession=function(t){this.session=t},this.setBlinking=function(t){t!=this.isBlinking&&(this.isBlinking=t,this.restartTimer())},this.setBlinkInterval=function(t){t!=this.blinkInterval&&(this.blinkInterval=t,this.restartTimer())},this.setSmoothBlinking=function(t){t!=this.smoothBlinking&&(this.smoothBlinking=t,r.setCssClass(this.element,"ace_smooth-blinking",t),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var t=r.createElement("div");return t.className="ace_cursor",this.element.appendChild(t),this.cursors.push(t),t},this.removeCursor=function(){if(this.cursors.length>1){var t=this.cursors.pop();return t.parentNode.removeChild(t),t}},this.hideCursor=function(){this.isVisible=!1,r.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,r.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var t=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,r.removeCssClass(this.element,"ace_smooth-blinking")),t(!0),this.isBlinking&&this.blinkInterval&&this.isVisible)if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout(function(){this.$isSmoothBlinking&&r.addCssClass(this.element,"ace_smooth-blinking")}.bind(this))),r.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var n=function(){this.timeoutId=setTimeout((function(){t(!1)}),.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval((function(){t(!0),n()}),this.blinkInterval),n()}else this.$stopCssAnimation()},this.getPixelPosition=function(t,n){if(!this.config||!this.session)return{left:0,top:0};t||(t=this.session.selection.getCursor());var e=this.session.documentToScreenPosition(t);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(e.row,t.row)?this.session.$bidiHandler.getPosLeft(e.column):e.column*this.config.characterWidth),top:(e.row-(n?this.config.firstRowScreen:0))*this.config.lineHeight}},this.isCursorInView=function(t,n){return t.top>=0&&t.topt.height+t.offset||s.top<0)&&e>1)){var a=this.cursors[i++]||this.addCursor(),u=a.style;this.drawCursor?this.drawCursor(a,s,t,n[e],this.session):this.isCursorInView(s,t)?(r.setStyle(u,"display","block"),r.translate(a,s.left,s.top),r.setStyle(u,"width",Math.round(t.characterWidth)+"px"),r.setStyle(u,"height",t.lineHeight+"px")):r.setStyle(u,"display","none")}}for(;this.cursors.length>i;)this.removeCursor();var l=this.session.getOverwrite();this.$setOverwrite(l),this.$pixelPos=s,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(t){t!=this.overwrite&&(this.overwrite=t,t?r.addCssClass(this.element,"ace_overwrite-cursors"):r.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(i.prototype),n.Cursor=i})),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],(function(t,n,e){"use strict";var r=t("./lib/oop"),i=t("./lib/dom"),o=t("./lib/event"),s=t("./lib/event_emitter").EventEmitter,a=32768,u=function(t){this.element=i.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=i.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),t.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,o.addListener(this.element,"scroll",this.onScroll.bind(this)),o.addListener(this.element,"mousedown",o.preventDefault)};(function(){r.implement(this,s),this.setVisible=function(t){this.element.style.display=t?"":"none",this.isVisible=t,this.coeff=1}}).call(u.prototype);var l=function(t,n){u.call(this,t),this.scrollTop=0,this.scrollHeight=0,n.$scrollbarWidth=this.width=i.scrollbarWidth(t.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};r.inherits(l,u),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var t=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-t)/(this.coeff-t)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(t){this.element.style.height=t+"px"},this.setInnerHeight=this.setScrollHeight=function(t){this.scrollHeight=t,t>a?(this.coeff=a/t,t=a):1!=this.coeff&&(this.coeff=1),this.inner.style.height=t+"px"},this.setScrollTop=function(t){this.scrollTop!=t&&(this.skipEvent=!0,this.scrollTop=t,this.element.scrollTop=t*this.coeff)}}.call(l.prototype);var c=function(t,n){u.call(this,t),this.scrollLeft=0,this.height=n.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};r.inherits(c,u),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(t){this.element.style.width=t+"px"},this.setInnerWidth=function(t){this.inner.style.width=t+"px"},this.setScrollWidth=function(t){this.inner.style.width=t+"px"},this.setScrollLeft=function(t){this.scrollLeft!=t&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=t)}}.call(c.prototype),n.ScrollBar=l,n.ScrollBarV=l,n.ScrollBarH=c,n.VScrollBar=l,n.HScrollBar=c})),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],(function(t,n,e){"use strict";var r=t("./lib/oop"),i=t("./lib/dom"),o=t("./lib/event"),s=t("./lib/event_emitter").EventEmitter;i.importCssString(".ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{\n position: absolute;\n background: rgba(128, 128, 128, 0.6);\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n border: 1px solid #bbb;\n border-radius: 2px;\n z-index: 8;\n}\n.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {\n position: absolute;\n z-index: 6;\n background: none;\n overflow: hidden!important;\n}\n.ace_editor>.ace_sb-v {\n z-index: 6;\n right: 0;\n top: 0;\n width: 12px;\n}\n.ace_editor>.ace_sb-v div {\n z-index: 8;\n right: 0;\n width: 100%;\n}\n.ace_editor>.ace_sb-h {\n bottom: 0;\n left: 0;\n height: 12px;\n}\n.ace_editor>.ace_sb-h div {\n bottom: 0;\n height: 100%;\n}\n.ace_editor>.ace_sb_grabbed {\n z-index: 8;\n background: #000;\n}","ace_scrollbar.css",!1);var a=function(t){this.element=i.createElement("div"),this.element.className="ace_sb"+this.classSuffix,this.inner=i.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,t.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,o.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")};(function(){r.implement(this,s),this.setVisible=function(t){this.element.style.display=t?"":"none",this.isVisible=t,this.coeff=1}}).call(a.prototype);var u=function(t,n){a.call(this,t),this.scrollTop=0,this.scrollHeight=0,this.parent=t,this.width=this.VScrollWidth,this.renderer=n,this.inner.style.width=this.element.style.width=(this.width||15)+"px",this.$minWidth=0};r.inherits(u,a),function(){this.classSuffix="-v",r.implement(this,s),this.onMouseDown=function(t,n){if("mousedown"===t&&0===o.getButton(n)&&2!==n.detail){if(n.target===this.inner){var e=this,r=n.clientY,i=n.clientY,s=this.thumbTop;o.capture(this.inner,(function(t){r=t.clientY}),(function(){clearInterval(a)}));var a=setInterval((function(){if(void 0!==r){var t=e.scrollTopFromThumbTop(s+r-i);t!==e.scrollTop&&e._emit("scroll",{data:t})}}),20);return o.preventDefault(n)}var u=n.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(u)}),o.preventDefault(n)}},this.getHeight=function(){return this.height},this.scrollTopFromThumbTop=function(t){var n=t*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return(n>>=0)<0?n=0:n>this.pageHeight-this.viewHeight&&(n=this.pageHeight-this.viewHeight),n},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(t){this.height=Math.max(0,t),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},this.setInnerHeight=this.setScrollHeight=function(t,n){(this.pageHeight!==t||n)&&(this.pageHeight=t,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},this.setScrollTop=function(t){this.scrollTop=t,t<0&&(t=0),this.thumbTop=t*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"}}.call(u.prototype);var l=function(t,n){a.call(this,t),this.scrollLeft=0,this.scrollWidth=0,this.height=this.HScrollHeight,this.inner.style.height=this.element.style.height=(this.height||12)+"px",this.renderer=n};r.inherits(l,a),function(){this.classSuffix="-h",r.implement(this,s),this.onMouseDown=function(t,n){if("mousedown"===t&&0===o.getButton(n)&&2!==n.detail){if(n.target===this.inner){var e=this,r=n.clientX,i=n.clientX,s=this.thumbLeft;o.capture(this.inner,(function(t){r=t.clientX}),(function(){clearInterval(a)}));var a=setInterval((function(){if(void 0!==r){var t=e.scrollLeftFromThumbLeft(s+r-i);t!==e.scrollLeft&&e._emit("scroll",{data:t})}}),20);return o.preventDefault(n)}var u=n.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(u)}),o.preventDefault(n)}},this.getHeight=function(){return this.isVisible?this.height:0},this.scrollLeftFromThumbLeft=function(t){var n=t*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return(n>>=0)<0?n=0:n>this.pageWidth-this.viewWidth&&(n=this.pageWidth-this.viewWidth),n},this.setWidth=function(t){this.width=Math.max(0,t),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},this.setInnerWidth=this.setScrollWidth=function(t,n){(this.pageWidth!==t||n)&&(this.pageWidth=t,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},this.setScrollLeft=function(t){this.scrollLeft=t,t<0&&(t=0),this.thumbLeft=t*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"}}.call(l.prototype),n.ScrollBar=u,n.ScrollBarV=u,n.ScrollBarH=l,n.VScrollBar=u,n.HScrollBar=l})),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],(function(t,n,e){"use strict";var r=t("./lib/event"),i=function(t,n){this.onRender=t,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=n||window;var e=this;this._flush=function(t){e.pending=!1;var n=e.changes;if(n&&(r.blockIdle(100),e.changes=0,e.onRender(n)),e.changes){if(e.$recursionLimit--<0)return;e.schedule()}else e.$recursionLimit=2}};(function(){this.schedule=function(t){this.changes=this.changes|t,this.changes&&!this.pending&&(r.nextFrame(this._flush),this.pending=!0)},this.clear=function(t){var n=this.changes;return this.changes=0,n}}).call(i.prototype),n.RenderLoop=i})),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],(function(t,n,e){var r=t("../lib/oop"),i=t("../lib/dom"),o=t("../lib/lang"),s=t("../lib/event"),a=t("../lib/useragent"),u=t("../lib/event_emitter").EventEmitter,l="function"==typeof ResizeObserver,c=200,h=n.FontMetrics=function(t,n){this.charCount=n||250,this.el=i.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=i.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=i.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),t.appendChild(this.el),this.$measureNode.textContent=o.stringRepeat("X",this.charCount),this.$characterSize={width:0,height:0},l?this.$addObserver():this.checkForSizeChanges()};(function(){r.implement(this,u),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(t,n){t.width=t.height="auto",t.left=t.top="0px",t.visibility="hidden",t.position="absolute",t.whiteSpace="pre",a.isIE<8?t["font-family"]="inherit":t.font="inherit",t.overflow=n?"hidden":"visible"},this.checkForSizeChanges=function(t){if(void 0===t&&(t=this.$measureSizes()),t&&(this.$characterSize.width!==t.width||this.$characterSize.height!==t.height)){this.$measureNode.style.fontWeight="bold";var n=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=t,this.charSizes=Object.create(null),this.allowBoldFonts=n&&n.width===t.width&&n.height===t.height,this._emit("changeCharacterSize",{data:t})}},this.$addObserver=function(){var t=this;this.$observer=new window.ResizeObserver((function(n){t.checkForSizeChanges()})),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var t=this;return this.$pollSizeChangesTimer=s.onIdle((function n(){t.checkForSizeChanges(),s.onIdle(n,500)}),500)},this.setPolling=function(t){t?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(t){var n=(t=t||this.$measureNode).getBoundingClientRect(),e={height:n.height,width:n.width/this.charCount};return 0===e.width||0===e.height?null:e},this.$measureCharWidth=function(t){return this.$main.textContent=o.stringRepeat(t,this.charCount),this.$main.getBoundingClientRect().width/this.charCount},this.getCharacterWidth=function(t){var n=this.charSizes[t];return void 0===n&&(n=this.charSizes[t]=this.$measureCharWidth(t)/this.$characterSize.width),n},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function t(n){return n&&n.parentElement?(window.getComputedStyle(n).zoom||1)*t(n.parentElement):1},this.$initTransformMeasureNodes=function(){var t=function(t,n){return["div",{style:"position: absolute;top:"+t+"px;left:"+n+"px;"}]};this.els=i.buildDom([t(0,0),t(c,0),t(0,c),t(c,c)],this.el)},this.transformCoordinates=function(t,n){function e(t,n,e){var r=t[1]*n[0]-t[0]*n[1];return[(-n[1]*e[0]+n[0]*e[1])/r,(+t[1]*e[0]-t[0]*e[1])/r]}function r(t,n){return[t[0]-n[0],t[1]-n[1]]}function i(t,n){return[t[0]+n[0],t[1]+n[1]]}function o(t,n){return[t*n[0],t*n[1]]}function s(t){var n=t.getBoundingClientRect();return[n.left,n.top]}t&&(t=o(1/this.$getZoom(this.el),t)),this.els||this.$initTransformMeasureNodes();var a=s(this.els[0]),u=s(this.els[1]),l=s(this.els[2]),h=s(this.els[3]),f=e(r(h,u),r(h,l),r(i(u,l),i(h,a))),d=o(1+f[0],r(u,a)),p=o(1+f[1],r(l,a));if(n){var _=n,v=f[0]*_[0]/c+f[1]*_[1]/c+1,m=i(o(_[0],d),o(_[1],p));return i(o(1/v/c,m),a)}var g=r(t,a),y=e(r(d,o(f[0],g)),r(p,o(f[1],g)),g);return o(c,y)}}).call(h.prototype)})),ace.define("ace/css/editor.css",["require","exports","module"],(function(t,n,e){e.exports='/*\nstyles = []\nfor (var i = 1; i < 16; i++) {\n styles.push(".ace_br" + i + "{" + (\n ["top-left", "top-right", "bottom-right", "bottom-left"]\n ).map(function(x, j) {\n return i & (1< .ace_line, .ace_text-layer > .ace_line_group {\n contain: style size layout;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n}\n\n.ace_hidpi .ace_text-layer,\n.ace_hidpi .ace_gutter-layer,\n.ace_hidpi .ace_content,\n.ace_hidpi .ace_gutter {\n contain: strict;\n will-change: transform;\n}\n.ace_hidpi .ace_text-layer > .ace_line, \n.ace_hidpi .ace_text-layer > .ace_line_group {\n contain: strict;\n}\n\n.ace_cjk {\n display: inline-block;\n text-align: center;\n}\n\n.ace_cursor-layer {\n z-index: 4;\n}\n\n.ace_cursor {\n z-index: 4;\n position: absolute;\n box-sizing: border-box;\n border-left: 2px solid;\n /* workaround for smooth cursor repaintng whole screen in chrome */\n transform: translatez(0);\n}\n\n.ace_multiselect .ace_cursor {\n border-left-width: 1px;\n}\n\n.ace_slim-cursors .ace_cursor {\n border-left-width: 1px;\n}\n\n.ace_overwrite-cursors .ace_cursor {\n border-left-width: 0;\n border-bottom: 1px solid;\n}\n\n.ace_hidden-cursors .ace_cursor {\n opacity: 0.2;\n}\n\n.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {\n opacity: 0;\n}\n\n.ace_smooth-blinking .ace_cursor {\n transition: opacity 0.18s;\n}\n\n.ace_animate-blinking .ace_cursor {\n animation-duration: 1000ms;\n animation-timing-function: step-end;\n animation-name: blink-ace-animate;\n animation-iteration-count: infinite;\n}\n\n.ace_animate-blinking.ace_smooth-blinking .ace_cursor {\n animation-duration: 1000ms;\n animation-timing-function: ease-in-out;\n animation-name: blink-ace-animate-smooth;\n}\n \n@keyframes blink-ace-animate {\n from, to { opacity: 1; }\n 60% { opacity: 0; }\n}\n\n@keyframes blink-ace-animate-smooth {\n from, to { opacity: 1; }\n 45% { opacity: 1; }\n 60% { opacity: 0; }\n 85% { opacity: 0; }\n}\n\n.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {\n position: absolute;\n z-index: 3;\n}\n\n.ace_marker-layer .ace_selection {\n position: absolute;\n z-index: 5;\n}\n\n.ace_marker-layer .ace_bracket {\n position: absolute;\n z-index: 6;\n}\n\n.ace_marker-layer .ace_error_bracket {\n position: absolute;\n border-bottom: 1px solid #DE5555;\n border-radius: 0;\n}\n\n.ace_marker-layer .ace_active-line {\n position: absolute;\n z-index: 2;\n}\n\n.ace_marker-layer .ace_selected-word {\n position: absolute;\n z-index: 4;\n box-sizing: border-box;\n}\n\n.ace_line .ace_fold {\n box-sizing: border-box;\n\n display: inline-block;\n height: 11px;\n margin-top: -2px;\n vertical-align: middle;\n\n background-image:\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");\n background-repeat: no-repeat, repeat-x;\n background-position: center center, top left;\n color: transparent;\n\n border: 1px solid black;\n border-radius: 2px;\n\n cursor: pointer;\n pointer-events: auto;\n}\n\n.ace_dark .ace_fold {\n}\n\n.ace_fold:hover{\n background-image:\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");\n}\n\n.ace_tooltip {\n background-color: #FFF;\n background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));\n border: 1px solid gray;\n border-radius: 1px;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);\n color: black;\n max-width: 100%;\n padding: 3px 4px;\n position: fixed;\n z-index: 999999;\n box-sizing: border-box;\n cursor: default;\n white-space: pre;\n word-wrap: break-word;\n line-height: normal;\n font-style: normal;\n font-weight: normal;\n letter-spacing: normal;\n pointer-events: none;\n}\n\n.ace_folding-enabled > .ace_gutter-cell {\n padding-right: 13px;\n}\n\n.ace_fold-widget {\n box-sizing: border-box;\n\n margin: 0 -12px 0 1px;\n display: none;\n width: 11px;\n vertical-align: top;\n\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");\n background-repeat: no-repeat;\n background-position: center;\n\n border-radius: 3px;\n \n border: 1px solid transparent;\n cursor: pointer;\n}\n\n.ace_folding-enabled .ace_fold-widget {\n display: inline-block; \n}\n\n.ace_fold-widget.ace_end {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");\n}\n\n.ace_fold-widget.ace_closed {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");\n}\n\n.ace_fold-widget:hover {\n border: 1px solid rgba(0, 0, 0, 0.3);\n background-color: rgba(255, 255, 255, 0.2);\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);\n}\n\n.ace_fold-widget:active {\n border: 1px solid rgba(0, 0, 0, 0.4);\n background-color: rgba(0, 0, 0, 0.05);\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);\n}\n/**\n * Dark version for fold widgets\n */\n.ace_dark .ace_fold-widget {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");\n}\n.ace_dark .ace_fold-widget.ace_end {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");\n}\n.ace_dark .ace_fold-widget.ace_closed {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");\n}\n.ace_dark .ace_fold-widget:hover {\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);\n background-color: rgba(255, 255, 255, 0.1);\n}\n.ace_dark .ace_fold-widget:active {\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);\n}\n\n.ace_inline_button {\n border: 1px solid lightgray;\n display: inline-block;\n margin: -1px 8px;\n padding: 0 5px;\n pointer-events: auto;\n cursor: pointer;\n}\n.ace_inline_button:hover {\n border-color: gray;\n background: rgba(200,200,200,0.2);\n display: inline-block;\n pointer-events: auto;\n}\n\n.ace_fold-widget.ace_invalid {\n background-color: #FFB4B4;\n border-color: #DE5555;\n}\n\n.ace_fade-fold-widgets .ace_fold-widget {\n transition: opacity 0.4s ease 0.05s;\n opacity: 0;\n}\n\n.ace_fade-fold-widgets:hover .ace_fold-widget {\n transition: opacity 0.05s ease 0.05s;\n opacity:1;\n}\n\n.ace_underline {\n text-decoration: underline;\n}\n\n.ace_bold {\n font-weight: bold;\n}\n\n.ace_nobold .ace_bold {\n font-weight: normal;\n}\n\n.ace_italic {\n font-style: italic;\n}\n\n\n.ace_error-marker {\n background-color: rgba(255, 0, 0,0.2);\n position: absolute;\n z-index: 9;\n}\n\n.ace_highlight-marker {\n background-color: rgba(255, 255, 0,0.2);\n position: absolute;\n z-index: 8;\n}\n\n.ace_mobile-menu {\n position: absolute;\n line-height: 1.5;\n border-radius: 4px;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n background: white;\n box-shadow: 1px 3px 2px grey;\n border: 1px solid #dcdcdc;\n color: black;\n}\n.ace_dark > .ace_mobile-menu {\n background: #333;\n color: #ccc;\n box-shadow: 1px 3px 2px grey;\n border: 1px solid #444;\n\n}\n.ace_mobile-button {\n padding: 2px;\n cursor: pointer;\n overflow: hidden;\n}\n.ace_mobile-button:hover {\n background-color: #eee;\n opacity:1;\n}\n.ace_mobile-button:active {\n background-color: #ddd;\n}\n\n.ace_placeholder {\n font-family: arial;\n transform: scale(0.9);\n transform-origin: left;\n white-space: pre;\n opacity: 0.7;\n margin: 0 10px;\n}'})),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],(function(t,n,e){"use strict";var r=t("../lib/dom"),i=t("../lib/oop"),o=t("../lib/event_emitter").EventEmitter,s=function(t,n){this.canvas=r.createElement("canvas"),this.renderer=n,this.pixelRatio=1,this.maxHeight=n.layerConfig.maxHeight,this.lineHeight=n.layerConfig.lineHeight,this.canvasHeight=t.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=t.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},t.element.appendChild(this.canvas)};(function(){i.implement(this,o),this.$updateDecorators=function(t){var n=!0===this.renderer.theme.isDark?this.colors.dark:this.colors.light;t&&(this.maxHeight=t.maxHeight,this.lineHeight=t.lineHeight,this.canvasHeight=t.height,(t.lastRow+1)*this.lineHeightn.priority?1:0}));for(var o=this.renderer.session.$foldData,s=0;sthis.canvasHeight&&(f=this.canvasHeight-this.halfMinDecorationHeight),c=Math.round(f-this.halfMinDecorationHeight),h=Math.round(f+this.halfMinDecorationHeight)}e.fillStyle=n[r[s].type]||null,e.fillRect(0,l,this.canvasWidth,h-c)}}var d=this.renderer.session.selection.getCursor();d&&(u=this.compensateFoldRows(d.row,o),l=Math.round((d.row-u)*this.lineHeight*this.heightRatio),e.fillStyle="rgba(0, 0, 0, 0.5)",e.fillRect(0,l,this.canvasWidth,2))},this.compensateFoldRows=function(t,n){var e=0;if(n&&n.length>0)for(var r=0;rn[r].start.row&&t=n[r].end.row&&(e+=n[r].end.row-n[r].start.row);return e}}).call(s.prototype),n.Decorator=s})),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor.css","ace/layer/decorators","ace/lib/useragent"],(function(t,n,e){"use strict";var r=t("./lib/oop"),i=t("./lib/dom"),o=t("./config"),s=t("./layer/gutter").Gutter,a=t("./layer/marker").Marker,u=t("./layer/text").Text,l=t("./layer/cursor").Cursor,c=t("./scrollbar").HScrollBar,h=t("./scrollbar").VScrollBar,f=t("./scrollbar_custom").HScrollBar,d=t("./scrollbar_custom").VScrollBar,p=t("./renderloop").RenderLoop,_=t("./layer/font_metrics").FontMetrics,v=t("./lib/event_emitter").EventEmitter,m=t("./css/editor.css"),g=t("./layer/decorators").Decorator,y=t("./lib/useragent"),w=y.isIE;i.importCssString(m,"ace_editor.css",!1);var b=function(t,n){var e=this;this.container=t||i.createElement("div"),i.addCssClass(this.container,"ace_editor"),i.HI_DPI&&i.addCssClass(this.container,"ace_hidpi"),this.setTheme(n),null==o.get("useStrictCSP")&&o.set("useStrictCSP",!1),this.$gutter=i.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=i.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=i.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new s(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new a(this.content);var r=this.$textLayer=new u(this.content);this.canvas=r.element,this.$markerFront=new a(this.content),this.$cursorLayer=new l(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new h(this.container,this),this.scrollBarH=new c(this.container,this),this.scrollBarV.on("scroll",(function(t){e.$scrollAnimation||e.session.setScrollTop(t.data-e.scrollMargin.top)})),this.scrollBarH.on("scroll",(function(t){e.$scrollAnimation||e.session.setScrollLeft(t.data-e.scrollMargin.left)})),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new _(this.container,this.$textLayer.MAX_CHUNK_LENGTH),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",(function(t){e.updateCharacterSize(),e.onResize(!0,e.gutterWidth,e.$size.width,e.$size.height),e._signal("changeCharacterSize",t)})),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!y.isIOS,this.$loop=new p(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),o.resetOptions(this),o._signal("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,r.implement(this,v),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),i.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(t){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=t,t&&this.scrollMargin.top&&t.getScrollTop()<=0&&t.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(t),this.$markerBack.setSession(t),this.$markerFront.setSession(t),this.$gutterLayer.setSession(t),this.$textLayer.setSession(t),t&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(t,n,e){if(void 0===n&&(n=1/0),this.$changedLines?(this.$changedLines.firstRow>t&&(this.$changedLines.firstRow=t),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(t){t?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(t,n,e,r){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=t?1:0;var i=this.container;r||(r=i.clientHeight||i.scrollHeight),e||(e=i.clientWidth||i.scrollWidth);var o=this.$updateCachedSize(t,n,e,r);if(!this.$size.scrollerHeight||!e&&!r)return this.resizing=0;t&&(this.$gutterLayer.$padding=null),t?this.$renderChanges(o|this.$changes,!0):this.$loop.schedule(o|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},this.$updateCachedSize=function(t,n,e,r){r-=this.$extraHeight||0;var o=0,s=this.$size,a={width:s.width,height:s.height,scrollerHeight:s.scrollerHeight,scrollerWidth:s.scrollerWidth};if(r&&(t||s.height!=r)&&(s.height=r,o|=this.CHANGE_SIZE,s.scrollerHeight=s.height,this.$horizScroll&&(s.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(s.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",o|=this.CHANGE_SCROLL),e&&(t||s.width!=e)){o|=this.CHANGE_SIZE,s.width=e,null==n&&(n=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=n,i.setStyle(this.scrollBarH.element.style,"left",n+"px"),i.setStyle(this.scroller.style,"left",n+this.margin.left+"px"),s.scrollerWidth=Math.max(0,e-n-this.scrollBarV.getWidth()-this.margin.h),i.setStyle(this.$gutter.style,"left",this.margin.left+"px");var u=this.scrollBarV.getWidth()+"px";i.setStyle(this.scrollBarH.element.style,"right",u),i.setStyle(this.scroller.style,"right",u),i.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(s.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||t)&&(o|=this.CHANGE_FULL)}return s.$dirty=!e||!r,o&&this._signal("resize",a),o},this.onGutterResize=function(t){var n=this.$showGutter?t:0;n!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,n,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},this.adjustWrapLimit=function(){var t=this.$size.scrollerWidth-2*this.$padding,n=Math.floor(t/this.characterWidth);return this.session.adjustWrapLimit(n,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(t){this.setOption("animatedScroll",t)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(t){this.setOption("showInvisibles",t),this.session.$bidiHandler.setShowInvisibles(t)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(t){this.setOption("displayIndentGuides",t)},this.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},this.setHighlightIndentGuides=function(t){this.setOption("highlightIndentGuides",t)},this.setShowPrintMargin=function(t){this.setOption("showPrintMargin",t)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(t){this.setOption("printMarginColumn",t)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(t){return this.setOption("showGutter",t)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(t){this.setOption("fadeFoldWidgets",t)},this.setHighlightGutterLine=function(t){this.setOption("highlightGutterLine",t)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var t=i.createElement("div");t.className="ace_layer ace_print-margin-layer",this.$printMarginEl=i.createElement("div"),this.$printMarginEl.className="ace_print-margin",t.appendChild(this.$printMarginEl),this.content.insertBefore(t,this.content.firstChild)}var n=this.$printMarginEl.style;n.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",n.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var t=this.textarea.style,n=this.$composition;if(this.$keepTextAreaAtCursor||n){var e=this.$cursorLayer.$pixelPos;if(e){n&&n.markerRange&&(e=this.$cursorLayer.getPixelPosition(n.markerRange.start,!0));var r=this.layerConfig,o=e.top,s=e.left;o-=r.offset;var a=n&&n.useTextareaForIME?this.lineHeight:w?0:1;if(o<0||o>r.height-a)i.translate(this.textarea,0,0);else{var u=1,l=this.$size.height-a;if(n)if(n.useTextareaForIME){var c=this.textarea.value;u=this.characterWidth*this.session.$getStringScreenWidth(c)[0]}else o+=this.lineHeight+2;else o+=this.lineHeight;(s-=this.scrollLeft)>this.$size.scrollerWidth-u&&(s=this.$size.scrollerWidth-u),s+=this.gutterWidth+this.margin.left,i.setStyle(t,"height",a+"px"),i.setStyle(t,"width",u+"px"),i.translate(this.textarea,Math.min(s,this.$size.scrollerWidth-u),Math.min(o,l))}}}else i.translate(this.textarea,-100,0)}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var t=this.layerConfig,n=t.lastRow;return this.session.documentToScreenRow(n,0)*t.lineHeight-this.session.getScrollTop()>t.height-t.lineHeight?n-1:n},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(t){this.$padding=t,this.$textLayer.setPadding(t),this.$cursorLayer.setPadding(t),this.$markerFront.setPadding(t),this.$markerBack.setPadding(t),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(t,n,e,r){var i=this.scrollMargin;i.top=0|t,i.bottom=0|n,i.right=0|r,i.left=0|e,i.v=i.top+i.bottom,i.h=i.left+i.right,i.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-i.top),this.updateFull()},this.setMargin=function(t,n,e,r){var i=this.margin;i.top=0|t,i.bottom=0|n,i.right=0|r,i.left=0|e,i.v=i.top+i.bottom,i.h=i.left+i.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(t){this.setOption("hScrollBarAlwaysVisible",t)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(t){this.setOption("vScrollBarAlwaysVisible",t)},this.$updateScrollBarV=function(){var t=this.layerConfig.maxHeight,n=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(t-=(n-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>t-n&&(t=this.scrollTop+n,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(t+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(t,n){if(this.$changes&&(t|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(t||n)){if(this.$size.$dirty)return this.$changes|=t,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",t),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var e=this.layerConfig;if(t&this.CHANGE_FULL||t&this.CHANGE_SIZE||t&this.CHANGE_TEXT||t&this.CHANGE_LINES||t&this.CHANGE_SCROLL||t&this.CHANGE_H_SCROLL){if(t|=this.$computeLayerConfig()|this.$loop.clear(),e.firstRow!=this.layerConfig.firstRow&&e.firstRowScreen==this.layerConfig.firstRowScreen){var r=this.scrollTop+(e.firstRow-this.layerConfig.firstRow)*this.lineHeight;r>0&&(this.scrollTop=r,t|=this.CHANGE_SCROLL,t|=this.$computeLayerConfig()|this.$loop.clear())}e=this.layerConfig,this.$updateScrollBarV(),t&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),i.translate(this.content,-this.scrollLeft,-e.offset);var o=e.width+2*this.$padding+"px",s=e.minHeight+"px";i.setStyle(this.content.style,"width",o),i.setStyle(this.content.style,"height",s)}if(t&this.CHANGE_H_SCROLL&&(i.translate(this.content,-this.scrollLeft,-e.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),t&this.CHANGE_FULL)return this.$changedLines=null,this.$textLayer.update(e),this.$showGutter&&this.$gutterLayer.update(e),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(e),this.$markerBack.update(e),this.$markerFront.update(e),this.$cursorLayer.update(e),this.$moveTextAreaToCursor(),void this._signal("afterRender",t);if(t&this.CHANGE_SCROLL)return this.$changedLines=null,t&this.CHANGE_TEXT||t&this.CHANGE_LINES?this.$textLayer.update(e):this.$textLayer.scrollLines(e),this.$showGutter&&(t&this.CHANGE_GUTTER||t&this.CHANGE_LINES?this.$gutterLayer.update(e):this.$gutterLayer.scrollLines(e)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(e),this.$markerBack.update(e),this.$markerFront.update(e),this.$cursorLayer.update(e),this.$moveTextAreaToCursor(),void this._signal("afterRender",t);t&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(e),this.$showGutter&&this.$gutterLayer.update(e),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(e)):t&this.CHANGE_LINES?((this.$updateLines()||t&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(e),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(e)):t&this.CHANGE_TEXT||t&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(e),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(e)):t&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(e),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(e)),t&this.CHANGE_CURSOR&&(this.$cursorLayer.update(e),this.$moveTextAreaToCursor()),t&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(e),t&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(e),this._signal("afterRender",t)}else this.$changes|=t},this.$autosize=function(){var t=this.session.getScreenLength()*this.lineHeight,n=this.$maxLines*this.lineHeight,e=Math.min(n,Math.max((this.$minLines||1)*this.lineHeight,t))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(e+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&e>this.$maxPixelHeight&&(e=this.$maxPixelHeight);var r=!(e<=2*this.lineHeight)&&t>n;if(e!=this.desiredHeight||this.$size.height!=this.desiredHeight||r!=this.$vScroll){r!=this.$vScroll&&(this.$vScroll=r,this.scrollBarV.setVisible(r));var i=this.container.clientWidth;this.container.style.height=e+"px",this.$updateCachedSize(!0,this.$gutterWidth,i,e),this.desiredHeight=e,this._signal("autosize")}},this.$computeLayerConfig=function(){var t=this.session,n=this.$size,e=n.height<=2*this.lineHeight,r=this.session.getScreenLength()*this.lineHeight,i=this.$getLongestLine(),o=!e&&(this.$hScrollBarAlwaysVisible||n.scrollerWidth-i-2*this.$padding<0),s=this.$horizScroll!==o;s&&(this.$horizScroll=o,this.scrollBarH.setVisible(o));var a=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var u=n.scrollerHeight+this.lineHeight,l=!this.$maxLines&&this.$scrollPastEnd?(n.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;r+=l;var c=this.scrollMargin;this.session.setScrollTop(Math.max(-c.top,Math.min(this.scrollTop,r-n.scrollerHeight+c.bottom))),this.session.setScrollLeft(Math.max(-c.left,Math.min(this.scrollLeft,i+2*this.$padding-n.scrollerWidth+c.right)));var h=!e&&(this.$vScrollBarAlwaysVisible||n.scrollerHeight-r+l<0||this.scrollTop>c.top),f=a!==h;f&&(this.$vScroll=h,this.scrollBarV.setVisible(h));var d,p,_=this.scrollTop%this.lineHeight,v=Math.ceil(u/this.lineHeight)-1,m=Math.max(0,Math.round((this.scrollTop-_)/this.lineHeight)),g=m+v,y=this.lineHeight;m=t.screenToDocumentRow(m,0);var w=t.getFoldLine(m);w&&(m=w.start.row),d=t.documentToScreenRow(m,0),p=t.getRowLength(m)*y,g=Math.min(t.screenToDocumentRow(g,0),t.getLength()-1),u=n.scrollerHeight+t.getRowLength(g)*y+p,_=this.scrollTop-d*y;var b=0;return(this.layerConfig.width!=i||s)&&(b=this.CHANGE_H_SCROLL),(s||f)&&(b|=this.$updateCachedSize(!0,this.gutterWidth,n.width,n.height),this._signal("scrollbarVisibilityChanged"),f&&(i=this.$getLongestLine())),this.layerConfig={width:i,padding:this.$padding,firstRow:m,firstRowScreen:d,lastRow:g,lineHeight:y,characterWidth:this.characterWidth,minHeight:u,maxHeight:r,offset:_,gutterOffset:y?Math.max(0,Math.ceil((_+n.height-n.scrollerHeight)/y)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(i-this.$padding),b},this.$updateLines=function(){if(this.$changedLines){var t=this.$changedLines.firstRow,n=this.$changedLines.lastRow;this.$changedLines=null;var e=this.layerConfig;if(!(t>e.lastRow+1||nthis.$textLayer.MAX_LINE_LENGTH&&(t=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(t*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(t,n){this.$gutterLayer.addGutterDecoration(t,n)},this.removeGutterDecoration=function(t,n){this.$gutterLayer.removeGutterDecoration(t,n)},this.updateBreakpoints=function(t){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(t){this.$gutterLayer.setAnnotations(t),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(t,n,e){this.scrollCursorIntoView(t,e),this.scrollCursorIntoView(n,e)},this.scrollCursorIntoView=function(t,n,e){if(0!==this.$size.scrollerHeight){var r=this.$cursorLayer.getPixelPosition(t),i=r.left,o=r.top,s=e&&e.top||0,a=e&&e.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var u=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;u+s>o?(n&&u+s>o+this.lineHeight&&(o-=n*this.$size.scrollerHeight),0===o&&(o=-this.scrollMargin.top),this.session.setScrollTop(o)):u+this.$size.scrollerHeight-a=1-this.scrollMargin.top||n>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||t<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||t>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0},this.pixelToScreenCoordinates=function(t,n){var e;if(this.$hasCssTransforms){e={top:0,left:0};var r=this.$fontMetrics.transformCoordinates([t,n]);t=r[1]-this.gutterWidth-this.margin.left,n=r[0]}else e=this.scroller.getBoundingClientRect();var i=t+this.scrollLeft-e.left-this.$padding,o=i/this.characterWidth,s=Math.floor((n+this.scrollTop-e.top)/this.lineHeight),a=this.$blockCursor?Math.floor(o):Math.round(o);return{row:s,column:a,side:o-a>0?1:-1,offsetX:i}},this.screenToTextCoordinates=function(t,n){var e;if(this.$hasCssTransforms){e={top:0,left:0};var r=this.$fontMetrics.transformCoordinates([t,n]);t=r[1]-this.gutterWidth-this.margin.left,n=r[0]}else e=this.scroller.getBoundingClientRect();var i=t+this.scrollLeft-e.left-this.$padding,o=i/this.characterWidth,s=this.$blockCursor?Math.floor(o):Math.round(o),a=Math.floor((n+this.scrollTop-e.top)/this.lineHeight);return this.session.screenToDocumentPosition(a,Math.max(s,0),i)},this.textToScreenCoordinates=function(t,n){var e=this.scroller.getBoundingClientRect(),r=this.session.documentToScreenPosition(t,n),i=this.$padding+(this.session.$bidiHandler.isBidiRow(r.row,t)?this.session.$bidiHandler.getPosLeft(r.column):Math.round(r.column*this.characterWidth)),o=r.row*this.lineHeight;return{pageX:e.left+i-this.scrollLeft,pageY:e.top+o-this.scrollTop}},this.visualizeFocus=function(){i.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){i.removeCssClass(this.container,"ace_focus")},this.showComposition=function(t){this.$composition=t,t.cssText||(t.cssText=this.textarea.style.cssText),null==t.useTextareaForIME&&(t.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(i.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):t.markerId=this.session.addMarker(t.markerRange,"ace_composition_marker","text")},this.setCompositionText=function(t){var n=this.session.selection.cursor;this.addToken(t,"composition_placeholder",n.row,n.column),this.$moveTextAreaToCursor()},this.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),i.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var t=this.session.selection.cursor;this.removeExtraToken(t.row,t.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},this.addToken=function(t,n,e,r){var i=this.session;i.bgTokenizer.lines[e]=null;var o={type:n,value:t},s=i.getTokens(e);if(null==r)s.push(o);else for(var a=0,u=0;u50&&t.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:t}))}}).call(u.prototype),n.UIWorkerClient=function(t,n,e){var r=null,i=!1,a=Object.create(o),l=[],c=new u({messageBuffer:l,terminate:function(){},postMessage:function(t){l.push(t),r&&(i?setTimeout(h):h())}});c.setEmitSync=function(t){i=t};var h=function(){var t=l.shift();t.command?r[t.command].apply(r,t.args):t.event&&a._signal(t.event,t.data)};return a.postMessage=function(t){c.onMessage({data:t})},a.callback=function(t,n){this.postMessage({type:"call",id:n,data:t})},a.emit=function(t,n){this.postMessage({type:"event",name:t,data:n})},s.loadModule(["worker",n],(function(t){for(r=new t[e](a);l.length;)h()})),c},n.WorkerClient=u,n.createWorker=a})),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],(function(t,n,e){"use strict";var r=t("./range").Range,i=t("./lib/event_emitter").EventEmitter,o=t("./lib/oop"),s=function(t,n,e,r,i,o){var s=this;this.length=n,this.session=t,this.doc=t.getDocument(),this.mainClass=i,this.othersClass=o,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=r,this.$onCursorChange=function(){setTimeout((function(){s.onCursorChange()}))},this.$pos=e;var a=t.getUndoManager().$undoStack||t.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=a.length,this.setup(),t.selection.on("changeCursor",this.$onCursorChange)};(function(){o.implement(this,i),this.setup=function(){var t=this,n=this.doc,e=this.session;this.selectionBefore=e.selection.toJSON(),e.selection.inMultiSelectMode&&e.selection.toSingleRange(),this.pos=n.createAnchor(this.$pos.row,this.$pos.column);var i=this.pos;i.$insertRight=!0,i.detach(),i.markerId=e.addMarker(new r(i.row,i.column,i.row,i.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach((function(e){var r=n.createAnchor(e.row,e.column);r.$insertRight=!0,r.detach(),t.others.push(r)})),e.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var t=this.session,n=this;this.othersActive=!0,this.others.forEach((function(e){e.markerId=t.addMarker(new r(e.row,e.column,e.row,e.column+n.length),n.othersClass,null,!1)}))}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var t=0;t=this.pos.column&&n.start.column<=this.pos.column+this.length+1,o=n.start.column-this.pos.column;if(this.updateAnchors(t),i&&(this.length+=e),i&&!this.session.$fromUndo)if("insert"===t.action)for(var s=this.others.length-1;s>=0;s--){var a={row:(u=this.others[s]).row,column:u.column+o};this.doc.insertMergedLines(a,t.lines)}else if("remove"===t.action)for(s=this.others.length-1;s>=0;s--){var u;a={row:(u=this.others[s]).row,column:u.column+o},this.doc.remove(new r(a.row,a.column,a.row,a.column-e))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(t){this.pos.onChange(t);for(var n=this.others.length;n--;)this.others[n].onChange(t);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var t=this,n=this.session,e=function(e,i){n.removeMarker(e.markerId),e.markerId=n.addMarker(new r(e.row,e.column,e.row,e.column+t.length),i,null,!1)};e(this.pos,this.mainClass);for(var i=this.others.length;i--;)e(this.others[i],this.othersClass)}},this.onCursorChange=function(t){if(!this.$updating&&this.session){var n=this.session.selection.getCursor();n.row===this.pos.row&&n.column>=this.pos.column&&n.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",t)):(this.hideOtherMarkers(),this._emit("cursorLeave",t))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var t=this.session.getUndoManager(),n=(t.$undoStack||t.$undostack).length-this.$undoStackDepth,e=0;e1?t.multiSelect.joinSelections():t.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(t){t.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(t){t.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(t){t.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],n.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(t){t.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(t){return t&&t.inMultiSelectMode}}];var r=t("../keyboard/hash_handler").HashHandler;n.keyboardHandler=new r(n.multiSelectCommands)})),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],(function(t,n,e){var r=t("./range_list").RangeList,i=t("./range").Range,o=t("./selection").Selection,s=t("./mouse/multi_select_handler").onMouseDown,a=t("./lib/event"),u=t("./lib/lang"),l=t("./commands/multi_select_commands");n.commands=l.defaultCommands.concat(l.multiSelectCommands);var c=new(0,t("./search").Search),h=t("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(h.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(t,n){if(t){if(!this.inMultiSelectMode&&0===this.rangeCount){var e=this.toOrientedRange();if(this.rangeList.add(e),this.rangeList.add(t),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),n||this.fromOrientedRange(t);this.rangeList.removeAll(),this.rangeList.add(e),this.$onAddRange(e)}t.cursor||(t.cursor=t.end);var r=this.rangeList.add(t);return this.$onAddRange(t),r.length&&this.$onRemoveRange(r),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),n||this.fromOrientedRange(t)}},this.toSingleRange=function(t){t=t||this.ranges[0];var n=this.rangeList.removeAll();n.length&&this.$onRemoveRange(n),t&&this.fromOrientedRange(t)},this.substractPoint=function(t){var n=this.rangeList.substractPoint(t);if(n)return this.$onRemoveRange(n),n[0]},this.mergeOverlappingRanges=function(){var t=this.rangeList.merge();t.length&&this.$onRemoveRange(t)},this.$onAddRange=function(t){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(t),this._signal("addRange",{range:t})},this.$onRemoveRange=function(t){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var n=this.rangeList.ranges.pop();t.push(n),this.rangeCount=0}for(var e=t.length;e--;){var r=this.ranges.indexOf(t[e]);this.ranges.splice(r,1)}this._signal("removeRange",{ranges:t}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(n=n||this.ranges[0])&&!n.isEqual(this.getRange())&&this.fromOrientedRange(n)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new r,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var t=this.ranges.length?this.ranges:[this.getRange()],n=[],e=0;e1){var t=this.rangeList.ranges,n=t[t.length-1],e=i.fromPoints(t[0].start,n.end);this.toSingleRange(),this.setSelectionRange(e,n.cursor==n.start)}else{var r=this.session.documentToScreenPosition(this.cursor),o=this.session.documentToScreenPosition(this.anchor);this.rectangularRangeBlock(r,o).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(t,n,e){var r=[],o=t.column0;)g--;if(g>0)for(var y=0;r[y].isEmpty();)y++;for(var w=g;w>=y;w--)r[w].isEmpty()&&r.splice(w,1)}return r}}.call(o.prototype);var f=t("./editor").Editor;function d(t){t.$multiselectOnSessionChange||(t.$onAddRange=t.$onAddRange.bind(t),t.$onRemoveRange=t.$onRemoveRange.bind(t),t.$onMultiSelect=t.$onMultiSelect.bind(t),t.$onSingleSelect=t.$onSingleSelect.bind(t),t.$multiselectOnSessionChange=n.onSessionChange.bind(t),t.$checkMultiselectChange=t.$checkMultiselectChange.bind(t),t.$multiselectOnSessionChange(t),t.on("changeSession",t.$multiselectOnSessionChange),t.on("mousedown",s),t.commands.addCommands(l.defaultCommands),function(t){if(t.textInput){var n=t.textInput.getElement(),e=!1;a.addListener(n,"keydown",(function(n){var i=18==n.keyCode&&!(n.ctrlKey||n.shiftKey||n.metaKey);t.$blockSelectEnabled&&i?e||(t.renderer.setMouseCursor("crosshair"),e=!0):e&&r()}),t),a.addListener(n,"keyup",r,t),a.addListener(n,"blur",r,t)}function r(n){e&&(t.renderer.setMouseCursor(""),e=!1)}}(t))}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(t){t.cursor||(t.cursor=t.end);var n=this.getSelectionStyle();return t.marker=this.session.addMarker(t,"ace_selection",n),this.session.$selectionMarkers.push(t),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,t},this.removeSelectionMarker=function(t){if(t.marker){this.session.removeMarker(t.marker);var n=this.session.$selectionMarkers.indexOf(t);-1!=n&&this.session.$selectionMarkers.splice(n,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(t){for(var n=this.session.$selectionMarkers,e=t.length;e--;){var r=t[e];if(r.marker){this.session.removeMarker(r.marker);var i=n.indexOf(r);-1!=i&&n.splice(i,1)}}this.session.selectionMarkerCount=n.length},this.$onAddRange=function(t){this.addSelectionMarker(t.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(t){this.removeSelectionMarkers(t.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(t){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(l.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(t){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(l.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(t){var n=t.command,e=t.editor;if(e.multiSelect){if(n.multiSelectAction)"forEach"==n.multiSelectAction?r=e.forEachSelection(n,t.args):"forEachLine"==n.multiSelectAction?r=e.forEachSelection(n,t.args,!0):"single"==n.multiSelectAction?(e.exitMultiSelectMode(),r=n.exec(e,t.args||{})):r=n.multiSelectAction(e,t.args||{});else{var r=n.exec(e,t.args||{});e.multiSelect.addRange(e.multiSelect.toOrientedRange()),e.multiSelect.mergeOverlappingRanges()}return r}},this.forEachSelection=function(t,n,e){if(!this.inVirtualSelectionMode){var r,i=e&&e.keepOrder,s=1==e||e&&e.$byLines,a=this.session,u=this.selection,l=u.rangeList,c=(i?u:l).ranges;if(!c.length)return t.exec?t.exec(this,n||{}):t(this,n||{});var h=u._eventRegistry;u._eventRegistry={};var f=new o(a);this.inVirtualSelectionMode=!0;for(var d=c.length;d--;){if(s)for(;d>0&&c[d].start.row==c[d-1].end.row;)d--;f.fromOrientedRange(c[d]),f.index=d,this.selection=a.selection=f;var p=t.exec?t.exec(this,n||{}):t(this,n||{});r||void 0===p||(r=p),f.toOrientedRange(c[d])}f.detach(),this.selection=a.selection=u,this.inVirtualSelectionMode=!1,u._eventRegistry=h,u.mergeOverlappingRanges(),u.ranges[0]&&u.fromOrientedRange(u.ranges[0]);var _=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),_&&_.from==_.to&&this.renderer.animateScrolling(_.from),r}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var t="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var n=this.multiSelect.rangeList.ranges,e=[],r=0;rs&&(s=e.column),rc?t.insert(r,u.stringRepeat(" ",o-c)):t.remove(new i(r.row,r.column,r.row,r.column-o+c)),n.start.column=n.end.column=s,n.start.row=n.end.row=r.row,n.cursor=n.end})),n.fromOrientedRange(e[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var c=this.selection.getRange(),h=c.start.row,f=c.end.row,d=h==f;if(d){var p,_=this.session.getLength();do{p=this.session.getLine(f)}while(/[=:]/.test(p)&&++f<_);do{p=this.session.getLine(h)}while(/[=:]/.test(p)&&--h>0);h<0&&(h=0),f>=_&&(f=_-1)}var v=this.session.removeFullLines(h,f);v=this.$reAlignText(v,d),this.session.insert({row:h,column:0},v.join("\n")+"\n"),d||(c.start.column=0,c.end.column=v[v.length-1].length),this.selection.setRange(c)}},this.$reAlignText=function(t,n){var e,r,i,o=!0,s=!0;return t.map((function(t){var n=t.match(/(\s*)(.*?)(\s*)([=:].*)/);return n?null==e?(e=n[1].length,r=n[2].length,i=n[3].length,n):(e+r+i!=n[1].length+n[2].length+n[3].length&&(s=!1),e!=n[1].length&&(o=!1),e>n[1].length&&(e=n[1].length),rn[3].length&&(i=n[3].length),n):[t]})).map(n?l:o?s?function(t){return t[2]?a(e+r-t[2].length)+t[2]+a(i)+t[4].replace(/^([=:])\s+/,"$1 "):t[0]}:l:function(t){return t[2]?a(e)+t[2]+a(i)+t[4].replace(/^([=:])\s+/,"$1 "):t[0]});function a(t){return u.stringRepeat(" ",t)}function l(t){return t[2]?a(e)+t[2]+a(r-t[2].length+i)+t[4].replace(/^([=:])\s+/,"$1 "):t[0]}}}).call(f.prototype),n.onSessionChange=function(t){var n=t.session;n&&!n.multiSelect&&(n.$selectionMarkers=[],n.selection.$initRangeList(),n.multiSelect=n.selection),this.multiSelect=n&&n.multiSelect;var e=t.oldSession;e&&(e.multiSelect.off("addRange",this.$onAddRange),e.multiSelect.off("removeRange",this.$onRemoveRange),e.multiSelect.off("multiSelect",this.$onMultiSelect),e.multiSelect.off("singleSelect",this.$onSingleSelect),e.multiSelect.lead.off("change",this.$checkMultiselectChange),e.multiSelect.anchor.off("change",this.$checkMultiselectChange)),n&&(n.multiSelect.on("addRange",this.$onAddRange),n.multiSelect.on("removeRange",this.$onRemoveRange),n.multiSelect.on("multiSelect",this.$onMultiSelect),n.multiSelect.on("singleSelect",this.$onSingleSelect),n.multiSelect.lead.on("change",this.$checkMultiselectChange),n.multiSelect.anchor.on("change",this.$checkMultiselectChange)),n&&this.inMultiSelectMode!=n.selection.inMultiSelectMode&&(n.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},n.MultiSelect=d,t("./config").defineOptions(f.prototype,"editor",{enableMultiselect:{set:function(t){d(this),t?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",s)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",s))},value:!0},enableBlockSelect:{set:function(t){this.$blockSelectEnabled=t},value:!0}})})),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],(function(t,n,e){"use strict";var r=t("../../range").Range,i=n.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(t,n,e){var r=t.getLine(e);return this.foldingStartMarker.test(r)?"start":"markbeginend"==n&&this.foldingStopMarker&&this.foldingStopMarker.test(r)?"end":""},this.getFoldWidgetRange=function(t,n,e){return null},this.indentationBlock=function(t,n,e){var i=/\S/,o=t.getLine(n),s=o.search(i);if(-1!=s){for(var a=e||o.length,u=t.getLength(),l=n,c=n;++nl){var d=t.getLine(c).length;return new r(l,a,c,d)}}},this.openingBracketBlock=function(t,n,e,i,o){var s={row:e,column:i+1},a=t.$findClosingBracket(n,s,o);if(a){var u=t.foldWidgets[a.row];return null==u&&(u=t.getFoldWidget(a.row)),"start"==u&&a.row>s.row&&(a.row--,a.column=t.getLine(a.row).length),r.fromPoints(s,a)}},this.closingBracketBlock=function(t,n,e,i,o){var s={row:e,column:i},a=t.$findOpeningBracket(n,s);if(a)return a.column++,s.column--,r.fromPoints(a,s)}}).call(i.prototype)})),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],(function(t,n,e){"use strict";var r=t("./lib/dom");function i(t){this.session=t,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(t){var n;return n=this.lineWidgets&&this.lineWidgets[t]&&this.lineWidgets[t].rowCount||0,this.$useWrapMode&&this.$wrapData[t]?this.$wrapData[t].length+1+n:1+n},this.$getWidgetScreenLength=function(){var t=0;return this.lineWidgets.forEach((function(n){n&&n.rowCount&&!n.hidden&&(t+=n.rowCount)})),t},this.$onChangeEditor=function(t){this.attach(t.editor)},this.attach=function(t){t&&t.widgetManager&&t.widgetManager!=this&&t.widgetManager.detach(),this.editor!=t&&(this.detach(),this.editor=t,t&&(t.widgetManager=this,t.renderer.on("beforeRender",this.measureWidgets),t.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(t){var n=this.editor;if(n){this.editor=null,n.widgetManager=null,n.renderer.off("beforeRender",this.measureWidgets),n.renderer.off("afterRender",this.renderWidgets);var e=this.session.lineWidgets;e&&e.forEach((function(t){t&&t.el&&t.el.parentNode&&(t._inDocument=!1,t.el.parentNode.removeChild(t.el))}))}},this.updateOnFold=function(t,n){var e=n.lineWidgets;if(e&&t.action){for(var r=t.data,i=r.start.row,o=r.end.row,s="add"==t.action,a=i+1;an[e].column&&e++,o.unshift(e,0),n.splice.apply(n,o),this.$updateRows()}}},this.$updateRows=function(){var t=this.session.lineWidgets;if(t){var n=!0;t.forEach((function(t,e){if(t)for(n=!1,t.row=e;t.$oldWidget;)t.$oldWidget.row=e,t=t.$oldWidget})),n&&(this.session.lineWidgets=null)}},this.$registerLineWidget=function(t){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var n=this.session.lineWidgets[t.row];return n&&(t.$oldWidget=n,n.el&&n.el.parentNode&&(n.el.parentNode.removeChild(n.el),n._inDocument=!1)),this.session.lineWidgets[t.row]=t,t},this.addLineWidget=function(t){if(this.$registerLineWidget(t),t.session=this.session,!this.editor)return t;var n=this.editor.renderer;t.html&&!t.el&&(t.el=r.createElement("div"),t.el.innerHTML=t.html),t.el&&(r.addCssClass(t.el,"ace_lineWidgetContainer"),t.el.style.position="absolute",t.el.style.zIndex=5,n.container.appendChild(t.el),t._inDocument=!0,t.coverGutter||(t.el.style.zIndex=3),null==t.pixelHeight&&(t.pixelHeight=t.el.offsetHeight)),null==t.rowCount&&(t.rowCount=t.pixelHeight/n.layerConfig.lineHeight);var e=this.session.getFoldAt(t.row,0);if(t.$fold=e,e){var i=this.session.lineWidgets;t.row!=e.end.row||i[e.start.row]?t.hidden=!0:i[e.start.row]=t}return this.session._emit("changeFold",{data:{start:{row:t.row}}}),this.$updateRows(),this.renderWidgets(null,n),this.onWidgetChanged(t),t},this.removeLineWidget=function(t){if(t._inDocument=!1,t.session=null,t.el&&t.el.parentNode&&t.el.parentNode.removeChild(t.el),t.editor&&t.editor.destroy)try{t.editor.destroy()}catch(t){}if(this.session.lineWidgets){var n=this.session.lineWidgets[t.row];if(n==t)this.session.lineWidgets[t.row]=t.$oldWidget,t.$oldWidget&&this.onWidgetChanged(t.$oldWidget);else for(;n;){if(n.$oldWidget==t){n.$oldWidget=t.$oldWidget;break}n=n.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:t.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(t){for(var n=this.session.lineWidgets,e=n&&n[t],r=[];e;)r.push(e),e=e.$oldWidget;return r},this.onWidgetChanged=function(t){this.session._changedWidgets.push(t),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(t,n){var e=this.session._changedWidgets,r=n.layerConfig;if(e&&e.length){for(var i=1/0,o=0;o0&&!r[i];)i--;this.firstRow=e.firstRow,this.lastRow=e.lastRow,n.$cursorLayer.config=e;for(var s=i;s<=o;s++){var a=r[s];if(a&&a.el)if(a.hidden)a.el.style.top=-100-(a.pixelHeight||0)+"px";else{a._inDocument||(a._inDocument=!0,n.container.appendChild(a.el));var u=n.$cursorLayer.getPixelPosition({row:s,column:0},!0).top;a.coverLine||(u+=e.lineHeight*this.session.getRowLineCount(a.row)),a.el.style.top=u-e.offset+"px";var l=a.coverGutter?0:n.gutterWidth;a.fixedWidth||(l-=n.scrollLeft),a.el.style.left=l+"px",a.fullWidth&&a.screenWidth&&(a.el.style.minWidth=e.width+2*e.padding+"px"),a.fixedWidth?a.el.style.right=n.scrollBar.getWidth()+"px":a.el.style.right=""}}}}}).call(i.prototype),n.LineWidgets=i})),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],(function(t,n,e){"use strict";var r=t("../line_widgets").LineWidgets,i=t("../lib/dom"),o=t("../range").Range;n.showErrorMarker=function(t,n){var e=t.session;e.widgetManager||(e.widgetManager=new r(e),e.widgetManager.attach(t));var s=t.getCursorPosition(),a=s.row,u=e.widgetManager.getWidgetsAtRow(a).filter((function(t){return"errorMarker"==t.type}))[0];u?u.destroy():a-=n;var l,c=function(t,n,e){var r=t.getAnnotations().sort(o.comparePoints);if(r.length){var i=function(t,n,e){for(var r=0,i=t.length-1;r<=i;){var o=r+i>>1,s=e(n,t[o]);if(s>0)r=o+1;else{if(!(s<0))return o;i=o-1}}return-(r+1)}(r,{row:n,column:-1},o.comparePoints);i<0&&(i=-i-1),i>=r.length?i=e>0?0:r.length-1:0===i&&e<0&&(i=r.length-1);var s=r[i];if(s&&e){if(s.row===n){do{s=r[i+=e]}while(s&&s.row===n);if(!s)return r.slice()}var a=[];n=s.row;do{a[e<0?"unshift":"push"](s),s=r[i+=e]}while(s&&s.row==n);return a.length&&a}}}(e,a,n);if(c){var h=c[0];s.column=(h.pos&&"number"!=typeof h.column?h.pos.sc:h.column)||0,s.row=h.row,l=t.renderer.$gutterLayer.$annotations[s.row]}else{if(u)return;l={text:["Looks good!"],className:"ace_ok"}}t.session.unfold(s.row),t.selection.moveToPosition(s);var f={row:s.row,fixedWidth:!0,coverGutter:!0,el:i.createElement("div"),type:"errorMarker"},d=f.el.appendChild(i.createElement("div")),p=f.el.appendChild(i.createElement("div"));p.className="error_widget_arrow "+l.className;var _=t.renderer.$cursorLayer.getPixelPosition(s).left;p.style.left=_+t.renderer.gutterWidth-5+"px",f.el.className="error_widget_wrapper",d.className="error_widget "+l.className,d.innerHTML=l.text.join("
"),d.appendChild(i.createElement("div"));var v=function(t,n,e){if(0===n&&("esc"===e||"return"===e))return f.destroy(),{command:"null"}};f.destroy=function(){t.$mouseHandler.isMousePressed||(t.keyBinding.removeKeyboardHandler(v),e.widgetManager.removeLineWidget(f),t.off("changeSelection",f.destroy),t.off("changeSession",f.destroy),t.off("mouseup",f.destroy),t.off("change",f.destroy))},t.keyBinding.addKeyboardHandler(v),t.on("changeSelection",f.destroy),t.on("changeSession",f.destroy),t.on("mouseup",f.destroy),t.on("change",f.destroy),t.session.widgetManager.addLineWidget(f),f.el.onmousedown=t.focus.bind(t),t.renderer.scrollCursorIntoView(null,.5,{bottom:f.el.offsetHeight})},i.importCssString("\n .error_widget_wrapper {\n background: inherit;\n color: inherit;\n border:none\n }\n .error_widget {\n border-top: solid 2px;\n border-bottom: solid 2px;\n margin: 5px 0;\n padding: 10px 40px;\n white-space: pre-wrap;\n }\n .error_widget.ace_error, .error_widget_arrow.ace_error{\n border-color: #ff5a5a\n }\n .error_widget.ace_warning, .error_widget_arrow.ace_warning{\n border-color: #F1D817\n }\n .error_widget.ace_info, .error_widget_arrow.ace_info{\n border-color: #5a5a5a\n }\n .error_widget.ace_ok, .error_widget_arrow.ace_ok{\n border-color: #5aaa5a\n }\n .error_widget_arrow {\n position: absolute;\n border: solid 5px;\n border-top-color: transparent!important;\n border-right-color: transparent!important;\n border-left-color: transparent!important;\n top: -5px;\n }\n","error_marker.css",!1)})),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],(function(t,n,e){"use strict";t("./loader_build")(n);var r=t("./lib/dom"),i=t("./lib/event"),o=t("./range").Range,s=t("./editor").Editor,a=t("./edit_session").EditSession,u=t("./undomanager").UndoManager,l=t("./virtual_renderer").VirtualRenderer;t("./worker/worker_client"),t("./keyboard/hash_handler"),t("./placeholder"),t("./multi_select"),t("./mode/folding/fold_mode"),t("./theme/textmate"),t("./ext/error_marker"),n.config=t("./config"),n.edit=function(t,e){if("string"==typeof t){var o=t;if(!(t=document.getElementById(o)))throw new Error("ace.edit can't find div #"+o)}if(t&&t.env&&t.env.editor instanceof s)return t.env.editor;var a="";if(t&&/input|textarea/i.test(t.tagName)){var u=t;a=u.value,t=r.createElement("pre"),u.parentNode.replaceChild(t,u)}else t&&(a=t.textContent,t.innerHTML="");var c=n.createEditSession(a),h=new s(new l(t),c,e),f={document:c,editor:h,onResize:h.resize.bind(h,null)};return u&&(f.textarea=u),i.addListener(window,"resize",f.onResize),h.on("destroy",(function(){i.removeListener(window,"resize",f.onResize),f.editor.container.env=null})),h.container.env=h.env=f,h},n.createEditSession=function(t,n){var e=new a(t,n);return e.setUndoManager(new u),e},n.Range=o,n.Editor=s,n.EditSession=a,n.UndoManager=u,n.VirtualRenderer=l,n.version=n.config.version})),ace.require(["ace/ace"],(function(n){for(var e in n&&(n.config.init(!0),n.define=ace.define),window.ace||(window.ace=n),n)n.hasOwnProperty(e)&&(window.ace[e]=n[e]);window.ace.default=window.ace,t&&(t.exports=window.ace)}))},55301:(t,n,e)=>{t=e.nmd(t),ace.define("ace/split",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/editor","ace/virtual_renderer","ace/edit_session"],(function(t,n,e){"use strict";var r=t("./lib/oop"),i=(t("./lib/lang"),t("./lib/event_emitter").EventEmitter),o=t("./editor").Editor,s=t("./virtual_renderer").VirtualRenderer,a=t("./edit_session").EditSession,u=function(t,n,e){this.BELOW=1,this.BESIDE=0,this.$container=t,this.$theme=n,this.$splits=0,this.$editorCSS="",this.$editors=[],this.$orientation=this.BESIDE,this.setSplits(e||1),this.$cEditor=this.$editors[0],this.on("focus",function(t){this.$cEditor=t}.bind(this))};(function(){r.implement(this,i),this.$createEditor=function(){var t=document.createElement("div");t.className=this.$editorCSS,t.style.cssText="position: absolute; top:0px; bottom:0px",this.$container.appendChild(t);var n=new o(new s(t,this.$theme));return n.on("focus",function(){this._emit("focus",n)}.bind(this)),this.$editors.push(n),n.setFontSize(this.$fontSize),n},this.setSplits=function(t){var n;if(t<1)throw"The number of splits have to be > 0!";if(t!=this.$splits){if(t>this.$splits){for(;this.$splitst;)n=this.$editors[this.$splits-1],this.$container.removeChild(n.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(t){return this.$editors[t]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(t){this.$editors.forEach((function(n){n.setTheme(t)}))},this.setKeyboardHandler=function(t){this.$editors.forEach((function(n){n.setKeyboardHandler(t)}))},this.forEach=function(t,n){this.$editors.forEach(t,n)},this.$fontSize="",this.setFontSize=function(t){this.$fontSize=t,this.forEach((function(n){n.setFontSize(t)}))},this.$cloneSession=function(t){var n=new a(t.getDocument(),t.getMode()),e=t.getUndoManager();return n.setUndoManager(e),n.setTabSize(t.getTabSize()),n.setUseSoftTabs(t.getUseSoftTabs()),n.setOverwrite(t.getOverwrite()),n.setBreakpoints(t.getBreakpoints()),n.setUseWrapMode(t.getUseWrapMode()),n.setUseWorker(t.getUseWorker()),n.setWrapLimitRange(t.$wrapLimitRange.min,t.$wrapLimitRange.max),n.$foldData=t.$cloneFoldData(),n},this.setSession=function(t,n){var e;e=null==n?this.$cEditor:this.$editors[n];var r=this.$editors.some((function(n){return n.session===t}));return r&&(t=this.$cloneSession(t)),e.setSession(t),t},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(t){this.$orientation!=t&&(this.$orientation=t,this.resize())},this.resize=function(){var t,n=this.$container.clientWidth,e=this.$container.clientHeight;if(this.$orientation==this.BESIDE)for(var r=n/this.$splits,i=0;i{"use strict";n.Z=function(t,n){if(t&&n){var e=Array.isArray(n)?n:n.split(","),r=t.name||"",i=(t.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return e.some((function(t){var n=t.trim().toLowerCase();return"."===n.charAt(0)?r.toLowerCase().endsWith(n):n.endsWith("/*")?o===n.replace(/\/.*$/,""):i===n}))}return!0}},60287:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>H});const r=Object.freeze({NONE:0,ROTATE:1,TRUCK:2,OFFSET:4,DOLLY:8,ZOOM:16,TOUCH_ROTATE:32,TOUCH_TRUCK:64,TOUCH_OFFSET:128,TOUCH_DOLLY:256,TOUCH_ZOOM:512,TOUCH_DOLLY_TRUCK:1024,TOUCH_DOLLY_OFFSET:2048,TOUCH_ZOOM_TRUCK:4096,TOUCH_ZOOM_OFFSET:8192});function i(t){return t.isPerspectiveCamera}function o(t){return t.isOrthographicCamera}const s=2*Math.PI,a=Math.PI/2,u=1e-5;function l(t,n=u){return Math.abs(t){n.x+=t.clientX,n.y+=t.clientY})),n.x/=t.length,n.y/=t.length}function _(t,n){return!!o(t)&&(console.warn(`${n} is not supported in OrthographicCamera`),!0)}function v(t){return t.invert?t.invert():t.inverse(),t}class m{constructor(){this._listeners={}}addEventListener(t,n){const e=this._listeners;void 0===e[t]&&(e[t]=[]),-1===e[t].indexOf(n)&&e[t].push(n)}removeEventListener(t,n){const e=this._listeners[t];if(void 0!==e){const t=e.indexOf(n);-1!==t&&e.splice(t,1)}}removeAllEventListeners(t){t?Array.isArray(this._listeners[t])&&(this._listeners[t].length=0):this._listeners={}}dispatchEvent(t){const n=this._listeners[t.type];if(void 0!==n){t.target=this;const e=n.slice(0);for(let n=0,r=e.length;n{},this._enabled=!0,this._state=r.NONE,this._viewport=null,this._dollyControlAmount=0,this._hasRested=!0,this._boundaryEnclosesCamera=!1,this._needsUpdate=!0,this._updatedLastTime=!1,this._elementRect=new DOMRect,this._activePointers=[],this._truckInternal=(t,n,e)=>{if(i(this._camera)){const r=E.copy(this._camera.position).sub(this._target),i=this._camera.getEffectiveFOV()*x.MathUtils.DEG2RAD,o=r.length()*Math.tan(.5*i),s=this.truckSpeed*t*o/this._elementRect.height,a=this.truckSpeed*n*o/this._elementRect.height;this.verticalDragToForward?(e?this.setFocalOffset(this._focalOffsetEnd.x+s,this._focalOffsetEnd.y,this._focalOffsetEnd.z,!0):this.truck(s,0,!0),this.forward(-a,!0)):e?this.setFocalOffset(this._focalOffsetEnd.x+s,this._focalOffsetEnd.y+a,this._focalOffsetEnd.z,!0):this.truck(s,a,!0)}else if(o(this._camera)){const r=this._camera,i=t*(r.right-r.left)/r.zoom/this._elementRect.width,o=n*(r.top-r.bottom)/r.zoom/this._elementRect.height;e?this.setFocalOffset(this._focalOffsetEnd.x+i,this._focalOffsetEnd.y+o,this._focalOffsetEnd.z,!0):this.truck(i,o,!0)}},this._rotateInternal=(t,n)=>{const e=s*this.azimuthRotateSpeed*t/this._elementRect.height,r=s*this.polarRotateSpeed*n/this._elementRect.height;this.rotate(e,r,!0)},this._dollyInternal=(t,n,e)=>{const r=Math.pow(.95,-t*this.dollySpeed),i=this._sphericalEnd.radius*r,o=this._sphericalEnd.radius,s=o*(t>=0?-1:1);this.dollyTo(i),this.infinityDolly&&(i{const r=Math.pow(.95,t*this.dollySpeed);this.zoomTo(this._zoom*r),this.dollyToCursor&&(this._dollyControlAmount=this._zoomEnd,this._dollyControlCoord.set(n,e))},void 0===x&&console.error("camera-controls: `THREE` is undefined. You must first run `CameraControls.install( { THREE: THREE } )`. Check the docs for further information."),this._camera=t,this._yAxisUpSpace=(new x.Quaternion).setFromUnitVectors(this._camera.up,S),this._yAxisUpSpaceInverse=v(this._yAxisUpSpace.clone()),this._state=r.NONE,this._domElement=n,this._domElement.style.touchAction="none",this._domElement.style.userSelect="none",this._domElement.style.webkitUserSelect="none",this._target=new x.Vector3,this._targetEnd=this._target.clone(),this._focalOffset=new x.Vector3,this._focalOffsetEnd=this._focalOffset.clone(),this._spherical=(new x.Spherical).setFromVector3(E.copy(this._camera.position).applyQuaternion(this._yAxisUpSpace)),this._sphericalEnd=this._spherical.clone(),this._zoom=this._camera.zoom,this._zoomEnd=this._zoom,this._nearPlaneCorners=[new x.Vector3,new x.Vector3,new x.Vector3,new x.Vector3],this._updateNearPlaneCorners(),this._boundary=new x.Box3(new x.Vector3(-1/0,-1/0,-1/0),new x.Vector3(1/0,1/0,1/0)),this._target0=this._target.clone(),this._position0=this._camera.position.clone(),this._zoom0=this._zoom,this._focalOffset0=this._focalOffset.clone(),this._dollyControlAmount=0,this._dollyControlCoord=new x.Vector2,this.mouseButtons={left:r.ROTATE,middle:r.DOLLY,right:r.TRUCK,wheel:i(this._camera)?r.DOLLY:o(this._camera)?r.ZOOM:r.NONE},this.touches={one:r.TOUCH_ROTATE,two:i(this._camera)?r.TOUCH_DOLLY_TRUCK:o(this._camera)?r.TOUCH_ZOOM_TRUCK:r.NONE,three:r.TOUCH_TRUCK},this._domElement){const t=new x.Vector2,n=new x.Vector2,e=new x.Vector2,i=t=>{if(!this._enabled)return;const n={pointerId:t.pointerId,clientX:t.clientX,clientY:t.clientY,deltaX:0,deltaY:0};this._activePointers.push(n),this._domElement.ownerDocument.removeEventListener("pointermove",a,{passive:!1}),this._domElement.ownerDocument.removeEventListener("pointerup",c),this._domElement.ownerDocument.addEventListener("pointermove",a,{passive:!1}),this._domElement.ownerDocument.addEventListener("pointerup",c),m()},o=t=>{if(!this._enabled)return;const n={pointerId:0,clientX:t.clientX,clientY:t.clientY,deltaX:0,deltaY:0};this._activePointers.push(n),this._domElement.ownerDocument.removeEventListener("mousemove",u),this._domElement.ownerDocument.removeEventListener("mouseup",h),this._domElement.ownerDocument.addEventListener("mousemove",u),this._domElement.ownerDocument.addEventListener("mouseup",h),m()},s=t=>{if(this._enabled){switch(t.preventDefault(),Array.prototype.forEach.call(t.changedTouches,(t=>{const n={pointerId:t.identifier,clientX:t.clientX,clientY:t.clientY,deltaX:0,deltaY:0};this._activePointers.push(n)})),this._activePointers.length){case 1:this._state=this.touches.one;break;case 2:this._state=this.touches.two;break;case 3:this._state=this.touches.three}this._domElement.ownerDocument.removeEventListener("touchmove",l,{passive:!1}),this._domElement.ownerDocument.removeEventListener("touchend",f),this._domElement.ownerDocument.addEventListener("touchmove",l,{passive:!1}),this._domElement.ownerDocument.addEventListener("touchend",f),m()}},a=t=>{t.cancelable&&t.preventDefault();const n=t.pointerId,e=this._findPointerById(n);if(e){if(e.clientX=t.clientX,e.clientY=t.clientY,e.deltaX=t.movementX,e.deltaY=t.movementY,"touch"===t.pointerType)switch(this._activePointers.length){case 1:this._state=this.touches.one;break;case 2:this._state=this.touches.two;break;case 3:this._state=this.touches.three}else this._state=0,1==(1&t.buttons)&&(this._state=this._state|this.mouseButtons.left),3==(3&t.buttons)&&(this._state=this._state|this.mouseButtons.middle),2==(2&t.buttons)&&(this._state=this._state|this.mouseButtons.right);g()}},u=t=>{const n=this._findPointerById(0);n&&(n.clientX=t.clientX,n.clientY=t.clientY,n.deltaX=t.movementX,n.deltaY=t.movementY,this._state=0,1==(1&t.buttons)&&(this._state=this._state|this.mouseButtons.left),3==(3&t.buttons)&&(this._state=this._state|this.mouseButtons.middle),2==(2&t.buttons)&&(this._state=this._state|this.mouseButtons.right),g())},l=t=>{t.cancelable&&t.preventDefault(),Array.prototype.forEach.call(t.changedTouches,(t=>{const n=t.identifier,e=this._findPointerById(n);e&&(e.clientX=t.clientX,e.clientY=t.clientY)})),g()},c=t=>{const n=t.pointerId,e=this._findPointerById(n);if(e&&this._activePointers.splice(this._activePointers.indexOf(e),1),"touch"===t.pointerType)switch(this._activePointers.length){case 0:this._state=r.NONE;break;case 1:this._state=this.touches.one;break;case 2:this._state=this.touches.two;break;case 3:this._state=this.touches.three}else this._state=r.NONE;k()},h=()=>{const t=this._findPointerById(0);t&&this._activePointers.splice(this._activePointers.indexOf(t),1),this._state=r.NONE,k()},f=t=>{switch(Array.prototype.forEach.call(t.changedTouches,(t=>{const n=t.identifier,e=this._findPointerById(n);e&&this._activePointers.splice(this._activePointers.indexOf(e),1)})),this._activePointers.length){case 0:this._state=r.NONE;break;case 1:this._state=this.touches.one;break;case 2:this._state=this.touches.two;break;case 3:this._state=this.touches.three}k()};let d=-1;const _=t=>{if(!this._enabled||this.mouseButtons.wheel===r.NONE)return;if(t.preventDefault(),this.dollyToCursor||this.mouseButtons.wheel===r.ROTATE||this.mouseButtons.wheel===r.TRUCK){const t=performance.now();d-t<1e3&&this._getClientRect(this._elementRect),d=t}const n=y?-1:-3,e=1===t.deltaMode?t.deltaY/n:t.deltaY/(10*n),i=this.dollyToCursor?(t.clientX-this._elementRect.x)/this._elementRect.width*2-1:0,o=this.dollyToCursor?(t.clientY-this._elementRect.y)/this._elementRect.height*-2+1:0;switch(this.mouseButtons.wheel){case r.ROTATE:this._rotateInternal(t.deltaX,t.deltaY);break;case r.TRUCK:this._truckInternal(t.deltaX,t.deltaY,!1);break;case r.OFFSET:this._truckInternal(t.deltaX,t.deltaY,!0);break;case r.DOLLY:this._dollyInternal(-e,i,o);break;case r.ZOOM:this._zoomInternal(-e,i,o)}this.dispatchEvent({type:"control"})},v=t=>{this._enabled&&t.preventDefault()},m=()=>{if(this._enabled){if(p(this._activePointers,$),this._getClientRect(this._elementRect),t.copy($),n.copy($),this._activePointers.length>=2){const t=$.x-this._activePointers[1].clientX,r=$.y-this._activePointers[1].clientY,i=Math.sqrt(t*t+r*r);e.set(0,i);const o=.5*(this._activePointers[0].clientX+this._activePointers[1].clientX),s=.5*(this._activePointers[0].clientY+this._activePointers[1].clientY);n.set(o,s)}this.dispatchEvent({type:"controlstart"})}},g=()=>{if(!this._enabled)return;p(this._activePointers,$);const i=this._domElement&&document.pointerLockElement===this._domElement,o=i?-this._activePointers[0].deltaX:n.x-$.x,s=i?-this._activePointers[0].deltaY:n.y-$.y;if(n.copy($),(this._state&r.ROTATE)!==r.ROTATE&&(this._state&r.TOUCH_ROTATE)!==r.TOUCH_ROTATE||this._rotateInternal(o,s),(this._state&r.DOLLY)===r.DOLLY||(this._state&r.ZOOM)===r.ZOOM){const n=this.dollyToCursor?(t.x-this._elementRect.x)/this._elementRect.width*2-1:0,e=this.dollyToCursor?(t.y-this._elementRect.y)/this._elementRect.height*-2+1:0;this._state===r.DOLLY?this._dollyInternal(s*b,n,e):this._zoomInternal(s*b,n,e)}if((this._state&r.TOUCH_DOLLY)===r.TOUCH_DOLLY||(this._state&r.TOUCH_ZOOM)===r.TOUCH_ZOOM||(this._state&r.TOUCH_DOLLY_TRUCK)===r.TOUCH_DOLLY_TRUCK||(this._state&r.TOUCH_ZOOM_TRUCK)===r.TOUCH_ZOOM_TRUCK||(this._state&r.TOUCH_DOLLY_OFFSET)===r.TOUCH_DOLLY_OFFSET||(this._state&r.TOUCH_ZOOM_OFFSET)===r.TOUCH_ZOOM_OFFSET){const t=$.x-this._activePointers[1].clientX,i=$.y-this._activePointers[1].clientY,o=Math.sqrt(t*t+i*i),s=e.y-o;e.set(0,o);const a=this.dollyToCursor?(n.x-this._elementRect.x)/this._elementRect.width*2-1:0,u=this.dollyToCursor?(n.y-this._elementRect.y)/this._elementRect.height*-2+1:0;this._state===r.TOUCH_DOLLY||this._state===r.TOUCH_DOLLY_TRUCK||this._state===r.TOUCH_DOLLY_OFFSET?this._dollyInternal(s*b,a,u):this._zoomInternal(s*b,a,u)}(this._state&r.TRUCK)!==r.TRUCK&&(this._state&r.TOUCH_TRUCK)!==r.TOUCH_TRUCK&&(this._state&r.TOUCH_DOLLY_TRUCK)!==r.TOUCH_DOLLY_TRUCK&&(this._state&r.TOUCH_ZOOM_TRUCK)!==r.TOUCH_ZOOM_TRUCK||this._truckInternal(o,s,!1),(this._state&r.OFFSET)!==r.OFFSET&&(this._state&r.TOUCH_OFFSET)!==r.TOUCH_OFFSET&&(this._state&r.TOUCH_DOLLY_OFFSET)!==r.TOUCH_DOLLY_OFFSET&&(this._state&r.TOUCH_ZOOM_OFFSET)!==r.TOUCH_ZOOM_OFFSET||this._truckInternal(o,s,!0),this.dispatchEvent({type:"control"})},k=()=>{p(this._activePointers,$),n.copy($),0===this._activePointers.length&&(this._domElement.ownerDocument.removeEventListener("pointermove",a,{passive:!1}),this._domElement.ownerDocument.removeEventListener("pointerup",c),this._domElement.ownerDocument.removeEventListener("touchmove",l,{passive:!1}),this._domElement.ownerDocument.removeEventListener("touchend",f),this.dispatchEvent({type:"controlend"}))};this._domElement.addEventListener("pointerdown",i),w&&this._domElement.addEventListener("mousedown",o),w&&this._domElement.addEventListener("touchstart",s),this._domElement.addEventListener("pointercancel",c),this._domElement.addEventListener("wheel",_,{passive:!1}),this._domElement.addEventListener("contextmenu",v),this._removeAllEventListeners=()=>{this._domElement.removeEventListener("pointerdown",i),this._domElement.removeEventListener("mousedown",o),this._domElement.removeEventListener("touchstart",s),this._domElement.removeEventListener("pointercancel",c),this._domElement.removeEventListener("wheel",_,{passive:!1}),this._domElement.removeEventListener("contextmenu",v),this._domElement.ownerDocument.removeEventListener("pointermove",a,{passive:!1}),this._domElement.ownerDocument.removeEventListener("mousemove",u),this._domElement.ownerDocument.removeEventListener("touchmove",l,{passive:!1}),this._domElement.ownerDocument.removeEventListener("pointerup",c),this._domElement.ownerDocument.removeEventListener("mouseup",h),this._domElement.ownerDocument.removeEventListener("touchend",f)},this.cancel=()=>{this._state!==r.NONE&&(this._state=r.NONE,this._activePointers.length=0,k())}}this.update(0)}static install(t){x=t.THREE,k=Object.freeze(new x.Vector3(0,0,0)),S=Object.freeze(new x.Vector3(0,1,0)),C=Object.freeze(new x.Vector3(0,0,1)),$=new x.Vector2,E=new x.Vector3,M=new x.Vector3,z=new x.Vector3,T=new x.Vector3,j=new x.Vector3,A=new x.Vector3,q=new x.Vector3,P=new x.Vector3,R=new x.Spherical,L=new x.Spherical,O=new x.Box3,I=new x.Box3,D=new x.Sphere,N=new x.Quaternion,B=new x.Quaternion,F=new x.Matrix4,U=new x.Raycaster}static get ACTION(){return r}get camera(){return this._camera}set camera(t){this._camera=t,this.updateCameraUp(),this._camera.updateProjectionMatrix(),this._updateNearPlaneCorners(),this._needsUpdate=!0}get enabled(){return this._enabled}set enabled(t){this._enabled=t,t?(this._domElement.style.touchAction="none",this._domElement.style.userSelect="none",this._domElement.style.webkitUserSelect="none"):(this.cancel(),this._domElement.style.touchAction="",this._domElement.style.userSelect="",this._domElement.style.webkitUserSelect="")}get active(){return!this._hasRested}get currentAction(){return this._state}get distance(){return this._spherical.radius}set distance(t){this._spherical.radius===t&&this._sphericalEnd.radius===t||(this._spherical.radius=t,this._sphericalEnd.radius=t,this._needsUpdate=!0)}get azimuthAngle(){return this._spherical.theta}set azimuthAngle(t){this._spherical.theta===t&&this._sphericalEnd.theta===t||(this._spherical.theta=t,this._sphericalEnd.theta=t,this._needsUpdate=!0)}get polarAngle(){return this._spherical.phi}set polarAngle(t){this._spherical.phi===t&&this._sphericalEnd.phi===t||(this._spherical.phi=t,this._sphericalEnd.phi=t,this._needsUpdate=!0)}get boundaryEnclosesCamera(){return this._boundaryEnclosesCamera}set boundaryEnclosesCamera(t){this._boundaryEnclosesCamera=t,this._needsUpdate=!0}addEventListener(t,n){super.addEventListener(t,n)}removeEventListener(t,n){super.removeEventListener(t,n)}rotate(t,n,e=!1){return this.rotateTo(this._sphericalEnd.theta+t,this._sphericalEnd.phi+n,e)}rotateAzimuthTo(t,n=!1){return this.rotateTo(t,this._sphericalEnd.phi,n)}rotatePolarTo(t,n=!1){return this.rotateTo(this._sphericalEnd.theta,t,n)}rotateTo(t,n,e=!1){const r=x.MathUtils.clamp(t,this.minAzimuthAngle,this.maxAzimuthAngle),i=x.MathUtils.clamp(n,this.minPolarAngle,this.maxPolarAngle);this._sphericalEnd.theta=r,this._sphericalEnd.phi=i,this._sphericalEnd.makeSafe(),this._needsUpdate=!0,e||(this._spherical.theta=this._sphericalEnd.theta,this._spherical.phi=this._sphericalEnd.phi);const o=!e||c(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&&c(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold);return this._createOnRestPromise(o)}dolly(t,n=!1){return this.dollyTo(this._sphericalEnd.radius-t,n)}dollyTo(t,n=!1){const e=this._sphericalEnd.radius,r=x.MathUtils.clamp(t,this.minDistance,this.maxDistance);if(this.colliderMeshes.length>=1){const t=this._collisionTest(),n=c(t,this._spherical.radius);if(!(e>r)&&n)return Promise.resolve();this._sphericalEnd.radius=Math.min(r,t)}else this._sphericalEnd.radius=r;this._needsUpdate=!0,n||(this._spherical.radius=this._sphericalEnd.radius);const i=!n||c(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(i)}zoom(t,n=!1){return this.zoomTo(this._zoomEnd+t,n)}zoomTo(t,n=!1){this._zoomEnd=x.MathUtils.clamp(t,this.minZoom,this.maxZoom),this._needsUpdate=!0,n||(this._zoom=this._zoomEnd);const e=!n||c(this._zoom,this._zoomEnd,this.restThreshold);return this._createOnRestPromise(e)}pan(t,n,e=!1){return console.warn("`pan` has been renamed to `truck`"),this.truck(t,n,e)}truck(t,n,e=!1){this._camera.updateMatrix(),T.setFromMatrixColumn(this._camera.matrix,0),j.setFromMatrixColumn(this._camera.matrix,1),T.multiplyScalar(t),j.multiplyScalar(-n);const r=E.copy(T).add(j),i=M.copy(this._targetEnd).add(r);return this.moveTo(i.x,i.y,i.z,e)}forward(t,n=!1){E.setFromMatrixColumn(this._camera.matrix,0),E.crossVectors(this._camera.up,E),E.multiplyScalar(t);const e=M.copy(this._targetEnd).add(E);return this.moveTo(e.x,e.y,e.z,n)}moveTo(t,n,e,r=!1){const i=E.set(t,n,e).sub(this._targetEnd);this._encloseToBoundary(this._targetEnd,i,this.boundaryFriction),this._needsUpdate=!0,r||this._target.copy(this._targetEnd);const o=!r||c(this._target.x,this._targetEnd.x,this.restThreshold)&&c(this._target.y,this._targetEnd.y,this.restThreshold)&&c(this._target.z,this._targetEnd.z,this.restThreshold);return this._createOnRestPromise(o)}fitToBox(t,n,{paddingLeft:e=0,paddingRight:r=0,paddingBottom:s=0,paddingTop:u=0}={}){const l=[],f=t.isBox3?O.copy(t):O.setFromObject(t);f.isEmpty()&&(console.warn("camera-controls: fitTo() cannot be used with an empty box. Aborting"),Promise.resolve());const d=h(this._sphericalEnd.theta,a),p=h(this._sphericalEnd.phi,a);l.push(this.rotateTo(d,p,n));const _=E.setFromSpherical(this._sphericalEnd).normalize(),v=N.setFromUnitVectors(_,C).multiply(this._yAxisUpSpaceInverse);c(Math.abs(_.y),1)&&v.multiply(B.setFromAxisAngle(S,d));const m=I.makeEmpty();M.copy(f.min).applyQuaternion(v),m.expandByPoint(M),M.copy(f.min).setX(f.max.x).applyQuaternion(v),m.expandByPoint(M),M.copy(f.min).setY(f.max.y).applyQuaternion(v),m.expandByPoint(M),M.copy(f.max).setZ(f.min.z).applyQuaternion(v),m.expandByPoint(M),M.copy(f.min).setZ(f.max.z).applyQuaternion(v),m.expandByPoint(M),M.copy(f.max).setY(f.min.y).applyQuaternion(v),m.expandByPoint(M),M.copy(f.max).setX(f.min.x).applyQuaternion(v),m.expandByPoint(M),M.copy(f.max).applyQuaternion(v),m.expandByPoint(M),m.min.x-=e,m.min.y-=s,m.max.x+=r,m.max.y+=u,v.setFromUnitVectors(C,_).multiply(this._yAxisUpSpace);const g=m.getSize(E),y=m.getCenter(M).applyQuaternion(v);if(i(this._camera)){const t=this.getDistanceToFitBox(g.x,g.y,g.z);l.push(this.moveTo(y.x,y.y,y.z,n)),l.push(this.dollyTo(t,n)),l.push(this.setFocalOffset(0,0,0,n))}else if(o(this._camera)){const t=this._camera,e=t.right-t.left,r=t.top-t.bottom,i=Math.min(e/g.x,r/g.y);l.push(this.moveTo(y.x,y.y,y.z,n)),l.push(this.zoomTo(i,n)),l.push(this.setFocalOffset(0,0,0,n))}return Promise.all(l)}fitToSphere(t,n){const e=[],r=t instanceof x.Sphere?D.copy(t):function(t,n){const e=n,r=e.center;O.makeEmpty(),t.traverseVisible((t=>{t.isMesh&&O.expandByObject(t)})),O.getCenter(r);let i=0;return t.traverseVisible((t=>{if(!t.isMesh)return;const n=t,e=n.geometry.clone();if(e.applyMatrix4(n.matrixWorld),e.isBufferGeometry){const t=e.attributes.position;for(let n=0,e=t.count;ne.pointerId===t&&(n=e,!0))),n}_encloseToBoundary(t,n,e){const r=n.lengthSq();if(0===r)return t;const i=M.copy(n).add(t),o=this._boundary.clampPoint(i,z).sub(i),s=o.lengthSq();if(0===s)return t.add(n);if(s===r)return t;if(0===e)return t.add(n).add(o);{const r=1+e*s/n.dot(o);return t.add(M.copy(n).multiplyScalar(r)).add(o.multiplyScalar(1-e))}}_updateNearPlaneCorners(){if(i(this._camera)){const t=this._camera,n=t.near,e=t.getEffectiveFOV()*x.MathUtils.DEG2RAD,r=Math.tan(.5*e)*n,i=r*t.aspect;this._nearPlaneCorners[0].set(-i,-r,0),this._nearPlaneCorners[1].set(i,-r,0),this._nearPlaneCorners[2].set(i,r,0),this._nearPlaneCorners[3].set(-i,r,0)}else if(o(this._camera)){const t=this._camera,n=1/t.zoom,e=t.left*n,r=t.right*n,i=t.top*n,o=t.bottom*n;this._nearPlaneCorners[0].set(e,i,0),this._nearPlaneCorners[1].set(r,i,0),this._nearPlaneCorners[2].set(r,o,0),this._nearPlaneCorners[3].set(e,o,0)}}_collisionTest(){let t=1/0;if(!(this.colliderMeshes.length>=1))return t;if(_(this._camera,"_collisionTest"))return t;const n=E.setFromSpherical(this._spherical).divideScalar(this._spherical.radius);F.lookAt(k,n,this._camera.up);for(let e=0;e<4;e++){const r=M.copy(this._nearPlaneCorners[e]);r.applyMatrix4(F);const i=z.addVectors(this._target,r);U.set(i,n),U.far=this._spherical.radius+1;const o=U.intersectObjects(this.colliderMeshes);0!==o.length&&o[0].distance{const n=()=>{this.removeEventListener("rest",n),t()};this.addEventListener("rest",n)})))}_removeAllEventListeners(){}}},35681:(t,n)=>{var e;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var t=[],n=0;n{"use strict";function r(t){var n,e,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t))for(n=0;ni,default:()=>o});const o=i},68419:(t,n,e)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);es,camelCaseProperty:()=>h,cssifyDeclaration:()=>p,cssifyObject:()=>_,hyphenateProperty:()=>d,isPrefixedProperty:()=>m,isPrefixedValue:()=>g.Z,isUnitlessProperty:()=>z,normalizeProperty:()=>A,resolveArrayValue:()=>q,unprefixProperty:()=>j,unprefixValue:()=>R});var a=/-([a-z])/g,u=/^Ms/g,l={};function c(t){return t[1].toUpperCase()}function h(t){if(l.hasOwnProperty(t))return l[t];var n=t.replace(a,c).replace(u,"ms");return l[t]=n,n}var f=e(60357);function d(t){return(0,f.default)(t)}function p(t,n){return d(t)+":"+n}function _(t){var n="";for(var e in t){var r=t[e];"string"!=typeof r&&"number"!=typeof r||(n&&(n+=";"),n+=p(e,r))}return n}var v=/^(Webkit|Moz|O|ms)/;function m(t){return v.test(t)}var g=e(81347),y={borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},w=["animationIterationCount","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineClamp","order"],b=["Webkit","ms","Moz","O"];function x(t,n){return t+n.charAt(0).toUpperCase()+n.slice(1)}for(var k=0,S=w.length;k{"use strict";e.d(n,{Z:()=>i});var r=/-webkit-|-moz-|-ms-/;function i(t){return"string"==typeof t&&r.test(t)}},66111:(t,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(t){return(0,i.default)(t)};var r,i=(r=e(60357))&&r.__esModule?r:{default:r}},68052:(t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(t){return"string"==typeof t&&e.test(t)};var e=/-webkit-|-moz-|-ms-/},59194:(t,n,e)=>{"use strict";e.r(n),e.d(n,{FormatSpecifier:()=>bu,active:()=>ti,arc:()=>Ab,area:()=>Ib,areaRadial:()=>Vb,ascending:()=>i,autoType:()=>Ds,axisBottom:()=>ut,axisLeft:()=>lt,axisRight:()=>at,axisTop:()=>st,bisect:()=>l,bisectLeft:()=>u,bisectRight:()=>a,bisector:()=>o,blob:()=>Ma,brush:()=>Ei,brushSelection:()=>Si,brushX:()=>Ci,brushY:()=>$i,buffer:()=>Ta,chord:()=>Ri,clientPoint:()=>qe,cluster:()=>Nd,color:()=>Yn,contourDensity:()=>ss,contours:()=>ts,create:()=>ab,creator:()=>un,cross:()=>f,csv:()=>Ra,csvFormat:()=>$s,csvFormatBody:()=>Es,csvFormatRow:()=>zs,csvFormatRows:()=>Ms,csvFormatValue:()=>Ts,csvParse:()=>Ss,csvParseRows:()=>Cs,cubehelix:()=>Ho,curveBasis:()=>Ex,curveBasisClosed:()=>zx,curveBasisOpen:()=>jx,curveBundle:()=>qx,curveCardinal:()=>Lx,curveCardinalClosed:()=>Ix,curveCardinalOpen:()=>Nx,curveCatmullRom:()=>Ux,curveCatmullRomClosed:()=>Gx,curveCatmullRomOpen:()=>Vx,curveLinear:()=>Pb,curveLinearClosed:()=>Xx,curveMonotoneX:()=>rk,curveMonotoneY:()=>ik,curveNatural:()=>ak,curveStep:()=>lk,curveStepAfter:()=>hk,curveStepBefore:()=>ck,customEvent:()=>yn,descending:()=>d,deviation:()=>v,dispatch:()=>_t,drag:()=>ds,dragDisable:()=>Tn,dragEnable:()=>jn,dsv:()=>Pa,dsvFormat:()=>xs,easeBack:()=>xa,easeBackIn:()=>wa,easeBackInOut:()=>xa,easeBackOut:()=>ba,easeBounce:()=>ma,easeBounceIn:()=>va,easeBounceInOut:()=>ga,easeBounceOut:()=>ma,easeCircle:()=>oa,easeCircleIn:()=>ra,easeCircleInOut:()=>oa,easeCircleOut:()=>ia,easeCubic:()=>Yr,easeCubicIn:()=>Zr,easeCubicInOut:()=>Yr,easeCubicOut:()=>Xr,easeElastic:()=>Ca,easeElasticIn:()=>Sa,easeElasticInOut:()=>$a,easeElasticOut:()=>Ca,easeExp:()=>ea,easeExpIn:()=>ta,easeExpInOut:()=>ea,easeExpOut:()=>na,easeLinear:()=>Bs,easePoly:()=>Vs,easePolyIn:()=>Gs,easePolyInOut:()=>Vs,easePolyOut:()=>Ws,easeQuad:()=>Hs,easeQuadIn:()=>Fs,easeQuadInOut:()=>Hs,easeQuadOut:()=>Us,easeSin:()=>Js,easeSinIn:()=>Ys,easeSinInOut:()=>Js,easeSinOut:()=>Ks,entries:()=>fo,event:()=>pn,extent:()=>m,forceCenter:()=>Ha,forceCollide:()=>ru,forceLink:()=>su,forceManyBody:()=>fu,forceRadial:()=>du,forceSimulation:()=>hu,forceX:()=>pu,forceY:()=>_u,format:()=>$u,formatDefaultLocale:()=>ju,formatLocale:()=>Tu,formatPrefix:()=>Eu,formatSpecifier:()=>wu,geoAlbers:()=>nd,geoAlbersUsa:()=>ed,geoArea:()=>El,geoAzimuthalEqualArea:()=>sd,geoAzimuthalEqualAreaRaw:()=>od,geoAzimuthalEquidistant:()=>ud,geoAzimuthalEquidistantRaw:()=>ad,geoBounds:()=>yc,geoCentroid:()=>jc,geoCircle:()=>Fc,geoClipAntimeridian:()=>th,geoClipCircle:()=>nh,geoClipExtent:()=>oh,geoClipRectangle:()=>ih,geoConicConformal:()=>pd,geoConicConformalRaw:()=>dd,geoConicEqualArea:()=>td,geoConicEqualAreaRaw:()=>Qf,geoConicEquidistant:()=>gd,geoConicEquidistantRaw:()=>md,geoContains:()=>$h,geoDistance:()=>mh,geoEqualEarth:()=>Cd,geoEqualEarthRaw:()=>Sd,geoEquirectangular:()=>vd,geoEquirectangularRaw:()=>_d,geoGnomonic:()=>Ed,geoGnomonicRaw:()=>$d,geoGraticule:()=>zh,geoGraticule10:()=>Th,geoIdentity:()=>Md,geoInterpolate:()=>jh,geoLength:()=>ph,geoMercator:()=>cd,geoMercatorRaw:()=>ld,geoNaturalEarth1:()=>Td,geoNaturalEarth1Raw:()=>zd,geoOrthographic:()=>Ad,geoOrthographicRaw:()=>jd,geoPath:()=>Rf,geoProjection:()=>Yf,geoProjectionMutator:()=>Kf,geoRotation:()=>Dc,geoStereographic:()=>Pd,geoStereographicRaw:()=>qd,geoStream:()=>pl,geoTransform:()=>Lf,geoTransverseMercator:()=>Ld,geoTransverseMercatorRaw:()=>Rd,gray:()=>So,hcl:()=>qo,hierarchy:()=>Fd,histogram:()=>j,hsl:()=>ae,html:()=>Fa,image:()=>Oa,interpolate:()=>je,interpolateArray:()=>ke,interpolateBasis:()=>he,interpolateBasisClosed:()=>fe,interpolateBlues:()=>Pw,interpolateBrBG:()=>Wy,interpolateBuGn:()=>cw,interpolateBuPu:()=>fw,interpolateCividis:()=>Gw,interpolateCool:()=>Zw,interpolateCubehelix:()=>r_,interpolateCubehelixDefault:()=>Ww,interpolateCubehelixLong:()=>i_,interpolateDate:()=>Ce,interpolateDiscrete:()=>Np,interpolateGnBu:()=>pw,interpolateGreens:()=>Lw,interpolateGreys:()=>Iw,interpolateHcl:()=>t_,interpolateHclLong:()=>n_,interpolateHsl:()=>Yp,interpolateHslLong:()=>Kp,interpolateHue:()=>Bp,interpolateInferno:()=>ob,interpolateLab:()=>Jp,interpolateMagma:()=>ib,interpolateNumber:()=>$e,interpolateNumberArray:()=>be,interpolateObject:()=>Ee,interpolateOrRd:()=>vw,interpolateOranges:()=>Hw,interpolatePRGn:()=>Zy,interpolatePiYG:()=>Yy,interpolatePlasma:()=>sb,interpolatePuBu:()=>ww,interpolatePuBuGn:()=>gw,interpolatePuOr:()=>Jy,interpolatePuRd:()=>xw,interpolatePurples:()=>Nw,interpolateRainbow:()=>Yw,interpolateRdBu:()=>tw,interpolateRdGy:()=>ew,interpolateRdPu:()=>Sw,interpolateRdYlBu:()=>iw,interpolateRdYlGn:()=>sw,interpolateReds:()=>Fw,interpolateRgb:()=>me,interpolateRgbBasis:()=>ye,interpolateRgbBasisClosed:()=>we,interpolateRound:()=>Fp,interpolateSinebow:()=>tb,interpolateSpectral:()=>uw,interpolateString:()=>Te,interpolateTransformCss:()=>kr,interpolateTransformSvg:()=>Sr,interpolateTurbo:()=>nb,interpolateViridis:()=>rb,interpolateWarm:()=>Vw,interpolateYlGn:()=>Mw,interpolateYlGnBu:()=>$w,interpolateYlOrBr:()=>Tw,interpolateYlOrRd:()=>Aw,interpolateZoom:()=>Zp,interrupt:()=>pr,interval:()=>Ak,isoFormat:()=>zk,isoParse:()=>jk,json:()=>Da,keys:()=>co,lab:()=>Co,lch:()=>Ao,line:()=>Ob,lineRadial:()=>Wb,linkHorizontal:()=>ex,linkRadial:()=>ix,linkVertical:()=>rx,local:()=>lb,map:()=>to,matcher:()=>wt,max:()=>R,mean:()=>L,median:()=>O,merge:()=>I,min:()=>D,mouse:()=>Re,namespace:()=>Mt,namespaces:()=>Et,nest:()=>no,now:()=>Ve,pack:()=>fp,packEnclose:()=>Zd,packSiblings:()=>ap,pairs:()=>c,partition:()=>gp,path:()=>Hi,permute:()=>N,pie:()=>Bb,piecewise:()=>o_,pointRadial:()=>Zb,polygonArea:()=>a_,polygonCentroid:()=>u_,polygonContains:()=>d_,polygonHull:()=>f_,polygonLength:()=>p_,precisionFixed:()=>Au,precisionPrefix:()=>qu,precisionRound:()=>Pu,quadtree:()=>Ka,quantile:()=>A,quantize:()=>s_,radialArea:()=>Vb,radialLine:()=>Wb,randomBates:()=>w_,randomExponential:()=>b_,randomIrwinHall:()=>y_,randomLogNormal:()=>g_,randomNormal:()=>m_,randomUniform:()=>v_,range:()=>k,rgb:()=>te,ribbon:()=>Yi,scaleBand:()=>z_,scaleDiverging:()=>My,scaleDivergingLog:()=>zy,scaleDivergingPow:()=>jy,scaleDivergingSqrt:()=>Ay,scaleDivergingSymlog:()=>Ty,scaleIdentity:()=>G_,scaleImplicit:()=>E_,scaleLinear:()=>H_,scaleLog:()=>tv,scaleOrdinal:()=>M_,scalePoint:()=>j_,scalePow:()=>lv,scaleQuantile:()=>hv,scaleQuantize:()=>fv,scaleSequential:()=>by,scaleSequentialLog:()=>xy,scaleSequentialPow:()=>Sy,scaleSequentialQuantile:()=>$y,scaleSequentialSqrt:()=>Cy,scaleSequentialSymlog:()=>ky,scaleSqrt:()=>cv,scaleSymlog:()=>iv,scaleThreshold:()=>dv,scaleTime:()=>uy,scaleUtc:()=>gy,scan:()=>B,schemeAccent:()=>Ry,schemeBlues:()=>qw,schemeBrBG:()=>Gy,schemeBuGn:()=>lw,schemeBuPu:()=>hw,schemeCategory10:()=>Py,schemeDark2:()=>Ly,schemeGnBu:()=>dw,schemeGreens:()=>Rw,schemeGreys:()=>Ow,schemeOrRd:()=>_w,schemeOranges:()=>Uw,schemePRGn:()=>Vy,schemePaired:()=>Oy,schemePastel1:()=>Iy,schemePastel2:()=>Dy,schemePiYG:()=>Xy,schemePuBu:()=>yw,schemePuBuGn:()=>mw,schemePuOr:()=>Ky,schemePuRd:()=>bw,schemePurples:()=>Dw,schemeRdBu:()=>Qy,schemeRdGy:()=>nw,schemeRdPu:()=>kw,schemeRdYlBu:()=>rw,schemeRdYlGn:()=>ow,schemeReds:()=>Bw,schemeSet1:()=>Ny,schemeSet2:()=>By,schemeSet3:()=>Fy,schemeSpectral:()=>aw,schemeTableau10:()=>Uy,schemeYlGn:()=>Ew,schemeYlGnBu:()=>Cw,schemeYlOrBr:()=>zw,schemeYlOrRd:()=>jw,select:()=>En,selectAll:()=>hb,selection:()=>$n,selector:()=>mt,selectorAll:()=>yt,set:()=>lo,shuffle:()=>F,stack:()=>_k,stackOffsetDiverging:()=>mk,stackOffsetExpand:()=>vk,stackOffsetNone:()=>fk,stackOffsetSilhouette:()=>gk,stackOffsetWiggle:()=>yk,stackOrderAppearance:()=>wk,stackOrderAscending:()=>xk,stackOrderDescending:()=>Sk,stackOrderInsideOut:()=>Ck,stackOrderNone:()=>dk,stackOrderReverse:()=>$k,stratify:()=>Sp,style:()=>Dt,sum:()=>U,svg:()=>Ua,symbol:()=>kx,symbolCircle:()=>ox,symbolCross:()=>sx,symbolDiamond:()=>lx,symbolSquare:()=>px,symbolStar:()=>dx,symbolTriangle:()=>vx,symbolWye:()=>bx,symbols:()=>xx,text:()=>Aa,thresholdFreedmanDiaconis:()=>q,thresholdScott:()=>P,thresholdSturges:()=>T,tickFormat:()=>F_,tickIncrement:()=>M,tickStep:()=>z,ticks:()=>E,timeDay:()=>Hv,timeDays:()=>Gv,timeFormat:()=>Tm,timeFormatDefaultLocale:()=>Kg,timeFormatLocale:()=>Mm,timeFriday:()=>Pv,timeFridays:()=>Bv,timeHour:()=>Vv,timeHours:()=>Zv,timeInterval:()=>vv,timeMillisecond:()=>em,timeMilliseconds:()=>rm,timeMinute:()=>Yv,timeMinutes:()=>Kv,timeMonday:()=>Tv,timeMondays:()=>Ov,timeMonth:()=>bv,timeMonths:()=>xv,timeParse:()=>jm,timeSaturday:()=>Rv,timeSaturdays:()=>Fv,timeSecond:()=>Qv,timeSeconds:()=>tm,timeSunday:()=>zv,timeSundays:()=>Lv,timeThursday:()=>qv,timeThursdays:()=>Nv,timeTuesday:()=>jv,timeTuesdays:()=>Iv,timeWednesday:()=>Av,timeWednesdays:()=>Dv,timeWeek:()=>zv,timeWeeks:()=>Lv,timeYear:()=>gv,timeYears:()=>yv,timeout:()=>nr,timer:()=>Ye,timerFlush:()=>Ke,touch:()=>Pe,touches:()=>fb,transition:()=>Gr,transpose:()=>H,tree:()=>jp,treemap:()=>Lp,treemapBinary:()=>Op,treemapDice:()=>mp,treemapResquarify:()=>Dp,treemapSlice:()=>Ap,treemapSliceDice:()=>Ip,treemapSquarify:()=>Rp,tsv:()=>La,tsvFormat:()=>Ps,tsvFormatBody:()=>Rs,tsvFormatRow:()=>Os,tsvFormatRows:()=>Ls,tsvFormatValue:()=>Is,tsvParse:()=>As,tsvParseRows:()=>qs,utcDay:()=>wm,utcDays:()=>bm,utcFormat:()=>Am,utcFriday:()=>cm,utcFridays:()=>mm,utcHour:()=>dy,utcHours:()=>py,utcMillisecond:()=>em,utcMilliseconds:()=>rm,utcMinute:()=>vy,utcMinutes:()=>my,utcMonday:()=>sm,utcMondays:()=>dm,utcMonth:()=>cy,utcMonths:()=>hy,utcParse:()=>qm,utcSaturday:()=>hm,utcSaturdays:()=>gm,utcSecond:()=>Qv,utcSeconds:()=>tm,utcSunday:()=>om,utcSundays:()=>fm,utcThursday:()=>lm,utcThursdays:()=>vm,utcTuesday:()=>am,utcTuesdays:()=>pm,utcWednesday:()=>um,utcWednesdays:()=>_m,utcWeek:()=>om,utcWeeks:()=>fm,utcYear:()=>km,utcYears:()=>Sm,values:()=>ho,variance:()=>_,version:()=>r,voronoi:()=>gS,window:()=>Rt,xml:()=>Ba,zip:()=>W,zoom:()=>AS,zoomIdentity:()=>xS,zoomTransform:()=>kS});var r="5.16.0";function i(t,n){return tn?1:t>=n?0:NaN}function o(t){var n;return 1===t.length&&(n=t,t=function(t,e){return i(n(t),e)}),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r>>1;t(n[o],e)<0?r=o+1:i=o}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r>>1;t(n[o],e)>0?i=o:r=o+1}return r}}}var s=o(i),a=s.right,u=s.left;const l=a;function c(t,n){null==n&&(n=h);for(var e=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);et?1:n>=t?0:NaN}function p(t){return null===t?NaN:+t}function _(t,n){var e,r,i=t.length,o=0,s=-1,a=0,u=0;if(null==n)for(;++s1)return u/(o-1)}function v(t,n){var e=_(t,n);return e?Math.sqrt(e):e}function m(t,n){var e,r,i,o=t.length,s=-1;if(null==n){for(;++s=e)for(r=i=e;++se&&(r=e),i=e)for(r=i=e;++se&&(r=e),i0)return[t];if((r=n0)for(t=Math.ceil(t/s),n=Math.floor(n/s),o=new Array(i=Math.ceil(n-t+1));++a=0?(o>=S?10:o>=C?5:o>=$?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=S?10:o>=C?5:o>=$?2:1)}function z(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=S?i*=10:o>=C?i*=5:o>=$&&(i*=2),nh;)f.pop(),--d;var p,_=new Array(d+1);for(i=0;i<=d;++i)(p=_[i]=[]).x0=i>0?f[i-1]:c,p.x1=i=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,o=Math.floor(i),s=+e(t[o],o,t);return s+(+e(t[o+1],o+1,t)-s)*(i-o)}}function q(t,n,e){return t=w.call(t,p).sort(i),Math.ceil((e-n)/(2*(A(t,.75)-A(t,.25))*Math.pow(t.length,-1/3)))}function P(t,n,e){return Math.ceil((e-n)/(3.5*v(t)*Math.pow(t.length,-1/3)))}function R(t,n){var e,r,i=t.length,o=-1;if(null==n){for(;++o=e)for(r=e;++or&&(r=e)}else for(;++o=e)for(r=e;++or&&(r=e);return r}function L(t,n){var e,r=t.length,i=r,o=-1,s=0;if(null==n)for(;++o=0;)for(n=(r=t[i]).length;--n>=0;)e[--s]=r[n];return e}function D(t,n){var e,r,i=t.length,o=-1;if(null==n){for(;++o=e)for(r=e;++oe&&(r=e)}else for(;++o=e)for(r=e;++oe&&(r=e);return r}function N(t,n){for(var e=n.length,r=new Array(e);e--;)r[e]=t[n[e]];return r}function B(t,n){if(e=t.length){var e,r,o=0,s=0,a=t[s];for(null==n&&(n=i);++o=0&&(n=t.slice(e+1),t=t.slice(0,e)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))),s=-1,a=o.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++s0)for(var e,r,i=new Array(e),o=0;on?1:t>=n?0:NaN}var $t="http://www.w3.org/1999/xhtml";const Et={svg:"http://www.w3.org/2000/svg",xhtml:$t,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Mt(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Et.hasOwnProperty(n)?{space:Et[n],local:t}:t}function zt(t){return function(){this.removeAttribute(t)}}function Tt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function jt(t,n){return function(){this.setAttribute(t,n)}}function At(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function qt(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function Pt(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function Rt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Lt(t){return function(){this.style.removeProperty(t)}}function Ot(t,n,e){return function(){this.style.setProperty(t,n,e)}}function It(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function Dt(t,n){return t.style.getPropertyValue(n)||Rt(t).getComputedStyle(t,null).getPropertyValue(n)}function Nt(t){return function(){delete this[t]}}function Bt(t,n){return function(){this[t]=n}}function Ft(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Ut(t){return t.trim().split(/^|\s+/)}function Ht(t){return t.classList||new Gt(t)}function Gt(t){this._node=t,this._names=Ut(t.getAttribute("class")||"")}function Wt(t,n){for(var e=Ht(t),r=-1,i=n.length;++r=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var dn={},pn=null;function _n(t,n,e){return t=vn(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function vn(t,n,e){return function(r){var i=pn;pn=r;try{t.call(this,this.__data__,n,e)}finally{pn=i}}}function mn(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r=b&&(b=w+1);!(y=m[b])&&++b<_;);g._next=y||null}}return(a=new Sn(a,i))._enter=u,a._exit=l,a},enter:function(){return new Sn(this._enter||this._groups.map(bt),this._parents)},exit:function(){return new Sn(this._exit||this._groups.map(bt),this._parents)},join:function(t,n,e){var r=this.enter(),i=this,o=this.exit();return r="function"==typeof t?t(r):r.append(t+""),null!=n&&(i=n(i)),null==e?o.remove():e(o),r&&i?r.merge(i).order():i},merge:function(t){for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),s=new Array(r),a=0;a=0;)(r=i[o])&&(s&&4^r.compareDocumentPosition(s)&&s.parentNode.insertBefore(r,s),s=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=Ct);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o1?this.each((null==n?Lt:"function"==typeof n?It:Ot)(t,n,null==e?"":e)):Dt(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?Nt:"function"==typeof n?Ft:Bt)(t,n)):this.node()[t]},classed:function(t,n){var e=Ut(t+"");if(arguments.length<2){for(var r=Ht(this.node()),i=-1,o=e.length;++i=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}(t+""),s=o.length;if(!(arguments.length<2)){for(a=n?gn:mn,null==e&&(e=!1),r=0;r>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?Jn(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?Jn(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=Bn.exec(t))?new ne(n[1],n[2],n[3],1):(n=Fn.exec(t))?new ne(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Un.exec(t))?Jn(n[1],n[2],n[3],n[4]):(n=Hn.exec(t))?Jn(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Gn.exec(t))?oe(n[1],n[2]/100,n[3]/100,1):(n=Wn.exec(t))?oe(n[1],n[2]/100,n[3]/100,n[4]):Vn.hasOwnProperty(t)?Kn(Vn[t]):"transparent"===t?new ne(NaN,NaN,NaN,0):null}function Kn(t){return new ne(t>>16&255,t>>8&255,255&t,1)}function Jn(t,n,e,r){return r<=0&&(t=n=e=NaN),new ne(t,n,e,r)}function Qn(t){return t instanceof Pn||(t=Yn(t)),t?new ne((t=t.rgb()).r,t.g,t.b,t.opacity):new ne}function te(t,n,e,r){return 1===arguments.length?Qn(t):new ne(t,n,e,null==r?1:r)}function ne(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function ee(){return"#"+ie(this.r)+ie(this.g)+ie(this.b)}function re(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function ie(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function oe(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new ue(t,n,e,r)}function se(t){if(t instanceof ue)return new ue(t.h,t.s,t.l,t.opacity);if(t instanceof Pn||(t=Yn(t)),!t)return new ue;if(t instanceof ue)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),s=NaN,a=o-i,u=(o+i)/2;return a?(s=n===o?(e-r)/a+6*(e0&&u<1?0:s,new ue(s,a,u,t.opacity)}function ae(t,n,e,r){return 1===arguments.length?se(t):new ue(t,n,e,null==r?1:r)}function ue(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function le(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function ce(t,n,e,r,i){var o=t*t,s=o*t;return((1-3*t+3*o-s)*n+(4-6*o+3*s)*e+(1+3*t+3*o-3*s)*r+s*i)/6}function he(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],s=r>0?t[r-1]:2*i-o,a=r180||e<-180?e-360*Math.round(e/360):e):de(isNaN(t)?n:t)}function ve(t,n){var e=n-t;return e?pe(t,e):de(isNaN(t)?n:t)}An(Pn,Yn,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Zn,formatHex:Zn,formatHsl:function(){return se(this).formatHsl()},formatRgb:Xn,toString:Xn}),An(ne,te,qn(Pn,{brighter:function(t){return t=null==t?Ln:Math.pow(Ln,t),new ne(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Rn:Math.pow(Rn,t),new ne(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ee,formatHex:ee,formatRgb:re,toString:re})),An(ue,ae,qn(Pn,{brighter:function(t){return t=null==t?Ln:Math.pow(Ln,t),new ue(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Rn:Math.pow(Rn,t),new ue(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new ne(le(t>=240?t-240:t+120,i,r),le(t,i,r),le(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const me=function t(n){var e=function(t){return 1==(t=+t)?ve:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):de(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=te(t)).r,(n=te(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),s=ve(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=s(n),t+""}}return r.gamma=t,r}(1);function ge(t){return function(n){var e,r,i=n.length,o=new Array(i),s=new Array(i),a=new Array(i);for(e=0;eo&&(i=n.slice(o,i),a[s]?a[s]+=i:a[++s]=i),(e=e[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,u.push({i:s,x:$e(e,r)})),o=ze.lastIndex;return o=0&&n._call.call(null,t),n=n._next;--Ie}function Je(){Ue=(Fe=Ge.now())+He,Ie=De=0;try{Ke()}finally{Ie=0,function(){for(var t,n,e=Le,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Le=n);Oe=t,tr(r)}(),Ue=0}}function Qe(){var t=Ge.now(),n=t-Fe;n>Be&&(He-=n,Fe=t)}function tr(t){Ie||(De&&(De=clearTimeout(De)),t-Ue>24?(t<1/0&&(De=setTimeout(Je,t-Ge.now()-He)),Ne&&(Ne=clearInterval(Ne))):(Ne||(Fe=Ge.now(),Ne=setInterval(Qe,Be)),Ie=1,We(Je)))}function nr(t,n,e){var r=new Xe;return n=null==n?0:+n,r.restart((function(e){r.stop(),t(e+n)}),n,e),r}Xe.prototype=Ye.prototype={constructor:Xe,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Ve():+e)+(null==n?0:+n),this._next||Oe===this||(Oe?Oe._next=this:Le=this,Oe=this),this._call=t,this._time=e,tr()},stop:function(){this._call&&(this._call=null,this._time=1/0,tr())}};var er=_t("start","end","cancel","interrupt"),rr=[],ir=0,or=1,sr=2,ar=3,ur=5,lr=6;function cr(t,n,e,r,i,o){var s=t.__transition;if(s){if(e in s)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function o(u){var l,c,h,f;if(e.state!==or)return a();for(l in i)if((f=i[l]).name===e.name){if(f.state===ar)return nr(o);4===f.state?(f.state=lr,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[l]):+lir)throw new Error("too late; already scheduled");return e}function fr(t,n){var e=dr(t,n);if(e.state>ar)throw new Error("too late; already running");return e}function dr(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function pr(t,n){var e,r,i,o=t.__transition,s=!0;if(o){for(i in n=null==n?null:n+"",o)(e=o[i]).name===n?(r=e.state>sr&&e.state180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:$e(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,s.rotate,a,u),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:$e(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,s.skewX,a,u),function(t,n,e,r,o,s){if(t!==e||n!==r){var a=o.push(i(o)+"scale(",null,",",null,")");s.push({i:a-4,x:$e(t,e)},{i:a-2,x:$e(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,a,u),o=s=null,function(t){for(var n,e=-1,r=u.length;++e=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?hr:fr;return function(){var s=o(this,t),a=s.on;a!==r&&(i=(r=a).copy()).on(n,e),s.on=i}}(e,t,n))},attr:function(t,n){var e=Mt(t),r="transform"===e?Sr:Mr;return this.attrTween(t,"function"==typeof n?(e.local?Pr:qr)(e,r,Er(this,"attr."+t,n)):null==n?(e.local?Tr:zr)(e):(e.local?Ar:jr)(e,r,n))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=Mt(t);return this.tween(e,(r.local?Rr:Lr)(r,n))},style:function(t,n,e){var r="transform"==(t+="")?kr:Mr;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var o=Dt(this,t),s=(this.style.removeProperty(t),Dt(this,t));return o===s?null:o===e&&s===r?i:i=n(e=o,r=s)}}(t,r)).on("end.style."+t,Fr(t)):"function"==typeof n?this.styleTween(t,function(t,n,e){var r,i,o;return function(){var s=Dt(this,t),a=e(this),u=a+"";return null==a&&(this.style.removeProperty(t),u=a=Dt(this,t)),s===u?null:s===r&&u===i?o:(i=u,o=n(r=s,a))}}(t,r,Er(this,"style."+t,n))).each(function(t,n){var e,r,i,o,s="style."+n,a="end."+s;return function(){var u=fr(this,t),l=u.on,c=null==u.value[s]?o||(o=Fr(n)):void 0;l===e&&i===c||(r=(e=l).copy()).on(a,i=c),u.on=r}}(this._id,t)):this.styleTween(t,function(t,n,e){var r,i,o=e+"";return function(){var s=Dt(this,t);return s===o?null:s===r?i:i=n(r=s,e)}}(t,r,n),e).on("end.style."+t,null)},styleTween:function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,function(t,n,e){var r,i;function o(){var o=n.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}(t,o,e)),r}return o._value=n,o}(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(Er(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,function(t){var n,e;function r(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&function(t){return function(n){this.textContent=t.call(this,n)}}(r)),n}return r._value=t,r}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=dr(this.node(),e).tween,o=0,s=i.length;oor&&e.name===n)return new Hr([[t]],Qr,n,+r);return null}function ni(t){return function(){return t}}function ei(t,n,e){this.target=t,this.type=n,this.selection=e}function ri(){pn.stopImmediatePropagation()}function ii(){pn.preventDefault(),pn.stopImmediatePropagation()}var oi={name:"drag"},si={name:"space"},ai={name:"handle"},ui={name:"center"};function li(t){return[+t[0],+t[1]]}function ci(t){return[li(t[0]),li(t[1])]}var hi={name:"x",handles:["w","e"].map(yi),input:function(t,n){return null==t?null:[[+t[0],n[0][1]],[+t[1],n[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},fi={name:"y",handles:["n","s"].map(yi),input:function(t,n){return null==t?null:[[n[0][0],+t[0]],[n[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},di={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(yi),input:function(t){return null==t?null:ci(t)},output:function(t){return t}},pi={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},_i={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},vi={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},mi={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},gi={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function yi(t){return{type:t}}function wi(){return!pn.ctrlKey&&!pn.button}function bi(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function xi(){return navigator.maxTouchPoints||"ontouchstart"in this}function ki(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Si(t){var n=t.__brush;return n?n.dim.output(n.selection):null}function Ci(){return Mi(hi)}function $i(){return Mi(fi)}function Ei(){return Mi(di)}function Mi(t){var n,e=bi,r=wi,i=xi,o=!0,s=_t("start","brush","end"),a=6;function u(n){var e=n.property("__brush",_).selectAll(".overlay").data([yi("overlay")]);e.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",pi.overlay).merge(e).each((function(){var t=ki(this).extent;En(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),n.selectAll(".selection").data([yi("selection")]).enter().append("rect").attr("class","selection").attr("cursor",pi.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=n.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return pi[t.type]})),n.each(l).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",f).filter(i).on("touchstart.brush",f).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function l(){var t=En(this),n=ki(this).selection;n?(t.selectAll(".selection").style("display",null).attr("x",n[0][0]).attr("y",n[0][1]).attr("width",n[1][0]-n[0][0]).attr("height",n[1][1]-n[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?n[1][0]-a/2:n[0][0]-a/2})).attr("y",(function(t){return"s"===t.type[0]?n[1][1]-a/2:n[0][1]-a/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?n[1][0]-n[0][0]+a:a})).attr("height",(function(t){return"e"===t.type||"w"===t.type?n[1][1]-n[0][1]+a:a}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(t,n,e){var r=t.__brush.emitter;return!r||e&&r.clean?new h(t,n,e):r}function h(t,n,e){this.that=t,this.args=n,this.state=t.__brush,this.active=0,this.clean=e}function f(){if((!n||pn.touches)&&r.apply(this,arguments)){var e,i,s,a,u,h,f,d,p,_,v,m,g=this,y=pn.target.__data__.type,w="selection"===(o&&pn.metaKey?y="overlay":y)?oi:o&&pn.altKey?ui:ai,b=t===fi?null:mi[y],x=t===hi?null:gi[y],k=ki(g),S=k.extent,C=k.selection,$=S[0][0],E=S[0][1],M=S[1][0],z=S[1][1],T=0,j=0,A=b&&x&&o&&pn.shiftKey,q=pn.touches?(m=pn.changedTouches[0].identifier,function(t){return Pe(t,pn.touches,m)}):Re,P=q(g),R=P,L=c(g,arguments,!0).beforestart();"overlay"===y?(C&&(p=!0),k.selection=C=[[e=t===fi?$:P[0],s=t===hi?E:P[1]],[u=t===fi?M:e,f=t===hi?z:s]]):(e=C[0][0],s=C[0][1],u=C[1][0],f=C[1][1]),i=e,a=s,h=u,d=f;var O=En(g).attr("pointer-events","none"),I=O.selectAll(".overlay").attr("cursor",pi[y]);if(pn.touches)L.moved=N,L.ended=F;else{var D=En(pn.view).on("mousemove.brush",N,!0).on("mouseup.brush",F,!0);o&&D.on("keydown.brush",(function(){switch(pn.keyCode){case 16:A=b&&x;break;case 18:w===ai&&(b&&(u=h-T*b,e=i+T*b),x&&(f=d-j*x,s=a+j*x),w=ui,B());break;case 32:w!==ai&&w!==ui||(b<0?u=h-T:b>0&&(e=i-T),x<0?f=d-j:x>0&&(s=a-j),w=si,I.attr("cursor",pi.selection),B());break;default:return}ii()}),!0).on("keyup.brush",(function(){switch(pn.keyCode){case 16:A&&(_=v=A=!1,B());break;case 18:w===ui&&(b<0?u=h:b>0&&(e=i),x<0?f=d:x>0&&(s=a),w=ai,B());break;case 32:w===si&&(pn.altKey?(b&&(u=h-T*b,e=i+T*b),x&&(f=d-j*x,s=a+j*x),w=ui):(b<0?u=h:b>0&&(e=i),x<0?f=d:x>0&&(s=a),w=ai),I.attr("cursor",pi[y]),B());break;default:return}ii()}),!0),Tn(pn.view)}ri(),pr(g),l.call(g),L.start()}function N(){var t=q(g);!A||_||v||(Math.abs(t[0]-R[0])>Math.abs(t[1]-R[1])?v=!0:_=!0),R=t,p=!0,ii(),B()}function B(){var t;switch(T=R[0]-P[0],j=R[1]-P[1],w){case si:case oi:b&&(T=Math.max($-e,Math.min(M-u,T)),i=e+T,h=u+T),x&&(j=Math.max(E-s,Math.min(z-f,j)),a=s+j,d=f+j);break;case ai:b<0?(T=Math.max($-e,Math.min(M-e,T)),i=e+T,h=u):b>0&&(T=Math.max($-u,Math.min(M-u,T)),i=e,h=u+T),x<0?(j=Math.max(E-s,Math.min(z-s,j)),a=s+j,d=f):x>0&&(j=Math.max(E-f,Math.min(z-f,j)),a=s,d=f+j);break;case ui:b&&(i=Math.max($,Math.min(M,e-T*b)),h=Math.max($,Math.min(M,u+T*b))),x&&(a=Math.max(E,Math.min(z,s-j*x)),d=Math.max(E,Math.min(z,f+j*x)))}hNi)if(Math.abs(c*a-u*l)>Ni&&i){var f=e-o,d=r-s,p=a*a+u*u,_=f*f+d*d,v=Math.sqrt(p),m=Math.sqrt(h),g=i*Math.tan((Ii-Math.acos((p+h-_)/(2*v*m)))/2),y=g/m,w=g/v;Math.abs(y-1)>Ni&&(this._+="L"+(t+y*l)+","+(n+y*c)),this._+="A"+i+","+i+",0,0,"+ +(c*f>l*d)+","+(this._x1=t+w*a)+","+(this._y1=n+w*u)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,r,i,o){t=+t,n=+n,o=!!o;var s=(e=+e)*Math.cos(r),a=e*Math.sin(r),u=t+s,l=n+a,c=1^o,h=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+u+","+l:(Math.abs(this._x1-u)>Ni||Math.abs(this._y1-l)>Ni)&&(this._+="L"+u+","+l),e&&(h<0&&(h=h%Di+Di),h>Bi?this._+="A"+e+","+e+",0,1,"+c+","+(t-s)+","+(n-a)+"A"+e+","+e+",0,1,"+c+","+(this._x1=u)+","+(this._y1=l):h>Ni&&(this._+="A"+e+","+e+",0,"+ +(h>=Ii)+","+c+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};const Hi=Ui;function Gi(t){return t.source}function Wi(t){return t.target}function Vi(t){return t.radius}function Zi(t){return t.startAngle}function Xi(t){return t.endAngle}function Yi(){var t=Gi,n=Wi,e=Vi,r=Zi,i=Xi,o=null;function s(){var s,a=Li.call(arguments),u=t.apply(this,a),l=n.apply(this,a),c=+e.apply(this,(a[0]=u,a)),h=r.apply(this,a)-Ai,f=i.apply(this,a)-Ai,d=c*zi(h),p=c*Ti(h),_=+e.apply(this,(a[0]=l,a)),v=r.apply(this,a)-Ai,m=i.apply(this,a)-Ai;if(o||(o=s=Hi()),o.moveTo(d,p),o.arc(0,0,c,h,f),h===v&&f===m||(o.quadraticCurveTo(0,0,_*zi(v),_*Ti(v)),o.arc(0,0,_,v,m)),o.quadraticCurveTo(0,0,d,p),o.closePath(),s)return o=null,s+""||null}return s.radius=function(t){return arguments.length?(e="function"==typeof t?t:Oi(+t),s):e},s.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Oi(+t),s):r},s.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:Oi(+t),s):i},s.source=function(n){return arguments.length?(t=n,s):t},s.target=function(t){return arguments.length?(n=t,s):n},s.context=function(t){return arguments.length?(o=null==t?null:t,s):o},s}var Ki="$";function Ji(){}function Qi(t,n){var e=new Ji;if(t instanceof Ji)t.each((function(t,n){e.set(n,t)}));else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==n)for(;++i=r.length)return null!=t&&e.sort(t),null!=n?n(e):e;for(var u,l,c,h=-1,f=e.length,d=r[i++],p=to(),_=s();++hr.length)return t;var o,a=i[e-1];return null!=n&&e>=r.length?o=t.entries():(o=[],t.each((function(t,n){o.push({key:n,values:s(t,e)})}))),null!=a?o.sort((function(t,n){return a(t.key,n.key)})):o}return e={object:function(t){return o(t,0,eo,ro)},map:function(t){return o(t,0,io,oo)},entries:function(t){return s(o(t,0,io,oo),0)},key:function(t){return r.push(t),e},sortKeys:function(t){return i[r.length-1]=t,e},sortValues:function(n){return t=n,e},rollup:function(t){return n=t,e}}}function eo(){return{}}function ro(t,n,e){t[n]=e}function io(){return to()}function oo(t,n,e){t.set(n,e)}function so(){}var ao=to.prototype;function uo(t,n){var e=new so;if(t instanceof so)t.each((function(t){e.add(t)}));else if(t){var r=-1,i=t.length;if(null==n)for(;++rxo?Math.pow(t,1/3):t/bo+yo}function Mo(t){return t>wo?t*t*t:bo*(t-yo)}function zo(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function To(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function jo(t){if(t instanceof Po)return new Po(t.h,t.c,t.l,t.opacity);if(t instanceof $o||(t=ko(t)),0===t.a&&0===t.b)return new Po(NaN,0r!=d>r&&e<(f-l)*(r-c)/(d-c)+l&&(i=-i)}return i}function Ko(t,n,e){var r,i,o,s;return function(t,n,e){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])}(t,n,e)&&(i=t[r=+(t[0]===n[0])],o=e[r],s=n[r],i<=o&&o<=s||s<=o&&o<=i)}function Jo(){}var Qo=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function ts(){var t=1,n=1,e=T,r=a;function i(t){var n=e(t);if(Array.isArray(n))n=n.slice().sort(Vo);else{var r=m(t),i=r[0],s=r[1];n=z(i,s,n),n=k(Math.floor(i/n)*n,Math.floor(s/n)*n,n)}return n.map((function(n){return o(t,n)}))}function o(e,i){var o=[],a=[];return function(e,r,i){var o,a,u,l,c,h,f=new Array,d=new Array;for(o=a=-1,l=e[0]>=r,Qo[l<<1].forEach(p);++o=r,Qo[u|l<<1].forEach(p);for(Qo[l<<0].forEach(p);++a=r,c=e[a*t]>=r,Qo[l<<1|c<<2].forEach(p);++o=r,h=c,c=e[a*t+o+1]>=r,Qo[u|l<<1|c<<2|h<<3].forEach(p);Qo[l|c<<3].forEach(p)}for(o=-1,c=e[a*t]>=r,Qo[c<<2].forEach(p);++o=r,Qo[c<<2|h<<3].forEach(p);function p(t){var n,e,r=[t[0][0]+o,t[0][1]+a],u=[t[1][0]+o,t[1][1]+a],l=s(r),c=s(u);(n=d[l])?(e=f[c])?(delete d[n.end],delete f[e.start],n===e?(n.ring.push(u),i(n.ring)):f[n.start]=d[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete d[n.end],n.ring.push(u),d[n.end=c]=n):(n=f[c])?(e=d[l])?(delete f[n.start],delete d[e.end],n===e?(n.ring.push(u),i(n.ring)):f[e.start]=d[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete f[n.start],n.ring.unshift(r),f[n.start=l]=n):f[l]=d[c]={start:l,end:c,ring:[r,u]}}Qo[c<<3].forEach(p)}(e,i,(function(t){r(t,e,i),function(t){for(var n=0,e=t.length,r=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];++n0?o.push([t]):a.push(t)})),a.forEach((function(t){for(var n,e=0,r=o.length;e0&&s0&&a0&&o>0))throw new Error("invalid size");return t=r,n=o,i},i.thresholds=function(t){return arguments.length?(e="function"==typeof t?t:Array.isArray(t)?Zo(Wo.call(t)):Zo(t),i):e},i.smooth=function(t){return arguments.length?(r=t?a:Jo,i):r===a},i}function ns(t,n,e){for(var r=t.width,i=t.height,o=1+(e<<1),s=0;s=e&&(a>=o&&(u-=t.data[a-o+s*r]),n.data[a-e+s*r]=u/Math.min(a+1,r-1+o-a,o))}function es(t,n,e){for(var r=t.width,i=t.height,o=1+(e<<1),s=0;s=e&&(a>=o&&(u-=t.data[s+(a-o)*r]),n.data[s+(a-e)*r]=u/Math.min(a+1,i-1+o-a,o))}function rs(t){return t[0]}function is(t){return t[1]}function os(){return 1}function ss(){var t=rs,n=is,e=os,r=960,i=500,o=20,s=2,a=3*o,u=r+2*a>>s,l=i+2*a>>s,c=Zo(20);function h(r){var i=new Float32Array(u*l),h=new Float32Array(u*l);r.forEach((function(r,o,c){var h=+t(r,o,c)+a>>s,f=+n(r,o,c)+a>>s,d=+e(r,o,c);h>=0&&h=0&&f>s),es({width:u,height:l,data:h},{width:u,height:l,data:i},o>>s),ns({width:u,height:l,data:i},{width:u,height:l,data:h},o>>s),es({width:u,height:l,data:h},{width:u,height:l,data:i},o>>s),ns({width:u,height:l,data:i},{width:u,height:l,data:h},o>>s),es({width:u,height:l,data:h},{width:u,height:l,data:i},o>>s);var d=c(i);if(!Array.isArray(d)){var p=R(i);d=z(0,p,d),(d=k(0,Math.floor(p/d)*d,d)).shift()}return ts().thresholds(d).size([u,l])(i).map(f)}function f(t){return t.value*=Math.pow(2,-2*s),t.coordinates.forEach(d),t}function d(t){t.forEach(p)}function p(t){t.forEach(_)}function _(t){t[0]=t[0]*Math.pow(2,s)-a,t[1]=t[1]*Math.pow(2,s)-a}function v(){return u=r+2*(a=3*o)>>s,l=i+2*a>>s,h}return h.x=function(n){return arguments.length?(t="function"==typeof n?n:Zo(+n),h):t},h.y=function(t){return arguments.length?(n="function"==typeof t?t:Zo(+t),h):n},h.weight=function(t){return arguments.length?(e="function"==typeof t?t:Zo(+t),h):e},h.size=function(t){if(!arguments.length)return[r,i];var n=Math.ceil(t[0]),e=Math.ceil(t[1]);if(!(n>=0||n>=0))throw new Error("invalid size");return r=n,i=e,v()},h.cellSize=function(t){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return s=Math.floor(Math.log(t)/Math.LN2),v()},h.thresholds=function(t){return arguments.length?(c="function"==typeof t?t:Array.isArray(t)?Zo(Wo.call(t)):Zo(t),h):c},h.bandwidth=function(t){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return o=Math.round((Math.sqrt(4*t*t+1)-1)/2),v()},h}function as(t){return function(){return t}}function us(t,n,e,r,i,o,s,a,u,l){this.target=t,this.type=n,this.subject=e,this.identifier=r,this.active=i,this.x=o,this.y=s,this.dx=a,this.dy=u,this._=l}function ls(){return!pn.ctrlKey&&!pn.button}function cs(){return this.parentNode}function hs(t){return null==t?{x:pn.x,y:pn.y}:t}function fs(){return navigator.maxTouchPoints||"ontouchstart"in this}function ds(){var t,n,e,r,i=ls,o=cs,s=hs,a=fs,u={},l=_t("start","drag","end"),c=0,h=0;function f(t){t.on("mousedown.drag",d).filter(a).on("touchstart.drag",v).on("touchmove.drag",m).on("touchend.drag touchcancel.drag",g).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(){if(!r&&i.apply(this,arguments)){var s=y("mouse",o.apply(this,arguments),Re,this,arguments);s&&(En(pn.view).on("mousemove.drag",p,!0).on("mouseup.drag",_,!0),Tn(pn.view),Mn(),e=!1,t=pn.clientX,n=pn.clientY,s("start"))}}function p(){if(zn(),!e){var r=pn.clientX-t,i=pn.clientY-n;e=r*r+i*i>h}u.mouse("drag")}function _(){En(pn.view).on("mousemove.drag mouseup.drag",null),jn(pn.view,e),zn(),u.mouse("end")}function v(){if(i.apply(this,arguments)){var t,n,e=pn.changedTouches,r=o.apply(this,arguments),s=e.length;for(t=0;t=o?u=!0:(r=t.charCodeAt(s++))===ms?l=!0:r===gs&&(l=!0,t.charCodeAt(s)===ms&&++s),t.slice(i+1,n-1).replace(/""/g,'"')}for(;s9999?"+"+bs(t,6):bs(t,4)}(t.getUTCFullYear())+"-"+bs(t.getUTCMonth()+1,2)+"-"+bs(t.getUTCDate(),2)+(i?"T"+bs(n,2)+":"+bs(e,2)+":"+bs(r,2)+"."+bs(i,3)+"Z":r?"T"+bs(n,2)+":"+bs(e,2)+":"+bs(r,2)+"Z":e||n?"T"+bs(n,2)+":"+bs(e,2)+"Z":"")}(t):n.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,n){var e,i,o=r(t,(function(t,r){if(e)return e(t,r-1);i=t,e=n?function(t,n){var e=ys(t);return function(r,i){return n(e(r),i,t)}}(t,n):ys(t)}));return o.columns=i||[],o},parseRows:r,format:function(n,e){return null==e&&(e=ws(n)),[e.map(s).join(t)].concat(i(n,e)).join("\n")},formatBody:function(t,n){return null==n&&(n=ws(t)),i(t,n).join("\n")},formatRows:function(t){return t.map(o).join("\n")},formatRow:o,formatValue:s}}var ks=xs(","),Ss=ks.parse,Cs=ks.parseRows,$s=ks.format,Es=ks.formatBody,Ms=ks.formatRows,zs=ks.formatRow,Ts=ks.formatValue,js=xs("\t"),As=js.parse,qs=js.parseRows,Ps=js.format,Rs=js.formatBody,Ls=js.formatRows,Os=js.formatRow,Is=js.formatValue;function Ds(t){for(var n in t){var e,r,i=t[n].trim();if(i)if("true"===i)i=!0;else if("false"===i)i=!1;else if("NaN"===i)i=NaN;else if(isNaN(e=+i)){if(!(r=i.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;Ns&&r[4]&&!r[7]&&(i=i.replace(/-/g,"/").replace(/T/," ")),i=new Date(i)}else i=e;else i=null;t[n]=i}return t}var Ns=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function Bs(t){return+t}function Fs(t){return t*t}function Us(t){return t*(2-t)}function Hs(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}var Gs=function t(n){function e(t){return Math.pow(t,n)}return n=+n,e.exponent=t,e}(3),Ws=function t(n){function e(t){return 1-Math.pow(1-t,n)}return n=+n,e.exponent=t,e}(3),Vs=function t(n){function e(t){return((t*=2)<=1?Math.pow(t,n):2-Math.pow(2-t,n))/2}return n=+n,e.exponent=t,e}(3),Zs=Math.PI,Xs=Zs/2;function Ys(t){return 1==+t?1:1-Math.cos(t*Xs)}function Ks(t){return Math.sin(t*Xs)}function Js(t){return(1-Math.cos(Zs*t))/2}function Qs(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function ta(t){return Qs(1-+t)}function na(t){return 1-Qs(t)}function ea(t){return((t*=2)<=1?Qs(1-t):2-Qs(t-1))/2}function ra(t){return 1-Math.sqrt(1-t*t)}function ia(t){return Math.sqrt(1- --t*t)}function oa(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var sa=4/11,aa=6/11,ua=8/11,la=3/4,ca=9/11,ha=10/11,fa=15/16,da=21/22,pa=63/64,_a=1/sa/sa;function va(t){return 1-ma(1-t)}function ma(t){return(t=+t)=(o=(_+m)/2))?_=o:m=o,(c=e>=(s=(v+g)/2))?v=s:g=s,i=d,!(d=d[h=c<<1|l]))return i[h]=p,t;if(a=+t._x.call(null,d.data),u=+t._y.call(null,d.data),n===a&&e===u)return p.next=d,i?i[h]=p:t._root=p,t;do{i=i?i[h]=new Array(4):t._root=new Array(4),(l=n>=(o=(_+m)/2))?_=o:m=o,(c=e>=(s=(v+g)/2))?v=s:g=s}while((h=c<<1|l)==(f=(u>=s)<<1|a>=o));return i[f]=d,i[h]=p,t}function Za(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i}function Xa(t){return t[0]}function Ya(t){return t[1]}function Ka(t,n,e){var r=new Ja(null==n?Xa:n,null==e?Ya:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Ja(t,n,e,r,i,o){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function Qa(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var tu=Ka.prototype=Ja.prototype;function nu(t){return t.x+t.vx}function eu(t){return t.y+t.vy}function ru(t){var n,e,r=1,i=1;function o(){for(var t,o,a,u,l,c,h,f=n.length,d=0;du+d||il+d||oa.index){var p=u-s.x-s.vx,_=l-s.y-s.vy,v=p*p+_*_;vt.r&&(t.r=t[n].r)}function a(){if(n){var r,i,o=n.length;for(e=new Array(o),r=0;rc&&(c=r),ih&&(h=i));if(u>c||l>h)return this;for(this.cover(u,l).cover(c,h),e=0;et||t>=i||r>n||n>=o;)switch(a=(nf||(o=u.y0)>d||(s=u.x1)=m)<<1|t>=v)&&(u=p[p.length-1],p[p.length-1]=p[p.length-1-l],p[p.length-1-l]=u)}else{var g=t-+this._x.call(null,_.data),y=n-+this._y.call(null,_.data),w=g*g+y*y;if(w=(a=(p+v)/2))?p=a:v=a,(c=s>=(u=(_+m)/2))?_=u:m=u,n=d,!(d=d[h=c<<1|l]))return this;if(!d.length)break;(n[h+1&3]||n[h+2&3]||n[h+3&3])&&(e=n,f=h)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):n?(i?n[h]=i:delete n[h],(d=n[0]||n[1]||n[2]||n[3])&&d===(n[3]||n[2]||n[1]||n[0])&&!d.length&&(e?e[f]=d:this._root=d),this):(this._root=i,this)},tu.removeAll=function(t){for(var n=0,e=t.length;n1?(null==e?a.remove(t):a.set(t,d(e)),n):a.get(t)},find:function(n,e,r){var i,o,s,a,u,l=0,c=t.length;for(null==r?r=1/0:r*=r,l=0;l1?(l.on(t,e),n):l.on(t)}}}function fu(){var t,n,e,r,i=Ga(-30),o=1,s=1/0,a=.81;function u(r){var i,o=t.length,s=Ka(t,au,uu).visitAfter(c);for(e=r,i=0;i=s)){(t.data!==n||t.next)&&(0===c&&(d+=(c=Wa())*c),0===h&&(d+=(h=Wa())*h),d1?r[0]+r.slice(2):r,+t.slice(e+1)]}function mu(t){return(t=vu(Math.abs(t)))?t[1]:NaN}var gu,yu=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function wu(t){if(!(n=yu.exec(t)))throw new Error("invalid format: "+t);var n;return new bu({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function bu(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function xu(t,n){var e=vu(t,n);if(!e)return t+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}wu.prototype=bu.prototype,bu.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const ku={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return xu(100*t,n)},r:xu,s:function(t,n){var e=vu(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(gu=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+vu(t,Math.max(0,n+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function Su(t){return t}var Cu,$u,Eu,Mu=Array.prototype.map,zu=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Tu(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?Su:(n=Mu.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var i=t.length,o=[],s=0,a=n[0],u=0;i>0&&a>0&&(u+a+1>r&&(a=Math.max(1,r-u)),o.push(t.substring(i-=a,i+a)),!((u+=a+1)>r));)a=n[s=(s+1)%n.length];return o.reverse().join(e)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?Su:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(Mu.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"-":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function h(t){var n=(t=wu(t)).fill,e=t.align,h=t.sign,f=t.symbol,d=t.zero,p=t.width,_=t.comma,v=t.precision,m=t.trim,g=t.type;"n"===g?(_=!0,g="g"):ku[g]||(void 0===v&&(v=12),m=!0,g="g"),(d||"0"===n&&"="===e)&&(d=!0,n="0",e="=");var y="$"===f?i:"#"===f&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",w="$"===f?o:/[%p]/.test(g)?u:"",b=ku[g],x=/[defgprs%]/.test(g);function k(t){var i,o,u,f=y,k=w;if("c"===g)k=b(t)+k,t="";else{var S=(t=+t)<0||1/t<0;if(t=isNaN(t)?c:b(Math.abs(t),v),m&&(t=function(t){t:for(var n,e=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(n+1):t}(t)),S&&0==+t&&"+"!==h&&(S=!1),f=(S?"("===h?h:l:"-"===h||"("===h?"":h)+f,k=("s"===g?zu[8+gu/3]:"")+k+(S&&"("===h?")":""),x)for(i=-1,o=t.length;++i(u=t.charCodeAt(i))||u>57){k=(46===u?s+t.slice(i+1):t.slice(i))+k,t=t.slice(0,i);break}}_&&!d&&(t=r(t,1/0));var C=f.length+t.length+k.length,$=C>1)+f+t+k+$.slice(C);break;default:t=$+f+t+k}return a(t)}return v=void 0===v?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),k.toString=function(){return t+""},k}return{format:h,formatPrefix:function(t,n){var e=h(((t=wu(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(mu(n)/3))),i=Math.pow(10,-r),o=zu[8+r/3];return function(t){return e(i*t)+o}}}}function ju(t){return Cu=Tu(t),$u=Cu.format,Eu=Cu.formatPrefix,Cu}function Au(t){return Math.max(0,-mu(Math.abs(t)))}function qu(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(mu(n)/3)))-mu(Math.abs(t)))}function Pu(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,mu(n)-mu(t))+1}function Ru(){return new Lu}function Lu(){this.reset()}ju({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Lu.prototype={constructor:Lu,reset:function(){this.s=this.t=0},add:function(t){Iu(Ou,t,this.t),Iu(this,Ou.s,this.s),this.s?this.t+=Ou.t:this.s=Ou.t},valueOf:function(){return this.s}};var Ou=new Lu;function Iu(t,n,e){var r=t.s=n+e,i=r-n,o=r-i;t.t=n-o+(e-i)}var Du=1e-6,Nu=1e-12,Bu=Math.PI,Fu=Bu/2,Uu=Bu/4,Hu=2*Bu,Gu=180/Bu,Wu=Bu/180,Vu=Math.abs,Zu=Math.atan,Xu=Math.atan2,Yu=Math.cos,Ku=Math.ceil,Ju=Math.exp,Qu=(Math.floor,Math.log),tl=Math.pow,nl=Math.sin,el=Math.sign||function(t){return t>0?1:t<0?-1:0},rl=Math.sqrt,il=Math.tan;function ol(t){return t>1?0:t<-1?Bu:Math.acos(t)}function sl(t){return t>1?Fu:t<-1?-Fu:Math.asin(t)}function al(t){return(t=nl(t/2))*t}function ul(){}function ll(t,n){t&&hl.hasOwnProperty(t.type)&&hl[t.type](t,n)}var cl={Feature:function(t,n){ll(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r=0?1:-1,i=r*e,o=Yu(n=(n*=Wu)/2+Uu),s=nl(n),a=yl*s,u=gl*o+a*Yu(i),l=a*r*nl(i);wl.add(Xu(l,u)),ml=t,gl=o,yl=s}function El(t){return bl.reset(),pl(t,xl),2*bl}function Ml(t){return[Xu(t[1],t[0]),sl(t[2])]}function zl(t){var n=t[0],e=t[1],r=Yu(e);return[r*Yu(n),r*nl(n),nl(e)]}function Tl(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function jl(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function Al(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function ql(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function Pl(t){var n=rl(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}var Rl,Ll,Ol,Il,Dl,Nl,Bl,Fl,Ul,Hl,Gl,Wl,Vl,Zl,Xl,Yl,Kl,Jl,Ql,tc,nc,ec,rc,ic,oc,sc,ac=Ru(),uc={point:lc,lineStart:hc,lineEnd:fc,polygonStart:function(){uc.point=dc,uc.lineStart=pc,uc.lineEnd=_c,ac.reset(),xl.polygonStart()},polygonEnd:function(){xl.polygonEnd(),uc.point=lc,uc.lineStart=hc,uc.lineEnd=fc,wl<0?(Rl=-(Ol=180),Ll=-(Il=90)):ac>Du?Il=90:ac<-Du&&(Ll=-90),Hl[0]=Rl,Hl[1]=Ol},sphere:function(){Rl=-(Ol=180),Ll=-(Il=90)}};function lc(t,n){Ul.push(Hl=[Rl=t,Ol=t]),nIl&&(Il=n)}function cc(t,n){var e=zl([t*Wu,n*Wu]);if(Fl){var r=jl(Fl,e),i=jl([r[1],-r[0],0],r);Pl(i),i=Ml(i);var o,s=t-Dl,a=s>0?1:-1,u=i[0]*Gu*a,l=Vu(s)>180;l^(a*DlIl&&(Il=o):l^(a*Dl<(u=(u+360)%360-180)&&uIl&&(Il=n)),l?tvc(Rl,Ol)&&(Ol=t):vc(t,Ol)>vc(Rl,Ol)&&(Rl=t):Ol>=Rl?(tOl&&(Ol=t)):t>Dl?vc(Rl,t)>vc(Rl,Ol)&&(Ol=t):vc(t,Ol)>vc(Rl,Ol)&&(Rl=t)}else Ul.push(Hl=[Rl=t,Ol=t]);nIl&&(Il=n),Fl=e,Dl=t}function hc(){uc.point=cc}function fc(){Hl[0]=Rl,Hl[1]=Ol,uc.point=lc,Fl=null}function dc(t,n){if(Fl){var e=t-Dl;ac.add(Vu(e)>180?e+(e>0?360:-360):e)}else Nl=t,Bl=n;xl.point(t,n),cc(t,n)}function pc(){xl.lineStart()}function _c(){dc(Nl,Bl),xl.lineEnd(),Vu(ac)>Du&&(Rl=-(Ol=180)),Hl[0]=Rl,Hl[1]=Ol,Fl=null}function vc(t,n){return(n-=t)<0?n+360:n}function mc(t,n){return t[0]-n[0]}function gc(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:nvc(r[0],r[1])&&(r[1]=i[1]),vc(i[0],r[1])>vc(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(s=-1/0,n=0,r=o[e=o.length-1];n<=e;r=i,++n)i=o[n],(a=vc(r[1],i[0]))>s&&(s=a,Rl=i[0],Ol=r[1])}return Ul=Hl=null,Rl===1/0||Ll===1/0?[[NaN,NaN],[NaN,NaN]]:[[Rl,Ll],[Ol,Il]]}var wc={sphere:ul,point:bc,lineStart:kc,lineEnd:$c,polygonStart:function(){wc.lineStart=Ec,wc.lineEnd=Mc},polygonEnd:function(){wc.lineStart=kc,wc.lineEnd=$c}};function bc(t,n){t*=Wu;var e=Yu(n*=Wu);xc(e*Yu(t),e*nl(t),nl(n))}function xc(t,n,e){++Gl,Vl+=(t-Vl)/Gl,Zl+=(n-Zl)/Gl,Xl+=(e-Xl)/Gl}function kc(){wc.point=Sc}function Sc(t,n){t*=Wu;var e=Yu(n*=Wu);ic=e*Yu(t),oc=e*nl(t),sc=nl(n),wc.point=Cc,xc(ic,oc,sc)}function Cc(t,n){t*=Wu;var e=Yu(n*=Wu),r=e*Yu(t),i=e*nl(t),o=nl(n),s=Xu(rl((s=oc*o-sc*i)*s+(s=sc*r-ic*o)*s+(s=ic*i-oc*r)*s),ic*r+oc*i+sc*o);Wl+=s,Yl+=s*(ic+(ic=r)),Kl+=s*(oc+(oc=i)),Jl+=s*(sc+(sc=o)),xc(ic,oc,sc)}function $c(){wc.point=bc}function Ec(){wc.point=zc}function Mc(){Tc(ec,rc),wc.point=bc}function zc(t,n){ec=t,rc=n,t*=Wu,n*=Wu,wc.point=Tc;var e=Yu(n);ic=e*Yu(t),oc=e*nl(t),sc=nl(n),xc(ic,oc,sc)}function Tc(t,n){t*=Wu;var e=Yu(n*=Wu),r=e*Yu(t),i=e*nl(t),o=nl(n),s=oc*o-sc*i,a=sc*r-ic*o,u=ic*i-oc*r,l=rl(s*s+a*a+u*u),c=sl(l),h=l&&-c/l;Ql+=h*s,tc+=h*a,nc+=h*u,Wl+=c,Yl+=c*(ic+(ic=r)),Kl+=c*(oc+(oc=i)),Jl+=c*(sc+(sc=o)),xc(ic,oc,sc)}function jc(t){Gl=Wl=Vl=Zl=Xl=Yl=Kl=Jl=Ql=tc=nc=0,pl(t,wc);var n=Ql,e=tc,r=nc,i=n*n+e*e+r*r;return iBu?t+Math.round(-t/Hu)*Hu:t,n]}function Rc(t,n,e){return(t%=Hu)?n||e?qc(Oc(t),Ic(n,e)):Oc(t):n||e?Ic(n,e):Pc}function Lc(t){return function(n,e){return[(n+=t)>Bu?n-Hu:n<-Bu?n+Hu:n,e]}}function Oc(t){var n=Lc(t);return n.invert=Lc(-t),n}function Ic(t,n){var e=Yu(t),r=nl(t),i=Yu(n),o=nl(n);function s(t,n){var s=Yu(n),a=Yu(t)*s,u=nl(t)*s,l=nl(n),c=l*e+a*r;return[Xu(u*i-c*o,a*e-l*r),sl(c*i+u*o)]}return s.invert=function(t,n){var s=Yu(n),a=Yu(t)*s,u=nl(t)*s,l=nl(n),c=l*i-u*o;return[Xu(u*i+l*o,a*e+c*r),sl(c*e-a*r)]},s}function Dc(t){function n(n){return(n=t(n[0]*Wu,n[1]*Wu))[0]*=Gu,n[1]*=Gu,n}return t=Rc(t[0]*Wu,t[1]*Wu,t.length>2?t[2]*Wu:0),n.invert=function(n){return(n=t.invert(n[0]*Wu,n[1]*Wu))[0]*=Gu,n[1]*=Gu,n},n}function Nc(t,n,e,r,i,o){if(e){var s=Yu(n),a=nl(n),u=r*e;null==i?(i=n+r*Hu,o=n-u/2):(i=Bc(s,i),o=Bc(s,o),(r>0?io)&&(i+=r*Hu));for(var l,c=i;r>0?c>o:c1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}}function Hc(t,n){return Vu(t[0]-n[0])=0;--o)i.point((c=l[o])[0],c[1]);else r(f.x,f.p.x,-1,i);f=f.p}l=(f=f.o).z,d=!d}while(!f.v);i.lineEnd()}}}function Vc(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r=0?1:-1,C=S*k,$=C>Bu,E=_*b;if(Zc.add(Xu(E*S*nl(C),v*x+E*Yu(C))),s+=$?k+S*Hu:k,$^d>=e^y>=e){var M=jl(zl(f),zl(g));Pl(M);var z=jl(o,M);Pl(z);var T=($^k>=0?-1:1)*sl(z[2]);(r>T||r===T&&(M[0]||M[1]))&&(a+=$^k>=0?1:-1)}}return(s<-Du||s0){for(h||(i.polygonStart(),h=!0),i.lineStart(),t=0;t1&&2&u&&f.push(f.pop().concat(f.shift())),s.push(f.filter(Jc))}return f}}function Jc(t){return t.length>1}function Qc(t,n){return((t=t.x)[0]<0?t[1]-Fu-Du:Fu-t[1])-((n=n.x)[0]<0?n[1]-Fu-Du:Fu-n[1])}const th=Kc((function(){return!0}),(function(t){var n,e=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(o,s){var a=o>0?Bu:-Bu,u=Vu(o-e);Vu(u-Bu)0?Fu:-Fu),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),t.point(o,r),n=0):i!==a&&u>=Bu&&(Vu(e-i)Du?Zu((nl(n)*(o=Yu(r))*nl(e)-nl(r)*(i=Yu(n))*nl(t))/(i*o*s)):(n+r)/2}(e,r,o,s),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),n=0),t.point(e=o,r=s),i=a},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-n}}}),(function(t,n,e,r){var i;if(null==t)i=e*Fu,r.point(-Bu,i),r.point(0,i),r.point(Bu,i),r.point(Bu,0),r.point(Bu,-i),r.point(0,-i),r.point(-Bu,-i),r.point(-Bu,0),r.point(-Bu,i);else if(Vu(t[0]-n[0])>Du){var o=t[0]0,i=Vu(n)>Du;function o(t,e){return Yu(t)*Yu(e)>n}function s(t,e,r){var i=[1,0,0],o=jl(zl(t),zl(e)),s=Tl(o,o),a=o[0],u=s-a*a;if(!u)return!r&&t;var l=n*s/u,c=-n*a/u,h=jl(i,o),f=ql(i,l);Al(f,ql(o,c));var d=h,p=Tl(f,d),_=Tl(d,d),v=p*p-_*(Tl(f,f)-1);if(!(v<0)){var m=rl(v),g=ql(d,(-p-m)/_);if(Al(g,f),g=Ml(g),!r)return g;var y,w=t[0],b=e[0],x=t[1],k=e[1];b0^g[1]<(Vu(g[0]-w)Bu^(w<=g[0]&&g[0]<=b)){var $=ql(d,(-p+m)/_);return Al($,f),[g,Ml($)]}}}function a(n,e){var i=r?t:Bu-t,o=0;return n<-i?o|=1:n>i&&(o|=2),e<-i?o|=4:e>i&&(o|=8),o}return Kc(o,(function(t){var n,e,u,l,c;return{lineStart:function(){l=u=!1,c=1},point:function(h,f){var d,p=[h,f],_=o(h,f),v=r?_?0:a(h,f):_?a(h+(h<0?Bu:-Bu),f):0;if(!n&&(l=u=_)&&t.lineStart(),_!==u&&(!(d=s(n,p))||Hc(n,d)||Hc(p,d))&&(p[2]=1),_!==u)c=0,_?(t.lineStart(),d=s(p,n),t.point(d[0],d[1])):(d=s(n,p),t.point(d[0],d[1],2),t.lineEnd()),n=d;else if(i&&n&&r^_){var m;v&e||!(m=s(p,n,!0))||(c=0,r?(t.lineStart(),t.point(m[0][0],m[0][1]),t.point(m[1][0],m[1][1]),t.lineEnd()):(t.point(m[1][0],m[1][1]),t.lineEnd(),t.lineStart(),t.point(m[0][0],m[0][1],3)))}!_||n&&Hc(n,p)||t.point(p[0],p[1]),n=p,u=_,e=v},lineEnd:function(){u&&t.lineEnd(),n=null},clean:function(){return c|(l&&u)<<1}}}),(function(n,r,i,o){Nc(o,t,e,i,n,r)}),r?[0,-t]:[-Bu,t-Bu])}var eh=1e9,rh=-eh;function ih(t,n,e,r){function i(i,o){return t<=i&&i<=e&&n<=o&&o<=r}function o(i,o,a,l){var c=0,h=0;if(null==i||(c=s(i,a))!==(h=s(o,a))||u(i,o)<0^a>0)do{l.point(0===c||3===c?t:e,c>1?r:n)}while((c=(c+a+4)%4)!==h);else l.point(o[0],o[1])}function s(r,i){return Vu(r[0]-t)0?0:3:Vu(r[0]-e)0?2:1:Vu(r[1]-n)0?1:0:i>0?3:2}function a(t,n){return u(t.x,n.x)}function u(t,n){var e=s(t,1),r=s(n,1);return e!==r?e-r:0===e?n[1]-t[1]:1===e?t[0]-n[0]:2===e?t[1]-n[1]:n[0]-t[0]}return function(s){var u,l,c,h,f,d,p,_,v,m,g,y=s,w=Uc(),b={point:x,lineStart:function(){b.point=k,l&&l.push(c=[]),m=!0,v=!1,p=_=NaN},lineEnd:function(){u&&(k(h,f),d&&v&&w.rejoin(),u.push(w.result())),b.point=x,v&&y.lineEnd()},polygonStart:function(){y=w,u=[],l=[],g=!0},polygonEnd:function(){var n=function(){for(var n=0,e=0,i=l.length;er&&(f-o)*(r-s)>(d-s)*(t-o)&&++n:d<=r&&(f-o)*(r-s)<(d-s)*(t-o)&&--n;return n}(),e=g&&n,i=(u=I(u)).length;(e||i)&&(s.polygonStart(),e&&(s.lineStart(),o(null,null,1,s),s.lineEnd()),i&&Wc(u,a,n,o,s),s.polygonEnd()),y=s,u=l=c=null}};function x(t,n){i(t,n)&&y.point(t,n)}function k(o,s){var a=i(o,s);if(l&&c.push([o,s]),m)h=o,f=s,d=a,m=!1,a&&(y.lineStart(),y.point(o,s));else if(a&&v)y.point(o,s);else{var u=[p=Math.max(rh,Math.min(eh,p)),_=Math.max(rh,Math.min(eh,_))],w=[o=Math.max(rh,Math.min(eh,o)),s=Math.max(rh,Math.min(eh,s))];!function(t,n,e,r,i,o){var s,a=t[0],u=t[1],l=0,c=1,h=n[0]-a,f=n[1]-u;if(s=e-a,h||!(s>0)){if(s/=h,h<0){if(s0){if(s>c)return;s>l&&(l=s)}if(s=i-a,h||!(s<0)){if(s/=h,h<0){if(s>c)return;s>l&&(l=s)}else if(h>0){if(s0)){if(s/=f,f<0){if(s0){if(s>c)return;s>l&&(l=s)}if(s=o-u,f||!(s<0)){if(s/=f,f<0){if(s>c)return;s>l&&(l=s)}else if(f>0){if(s0&&(t[0]=a+l*h,t[1]=u+l*f),c<1&&(n[0]=a+c*h,n[1]=u+c*f),!0}}}}}(u,w,t,n,e,r)?a&&(y.lineStart(),y.point(o,s),g=!1):(v||(y.lineStart(),y.point(u[0],u[1])),y.point(w[0],w[1]),a||y.lineEnd(),g=!1)}p=o,_=s,v=a}return b}}function oh(){var t,n,e,r=0,i=0,o=960,s=500;return e={stream:function(e){return t&&n===e?t:t=ih(r,i,o,s)(n=e)},extent:function(a){return arguments.length?(r=+a[0][0],i=+a[0][1],o=+a[1][0],s=+a[1][1],t=n=null,e):[[r,i],[o,s]]}}}var sh,ah,uh,lh=Ru(),ch={sphere:ul,point:ul,lineStart:function(){ch.point=fh,ch.lineEnd=hh},lineEnd:ul,polygonStart:ul,polygonEnd:ul};function hh(){ch.point=ch.lineEnd=ul}function fh(t,n){sh=t*=Wu,ah=nl(n*=Wu),uh=Yu(n),ch.point=dh}function dh(t,n){t*=Wu;var e=nl(n*=Wu),r=Yu(n),i=Vu(t-sh),o=Yu(i),s=r*nl(i),a=uh*e-ah*r*o,u=ah*e+uh*r*o;lh.add(Xu(rl(s*s+a*a),u)),sh=t,ah=e,uh=r}function ph(t){return lh.reset(),pl(t,ch),+lh}var _h=[null,null],vh={type:"LineString",coordinates:_h};function mh(t,n){return _h[0]=t,_h[1]=n,ph(vh)}var gh={Feature:function(t,n){return wh(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r0&&(i=mh(t[o],t[o-1]))>0&&e<=i&&r<=i&&(e+r-i)*(1-Math.pow((e-r)/i,2))Du})).map(u)).concat(k(Ku(o/d)*d,i,d).filter((function(t){return Vu(t%_)>Du})).map(l))}return m.lines=function(){return g().map((function(t){return{type:"LineString",coordinates:t}}))},m.outline=function(){return{type:"Polygon",coordinates:[c(r).concat(h(s).slice(1),c(e).reverse().slice(1),h(a).reverse().slice(1))]}},m.extent=function(t){return arguments.length?m.extentMajor(t).extentMinor(t):m.extentMinor()},m.extentMajor=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],a=+t[0][1],s=+t[1][1],r>e&&(t=r,r=e,e=t),a>s&&(t=a,a=s,s=t),m.precision(v)):[[r,a],[e,s]]},m.extentMinor=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],o=+e[0][1],i=+e[1][1],n>t&&(e=n,n=t,t=e),o>i&&(e=o,o=i,i=e),m.precision(v)):[[n,o],[t,i]]},m.step=function(t){return arguments.length?m.stepMajor(t).stepMinor(t):m.stepMinor()},m.stepMajor=function(t){return arguments.length?(p=+t[0],_=+t[1],m):[p,_]},m.stepMinor=function(t){return arguments.length?(f=+t[0],d=+t[1],m):[f,d]},m.precision=function(f){return arguments.length?(v=+f,u=Eh(o,i,90),l=Mh(n,t,v),c=Eh(a,s,90),h=Mh(r,e,v),m):v},m.extentMajor([[-180,-90+Du],[180,90-Du]]).extentMinor([[-180,-80-Du],[180,80+Du]])}function Th(){return zh()()}function jh(t,n){var e=t[0]*Wu,r=t[1]*Wu,i=n[0]*Wu,o=n[1]*Wu,s=Yu(r),a=nl(r),u=Yu(o),l=nl(o),c=s*Yu(e),h=s*nl(e),f=u*Yu(i),d=u*nl(i),p=2*sl(rl(al(o-r)+s*u*al(i-e))),_=nl(p),v=p?function(t){var n=nl(t*=p)/_,e=nl(p-t)/_,r=e*c+n*f,i=e*h+n*d,o=e*a+n*l;return[Xu(i,r)*Gu,Xu(o,rl(r*r+i*i))*Gu]}:function(){return[e*Gu,r*Gu]};return v.distance=p,v}function Ah(t){return t}var qh,Ph,Rh,Lh,Oh=Ru(),Ih=Ru(),Dh={point:ul,lineStart:ul,lineEnd:ul,polygonStart:function(){Dh.lineStart=Nh,Dh.lineEnd=Uh},polygonEnd:function(){Dh.lineStart=Dh.lineEnd=Dh.point=ul,Oh.add(Vu(Ih)),Ih.reset()},result:function(){var t=Oh/2;return Oh.reset(),t}};function Nh(){Dh.point=Bh}function Bh(t,n){Dh.point=Fh,qh=Rh=t,Ph=Lh=n}function Fh(t,n){Ih.add(Lh*t-Rh*n),Rh=t,Lh=n}function Uh(){Fh(qh,Ph)}const Hh=Dh;var Gh=1/0,Wh=Gh,Vh=-Gh,Zh=Vh,Xh={point:function(t,n){tVh&&(Vh=t),nZh&&(Zh=n)},lineStart:ul,lineEnd:ul,polygonStart:ul,polygonEnd:ul,result:function(){var t=[[Gh,Wh],[Vh,Zh]];return Vh=Zh=-(Wh=Gh=1/0),t}};const Yh=Xh;var Kh,Jh,Qh,tf,nf=0,ef=0,rf=0,of=0,sf=0,af=0,uf=0,lf=0,cf=0,hf={point:ff,lineStart:df,lineEnd:vf,polygonStart:function(){hf.lineStart=mf,hf.lineEnd=gf},polygonEnd:function(){hf.point=ff,hf.lineStart=df,hf.lineEnd=vf},result:function(){var t=cf?[uf/cf,lf/cf]:af?[of/af,sf/af]:rf?[nf/rf,ef/rf]:[NaN,NaN];return nf=ef=rf=of=sf=af=uf=lf=cf=0,t}};function ff(t,n){nf+=t,ef+=n,++rf}function df(){hf.point=pf}function pf(t,n){hf.point=_f,ff(Qh=t,tf=n)}function _f(t,n){var e=t-Qh,r=n-tf,i=rl(e*e+r*r);of+=i*(Qh+t)/2,sf+=i*(tf+n)/2,af+=i,ff(Qh=t,tf=n)}function vf(){hf.point=ff}function mf(){hf.point=yf}function gf(){wf(Kh,Jh)}function yf(t,n){hf.point=wf,ff(Kh=Qh=t,Jh=tf=n)}function wf(t,n){var e=t-Qh,r=n-tf,i=rl(e*e+r*r);of+=i*(Qh+t)/2,sf+=i*(tf+n)/2,af+=i,uf+=(i=tf*t-Qh*n)*(Qh+t),lf+=i*(tf+n),cf+=3*i,ff(Qh=t,tf=n)}const bf=hf;function xf(t){this._context=t}xf.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._context.moveTo(t,n),this._point=1;break;case 1:this._context.lineTo(t,n);break;default:this._context.moveTo(t+this._radius,n),this._context.arc(t,n,this._radius,0,Hu)}},result:ul};var kf,Sf,Cf,$f,Ef,Mf=Ru(),zf={point:ul,lineStart:function(){zf.point=Tf},lineEnd:function(){kf&&jf(Sf,Cf),zf.point=ul},polygonStart:function(){kf=!0},polygonEnd:function(){kf=null},result:function(){var t=+Mf;return Mf.reset(),t}};function Tf(t,n){zf.point=jf,Sf=$f=t,Cf=Ef=n}function jf(t,n){$f-=t,Ef-=n,Mf.add(rl($f*$f+Ef*Ef)),$f=t,Ef=n}const Af=zf;function qf(){this._string=[]}function Pf(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Rf(t,n){var e,r,i=4.5;function o(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),pl(t,e(r))),r.result()}return o.area=function(t){return pl(t,e(Hh)),Hh.result()},o.measure=function(t){return pl(t,e(Af)),Af.result()},o.bounds=function(t){return pl(t,e(Yh)),Yh.result()},o.centroid=function(t){return pl(t,e(bf)),bf.result()},o.projection=function(n){return arguments.length?(e=null==n?(t=null,Ah):(t=n).stream,o):t},o.context=function(t){return arguments.length?(r=null==t?(n=null,new qf):new xf(n=t),"function"!=typeof i&&r.pointRadius(i),o):n},o.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),o):i},o.projection(t).context(n)}function Lf(t){return{stream:Of(t)}}function Of(t){return function(n){var e=new If;for(var r in t)e[r]=t[r];return e.stream=n,e}}function If(){}function Df(t,n,e){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),pl(e,t.stream(Yh)),n(Yh.result()),null!=r&&t.clipExtent(r),t}function Nf(t,n,e){return Df(t,(function(e){var r=n[1][0]-n[0][0],i=n[1][1]-n[0][1],o=Math.min(r/(e[1][0]-e[0][0]),i/(e[1][1]-e[0][1])),s=+n[0][0]+(r-o*(e[1][0]+e[0][0]))/2,a=+n[0][1]+(i-o*(e[1][1]+e[0][1]))/2;t.scale(150*o).translate([s,a])}),e)}function Bf(t,n,e){return Nf(t,[[0,0],n],e)}function Ff(t,n,e){return Df(t,(function(e){var r=+n,i=r/(e[1][0]-e[0][0]),o=(r-i*(e[1][0]+e[0][0]))/2,s=-i*e[0][1];t.scale(150*i).translate([o,s])}),e)}function Uf(t,n,e){return Df(t,(function(e){var r=+n,i=r/(e[1][1]-e[0][1]),o=-i*e[0][0],s=(r-i*(e[1][1]+e[0][1]))/2;t.scale(150*i).translate([o,s])}),e)}qf.prototype={_radius:4.5,_circle:Pf(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._string.push("M",t,",",n),this._point=1;break;case 1:this._string.push("L",t,",",n);break;default:null==this._circle&&(this._circle=Pf(this._radius)),this._string.push("M",t,",",n,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},If.prototype={constructor:If,point:function(t,n){this.stream.point(t,n)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Hf=16,Gf=Yu(30*Wu);function Wf(t,n){return+n?function(t,n){function e(r,i,o,s,a,u,l,c,h,f,d,p,_,v){var m=l-r,g=c-i,y=m*m+g*g;if(y>4*n&&_--){var w=s+f,b=a+d,x=u+p,k=rl(w*w+b*b+x*x),S=sl(x/=k),C=Vu(Vu(x)-1)n||Vu((m*z+g*T)/y-.5)>.3||s*f+a*d+u*p2?t[2]%360*Wu:0,z()):[v*Gu,m*Gu,g*Gu]},E.angle=function(t){return arguments.length?(y=t%360*Wu,z()):y*Gu},E.reflectX=function(t){return arguments.length?(w=t?-1:1,z()):w<0},E.reflectY=function(t){return arguments.length?(b=t?-1:1,z()):b<0},E.precision=function(t){return arguments.length?(s=Wf(a,$=t*t),T()):rl($)},E.fitExtent=function(t,n){return Nf(E,t,n)},E.fitSize=function(t,n){return Bf(E,t,n)},E.fitWidth=function(t,n){return Ff(E,t,n)},E.fitHeight=function(t,n){return Uf(E,t,n)},function(){return n=t.apply(this,arguments),E.invert=n.invert&&M,z()}}function Jf(t){var n=0,e=Bu/3,r=Kf(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*Wu,e=t[1]*Wu):[n*Gu,e*Gu]},i}function Qf(t,n){var e=nl(t),r=(e+nl(n))/2;if(Vu(r)=.12&&i<.234&&r>=-.425&&r<-.214?a:i>=.166&&i<.234&&r>=-.214&&r<-.115?u:s).invert(t)},c.stream=function(e){return t&&n===e?t:(r=[s.stream(n=e),a.stream(e),u.stream(e)],i=r.length,t={point:function(t,n){for(var e=-1;++e0?n<-Fu+Du&&(n=-Fu+Du):n>Fu-Du&&(n=Fu-Du);var e=i/tl(fd(n),r);return[e*nl(r*t),i-e*Yu(r*t)]}return o.invert=function(t,n){var e=i-n,o=el(r)*rl(t*t+e*e),s=Xu(t,Vu(e))*el(e);return e*r<0&&(s-=Bu*el(t)*el(e)),[s/r,2*Zu(tl(i/o,1/r))-Fu]},o}function pd(){return Jf(dd).scale(109.5).parallels([30,30])}function _d(t,n){return[t,n]}function vd(){return Yf(_d).scale(152.63)}function md(t,n){var e=Yu(t),r=t===n?nl(t):(e-Yu(n))/(n-t),i=e/r+t;if(Vu(r)2?t[2]+90:90]):[(t=e())[0],t[1],t[2]-90]},e([0,0,90]).scale(159.155)}function Od(t,n){return t.parent===n.parent?1:2}function Id(t,n){return t+n.x}function Dd(t,n){return Math.max(t,n.y)}function Nd(){var t=Od,n=1,e=1,r=!1;function i(i){var o,s=0;i.eachAfter((function(n){var e=n.children;e?(n.x=function(t){return t.reduce(Id,0)/t.length}(e),n.y=function(t){return 1+t.reduce(Dd,0)}(e)):(n.x=o?s+=t(n,o):0,n.y=0,o=n)}));var a=function(t){for(var n;n=t.children;)t=n[0];return t}(i),u=function(t){for(var n;n=t.children;)t=n[n.length-1];return t}(i),l=a.x-t(a,u)/2,c=u.x+t(u,a)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*n,t.y=(i.y-t.y)*e}:function(t){t.x=(t.x-l)/(c-l)*n,t.y=(1-(i.y?t.y/i.y:1))*e})}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i}function Bd(t){var n=0,e=t.children,r=e&&e.length;if(r)for(;--r>=0;)n+=e[r].value;else n=1;t.value=n}function Fd(t,n){var e,r,i,o,s,a=new Wd(t),u=+t.value&&(a.value=t.value),l=[a];for(null==n&&(n=Ud);e=l.pop();)if(u&&(e.value=+e.data.value),(i=n(e.data))&&(s=i.length))for(e.children=new Array(s),o=s-1;o>=0;--o)l.push(r=e.children[o]=new Wd(i[o])),r.parent=e,r.depth=e.depth+1;return a.eachBefore(Gd)}function Ud(t){return t.children}function Hd(t){t.data=t.data.data}function Gd(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function Wd(t){this.data=t,this.depth=this.height=0,this.parent=null}Sd.invert=function(t,n){for(var e,r=n,i=r*r,o=i*i*i,s=0;s<12&&(o=(i=(r-=e=(r*(yd+wd*i+o*(bd+xd*i))-n)/(yd+3*wd*i+o*(7*bd+9*xd*i)))*r)*i*i,!(Vu(e)Du&&--i>0);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},jd.invert=id(sl),qd.invert=id((function(t){return 2*Zu(t)})),Rd.invert=function(t,n){return[-n,2*Zu(Ju(t))-Fu]},Wd.prototype=Fd.prototype={constructor:Wd,count:function(){return this.eachAfter(Bd)},each:function(t){var n,e,r,i,o=this,s=[o];do{for(n=s.reverse(),s=[];o=n.pop();)if(t(o),e=o.children)for(r=0,i=e.length;r=0;--e)i.push(n[e]);return this},sum:function(t){return this.eachAfter((function(n){for(var e=+t(n.data)||0,r=n.children,i=r&&r.length;--i>=0;)e+=r[i].value;n.value=e}))},sort:function(t){return this.eachBefore((function(n){n.children&&n.children.sort(t)}))},path:function(t){for(var n=this,e=function(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;for(t=e.pop(),n=r.pop();t===n;)i=t,t=e.pop(),n=r.pop();return i}(n,t),r=[n];n!==e;)n=n.parent,r.push(n);for(var i=r.length;t!==e;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){var t=[];return this.each((function(n){t.push(n)})),t},leaves:function(){var t=[];return this.eachBefore((function(n){n.children||t.push(n)})),t},links:function(){var t=this,n=[];return t.each((function(e){e!==t&&n.push({source:e.parent,target:e})})),n},copy:function(){return Fd(this).eachBefore(Hd)}};var Vd=Array.prototype.slice;function Zd(t){for(var n,e,r=0,i=(t=function(t){for(var n,e,r=t.length;r;)e=Math.random()*r--|0,n=t[r],t[r]=t[e],t[e]=n;return t}(Vd.call(t))).length,o=[];r0&&e*e>r*r+i*i}function Jd(t,n){for(var e=0;e(s*=s)?(r=(l+s-i)/(2*l),o=Math.sqrt(Math.max(0,s/l-r*r)),e.x=t.x-r*a-o*u,e.y=t.y-r*u+o*a):(r=(l+i-s)/(2*l),o=Math.sqrt(Math.max(0,i/l-r*r)),e.x=n.x+r*a-o*u,e.y=n.y+r*u+o*a)):(e.x=n.x+e.r,e.y=n.y)}function rp(t,n){var e=t.r+n.r-1e-6,r=n.x-t.x,i=n.y-t.y;return e>0&&e*e>r*r+i*i}function ip(t){var n=t._,e=t.next._,r=n.r+e.r,i=(n.x*e.r+e.x*n.r)/r,o=(n.y*e.r+e.y*n.r)/r;return i*i+o*o}function op(t){this._=t,this.next=null,this.previous=null}function sp(t){if(!(i=t.length))return 0;var n,e,r,i,o,s,a,u,l,c,h;if((n=t[0]).x=0,n.y=0,!(i>1))return n.r;if(e=t[1],n.x=-e.r,e.x=n.r,e.y=0,!(i>2))return n.r+e.r;ep(e,n,r=t[2]),n=new op(n),e=new op(e),r=new op(r),n.next=r.previous=e,e.next=n.previous=r,r.next=e.previous=n;t:for(a=3;a0)throw new Error("cycle");return o}return e.id=function(n){return arguments.length?(t=up(n),e):t},e.parentId=function(t){return arguments.length?(n=up(t),e):n},e}function Cp(t,n){return t.parent===n.parent?1:2}function $p(t){var n=t.children;return n?n[0]:t.t}function Ep(t){var n=t.children;return n?n[n.length-1]:t.t}function Mp(t,n,e){var r=e/(n.i-t.i);n.c-=r,n.s+=e,t.c+=r,n.z+=e,n.m+=e}function zp(t,n,e){return t.a.parent===n.parent?t.a:e}function Tp(t,n){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=n}function jp(){var t=Cp,n=1,e=1,r=null;function i(i){var u=function(t){for(var n,e,r,i,o,s=new Tp(t,0),a=[s];n=a.pop();)if(r=n._.children)for(n.children=new Array(o=r.length),i=o-1;i>=0;--i)a.push(e=n.children[i]=new Tp(r[i],i)),e.parent=n;return(s.parent=new Tp(null,0)).children=[s],s}(i);if(u.eachAfter(o),u.parent.m=-u.z,u.eachBefore(s),r)i.eachBefore(a);else{var l=i,c=i,h=i;i.eachBefore((function(t){t.xc.x&&(c=t),t.depth>h.depth&&(h=t)}));var f=l===c?1:t(l,c)/2,d=f-l.x,p=n/(c.x+f+d),_=e/(h.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*_}))}return i}function o(n){var e=n.children,r=n.parent.children,i=n.i?r[n.i-1]:null;if(e){!function(t){for(var n,e=0,r=0,i=t.children,o=i.length;--o>=0;)(n=i[o]).z+=e,n.m+=e,e+=n.s+(r+=n.c)}(n);var o=(e[0].z+e[e.length-1].z)/2;i?(n.z=i.z+t(n._,i._),n.m=n.z-o):n.z=o}else i&&(n.z=i.z+t(n._,i._));n.parent.A=function(n,e,r){if(e){for(var i,o=n,s=n,a=e,u=o.parent.children[0],l=o.m,c=s.m,h=a.m,f=u.m;a=Ep(a),o=$p(o),a&&o;)u=$p(u),(s=Ep(s)).a=n,(i=a.z+h-o.z-l+t(a._,o._))>0&&(Mp(zp(a,n,r),n,i),l+=i,c+=i),h+=a.m,l+=o.m,f+=u.m,c+=s.m;a&&!Ep(s)&&(s.t=a,s.m+=h-c),o&&!$p(u)&&(u.t=o,u.m+=l-f,r=n)}return r}(n,i,n.parent.A||r[0])}function s(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function a(t){t.x*=n,t.y=t.depth*e}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i}function Ap(t,n,e,r,i){for(var o,s=t.children,a=-1,u=s.length,l=t.value&&(i-e)/t.value;++af&&(f=a),v=c*c*_,(d=Math.max(f/v,v/h))>p){c-=a;break}p=d}m.push(s={value:c,dice:u1?n:1)},e}(qp);function Lp(){var t=Rp,n=!1,e=1,r=1,i=[0],o=lp,s=lp,a=lp,u=lp,l=lp;function c(t){return t.x0=t.y0=0,t.x1=e,t.y1=r,t.eachBefore(h),i=[0],n&&t.eachBefore(vp),t}function h(n){var e=i[n.depth],r=n.x0+e,c=n.y0+e,h=n.x1-e,f=n.y1-e;h=e-1){var c=a[n];return c.x0=i,c.y0=o,c.x1=s,void(c.y1=u)}for(var h=l[n],f=r/2+h,d=n+1,p=e-1;d>>1;l[_]u-o){var g=(i*m+s*v)/r;t(n,d,v,i,o,g,u),t(d,e,m,g,o,s,u)}else{var y=(o*m+u*v)/r;t(n,d,v,i,o,s,y),t(d,e,m,i,y,s,u)}}(0,u,t.value,n,e,r,i)}function Ip(t,n,e,r,i){(1&t.depth?Ap:mp)(t,n,e,r,i)}const Dp=function t(n){function e(t,e,r,i,o){if((s=t._squarify)&&s.ratio===n)for(var s,a,u,l,c,h=-1,f=s.length,d=t.value;++h1?n:1)},e}(qp);function Np(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}function Bp(t,n){var e=_e(+t,+n);return function(t){var n=e(t);return n-360*Math.floor(n/360)}}function Fp(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}var Up=Math.SQRT2,Hp=2,Gp=4,Wp=1e-12;function Vp(t){return((t=Math.exp(t))+1/t)/2}function Zp(t,n){var e,r,i=t[0],o=t[1],s=t[2],a=n[0],u=n[1],l=n[2],c=a-i,h=u-o,f=c*c+h*h;if(f1&&l_(t[e[r-2]],t[e[r-1]],t[i])<=0;)--r;e[r++]=i}return e.slice(0,r)}function f_(t){if((e=t.length)<3)return null;var n,e,r=new Array(e),i=new Array(e);for(n=0;n=0;--n)l.push(t[r[o[n]][2]]);for(n=+a;na!=l>a&&s<(u-e)*(a-r)/(l-r)+e&&(c=!c),u=e,l=r;return c}function p_(t){for(var n,e,r=-1,i=t.length,o=t[i-1],s=o[0],a=o[1],u=0;++r1);return t+e*o*Math.sqrt(-2*Math.log(i)/i)}}return e.source=t,e}(__),g_=function t(n){function e(){var t=m_.source(n).apply(this,arguments);return function(){return Math.exp(t())}}return e.source=t,e}(__),y_=function t(n){function e(t){return function(){for(var e=0,r=0;rr&&(n=e,e=r,r=n),function(t){return Math.max(e,Math.min(r,t))}}function O_(t,n,e){var r=t[0],i=t[1],o=n[0],s=n[1];return i2?I_:O_,i=o=null,h}function h(n){return isNaN(n=+n)?e:(i||(i=r(s.map(t),a,u)))(t(l(n)))}return h.invert=function(e){return l(n((o||(o=r(a,s.map(t),$e)))(e)))},h.domain=function(t){return arguments.length?(s=C_.call(t,A_),l===P_||(l=L_(s)),c()):s.slice()},h.range=function(t){return arguments.length?(a=$_.call(t),c()):a.slice()},h.rangeRound=function(t){return a=$_.call(t),u=Fp,c()},h.clamp=function(t){return arguments.length?(l=t?L_(s):P_,h):l!==P_},h.interpolate=function(t){return arguments.length?(u=t,c()):u},h.unknown=function(t){return arguments.length?(e=t,h):e},function(e,r){return t=e,n=r,c()}}function B_(t,n){return N_()(t,n)}function F_(t,n,e,r){var i,o=z(t,n,e);switch((r=wu(null==r?",f":r)).type){case"s":var s=Math.max(Math.abs(t),Math.abs(n));return null!=r.precision||isNaN(i=qu(o,s))||(r.precision=i),Eu(r,s);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=Pu(o,Math.max(Math.abs(t),Math.abs(n))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=Au(o))||(r.precision=i-2*("%"===r.type))}return $u(r)}function U_(t){var n=t.domain;return t.ticks=function(t){var e=n();return E(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return F_(r[0],r[r.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var r,i=n(),o=0,s=i.length-1,a=i[o],u=i[s];return u0?r=M(a=Math.floor(a/r)*r,u=Math.ceil(u/r)*r,e):r<0&&(r=M(a=Math.ceil(a*r)/r,u=Math.floor(u*r)/r,e)),r>0?(i[o]=Math.floor(a/r)*r,i[s]=Math.ceil(u/r)*r,n(i)):r<0&&(i[o]=Math.ceil(a*r)/r,i[s]=Math.floor(u*r)/r,n(i)),t},t}function H_(){var t=B_(P_,P_);return t.copy=function(){return D_(t,H_())},x_.apply(t,arguments),U_(t)}function G_(t){var n;function e(t){return isNaN(t=+t)?n:t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=C_.call(n,A_),e):t.slice()},e.unknown=function(t){return arguments.length?(n=t,e):n},e.copy=function(){return G_(t).unknown(n)},t=arguments.length?C_.call(t,A_):[0,1],U_(e)}function W_(t,n){var e,r=0,i=(t=t.slice()).length-1,o=t[r],s=t[i];return s0){for(;fu)break;_.push(h)}}else for(;f=1;--c)if(!((h=l*c)u)break;_.push(h)}}else _=E(f,d,Math.min(d-f,p)).map(e);return r?_.reverse():_},r.tickFormat=function(t,i){if(null==i&&(i=10===o?".0e":","),"function"!=typeof i&&(i=$u(i)),t===1/0)return i;null==t&&(t=10);var s=Math.max(1,o*t/r.ticks().length);return function(t){var r=t/e(Math.round(n(t)));return r*o0?r[i-1]:n[0],i=r?[i[r-1],e]:[i[s-1],i[s]]},s.unknown=function(n){return arguments.length?(t=n,s):s},s.thresholds=function(){return i.slice()},s.copy=function(){return fv().domain([n,e]).range(o).unknown(t)},x_.apply(U_(s),arguments)}function dv(){var t,n=[.5],e=[0,1],r=1;function i(i){return i<=i?e[l(n,i,0,r)]:t}return i.domain=function(t){return arguments.length?(n=$_.call(t),r=Math.min(n.length,e.length-1),i):n.slice()},i.range=function(t){return arguments.length?(e=$_.call(t),r=Math.min(n.length,e.length-1),i):e.slice()},i.invertExtent=function(t){var r=e.indexOf(t);return[n[r-1],n[r]]},i.unknown=function(n){return arguments.length?(t=n,i):t},i.copy=function(){return dv().domain(n).range(e).unknown(t)},x_.apply(i,arguments)}var pv=new Date,_v=new Date;function vv(t,n,e,r){function i(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return i.floor=function(n){return t(n=new Date(+n)),n},i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n0))return a;do{a.push(s=new Date(+e)),n(e,o),t(e)}while(s=n)for(;t(n),!e(n);)n.setTime(n-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););}))},e&&(i.count=function(n,r){return pv.setTime(+n),_v.setTime(+r),t(pv),t(_v),Math.floor(e(pv,_v))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}var mv=vv((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));mv.every=function(t){return isFinite(t=Math.floor(t))&&t>0?vv((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,e){n.setFullYear(n.getFullYear()+e*t)})):null};const gv=mv;var yv=mv.range,wv=vv((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,n){t.setMonth(t.getMonth()+n)}),(function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));const bv=wv;var xv=wv.range,kv=1e3,Sv=6e4,Cv=36e5,$v=864e5,Ev=6048e5;function Mv(t){return vv((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Sv)/Ev}))}var zv=Mv(0),Tv=Mv(1),jv=Mv(2),Av=Mv(3),qv=Mv(4),Pv=Mv(5),Rv=Mv(6),Lv=zv.range,Ov=Tv.range,Iv=jv.range,Dv=Av.range,Nv=qv.range,Bv=Pv.range,Fv=Rv.range,Uv=vv((function(t){t.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Sv)/$v}),(function(t){return t.getDate()-1}));const Hv=Uv;var Gv=Uv.range,Wv=vv((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*kv-t.getMinutes()*Sv)}),(function(t,n){t.setTime(+t+n*Cv)}),(function(t,n){return(n-t)/Cv}),(function(t){return t.getHours()}));const Vv=Wv;var Zv=Wv.range,Xv=vv((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*kv)}),(function(t,n){t.setTime(+t+n*Sv)}),(function(t,n){return(n-t)/Sv}),(function(t){return t.getMinutes()}));const Yv=Xv;var Kv=Xv.range,Jv=vv((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+n*kv)}),(function(t,n){return(n-t)/kv}),(function(t){return t.getUTCSeconds()}));const Qv=Jv;var tm=Jv.range,nm=vv((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));nm.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?vv((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):nm:null};const em=nm;var rm=nm.range;function im(t){return vv((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/Ev}))}var om=im(0),sm=im(1),am=im(2),um=im(3),lm=im(4),cm=im(5),hm=im(6),fm=om.range,dm=sm.range,pm=am.range,_m=um.range,vm=lm.range,mm=cm.range,gm=hm.range,ym=vv((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/$v}),(function(t){return t.getUTCDate()-1}));const wm=ym;var bm=ym.range,xm=vv((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));xm.every=function(t){return isFinite(t=Math.floor(t))&&t>0?vv((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)})):null};const km=xm;var Sm=xm.range;function Cm(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function $m(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Em(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}function Mm(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,o=t.days,s=t.shortDays,a=t.months,u=t.shortMonths,l=Nm(i),c=Bm(i),h=Nm(o),f=Bm(o),d=Nm(s),p=Bm(s),_=Nm(a),v=Bm(a),m=Nm(u),g=Bm(u),y={a:function(t){return s[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:ug,e:ug,f:dg,g:Sg,G:$g,H:lg,I:cg,j:hg,L:fg,m:pg,M:_g,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Xg,s:Yg,S:vg,u:mg,U:gg,V:wg,w:bg,W:xg,x:null,X:null,y:kg,Y:Cg,Z:Eg,"%":Zg},w={a:function(t){return s[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:Mg,e:Mg,f:qg,g:Hg,G:Wg,H:zg,I:Tg,j:jg,L:Ag,m:Pg,M:Rg,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Xg,s:Yg,S:Lg,u:Og,U:Ig,V:Ng,w:Bg,W:Fg,x:null,X:null,y:Ug,Y:Gg,Z:Vg,"%":Zg},b={a:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.w=p[r[0].toLowerCase()],e+r[0].length):-1},A:function(t,n,e){var r=h.exec(n.slice(e));return r?(t.w=f[r[0].toLowerCase()],e+r[0].length):-1},b:function(t,n,e){var r=m.exec(n.slice(e));return r?(t.m=g[r[0].toLowerCase()],e+r[0].length):-1},B:function(t,n,e){var r=_.exec(n.slice(e));return r?(t.m=v[r[0].toLowerCase()],e+r[0].length):-1},c:function(t,e,r){return S(t,n,e,r)},d:Jm,e:Jm,f:ig,g:Zm,G:Vm,H:tg,I:tg,j:Qm,L:rg,m:Km,M:ng,p:function(t,n,e){var r=l.exec(n.slice(e));return r?(t.p=c[r[0].toLowerCase()],e+r[0].length):-1},q:Ym,Q:sg,s:ag,S:eg,u:Um,U:Hm,V:Gm,w:Fm,W:Wm,x:function(t,n,r){return S(t,e,n,r)},X:function(t,n,e){return S(t,r,n,e)},y:Zm,Y:Vm,Z:Xm,"%":og};function x(t,n){return function(e){var r,i,o,s=[],a=-1,u=0,l=t.length;for(e instanceof Date||(e=new Date(+e));++a53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=$m(Em(o.y,0,1))).getUTCDay(),r=i>4||0===i?sm.ceil(r):sm(r),r=wm.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=Cm(Em(o.y,0,1))).getDay(),r=i>4||0===i?Tv.ceil(r):Tv(r),r=Hv.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?$m(Em(o.y,0,1)).getUTCDay():Cm(Em(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,$m(o)):Cm(o)}}function S(t,n,e,r){for(var i,o,s=0,a=n.length,u=e.length;s=u)return-1;if(37===(i=n.charCodeAt(s++))){if(i=n.charAt(s++),!(o=b[i in Pm?n.charAt(s++):i])||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return y.x=x(e,y),y.X=x(r,y),y.c=x(n,y),w.x=x(e,w),w.X=x(r,w),w.c=x(n,w),{format:function(t){var n=x(t+="",y);return n.toString=function(){return t},n},parse:function(t){var n=k(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=x(t+="",w);return n.toString=function(){return t},n},utcParse:function(t){var n=k(t+="",!0);return n.toString=function(){return t},n}}}var zm,Tm,jm,Am,qm,Pm={"-":"",_:" ",0:"0"},Rm=/^\s*\d+/,Lm=/^%/,Om=/[\\^$*+?|[\]().{}]/g;function Im(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o68?1900:2e3),e+r[0].length):-1}function Xm(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function Ym(t,n,e){var r=Rm.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function Km(t,n,e){var r=Rm.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function Jm(t,n,e){var r=Rm.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function Qm(t,n,e){var r=Rm.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function tg(t,n,e){var r=Rm.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function ng(t,n,e){var r=Rm.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function eg(t,n,e){var r=Rm.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function rg(t,n,e){var r=Rm.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function ig(t,n,e){var r=Rm.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function og(t,n,e){var r=Lm.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function sg(t,n,e){var r=Rm.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function ag(t,n,e){var r=Rm.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function ug(t,n){return Im(t.getDate(),n,2)}function lg(t,n){return Im(t.getHours(),n,2)}function cg(t,n){return Im(t.getHours()%12||12,n,2)}function hg(t,n){return Im(1+Hv.count(gv(t),t),n,3)}function fg(t,n){return Im(t.getMilliseconds(),n,3)}function dg(t,n){return fg(t,n)+"000"}function pg(t,n){return Im(t.getMonth()+1,n,2)}function _g(t,n){return Im(t.getMinutes(),n,2)}function vg(t,n){return Im(t.getSeconds(),n,2)}function mg(t){var n=t.getDay();return 0===n?7:n}function gg(t,n){return Im(zv.count(gv(t)-1,t),n,2)}function yg(t){var n=t.getDay();return n>=4||0===n?qv(t):qv.ceil(t)}function wg(t,n){return t=yg(t),Im(qv.count(gv(t),t)+(4===gv(t).getDay()),n,2)}function bg(t){return t.getDay()}function xg(t,n){return Im(Tv.count(gv(t)-1,t),n,2)}function kg(t,n){return Im(t.getFullYear()%100,n,2)}function Sg(t,n){return Im((t=yg(t)).getFullYear()%100,n,2)}function Cg(t,n){return Im(t.getFullYear()%1e4,n,4)}function $g(t,n){var e=t.getDay();return Im((t=e>=4||0===e?qv(t):qv.ceil(t)).getFullYear()%1e4,n,4)}function Eg(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Im(n/60|0,"0",2)+Im(n%60,"0",2)}function Mg(t,n){return Im(t.getUTCDate(),n,2)}function zg(t,n){return Im(t.getUTCHours(),n,2)}function Tg(t,n){return Im(t.getUTCHours()%12||12,n,2)}function jg(t,n){return Im(1+wm.count(km(t),t),n,3)}function Ag(t,n){return Im(t.getUTCMilliseconds(),n,3)}function qg(t,n){return Ag(t,n)+"000"}function Pg(t,n){return Im(t.getUTCMonth()+1,n,2)}function Rg(t,n){return Im(t.getUTCMinutes(),n,2)}function Lg(t,n){return Im(t.getUTCSeconds(),n,2)}function Og(t){var n=t.getUTCDay();return 0===n?7:n}function Ig(t,n){return Im(om.count(km(t)-1,t),n,2)}function Dg(t){var n=t.getUTCDay();return n>=4||0===n?lm(t):lm.ceil(t)}function Ng(t,n){return t=Dg(t),Im(lm.count(km(t),t)+(4===km(t).getUTCDay()),n,2)}function Bg(t){return t.getUTCDay()}function Fg(t,n){return Im(sm.count(km(t)-1,t),n,2)}function Ug(t,n){return Im(t.getUTCFullYear()%100,n,2)}function Hg(t,n){return Im((t=Dg(t)).getUTCFullYear()%100,n,2)}function Gg(t,n){return Im(t.getUTCFullYear()%1e4,n,4)}function Wg(t,n){var e=t.getUTCDay();return Im((t=e>=4||0===e?lm(t):lm.ceil(t)).getUTCFullYear()%1e4,n,4)}function Vg(){return"+0000"}function Zg(){return"%"}function Xg(t){return+t}function Yg(t){return Math.floor(+t/1e3)}function Kg(t){return zm=Mm(t),Tm=zm.format,jm=zm.parse,Am=zm.utcFormat,qm=zm.utcParse,zm}Kg({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Jg=1e3,Qg=60*Jg,ty=60*Qg,ny=24*ty,ey=7*ny,ry=30*ny,iy=365*ny;function oy(t){return new Date(t)}function sy(t){return t instanceof Date?+t:+new Date(+t)}function ay(t,n,e,r,i,s,a,u,l){var c=B_(P_,P_),h=c.invert,f=c.domain,d=l(".%L"),p=l(":%S"),_=l("%I:%M"),v=l("%I %p"),m=l("%a %d"),g=l("%b %d"),y=l("%B"),w=l("%Y"),b=[[a,1,Jg],[a,5,5*Jg],[a,15,15*Jg],[a,30,30*Jg],[s,1,Qg],[s,5,5*Qg],[s,15,15*Qg],[s,30,30*Qg],[i,1,ty],[i,3,3*ty],[i,6,6*ty],[i,12,12*ty],[r,1,ny],[r,2,2*ny],[e,1,ey],[n,1,ry],[n,3,3*ry],[t,1,iy]];function x(o){return(a(o)1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return Xw.h=360*t-100,Xw.s=1.5-1.5*n,Xw.l=.8-.9*n,Xw+""}var Kw=te(),Jw=Math.PI/3,Qw=2*Math.PI/3;function tb(t){var n;return t=(.5-t)*Math.PI,Kw.r=255*(n=Math.sin(t))*n,Kw.g=255*(n=Math.sin(t+Jw))*n,Kw.b=255*(n=Math.sin(t+Qw))*n,Kw+""}function nb(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"}function eb(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}const rb=eb(qy("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var ib=eb(qy("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),ob=eb(qy("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),sb=eb(qy("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function ab(t){return En(un(t).call(document.documentElement))}var ub=0;function lb(){return new cb}function cb(){this._="@"+(++ub).toString(36)}function hb(t){return"string"==typeof t?new Sn([document.querySelectorAll(t)],[document.documentElement]):new Sn([null==t?[]:t],kn)}function fb(t,n){null==n&&(n=Ae().touches);for(var e=0,r=n?n.length:0,i=new Array(r);e=1?kb:t<=-1?-kb:Math.asin(t)}function $b(t){return t.innerRadius}function Eb(t){return t.outerRadius}function Mb(t){return t.startAngle}function zb(t){return t.endAngle}function Tb(t){return t&&t.padAngle}function jb(t,n,e,r,i,o,s){var a=t-e,u=n-r,l=(s?o:-o)/wb(a*a+u*u),c=l*u,h=-l*a,f=t+c,d=n+h,p=e+c,_=r+h,v=(f+p)/2,m=(d+_)/2,g=p-f,y=_-d,w=g*g+y*y,b=i-o,x=f*_-p*d,k=(y<0?-1:1)*wb(mb(0,b*b*w-x*x)),S=(x*y-g*k)/w,C=(-x*g-y*k)/w,$=(x*y+g*k)/w,E=(-x*g+y*k)/w,M=S-v,z=C-m,T=$-v,j=E-m;return M*M+z*z>T*T+j*j&&(S=$,C=E),{cx:S,cy:C,x01:-c,y01:-h,x11:S*(i/b-1),y11:C*(i/b-1)}}function Ab(){var t=$b,n=Eb,e=db(0),r=null,i=Mb,o=zb,s=Tb,a=null;function u(){var u,l,c,h=+t.apply(this,arguments),f=+n.apply(this,arguments),d=i.apply(this,arguments)-kb,p=o.apply(this,arguments)-kb,_=pb(p-d),v=p>d;if(a||(a=u=Hi()),fbb)if(_>Sb-bb)a.moveTo(f*vb(d),f*yb(d)),a.arc(0,0,f,d,p,!v),h>bb&&(a.moveTo(h*vb(p),h*yb(p)),a.arc(0,0,h,p,d,v));else{var m,g,y=d,w=p,b=d,x=p,k=_,S=_,C=s.apply(this,arguments)/2,$=C>bb&&(r?+r.apply(this,arguments):wb(h*h+f*f)),E=gb(pb(f-h)/2,+e.apply(this,arguments)),M=E,z=E;if($>bb){var T=Cb($/h*yb(C)),j=Cb($/f*yb(C));(k-=2*T)>bb?(b+=T*=v?1:-1,x-=T):(k=0,b=x=(d+p)/2),(S-=2*j)>bb?(y+=j*=v?1:-1,w-=j):(S=0,y=w=(d+p)/2)}var A=f*vb(y),q=f*yb(y),P=h*vb(x),R=h*yb(x);if(E>bb){var L,O=f*vb(w),I=f*yb(w),D=h*vb(b),N=h*yb(b);if(_1?0:c<-1?xb:Math.acos(c))/2),W=wb(L[0]*L[0]+L[1]*L[1]);M=gb(E,(h-W)/(G-1)),z=gb(E,(f-W)/(G+1))}}S>bb?z>bb?(m=jb(D,N,A,q,f,z,v),g=jb(O,I,P,R,f,z,v),a.moveTo(m.cx+m.x01,m.cy+m.y01),zbb&&k>bb?M>bb?(m=jb(P,R,O,I,h,-M,v),g=jb(A,q,D,N,h,-M,v),a.lineTo(m.cx+m.x01,m.cy+m.y01),M=c;--h)a.point(v[h],m[h]);a.lineEnd(),a.areaEnd()}_&&(v[l]=+t(f,l,u),m[l]=+e(f,l,u),a.point(n?+n(f,l,u):v[l],r?+r(f,l,u):m[l]))}if(d)return a=null,d+""||null}function l(){return Ob().defined(i).curve(s).context(o)}return u.x=function(e){return arguments.length?(t="function"==typeof e?e:db(+e),n=null,u):t},u.x0=function(n){return arguments.length?(t="function"==typeof n?n:db(+n),u):t},u.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:db(+t),u):n},u.y=function(t){return arguments.length?(e="function"==typeof t?t:db(+t),r=null,u):e},u.y0=function(t){return arguments.length?(e="function"==typeof t?t:db(+t),u):e},u.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:db(+t),u):r},u.lineX0=u.lineY0=function(){return l().x(t).y(e)},u.lineY1=function(){return l().x(t).y(r)},u.lineX1=function(){return l().x(n).y(e)},u.defined=function(t){return arguments.length?(i="function"==typeof t?t:db(!!t),u):i},u.curve=function(t){return arguments.length?(s=t,null!=o&&(a=s(o)),u):s},u.context=function(t){return arguments.length?(null==t?o=a=null:a=s(o=t),u):o},u}function Db(t,n){return nt?1:n>=t?0:NaN}function Nb(t){return t}function Bb(){var t=Nb,n=Db,e=null,r=db(0),i=db(Sb),o=db(0);function s(s){var a,u,l,c,h,f=s.length,d=0,p=new Array(f),_=new Array(f),v=+r.apply(this,arguments),m=Math.min(Sb,Math.max(-Sb,i.apply(this,arguments)-v)),g=Math.min(Math.abs(m)/f,o.apply(this,arguments)),y=g*(m<0?-1:1);for(a=0;a0&&(d+=h);for(null!=n?p.sort((function(t,e){return n(_[t],_[e])})):null!=e&&p.sort((function(t,n){return e(s[t],s[n])})),a=0,l=d?(m-f*y)/d:0;a0?h*l:0)+y,_[u]={data:s[u],index:a,value:h,startAngle:v,endAngle:c,padAngle:g};return _}return s.value=function(n){return arguments.length?(t="function"==typeof n?n:db(+n),s):t},s.sortValues=function(t){return arguments.length?(n=t,e=null,s):n},s.sort=function(t){return arguments.length?(e=t,n=null,s):e},s.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:db(+t),s):r},s.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:db(+t),s):i},s.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:db(+t),s):o},s}qb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var Fb=Hb(Pb);function Ub(t){this._curve=t}function Hb(t){function n(n){return new Ub(t(n))}return n._curve=t,n}function Gb(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(Hb(t)):n()._curve},t}function Wb(){return Gb(Ob().curve(Fb))}function Vb(){var t=Ib().curve(Fb),n=t.curve,e=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return Gb(e())},delete t.lineX0,t.lineEndAngle=function(){return Gb(r())},delete t.lineX1,t.lineInnerRadius=function(){return Gb(i())},delete t.lineY0,t.lineOuterRadius=function(){return Gb(o())},delete t.lineY1,t.curve=function(t){return arguments.length?n(Hb(t)):n()._curve},t}function Zb(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]}Ub.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};var Xb=Array.prototype.slice;function Yb(t){return t.source}function Kb(t){return t.target}function Jb(t){var n=Yb,e=Kb,r=Rb,i=Lb,o=null;function s(){var s,a=Xb.call(arguments),u=n.apply(this,a),l=e.apply(this,a);if(o||(o=s=Hi()),t(o,+r.apply(this,(a[0]=u,a)),+i.apply(this,a),+r.apply(this,(a[0]=l,a)),+i.apply(this,a)),s)return o=null,s+""||null}return s.source=function(t){return arguments.length?(n=t,s):n},s.target=function(t){return arguments.length?(e=t,s):e},s.x=function(t){return arguments.length?(r="function"==typeof t?t:db(+t),s):r},s.y=function(t){return arguments.length?(i="function"==typeof t?t:db(+t),s):i},s.context=function(t){return arguments.length?(o=null==t?null:t,s):o},s}function Qb(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n=(n+r)/2,e,n,i,r,i)}function tx(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n,e=(e+i)/2,r,e,r,i)}function nx(t,n,e,r,i){var o=Zb(n,e),s=Zb(n,e=(e+i)/2),a=Zb(r,e),u=Zb(r,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(s[0],s[1],a[0],a[1],u[0],u[1])}function ex(){return Jb(Qb)}function rx(){return Jb(tx)}function ix(){var t=Jb(nx);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const ox={draw:function(t,n){var e=Math.sqrt(n/xb);t.moveTo(e,0),t.arc(0,0,e,0,Sb)}},sx={draw:function(t,n){var e=Math.sqrt(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}};var ax=Math.sqrt(1/3),ux=2*ax;const lx={draw:function(t,n){var e=Math.sqrt(n/ux),r=e*ax;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}};var cx=Math.sin(xb/10)/Math.sin(7*xb/10),hx=Math.sin(Sb/10)*cx,fx=-Math.cos(Sb/10)*cx;const dx={draw:function(t,n){var e=Math.sqrt(.8908130915292852*n),r=hx*e,i=fx*e;t.moveTo(0,-e),t.lineTo(r,i);for(var o=1;o<5;++o){var s=Sb*o/5,a=Math.cos(s),u=Math.sin(s);t.lineTo(u*e,-a*e),t.lineTo(a*r-u*i,u*r+a*i)}t.closePath()}},px={draw:function(t,n){var e=Math.sqrt(n),r=-e/2;t.rect(r,r,e,e)}};var _x=Math.sqrt(3);const vx={draw:function(t,n){var e=-Math.sqrt(n/(3*_x));t.moveTo(0,2*e),t.lineTo(-_x*e,-e),t.lineTo(_x*e,-e),t.closePath()}};var mx=-.5,gx=Math.sqrt(3)/2,yx=1/Math.sqrt(12),wx=3*(yx/2+1);const bx={draw:function(t,n){var e=Math.sqrt(n/wx),r=e/2,i=e*yx,o=r,s=e*yx+e,a=-o,u=s;t.moveTo(r,i),t.lineTo(o,s),t.lineTo(a,u),t.lineTo(mx*r-gx*i,gx*r+mx*i),t.lineTo(mx*o-gx*s,gx*o+mx*s),t.lineTo(mx*a-gx*u,gx*a+mx*u),t.lineTo(mx*r+gx*i,mx*i-gx*r),t.lineTo(mx*o+gx*s,mx*s-gx*o),t.lineTo(mx*a+gx*u,mx*u-gx*a),t.closePath()}};var xx=[ox,sx,lx,px,dx,vx,bx];function kx(){var t=db(ox),n=db(64),e=null;function r(){var r;if(e||(e=r=Hi()),t.apply(this,arguments).draw(e,+n.apply(this,arguments)),r)return e=null,r+""||null}return r.type=function(n){return arguments.length?(t="function"==typeof n?n:db(n),r):t},r.size=function(t){return arguments.length?(n="function"==typeof t?t:db(+t),r):n},r.context=function(t){return arguments.length?(e=null==t?null:t,r):e},r}function Sx(){}function Cx(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function $x(t){this._context=t}function Ex(t){return new $x(t)}function Mx(t){this._context=t}function zx(t){return new Mx(t)}function Tx(t){this._context=t}function jx(t){return new Tx(t)}function Ax(t,n){this._basis=new $x(t),this._beta=n}$x.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:Cx(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Cx(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Mx.prototype={areaStart:Sx,areaEnd:Sx,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:Cx(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Tx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:Cx(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Ax.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],o=n[0],s=t[e]-i,a=n[e]-o,u=-1;++u<=e;)r=u/e,this._basis.point(this._beta*t[u]+(1-this._beta)*(i+r*s),this._beta*n[u]+(1-this._beta)*(o+r*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};const qx=function t(n){function e(t){return 1===n?new $x(t):new Ax(t,n)}return e.beta=function(n){return t(+n)},e}(.85);function Px(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function Rx(t,n){this._context=t,this._k=(1-n)/6}Rx.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:Px(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:Px(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const Lx=function t(n){function e(t){return new Rx(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Ox(t,n){this._context=t,this._k=(1-n)/6}Ox.prototype={areaStart:Sx,areaEnd:Sx,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Px(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const Ix=function t(n){function e(t){return new Ox(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Dx(t,n){this._context=t,this._k=(1-n)/6}Dx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,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:Px(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const Nx=function t(n){function e(t){return new Dx(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Bx(t,n,e){var r=t._x1,i=t._y1,o=t._x2,s=t._y2;if(t._l01_a>bb){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,i=(i*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>bb){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*l+t._x1*t._l23_2a-n*t._l12_2a)/c,s=(s*l+t._y1*t._l23_2a-e*t._l12_2a)/c}t._context.bezierCurveTo(r,i,o,s,t._x2,t._y2)}function Fx(t,n){this._context=t,this._alpha=n}Fx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:Bx(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const Ux=function t(n){function e(t){return n?new Fx(t,n):new Rx(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function Hx(t,n){this._context=t,this._alpha=n}Hx.prototype={areaStart:Sx,areaEnd:Sx,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Bx(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const Gx=function t(n){function e(t){return n?new Hx(t,n):new Ox(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function Wx(t,n){this._context=t,this._alpha=n}Wx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,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:Bx(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const Vx=function t(n){function e(t){return n?new Wx(t,n):new Dx(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function Zx(t){this._context=t}function Xx(t){return new Zx(t)}function Yx(t){return t<0?-1:1}function Kx(t,n,e){var r=t._x1-t._x0,i=n-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),s=(e-t._y1)/(i||r<0&&-0),a=(o*i+s*r)/(r+i);return(Yx(o)+Yx(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function Jx(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function Qx(t,n,e){var r=t._x0,i=t._y0,o=t._x1,s=t._y1,a=(o-r)/3;t._context.bezierCurveTo(r+a,i+a*n,o-a,s-a*e,o,s)}function tk(t){this._context=t}function nk(t){this._context=new ek(t)}function ek(t){this._context=t}function rk(t){return new tk(t)}function ik(t){return new nk(t)}function ok(t){this._context=t}function sk(t){var n,e,r=t.length-1,i=new Array(r),o=new Array(r),s=new Array(r);for(i[0]=0,o[0]=2,s[0]=t[0]+2*t[1],n=1;n=0;--n)i[n]=(s[n]-i[n+1])/o[n];for(o[r-1]=(t[r]+i[r-1])/2,n=0;n1)for(var e,r,i,o=1,s=t[n[0]],a=s.length;o=0;)e[n]=n;return e}function pk(t,n){return t[n]}function _k(){var t=db([]),n=dk,e=fk,r=pk;function i(i){var o,s,a=t.apply(this,arguments),u=i.length,l=a.length,c=new Array(l);for(o=0;o0){for(var e,r,i,o=0,s=t[0].length;o0)for(var e,r,i,o,s,a,u=0,l=t[n[0]].length;u0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=s,r[0]=s+=i):(r[0]=0,r[1]=i)}function gk(t,n){if((e=t.length)>0){for(var e,r=0,i=t[n[0]],o=i.length;r0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,o=0,s=1;so&&(o=n,r=e);return r}function xk(t){var n=t.map(kk);return dk(t).sort((function(t,e){return n[t]-n[e]}))}function kk(t){for(var n,e=0,r=-1,i=t.length;++r=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};var Ek="%Y-%m-%dT%H:%M:%S.%LZ",Mk=Date.prototype.toISOString?function(t){return t.toISOString()}:Am(Ek);const zk=Mk;var Tk=+new Date("2000-01-01T00:00:00.000Z")?function(t){var n=new Date(t);return isNaN(n)?null:n}:qm(Ek);const jk=Tk;function Ak(t,n,e){var r=new Xe,i=n;return null==n?(r.restart(t,n,e),r):(n=+n,e=null==e?Ve():+e,r.restart((function o(s){s+=i,r.restart(o,i+=n,e),t(s)}),n,e),r)}function qk(t){return function(){return t}}function Pk(t){return t[0]}function Rk(t){return t[1]}function Lk(){this._=null}function Ok(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function Ik(t,n){var e=n,r=n.R,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.R=r.L,e.R&&(e.R.U=e),r.L=e}function Dk(t,n){var e=n,r=n.L,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.L=r.R,e.L&&(e.L.U=e),r.R=e}function Nk(t){for(;t.L;)t=t.L;return t}Lk.prototype={constructor:Lk,insert:function(t,n){var e,r,i;if(t){if(n.P=t,n.N=t.N,t.N&&(t.N.P=n),t.N=n,t.R){for(t=t.R;t.L;)t=t.L;t.L=n}else t.R=n;e=t}else this._?(t=Nk(this._),n.P=null,n.N=t,t.P=t.L=n,e=t):(n.P=n.N=null,this._=n,e=null);for(n.L=n.R=null,n.U=e,n.C=!0,t=n;e&&e.C;)e===(r=e.U).L?(i=r.R)&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.R&&(Ik(this,e),e=(t=e).U),e.C=!1,r.C=!0,Dk(this,r)):(i=r.L)&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.L&&(Dk(this,e),e=(t=e).U),e.C=!1,r.C=!0,Ik(this,r)),e=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var n,e,r,i=t.U,o=t.L,s=t.R;if(e=o?s?Nk(s):o:s,i?i.L===t?i.L=e:i.R=e:this._=e,o&&s?(r=e.C,e.C=t.C,e.L=o,o.U=e,e!==s?(i=e.U,e.U=t.U,t=e.R,i.L=t,e.R=s,s.U=e):(e.U=i,i=e,t=e.R)):(r=t.C,t=e),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((n=i.R).C&&(n.C=!1,i.C=!0,Ik(this,i),n=i.R),n.L&&n.L.C||n.R&&n.R.C){n.R&&n.R.C||(n.L.C=!1,n.C=!0,Dk(this,n),n=i.R),n.C=i.C,i.C=n.R.C=!1,Ik(this,i),t=this._;break}}else if((n=i.L).C&&(n.C=!1,i.C=!0,Dk(this,i),n=i.L),n.L&&n.L.C||n.R&&n.R.C){n.L&&n.L.C||(n.R.C=!1,n.C=!0,Ik(this,n),n=i.L),n.C=i.C,i.C=n.L.C=!1,Dk(this,i),t=this._;break}n.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};const Bk=Lk;function Fk(t,n,e,r){var i=[null,null],o=fS.push(i)-1;return i.left=t,i.right=n,e&&Hk(i,t,n,e),r&&Hk(i,n,t,r),cS[t.index].halfedges.push(o),cS[n.index].halfedges.push(o),i}function Uk(t,n,e){var r=[n,e];return r.left=t,r}function Hk(t,n,e,r){t[0]||t[1]?t.left===e?t[1]=r:t[0]=r:(t[0]=r,t.left=n,t.right=e)}function Gk(t,n,e,r,i){var o,s=t[0],a=t[1],u=s[0],l=s[1],c=0,h=1,f=a[0]-u,d=a[1]-l;if(o=n-u,f||!(o>0)){if(o/=f,f<0){if(o0){if(o>h)return;o>c&&(c=o)}if(o=r-u,f||!(o<0)){if(o/=f,f<0){if(o>h)return;o>c&&(c=o)}else if(f>0){if(o0)){if(o/=d,d<0){if(o0){if(o>h)return;o>c&&(c=o)}if(o=i-l,d||!(o<0)){if(o/=d,d<0){if(o>h)return;o>c&&(c=o)}else if(d>0){if(o0||h<1)||(c>0&&(t[0]=[u+c*f,l+c*d]),h<1&&(t[1]=[u+h*f,l+h*d]),!0)}}}}}function Wk(t,n,e,r,i){var o=t[1];if(o)return!0;var s,a,u=t[0],l=t.left,c=t.right,h=l[0],f=l[1],d=c[0],p=c[1],_=(h+d)/2,v=(f+p)/2;if(p===f){if(_=r)return;if(h>d){if(u){if(u[1]>=i)return}else u=[_,e];o=[_,i]}else{if(u){if(u[1]1)if(h>d){if(u){if(u[1]>=i)return}else u=[(e-a)/s,e];o=[(i-a)/s,i]}else{if(u){if(u[1]=r)return}else u=[n,s*n+a];o=[r,s*r+a]}else{if(u){if(u[0]=-pS)){var d=u*u+l*l,p=c*c+h*h,_=(h*d-l*p)/f,v=(u*p-c*d)/f,m=Kk.pop()||new Jk;m.arc=t,m.site=i,m.x=_+s,m.y=(m.cy=v+a)+Math.sqrt(_*_+v*v),t.circle=m;for(var g=null,y=hS._;y;)if(m.ydS)a=a.L;else{if(!((i=o-uS(a,s))>dS)){r>-dS?(n=a.P,e=a):i>-dS?(n=a,e=a.N):n=e=a;break}if(!a.R){n=a;break}a=a.R}!function(t){cS[t.index]={site:t,halfedges:[]}}(t);var u=rS(t);if(lS.insert(n,u),n||e){if(n===e)return tS(n),e=rS(n.site),lS.insert(u,e),u.edge=e.edge=Fk(n.site,u.site),Qk(n),void Qk(e);if(e){tS(n),tS(e);var l=n.site,c=l[0],h=l[1],f=t[0]-c,d=t[1]-h,p=e.site,_=p[0]-c,v=p[1]-h,m=2*(f*v-d*_),g=f*f+d*d,y=_*_+v*v,w=[(v*g-d*y)/m+c,(f*y-_*g)/m+h];Hk(e.edge,l,p,w),u.edge=Fk(l,t,null,w),e.edge=Fk(t,p,null,w),Qk(n),Qk(e)}else u.edge=Fk(n.site,u.site)}}function aS(t,n){var e=t.site,r=e[0],i=e[1],o=i-n;if(!o)return r;var s=t.P;if(!s)return-1/0;var a=(e=s.site)[0],u=e[1],l=u-n;if(!l)return a;var c=a-r,h=1/o-1/l,f=c/l;return h?(-f+Math.sqrt(f*f-2*h*(c*c/(-2*l)-u+l/2+i-o/2)))/h+r:(r+a)/2}function uS(t,n){var e=t.N;if(e)return aS(e,n);var r=t.site;return r[1]===n?r[0]:1/0}var lS,cS,hS,fS,dS=1e-6,pS=1e-12;function _S(t,n,e){return(t[0]-e[0])*(n[1]-t[1])-(t[0]-n[0])*(e[1]-t[1])}function vS(t,n){return n[1]-t[1]||n[0]-t[0]}function mS(t,n){var e,r,i,o=t.sort(vS).pop();for(fS=[],cS=new Array(t.length),lS=new Bk,hS=new Bk;;)if(i=Yk,o&&(!i||o[1]dS||Math.abs(i[0][1]-i[1][1])>dS)||delete fS[o]}(s,a,u,l),function(t,n,e,r){var i,o,s,a,u,l,c,h,f,d,p,_,v=cS.length,m=!0;for(i=0;idS||Math.abs(_-f)>dS)&&(u.splice(a,0,fS.push(Uk(s,d,Math.abs(p-t)dS?[t,Math.abs(h-t)dS?[Math.abs(f-r)dS?[e,Math.abs(h-e)dS?[Math.abs(f-n)=a)return null;var u=t-i.site[0],l=n-i.site[1],c=u*u+l*l;do{i=o.cells[r=s],s=null,i.halfedges.forEach((function(e){var r=o.edges[e],a=r.left;if(a!==i.site&&a||(a=r.right)){var u=t-a[0],l=n-a[1],h=u*u+l*l;hr?(r+i)/2:Math.min(0,r)||Math.max(0,i),s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s))}function AS(){var t,n,e=$S,r=ES,i=jS,o=zS,s=TS,a=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],l=250,c=Zp,h=_t("start","zoom","end"),f=500,d=150,p=0;function _(t){t.property("__zoom",MS).on("wheel.zoom",x).on("mousedown.zoom",k).on("dblclick.zoom",S).filter(s).on("touchstart.zoom",C).on("touchmove.zoom",$).on("touchend.zoom touchcancel.zoom",E).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(t,n){return(n=Math.max(a[0],Math.min(a[1],n)))===t.k?t:new bS(n,t.x,t.y)}function m(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new bS(t.k,r,i)}function g(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function y(t,n,e){t.on("start.zoom",(function(){w(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){w(this,arguments).end()})).tween("zoom",(function(){var t=this,i=arguments,o=w(t,i),s=r.apply(t,i),a=null==e?g(s):"function"==typeof e?e.apply(t,i):e,u=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),l=t.__zoom,h="function"==typeof n?n.apply(t,i):n,f=c(l.invert(a).concat(u/l.k),h.invert(a).concat(u/h.k));return function(t){if(1===t)t=h;else{var n=f(t),e=u/n[2];t=new bS(e,a[0]-n[0]*e,a[1]-n[1]*e)}o.zoom(null,t)}}))}function w(t,n,e){return!e&&t.__zooming||new b(t,n)}function b(t,n){this.that=t,this.args=n,this.active=0,this.extent=r.apply(t,n),this.taps=0}function x(){if(e.apply(this,arguments)){var t=w(this,arguments),n=this.__zoom,r=Math.max(a[0],Math.min(a[1],n.k*Math.pow(2,o.apply(this,arguments)))),s=Re(this);if(t.wheel)t.mouse[0][0]===s[0]&&t.mouse[0][1]===s[1]||(t.mouse[1]=n.invert(t.mouse[0]=s)),clearTimeout(t.wheel);else{if(n.k===r)return;t.mouse=[s,n.invert(s)],pr(this),t.start()}CS(),t.wheel=setTimeout((function(){t.wheel=null,t.end()}),d),t.zoom("mouse",i(m(v(n,r),t.mouse[0],t.mouse[1]),t.extent,u))}}function k(){if(!n&&e.apply(this,arguments)){var t=w(this,arguments,!0),r=En(pn.view).on("mousemove.zoom",(function(){if(CS(),!t.moved){var n=pn.clientX-s,e=pn.clientY-a;t.moved=n*n+e*e>p}t.zoom("mouse",i(m(t.that.__zoom,t.mouse[0]=Re(t.that),t.mouse[1]),t.extent,u))}),!0).on("mouseup.zoom",(function(){r.on("mousemove.zoom mouseup.zoom",null),jn(pn.view,t.moved),CS(),t.end()}),!0),o=Re(this),s=pn.clientX,a=pn.clientY;Tn(pn.view),SS(),t.mouse=[o,this.__zoom.invert(o)],pr(this),t.start()}}function S(){if(e.apply(this,arguments)){var t=this.__zoom,n=Re(this),o=t.invert(n),s=t.k*(pn.shiftKey?.5:2),a=i(m(v(t,s),n,o),r.apply(this,arguments),u);CS(),l>0?En(this).transition().duration(l).call(y,a,n):En(this).call(_.transform,a)}}function C(){if(e.apply(this,arguments)){var n,r,i,o,s=pn.touches,a=s.length,u=w(this,arguments,pn.changedTouches.length===a);for(SS(),r=0;r{t.exports={graphlib:e(46526),dagre:e(64996),intersect:e(10872),render:e(74511),util:e(42910),version:e(29760)}},69307:(t,n,e)=>{var r=e(42910);function i(t,n,e,i){var o=t.append("marker").attr("id",n).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");r.applyStyle(o,e[i+"Style"]),e[i+"Class"]&&o.attr("class",e[i+"Class"])}t.exports={default:i,normal:i,vee:function(t,n,e,i){var o=t.append("marker").attr("id",n).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");r.applyStyle(o,e[i+"Style"]),e[i+"Class"]&&o.attr("class",e[i+"Class"])},undirected:function(t,n,e,i){var o=t.append("marker").attr("id",n).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");r.applyStyle(o,e[i+"Style"]),e[i+"Class"]&&o.attr("class",e[i+"Class"])}}},79223:(t,n,e)=>{var r=e(42910),i=e(46926),o=e(60693);t.exports=function(t,n){var e,s=n.nodes().filter((function(t){return r.isSubgraph(n,t)})),a=t.selectAll("g.cluster").data(s,(function(t){return t}));return a.selectAll("*").remove(),a.enter().append("g").attr("class","cluster").attr("id",(function(t){return n.node(t).id})).style("opacity",0),a=t.selectAll("g.cluster"),r.applyTransition(a,n).style("opacity",1),a.each((function(t){var e=n.node(t),r=i.select(this);i.select(this).append("rect");var s=r.append("g").attr("class","label");o(s,e,e.clusterLabelPos)})),a.selectAll("rect").each((function(t){var e=n.node(t),o=i.select(this);r.applyStyle(o,e.style)})),e=a.exit?a.exit():a.selectAll(null),r.applyTransition(e,n).style("opacity",0).remove(),a}},17403:(t,n,e)=>{"use strict";var r=e(29359),i=e(60693),o=e(42910),s=e(46926);t.exports=function(t,n){var e,a=t.selectAll("g.edgeLabel").data(n.edges(),(function(t){return o.edgeToId(t)})).classed("update",!0);return a.exit().remove(),a.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(a=t.selectAll("g.edgeLabel")).each((function(t){var e=s.select(this);e.select(".label").remove();var o=n.edge(t),a=i(e,n.edge(t),0,0).classed("label",!0),u=a.node().getBBox();o.labelId&&a.attr("id",o.labelId),r.has(o,"width")||(o.width=u.width),r.has(o,"height")||(o.height=u.height)})),e=a.exit?a.exit():a.selectAll(null),o.applyTransition(e,n).style("opacity",0).remove(),a}},65284:(t,n,e)=>{"use strict";var r=e(29359),i=e(12419),o=e(42910),s=e(46926);function a(t,n){var e=(s.line||s.svg.line)().x((function(t){return t.x})).y((function(t){return t.y}));return(e.curve||e.interpolate)(t.curve),e(n)}t.exports=function(t,n,e){var u=t.selectAll("g.edgePath").data(n.edges(),(function(t){return o.edgeToId(t)})).classed("update",!0),l=function(t,n){var e=t.enter().append("g").attr("class","edgePath").style("opacity",0);return e.append("path").attr("class","path").attr("d",(function(t){var e=n.edge(t),i=n.node(t.v).elem;return a(e,r.range(e.points.length).map((function(){return n=(t=i).getBBox(),{x:(e=t.ownerSVGElement.getScreenCTM().inverse().multiply(t.getScreenCTM()).translate(n.width/2,n.height/2)).e,y:e.f};var t,n,e})))})),e.append("defs"),e}(u,n);!function(t,n){var e=t.exit();o.applyTransition(e,n).style("opacity",0).remove()}(u,n);var c=void 0!==u.merge?u.merge(l):u;return o.applyTransition(c,n).style("opacity",1),c.each((function(t){var e=s.select(this),r=n.edge(t);r.elem=this,r.id&&e.attr("id",r.id),o.applyClass(e,r.class,(e.classed("update")?"update ":"")+"edgePath")})),c.selectAll("path.path").each((function(t){var e=n.edge(t);e.arrowheadId=r.uniqueId("arrowhead");var u=s.select(this).attr("marker-end",(function(){return"url("+(t=location.href,n=e.arrowheadId,t.split("#")[0]+"#"+n+")");var t,n})).style("fill","none");o.applyTransition(u,n).attr("d",(function(t){return function(t,n){var e=t.edge(n),r=t.node(n.v),o=t.node(n.w),s=e.points.slice(1,e.points.length-1);return s.unshift(i(r,s[0])),s.push(i(o,s[s.length-1])),a(e,s)}(n,t)})),o.applyStyle(u,e.style)})),c.selectAll("defs *").remove(),c.selectAll("defs").each((function(t){var r=n.edge(t);(0,e[r.arrowhead])(s.select(this),r.arrowheadId,r,"arrowhead")})),c}},92785:(t,n,e)=>{"use strict";var r=e(29359),i=e(60693),o=e(42910),s=e(46926);t.exports=function(t,n,e){var a,u=n.nodes().filter((function(t){return!o.isSubgraph(n,t)})),l=t.selectAll("g.node").data(u,(function(t){return t})).classed("update",!0);return l.exit().remove(),l.enter().append("g").attr("class","node").style("opacity",0),(l=t.selectAll("g.node")).each((function(t){var a=n.node(t),u=s.select(this);o.applyClass(u,a.class,(u.classed("update")?"update ":"")+"node"),u.select("g.label").remove();var l=u.append("g").attr("class","label"),c=i(l,a),h=e[a.shape],f=r.pick(c.node().getBBox(),"width","height");a.elem=this,a.id&&u.attr("id",a.id),a.labelId&&l.attr("id",a.labelId),r.has(a,"width")&&(f.width=a.width),r.has(a,"height")&&(f.height=a.height),f.width+=a.paddingLeft+a.paddingRight,f.height+=a.paddingTop+a.paddingBottom,l.attr("transform","translate("+(a.paddingLeft-a.paddingRight)/2+","+(a.paddingTop-a.paddingBottom)/2+")");var d=s.select(this);d.select(".label-container").remove();var p=h(d,f,a).classed("label-container",!0);o.applyStyle(p,a.style);var _=p.node().getBBox();a.width=_.width,a.height=_.height})),a=l.exit?l.exit():l.selectAll(null),o.applyTransition(a,n).style("opacity",0).remove(),l}},46926:(t,n,e)=>{var r;if(!r)try{r=e(59194)}catch(t){}r||(r=window.d3),t.exports=r},64996:(t,n,e)=>{var r;try{r=e(73185)}catch(t){}r||(r=window.dagre),t.exports=r},46526:(t,n,e)=>{var r;try{r=e(16646)}catch(t){}r||(r=window.graphlib),t.exports=r},10872:(t,n,e)=>{t.exports={node:e(12419),circle:e(29497),ellipse:e(53608),polygon:e(19945),rect:e(58959)}},29497:(t,n,e)=>{var r=e(53608);t.exports=function(t,n,e){return r(t,n,n,e)}},53608:t=>{t.exports=function(t,n,e,r){var i=t.x,o=t.y,s=i-r.x,a=o-r.y,u=Math.sqrt(n*n*a*a+e*e*s*s),l=Math.abs(n*e*s/u);r.x{function n(t,n){return t*n>0}t.exports=function(t,e,r,i){var o,s,a,u,l,c,h,f,d,p,_,v,m;if(!(o=e.y-t.y,a=t.x-e.x,l=e.x*t.y-t.x*e.y,d=o*r.x+a*r.y+l,p=o*i.x+a*i.y+l,0!==d&&0!==p&&n(d,p)||(s=i.y-r.y,u=r.x-i.x,c=i.x*r.y-r.x*i.y,h=s*t.x+u*t.y+c,f=s*e.x+u*e.y+c,0!==h&&0!==f&&n(h,f)||0==(_=o*u-s*a))))return v=Math.abs(_/2),{x:(m=a*c-u*l)<0?(m-v)/_:(m+v)/_,y:(m=s*l-o*c)<0?(m-v)/_:(m+v)/_}}},12419:t=>{t.exports=function(t,n){return t.intersect(n)}},19945:(t,n,e)=>{var r=e(95032);t.exports=function(t,n,e){var i=t.x,o=t.y,s=[],a=Number.POSITIVE_INFINITY,u=Number.POSITIVE_INFINITY;n.forEach((function(t){a=Math.min(a,t.x),u=Math.min(u,t.y)}));for(var l=i-t.width/2-a,c=o-t.height/2-u,h=0;h1&&s.sort((function(t,n){var r=t.x-e.x,i=t.y-e.y,o=Math.sqrt(r*r+i*i),s=n.x-e.x,a=n.y-e.y,u=Math.sqrt(s*s+a*a);return o{t.exports=function(t,n){var e,r,i=t.x,o=t.y,s=n.x-i,a=n.y-o,u=t.width/2,l=t.height/2;return Math.abs(a)*u>Math.abs(s)*l?(a<0&&(l=-l),e=0===a?0:l*s/a,r=l):(s<0&&(u=-u),e=u,r=0===s?0:u*a/s),{x:i+e,y:o+r}}},13494:(t,n,e)=>{var r=e(42910);t.exports=function(t,n){var e=t.append("foreignObject").attr("width","100000"),i=e.append("xhtml:div");i.attr("xmlns","http://www.w3.org/1999/xhtml");var o=n.label;switch(typeof o){case"function":i.insert(o);break;case"object":i.insert((function(){return o}));break;default:i.html(o)}r.applyStyle(i,n.labelStyle),i.style("display","inline-block"),i.style("white-space","nowrap");var s=i.node().getBoundingClientRect();return e.attr("width",s.width).attr("height",s.height),e}},60693:(t,n,e)=>{var r=e(48086),i=e(13494),o=e(78337);t.exports=function(t,n,e){var s=n.label,a=t.append("g");"svg"===n.labelType?o(a,n):"string"!=typeof s||"html"===n.labelType?i(a,n):r(a,n);var u,l=a.node().getBBox();switch(e){case"top":u=-n.height/2;break;case"bottom":u=n.height/2-l.height;break;default:u=-l.height/2}return a.attr("transform","translate("+-l.width/2+","+u+")"),a}},78337:(t,n,e)=>{var r=e(42910);t.exports=function(t,n){var e=t;return e.node().appendChild(n.label),r.applyStyle(e,n.labelStyle),e}},48086:(t,n,e)=>{var r=e(42910);t.exports=function(t,n){for(var e=t.append("text"),i=function(t){for(var n,e="",r=!1,i=0;i{var r;try{r={defaults:e(28801),each:e(39724),isFunction:e(93331),isPlainObject:e(65128),pick:e(82052),has:e(3009),range:e(84769),uniqueId:e(73967)}}catch(t){}r||(r=window._),t.exports=r},29954:(t,n,e)=>{"use strict";var r=e(42910),i=e(46926);t.exports=function(t,n){var e=t.filter((function(){return!i.select(this).classed("update")}));function o(t){var e=n.node(t);return"translate("+e.x+","+e.y+")"}e.attr("transform",o),r.applyTransition(t,n).style("opacity",1).attr("transform",o),r.applyTransition(e.selectAll("rect"),n).attr("width",(function(t){return n.node(t).width})).attr("height",(function(t){return n.node(t).height})).attr("x",(function(t){return-n.node(t).width/2})).attr("y",(function(t){return-n.node(t).height/2}))}},56478:(t,n,e)=>{"use strict";var r=e(42910),i=e(46926),o=e(29359);t.exports=function(t,n){function e(t){var e=n.edge(t);return o.has(e,"x")?"translate("+e.x+","+e.y+")":""}t.filter((function(){return!i.select(this).classed("update")})).attr("transform",e),r.applyTransition(t,n).style("opacity",1).attr("transform",e)}},92249:(t,n,e)=>{"use strict";var r=e(42910),i=e(46926);t.exports=function(t,n){function e(t){var e=n.node(t);return"translate("+e.x+","+e.y+")"}t.filter((function(){return!i.select(this).classed("update")})).attr("transform",e),r.applyTransition(t,n).style("opacity",1).attr("transform",e)}},74511:(t,n,e)=>{var r=e(29359),i=e(46926),o=e(64996).layout;t.exports=function(){var t=e(92785),n=e(79223),i=e(17403),l=e(65284),c=e(92249),h=e(56478),f=e(29954),d=e(6643),p=e(69307),_=function(e,_){!function(t){t.nodes().forEach((function(n){var e=t.node(n);r.has(e,"label")||t.children(n).length||(e.label=n),r.has(e,"paddingX")&&r.defaults(e,{paddingLeft:e.paddingX,paddingRight:e.paddingX}),r.has(e,"paddingY")&&r.defaults(e,{paddingTop:e.paddingY,paddingBottom:e.paddingY}),r.has(e,"padding")&&r.defaults(e,{paddingLeft:e.padding,paddingRight:e.padding,paddingTop:e.padding,paddingBottom:e.padding}),r.defaults(e,s),r.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],(function(t){e[t]=Number(e[t])})),r.has(e,"width")&&(e._prevWidth=e.width),r.has(e,"height")&&(e._prevHeight=e.height)})),t.edges().forEach((function(n){var e=t.edge(n);r.has(e,"label")||(e.label=""),r.defaults(e,a)}))}(_);var v=u(e,"output"),m=u(v,"clusters"),g=u(v,"edgePaths"),y=i(u(v,"edgeLabels"),_),w=t(u(v,"nodes"),_,d);o(_),c(w,_),h(y,_),l(g,_,p);var b=n(m,_);f(b,_),function(t){r.each(t.nodes(),(function(n){var e=t.node(n);r.has(e,"_prevWidth")?e.width=e._prevWidth:delete e.width,r.has(e,"_prevHeight")?e.height=e._prevHeight:delete e.height,delete e._prevWidth,delete e._prevHeight}))}(_)};return _.createNodes=function(n){return arguments.length?(t=n,_):t},_.createClusters=function(t){return arguments.length?(n=t,_):n},_.createEdgeLabels=function(t){return arguments.length?(i=t,_):i},_.createEdgePaths=function(t){return arguments.length?(l=t,_):l},_.shapes=function(t){return arguments.length?(d=t,_):d},_.arrows=function(t){return arguments.length?(p=t,_):p},_};var s={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},a={arrowhead:"normal",curve:i.curveLinear};function u(t,n){var e=t.select("g."+n);return e.empty()&&(e=t.append("g").attr("class",n)),e}},6643:(t,n,e)=>{"use strict";var r=e(58959),i=e(53608),o=e(29497),s=e(19945);t.exports={rect:function(t,n,e){var i=t.insert("rect",":first-child").attr("rx",e.rx).attr("ry",e.ry).attr("x",-n.width/2).attr("y",-n.height/2).attr("width",n.width).attr("height",n.height);return e.intersect=function(t){return r(e,t)},i},ellipse:function(t,n,e){var r=n.width/2,o=n.height/2,s=t.insert("ellipse",":first-child").attr("x",-n.width/2).attr("y",-n.height/2).attr("rx",r).attr("ry",o);return e.intersect=function(t){return i(e,r,o,t)},s},circle:function(t,n,e){var r=Math.max(n.width,n.height)/2,i=t.insert("circle",":first-child").attr("x",-n.width/2).attr("y",-n.height/2).attr("r",r);return e.intersect=function(t){return o(e,r,t)},i},diamond:function(t,n,e){var r=n.width*Math.SQRT2/2,i=n.height*Math.SQRT2/2,o=[{x:0,y:-i},{x:-r,y:0},{x:0,y:i},{x:r,y:0}],a=t.insert("polygon",":first-child").attr("points",o.map((function(t){return t.x+","+t.y})).join(" "));return e.intersect=function(t){return s(e,o,t)},a}}},42910:(t,n,e)=>{var r=e(29359);t.exports={isSubgraph:function(t,n){return!!t.children(n).length},edgeToId:function(t){return o(t.v)+":"+o(t.w)+":"+o(t.name)},applyStyle:function(t,n){n&&t.attr("style",n)},applyClass:function(t,n,e){n&&t.attr("class",n).attr("class",e+" "+t.attr("class"))},applyTransition:function(t,n){var e=n.graph();if(r.isPlainObject(e)){var i=e.transition;if(r.isFunction(i))return i(t)}return t}};var i=/:/g;function o(t){return t?String(t).replace(i,"\\:"):""}},29760:t=>{t.exports="0.6.4"},73185:(t,n,e)=>{t.exports={graphlib:e(92804),layout:e(86514),debug:e(80990),util:{time:e(38115).time,notime:e(38115).notime},version:e(81647)}},29524:(t,n,e)=>{"use strict";var r=e(71821),i=e(67224);t.exports={run:function(t){var n="greedy"===t.graph().acyclicer?i(t,function(t){return function(n){return t.edge(n).weight}}(t)):function(t){var n=[],e={},i={};return r.forEach(t.nodes(),(function o(s){r.has(i,s)||(i[s]=!0,e[s]=!0,r.forEach(t.outEdges(s),(function(t){r.has(e,t.w)?n.push(t):o(t.w)})),delete e[s])})),n}(t);r.forEach(n,(function(n){var e=t.edge(n);t.removeEdge(n),e.forwardName=n.name,e.reversed=!0,t.setEdge(n.w,n.v,e,r.uniqueId("rev"))}))},undo:function(t){r.forEach(t.edges(),(function(n){var e=t.edge(n);if(e.reversed){t.removeEdge(n);var r=e.forwardName;delete e.reversed,delete e.forwardName,t.setEdge(n.w,n.v,e,r)}}))}}},22241:(t,n,e)=>{var r=e(71821),i=e(38115);function o(t,n,e,r,o,s){var a={width:0,height:0,rank:s,borderType:n},u=o[n][s-1],l=i.addDummyNode(t,"border",a,e);o[n][s]=l,t.setParent(l,r),u&&t.setEdge(u,l,{weight:1})}t.exports=function(t){r.forEach(t.children(),(function n(e){var i=t.children(e),s=t.node(e);if(i.length&&r.forEach(i,n),r.has(s,"minRank")){s.borderLeft=[],s.borderRight=[];for(var a=s.minRank,u=s.maxRank+1;a{"use strict";var r=e(71821);function i(t){r.forEach(t.nodes(),(function(n){o(t.node(n))})),r.forEach(t.edges(),(function(n){o(t.edge(n))}))}function o(t){var n=t.width;t.width=t.height,t.height=n}function s(t){t.y=-t.y}function a(t){var n=t.x;t.x=t.y,t.y=n}t.exports={adjust:function(t){var n=t.graph().rankdir.toLowerCase();"lr"!==n&&"rl"!==n||i(t)},undo:function(t){var n=t.graph().rankdir.toLowerCase();"bt"!==n&&"rl"!==n||function(t){r.forEach(t.nodes(),(function(n){s(t.node(n))})),r.forEach(t.edges(),(function(n){var e=t.edge(n);r.forEach(e.points,s),r.has(e,"y")&&s(e)}))}(t),"lr"!==n&&"rl"!==n||(function(t){r.forEach(t.nodes(),(function(n){a(t.node(n))})),r.forEach(t.edges(),(function(n){var e=t.edge(n);r.forEach(e.points,a),r.has(e,"x")&&a(e)}))}(t),i(t))}}},57282:t=>{function n(){var t={};t._next=t._prev=t,this._sentinel=t}function e(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function r(t,n){if("_next"!==t&&"_prev"!==t)return n}t.exports=n,n.prototype.dequeue=function(){var t=this._sentinel,n=t._prev;if(n!==t)return e(n),n},n.prototype.enqueue=function(t){var n=this._sentinel;t._prev&&t._next&&e(t),t._next=n._next,n._next._prev=t,n._next=t,t._prev=n},n.prototype.toString=function(){for(var t=[],n=this._sentinel,e=n._prev;e!==n;)t.push(JSON.stringify(e,r)),e=e._prev;return"["+t.join(", ")+"]"}},80990:(t,n,e)=>{var r=e(71821),i=e(38115),o=e(92804).Graph;t.exports={debugOrdering:function(t){var n=i.buildLayerMatrix(t),e=new o({compound:!0,multigraph:!0}).setGraph({});return r.forEach(t.nodes(),(function(n){e.setNode(n,{label:n}),e.setParent(n,"layer"+t.node(n).rank)})),r.forEach(t.edges(),(function(t){e.setEdge(t.v,t.w,{},t.name)})),r.forEach(n,(function(t,n){var i="layer"+n;e.setNode(i,{rank:"same"}),r.reduce(t,(function(t,n){return e.setEdge(t,n,{style:"invis"}),n}))})),e}}},92804:(t,n,e)=>{var r;try{r=e(16646)}catch(t){}r||(r=window.graphlib),t.exports=r},67224:(t,n,e)=>{var r=e(71821),i=e(92804).Graph,o=e(57282);t.exports=function(t,n){if(t.nodeCount()<=1)return[];var e=function(t,n){var e=new i,s=0,a=0;r.forEach(t.nodes(),(function(t){e.setNode(t,{v:t,in:0,out:0})})),r.forEach(t.edges(),(function(t){var r=e.edge(t.v,t.w)||0,i=n(t),o=r+i;e.setEdge(t.v,t.w,o),a=Math.max(a,e.node(t.v).out+=i),s=Math.max(s,e.node(t.w).in+=i)}));var l=r.range(a+s+3).map((function(){return new o})),c=s+1;return r.forEach(e.nodes(),(function(t){u(l,c,e.node(t))})),{graph:e,buckets:l,zeroIdx:c}}(t,n||s),l=function(t,n,e){for(var r,i=[],o=n[n.length-1],s=n[0];t.nodeCount();){for(;r=s.dequeue();)a(t,n,e,r);for(;r=o.dequeue();)a(t,n,e,r);if(t.nodeCount())for(var u=n.length-2;u>0;--u)if(r=n[u].dequeue()){i=i.concat(a(t,n,e,r,!0));break}}return i}(e.graph,e.buckets,e.zeroIdx);return r.flatten(r.map(l,(function(n){return t.outEdges(n.v,n.w)})),!0)};var s=r.constant(1);function a(t,n,e,i,o){var s=o?[]:void 0;return r.forEach(t.inEdges(i.v),(function(r){var i=t.edge(r),a=t.node(r.v);o&&s.push({v:r.v,w:r.w}),a.out-=i,u(n,e,a)})),r.forEach(t.outEdges(i.v),(function(r){var i=t.edge(r),o=r.w,s=t.node(o);s.in-=i,u(n,e,s)})),t.removeNode(i.v),s}function u(t,n,e){e.out?e.in?t[e.out-e.in+n].enqueue(e):t[t.length-1].enqueue(e):t[0].enqueue(e)}},86514:(t,n,e)=>{"use strict";var r=e(71821),i=e(29524),o=e(96464),s=e(79595),a=e(38115).normalizeRanks,u=e(15511),l=e(38115).removeEmptyRanks,c=e(32515),h=e(22241),f=e(89635),d=e(79352),p=e(34150),_=e(38115),v=e(92804).Graph;t.exports=function(t,n){var e=n&&n.debugTiming?_.time:_.notime;e("layout",(function(){var n=e(" buildLayoutGraph",(function(){return function(t){var n=new v({multigraph:!0,compound:!0}),e=$(t.graph());return n.setGraph(r.merge({},g,C(e,m),r.pick(e,y))),r.forEach(t.nodes(),(function(e){var i=$(t.node(e));n.setNode(e,r.defaults(C(i,w),b)),n.setParent(e,t.parent(e))})),r.forEach(t.edges(),(function(e){var i=$(t.edge(e));n.setEdge(e,r.merge({},k,C(i,x),r.pick(i,S)))})),n}(t)}));e(" runLayout",(function(){!function(t,n){n(" makeSpaceForEdgeLabels",(function(){!function(t){var n=t.graph();n.ranksep/=2,r.forEach(t.edges(),(function(e){var r=t.edge(e);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===n.rankdir||"BT"===n.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(t)})),n(" removeSelfEdges",(function(){!function(t){r.forEach(t.edges(),(function(n){if(n.v===n.w){var e=t.node(n.v);e.selfEdges||(e.selfEdges=[]),e.selfEdges.push({e:n,label:t.edge(n)}),t.removeEdge(n)}}))}(t)})),n(" acyclic",(function(){i.run(t)})),n(" nestingGraph.run",(function(){c.run(t)})),n(" rank",(function(){s(_.asNonCompoundGraph(t))})),n(" injectEdgeLabelProxies",(function(){!function(t){r.forEach(t.edges(),(function(n){var e=t.edge(n);if(e.width&&e.height){var r=t.node(n.v),i={rank:(t.node(n.w).rank-r.rank)/2+r.rank,e:n};_.addDummyNode(t,"edge-proxy",i,"_ep")}}))}(t)})),n(" removeEmptyRanks",(function(){l(t)})),n(" nestingGraph.cleanup",(function(){c.cleanup(t)})),n(" normalizeRanks",(function(){a(t)})),n(" assignRankMinMax",(function(){!function(t){var n=0;r.forEach(t.nodes(),(function(e){var i=t.node(e);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,n=r.max(n,i.maxRank))})),t.graph().maxRank=n}(t)})),n(" removeEdgeLabelProxies",(function(){!function(t){r.forEach(t.nodes(),(function(n){var e=t.node(n);"edge-proxy"===e.dummy&&(t.edge(e.e).labelRank=e.rank,t.removeNode(n))}))}(t)})),n(" normalize.run",(function(){o.run(t)})),n(" parentDummyChains",(function(){u(t)})),n(" addBorderSegments",(function(){h(t)})),n(" order",(function(){d(t)})),n(" insertSelfEdges",(function(){!function(t){var n=_.buildLayerMatrix(t);r.forEach(n,(function(n){var e=0;r.forEach(n,(function(n,i){var o=t.node(n);o.order=i+e,r.forEach(o.selfEdges,(function(n){_.addDummyNode(t,"selfedge",{width:n.label.width,height:n.label.height,rank:o.rank,order:i+ ++e,e:n.e,label:n.label},"_se")})),delete o.selfEdges}))}))}(t)})),n(" adjustCoordinateSystem",(function(){f.adjust(t)})),n(" position",(function(){p(t)})),n(" positionSelfEdges",(function(){!function(t){r.forEach(t.nodes(),(function(n){var e=t.node(n);if("selfedge"===e.dummy){var r=t.node(e.e.v),i=r.x+r.width/2,o=r.y,s=e.x-i,a=r.height/2;t.setEdge(e.e,e.label),t.removeNode(n),e.label.points=[{x:i+2*s/3,y:o-a},{x:i+5*s/6,y:o-a},{x:i+s,y:o},{x:i+5*s/6,y:o+a},{x:i+2*s/3,y:o+a}],e.label.x=e.x,e.label.y=e.y}}))}(t)})),n(" removeBorderNodes",(function(){!function(t){r.forEach(t.nodes(),(function(n){if(t.children(n).length){var e=t.node(n),i=t.node(e.borderTop),o=t.node(e.borderBottom),s=t.node(r.last(e.borderLeft)),a=t.node(r.last(e.borderRight));e.width=Math.abs(a.x-s.x),e.height=Math.abs(o.y-i.y),e.x=s.x+e.width/2,e.y=i.y+e.height/2}})),r.forEach(t.nodes(),(function(n){"border"===t.node(n).dummy&&t.removeNode(n)}))}(t)})),n(" normalize.undo",(function(){o.undo(t)})),n(" fixupEdgeLabelCoords",(function(){!function(t){r.forEach(t.edges(),(function(n){var e=t.edge(n);if(r.has(e,"x"))switch("l"!==e.labelpos&&"r"!==e.labelpos||(e.width-=e.labeloffset),e.labelpos){case"l":e.x-=e.width/2+e.labeloffset;break;case"r":e.x+=e.width/2+e.labeloffset}}))}(t)})),n(" undoCoordinateSystem",(function(){f.undo(t)})),n(" translateGraph",(function(){!function(t){var n=Number.POSITIVE_INFINITY,e=0,i=Number.POSITIVE_INFINITY,o=0,s=t.graph(),a=s.marginx||0,u=s.marginy||0;function l(t){var r=t.x,s=t.y,a=t.width,u=t.height;n=Math.min(n,r-a/2),e=Math.max(e,r+a/2),i=Math.min(i,s-u/2),o=Math.max(o,s+u/2)}r.forEach(t.nodes(),(function(n){l(t.node(n))})),r.forEach(t.edges(),(function(n){var e=t.edge(n);r.has(e,"x")&&l(e)})),n-=a,i-=u,r.forEach(t.nodes(),(function(e){var r=t.node(e);r.x-=n,r.y-=i})),r.forEach(t.edges(),(function(e){var o=t.edge(e);r.forEach(o.points,(function(t){t.x-=n,t.y-=i})),r.has(o,"x")&&(o.x-=n),r.has(o,"y")&&(o.y-=i)})),s.width=e-n+a,s.height=o-i+u}(t)})),n(" assignNodeIntersects",(function(){!function(t){r.forEach(t.edges(),(function(n){var e,r,i=t.edge(n),o=t.node(n.v),s=t.node(n.w);i.points?(e=i.points[0],r=i.points[i.points.length-1]):(i.points=[],e=s,r=o),i.points.unshift(_.intersectRect(o,e)),i.points.push(_.intersectRect(s,r))}))}(t)})),n(" reversePoints",(function(){!function(t){r.forEach(t.edges(),(function(n){var e=t.edge(n);e.reversed&&e.points.reverse()}))}(t)})),n(" acyclic.undo",(function(){i.undo(t)}))}(n,e)})),e(" updateInputGraph",(function(){!function(t,n){r.forEach(t.nodes(),(function(e){var r=t.node(e),i=n.node(e);r&&(r.x=i.x,r.y=i.y,n.children(e).length&&(r.width=i.width,r.height=i.height))})),r.forEach(t.edges(),(function(e){var i=t.edge(e),o=n.edge(e);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)})),t.graph().width=n.graph().width,t.graph().height=n.graph().height}(t,n)}))}))};var m=["nodesep","edgesep","ranksep","marginx","marginy"],g={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},y=["acyclicer","ranker","rankdir","align"],w=["width","height"],b={width:0,height:0},x=["minlen","weight","width","height","labeloffset"],k={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},S=["labelpos"];function C(t,n){return r.mapValues(r.pick(t,n),Number)}function $(t){var n={};return r.forEach(t,(function(t,e){n[e.toLowerCase()]=t})),n}},71821:(t,n,e)=>{var r;try{r={cloneDeep:e(70709),constant:e(71914),defaults:e(28801),each:e(39724),filter:e(23820),find:e(29495),flatten:e(60567),forEach:e(98848),forIn:e(25234),has:e(3009),isUndefined:e(51865),last:e(76292),map:e(82856),mapValues:e(3234),max:e(86295),merge:e(39488),min:e(74620),minBy:e(30257),now:e(97127),pick:e(82052),range:e(84769),reduce:e(97994),sortBy:e(50449),uniqueId:e(73967),values:e(72058),zipObject:e(97652)}}catch(t){}r||(r=window._),t.exports=r},32515:(t,n,e)=>{var r=e(71821),i=e(38115);function o(t,n,e,s,a,u,l){var c=t.children(l);if(c.length){var h=i.addBorderNode(t,"_bt"),f=i.addBorderNode(t,"_bb"),d=t.node(l);t.setParent(h,l),d.borderTop=h,t.setParent(f,l),d.borderBottom=f,r.forEach(c,(function(r){o(t,n,e,s,a,u,r);var i=t.node(r),c=i.borderTop?i.borderTop:r,d=i.borderBottom?i.borderBottom:r,p=i.borderTop?s:2*s,_=c!==d?1:a-u[l]+1;t.setEdge(h,c,{weight:p,minlen:_,nestingEdge:!0}),t.setEdge(d,f,{weight:p,minlen:_,nestingEdge:!0})})),t.parent(l)||t.setEdge(n,h,{weight:0,minlen:a+u[l]})}else l!==n&&t.setEdge(n,l,{weight:0,minlen:e})}t.exports={run:function(t){var n=i.addDummyNode(t,"root",{},"_root"),e=function(t){var n={};function e(i,o){var s=t.children(i);s&&s.length&&r.forEach(s,(function(t){e(t,o+1)})),n[i]=o}return r.forEach(t.children(),(function(t){e(t,1)})),n}(t),s=r.max(r.values(e))-1,a=2*s+1;t.graph().nestingRoot=n,r.forEach(t.edges(),(function(n){t.edge(n).minlen*=a}));var u=function(t){return r.reduce(t.edges(),(function(n,e){return n+t.edge(e).weight}),0)}(t)+1;r.forEach(t.children(),(function(r){o(t,n,a,u,s,e,r)})),t.graph().nodeRankFactor=a},cleanup:function(t){var n=t.graph();t.removeNode(n.nestingRoot),delete n.nestingRoot,r.forEach(t.edges(),(function(n){t.edge(n).nestingEdge&&t.removeEdge(n)}))}}},96464:(t,n,e)=>{"use strict";var r=e(71821),i=e(38115);t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),(function(n){!function(t,n){var e,r,o,s=n.v,a=t.node(s).rank,u=n.w,l=t.node(u).rank,c=n.name,h=t.edge(n),f=h.labelRank;if(l!==a+1){for(t.removeEdge(n),o=0,++a;a{var r=e(71821);t.exports=function(t,n,e){var i,o={};r.forEach(e,(function(e){for(var r,s,a=t.parent(e);a;){if((r=t.parent(a))?(s=o[r],o[r]=a):(s=i,i=a),s&&s!==a)return void n.setEdge(s,a);a=r}}))}},45753:(t,n,e)=>{var r=e(71821);t.exports=function(t,n){return r.map(n,(function(n){var e=t.inEdges(n);if(e.length){var i=r.reduce(e,(function(n,e){var r=t.edge(e),i=t.node(e.v);return{sum:n.sum+r.weight*i.order,weight:n.weight+r.weight}}),{sum:0,weight:0});return{v:n,barycenter:i.sum/i.weight,weight:i.weight}}return{v:n}}))}},96022:(t,n,e)=>{var r=e(71821),i=e(92804).Graph;t.exports=function(t,n,e){var o=function(t){for(var n;t.hasNode(n=r.uniqueId("_root")););return n}(t),s=new i({compound:!0}).setGraph({root:o}).setDefaultNodeLabel((function(n){return t.node(n)}));return r.forEach(t.nodes(),(function(i){var a=t.node(i),u=t.parent(i);(a.rank===n||a.minRank<=n&&n<=a.maxRank)&&(s.setNode(i),s.setParent(i,u||o),r.forEach(t[e](i),(function(n){var e=n.v===i?n.w:n.v,o=s.edge(e,i),a=r.isUndefined(o)?0:o.weight;s.setEdge(e,i,{weight:t.edge(n).weight+a})})),r.has(a,"minRank")&&s.setNode(i,{borderLeft:a.borderLeft[n],borderRight:a.borderRight[n]}))})),s}},68083:(t,n,e)=>{"use strict";var r=e(71821);function i(t,n,e){for(var i=r.zipObject(e,r.map(e,(function(t,n){return n}))),o=r.flatten(r.map(n,(function(n){return r.sortBy(r.map(t.outEdges(n),(function(n){return{pos:i[n.w],weight:t.edge(n).weight}})),"pos")})),!0),s=1;s0;)n%2&&(e+=u[n+1]),u[n=n-1>>1]+=t.weight;l+=t.weight*e}))),l}t.exports=function(t,n){for(var e=0,r=1;r{"use strict";var r=e(71821),i=e(28887),o=e(68083),s=e(3121),a=e(96022),u=e(18956),l=e(92804).Graph,c=e(38115);function h(t,n,e){return r.map(n,(function(n){return a(t,n,e)}))}function f(t,n){var e=new l;r.forEach(t,(function(t){var i=t.graph().root,o=s(t,i,e,n);r.forEach(o.vs,(function(n,e){t.node(n).order=e})),u(t,e,o.vs)}))}function d(t,n){r.forEach(n,(function(n){r.forEach(n,(function(n,e){t.node(n).order=e}))}))}t.exports=function(t){var n=c.maxRank(t),e=h(t,r.range(1,n+1),"inEdges"),s=h(t,r.range(n-1,-1,-1),"outEdges"),a=i(t);d(t,a);for(var u,l=Number.POSITIVE_INFINITY,p=0,_=0;_<4;++p,++_){f(p%2?e:s,p%4>=2),a=c.buildLayerMatrix(t);var v=o(t,a);v{"use strict";var r=e(71821);t.exports=function(t){var n={},e=r.filter(t.nodes(),(function(n){return!t.children(n).length})),i=r.max(r.map(e,(function(n){return t.node(n).rank}))),o=r.map(r.range(i+1),(function(){return[]})),s=r.sortBy(e,(function(n){return t.node(n).rank}));return r.forEach(s,(function e(i){if(!r.has(n,i)){n[i]=!0;var s=t.node(i);o[s.rank].push(i),r.forEach(t.successors(i),e)}})),o}},12525:(t,n,e)=>{"use strict";var r=e(71821);t.exports=function(t,n){var e={};return r.forEach(t,(function(t,n){var i=e[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:n};r.isUndefined(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)})),r.forEach(n.edges(),(function(t){var n=e[t.v],i=e[t.w];r.isUndefined(n)||r.isUndefined(i)||(i.indegree++,n.out.push(e[t.w]))})),function(t){var n=[];function e(t){return function(n){var e,i,o,s;n.merged||(r.isUndefined(n.barycenter)||r.isUndefined(t.barycenter)||n.barycenter>=t.barycenter)&&(i=n,o=0,s=0,(e=t).weight&&(o+=e.barycenter*e.weight,s+=e.weight),i.weight&&(o+=i.barycenter*i.weight,s+=i.weight),e.vs=i.vs.concat(e.vs),e.barycenter=o/s,e.weight=s,e.i=Math.min(i.i,e.i),i.merged=!0)}}function i(n){return function(e){e.in.push(n),0==--e.indegree&&t.push(e)}}for(;t.length;){var o=t.pop();n.push(o),r.forEach(o.in.reverse(),e(o)),r.forEach(o.out,i(o))}return r.map(r.filter(n,(function(t){return!t.merged})),(function(t){return r.pick(t,["vs","i","barycenter","weight"])}))}(r.filter(e,(function(t){return!t.indegree})))}},3121:(t,n,e)=>{var r=e(71821),i=e(45753),o=e(12525),s=e(8098);t.exports=function t(n,e,a,u){var l=n.children(e),c=n.node(e),h=c?c.borderLeft:void 0,f=c?c.borderRight:void 0,d={};h&&(l=r.filter(l,(function(t){return t!==h&&t!==f})));var p=i(n,l);r.forEach(p,(function(e){if(n.children(e.v).length){var i=t(n,e.v,a,u);d[e.v]=i,r.has(i,"barycenter")&&(o=e,s=i,r.isUndefined(o.barycenter)?(o.barycenter=s.barycenter,o.weight=s.weight):(o.barycenter=(o.barycenter*o.weight+s.barycenter*s.weight)/(o.weight+s.weight),o.weight+=s.weight))}var o,s}));var _=o(p,a);!function(t,n){r.forEach(t,(function(t){t.vs=r.flatten(t.vs.map((function(t){return n[t]?n[t].vs:t})),!0)}))}(_,d);var v=s(_,u);if(h&&(v.vs=r.flatten([h,v.vs,f],!0),n.predecessors(h).length)){var m=n.node(n.predecessors(h)[0]),g=n.node(n.predecessors(f)[0]);r.has(v,"barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+m.order+g.order)/(v.weight+2),v.weight+=2}return v}},8098:(t,n,e)=>{var r=e(71821),i=e(38115);function o(t,n,e){for(var i;n.length&&(i=r.last(n)).i<=e;)n.pop(),t.push(i.vs),e++;return e}t.exports=function(t,n){var e,s=i.partition(t,(function(t){return r.has(t,"barycenter")})),a=s.lhs,u=r.sortBy(s.rhs,(function(t){return-t.i})),l=[],c=0,h=0,f=0;a.sort((e=!!n,function(t,n){return t.barycentern.barycenter?1:e?n.i-t.i:t.i-n.i})),f=o(l,u,f),r.forEach(a,(function(t){f+=t.vs.length,l.push(t.vs),c+=t.barycenter*t.weight,h+=t.weight,f=o(l,u,f)}));var d={vs:r.flatten(l,!0)};return h&&(d.barycenter=c/h,d.weight=h),d}},15511:(t,n,e)=>{var r=e(71821);t.exports=function(t){var n=function(t){var n={},e=0;return r.forEach(t.children(),(function i(o){var s=e;r.forEach(t.children(o),i),n[o]={low:s,lim:e++}})),n}(t);r.forEach(t.graph().dummyChains,(function(e){for(var r=t.node(e),i=r.edgeObj,o=function(t,n,e,r){var i,o,s=[],a=[],u=Math.min(n[e].low,n[r].low),l=Math.max(n[e].lim,n[r].lim);i=e;do{i=t.parent(i),s.push(i)}while(i&&(n[i].low>u||l>n[i].lim));for(o=i,i=r;(i=t.parent(i))!==o;)a.push(i);return{path:s.concat(a.reverse()),lca:o}}(t,n,i.v,i.w),s=o.path,a=o.lca,u=0,l=s[u],c=!0;e!==i.w;){if(r=t.node(e),c){for(;(l=s[u])!==a&&t.node(l).maxRank{"use strict";var r=e(71821),i=e(92804).Graph,o=e(38115);function s(t,n){var e={};return r.reduce(n,(function(n,i){var o=0,s=0,a=n.length,l=r.last(i);return r.forEach(i,(function(n,c){var h=function(t,n){if(t.node(n).dummy)return r.find(t.predecessors(n),(function(n){return t.node(n).dummy}))}(t,n),f=h?t.node(h).order:a;(h||n===l)&&(r.forEach(i.slice(s,c+1),(function(n){r.forEach(t.predecessors(n),(function(r){var i=t.node(r),s=i.order;!(sa)&&u(e,n,l)}))}))}return r.reduce(n,(function(n,e){var o,s=-1,a=0;return r.forEach(e,(function(r,u){if("border"===t.node(r).dummy){var l=t.predecessors(r);l.length&&(o=t.node(l[0]).order,i(e,a,u,s,o),a=u,s=o)}i(e,a,e.length,o,n.length)})),e})),e}function u(t,n,e){if(n>e){var r=n;n=e,e=r}var i=t[n];i||(t[n]=i={}),i[e]=!0}function l(t,n,e){if(n>e){var i=n;n=e,e=i}return r.has(t[n],e)}function c(t,n,e,i){var o={},s={},a={};return r.forEach(n,(function(t){r.forEach(t,(function(t,n){o[t]=t,s[t]=t,a[t]=n}))})),r.forEach(n,(function(t){var n=-1;r.forEach(t,(function(t){var u=i(t);if(u.length){u=r.sortBy(u,(function(t){return a[t]}));for(var c=(u.length-1)/2,h=Math.floor(c),f=Math.ceil(c);h<=f;++h){var d=u[h];s[t]===t&&n{"use strict";var r=e(71821),i=e(38115),o=e(33648).positionX;t.exports=function(t){(function(t){var n=i.buildLayerMatrix(t),e=t.graph().ranksep,o=0;r.forEach(n,(function(n){var i=r.max(r.map(n,(function(n){return t.node(n).height})));r.forEach(n,(function(n){t.node(n).y=o+i/2})),o+=i+e}))})(t=i.asNonCompoundGraph(t)),r.forEach(o(t),(function(n,e){t.node(e).x=n}))}},74631:(t,n,e)=>{"use strict";var r=e(71821),i=e(92804).Graph,o=e(12331).slack;function s(t,n){return r.forEach(t.nodes(),(function e(i){r.forEach(n.nodeEdges(i),(function(r){var s=r.v,a=i===s?r.w:s;t.hasNode(a)||o(n,r)||(t.setNode(a,{}),t.setEdge(i,a,{}),e(a))}))})),t.nodeCount()}function a(t,n){return r.minBy(n.edges(),(function(e){if(t.hasNode(e.v)!==t.hasNode(e.w))return o(n,e)}))}function u(t,n,e){r.forEach(t.nodes(),(function(t){n.node(t).rank+=e}))}t.exports=function(t){var n,e,r=new i({directed:!1}),l=t.nodes()[0],c=t.nodeCount();for(r.setNode(l,{});s(r,t){"use strict";var r=e(12331).longestPath,i=e(74631),o=e(1986);t.exports=function(t){switch(t.graph().ranker){case"network-simplex":default:!function(t){o(t)}(t);break;case"tight-tree":!function(t){r(t),i(t)}(t);break;case"longest-path":s(t)}};var s=r},1986:(t,n,e)=>{"use strict";var r=e(71821),i=e(74631),o=e(12331).slack,s=e(12331).longestPath,a=e(92804).alg.preorder,u=e(92804).alg.postorder,l=e(38115).simplify;function c(t){t=l(t),s(t);var n,e=i(t);for(d(e),h(e,t);n=_(e);)m(e,t,n,v(e,t,n))}function h(t,n){var e=u(t,t.nodes());e=e.slice(0,e.length-1),r.forEach(e,(function(e){!function(t,n,e){var r=t.node(e).parent;t.edge(e,r).cutvalue=f(t,n,e)}(t,n,e)}))}function f(t,n,e){var i=t.node(e).parent,o=!0,s=n.edge(e,i),a=0;return s||(o=!1,s=n.edge(i,e)),a=s.weight,r.forEach(n.nodeEdges(e),(function(r){var s,u,l=r.v===e,c=l?r.w:r.v;if(c!==i){var h=l===o,f=n.edge(r).weight;if(a+=h?f:-f,s=e,u=c,t.hasEdge(s,u)){var d=t.edge(e,c).cutvalue;a+=h?-d:d}}})),a}function d(t,n){arguments.length<2&&(n=t.nodes()[0]),p(t,{},1,n)}function p(t,n,e,i,o){var s=e,a=t.node(i);return n[i]=!0,r.forEach(t.neighbors(i),(function(o){r.has(n,o)||(e=p(t,n,e,o,i))})),a.low=s,a.lim=e++,o?a.parent=o:delete a.parent,e}function _(t){return r.find(t.edges(),(function(n){return t.edge(n).cutvalue<0}))}function v(t,n,e){var i=e.v,s=e.w;n.hasEdge(i,s)||(i=e.w,s=e.v);var a=t.node(i),u=t.node(s),l=a,c=!1;a.lim>u.lim&&(l=u,c=!0);var h=r.filter(n.edges(),(function(n){return c===g(0,t.node(n.v),l)&&c!==g(0,t.node(n.w),l)}));return r.minBy(h,(function(t){return o(n,t)}))}function m(t,n,e,i){var o=e.v,s=e.w;t.removeEdge(o,s),t.setEdge(i.v,i.w,{}),d(t),h(t,n),function(t,n){var e=r.find(t.nodes(),(function(t){return!n.node(t).parent})),i=a(t,e);i=i.slice(1),r.forEach(i,(function(e){var r=t.node(e).parent,i=n.edge(e,r),o=!1;i||(i=n.edge(r,e),o=!0),n.node(e).rank=n.node(r).rank+(o?i.minlen:-i.minlen)}))}(t,n)}function g(t,n,e){return e.low<=n.lim&&n.lim<=e.lim}t.exports=c,c.initLowLimValues=d,c.initCutValues=h,c.calcCutValue=f,c.leaveEdge=_,c.enterEdge=v,c.exchangeEdges=m},12331:(t,n,e)=>{"use strict";var r=e(71821);t.exports={longestPath:function(t){var n={};r.forEach(t.sources(),(function e(i){var o=t.node(i);if(r.has(n,i))return o.rank;n[i]=!0;var s=r.min(r.map(t.outEdges(i),(function(n){return e(n.w)-t.edge(n).minlen})));return s!==Number.POSITIVE_INFINITY&&null!=s||(s=0),o.rank=s}))},slack:function(t,n){return t.node(n.w).rank-t.node(n.v).rank-t.edge(n).minlen}}},38115:(t,n,e)=>{"use strict";var r=e(71821),i=e(92804).Graph;function o(t,n,e,i){var o;do{o=r.uniqueId(i)}while(t.hasNode(o));return e.dummy=n,t.setNode(o,e),o}function s(t){return r.max(r.map(t.nodes(),(function(n){var e=t.node(n).rank;if(!r.isUndefined(e))return e})))}t.exports={addDummyNode:o,simplify:function(t){var n=(new i).setGraph(t.graph());return r.forEach(t.nodes(),(function(e){n.setNode(e,t.node(e))})),r.forEach(t.edges(),(function(e){var r=n.edge(e.v,e.w)||{weight:0,minlen:1},i=t.edge(e);n.setEdge(e.v,e.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),n},asNonCompoundGraph:function(t){var n=new i({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),(function(e){t.children(e).length||n.setNode(e,t.node(e))})),r.forEach(t.edges(),(function(e){n.setEdge(e,t.edge(e))})),n},successorWeights:function(t){var n=r.map(t.nodes(),(function(n){var e={};return r.forEach(t.outEdges(n),(function(n){e[n.w]=(e[n.w]||0)+t.edge(n).weight})),e}));return r.zipObject(t.nodes(),n)},predecessorWeights:function(t){var n=r.map(t.nodes(),(function(n){var e={};return r.forEach(t.inEdges(n),(function(n){e[n.v]=(e[n.v]||0)+t.edge(n).weight})),e}));return r.zipObject(t.nodes(),n)},intersectRect:function(t,n){var e,r,i=t.x,o=t.y,s=n.x-i,a=n.y-o,u=t.width/2,l=t.height/2;if(!s&&!a)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(a)*u>Math.abs(s)*l?(a<0&&(l=-l),e=l*s/a,r=l):(s<0&&(u=-u),e=u,r=u*a/s),{x:i+e,y:o+r}},buildLayerMatrix:function(t){var n=r.map(r.range(s(t)+1),(function(){return[]}));return r.forEach(t.nodes(),(function(e){var i=t.node(e),o=i.rank;r.isUndefined(o)||(n[o][i.order]=e)})),n},normalizeRanks:function(t){var n=r.min(r.map(t.nodes(),(function(n){return t.node(n).rank})));r.forEach(t.nodes(),(function(e){var i=t.node(e);r.has(i,"rank")&&(i.rank-=n)}))},removeEmptyRanks:function(t){var n=r.min(r.map(t.nodes(),(function(n){return t.node(n).rank}))),e=[];r.forEach(t.nodes(),(function(r){var i=t.node(r).rank-n;e[i]||(e[i]=[]),e[i].push(r)}));var i=0,o=t.graph().nodeRankFactor;r.forEach(e,(function(n,e){r.isUndefined(n)&&e%o!=0?--i:i&&r.forEach(n,(function(n){t.node(n).rank+=i}))}))},addBorderNode:function(t,n,e,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=e,i.order=r),o(t,"border",i,n)},maxRank:s,partition:function(t,n){var e={lhs:[],rhs:[]};return r.forEach(t,(function(t){n(t)?e.lhs.push(t):e.rhs.push(t)})),e},time:function(t,n){var e=r.now();try{return n()}finally{console.log(t+" time: "+(r.now()-e)+"ms")}},notime:function(t,n){return n()}}},81647:t=>{t.exports="0.8.5"},18409:t=>{var n=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},e=-1;n.Diff=function(t,n){return[t,n]},n.prototype.diff_main=function(t,e,r,i){void 0===i&&(i=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var o=i;if(null==t||null==e)throw new Error("Null input. (diff_main)");if(t==e)return t?[new n.Diff(0,t)]:[];void 0===r&&(r=!0);var s=r,a=this.diff_commonPrefix(t,e),u=t.substring(0,a);t=t.substring(a),e=e.substring(a),a=this.diff_commonSuffix(t,e);var l=t.substring(t.length-a);t=t.substring(0,t.length-a),e=e.substring(0,e.length-a);var c=this.diff_compute_(t,e,s,o);return u&&c.unshift(new n.Diff(0,u)),l&&c.push(new n.Diff(0,l)),this.diff_cleanupMerge(c),c},n.prototype.diff_compute_=function(t,r,i,o){var s;if(!t)return[new n.Diff(1,r)];if(!r)return[new n.Diff(e,t)];var a=t.length>r.length?t:r,u=t.length>r.length?r:t,l=a.indexOf(u);if(-1!=l)return s=[new n.Diff(1,a.substring(0,l)),new n.Diff(0,u),new n.Diff(1,a.substring(l+u.length))],t.length>r.length&&(s[0][0]=s[2][0]=e),s;if(1==u.length)return[new n.Diff(e,t),new n.Diff(1,r)];var c=this.diff_halfMatch_(t,r);if(c){var h=c[0],f=c[1],d=c[2],p=c[3],_=c[4],v=this.diff_main(h,d,i,o),m=this.diff_main(f,p,i,o);return v.concat([new n.Diff(0,_)],m)}return i&&t.length>100&&r.length>100?this.diff_lineMode_(t,r,o):this.diff_bisect_(t,r,o)},n.prototype.diff_lineMode_=function(t,r,i){var o=this.diff_linesToChars_(t,r);t=o.chars1,r=o.chars2;var s=o.lineArray,a=this.diff_main(t,r,!1,i);this.diff_charsToLines_(a,s),this.diff_cleanupSemantic(a),a.push(new n.Diff(0,""));for(var u=0,l=0,c=0,h="",f="";u=1&&c>=1){a.splice(u-l-c,l+c),u=u-l-c;for(var d=this.diff_main(h,f,!1,i),p=d.length-1;p>=0;p--)a.splice(u,0,d[p]);u+=d.length}c=0,l=0,h="",f=""}u++}return a.pop(),a},n.prototype.diff_bisect_=function(t,r,i){for(var o=t.length,s=r.length,a=Math.ceil((o+s)/2),u=a,l=2*a,c=new Array(l),h=new Array(l),f=0;fi);y++){for(var w=-y+_;w<=y-v;w+=2){for(var b=u+w,x=(E=w==-y||w!=y&&c[b-1]o)v+=2;else if(x>s)_+=2;else if(p&&(C=u+d-w)>=0&&C=(S=o-h[C]))return this.diff_bisectSplit_(t,r,E,x,i)}for(var k=-y+m;k<=y-g;k+=2){for(var S,C=u+k,$=(S=k==-y||k!=y&&h[C-1]o)g+=2;else if($>s)m+=2;else if(!p){var E;if((b=u+d-k)>=0&&b=(S=o-S))return this.diff_bisectSplit_(t,r,E,x,i)}}}return[new n.Diff(e,t),new n.Diff(1,r)]},n.prototype.diff_bisectSplit_=function(t,n,e,r,i){var o=t.substring(0,e),s=n.substring(0,r),a=t.substring(e),u=n.substring(r),l=this.diff_main(o,s,!1,i),c=this.diff_main(a,u,!1,i);return l.concat(c)},n.prototype.diff_linesToChars_=function(t,n){var e=[],r={};function i(t){for(var n="",i=0,s=-1,a=e.length;sr?t=t.substring(e-r):en.length?t:n,r=t.length>n.length?n:t;if(e.length<4||2*r.length=t.length?[r,o,s,a,c]:null}var s,a,u,l,c,h=o(e,r,Math.ceil(e.length/4)),f=o(e,r,Math.ceil(e.length/2));return h||f?(s=f?h&&h[4].length>f[4].length?h:f:h,t.length>n.length?(a=s[0],u=s[1],l=s[2],c=s[3]):(l=s[0],c=s[1],a=s[2],u=s[3]),[a,u,l,c,s[4]]):null},n.prototype.diff_cleanupSemantic=function(t){for(var r=!1,i=[],o=0,s=null,a=0,u=0,l=0,c=0,h=0;a0?i[o-1]:-1,u=0,l=0,c=0,h=0,s=null,r=!0)),a++;for(r&&this.diff_cleanupMerge(t),this.diff_cleanupSemanticLossless(t),a=1;a=_?(p>=f.length/2||p>=d.length/2)&&(t.splice(a,0,new n.Diff(0,d.substring(0,p))),t[a-1][1]=f.substring(0,f.length-p),t[a+1][1]=d.substring(p),a++):(_>=f.length/2||_>=d.length/2)&&(t.splice(a,0,new n.Diff(0,f.substring(0,_))),t[a-1][0]=1,t[a-1][1]=d.substring(0,d.length-_),t[a+1][0]=e,t[a+1][1]=f.substring(_),a++),a++}a++}},n.prototype.diff_cleanupSemanticLossless=function(t){function e(t,e){if(!t||!e)return 6;var r=t.charAt(t.length-1),i=e.charAt(0),o=r.match(n.nonAlphaNumericRegex_),s=i.match(n.nonAlphaNumericRegex_),a=o&&r.match(n.whitespaceRegex_),u=s&&i.match(n.whitespaceRegex_),l=a&&r.match(n.linebreakRegex_),c=u&&i.match(n.linebreakRegex_),h=l&&t.match(n.blanklineEndRegex_),f=c&&e.match(n.blanklineStartRegex_);return h||f?5:l||c?4:o&&!a&&u?3:a||u?2:o||s?1:0}for(var r=1;r=f&&(f=d,l=i,c=o,h=s)}t[r-1][1]!=l&&(l?t[r-1][1]=l:(t.splice(r-1,1),r--),t[r][1]=c,h?t[r+1][1]=h:(t.splice(r+1,1),r--))}r++}},n.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,n.whitespaceRegex_=/\s/,n.linebreakRegex_=/[\r\n]/,n.blanklineEndRegex_=/\n\r?\n$/,n.blanklineStartRegex_=/^\r?\n\r?\n/,n.prototype.diff_cleanupEfficiency=function(t){for(var r=!1,i=[],o=0,s=null,a=0,u=!1,l=!1,c=!1,h=!1;a0?i[o-1]:-1,c=h=!1),r=!0)),a++;r&&this.diff_cleanupMerge(t)},n.prototype.diff_cleanupMerge=function(t){t.push(new n.Diff(0,""));for(var r,i=0,o=0,s=0,a="",u="";i1?(0!==o&&0!==s&&(0!==(r=this.diff_commonPrefix(u,a))&&(i-o-s>0&&0==t[i-o-s-1][0]?t[i-o-s-1][1]+=u.substring(0,r):(t.splice(0,0,new n.Diff(0,u.substring(0,r))),i++),u=u.substring(r),a=a.substring(r)),0!==(r=this.diff_commonSuffix(u,a))&&(t[i][1]=u.substring(u.length-r)+t[i][1],u=u.substring(0,u.length-r),a=a.substring(0,a.length-r))),i-=o+s,t.splice(i,o+s),a.length&&(t.splice(i,0,new n.Diff(e,a)),i++),u.length&&(t.splice(i,0,new n.Diff(1,u)),i++),i++):0!==i&&0==t[i-1][0]?(t[i-1][1]+=t[i][1],t.splice(i,1)):i++,s=0,o=0,a="",u=""}""===t[t.length-1][1]&&t.pop();var l=!1;for(i=1;in));r++)s=i,a=o;return t.length!=r&&t[r][0]===e?a:a+(n-s)},n.prototype.diff_prettyHtml=function(t){for(var n=[],r=/&/g,i=//g,s=/\n/g,a=0;a");switch(u){case 1:n[a]=''+l+"";break;case e:n[a]=''+l+"";break;case 0:n[a]=""+l+""}}return n.join("")},n.prototype.diff_text1=function(t){for(var n=[],e=0;ethis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var r=this.match_alphabet_(n),i=this;function o(t,r){var o=t/n.length,s=Math.abs(e-r);return i.Match_Distance?o+s/i.Match_Distance:s?1:o}var s=this.Match_Threshold,a=t.indexOf(n,e);-1!=a&&(s=Math.min(o(0,a),s),-1!=(a=t.lastIndexOf(n,e+n.length))&&(s=Math.min(o(0,a),s)));var u,l,c=1<=p;m--){var g=r[t.charAt(m-1)];if(v[m]=0===d?(v[m+1]<<1|1)&g:(v[m+1]<<1|1)&g|(h[m+1]|h[m])<<1|1|h[m+1],v[m]&c){var y=o(d,m-1);if(y<=s){if(s=y,!((a=m-1)>e))break;p=Math.max(1,2*e-a)}}}if(o(d+1,e)>s)break;h=v}return a},n.prototype.match_alphabet_=function(t){for(var n={},e=0;e2&&(this.diff_cleanupSemantic(s),this.diff_cleanupEfficiency(s));else if(t&&"object"==typeof t&&void 0===r&&void 0===i)s=t,o=this.diff_text1(s);else if("string"==typeof t&&r&&"object"==typeof r&&void 0===i)o=t,s=r;else{if("string"!=typeof t||"string"!=typeof r||!i||"object"!=typeof i)throw new Error("Unknown call format to patch_make.");o=t,s=i}if(0===s.length)return[];for(var a=[],u=new n.patch_obj,l=0,c=0,h=0,f=o,d=o,p=0;p=2*this.Patch_Margin&&l&&(this.patch_addContext_(u,f),a.push(u),u=new n.patch_obj,l=0,f=d,c=h)}1!==_&&(c+=v.length),_!==e&&(h+=v.length)}return l&&(this.patch_addContext_(u,f),a.push(u)),a},n.prototype.patch_deepCopy=function(t){for(var e=[],r=0;rthis.Match_MaxBits?-1!=(a=this.match_main(n,c.substring(0,this.Match_MaxBits),l))&&(-1==(h=this.match_main(n,c.substring(c.length-this.Match_MaxBits),l+c.length-this.Match_MaxBits))||a>=h)&&(a=-1):a=this.match_main(n,c,l),-1==a)o[s]=!1,i-=t[s].length2-t[s].length1;else if(o[s]=!0,i=a-l,c==(u=-1==h?n.substring(a,a+c.length):n.substring(a,h+this.Match_MaxBits)))n=n.substring(0,a)+this.diff_text2(t[s].diffs)+n.substring(a+c.length);else{var f=this.diff_main(c,u,!1);if(c.length>this.Match_MaxBits&&this.diff_levenshtein(f)/c.length>this.Patch_DeleteThreshold)o[s]=!1;else{this.diff_cleanupSemanticLossless(f);for(var d,p=0,_=0;_s[0][1].length){var a=e-s[0][1].length;s[0][1]=r.substring(s[0][1].length)+s[0][1],o.start1-=a,o.start2-=a,o.length1+=a,o.length2+=a}return 0==(s=(o=t[t.length-1]).diffs).length||0!=s[s.length-1][0]?(s.push(new n.Diff(0,r)),o.length1+=e,o.length2+=e):e>s[s.length-1][1].length&&(a=e-s[s.length-1][1].length,s[s.length-1][1]+=r.substring(0,a),o.length1+=a,o.length2+=a),r},n.prototype.patch_splitMax=function(t){for(var r=this.Match_MaxBits,i=0;i2*r?(l.length1+=f.length,s+=f.length,c=!1,l.diffs.push(new n.Diff(h,f)),o.diffs.shift()):(f=f.substring(0,r-l.length1-this.Patch_Margin),l.length1+=f.length,s+=f.length,0===h?(l.length2+=f.length,a+=f.length):c=!1,l.diffs.push(new n.Diff(h,f)),f==o.diffs[0][1]?o.diffs.shift():o.diffs[0][1]=o.diffs[0][1].substring(f.length))}u=(u=this.diff_text2(l.diffs)).substring(u.length-this.Patch_Margin);var d=this.diff_text1(o.diffs).substring(0,this.Patch_Margin);""!==d&&(l.length1+=d.length,l.length2+=d.length,0!==l.diffs.length&&0===l.diffs[l.diffs.length-1][0]?l.diffs[l.diffs.length-1][1]+=d:l.diffs.push(new n.Diff(0,d))),c||t.splice(++i,0,l)}}},n.prototype.patch_toText=function(t){for(var n=[],e=0;e{"use strict";e.r(n),e.d(n,{HTML5DragTransition:()=>o,MouseTransition:()=>s,MultiBackend:()=>c,PreviewList:()=>u,TouchTransition:()=>i,createTransition:()=>r,default:()=>h});const r=function(t,n){return{_isMBTransition:!0,event:t,check:n}};var i=r("touchstart",(function(t){return null!=t.touches})),o=r("dragstart",(function(t){return!!t.type&&(-1!==t.type.indexOf("drag")||-1!==t.type.indexOf("drop"))})),s=r("mousedown",(function(t){return!!t.type&&-1===t.type.indexOf("touch")&&-1!==t.type.indexOf("mouse")}));function a(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,o=!0,s=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}(n.previews);try{for(r.s();!(e=r.n()).done;)e.value.backendChanged(t)}catch(t){r.e(t)}finally{r.f()}},this.previews=[]};function l(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e{"use strict";t.exports=function t(n,e){if(n===e)return!0;if(n&&e&&"object"==typeof n&&"object"==typeof e){if(n.constructor!==e.constructor)return!1;var r,i,o;if(Array.isArray(n)){if((r=n.length)!=e.length)return!1;for(i=r;0!=i--;)if(!t(n[i],e[i]))return!1;return!0}if(n.constructor===RegExp)return n.source===e.source&&n.flags===e.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===e.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===e.toString();if((r=(o=Object.keys(n)).length)!==Object.keys(e).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(e,o[i]))return!1;for(i=r;0!=i--;){var s=o[i];if(!t(n[s],e[s]))return!1}return!0}return n!=n&&e!=e}},53319:(t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.deinterlace=void 0,n.deinterlace=function(t,n){for(var e=new Array(t.length),r=t.length/n,i=function(r,i){var o=t.slice(i*n,(i+1)*n);e.splice.apply(e,[r*n,n].concat(o))},o=[0,4,2,1],s=[8,8,4,2],a=0,u=0;u<4;u++)for(var l=o[u];l{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.decompressFrames=n.decompressFrame=n.parseGIF=void 0;var r,i=(r=e(40288))&&r.__esModule?r:{default:r},o=e(46894),s=e(46086),a=e(53319),u=e(77353);n.parseGIF=function(t){var n=new Uint8Array(t);return(0,o.parse)((0,s.buildStream)(n),i.default)};var l=function(t,n,e){if(t.image){var r=t.image,i=r.descriptor.width*r.descriptor.height,o=(0,u.lzw)(r.data.minCodeSize,r.data.blocks,i);r.descriptor.lct.interlaced&&(o=(0,a.deinterlace)(o,r.descriptor.width));var s={pixels:o,dims:{top:t.image.descriptor.top,left:t.image.descriptor.left,width:t.image.descriptor.width,height:t.image.descriptor.height}};return r.descriptor.lct&&r.descriptor.lct.exists?s.colorTable=r.lct:s.colorTable=n,t.gce&&(s.delay=10*(t.gce.delay||10),s.disposalType=t.gce.extras.disposal,t.gce.extras.transparentColorGiven&&(s.transparentIndex=t.gce.transparentColorIndex)),e&&(s.patch=function(t){for(var n=t.pixels.length,e=new Uint8ClampedArray(4*n),r=0;r{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.lzw=void 0,n.lzw=function(t,n,e){var r,i,o,s,a,u,l,c,h,f,d,p,_,v,m,g,y=4096,w=e,b=new Array(e),x=new Array(y),k=new Array(y),S=new Array(4097);for(a=1+(i=1<<(f=t)),r=i+2,l=-1,o=(1<<(s=f+1))-1,c=0;c>=s,p-=s,c>r||c==a)break;if(c==i){o=(1<<(s=f+1))-1,r=i+2,l=-1;continue}if(-1==l){S[v++]=k[c],l=c,_=c;continue}for(u=c,c==r&&(S[v++]=_,c=l);c>i;)S[v++]=k[c],c=x[c];_=255&k[c],S[v++]=_,r{var r=e(72666);t.exports={Graph:r.Graph,json:e(43603),alg:e(52523),version:r.version}},29150:(t,n,e)=>{var r=e(24545);t.exports=function(t){var n,e={},i=[];function o(i){r.has(e,i)||(e[i]=!0,n.push(i),r.each(t.successors(i),o),r.each(t.predecessors(i),o))}return r.each(t.nodes(),(function(t){n=[],o(t),n.length&&i.push(n)})),i}},40929:(t,n,e)=>{var r=e(24545);function i(t,n,e,o,s,a){r.has(o,n)||(o[n]=!0,e||a.push(n),r.each(s(n),(function(n){i(t,n,e,o,s,a)})),e&&a.push(n))}t.exports=function(t,n,e){r.isArray(n)||(n=[n]);var o=(t.isDirected()?t.successors:t.neighbors).bind(t),s=[],a={};return r.each(n,(function(n){if(!t.hasNode(n))throw new Error("Graph does not have node: "+n);i(t,n,"post"===e,a,o,s)})),s}},25684:(t,n,e)=>{var r=e(20401),i=e(24545);t.exports=function(t,n,e){return i.transform(t.nodes(),(function(i,o){i[o]=r(t,o,n,e)}),{})}},20401:(t,n,e)=>{var r=e(24545),i=e(694);t.exports=function(t,n,e,r){return function(t,n,e,r){var o,s,a={},u=new i,l=function(t){var n=t.v!==o?t.v:t.w,r=a[n],i=e(t),l=s.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);l0&&(o=u.removeMin(),(s=a[o]).distance!==Number.POSITIVE_INFINITY);)r(o).forEach(l);return a}(t,String(n),e||o,r||function(n){return t.outEdges(n)})};var o=r.constant(1)},51127:(t,n,e)=>{var r=e(24545),i=e(23594);t.exports=function(t){return r.filter(i(t),(function(n){return n.length>1||1===n.length&&t.hasEdge(n[0],n[0])}))}},34777:(t,n,e)=>{var r=e(24545);t.exports=function(t,n,e){return function(t,n,e){var r={},i=t.nodes();return i.forEach((function(t){r[t]={},r[t][t]={distance:0},i.forEach((function(n){t!==n&&(r[t][n]={distance:Number.POSITIVE_INFINITY})})),e(t).forEach((function(e){var i=e.v===t?e.w:e.v,o=n(e);r[t][i]={distance:o,predecessor:t}}))})),i.forEach((function(t){var n=r[t];i.forEach((function(e){var o=r[e];i.forEach((function(e){var r=o[t],i=n[e],s=o[e],a=r.distance+i.distance;a{t.exports={components:e(29150),dijkstra:e(20401),dijkstraAll:e(25684),findCycles:e(51127),floydWarshall:e(34777),isAcyclic:e(29736),postorder:e(66843),preorder:e(1137),prim:e(94994),tarjan:e(23594),topsort:e(8332)}},29736:(t,n,e)=>{var r=e(8332);t.exports=function(t){try{r(t)}catch(t){if(t instanceof r.CycleException)return!1;throw t}return!0}},66843:(t,n,e)=>{var r=e(40929);t.exports=function(t,n){return r(t,n,"post")}},1137:(t,n,e)=>{var r=e(40929);t.exports=function(t,n){return r(t,n,"pre")}},94994:(t,n,e)=>{var r=e(24545),i=e(89381),o=e(694);t.exports=function(t,n){var e,s=new i,a={},u=new o;function l(t){var r=t.v===e?t.w:t.v,i=u.priority(r);if(void 0!==i){var o=n(t);o0;){if(e=u.removeMin(),r.has(a,e))s.setEdge(e,a[e]);else{if(c)throw new Error("Input graph is not connected: "+t);c=!0}t.nodeEdges(e).forEach(l)}return s}},23594:(t,n,e)=>{var r=e(24545);t.exports=function(t){var n=0,e=[],i={},o=[];function s(a){var u=i[a]={onStack:!0,lowlink:n,index:n++};if(e.push(a),t.successors(a).forEach((function(t){r.has(i,t)?i[t].onStack&&(u.lowlink=Math.min(u.lowlink,i[t].index)):(s(t),u.lowlink=Math.min(u.lowlink,i[t].lowlink))})),u.lowlink===u.index){var l,c=[];do{l=e.pop(),i[l].onStack=!1,c.push(l)}while(a!==l);o.push(c)}}return t.nodes().forEach((function(t){r.has(i,t)||s(t)})),o}},8332:(t,n,e)=>{var r=e(24545);function i(t){var n={},e={},i=[];if(r.each(t.sinks(),(function s(a){if(r.has(e,a))throw new o;r.has(n,a)||(e[a]=!0,n[a]=!0,r.each(t.predecessors(a),s),delete e[a],i.push(a))})),r.size(n)!==t.nodeCount())throw new o;return i}function o(){}t.exports=i,i.CycleException=o,o.prototype=new Error},694:(t,n,e)=>{var r=e(24545);function i(){this._arr=[],this._keyIndices={}}t.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map((function(t){return t.key}))},i.prototype.has=function(t){return r.has(this._keyIndices,t)},i.prototype.priority=function(t){var n=this._keyIndices[t];if(void 0!==n)return this._arr[n].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,n){var e=this._keyIndices;if(t=String(t),!r.has(e,t)){var i=this._arr,o=i.length;return e[t]=o,i.push({key:t,priority:n}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},i.prototype.decrease=function(t,n){var e=this._keyIndices[t];if(n>this._arr[e].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[e].priority+" New: "+n);this._arr[e].priority=n,this._decrease(e)},i.prototype._heapify=function(t){var n=this._arr,e=2*t,r=e+1,i=t;e>1].priority{"use strict";var r=e(24545);t.exports=a;var i="\0",o="\0",s="";function a(t){this._isDirected=!r.has(t,"directed")||t.directed,this._isMultigraph=!!r.has(t,"multigraph")&&t.multigraph,this._isCompound=!!r.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[o]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function u(t,n){t[n]?t[n]++:t[n]=1}function l(t,n){--t[n]||delete t[n]}function c(t,n,e,o){var a=""+n,u=""+e;if(!t&&a>u){var l=a;a=u,u=l}return a+s+u+s+(r.isUndefined(o)?i:o)}function h(t,n){return c(t,n.v,n.w,n.name)}a.prototype._nodeCount=0,a.prototype._edgeCount=0,a.prototype.isDirected=function(){return this._isDirected},a.prototype.isMultigraph=function(){return this._isMultigraph},a.prototype.isCompound=function(){return this._isCompound},a.prototype.setGraph=function(t){return this._label=t,this},a.prototype.graph=function(){return this._label},a.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},a.prototype.nodeCount=function(){return this._nodeCount},a.prototype.nodes=function(){return r.keys(this._nodes)},a.prototype.sources=function(){var t=this;return r.filter(this.nodes(),(function(n){return r.isEmpty(t._in[n])}))},a.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),(function(n){return r.isEmpty(t._out[n])}))},a.prototype.setNodes=function(t,n){var e=arguments,i=this;return r.each(t,(function(t){e.length>1?i.setNode(t,n):i.setNode(t)})),this},a.prototype.setNode=function(t,n){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=n),this):(this._nodes[t]=arguments.length>1?n:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=o,this._children[t]={},this._children[o][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},a.prototype.node=function(t){return this._nodes[t]},a.prototype.hasNode=function(t){return r.has(this._nodes,t)},a.prototype.removeNode=function(t){var n=this;if(r.has(this._nodes,t)){var e=function(t){n.removeEdge(n._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),(function(t){n.setParent(t)})),delete this._children[t]),r.each(r.keys(this._in[t]),e),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},a.prototype.setParent=function(t,n){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(n))n=o;else{for(var e=n+="";!r.isUndefined(e);e=this.parent(e))if(e===t)throw new Error("Setting "+n+" as parent of "+t+" would create a cycle");this.setNode(n)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=n,this._children[n][t]=!0,this},a.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},a.prototype.parent=function(t){if(this._isCompound){var n=this._parent[t];if(n!==o)return n}},a.prototype.children=function(t){if(r.isUndefined(t)&&(t=o),this._isCompound){var n=this._children[t];if(n)return r.keys(n)}else{if(t===o)return this.nodes();if(this.hasNode(t))return[]}},a.prototype.predecessors=function(t){var n=this._preds[t];if(n)return r.keys(n)},a.prototype.successors=function(t){var n=this._sucs[t];if(n)return r.keys(n)},a.prototype.neighbors=function(t){var n=this.predecessors(t);if(n)return r.union(n,this.successors(t))},a.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},a.prototype.filterNodes=function(t){var n=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});n.setGraph(this.graph());var e=this;r.each(this._nodes,(function(e,r){t(r)&&n.setNode(r,e)})),r.each(this._edgeObjs,(function(t){n.hasNode(t.v)&&n.hasNode(t.w)&&n.setEdge(t,e.edge(t))}));var i={};function o(t){var r=e.parent(t);return void 0===r||n.hasNode(r)?(i[t]=r,r):r in i?i[r]:o(r)}return this._isCompound&&r.each(n.nodes(),(function(t){n.setParent(t,o(t))})),n},a.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},a.prototype.edgeCount=function(){return this._edgeCount},a.prototype.edges=function(){return r.values(this._edgeObjs)},a.prototype.setPath=function(t,n){var e=this,i=arguments;return r.reduce(t,(function(t,r){return i.length>1?e.setEdge(t,r,n):e.setEdge(t,r),r})),this},a.prototype.setEdge=function(){var t,n,e,i,o=!1,s=arguments[0];"object"==typeof s&&null!==s&&"v"in s?(t=s.v,n=s.w,e=s.name,2===arguments.length&&(i=arguments[1],o=!0)):(t=s,n=arguments[1],e=arguments[3],arguments.length>2&&(i=arguments[2],o=!0)),t=""+t,n=""+n,r.isUndefined(e)||(e=""+e);var a=c(this._isDirected,t,n,e);if(r.has(this._edgeLabels,a))return o&&(this._edgeLabels[a]=i),this;if(!r.isUndefined(e)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(n),this._edgeLabels[a]=o?i:this._defaultEdgeLabelFn(t,n,e);var l=function(t,n,e,r){var i=""+n,o=""+e;if(!t&&i>o){var s=i;i=o,o=s}var a={v:i,w:o};return r&&(a.name=r),a}(this._isDirected,t,n,e);return t=l.v,n=l.w,Object.freeze(l),this._edgeObjs[a]=l,u(this._preds[n],t),u(this._sucs[t],n),this._in[n][a]=l,this._out[t][a]=l,this._edgeCount++,this},a.prototype.edge=function(t,n,e){var r=1===arguments.length?h(this._isDirected,arguments[0]):c(this._isDirected,t,n,e);return this._edgeLabels[r]},a.prototype.hasEdge=function(t,n,e){var i=1===arguments.length?h(this._isDirected,arguments[0]):c(this._isDirected,t,n,e);return r.has(this._edgeLabels,i)},a.prototype.removeEdge=function(t,n,e){var r=1===arguments.length?h(this._isDirected,arguments[0]):c(this._isDirected,t,n,e),i=this._edgeObjs[r];return i&&(t=i.v,n=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],l(this._preds[n],t),l(this._sucs[t],n),delete this._in[n][r],delete this._out[t][r],this._edgeCount--),this},a.prototype.inEdges=function(t,n){var e=this._in[t];if(e){var i=r.values(e);return n?r.filter(i,(function(t){return t.v===n})):i}},a.prototype.outEdges=function(t,n){var e=this._out[t];if(e){var i=r.values(e);return n?r.filter(i,(function(t){return t.w===n})):i}},a.prototype.nodeEdges=function(t,n){var e=this.inEdges(t,n);if(e)return e.concat(this.outEdges(t,n))}},72666:(t,n,e)=>{t.exports={Graph:e(89381),version:e(7558)}},43603:(t,n,e)=>{var r=e(24545),i=e(89381);function o(t){return r.map(t.nodes(),(function(n){var e=t.node(n),i=t.parent(n),o={v:n};return r.isUndefined(e)||(o.value=e),r.isUndefined(i)||(o.parent=i),o}))}function s(t){return r.map(t.edges(),(function(n){var e=t.edge(n),i={v:n.v,w:n.w};return r.isUndefined(n.name)||(i.name=n.name),r.isUndefined(e)||(i.value=e),i}))}t.exports={write:function(t){var n={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:o(t),edges:s(t)};return r.isUndefined(t.graph())||(n.value=r.clone(t.graph())),n},read:function(t){var n=new i(t.options).setGraph(t.value);return r.each(t.nodes,(function(t){n.setNode(t.v,t.value),t.parent&&n.setParent(t.v,t.parent)})),r.each(t.edges,(function(t){n.setEdge({v:t.v,w:t.w,name:t.name},t.value)})),n}}},24545:(t,n,e)=>{var r;try{r={clone:e(86231),constant:e(71914),each:e(39724),filter:e(23820),has:e(3009),isArray:e(69546),isEmpty:e(96368),isFunction:e(93331),isUndefined:e(51865),keys:e(25961),map:e(82856),reduce:e(97994),size:e(16334),transform:e(52224),union:e(27516),values:e(72058)}}catch(t){}r||(r=window._),t.exports=r},7558:t=>{t.exports="2.1.8"},69060:(t,n,e)=>{"use strict";var r=e(38381),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function u(t){return r.isMemo(t)?s:a[t.$$typeof]||i}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var l=Object.defineProperty,c=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,p=Object.prototype;t.exports=function t(n,e,r){if("string"!=typeof e){if(p){var i=d(e);i&&i!==p&&t(n,i,r)}var s=c(e);h&&(s=s.concat(h(e)));for(var a=u(n),_=u(e),v=0;v{"use strict";var e="function"==typeof Symbol&&Symbol.for,r=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,_=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function b(t){if("object"==typeof t&&null!==t){var n=t.$$typeof;switch(n){case r:switch(t=t.type){case c:case h:case o:case a:case s:case d:return t;default:switch(t=t&&t.$$typeof){case l:case f:case v:case _:case u:return t;default:return n}}case i:return n}}}function x(t){return b(t)===h}n.AsyncMode=c,n.ConcurrentMode=h,n.ContextConsumer=l,n.ContextProvider=u,n.Element=r,n.ForwardRef=f,n.Fragment=o,n.Lazy=v,n.Memo=_,n.Portal=i,n.Profiler=a,n.StrictMode=s,n.Suspense=d,n.isAsyncMode=function(t){return x(t)||b(t)===c},n.isConcurrentMode=x,n.isContextConsumer=function(t){return b(t)===l},n.isContextProvider=function(t){return b(t)===u},n.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},n.isForwardRef=function(t){return b(t)===f},n.isFragment=function(t){return b(t)===o},n.isLazy=function(t){return b(t)===v},n.isMemo=function(t){return b(t)===_},n.isPortal=function(t){return b(t)===i},n.isProfiler=function(t){return b(t)===a},n.isStrictMode=function(t){return b(t)===s},n.isSuspense=function(t){return b(t)===d},n.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===h||t===a||t===s||t===d||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===v||t.$$typeof===_||t.$$typeof===u||t.$$typeof===l||t.$$typeof===f||t.$$typeof===g||t.$$typeof===y||t.$$typeof===w||t.$$typeof===m)},n.typeOf=b},38381:(t,n,e)=>{"use strict";t.exports=e(40903)},60357:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>a});var r=/[A-Z]/g,i=/^ms-/,o={};function s(t){return"-"+t.toLowerCase()}const a=function(t){if(o.hasOwnProperty(t))return o[t];var n=t.replace(r,s);return o[t]=i.test(n)?"-"+n:n}},33555:(t,n)=>{"use strict";function e(t){return"object"!=typeof t||"toString"in t?t:Object.prototype.toString.call(t).slice(8,-1)}Object.defineProperty(n,"__esModule",{value:!0});var r="object"==typeof process&&!0;function i(t,n){if(!t){if(r)throw new Error("Invariant failed");throw new Error(n())}}n.invariant=i;var o=Object.prototype.hasOwnProperty,s=Array.prototype.splice,a=Object.prototype.toString;function u(t){return a.call(t).slice(8,-1)}var l=Object.assign||function(t,n){return c(n).forEach((function(e){o.call(n,e)&&(t[e]=n[e])})),t},c="function"==typeof Object.getOwnPropertySymbols?function(t){return Object.keys(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.keys(t)};function h(t){return Array.isArray(t)?l(t.constructor(t.length),t):"Map"===u(t)?new Map(t):"Set"===u(t)?new Set(t):t&&"object"==typeof t?l(Object.create(Object.getPrototypeOf(t)),t):t}var f=function(){function t(){this.commands=l({},d),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(t,n){return t===n},this.update.newContext=function(){return(new t).update}}return Object.defineProperty(t.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(t){this.update.isEquals=t},enumerable:!0,configurable:!0}),t.prototype.extend=function(t,n){this.commands[t]=n},t.prototype.update=function(t,n){var e=this,r="function"==typeof n?{$apply:n}:n;Array.isArray(t)&&Array.isArray(r)||i(!Array.isArray(r),(function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."})),i("object"==typeof r&&null!==r,(function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: "+Object.keys(e.commands).join(", ")+"."}));var s=t;return c(r).forEach((function(n){if(o.call(e.commands,n)){var i=t===s;s=e.commands[n](r[n],s,r,t),i&&e.isEquals(s,t)&&(s=t)}else{var a="Map"===u(t)?e.update(t.get(n),r[n]):e.update(t[n],r[n]),l="Map"===u(s)?s.get(n):s[n];e.isEquals(a,l)&&(void 0!==a||o.call(t,n))||(s===t&&(s=h(t)),"Map"===u(s)?s.set(n,a):s[n]=a)}})),s},t}();n.Context=f;var d={$push:function(t,n,e){return _(n,e,"$push"),t.length?n.concat(t):n},$unshift:function(t,n,e){return _(n,e,"$unshift"),t.length?t.concat(n):n},$splice:function(t,n,r,o){return function(t,n){i(Array.isArray(t),(function(){return"Expected $splice target to be an array; got "+e(t)})),m(n.$splice)}(n,r),t.forEach((function(t){m(t),n===o&&t.length&&(n=h(o)),s.apply(n,t)})),n},$set:function(t,n,e){return function(t){i(1===Object.keys(t).length,(function(){return"Cannot have more than one key in an object with $set"}))}(e),t},$toggle:function(t,n){v(t,"$toggle");var e=t.length?h(n):n;return t.forEach((function(t){e[t]=!n[t]})),e},$unset:function(t,n,e,r){return v(t,"$unset"),t.forEach((function(t){Object.hasOwnProperty.call(n,t)&&(n===r&&(n=h(r)),delete n[t])})),n},$add:function(t,n,e,r){return g(n,"$add"),v(t,"$add"),"Map"===u(n)?t.forEach((function(t){var e=t[0],i=t[1];n===r&&n.get(e)!==i&&(n=h(r)),n.set(e,i)})):t.forEach((function(t){n!==r||n.has(t)||(n=h(r)),n.add(t)})),n},$remove:function(t,n,e,r){return g(n,"$remove"),v(t,"$remove"),t.forEach((function(t){n===r&&n.has(t)&&(n=h(r)),n.delete(t)})),n},$merge:function(t,n,r,o){var s,a;return s=n,i((a=t)&&"object"==typeof a,(function(){return"update(): $merge expects a spec of type 'object'; got "+e(a)})),i(s&&"object"==typeof s,(function(){return"update(): $merge expects a target of type 'object'; got "+e(s)})),c(t).forEach((function(e){t[e]!==n[e]&&(n===o&&(n=h(o)),n[e]=t[e])})),n},$apply:function(t,n){var r;return i("function"==typeof(r=t),(function(){return"update(): expected spec of $apply to be a function; got "+e(r)+"."})),t(n)}},p=new f;function _(t,n,r){i(Array.isArray(t),(function(){return"update(): expected target of "+e(r)+" to be an array; got "+e(t)+"."})),v(n[r],r)}function v(t,n){i(Array.isArray(t),(function(){return"update(): expected spec of "+e(n)+" to be an array; got "+e(t)+". Did you forget to wrap your parameter in an array?"}))}function m(t){i(Array.isArray(t),(function(){return"update(): expected spec of $splice to be an array of arrays; got "+e(t)+". Did you forget to wrap your parameters in an array?"}))}function g(t,n){var r=u(t);i("Map"===r||"Set"===r,(function(){return"update(): "+e(n)+" expects a target of type Set or Map; got "+e(r)}))}n.isEquals=p.update.isEquals,n.extend=p.extend,n.default=p.update,n.default.default=t.exports=l(n.default,n)},63897:(t,n,e)=>{"use strict";function r(t){return t.charAt(0).toUpperCase()+t.slice(1)}function i(t,n,e){var i=t[n];if(i&&e.hasOwnProperty(n))for(var o=r(n),s=0;s0&&(r[s]=c)}else{var d=o(e,s,l,r,n);d&&(r[s]=d),r=i(n,s,r)}}return r}}e.r(n),e.d(n,{createPrefixer:()=>l,prefix:()=>V});var c=e(23645),h=e(28316),f=e(49589),d=e(15872),p=e(19449),_=["Webkit"],v=["ms"],m=["Webkit","ms"];const g={plugins:[c.Z,h.Z,f.Z,d.Z,p.Z],prefixMap:{appearance:["Webkit","Moz","ms"],textEmphasisPosition:m,textEmphasis:m,textEmphasisStyle:m,textEmphasisColor:m,boxDecorationBreak:m,maskImage:m,maskMode:m,maskRepeat:m,maskPosition:m,maskClip:m,maskOrigin:m,maskSize:m,maskComposite:m,mask:m,maskBorderSource:m,maskBorderMode:m,maskBorderSlice:m,maskBorderWidth:m,maskBorderOutset:m,maskBorderRepeat:m,maskBorder:m,maskType:m,userSelect:m,backdropFilter:_,clipPath:_,hyphens:m,textOrientation:_,tabSize:["Moz"],wrapFlow:v,wrapThrough:v,wrapMargin:v,scrollSnapType:v,scrollSnapPointsX:v,scrollSnapPointsY:v,scrollSnapDestination:v,scrollSnapCoordinate:v,textSizeAdjust:["ms","Webkit"],flowInto:v,flowFrom:v,breakBefore:v,breakAfter:v,breakInside:v,regionFragment:v,fontKerning:_,textDecorationStyle:_,textDecorationSkip:_,textDecorationLine:_,textDecorationColor:_}};var y=["-webkit-","-moz-",""],w={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0},b=e(81347),x=/cross-fade\(/g,k=["-webkit-",""],S=/filter\(/g,C=["-webkit-",""],$={flex:["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex","flex"],"inline-flex":["-webkit-inline-box","-moz-inline-box","-ms-inline-flexbox","-webkit-inline-flex","inline-flex"]},E={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple"},M={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines",flexGrow:"WebkitBoxFlex"},z=e(68052),T=["-webkit-","-moz-",""],j=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi,A=function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,n){var e=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(e.push(s.value),!n||e.length!==n);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return e}(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function q(t){return"number"==typeof t&&!isNaN(t)}function P(t){return"string"==typeof t&&t.includes("/")}var R=["center","end","start","stretch"],L={"inline-grid":["-ms-inline-grid","inline-grid"],grid:["-ms-grid","grid"]},O={alignSelf:function(t,n){R.indexOf(t)>-1&&(n.msGridRowAlign=t)},gridColumn:function(t,n){if(q(t))n.msGridColumn=t;else if(P(t)){var e=t.split("/"),r=A(e,2),i=r[0],o=r[1];O.gridColumnStart(+i,n);var s=o.split(/ ?span /),a=A(s,2),u=a[0],l=a[1];""===u?O.gridColumnEnd(+i+ +l,n):O.gridColumnEnd(+o,n)}else O.gridColumnStart(t,n)},gridColumnEnd:function(t,n){var e=n.msGridColumn;q(t)&&q(e)&&(n.msGridColumnSpan=t-e)},gridColumnStart:function(t,n){q(t)&&(n.msGridColumn=t)},gridRow:function(t,n){if(q(t))n.msGridRow=t;else if(P(t)){var e=t.split("/"),r=A(e,2),i=r[0],o=r[1];O.gridRowStart(+i,n);var s=o.split(/ ?span /),a=A(s,2),u=a[0],l=a[1];""===u?O.gridRowEnd(+i+ +l,n):O.gridRowEnd(+o,n)}else O.gridRowStart(t,n)},gridRowEnd:function(t,n){var e=n.msGridRow;q(t)&&q(e)&&(n.msGridRowSpan=t-e)},gridRowStart:function(t,n){q(t)&&(n.msGridRow=t)},gridTemplateColumns:function(t,n){n.msGridColumns=t},gridTemplateRows:function(t,n){n.msGridRows=t},justifySelf:function(t,n){R.indexOf(t)>-1&&(n.msGridColumnAlign=t)}},I=["-webkit-",""],D={marginBlockStart:["WebkitMarginBefore"],marginBlockEnd:["WebkitMarginAfter"],marginInlineStart:["WebkitMarginStart","MozMarginStart"],marginInlineEnd:["WebkitMarginEnd","MozMarginEnd"],paddingBlockStart:["WebkitPaddingBefore"],paddingBlockEnd:["WebkitPaddingAfter"],paddingInlineStart:["WebkitPaddingStart","MozPaddingStart"],paddingInlineEnd:["WebkitPaddingEnd","MozPaddingEnd"],borderBlockStart:["WebkitBorderBefore"],borderBlockStartColor:["WebkitBorderBeforeColor"],borderBlockStartStyle:["WebkitBorderBeforeStyle"],borderBlockStartWidth:["WebkitBorderBeforeWidth"],borderBlockEnd:["WebkitBorderAfter"],borderBlockEndColor:["WebkitBorderAfterColor"],borderBlockEndStyle:["WebkitBorderAfterStyle"],borderBlockEndWidth:["WebkitBorderAfterWidth"],borderInlineStart:["WebkitBorderStart","MozBorderStart"],borderInlineStartColor:["WebkitBorderStartColor","MozBorderStartColor"],borderInlineStartStyle:["WebkitBorderStartStyle","MozBorderStartStyle"],borderInlineStartWidth:["WebkitBorderStartWidth","MozBorderStartWidth"],borderInlineEnd:["WebkitBorderEnd","MozBorderEnd"],borderInlineEndColor:["WebkitBorderEndColor","MozBorderEndColor"],borderInlineEndStyle:["WebkitBorderEndStyle","MozBorderEndStyle"],borderInlineEndWidth:["WebkitBorderEndWidth","MozBorderEndWidth"]},N=["-webkit-","-moz-",""],B={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},F={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0},U=e(66111),H={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},G={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"},W=[function(t,n){if("string"==typeof n&&!(0,b.Z)(n)&&-1!==n.indexOf("cross-fade("))return k.map((function(t){return n.replace(x,t+"cross-fade(")}))},function(t,n){if("cursor"===t&&w.hasOwnProperty(n))return y.map((function(t){return t+n}))},function(t,n){if("string"==typeof n&&!(0,b.Z)(n)&&-1!==n.indexOf("filter("))return C.map((function(t){return n.replace(S,t+"filter(")}))},function(t,n,e){"flexDirection"===t&&"string"==typeof n&&(n.indexOf("column")>-1?e.WebkitBoxOrient="vertical":e.WebkitBoxOrient="horizontal",n.indexOf("reverse")>-1?e.WebkitBoxDirection="reverse":e.WebkitBoxDirection="normal"),M.hasOwnProperty(t)&&(e[M[t]]=E[n]||n)},function(t,n){if("string"==typeof n&&!(0,z.default)(n)&&j.test(n))return T.map((function(t){return n.replace(j,(function(n){return t+n}))}))},function(t,n,e){if("display"===t&&n in L)return L[n];t in O&&(0,O[t])(n,e)},function(t,n){if("string"==typeof n&&!(0,z.default)(n)&&n.indexOf("image-set(")>-1)return I.map((function(t){return n.replace(/image-set\(/g,t+"image-set(")}))},function(t,n,e){if(Object.prototype.hasOwnProperty.call(D,t))for(var r=D[t],i=0,o=r.length;i-1&&"order"!==u)for(var l=n[a],c=0,h=l.length;c-1)return s;var a=o.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter((function(t){return!/-webkit-|-ms-/.test(t)})).join(",");return t.indexOf("Moz")>-1?a:(e["Webkit"+r(t)]=s,e["Moz"+r(t)]=a,o)}},function(t,n){if("display"===t&&$.hasOwnProperty(n))return $[n]}],V=l({prefixMap:g.prefixMap,plugins:W})},23645:(t,n,e)=>{"use strict";n.Z=function(t,n){if("string"==typeof n&&!(0,r.isPrefixedValue)(n)&&-1!==n.indexOf("cross-fade("))return o.map((function(t){return n.replace(i,t+"cross-fade(")}))};var r=e(68419),i=/cross-fade\(/g,o=["-webkit-",""]},28316:(t,n,e)=>{"use strict";n.Z=function(t,n){if("string"==typeof n&&!(0,i.default)(n)&&s.test(n))return o.map((function(t){return n.replace(s,(function(n){return t+n}))}))};var r,i=(r=e(68052))&&r.__esModule?r:{default:r},o=["-webkit-","-moz-",""],s=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi},49589:(t,n,e)=>{"use strict";n.Z=function(t,n){if("string"==typeof n&&!(0,i.default)(n)&&n.indexOf("image-set(")>-1)return o.map((function(t){return n.replace(/image-set\(/g,t+"image-set(")}))};var r,i=(r=e(68052))&&r.__esModule?r:{default:r},o=["-webkit-",""]},15872:(t,n)=>{"use strict";n.Z=function(t,n){if(r.hasOwnProperty(t)&&i.hasOwnProperty(n))return e.map((function(t){return t+n}))};var e=["-webkit-","-moz-",""],r={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},i={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0}},19449:(t,n,e)=>{"use strict";n.Z=function(t,n,e,s){if("string"==typeof n&&a.hasOwnProperty(t)){var l=function(t,n){if((0,i.default)(t))return t;for(var e=t.split(/,(?![^()]*(?:\([^()]*\))?\))/g),o=0,s=e.length;o-1&&"order"!==h)for(var f=n[c],d=0,p=f.length;d-1)return c;var h=l.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter((function(t){return!/-webkit-|-ms-/.test(t)})).join(",");return t.indexOf("Moz")>-1?h:(e["Webkit"+(0,o.default)(t)]=c,e["Moz"+(0,o.default)(t)]=h,l)}};var r=s(e(66111)),i=s(e(68052)),o=s(e(80764));function s(t){return t&&t.__esModule?t:{default:t}}var a={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},u={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"}},80764:(t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}},46894:(t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.loop=n.conditional=n.parse=void 0,n.parse=function t(n,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r;if(Array.isArray(e))e.forEach((function(e){return t(n,e,r,i)}));else if("function"==typeof e)e(n,r,i,t);else{var o=Object.keys(e)[0];Array.isArray(e[o])?(i[o]={},t(n,e[o],r,i[o])):i[o]=e[o](n,r,i,t)}return r},n.conditional=function(t,n){return function(e,r,i,o){n(e,r,i)&&o(e,t,r,i)}},n.loop=function(t,n){return function(e,r,i,o){for(var s=[],a=e.pos;n(e,r,i);){var u={};if(o(e,t,r,u),e.pos===a)break;a=e.pos,s.push(u)}return s}}},46086:(t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.readBits=n.readArray=n.readUnsigned=n.readString=n.peekBytes=n.readBytes=n.peekByte=n.readByte=n.buildStream=void 0,n.buildStream=function(t){return{data:t,pos:0}};n.readByte=function(){return function(t){return t.data[t.pos++]}},n.peekByte=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(n){return n.data[n.pos+t]}};var e=function(t){return function(n){return n.data.subarray(n.pos,n.pos+=t)}};n.readBytes=e,n.peekBytes=function(t){return function(n){return n.data.subarray(n.pos,n.pos+t)}},n.readString=function(t){return function(n){return Array.from(e(t)(n)).map((function(t){return String.fromCharCode(t)})).join("")}},n.readUnsigned=function(t){return function(n){var r=e(2)(n);return t?(r[1]<<8)+r[0]:(r[0]<<8)+r[1]}},n.readArray=function(t,n){return function(r,i,o){for(var s="function"==typeof n?n(r,i,o):n,a=e(t),u=new Array(s),l=0;l{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=e(46894),i=e(46086),o={blocks:function(t){for(var n=[],e=t.data.length,r=0,o=(0,i.readByte)()(t);0!==o&&o;o=(0,i.readByte)()(t)){if(t.pos+o>=e){var s=e-t.pos;n.push((0,i.readBytes)(s)(t)),r+=s;break}n.push((0,i.readBytes)(o)(t)),r+=o}for(var a=new Uint8Array(r),u=0,l=0;l{"use strict";function r(t){return Array.prototype.slice.call(arguments,1).forEach((function(n){n&&Object.keys(n).forEach((function(e){t[e]=n[e]}))})),t}function i(t){return Object.prototype.toString.call(t)}function o(t){return"[object Function]"===i(t)}function s(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var a={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},u={"http:":{validate:function(t,n,e){var r=t.slice(n);return e.re.http||(e.re.http=new RegExp("^\\/\\/"+e.re.src_auth+e.re.src_host_port_strict+e.re.src_path,"i")),e.re.http.test(r)?r.match(e.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,n,e){var r=t.slice(n);return e.re.no_http||(e.re.no_http=new RegExp("^"+e.re.src_auth+"(?:localhost|(?:(?:"+e.re.src_domain+")\\.)+"+e.re.src_domain_root+")"+e.re.src_port+e.re.src_host_terminator+e.re.src_path,"i")),e.re.no_http.test(r)?n>=3&&":"===t[n-3]||n>=3&&"/"===t[n-3]?0:r.match(e.re.no_http)[0].length:0}},"mailto:":{validate:function(t,n,e){var r=t.slice(n);return e.re.mailto||(e.re.mailto=new RegExp("^"+e.re.src_email_name+"@"+e.re.src_host_strict,"i")),e.re.mailto.test(r)?r.match(e.re.mailto)[0].length:0}}},l="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",c="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function h(t){var n=t.re=e(91043)(t.__opts__),r=t.__tlds__.slice();function a(t){return t.replace("%TLDS%",n.src_tlds)}t.onCompile(),t.__tlds_replaced__||r.push(l),r.push(n.src_xn),n.src_tlds=r.join("|"),n.email_fuzzy=RegExp(a(n.tpl_email_fuzzy),"i"),n.link_fuzzy=RegExp(a(n.tpl_link_fuzzy),"i"),n.link_no_ip_fuzzy=RegExp(a(n.tpl_link_no_ip_fuzzy),"i"),n.host_fuzzy_test=RegExp(a(n.tpl_host_fuzzy_test),"i");var u=[];function c(t,n){throw new Error('(LinkifyIt) Invalid schema "'+t+'": '+n)}t.__compiled__={},Object.keys(t.__schemas__).forEach((function(n){var e=t.__schemas__[n];if(null!==e){var r={validate:null,link:null};if(t.__compiled__[n]=r,"[object Object]"===i(e))return"[object RegExp]"!==i(e.validate)?o(e.validate)?r.validate=e.validate:c(n,e):r.validate=function(t){return function(n,e){var r=n.slice(e);return t.test(r)?r.match(t)[0].length:0}}(e.validate),void(o(e.normalize)?r.normalize=e.normalize:e.normalize?c(n,e):r.normalize=function(t,n){n.normalize(t)});!function(t){return"[object String]"===i(t)}(e)?c(n,e):u.push(n)}})),u.forEach((function(n){t.__compiled__[t.__schemas__[n]]&&(t.__compiled__[n].validate=t.__compiled__[t.__schemas__[n]].validate,t.__compiled__[n].normalize=t.__compiled__[t.__schemas__[n]].normalize)})),t.__compiled__[""]={validate:null,normalize:function(t,n){n.normalize(t)}};var h=Object.keys(t.__compiled__).filter((function(n){return n.length>0&&t.__compiled__[n]})).map(s).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+n.src_ZPCc+"))("+h+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+n.src_ZPCc+"))("+h+")","ig"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),function(t){t.__index__=-1,t.__text_cache__=""}(t)}function f(t,n){var e=t.__index__,r=t.__last_index__,i=t.__text_cache__.slice(e,r);this.schema=t.__schema__.toLowerCase(),this.index=e+n,this.lastIndex=r+n,this.raw=i,this.text=i,this.url=i}function d(t,n){var e=new f(t,n);return t.__compiled__[e.schema].normalize(e,t),e}function p(t,n){if(!(this instanceof p))return new p(t,n);var e;n||(e=t,Object.keys(e||{}).reduce((function(t,n){return t||a.hasOwnProperty(n)}),!1)&&(n=t,t={})),this.__opts__=r({},a,n),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},u,t),this.__compiled__={},this.__tlds__=c,this.__tlds_replaced__=!1,this.re={},h(this)}p.prototype.add=function(t,n){return this.__schemas__[t]=n,h(this),this},p.prototype.set=function(t){return this.__opts__=r(this.__opts__,t),this},p.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var n,e,r,i,o,s,a,u;if(this.re.schema_test.test(t))for((a=this.re.schema_search).lastIndex=0;null!==(n=a.exec(t));)if(i=this.testSchemaAt(t,n[2],a.lastIndex)){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=t.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||u=0&&null!==(r=t.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,s=r.index+r[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=s)),this.__index__>=0},p.prototype.pretest=function(t){return this.re.pretest.test(t)},p.prototype.testSchemaAt=function(t,n,e){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,e,this):0},p.prototype.match=function(t){var n=0,e=[];this.__index__>=0&&this.__text_cache__===t&&(e.push(d(this,n)),n=this.__last_index__);for(var r=n?t.slice(n):t;this.test(r);)e.push(d(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return e.length?e:null},p.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter((function(t,n,e){return t!==e[n-1]})).reverse(),h(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,h(this),this)},p.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),"mailto:"!==t.schema||/^mailto:/i.test(t.url)||(t.url="mailto:"+t.url)},p.prototype.onCompile=function(){},t.exports=p},91043:(t,n,e)=>{"use strict";t.exports=function(t){var n={};n.src_Any=e(72577).source,n.src_Cc=e(870).source,n.src_Z=e(62118).source,n.src_P=e(57104).source,n.src_ZPCc=[n.src_Z,n.src_P,n.src_Cc].join("|"),n.src_ZCc=[n.src_Z,n.src_Cc].join("|");return n.src_pseudo_letter="(?:(?![><|]|"+n.src_ZPCc+")"+n.src_Any+")",n.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",n.src_auth="(?:(?:(?!"+n.src_ZCc+"|[@/\\[\\]()]).)+@)?",n.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",n.src_host_terminator="(?=$|[><|]|"+n.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+n.src_ZPCc+"))",n.src_path="(?:[/?#](?:(?!"+n.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+n.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+n.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+n.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+n.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+n.src_ZCc+"|[']).)+\\'|\\'(?="+n.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+n.src_ZCc+"|[.]).|"+(t&&t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+n.src_ZCc+").|;(?!"+n.src_ZCc+").|\\!+(?!"+n.src_ZCc+"|[!]).|\\?(?!"+n.src_ZCc+"|[?]).)+|\\/)?",n.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',n.src_xn="xn--[a-z0-9\\-]{1,59}",n.src_domain_root="(?:"+n.src_xn+"|"+n.src_pseudo_letter+"{1,63})",n.src_domain="(?:"+n.src_xn+"|(?:"+n.src_pseudo_letter+")|(?:"+n.src_pseudo_letter+"(?:-|"+n.src_pseudo_letter+"){0,61}"+n.src_pseudo_letter+"))",n.src_host="(?:(?:(?:(?:"+n.src_domain+")\\.)*"+n.src_domain+"))",n.tpl_host_fuzzy="(?:"+n.src_ip4+"|(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%)))",n.tpl_host_no_ip_fuzzy="(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%))",n.src_host_strict=n.src_host+n.src_host_terminator,n.tpl_host_fuzzy_strict=n.tpl_host_fuzzy+n.src_host_terminator,n.src_host_port_strict=n.src_host+n.src_port+n.src_host_terminator,n.tpl_host_port_fuzzy_strict=n.tpl_host_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_port_no_ip_fuzzy_strict=n.tpl_host_no_ip_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+n.src_ZPCc+"|>|$))",n.tpl_email_fuzzy='(^|[><|]|"|\\(|'+n.src_ZCc+")("+n.src_email_name+"@"+n.tpl_host_fuzzy_strict+")",n.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+n.src_ZPCc+"))((?![$+<=>^`||])"+n.tpl_host_port_fuzzy_strict+n.src_path+")",n.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+n.src_ZPCc+"))((?![$+<=>^`||])"+n.tpl_host_port_no_ip_fuzzy_strict+n.src_path+")",n}},9447:(t,n,e)=>{var r,i="__lodash_hash_undefined__",o=1/0,s="[object Function]",a="[object GeneratorFunction]",u="[object Symbol]",l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,h=/^\./,f=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,d=/\\(\\)?/g,p=/^\[object .+?Constructor\]$/,_="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g,v="object"==typeof self&&self&&self.Object===Object&&self,m=_||v||Function("return this")(),g=Array.prototype,y=Function.prototype,w=Object.prototype,b=m["__core-js_shared__"],x=(r=/[^.]+$/.exec(b&&b.keys&&b.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",k=y.toString,S=w.hasOwnProperty,C=w.toString,$=RegExp("^"+k.call(S).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),E=m.Symbol,M=g.splice,z=I(m,"Map"),T=I(Object,"create"),j=E?E.prototype:void 0,A=j?j.toString:void 0;function q(t){var n=-1,e=t?t.length:0;for(this.clear();++n-1},P.prototype.set=function(t,n){var e=this.__data__,r=L(e,t);return r<0?e.push([t,n]):e[r][1]=n,this},R.prototype.clear=function(){this.__data__={hash:new q,map:new(z||P),string:new q}},R.prototype.delete=function(t){return O(this,t).delete(t)},R.prototype.get=function(t){return O(this,t).get(t)},R.prototype.has=function(t){return O(this,t).has(t)},R.prototype.set=function(t,n){return O(this,t).set(t,n),this};var D=B((function(t){var n;t=null==(n=t)?"":function(t){if("string"==typeof t)return t;if(H(t))return A?A.call(t):"";var n=t+"";return"0"==n&&1/t==-o?"-0":n}(n);var e=[];return h.test(t)&&e.push(""),t.replace(f,(function(t,n,r,i){e.push(r?i.replace(d,"$1"):n||t)})),e}));function N(t){if("string"==typeof t||H(t))return t;var n=t+"";return"0"==n&&1/t==-o?"-0":n}function B(t,n){if("function"!=typeof t||n&&"function"!=typeof n)throw new TypeError("Expected a function");var e=function(){var r=arguments,i=n?n.apply(this,r):r[0],o=e.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return e.cache=o.set(i,s),s};return e.cache=new(B.Cache||R),e}B.Cache=R;var F=Array.isArray;function U(t){var n=typeof t;return!!t&&("object"==n||"function"==n)}function H(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&C.call(t)==u}t.exports=function(t,n,e){var r=null==t?void 0:function(t,n){var e;n=function(t,n){if(F(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!H(t))||c.test(t)||!l.test(t)||null!=n&&t in Object(n)}(n,t)?[n]:F(e=n)?e:D(e);for(var r=0,i=n.length;null!=t&&r{t=e.nmd(t);var r="__lodash_hash_undefined__",i=1,o=2,s=9007199254740991,a="[object Arguments]",u="[object Array]",l="[object AsyncFunction]",c="[object Boolean]",h="[object Date]",f="[object Error]",d="[object Function]",p="[object GeneratorFunction]",_="[object Map]",v="[object Number]",m="[object Null]",g="[object Object]",y="[object Promise]",w="[object Proxy]",b="[object RegExp]",x="[object Set]",k="[object String]",S="[object Undefined]",C="[object WeakMap]",$="[object ArrayBuffer]",E="[object DataView]",M=/^\[object .+?Constructor\]$/,z=/^(?:0|[1-9]\d*)$/,T={};T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T[a]=T[u]=T[$]=T[c]=T[E]=T[h]=T[f]=T[d]=T[_]=T[v]=T[g]=T[b]=T[x]=T[k]=T[C]=!1;var j="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g,A="object"==typeof self&&self&&self.Object===Object&&self,q=j||A||Function("return this")(),P=n&&!n.nodeType&&n,R=P&&t&&!t.nodeType&&t,L=R&&R.exports===P,O=L&&j.process,I=function(){try{return O&&O.binding&&O.binding("util")}catch(t){}}(),D=I&&I.isTypedArray;function N(t,n){for(var e=-1,r=null==t?0:t.length;++el))return!1;var h=a.get(t);if(h&&a.get(n))return h==n;var f=-1,d=!0,p=e&o?new $t:void 0;for(a.set(t,n),a.set(n,t);++f-1},St.prototype.set=function(t,n){var e=this.__data__,r=Mt(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this},Ct.prototype.clear=function(){this.size=0,this.__data__={hash:new kt,map:new(ht||St),string:new kt}},Ct.prototype.delete=function(t){var n=Pt(this,t).delete(t);return this.size-=n?1:0,n},Ct.prototype.get=function(t){return Pt(this,t).get(t)},Ct.prototype.has=function(t){return Pt(this,t).has(t)},Ct.prototype.set=function(t,n){var e=Pt(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this},$t.prototype.add=$t.prototype.push=function(t){return this.__data__.set(t,r),this},$t.prototype.has=function(t){return this.__data__.has(t)},Et.prototype.clear=function(){this.__data__=new St,this.size=0},Et.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},Et.prototype.get=function(t){return this.__data__.get(t)},Et.prototype.has=function(t){return this.__data__.has(t)},Et.prototype.set=function(t,n){var e=this.__data__;if(e instanceof St){var r=e.__data__;if(!ht||r.length<199)return r.push([t,n]),this.size=++e.size,this;e=this.__data__=new Ct(r)}return e.set(t,n),this.size=e.size,this};var Lt=at?function(t){return null==t?[]:(t=Object(t),function(n,e){for(var r=-1,i=null==n?0:n.length,o=0,s=[];++r-1&&t%1==0&&t-1&&t%1==0&&t<=s}function Wt(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function Vt(t){return null!=t&&"object"==typeof t}var Zt=D?function(t){return function(n){return t(n)}}(D):function(t){return Vt(t)&&Gt(t.length)&&!!T[zt(t)]};function Xt(t){return null!=(n=t)&&Gt(n.length)&&!Ht(n)?function(t,n){var e=Ft(t),r=!e&&Bt(t),i=!e&&!r&&Ut(t),o=!e&&!r&&!i&&Zt(t),s=e||r||i||o,a=s?function(t,n){for(var e=-1,r=Array(t);++e{var r=e(72221)(e(9649),"DataView");t.exports=r},21102:(t,n,e)=>{var r=e(1637),i=e(16380),o=e(17408),s=e(53997),a=e(34642);function u(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n{var r=e(76073),i=e(23390),o=e(42461),s=e(18190),a=e(95670);function u(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n{var r=e(72221)(e(9649),"Map");t.exports=r},52290:(t,n,e)=>{var r=e(6881),i=e(25089),o=e(67548),s=e(72151),a=e(51476);function u(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n{var r=e(72221)(e(9649),"Promise");t.exports=r},89018:(t,n,e)=>{var r=e(72221)(e(9649),"Set");t.exports=r},88212:(t,n,e)=>{var r=e(52290),i=e(94636),o=e(49810);function s(t){var n=-1,e=null==t?0:t.length;for(this.__data__=new r;++n{var r=e(36491),i=e(38023),o=e(39611),s=e(6138),a=e(96961),u=e(32631);function l(t){var n=this.__data__=new r(t);this.size=n.size}l.prototype.clear=i,l.prototype.delete=o,l.prototype.get=s,l.prototype.has=a,l.prototype.set=u,t.exports=l},20997:(t,n,e)=>{var r=e(9649).Symbol;t.exports=r},37830:(t,n,e)=>{var r=e(9649).Uint8Array;t.exports=r},43895:(t,n,e)=>{var r=e(72221)(e(9649),"WeakMap");t.exports=r},4175:t=>{t.exports=function(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}},65757:t=>{t.exports=function(t,n,e,r){for(var i=-1,o=null==t?0:t.length;++i{t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length;++e{t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length,i=0,o=[];++e{var r=e(73728);t.exports=function(t,n){return!(null==t||!t.length)&&r(t,n,0)>-1}},42605:t=>{t.exports=function(t,n,e){for(var r=-1,i=null==t?0:t.length;++r{var r=e(4830),i=e(27987),o=e(69546),s=e(80758),a=e(95824),u=e(65739),l=Object.prototype.hasOwnProperty;t.exports=function(t,n){var e=o(t),c=!e&&i(t),h=!e&&!c&&s(t),f=!e&&!c&&!h&&u(t),d=e||c||h||f,p=d?r(t.length,String):[],_=p.length;for(var v in t)!n&&!l.call(t,v)||d&&("length"==v||h&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||a(v,_))||p.push(v);return p}},81078:t=>{t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length,i=Array(r);++e{t.exports=function(t,n){for(var e=-1,r=n.length,i=t.length;++e{t.exports=function(t,n,e,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(e=t[++i]);++i{t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length;++e{var r=e(74430)("length");t.exports=r},68511:(t,n,e)=>{var r=e(32618),i=e(17689);t.exports=function(t,n,e){(void 0!==e&&!i(t[n],e)||void 0===e&&!(n in t))&&r(t,n,e)}},88902:(t,n,e)=>{var r=e(32618),i=e(17689),o=Object.prototype.hasOwnProperty;t.exports=function(t,n,e){var s=t[n];o.call(t,n)&&i(s,e)&&(void 0!==e||n in t)||r(t,n,e)}},28627:(t,n,e)=>{var r=e(17689);t.exports=function(t,n){for(var e=t.length;e--;)if(r(t[e][0],n))return e;return-1}},78959:(t,n,e)=>{var r=e(60836);t.exports=function(t,n,e,i){return r(t,(function(t,r,o){n(i,t,e(t),o)})),i}},36136:(t,n,e)=>{var r=e(20322),i=e(25961);t.exports=function(t,n){return t&&r(n,i(n),t)}},11461:(t,n,e)=>{var r=e(20322),i=e(14399);t.exports=function(t,n){return t&&r(n,i(n),t)}},32618:(t,n,e)=>{var r=e(80026);t.exports=function(t,n,e){"__proto__"==n&&r?r(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}},64248:t=>{t.exports=function(t,n,e){return t==t&&(void 0!==e&&(t=t<=e?t:e),void 0!==n&&(t=t>=n?t:n)),t}},8876:(t,n,e)=>{var r=e(47649),i=e(78769),o=e(88902),s=e(36136),a=e(11461),u=e(84751),l=e(38571),c=e(98156),h=e(60164),f=e(28616),d=e(10478),p=e(11970),_=e(49200),v=e(97045),m=e(1685),g=e(69546),y=e(80758),w=e(1880),b=e(12289),x=e(65603),k=e(25961),S=e(14399),C="[object Arguments]",$="[object Function]",E="[object Object]",M={};M[C]=M["[object Array]"]=M["[object ArrayBuffer]"]=M["[object DataView]"]=M["[object Boolean]"]=M["[object Date]"]=M["[object Float32Array]"]=M["[object Float64Array]"]=M["[object Int8Array]"]=M["[object Int16Array]"]=M["[object Int32Array]"]=M["[object Map]"]=M["[object Number]"]=M[E]=M["[object RegExp]"]=M["[object Set]"]=M["[object String]"]=M["[object Symbol]"]=M["[object Uint8Array]"]=M["[object Uint8ClampedArray]"]=M["[object Uint16Array]"]=M["[object Uint32Array]"]=!0,M["[object Error]"]=M[$]=M["[object WeakMap]"]=!1,t.exports=function t(n,e,z,T,j,A){var q,P=1&e,R=2&e,L=4&e;if(z&&(q=j?z(n,T,j,A):z(n)),void 0!==q)return q;if(!b(n))return n;var O=g(n);if(O){if(q=_(n),!P)return l(n,q)}else{var I=p(n),D=I==$||"[object GeneratorFunction]"==I;if(y(n))return u(n,P);if(I==E||I==C||D&&!j){if(q=R||D?{}:m(n),!P)return R?h(n,a(q,n)):c(n,s(q,n))}else{if(!M[I])return j?n:{};q=v(n,I,P)}}A||(A=new r);var N=A.get(n);if(N)return N;A.set(n,q),x(n)?n.forEach((function(r){q.add(t(r,e,z,r,n,A))})):w(n)&&n.forEach((function(r,i){q.set(i,t(r,e,z,i,n,A))}));var B=O?void 0:(L?R?d:f:R?S:k)(n);return i(B||n,(function(r,i){B&&(r=n[i=r]),o(q,i,t(r,e,z,i,n,A))})),q}},29395:(t,n,e)=>{var r=e(12289),i=Object.create,o=function(){function t(){}return function(n){if(!r(n))return{};if(i)return i(n);t.prototype=n;var e=new t;return t.prototype=void 0,e}}();t.exports=o},50404:t=>{t.exports=function(t,n,e){if("function"!=typeof t)throw new TypeError("Expected a function");return setTimeout((function(){t.apply(void 0,e)}),n)}},60836:(t,n,e)=>{var r=e(17623),i=e(68804)(r);t.exports=i},35817:(t,n,e)=>{var r=e(42008);t.exports=function(t,n,e){for(var i=-1,o=t.length;++i{var r=e(60836);t.exports=function(t,n){var e=[];return r(t,(function(t,r,i){n(t,r,i)&&e.push(t)})),e}},71523:t=>{t.exports=function(t,n,e,r){for(var i=t.length,o=e+(r?1:-1);r?o--:++o{var r=e(35276),i=e(54788);t.exports=function t(n,e,o,s,a){var u=-1,l=n.length;for(o||(o=i),a||(a=[]);++u0&&o(c)?e>1?t(c,e-1,o,s,a):r(a,c):s||(a[a.length]=c)}return a}},11453:(t,n,e)=>{var r=e(55517)();t.exports=r},17623:(t,n,e)=>{var r=e(11453),i=e(25961);t.exports=function(t,n){return t&&r(t,n,i)}},28829:(t,n,e)=>{var r=e(6927),i=e(25618);t.exports=function(t,n){for(var e=0,o=(n=r(n,t)).length;null!=t&&e{var r=e(35276),i=e(69546);t.exports=function(t,n,e){var o=n(t);return i(t)?o:r(o,e(t))}},28247:(t,n,e)=>{var r=e(20997),i=e(37386),o=e(4591),s=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?i(t):o(t)}},78713:t=>{t.exports=function(t,n){return t>n}},63:t=>{var n=Object.prototype.hasOwnProperty;t.exports=function(t,e){return null!=t&&n.call(t,e)}},13233:t=>{t.exports=function(t,n){return null!=t&&n in Object(t)}},73728:(t,n,e)=>{var r=e(71523),i=e(47884),o=e(43847);t.exports=function(t,n,e){return n==n?o(t,n,e):r(t,i,e)}},70621:(t,n,e)=>{var r=e(28247),i=e(17734);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},89107:(t,n,e)=>{var r=e(49739),i=e(17734);t.exports=function t(n,e,o,s,a){return n===e||(null==n||null==e||!i(n)&&!i(e)?n!=n&&e!=e:r(n,e,o,s,t,a))}},49739:(t,n,e)=>{var r=e(47649),i=e(79327),o=e(21550),s=e(98761),a=e(11970),u=e(69546),l=e(80758),c=e(65739),h="[object Arguments]",f="[object Array]",d="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,_,v,m){var g=u(t),y=u(n),w=g?f:a(t),b=y?f:a(n),x=(w=w==h?d:w)==d,k=(b=b==h?d:b)==d,S=w==b;if(S&&l(t)){if(!l(n))return!1;g=!0,x=!1}if(S&&!x)return m||(m=new r),g||c(t)?i(t,n,e,_,v,m):o(t,n,w,e,_,v,m);if(!(1&e)){var C=x&&p.call(t,"__wrapped__"),$=k&&p.call(n,"__wrapped__");if(C||$){var E=C?t.value():t,M=$?n.value():n;return m||(m=new r),v(E,M,e,_,m)}}return!!S&&(m||(m=new r),s(t,n,e,_,v,m))}},4605:(t,n,e)=>{var r=e(11970),i=e(17734);t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},24283:(t,n,e)=>{var r=e(47649),i=e(89107);t.exports=function(t,n,e,o){var s=e.length,a=s,u=!o;if(null==t)return!a;for(t=Object(t);s--;){var l=e[s];if(u&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++s{t.exports=function(t){return t!=t}},50291:(t,n,e)=>{var r=e(93331),i=e(37114),o=e(12289),s=e(77606),a=/^\[object .+?Constructor\]$/,u=Function.prototype,l=Object.prototype,c=u.toString,h=l.hasOwnProperty,f=RegExp("^"+c.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?f:a).test(s(t))}},45608:(t,n,e)=>{var r=e(11970),i=e(17734);t.exports=function(t){return i(t)&&"[object Set]"==r(t)}},89278:(t,n,e)=>{var r=e(28247),i=e(80459),o=e(17734),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!s[r(t)]}},55615:(t,n,e)=>{var r=e(68835),i=e(95010),o=e(19568),s=e(69546),a=e(96730);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?s(t)?i(t[0],t[1]):r(t):a(t)}},59011:(t,n,e)=>{var r=e(46358),i=e(95513),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var n=[];for(var e in Object(t))o.call(t,e)&&"constructor"!=e&&n.push(e);return n}},56827:(t,n,e)=>{var r=e(12289),i=e(46358),o=e(34040),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var n=i(t),e=[];for(var a in t)("constructor"!=a||!n&&s.call(t,a))&&e.push(a);return e}},11856:t=>{t.exports=function(t,n){return t{var r=e(60836),i=e(46387);t.exports=function(t,n){var e=-1,o=i(t)?Array(t.length):[];return r(t,(function(t,r,i){o[++e]=n(t,r,i)})),o}},68835:(t,n,e)=>{var r=e(24283),i=e(96256),o=e(85447);t.exports=function(t){var n=i(t);return 1==n.length&&n[0][2]?o(n[0][0],n[0][1]):function(e){return e===t||r(e,t,n)}}},95010:(t,n,e)=>{var r=e(89107),i=e(9229),o=e(86717),s=e(65677),a=e(34834),u=e(85447),l=e(25618);t.exports=function(t,n){return s(t)&&a(n)?u(l(t),n):function(e){var s=i(e,t);return void 0===s&&s===n?o(e,t):r(n,s,3)}}},663:(t,n,e)=>{var r=e(47649),i=e(68511),o=e(11453),s=e(97480),a=e(12289),u=e(14399),l=e(50434);t.exports=function t(n,e,c,h,f){n!==e&&o(e,(function(o,u){if(f||(f=new r),a(o))s(n,e,u,c,t,h,f);else{var d=h?h(l(n,u),o,u+"",n,e,f):void 0;void 0===d&&(d=o),i(n,u,d)}}),u)}},97480:(t,n,e)=>{var r=e(68511),i=e(84751),o=e(49687),s=e(38571),a=e(1685),u=e(27987),l=e(69546),c=e(70071),h=e(80758),f=e(93331),d=e(12289),p=e(65128),_=e(65739),v=e(50434),m=e(17602);t.exports=function(t,n,e,g,y,w,b){var x=v(t,e),k=v(n,e),S=b.get(k);if(S)r(t,e,S);else{var C=w?w(x,k,e+"",t,n,b):void 0,$=void 0===C;if($){var E=l(k),M=!E&&h(k),z=!E&&!M&&_(k);C=k,E||M||z?l(x)?C=x:c(x)?C=s(x):M?($=!1,C=i(k,!0)):z?($=!1,C=o(k,!0)):C=[]:p(k)||u(k)?(C=x,u(x)?C=m(x):d(x)&&!f(x)||(C=a(k))):$=!1}$&&(b.set(k,C),y(C,k,g,w,b),b.delete(k)),r(t,e,C)}}},14933:(t,n,e)=>{var r=e(81078),i=e(28829),o=e(55615),s=e(91996),a=e(97902),u=e(99199),l=e(17568),c=e(19568),h=e(69546);t.exports=function(t,n,e){n=n.length?r(n,(function(t){return h(t)?function(n){return i(n,1===t.length?t[0]:t)}:t})):[c];var f=-1;n=r(n,u(o));var d=s(t,(function(t,e,i){return{criteria:r(n,(function(n){return n(t)})),index:++f,value:t}}));return a(d,(function(t,n){return l(t,n,e)}))}},72141:(t,n,e)=>{var r=e(33092),i=e(86717);t.exports=function(t,n){return r(t,n,(function(n,e){return i(t,e)}))}},33092:(t,n,e)=>{var r=e(28829),i=e(17338),o=e(6927);t.exports=function(t,n,e){for(var s=-1,a=n.length,u={};++s{t.exports=function(t){return function(n){return null==n?void 0:n[t]}}},12257:(t,n,e)=>{var r=e(28829);t.exports=function(t){return function(n){return r(n,t)}}},12095:t=>{var n=Math.ceil,e=Math.max;t.exports=function(t,r,i,o){for(var s=-1,a=e(n((r-t)/(i||1)),0),u=Array(a);a--;)u[o?a:++s]=t,t+=i;return u}},29501:t=>{t.exports=function(t,n,e,r,i){return i(t,(function(t,i,o){e=r?(r=!1,t):n(e,t,i,o)})),e}},6359:(t,n,e)=>{var r=e(19568),i=e(28296),o=e(6660);t.exports=function(t,n){return o(i(t,n,r),t+"")}},17338:(t,n,e)=>{var r=e(88902),i=e(6927),o=e(95824),s=e(12289),a=e(25618);t.exports=function(t,n,e,u){if(!s(t))return t;for(var l=-1,c=(n=i(n,t)).length,h=c-1,f=t;null!=f&&++l{var r=e(71914),i=e(80026),o=e(19568),s=i?function(t,n){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(n),writable:!0})}:o;t.exports=s},21795:t=>{t.exports=function(t,n,e){var r=-1,i=t.length;n<0&&(n=-n>i?0:i+n),(e=e>i?i:e)<0&&(e+=i),i=n>e?0:e-n>>>0,n>>>=0;for(var o=Array(i);++r{t.exports=function(t,n){var e=t.length;for(t.sort(n);e--;)t[e]=t[e].value;return t}},4830:t=>{t.exports=function(t,n){for(var e=-1,r=Array(t);++e{var r=e(20997),i=e(81078),o=e(69546),s=e(42008),a=r?r.prototype:void 0,u=a?a.toString:void 0;t.exports=function t(n){if("string"==typeof n)return n;if(o(n))return i(n,t)+"";if(s(n))return u?u.call(n):"";var e=n+"";return"0"==e&&1/n==-1/0?"-0":e}},56532:(t,n,e)=>{var r=e(97500),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},99199:t=>{t.exports=function(t){return function(n){return t(n)}}},92052:(t,n,e)=>{var r=e(88212),i=e(94137),o=e(42605),s=e(48138),a=e(28348),u=e(56783);t.exports=function(t,n,e){var l=-1,c=i,h=t.length,f=!0,d=[],p=d;if(e)f=!1,c=o;else if(h>=200){var _=n?null:a(t);if(_)return u(_);f=!1,c=s,p=new r}else p=n?[]:d;t:for(;++l{var r=e(81078);t.exports=function(t,n){return r(n,(function(n){return t[n]}))}},1536:t=>{t.exports=function(t,n,e){for(var r=-1,i=t.length,o=n.length,s={};++r{t.exports=function(t,n){return t.has(n)}},43519:(t,n,e)=>{var r=e(19568);t.exports=function(t){return"function"==typeof t?t:r}},6927:(t,n,e)=>{var r=e(69546),i=e(65677),o=e(91503),s=e(39244);t.exports=function(t,n){return r(t)?t:i(t,n)?[t]:o(s(t))}},26477:(t,n,e)=>{var r=e(37830);t.exports=function(t){var n=new t.constructor(t.byteLength);return new r(n).set(new r(t)),n}},84751:(t,n,e)=>{t=e.nmd(t);var r=e(9649),i=n&&!n.nodeType&&n,o=i&&t&&!t.nodeType&&t,s=o&&o.exports===i?r.Buffer:void 0,a=s?s.allocUnsafe:void 0;t.exports=function(t,n){if(n)return t.slice();var e=t.length,r=a?a(e):new t.constructor(e);return t.copy(r),r}},52502:(t,n,e)=>{var r=e(26477);t.exports=function(t,n){var e=n?r(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}},4759:t=>{var n=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,n.exec(t));return e.lastIndex=t.lastIndex,e}},16431:(t,n,e)=>{var r=e(20997),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;t.exports=function(t){return o?Object(o.call(t)):{}}},49687:(t,n,e)=>{var r=e(26477);t.exports=function(t,n){var e=n?r(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}},1845:(t,n,e)=>{var r=e(42008);t.exports=function(t,n){if(t!==n){var e=void 0!==t,i=null===t,o=t==t,s=r(t),a=void 0!==n,u=null===n,l=n==n,c=r(n);if(!u&&!c&&!s&&t>n||s&&a&&l&&!u&&!c||i&&a&&l||!e&&l||!o)return 1;if(!i&&!s&&!c&&t{var r=e(1845);t.exports=function(t,n,e){for(var i=-1,o=t.criteria,s=n.criteria,a=o.length,u=e.length;++i=u?l:l*("desc"==e[i]?-1:1)}return t.index-n.index}},38571:t=>{t.exports=function(t,n){var e=-1,r=t.length;for(n||(n=Array(r));++e{var r=e(88902),i=e(32618);t.exports=function(t,n,e,o){var s=!e;e||(e={});for(var a=-1,u=n.length;++a{var r=e(20322),i=e(4918);t.exports=function(t,n){return r(t,i(t),n)}},60164:(t,n,e)=>{var r=e(20322),i=e(2659);t.exports=function(t,n){return r(t,i(t),n)}},48976:(t,n,e)=>{var r=e(9649)["__core-js_shared__"];t.exports=r},97147:(t,n,e)=>{var r=e(65757),i=e(78959),o=e(55615),s=e(69546);t.exports=function(t,n){return function(e,a){var u=s(e)?r:i,l=n?n():{};return u(e,t,o(a,2),l)}}},96921:(t,n,e)=>{var r=e(6359),i=e(51599);t.exports=function(t){return r((function(n,e){var r=-1,o=e.length,s=o>1?e[o-1]:void 0,a=o>2?e[2]:void 0;for(s=t.length>3&&"function"==typeof s?(o--,s):void 0,a&&i(e[0],e[1],a)&&(s=o<3?void 0:s,o=1),n=Object(n);++r{var r=e(46387);t.exports=function(t,n){return function(e,i){if(null==e)return e;if(!r(e))return t(e,i);for(var o=e.length,s=n?o:-1,a=Object(e);(n?s--:++s{t.exports=function(t){return function(n,e,r){for(var i=-1,o=Object(n),s=r(n),a=s.length;a--;){var u=s[t?a:++i];if(!1===e(o[u],u,o))break}return n}}},8627:(t,n,e)=>{var r=e(55615),i=e(46387),o=e(25961);t.exports=function(t){return function(n,e,s){var a=Object(n);if(!i(n)){var u=r(e,3);n=o(n),e=function(t){return u(a[t],t,a)}}var l=t(n,e,s);return l>-1?a[u?n[l]:l]:void 0}}},13694:(t,n,e)=>{var r=e(12095),i=e(51599),o=e(30510);t.exports=function(t){return function(n,e,s){return s&&"number"!=typeof s&&i(n,e,s)&&(e=s=void 0),n=o(n),void 0===e?(e=n,n=0):e=o(e),s=void 0===s?n{var r=e(89018),i=e(5152),o=e(56783),s=r&&1/o(new r([,-0]))[1]==1/0?function(t){return new r(t)}:i;t.exports=s},80026:(t,n,e)=>{var r=e(72221),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},79327:(t,n,e)=>{var r=e(88212),i=e(22289),o=e(48138);t.exports=function(t,n,e,s,a,u){var l=1&e,c=t.length,h=n.length;if(c!=h&&!(l&&h>c))return!1;var f=u.get(t),d=u.get(n);if(f&&d)return f==n&&d==t;var p=-1,_=!0,v=2&e?new r:void 0;for(u.set(t,n),u.set(n,t);++p{var r=e(20997),i=e(37830),o=e(17689),s=e(79327),a=e(46498),u=e(56783),l=r?r.prototype:void 0,c=l?l.valueOf:void 0;t.exports=function(t,n,e,r,l,h,f){switch(e){case"[object DataView]":if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=n.byteLength||!h(new i(t),new i(n)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+n);case"[object Error]":return t.name==n.name&&t.message==n.message;case"[object RegExp]":case"[object String]":return t==n+"";case"[object Map]":var d=a;case"[object Set]":var p=1&r;if(d||(d=u),t.size!=n.size&&!p)return!1;var _=f.get(t);if(_)return _==n;r|=2,f.set(t,n);var v=s(d(t),d(n),r,l,h,f);return f.delete(t),v;case"[object Symbol]":if(c)return c.call(t)==c.call(n)}return!1}},98761:(t,n,e)=>{var r=e(28616),i=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,o,s,a){var u=1&e,l=r(t),c=l.length;if(c!=r(n).length&&!u)return!1;for(var h=c;h--;){var f=l[h];if(!(u?f in n:i.call(n,f)))return!1}var d=a.get(t),p=a.get(n);if(d&&p)return d==n&&p==t;var _=!0;a.set(t,n),a.set(n,t);for(var v=u;++h{var r=e(60567),i=e(28296),o=e(6660);t.exports=function(t){return o(i(t,void 0,r),t+"")}},46954:(t,n,e)=>{var r="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;t.exports=r},28616:(t,n,e)=>{var r=e(12506),i=e(4918),o=e(25961);t.exports=function(t){return r(t,o,i)}},10478:(t,n,e)=>{var r=e(12506),i=e(2659),o=e(14399);t.exports=function(t){return r(t,o,i)}},55502:(t,n,e)=>{var r=e(89983);t.exports=function(t,n){var e=t.__data__;return r(n)?e["string"==typeof n?"string":"hash"]:e.map}},96256:(t,n,e)=>{var r=e(34834),i=e(25961);t.exports=function(t){for(var n=i(t),e=n.length;e--;){var o=n[e],s=t[o];n[e]=[o,s,r(s)]}return n}},72221:(t,n,e)=>{var r=e(50291),i=e(85779);t.exports=function(t,n){var e=i(t,n);return r(e)?e:void 0}},65506:(t,n,e)=>{var r=e(78892)(Object.getPrototypeOf,Object);t.exports=r},37386:(t,n,e)=>{var r=e(20997),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var n=o.call(t,a),e=t[a];try{t[a]=void 0;var r=!0}catch(t){}var i=s.call(t);return r&&(n?t[a]=e:delete t[a]),i}},4918:(t,n,e)=>{var r=e(41155),i=e(41258),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(t){return null==t?[]:(t=Object(t),r(s(t),(function(n){return o.call(t,n)})))}:i;t.exports=a},2659:(t,n,e)=>{var r=e(35276),i=e(65506),o=e(4918),s=e(41258),a=Object.getOwnPropertySymbols?function(t){for(var n=[];t;)r(n,o(t)),t=i(t);return n}:s;t.exports=a},11970:(t,n,e)=>{var r=e(26056),i=e(95651),o=e(36561),s=e(89018),a=e(43895),u=e(28247),l=e(77606),c="[object Map]",h="[object Promise]",f="[object Set]",d="[object WeakMap]",p="[object DataView]",_=l(r),v=l(i),m=l(o),g=l(s),y=l(a),w=u;(r&&w(new r(new ArrayBuffer(1)))!=p||i&&w(new i)!=c||o&&w(o.resolve())!=h||s&&w(new s)!=f||a&&w(new a)!=d)&&(w=function(t){var n=u(t),e="[object Object]"==n?t.constructor:void 0,r=e?l(e):"";if(r)switch(r){case _:return p;case v:return c;case m:return h;case g:return f;case y:return d}return n}),t.exports=w},85779:t=>{t.exports=function(t,n){return null==t?void 0:t[n]}},32889:(t,n,e)=>{var r=e(6927),i=e(27987),o=e(69546),s=e(95824),a=e(80459),u=e(25618);t.exports=function(t,n,e){for(var l=-1,c=(n=r(n,t)).length,h=!1;++l{var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return n.test(t)}},1637:(t,n,e)=>{var r=e(55586);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},16380:t=>{t.exports=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}},17408:(t,n,e)=>{var r=e(55586),i=Object.prototype.hasOwnProperty;t.exports=function(t){var n=this.__data__;if(r){var e=n[t];return"__lodash_hash_undefined__"===e?void 0:e}return i.call(n,t)?n[t]:void 0}},53997:(t,n,e)=>{var r=e(55586),i=Object.prototype.hasOwnProperty;t.exports=function(t){var n=this.__data__;return r?void 0!==n[t]:i.call(n,t)}},34642:(t,n,e)=>{var r=e(55586);t.exports=function(t,n){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=r&&void 0===n?"__lodash_hash_undefined__":n,this}},49200:t=>{var n=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&n.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},97045:(t,n,e)=>{var r=e(26477),i=e(52502),o=e(4759),s=e(16431),a=e(49687);t.exports=function(t,n,e){var u=t.constructor;switch(n){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new u(+t);case"[object DataView]":return i(t,e);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(t,e);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(t);case"[object RegExp]":return o(t);case"[object Symbol]":return s(t)}}},1685:(t,n,e)=>{var r=e(29395),i=e(65506),o=e(46358);t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:r(i(t))}},54788:(t,n,e)=>{var r=e(20997),i=e(27987),o=e(69546),s=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(s&&t&&t[s])}},95824:t=>{var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t{var r=e(17689),i=e(46387),o=e(95824),s=e(12289);t.exports=function(t,n,e){if(!s(e))return!1;var a=typeof n;return!!("number"==a?i(e)&&o(n,e.length):"string"==a&&n in e)&&r(e[n],t)}},65677:(t,n,e)=>{var r=e(69546),i=e(42008),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,n){if(r(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!i(t))||s.test(t)||!o.test(t)||null!=n&&t in Object(n)}},89983:t=>{t.exports=function(t){var n=typeof t;return"string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t}},37114:(t,n,e)=>{var r,i=e(48976),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},46358:t=>{var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},34834:(t,n,e)=>{var r=e(12289);t.exports=function(t){return t==t&&!r(t)}},76073:t=>{t.exports=function(){this.__data__=[],this.size=0}},23390:(t,n,e)=>{var r=e(28627),i=Array.prototype.splice;t.exports=function(t){var n=this.__data__,e=r(n,t);return!(e<0||(e==n.length-1?n.pop():i.call(n,e,1),--this.size,0))}},42461:(t,n,e)=>{var r=e(28627);t.exports=function(t){var n=this.__data__,e=r(n,t);return e<0?void 0:n[e][1]}},18190:(t,n,e)=>{var r=e(28627);t.exports=function(t){return r(this.__data__,t)>-1}},95670:(t,n,e)=>{var r=e(28627);t.exports=function(t,n){var e=this.__data__,i=r(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this}},6881:(t,n,e)=>{var r=e(21102),i=e(36491),o=e(95651);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},25089:(t,n,e)=>{var r=e(55502);t.exports=function(t){var n=r(this,t).delete(t);return this.size-=n?1:0,n}},67548:(t,n,e)=>{var r=e(55502);t.exports=function(t){return r(this,t).get(t)}},72151:(t,n,e)=>{var r=e(55502);t.exports=function(t){return r(this,t).has(t)}},51476:(t,n,e)=>{var r=e(55502);t.exports=function(t,n){var e=r(this,t),i=e.size;return e.set(t,n),this.size+=e.size==i?0:1,this}},46498:t=>{t.exports=function(t){var n=-1,e=Array(t.size);return t.forEach((function(t,r){e[++n]=[r,t]})),e}},85447:t=>{t.exports=function(t,n){return function(e){return null!=e&&e[t]===n&&(void 0!==n||t in Object(e))}}},72984:(t,n,e)=>{var r=e(2520);t.exports=function(t){var n=r(t,(function(t){return 500===e.size&&e.clear(),t})),e=n.cache;return n}},55586:(t,n,e)=>{var r=e(72221)(Object,"create");t.exports=r},95513:(t,n,e)=>{var r=e(78892)(Object.keys,Object);t.exports=r},34040:t=>{t.exports=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}},59214:(t,n,e)=>{t=e.nmd(t);var r=e(46954),i=n&&!n.nodeType&&n,o=i&&t&&!t.nodeType&&t,s=o&&o.exports===i&&r.process,a=function(){try{return o&&o.require&&o.require("util").types||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=a},4591:t=>{var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},78892:t=>{t.exports=function(t,n){return function(e){return t(n(e))}}},28296:(t,n,e)=>{var r=e(4175),i=Math.max;t.exports=function(t,n,e){return n=i(void 0===n?t.length-1:n,0),function(){for(var o=arguments,s=-1,a=i(o.length-n,0),u=Array(a);++s{var r=e(46954),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},50434:t=>{t.exports=function(t,n){if(("constructor"!==n||"function"!=typeof t[n])&&"__proto__"!=n)return t[n]}},94636:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},49810:t=>{t.exports=function(t){return this.__data__.has(t)}},56783:t=>{t.exports=function(t){var n=-1,e=Array(t.size);return t.forEach((function(t){e[++n]=t})),e}},6660:(t,n,e)=>{var r=e(82956),i=e(52249)(r);t.exports=i},52249:t=>{var n=Date.now;t.exports=function(t){var e=0,r=0;return function(){var i=n(),o=16-(i-r);if(r=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},38023:(t,n,e)=>{var r=e(36491);t.exports=function(){this.__data__=new r,this.size=0}},39611:t=>{t.exports=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e}},6138:t=>{t.exports=function(t){return this.__data__.get(t)}},96961:t=>{t.exports=function(t){return this.__data__.has(t)}},32631:(t,n,e)=>{var r=e(36491),i=e(95651),o=e(52290);t.exports=function(t,n){var e=this.__data__;if(e instanceof r){var s=e.__data__;if(!i||s.length<199)return s.push([t,n]),this.size=++e.size,this;e=this.__data__=new o(s)}return e.set(t,n),this.size=e.size,this}},43847:t=>{t.exports=function(t,n,e){for(var r=e-1,i=t.length;++r{var r=e(34373),i=e(34229),o=e(65869);t.exports=function(t){return i(t)?o(t):r(t)}},91503:(t,n,e)=>{var r=e(72984),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=r((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(i,(function(t,e,r,i){n.push(r?i.replace(o,"$1"):e||t)})),n}));t.exports=s},25618:(t,n,e)=>{var r=e(42008);t.exports=function(t){if("string"==typeof t||r(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},77606:t=>{var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},97500:t=>{var n=/\s/;t.exports=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},65869:t=>{var n="\\ud800-\\udfff",e="["+n+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^"+n+"]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+r+"|"+i+")?",l="[\\ufe0e\\ufe0f]?",c=l+u+"(?:\\u200d(?:"+[o,s,a].join("|")+")"+l+u+")*",h="(?:"+[o+r+"?",r,s,a,e].join("|")+")",f=RegExp(i+"(?="+i+")|"+h+c,"g");t.exports=function(t){for(var n=f.lastIndex=0;f.test(t);)++n;return n}},3478:(t,n,e)=>{var r=e(64248),i=e(81696);t.exports=function(t,n,e){return void 0===e&&(e=n,n=void 0),void 0!==e&&(e=(e=i(e))==e?e:0),void 0!==n&&(n=(n=i(n))==n?n:0),r(i(t),n,e)}},86231:(t,n,e)=>{var r=e(8876);t.exports=function(t){return r(t,4)}},70709:(t,n,e)=>{var r=e(8876);t.exports=function(t){return r(t,5)}},71914:t=>{t.exports=function(t){return function(){return t}}},23874:(t,n,e)=>{var r=e(32618),i=e(97147),o=Object.prototype.hasOwnProperty,s=i((function(t,n,e){o.call(t,e)?++t[e]:r(t,e,1)}));t.exports=s},72408:(t,n,e)=>{var r=e(12289),i=e(97127),o=e(81696),s=Math.max,a=Math.min;t.exports=function(t,n,e){var u,l,c,h,f,d,p=0,_=!1,v=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function g(n){var e=u,r=l;return u=l=void 0,p=n,h=t.apply(r,e)}function y(t){var e=t-d;return void 0===d||e>=n||e<0||v&&t-p>=c}function w(){var t=i();if(y(t))return b(t);f=setTimeout(w,function(t){var e=n-(t-d);return v?a(e,c-(t-p)):e}(t))}function b(t){return f=void 0,m&&u?g(t):(u=l=void 0,h)}function x(){var t=i(),e=y(t);if(u=arguments,l=this,d=t,e){if(void 0===f)return function(t){return p=t,f=setTimeout(w,n),_?g(t):h}(d);if(v)return clearTimeout(f),f=setTimeout(w,n),g(d)}return void 0===f&&(f=setTimeout(w,n)),h}return n=o(n)||0,r(e)&&(_=!!e.leading,c=(v="maxWait"in e)?s(o(e.maxWait)||0,n):c,m="trailing"in e?!!e.trailing:m),x.cancel=function(){void 0!==f&&clearTimeout(f),p=0,u=d=l=f=void 0},x.flush=function(){return void 0===f?h:b(i())},x}},28801:(t,n,e)=>{var r=e(6359),i=e(17689),o=e(51599),s=e(14399),a=Object.prototype,u=a.hasOwnProperty,l=r((function(t,n){t=Object(t);var e=-1,r=n.length,l=r>2?n[2]:void 0;for(l&&o(n[0],n[1],l)&&(r=1);++e{var r=e(50404),i=e(6359)((function(t,n){return r(t,1,n)}));t.exports=i},83369:(t,n,e)=>{var r=e(21795),i=e(34254);t.exports=function(t,n,e){var o=null==t?0:t.length;return o?(n=e||void 0===n?1:i(n),r(t,n<0?0:n,o)):[]}},93324:(t,n,e)=>{var r=e(21795),i=e(34254);t.exports=function(t,n,e){var o=null==t?0:t.length;return o?(n=e||void 0===n?1:i(n),r(t,0,(n=o-n)<0?0:n)):[]}},39724:(t,n,e)=>{t.exports=e(98848)},17689:t=>{t.exports=function(t,n){return t===n||t!=t&&n!=n}},23820:(t,n,e)=>{var r=e(41155),i=e(64661),o=e(55615),s=e(69546);t.exports=function(t,n){return(s(t)?r:i)(t,o(n,3))}},29495:(t,n,e)=>{var r=e(8627)(e(86123));t.exports=r},86123:(t,n,e)=>{var r=e(71523),i=e(55615),o=e(34254),s=Math.max;t.exports=function(t,n,e){var a=null==t?0:t.length;if(!a)return-1;var u=null==e?0:o(e);return u<0&&(u=s(a+u,0)),r(t,i(n,3),u)}},60567:(t,n,e)=>{var r=e(33169);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},98848:(t,n,e)=>{var r=e(78769),i=e(60836),o=e(43519),s=e(69546);t.exports=function(t,n){return(s(t)?r:i)(t,o(n))}},25234:(t,n,e)=>{var r=e(11453),i=e(43519),o=e(14399);t.exports=function(t,n){return null==t?t:r(t,i(n),o)}},9229:(t,n,e)=>{var r=e(28829);t.exports=function(t,n,e){var i=null==t?void 0:r(t,n);return void 0===i?e:i}},3009:(t,n,e)=>{var r=e(63),i=e(32889);t.exports=function(t,n){return null!=t&&i(t,n,r)}},86717:(t,n,e)=>{var r=e(13233),i=e(32889);t.exports=function(t,n){return null!=t&&i(t,n,r)}},19568:t=>{t.exports=function(t){return t}},27987:(t,n,e)=>{var r=e(70621),i=e(17734),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=u},69546:t=>{var n=Array.isArray;t.exports=n},46387:(t,n,e)=>{var r=e(93331),i=e(80459);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},70071:(t,n,e)=>{var r=e(46387),i=e(17734);t.exports=function(t){return i(t)&&r(t)}},80758:(t,n,e)=>{t=e.nmd(t);var r=e(9649),i=e(68854),o=n&&!n.nodeType&&n,s=o&&t&&!t.nodeType&&t,a=s&&s.exports===o?r.Buffer:void 0,u=(a?a.isBuffer:void 0)||i;t.exports=u},96368:(t,n,e)=>{var r=e(59011),i=e(11970),o=e(27987),s=e(69546),a=e(46387),u=e(80758),l=e(46358),c=e(65739),h=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(a(t)&&(s(t)||"string"==typeof t||"function"==typeof t.splice||u(t)||c(t)||o(t)))return!t.length;var n=i(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(l(t))return!r(t).length;for(var e in t)if(h.call(t,e))return!1;return!0}},15608:(t,n,e)=>{var r=e(89107);t.exports=function(t,n){return r(t,n)}},93331:(t,n,e)=>{var r=e(28247),i=e(12289);t.exports=function(t){if(!i(t))return!1;var n=r(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},80459:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},1880:(t,n,e)=>{var r=e(4605),i=e(99199),o=e(59214),s=o&&o.isMap,a=s?i(s):r;t.exports=a},12289:t=>{t.exports=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}},17734:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},65128:(t,n,e)=>{var r=e(28247),i=e(65506),o=e(17734),s=Function.prototype,a=Object.prototype,u=s.toString,l=a.hasOwnProperty,c=u.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var n=i(t);if(null===n)return!0;var e=l.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&u.call(e)==c}},65603:(t,n,e)=>{var r=e(45608),i=e(99199),o=e(59214),s=o&&o.isSet,a=s?i(s):r;t.exports=a},98689:(t,n,e)=>{var r=e(28247),i=e(69546),o=e(17734);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},42008:(t,n,e)=>{var r=e(28247),i=e(17734);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},65739:(t,n,e)=>{var r=e(89278),i=e(99199),o=e(59214),s=o&&o.isTypedArray,a=s?i(s):r;t.exports=a},51865:t=>{t.exports=function(t){return void 0===t}},25961:(t,n,e)=>{var r=e(17296),i=e(59011),o=e(46387);t.exports=function(t){return o(t)?r(t):i(t)}},14399:(t,n,e)=>{var r=e(17296),i=e(56827),o=e(46387);t.exports=function(t){return o(t)?r(t,!0):i(t)}},76292:t=>{t.exports=function(t){var n=null==t?0:t.length;return n?t[n-1]:void 0}},40180:function(t,n,e){var r;t=e.nmd(t),function(){var i,o="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",u=32,l=128,c=1/0,h=9007199254740991,f=NaN,d=4294967295,p=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],_="[object Arguments]",v="[object Array]",m="[object Boolean]",g="[object Date]",y="[object Error]",w="[object Function]",b="[object GeneratorFunction]",x="[object Map]",k="[object Number]",S="[object Object]",C="[object Promise]",$="[object RegExp]",E="[object Set]",M="[object String]",z="[object Symbol]",T="[object WeakMap]",j="[object ArrayBuffer]",A="[object DataView]",q="[object Float32Array]",P="[object Float64Array]",R="[object Int8Array]",L="[object Int16Array]",O="[object Int32Array]",I="[object Uint8Array]",D="[object Uint8ClampedArray]",N="[object Uint16Array]",B="[object Uint32Array]",F=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,H=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,V=RegExp(G.source),Z=RegExp(W.source),X=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nt=/[\\^$.*+?()[\]{}|]/g,et=RegExp(nt.source),rt=/^\s+/,it=/\s/,ot=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,st=/\{\n\/\* \[wrapped with (.+)\] \*/,at=/,? & /,ut=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lt=/[()=,{}\[\]\/\s]/,ct=/\\(\\)?/g,ht=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ft=/\w*$/,dt=/^[-+]0x[0-9a-f]+$/i,pt=/^0b[01]+$/i,_t=/^\[object .+?Constructor\]$/,vt=/^0o[0-7]+$/i,mt=/^(?:0|[1-9]\d*)$/,gt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yt=/($^)/,wt=/['\n\r\u2028\u2029\\]/g,bt="\\ud800-\\udfff",xt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",kt="\\u2700-\\u27bf",St="a-z\\xdf-\\xf6\\xf8-\\xff",Ct="A-Z\\xc0-\\xd6\\xd8-\\xde",$t="\\ufe0e\\ufe0f",Et="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Mt="["+bt+"]",zt="["+Et+"]",Tt="["+xt+"]",jt="\\d+",At="["+kt+"]",qt="["+St+"]",Pt="[^"+bt+Et+jt+kt+St+Ct+"]",Rt="\\ud83c[\\udffb-\\udfff]",Lt="[^"+bt+"]",Ot="(?:\\ud83c[\\udde6-\\uddff]){2}",It="[\\ud800-\\udbff][\\udc00-\\udfff]",Dt="["+Ct+"]",Nt="\\u200d",Bt="(?:"+qt+"|"+Pt+")",Ft="(?:"+Dt+"|"+Pt+")",Ut="(?:['’](?:d|ll|m|re|s|t|ve))?",Ht="(?:['’](?:D|LL|M|RE|S|T|VE))?",Gt="(?:"+Tt+"|"+Rt+")?",Wt="["+$t+"]?",Vt=Wt+Gt+"(?:"+Nt+"(?:"+[Lt,Ot,It].join("|")+")"+Wt+Gt+")*",Zt="(?:"+[At,Ot,It].join("|")+")"+Vt,Xt="(?:"+[Lt+Tt+"?",Tt,Ot,It,Mt].join("|")+")",Yt=RegExp("['’]","g"),Kt=RegExp(Tt,"g"),Jt=RegExp(Rt+"(?="+Rt+")|"+Xt+Vt,"g"),Qt=RegExp([Dt+"?"+qt+"+"+Ut+"(?="+[zt,Dt,"$"].join("|")+")",Ft+"+"+Ht+"(?="+[zt,Dt+Bt,"$"].join("|")+")",Dt+"?"+Bt+"+"+Ut,Dt+"+"+Ht,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",jt,Zt].join("|"),"g"),tn=RegExp("["+Nt+bt+xt+$t+"]"),nn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,en=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rn=-1,on={};on[q]=on[P]=on[R]=on[L]=on[O]=on[I]=on[D]=on[N]=on[B]=!0,on[_]=on[v]=on[j]=on[m]=on[A]=on[g]=on[y]=on[w]=on[x]=on[k]=on[S]=on[$]=on[E]=on[M]=on[T]=!1;var sn={};sn[_]=sn[v]=sn[j]=sn[A]=sn[m]=sn[g]=sn[q]=sn[P]=sn[R]=sn[L]=sn[O]=sn[x]=sn[k]=sn[S]=sn[$]=sn[E]=sn[M]=sn[z]=sn[I]=sn[D]=sn[N]=sn[B]=!0,sn[y]=sn[w]=sn[T]=!1;var an={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},un=parseFloat,ln=parseInt,cn="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g,hn="object"==typeof self&&self&&self.Object===Object&&self,fn=cn||hn||Function("return this")(),dn=n&&!n.nodeType&&n,pn=dn&&t&&!t.nodeType&&t,_n=pn&&pn.exports===dn,vn=_n&&cn.process,mn=function(){try{return pn&&pn.require&&pn.require("util").types||vn&&vn.binding&&vn.binding("util")}catch(t){}}(),gn=mn&&mn.isArrayBuffer,yn=mn&&mn.isDate,wn=mn&&mn.isMap,bn=mn&&mn.isRegExp,xn=mn&&mn.isSet,kn=mn&&mn.isTypedArray;function Sn(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}function Cn(t,n,e,r){for(var i=-1,o=null==t?0:t.length;++i-1}function jn(t,n,e){for(var r=-1,i=null==t?0:t.length;++r-1;);return e}function te(t,n){for(var e=t.length;e--&&Nn(n,t[e],0)>-1;);return e}var ne=Gn({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),ee=Gn({"&":"&","<":"<",">":">",'"':""","'":"'"});function re(t){return"\\"+an[t]}function ie(t){return tn.test(t)}function oe(t){var n=-1,e=Array(t.size);return t.forEach((function(t,r){e[++n]=[r,t]})),e}function se(t,n){return function(e){return t(n(e))}}function ae(t,n){for(var e=-1,r=t.length,i=0,o=[];++e",""":'"',"'":"'"}),pe=function t(n){var e,r=(n=null==n?fn:pe.defaults(fn.Object(),n,pe.pick(fn,en))).Array,it=n.Date,bt=n.Error,xt=n.Function,kt=n.Math,St=n.Object,Ct=n.RegExp,$t=n.String,Et=n.TypeError,Mt=r.prototype,zt=xt.prototype,Tt=St.prototype,jt=n["__core-js_shared__"],At=zt.toString,qt=Tt.hasOwnProperty,Pt=0,Rt=(e=/[^.]+$/.exec(jt&&jt.keys&&jt.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"",Lt=Tt.toString,Ot=At.call(St),It=fn._,Dt=Ct("^"+At.call(qt).replace(nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Nt=_n?n.Buffer:i,Bt=n.Symbol,Ft=n.Uint8Array,Ut=Nt?Nt.allocUnsafe:i,Ht=se(St.getPrototypeOf,St),Gt=St.create,Wt=Tt.propertyIsEnumerable,Vt=Mt.splice,Zt=Bt?Bt.isConcatSpreadable:i,Xt=Bt?Bt.iterator:i,Jt=Bt?Bt.toStringTag:i,tn=function(){try{var t=uo(St,"defineProperty");return t({},"",{}),t}catch(t){}}(),an=n.clearTimeout!==fn.clearTimeout&&n.clearTimeout,cn=it&&it.now!==fn.Date.now&&it.now,hn=n.setTimeout!==fn.setTimeout&&n.setTimeout,dn=kt.ceil,pn=kt.floor,vn=St.getOwnPropertySymbols,mn=Nt?Nt.isBuffer:i,On=n.isFinite,Gn=Mt.join,_e=se(St.keys,St),ve=kt.max,me=kt.min,ge=it.now,ye=n.parseInt,we=kt.random,be=Mt.reverse,xe=uo(n,"DataView"),ke=uo(n,"Map"),Se=uo(n,"Promise"),Ce=uo(n,"Set"),$e=uo(n,"WeakMap"),Ee=uo(St,"create"),Me=$e&&new $e,ze={},Te=Oo(xe),je=Oo(ke),Ae=Oo(Se),qe=Oo(Ce),Pe=Oo($e),Re=Bt?Bt.prototype:i,Le=Re?Re.valueOf:i,Oe=Re?Re.toString:i;function Ie(t){if(ta(t)&&!Us(t)&&!(t instanceof Fe)){if(t instanceof Be)return t;if(qt.call(t,"__wrapped__"))return Io(t)}return new Be(t)}var De=function(){function t(){}return function(n){if(!Qs(n))return{};if(Gt)return Gt(n);t.prototype=n;var e=new t;return t.prototype=i,e}}();function Ne(){}function Be(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=i}function Fe(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Ue(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n=n?t:n)),t}function sr(t,n,e,r,o,s){var a,u=1&n,l=2&n,c=4&n;if(e&&(a=o?e(t,r,o,s):e(t)),a!==i)return a;if(!Qs(t))return t;var h=Us(t);if(h){if(a=function(t){var n=t.length,e=new t.constructor(n);return n&&"string"==typeof t[0]&&qt.call(t,"index")&&(e.index=t.index,e.input=t.input),e}(t),!u)return $i(t,a)}else{var f=ho(t),d=f==w||f==b;if(Vs(t))return wi(t,u);if(f==S||f==_||d&&!o){if(a=l||d?{}:po(t),!u)return l?function(t,n){return Ei(t,co(t),n)}(t,function(t,n){return t&&Ei(n,ja(n),t)}(a,t)):function(t,n){return Ei(t,lo(t),n)}(t,er(a,t))}else{if(!sn[f])return o?t:{};a=function(t,n,e){var r,i=t.constructor;switch(n){case j:return bi(t);case m:case g:return new i(+t);case A:return function(t,n){var e=n?bi(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}(t,e);case q:case P:case R:case L:case O:case I:case D:case N:case B:return xi(t,e);case x:return new i;case k:case M:return new i(t);case $:return function(t){var n=new t.constructor(t.source,ft.exec(t));return n.lastIndex=t.lastIndex,n}(t);case E:return new i;case z:return r=t,Le?St(Le.call(r)):{}}}(t,f,u)}}s||(s=new Ve);var p=s.get(t);if(p)return p;s.set(t,a),oa(t)?t.forEach((function(r){a.add(sr(r,n,e,r,t,s))})):na(t)&&t.forEach((function(r,i){a.set(i,sr(r,n,e,i,t,s))}));var v=h?i:(c?l?no:to:l?ja:Ta)(t);return $n(v||t,(function(r,i){v&&(r=t[i=r]),Qe(a,i,sr(r,n,e,i,t,s))})),a}function ar(t,n,e){var r=e.length;if(null==t)return!r;for(t=St(t);r--;){var o=e[r],s=n[o],a=t[o];if(a===i&&!(o in t)||!s(a))return!1}return!0}function ur(t,n,e){if("function"!=typeof t)throw new Et(o);return Mo((function(){t.apply(i,e)}),n)}function lr(t,n,e,r){var i=-1,o=Tn,s=!0,a=t.length,u=[],l=n.length;if(!a)return u;e&&(n=An(n,Yn(e))),r?(o=jn,s=!1):n.length>=200&&(o=Jn,s=!1,n=new We(n));t:for(;++i-1},He.prototype.set=function(t,n){var e=this.__data__,r=tr(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this},Ge.prototype.clear=function(){this.size=0,this.__data__={hash:new Ue,map:new(ke||He),string:new Ue}},Ge.prototype.delete=function(t){var n=so(this,t).delete(t);return this.size-=n?1:0,n},Ge.prototype.get=function(t){return so(this,t).get(t)},Ge.prototype.has=function(t){return so(this,t).has(t)},Ge.prototype.set=function(t,n){var e=so(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this},We.prototype.add=We.prototype.push=function(t){return this.__data__.set(t,s),this},We.prototype.has=function(t){return this.__data__.has(t)},Ve.prototype.clear=function(){this.__data__=new He,this.size=0},Ve.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},Ve.prototype.get=function(t){return this.__data__.get(t)},Ve.prototype.has=function(t){return this.__data__.has(t)},Ve.prototype.set=function(t,n){var e=this.__data__;if(e instanceof He){var r=e.__data__;if(!ke||r.length<199)return r.push([t,n]),this.size=++e.size,this;e=this.__data__=new Ge(r)}return e.set(t,n),this.size=e.size,this};var cr=Ti(gr),hr=Ti(yr,!0);function fr(t,n){var e=!0;return cr(t,(function(t,r,i){return e=!!n(t,r,i)})),e}function dr(t,n,e){for(var r=-1,o=t.length;++r0&&e(a)?n>1?_r(a,n-1,e,r,i):qn(i,a):r||(i[i.length]=a)}return i}var vr=ji(),mr=ji(!0);function gr(t,n){return t&&vr(t,n,Ta)}function yr(t,n){return t&&mr(t,n,Ta)}function wr(t,n){return zn(n,(function(n){return Ys(t[n])}))}function br(t,n){for(var e=0,r=(n=vi(n,t)).length;null!=t&&en}function Cr(t,n){return null!=t&&qt.call(t,n)}function $r(t,n){return null!=t&&n in St(t)}function Er(t,n,e){for(var o=e?jn:Tn,s=t[0].length,a=t.length,u=a,l=r(a),c=1/0,h=[];u--;){var f=t[u];u&&n&&(f=An(f,Yn(n))),c=me(f.length,c),l[u]=!e&&(n||s>=120&&f.length>=120)?new We(u&&f):i}f=t[0];var d=-1,p=l[0];t:for(;++d=a?u:u*("desc"==e[r]?-1:1)}return t.index-n.index}(t,n,e)}));r--;)t[r]=t[r].value;return t}(i)}function Fr(t,n,e){for(var r=-1,i=n.length,o={};++r-1;)a!==t&&Vt.call(a,u,1),Vt.call(t,u,1);return t}function Hr(t,n){for(var e=t?n.length:0,r=e-1;e--;){var i=n[e];if(e==r||i!==o){var o=i;vo(i)?Vt.call(t,i,1):ui(t,i)}}return t}function Gr(t,n){return t+pn(we()*(n-t+1))}function Wr(t,n){var e="";if(!t||n<1||n>h)return e;do{n%2&&(e+=t),(n=pn(n/2))&&(t+=t)}while(n);return e}function Vr(t,n){return zo(So(t,n,eu),t+"")}function Zr(t){return Xe(Da(t))}function Xr(t,n){var e=Da(t);return Ao(e,or(n,0,e.length))}function Yr(t,n,e,r){if(!Qs(t))return t;for(var o=-1,s=(n=vi(n,t)).length,a=s-1,u=t;null!=u&&++oo?0:o+n),(e=e>o?o:e)<0&&(e+=o),o=n>e?0:e-n>>>0,n>>>=0;for(var s=r(o);++i>>1,s=t[o];null!==s&&!aa(s)&&(e?s<=n:s=200){var l=n?null:Wi(t);if(l)return ue(l);s=!1,i=Jn,u=new We}else u=n?[]:a;t:for(;++r=r?t:ti(t,n,e)}var yi=an||function(t){return fn.clearTimeout(t)};function wi(t,n){if(n)return t.slice();var e=t.length,r=Ut?Ut(e):new t.constructor(e);return t.copy(r),r}function bi(t){var n=new t.constructor(t.byteLength);return new Ft(n).set(new Ft(t)),n}function xi(t,n){var e=n?bi(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function ki(t,n){if(t!==n){var e=t!==i,r=null===t,o=t==t,s=aa(t),a=n!==i,u=null===n,l=n==n,c=aa(n);if(!u&&!c&&!s&&t>n||s&&a&&l&&!u&&!c||r&&a&&l||!e&&l||!o)return 1;if(!r&&!s&&!c&&t1?e[o-1]:i,a=o>2?e[2]:i;for(s=t.length>3&&"function"==typeof s?(o--,s):i,a&&mo(e[0],e[1],a)&&(s=o<3?i:s,o=1),n=St(n);++r-1?o[s?n[a]:a]:i}}function Li(t){return Qi((function(n){var e=n.length,r=e,s=Be.prototype.thru;for(t&&n.reverse();r--;){var a=n[r];if("function"!=typeof a)throw new Et(o);if(s&&!u&&"wrapper"==ro(a))var u=new Be([],!0)}for(r=u?r:e;++r1&&w.reverse(),d&&hu))return!1;var c=s.get(t),h=s.get(n);if(c&&h)return c==n&&h==t;var f=-1,d=!0,p=2&e?new We:i;for(s.set(t,n),s.set(n,t);++f-1&&t%1==0&&t1?"& ":"")+n[r],n=n.join(e>2?", ":" "),t.replace(ot,"{\n/* [wrapped with "+n+"] */\n")}(r,function(t,n){return $n(p,(function(e){var r="_."+e[0];n&e[1]&&!Tn(t,r)&&t.push(r)})),t.sort()}(function(t){var n=t.match(st);return n?n[1].split(at):[]}(r),e)))}function jo(t){var n=0,e=0;return function(){var r=ge(),o=16-(r-e);if(e=r,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(i,arguments)}}function Ao(t,n){var e=-1,r=t.length,o=r-1;for(n=n===i?r:n;++e1?t[n-1]:i;return e="function"==typeof e?(t.pop(),e):i,is(t,e)}));function hs(t){var n=Ie(t);return n.__chain__=!0,n}function fs(t,n){return n(t)}var ds=Qi((function(t){var n=t.length,e=n?t[0]:0,r=this.__wrapped__,o=function(n){return ir(n,t)};return!(n>1||this.__actions__.length)&&r instanceof Fe&&vo(e)?((r=r.slice(e,+e+(n?1:0))).__actions__.push({func:fs,args:[o],thisArg:i}),new Be(r,this.__chain__).thru((function(t){return n&&!t.length&&t.push(i),t}))):this.thru(o)})),ps=Mi((function(t,n,e){qt.call(t,e)?++t[e]:rr(t,e,1)})),_s=Ri(Fo),vs=Ri(Uo);function ms(t,n){return(Us(t)?$n:cr)(t,oo(n,3))}function gs(t,n){return(Us(t)?En:hr)(t,oo(n,3))}var ys=Mi((function(t,n,e){qt.call(t,e)?t[e].push(n):rr(t,e,[n])})),ws=Vr((function(t,n,e){var i=-1,o="function"==typeof n,s=Gs(t)?r(t.length):[];return cr(t,(function(t){s[++i]=o?Sn(n,t,e):Mr(t,n,e)})),s})),bs=Mi((function(t,n,e){rr(t,e,n)}));function xs(t,n){return(Us(t)?An:Lr)(t,oo(n,3))}var ks=Mi((function(t,n,e){t[e?0:1].push(n)}),(function(){return[[],[]]})),Ss=Vr((function(t,n){if(null==t)return[];var e=n.length;return e>1&&mo(t,n[0],n[1])?n=[]:e>2&&mo(n[0],n[1],n[2])&&(n=[n[0]]),Br(t,_r(n,1),[])})),Cs=cn||function(){return fn.Date.now()};function $s(t,n,e){return n=e?i:n,n=t&&null==n?t.length:n,Zi(t,l,i,i,i,i,n)}function Es(t,n){var e;if("function"!=typeof n)throw new Et(o);return t=da(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=i),e}}var Ms=Vr((function(t,n,e){var r=1;if(e.length){var i=ae(e,io(Ms));r|=u}return Zi(t,r,n,e,i)})),zs=Vr((function(t,n,e){var r=3;if(e.length){var i=ae(e,io(zs));r|=u}return Zi(n,r,t,e,i)}));function Ts(t,n,e){var r,s,a,u,l,c,h=0,f=!1,d=!1,p=!0;if("function"!=typeof t)throw new Et(o);function _(n){var e=r,o=s;return r=s=i,h=n,u=t.apply(o,e)}function v(t){var e=t-c;return c===i||e>=n||e<0||d&&t-h>=a}function m(){var t=Cs();if(v(t))return g(t);l=Mo(m,function(t){var e=n-(t-c);return d?me(e,a-(t-h)):e}(t))}function g(t){return l=i,p&&r?_(t):(r=s=i,u)}function y(){var t=Cs(),e=v(t);if(r=arguments,s=this,c=t,e){if(l===i)return function(t){return h=t,l=Mo(m,n),f?_(t):u}(c);if(d)return yi(l),l=Mo(m,n),_(c)}return l===i&&(l=Mo(m,n)),u}return n=_a(n)||0,Qs(e)&&(f=!!e.leading,a=(d="maxWait"in e)?ve(_a(e.maxWait)||0,n):a,p="trailing"in e?!!e.trailing:p),y.cancel=function(){l!==i&&yi(l),h=0,r=c=s=l=i},y.flush=function(){return l===i?u:g(Cs())},y}var js=Vr((function(t,n){return ur(t,1,n)})),As=Vr((function(t,n,e){return ur(t,_a(n)||0,e)}));function qs(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new Et(o);var e=function(){var r=arguments,i=n?n.apply(this,r):r[0],o=e.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return e.cache=o.set(i,s)||o,s};return e.cache=new(qs.Cache||Ge),e}function Ps(t){if("function"!=typeof t)throw new Et(o);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}qs.Cache=Ge;var Rs=mi((function(t,n){var e=(n=1==n.length&&Us(n[0])?An(n[0],Yn(oo())):An(_r(n,1),Yn(oo()))).length;return Vr((function(r){for(var i=-1,o=me(r.length,e);++i=n})),Fs=zr(function(){return arguments}())?zr:function(t){return ta(t)&&qt.call(t,"callee")&&!Wt.call(t,"callee")},Us=r.isArray,Hs=gn?Yn(gn):function(t){return ta(t)&&kr(t)==j};function Gs(t){return null!=t&&Js(t.length)&&!Ys(t)}function Ws(t){return ta(t)&&Gs(t)}var Vs=mn||_u,Zs=yn?Yn(yn):function(t){return ta(t)&&kr(t)==g};function Xs(t){if(!ta(t))return!1;var n=kr(t);return n==y||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!ra(t)}function Ys(t){if(!Qs(t))return!1;var n=kr(t);return n==w||n==b||"[object AsyncFunction]"==n||"[object Proxy]"==n}function Ks(t){return"number"==typeof t&&t==da(t)}function Js(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=h}function Qs(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function ta(t){return null!=t&&"object"==typeof t}var na=wn?Yn(wn):function(t){return ta(t)&&ho(t)==x};function ea(t){return"number"==typeof t||ta(t)&&kr(t)==k}function ra(t){if(!ta(t)||kr(t)!=S)return!1;var n=Ht(t);if(null===n)return!0;var e=qt.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&At.call(e)==Ot}var ia=bn?Yn(bn):function(t){return ta(t)&&kr(t)==$},oa=xn?Yn(xn):function(t){return ta(t)&&ho(t)==E};function sa(t){return"string"==typeof t||!Us(t)&&ta(t)&&kr(t)==M}function aa(t){return"symbol"==typeof t||ta(t)&&kr(t)==z}var ua=kn?Yn(kn):function(t){return ta(t)&&Js(t.length)&&!!on[kr(t)]},la=Ui(Rr),ca=Ui((function(t,n){return t<=n}));function ha(t){if(!t)return[];if(Gs(t))return sa(t)?he(t):$i(t);if(Xt&&t[Xt])return function(t){for(var n,e=[];!(n=t.next()).done;)e.push(n.value);return e}(t[Xt]());var n=ho(t);return(n==x?oe:n==E?ue:Da)(t)}function fa(t){return t?(t=_a(t))===c||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function da(t){var n=fa(t),e=n%1;return n==n?e?n-e:n:0}function pa(t){return t?or(da(t),0,d):0}function _a(t){if("number"==typeof t)return t;if(aa(t))return f;if(Qs(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=Qs(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=Xn(t);var e=pt.test(t);return e||vt.test(t)?ln(t.slice(2),e?2:8):dt.test(t)?f:+t}function va(t){return Ei(t,ja(t))}function ma(t){return null==t?"":si(t)}var ga=zi((function(t,n){if(bo(n)||Gs(n))Ei(n,Ta(n),t);else for(var e in n)qt.call(n,e)&&Qe(t,e,n[e])})),ya=zi((function(t,n){Ei(n,ja(n),t)})),wa=zi((function(t,n,e,r){Ei(n,ja(n),t,r)})),ba=zi((function(t,n,e,r){Ei(n,Ta(n),t,r)})),xa=Qi(ir),ka=Vr((function(t,n){t=St(t);var e=-1,r=n.length,o=r>2?n[2]:i;for(o&&mo(n[0],n[1],o)&&(r=1);++e1),n})),Ei(t,no(t),e),r&&(e=sr(e,7,Ki));for(var i=n.length;i--;)ui(e,n[i]);return e})),Ra=Qi((function(t,n){return null==t?{}:function(t,n){return Fr(t,n,(function(n,e){return $a(t,e)}))}(t,n)}));function La(t,n){if(null==t)return{};var e=An(no(t),(function(t){return[t]}));return n=oo(n),Fr(t,e,(function(t,e){return n(t,e[0])}))}var Oa=Vi(Ta),Ia=Vi(ja);function Da(t){return null==t?[]:Kn(t,Ta(t))}var Na=qi((function(t,n,e){return n=n.toLowerCase(),t+(e?Ba(n):n)}));function Ba(t){return Xa(ma(t).toLowerCase())}function Fa(t){return(t=ma(t))&&t.replace(gt,ne).replace(Kt,"")}var Ua=qi((function(t,n,e){return t+(e?"-":"")+n.toLowerCase()})),Ha=qi((function(t,n,e){return t+(e?" ":"")+n.toLowerCase()})),Ga=Ai("toLowerCase"),Wa=qi((function(t,n,e){return t+(e?"_":"")+n.toLowerCase()})),Va=qi((function(t,n,e){return t+(e?" ":"")+Xa(n)})),Za=qi((function(t,n,e){return t+(e?" ":"")+n.toUpperCase()})),Xa=Ai("toUpperCase");function Ya(t,n,e){return t=ma(t),(n=e?i:n)===i?function(t){return nn.test(t)}(t)?function(t){return t.match(Qt)||[]}(t):function(t){return t.match(ut)||[]}(t):t.match(n)||[]}var Ka=Vr((function(t,n){try{return Sn(t,i,n)}catch(t){return Xs(t)?t:new bt(t)}})),Ja=Qi((function(t,n){return $n(n,(function(n){n=Lo(n),rr(t,n,Ms(t[n],t))})),t}));function Qa(t){return function(){return t}}var tu=Li(),nu=Li(!0);function eu(t){return t}function ru(t){return qr("function"==typeof t?t:sr(t,1))}var iu=Vr((function(t,n){return function(e){return Mr(e,t,n)}})),ou=Vr((function(t,n){return function(e){return Mr(t,e,n)}}));function su(t,n,e){var r=Ta(n),i=wr(n,r);null!=e||Qs(n)&&(i.length||!r.length)||(e=n,n=t,t=this,i=wr(n,Ta(n)));var o=!(Qs(e)&&"chain"in e&&!e.chain),s=Ys(t);return $n(i,(function(e){var r=n[e];t[e]=r,s&&(t.prototype[e]=function(){var n=this.__chain__;if(o||n){var e=t(this.__wrapped__);return(e.__actions__=$i(this.__actions__)).push({func:r,args:arguments,thisArg:t}),e.__chain__=n,e}return r.apply(t,qn([this.value()],arguments))})})),t}function au(){}var uu=Ni(An),lu=Ni(Mn),cu=Ni(Ln);function hu(t){return go(t)?Hn(Lo(t)):function(t){return function(n){return br(n,t)}}(t)}var fu=Fi(),du=Fi(!0);function pu(){return[]}function _u(){return!1}var vu,mu=Di((function(t,n){return t+n}),0),gu=Gi("ceil"),yu=Di((function(t,n){return t/n}),1),wu=Gi("floor"),bu=Di((function(t,n){return t*n}),1),xu=Gi("round"),ku=Di((function(t,n){return t-n}),0);return Ie.after=function(t,n){if("function"!=typeof n)throw new Et(o);return t=da(t),function(){if(--t<1)return n.apply(this,arguments)}},Ie.ary=$s,Ie.assign=ga,Ie.assignIn=ya,Ie.assignInWith=wa,Ie.assignWith=ba,Ie.at=xa,Ie.before=Es,Ie.bind=Ms,Ie.bindAll=Ja,Ie.bindKey=zs,Ie.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Us(t)?t:[t]},Ie.chain=hs,Ie.chunk=function(t,n,e){n=(e?mo(t,n,e):n===i)?1:ve(da(n),0);var o=null==t?0:t.length;if(!o||n<1)return[];for(var s=0,a=0,u=r(dn(o/n));so?0:o+e),(r=r===i||r>o?o:da(r))<0&&(r+=o),r=e>r?0:pa(r);e>>0)?(t=ma(t))&&("string"==typeof n||null!=n&&!ia(n))&&!(n=si(n))&&ie(t)?gi(he(t),0,e):t.split(n,e):[]},Ie.spread=function(t,n){if("function"!=typeof t)throw new Et(o);return n=null==n?0:ve(da(n),0),Vr((function(e){var r=e[n],i=gi(e,0,n);return r&&qn(i,r),Sn(t,this,i)}))},Ie.tail=function(t){var n=null==t?0:t.length;return n?ti(t,1,n):[]},Ie.take=function(t,n,e){return t&&t.length?ti(t,0,(n=e||n===i?1:da(n))<0?0:n):[]},Ie.takeRight=function(t,n,e){var r=null==t?0:t.length;return r?ti(t,(n=r-(n=e||n===i?1:da(n)))<0?0:n,r):[]},Ie.takeRightWhile=function(t,n){return t&&t.length?ci(t,oo(n,3),!1,!0):[]},Ie.takeWhile=function(t,n){return t&&t.length?ci(t,oo(n,3)):[]},Ie.tap=function(t,n){return n(t),t},Ie.throttle=function(t,n,e){var r=!0,i=!0;if("function"!=typeof t)throw new Et(o);return Qs(e)&&(r="leading"in e?!!e.leading:r,i="trailing"in e?!!e.trailing:i),Ts(t,n,{leading:r,maxWait:n,trailing:i})},Ie.thru=fs,Ie.toArray=ha,Ie.toPairs=Oa,Ie.toPairsIn=Ia,Ie.toPath=function(t){return Us(t)?An(t,Lo):aa(t)?[t]:$i(Ro(ma(t)))},Ie.toPlainObject=va,Ie.transform=function(t,n,e){var r=Us(t),i=r||Vs(t)||ua(t);if(n=oo(n,4),null==e){var o=t&&t.constructor;e=i?r?new o:[]:Qs(t)&&Ys(o)?De(Ht(t)):{}}return(i?$n:gr)(t,(function(t,r,i){return n(e,t,r,i)})),e},Ie.unary=function(t){return $s(t,1)},Ie.union=ts,Ie.unionBy=ns,Ie.unionWith=es,Ie.uniq=function(t){return t&&t.length?ai(t):[]},Ie.uniqBy=function(t,n){return t&&t.length?ai(t,oo(n,2)):[]},Ie.uniqWith=function(t,n){return n="function"==typeof n?n:i,t&&t.length?ai(t,i,n):[]},Ie.unset=function(t,n){return null==t||ui(t,n)},Ie.unzip=rs,Ie.unzipWith=is,Ie.update=function(t,n,e){return null==t?t:li(t,n,_i(e))},Ie.updateWith=function(t,n,e,r){return r="function"==typeof r?r:i,null==t?t:li(t,n,_i(e),r)},Ie.values=Da,Ie.valuesIn=function(t){return null==t?[]:Kn(t,ja(t))},Ie.without=os,Ie.words=Ya,Ie.wrap=function(t,n){return Ls(_i(n),t)},Ie.xor=ss,Ie.xorBy=as,Ie.xorWith=us,Ie.zip=ls,Ie.zipObject=function(t,n){return di(t||[],n||[],Qe)},Ie.zipObjectDeep=function(t,n){return di(t||[],n||[],Yr)},Ie.zipWith=cs,Ie.entries=Oa,Ie.entriesIn=Ia,Ie.extend=ya,Ie.extendWith=wa,su(Ie,Ie),Ie.add=mu,Ie.attempt=Ka,Ie.camelCase=Na,Ie.capitalize=Ba,Ie.ceil=gu,Ie.clamp=function(t,n,e){return e===i&&(e=n,n=i),e!==i&&(e=(e=_a(e))==e?e:0),n!==i&&(n=(n=_a(n))==n?n:0),or(_a(t),n,e)},Ie.clone=function(t){return sr(t,4)},Ie.cloneDeep=function(t){return sr(t,5)},Ie.cloneDeepWith=function(t,n){return sr(t,5,n="function"==typeof n?n:i)},Ie.cloneWith=function(t,n){return sr(t,4,n="function"==typeof n?n:i)},Ie.conformsTo=function(t,n){return null==n||ar(t,n,Ta(n))},Ie.deburr=Fa,Ie.defaultTo=function(t,n){return null==t||t!=t?n:t},Ie.divide=yu,Ie.endsWith=function(t,n,e){t=ma(t),n=si(n);var r=t.length,o=e=e===i?r:or(da(e),0,r);return(e-=n.length)>=0&&t.slice(e,o)==n},Ie.eq=Ds,Ie.escape=function(t){return(t=ma(t))&&Z.test(t)?t.replace(W,ee):t},Ie.escapeRegExp=function(t){return(t=ma(t))&&et.test(t)?t.replace(nt,"\\$&"):t},Ie.every=function(t,n,e){var r=Us(t)?Mn:fr;return e&&mo(t,n,e)&&(n=i),r(t,oo(n,3))},Ie.find=_s,Ie.findIndex=Fo,Ie.findKey=function(t,n){return In(t,oo(n,3),gr)},Ie.findLast=vs,Ie.findLastIndex=Uo,Ie.findLastKey=function(t,n){return In(t,oo(n,3),yr)},Ie.floor=wu,Ie.forEach=ms,Ie.forEachRight=gs,Ie.forIn=function(t,n){return null==t?t:vr(t,oo(n,3),ja)},Ie.forInRight=function(t,n){return null==t?t:mr(t,oo(n,3),ja)},Ie.forOwn=function(t,n){return t&&gr(t,oo(n,3))},Ie.forOwnRight=function(t,n){return t&&yr(t,oo(n,3))},Ie.get=Ca,Ie.gt=Ns,Ie.gte=Bs,Ie.has=function(t,n){return null!=t&&fo(t,n,Cr)},Ie.hasIn=$a,Ie.head=Go,Ie.identity=eu,Ie.includes=function(t,n,e,r){t=Gs(t)?t:Da(t),e=e&&!r?da(e):0;var i=t.length;return e<0&&(e=ve(i+e,0)),sa(t)?e<=i&&t.indexOf(n,e)>-1:!!i&&Nn(t,n,e)>-1},Ie.indexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=null==e?0:da(e);return i<0&&(i=ve(r+i,0)),Nn(t,n,i)},Ie.inRange=function(t,n,e){return n=fa(n),e===i?(e=n,n=0):e=fa(e),function(t,n,e){return t>=me(n,e)&&t=-9007199254740991&&t<=h},Ie.isSet=oa,Ie.isString=sa,Ie.isSymbol=aa,Ie.isTypedArray=ua,Ie.isUndefined=function(t){return t===i},Ie.isWeakMap=function(t){return ta(t)&&ho(t)==T},Ie.isWeakSet=function(t){return ta(t)&&"[object WeakSet]"==kr(t)},Ie.join=function(t,n){return null==t?"":Gn.call(t,n)},Ie.kebabCase=Ua,Ie.last=Xo,Ie.lastIndexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var o=r;return e!==i&&(o=(o=da(e))<0?ve(r+o,0):me(o,r-1)),n==n?function(t,n,e){for(var r=e+1;r--;)if(t[r]===n)return r;return r}(t,n,o):Dn(t,Fn,o,!0)},Ie.lowerCase=Ha,Ie.lowerFirst=Ga,Ie.lt=la,Ie.lte=ca,Ie.max=function(t){return t&&t.length?dr(t,eu,Sr):i},Ie.maxBy=function(t,n){return t&&t.length?dr(t,oo(n,2),Sr):i},Ie.mean=function(t){return Un(t,eu)},Ie.meanBy=function(t,n){return Un(t,oo(n,2))},Ie.min=function(t){return t&&t.length?dr(t,eu,Rr):i},Ie.minBy=function(t,n){return t&&t.length?dr(t,oo(n,2),Rr):i},Ie.stubArray=pu,Ie.stubFalse=_u,Ie.stubObject=function(){return{}},Ie.stubString=function(){return""},Ie.stubTrue=function(){return!0},Ie.multiply=bu,Ie.nth=function(t,n){return t&&t.length?Nr(t,da(n)):i},Ie.noConflict=function(){return fn._===this&&(fn._=It),this},Ie.noop=au,Ie.now=Cs,Ie.pad=function(t,n,e){t=ma(t);var r=(n=da(n))?ce(t):0;if(!n||r>=n)return t;var i=(n-r)/2;return Bi(pn(i),e)+t+Bi(dn(i),e)},Ie.padEnd=function(t,n,e){t=ma(t);var r=(n=da(n))?ce(t):0;return n&&rn){var r=t;t=n,n=r}if(e||t%1||n%1){var o=we();return me(t+o*(n-t+un("1e-"+((o+"").length-1))),n)}return Gr(t,n)},Ie.reduce=function(t,n,e){var r=Us(t)?Pn:Wn,i=arguments.length<3;return r(t,oo(n,4),e,i,cr)},Ie.reduceRight=function(t,n,e){var r=Us(t)?Rn:Wn,i=arguments.length<3;return r(t,oo(n,4),e,i,hr)},Ie.repeat=function(t,n,e){return n=(e?mo(t,n,e):n===i)?1:da(n),Wr(ma(t),n)},Ie.replace=function(){var t=arguments,n=ma(t[0]);return t.length<3?n:n.replace(t[1],t[2])},Ie.result=function(t,n,e){var r=-1,o=(n=vi(n,t)).length;for(o||(o=1,t=i);++rh)return[];var e=d,r=me(t,d);n=oo(n),t-=d;for(var i=Zn(r,n);++e=s)return t;var u=e-ce(r);if(u<1)return r;var l=a?gi(a,0,u).join(""):t.slice(0,u);if(o===i)return l+r;if(a&&(u+=l.length-u),ia(o)){if(t.slice(u).search(o)){var c,h=l;for(o.global||(o=Ct(o.source,ma(ft.exec(o))+"g")),o.lastIndex=0;c=o.exec(h);)var f=c.index;l=l.slice(0,f===i?u:f)}}else if(t.indexOf(si(o),u)!=u){var d=l.lastIndexOf(o);d>-1&&(l=l.slice(0,d))}return l+r},Ie.unescape=function(t){return(t=ma(t))&&V.test(t)?t.replace(G,de):t},Ie.uniqueId=function(t){var n=++Pt;return ma(t)+n},Ie.upperCase=Za,Ie.upperFirst=Xa,Ie.each=ms,Ie.eachRight=gs,Ie.first=Go,su(Ie,(vu={},gr(Ie,(function(t,n){qt.call(Ie.prototype,n)||(vu[n]=t)})),vu),{chain:!1}),Ie.VERSION="4.17.21",$n(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Ie[t].placeholder=Ie})),$n(["drop","take"],(function(t,n){Fe.prototype[t]=function(e){e=e===i?1:ve(da(e),0);var r=this.__filtered__&&!n?new Fe(this):this.clone();return r.__filtered__?r.__takeCount__=me(e,r.__takeCount__):r.__views__.push({size:me(e,d),type:t+(r.__dir__<0?"Right":"")}),r},Fe.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}})),$n(["filter","map","takeWhile"],(function(t,n){var e=n+1,r=1==e||3==e;Fe.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:oo(t,3),type:e}),n.__filtered__=n.__filtered__||r,n}})),$n(["head","last"],(function(t,n){var e="take"+(n?"Right":"");Fe.prototype[t]=function(){return this[e](1).value()[0]}})),$n(["initial","tail"],(function(t,n){var e="drop"+(n?"":"Right");Fe.prototype[t]=function(){return this.__filtered__?new Fe(this):this[e](1)}})),Fe.prototype.compact=function(){return this.filter(eu)},Fe.prototype.find=function(t){return this.filter(t).head()},Fe.prototype.findLast=function(t){return this.reverse().find(t)},Fe.prototype.invokeMap=Vr((function(t,n){return"function"==typeof t?new Fe(this):this.map((function(e){return Mr(e,t,n)}))})),Fe.prototype.reject=function(t){return this.filter(Ps(oo(t)))},Fe.prototype.slice=function(t,n){t=da(t);var e=this;return e.__filtered__&&(t>0||n<0)?new Fe(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),n!==i&&(e=(n=da(n))<0?e.dropRight(-n):e.take(n-t)),e)},Fe.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Fe.prototype.toArray=function(){return this.take(d)},gr(Fe.prototype,(function(t,n){var e=/^(?:filter|find|map|reject)|While$/.test(n),r=/^(?:head|last)$/.test(n),o=Ie[r?"take"+("last"==n?"Right":""):n],s=r||/^find/.test(n);o&&(Ie.prototype[n]=function(){var n=this.__wrapped__,a=r?[1]:arguments,u=n instanceof Fe,l=a[0],c=u||Us(n),h=function(t){var n=o.apply(Ie,qn([t],a));return r&&f?n[0]:n};c&&e&&"function"==typeof l&&1!=l.length&&(u=c=!1);var f=this.__chain__,d=!!this.__actions__.length,p=s&&!f,_=u&&!d;if(!s&&c){n=_?n:new Fe(this);var v=t.apply(n,a);return v.__actions__.push({func:fs,args:[h],thisArg:i}),new Be(v,f)}return p&&_?t.apply(this,a):(v=this.thru(h),p?r?v.value()[0]:v.value():v)})})),$n(["pop","push","shift","sort","splice","unshift"],(function(t){var n=Mt[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Ie.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return n.apply(Us(i)?i:[],t)}return this[e]((function(e){return n.apply(Us(e)?e:[],t)}))}})),gr(Fe.prototype,(function(t,n){var e=Ie[n];if(e){var r=e.name+"";qt.call(ze,r)||(ze[r]=[]),ze[r].push({name:n,func:e})}})),ze[Oi(i,2).name]=[{name:"wrapper",func:i}],Fe.prototype.clone=function(){var t=new Fe(this.__wrapped__);return t.__actions__=$i(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=$i(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=$i(this.__views__),t},Fe.prototype.reverse=function(){if(this.__filtered__){var t=new Fe(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Fe.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=Us(t),r=n<0,i=e?t.length:0,o=function(t,n,e){for(var r=-1,i=e.length;++r=this.__values__.length;return{done:t,value:t?i:this.__values__[this.__index__++]}},Ie.prototype.plant=function(t){for(var n,e=this;e instanceof Ne;){var r=Io(e);r.__index__=0,r.__values__=i,n?o.__wrapped__=r:n=r;var o=r;e=e.__wrapped__}return o.__wrapped__=t,n},Ie.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Fe){var n=t;return this.__actions__.length&&(n=new Fe(this)),(n=n.reverse()).__actions__.push({func:fs,args:[Qo],thisArg:i}),new Be(n,this.__chain__)}return this.thru(Qo)},Ie.prototype.toJSON=Ie.prototype.valueOf=Ie.prototype.value=function(){return hi(this.__wrapped__,this.__actions__)},Ie.prototype.first=Ie.prototype.head,Xt&&(Ie.prototype[Xt]=function(){return this}),Ie}();fn._=pe,(r=function(){return pe}.call(n,e,n,t))===i||(t.exports=r)}.call(this)},82856:(t,n,e)=>{var r=e(81078),i=e(55615),o=e(91996),s=e(69546);t.exports=function(t,n){return(s(t)?r:o)(t,i(n,3))}},3234:(t,n,e)=>{var r=e(32618),i=e(17623),o=e(55615);t.exports=function(t,n){var e={};return n=o(n,3),i(t,(function(t,i,o){r(e,i,n(t,i,o))})),e}},86295:(t,n,e)=>{var r=e(35817),i=e(78713),o=e(19568);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},2520:(t,n,e)=>{var r=e(52290);function i(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new TypeError("Expected a function");var e=function(){var r=arguments,i=n?n.apply(this,r):r[0],o=e.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return e.cache=o.set(i,s)||o,s};return e.cache=new(i.Cache||r),e}i.Cache=r,t.exports=i},39488:(t,n,e)=>{var r=e(663),i=e(96921)((function(t,n,e){r(t,n,e)}));t.exports=i},74620:(t,n,e)=>{var r=e(35817),i=e(11856),o=e(19568);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},30257:(t,n,e)=>{var r=e(35817),i=e(55615),o=e(11856);t.exports=function(t,n){return t&&t.length?r(t,i(n,2),o):void 0}},5152:t=>{t.exports=function(){}},97127:(t,n,e)=>{var r=e(9649);t.exports=function(){return r.Date.now()}},82052:(t,n,e)=>{var r=e(72141),i=e(62722)((function(t,n){return null==t?{}:r(t,n)}));t.exports=i},36432:(t,n,e)=>{var r=e(81078),i=e(55615),o=e(33092),s=e(10478);t.exports=function(t,n){if(null==t)return{};var e=r(s(t),(function(t){return[t]}));return n=i(n),o(t,e,(function(t,e){return n(t,e[0])}))}},96730:(t,n,e)=>{var r=e(74430),i=e(12257),o=e(65677),s=e(25618);t.exports=function(t){return o(t)?r(s(t)):i(t)}},84769:(t,n,e)=>{var r=e(13694)();t.exports=r},97994:(t,n,e)=>{var r=e(4101),i=e(60836),o=e(55615),s=e(29501),a=e(69546);t.exports=function(t,n,e){var u=a(t)?r:s,l=arguments.length<3;return u(t,o(n,4),e,l,i)}},83236:(t,n,e)=>{var r=e(17338);t.exports=function(t,n,e){return null==t?t:r(t,n,e)}},16334:(t,n,e)=>{var r=e(59011),i=e(11970),o=e(46387),s=e(98689),a=e(68437);t.exports=function(t){if(null==t)return 0;if(o(t))return s(t)?a(t):t.length;var n=i(t);return"[object Map]"==n||"[object Set]"==n?t.size:r(t).length}},50449:(t,n,e)=>{var r=e(33169),i=e(14933),o=e(6359),s=e(51599),a=o((function(t,n){if(null==t)return[];var e=n.length;return e>1&&s(t,n[0],n[1])?n=[]:e>2&&s(n[0],n[1],n[2])&&(n=[n[0]]),i(t,r(n,1),[])}));t.exports=a},41258:t=>{t.exports=function(){return[]}},68854:t=>{t.exports=function(){return!1}},82675:(t,n,e)=>{var r=e(21795),i=e(34254);t.exports=function(t,n,e){return t&&t.length?(n=e||void 0===n?1:i(n),r(t,0,n<0?0:n)):[]}},52197:(t,n,e)=>{var r=e(72408),i=e(12289);t.exports=function(t,n,e){var o=!0,s=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return i(e)&&(o="leading"in e?!!e.leading:o,s="trailing"in e?!!e.trailing:s),r(t,n,{leading:o,maxWait:n,trailing:s})}},30510:(t,n,e)=>{var r=e(81696);t.exports=function(t){return t?Infinity===(t=r(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},34254:(t,n,e)=>{var r=e(30510);t.exports=function(t){var n=r(t),e=n%1;return n==n?e?n-e:n:0}},81696:(t,n,e)=>{var r=e(56532),i=e(12289),o=e(42008),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=i(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var e=a.test(t);return e||u.test(t)?l(t.slice(2),e?2:8):s.test(t)?NaN:+t}},17602:(t,n,e)=>{var r=e(20322),i=e(14399);t.exports=function(t){return r(t,i(t))}},39244:(t,n,e)=>{var r=e(7874);t.exports=function(t){return null==t?"":r(t)}},52224:(t,n,e)=>{var r=e(78769),i=e(29395),o=e(17623),s=e(55615),a=e(65506),u=e(69546),l=e(80758),c=e(93331),h=e(12289),f=e(65739);t.exports=function(t,n,e){var d=u(t),p=d||l(t)||f(t);if(n=s(n,4),null==e){var _=t&&t.constructor;e=p?d?new _:[]:h(t)&&c(_)?i(a(t)):{}}return(p?r:o)(t,(function(t,r,i){return n(e,t,r,i)})),e}},27516:(t,n,e)=>{var r=e(33169),i=e(6359),o=e(92052),s=e(70071),a=i((function(t){return o(r(t,1,s,!0))}));t.exports=a},73967:(t,n,e)=>{var r=e(39244),i=0;t.exports=function(t){var n=++i;return r(t)+n}},72058:(t,n,e)=>{var r=e(12254),i=e(25961);t.exports=function(t){return null==t?[]:r(t,i(t))}},97652:(t,n,e)=>{var r=e(88902),i=e(1536);t.exports=function(t,n){return i(t||[],n||[],r)}},11467:(t,n,e)=>{"use strict";t.exports=e(91136)},7527:(t,n,e)=>{"use strict";t.exports=e(72059)},21134:t=>{"use strict";t.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},51970:t=>{"use strict";var n="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",e="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",r=new RegExp("^(?:"+n+"|"+e+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|]*>|)"),i=new RegExp("^(?:"+n+"|"+e+")");t.exports.n=r,t.exports.q=i},97190:(t,n,e)=>{"use strict";var r=Object.prototype.hasOwnProperty;function i(t,n){return r.call(t,n)}function o(t){return!(t>=55296&&t<=57343||t>=64976&&t<=65007||65535==(65535&t)||65534==(65535&t)||t>=0&&t<=8||11===t||t>=14&&t<=31||t>=127&&t<=159||t>1114111)}function s(t){if(t>65535){var n=55296+((t-=65536)>>10),e=56320+(1023&t);return String.fromCharCode(n,e)}return String.fromCharCode(t)}var a=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=new RegExp(a.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),l=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,c=e(7527),h=/[&<>"]/,f=/[&<>"]/g,d={"&":"&","<":"<",">":">",'"':"""};function p(t){return d[t]}var _=/[.?*+^$[\]\\(){}|-]/g,v=e(57104);n.lib={},n.lib.mdurl=e(60802),n.lib.ucmicro=e(54062),n.assign=function(t){return Array.prototype.slice.call(arguments,1).forEach((function(n){if(n){if("object"!=typeof n)throw new TypeError(n+"must be object");Object.keys(n).forEach((function(e){t[e]=n[e]}))}})),t},n.isString=function(t){return"[object String]"===function(t){return Object.prototype.toString.call(t)}(t)},n.has=i,n.unescapeMd=function(t){return t.indexOf("\\")<0?t:t.replace(a,"$1")},n.unescapeAll=function(t){return t.indexOf("\\")<0&&t.indexOf("&")<0?t:t.replace(u,(function(t,n,e){return n||function(t,n){var e=0;return i(c,n)?c[n]:35===n.charCodeAt(0)&&l.test(n)&&o(e="x"===n[1].toLowerCase()?parseInt(n.slice(2),16):parseInt(n.slice(1),10))?s(e):t}(t,e)}))},n.isValidEntityCode=o,n.fromCodePoint=s,n.escapeHtml=function(t){return h.test(t)?t.replace(f,p):t},n.arrayReplaceAt=function(t,n,e){return[].concat(t.slice(0,n),e,t.slice(n+1))},n.isSpace=function(t){switch(t){case 9:case 32:return!0}return!1},n.isWhiteSpace=function(t){if(t>=8192&&t<=8202)return!0;switch(t){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},n.isMdAsciiPunct=function(t){switch(t){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},n.isPunctChar=function(t){return v.test(t)},n.escapeRE=function(t){return t.replace(_,"\\$&")},n.normalizeReference=function(t){return t=t.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(t=t.replace(/ẞ/g,"ß")),t.toLowerCase().toUpperCase()}},75176:(t,n,e)=>{"use strict";n.parseLinkLabel=e(45940),n.parseLinkDestination=e(89213),n.parseLinkTitle=e(2593)},89213:(t,n,e)=>{"use strict";var r=e(97190).unescapeAll;t.exports=function(t,n,e){var i,o,s=n,a={ok:!1,pos:0,lines:0,str:""};if(60===t.charCodeAt(n)){for(n++;n{"use strict";t.exports=function(t,n,e){var r,i,o,s,a=-1,u=t.posMax,l=t.pos;for(t.pos=n+1,r=1;t.pos{"use strict";var r=e(97190).unescapeAll;t.exports=function(t,n,e){var i,o,s=0,a=n,u={ok:!1,pos:0,lines:0,str:""};if(n>=e)return u;if(34!==(o=t.charCodeAt(n))&&39!==o&&40!==o)return u;for(n++,40===o&&(o=41);n{"use strict";var r=e(97190),i=e(75176),o=e(3030),s=e(53376),a=e(61025),u=e(67328),l=e(62901),c=e(60802),h=e(7736),f={default:e(54493),zero:e(74836),commonmark:e(33015)},d=/^(vbscript|javascript|file|data):/,p=/^data:image\/(gif|png|jpeg|webp);/;function _(t){var n=t.trim().toLowerCase();return!d.test(n)||!!p.test(n)}var v=["http:","https:","mailto:"];function m(t){var n=c.parse(t,!0);if(n.hostname&&(!n.protocol||v.indexOf(n.protocol)>=0))try{n.hostname=h.toASCII(n.hostname)}catch(t){}return c.encode(c.format(n))}function g(t){var n=c.parse(t,!0);if(n.hostname&&(!n.protocol||v.indexOf(n.protocol)>=0))try{n.hostname=h.toUnicode(n.hostname)}catch(t){}return c.decode(c.format(n))}function y(t,n){if(!(this instanceof y))return new y(t,n);n||r.isString(t)||(n=t||{},t="default"),this.inline=new u,this.block=new a,this.core=new s,this.renderer=new o,this.linkify=new l,this.validateLink=_,this.normalizeLink=m,this.normalizeLinkText=g,this.utils=r,this.helpers=r.assign({},i),this.options={},this.configure(t),n&&this.set(n)}y.prototype.set=function(t){return r.assign(this.options,t),this},y.prototype.configure=function(t){var n,e=this;if(r.isString(t)&&!(t=f[n=t]))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach((function(n){t.components[n].rules&&e[n].ruler.enableOnly(t.components[n].rules),t.components[n].rules2&&e[n].ruler2.enableOnly(t.components[n].rules2)})),this},y.prototype.enable=function(t,n){var e=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach((function(n){e=e.concat(this[n].ruler.enable(t,!0))}),this),e=e.concat(this.inline.ruler2.enable(t,!0));var r=t.filter((function(t){return e.indexOf(t)<0}));if(r.length&&!n)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},y.prototype.disable=function(t,n){var e=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach((function(n){e=e.concat(this[n].ruler.disable(t,!0))}),this),e=e.concat(this.inline.ruler2.disable(t,!0));var r=t.filter((function(t){return e.indexOf(t)<0}));if(r.length&&!n)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},y.prototype.use=function(t){var n=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,n),this},y.prototype.parse=function(t,n){if("string"!=typeof t)throw new Error("Input data should be a String");var e=new this.core.State(t,this,n);return this.core.process(e),e.tokens},y.prototype.render=function(t,n){return n=n||{},this.renderer.render(this.parse(t,n),this.options,n)},y.prototype.parseInline=function(t,n){var e=new this.core.State(t,this,n);return e.inlineMode=!0,this.core.process(e),e.tokens},y.prototype.renderInline=function(t,n){return n=n||{},this.renderer.render(this.parseInline(t,n),this.options,n)},t.exports=y},61025:(t,n,e)=>{"use strict";var r=e(63299),i=[["table",e(15891),["paragraph","reference"]],["code",e(89911)],["fence",e(9255),["paragraph","reference","blockquote","list"]],["blockquote",e(41961),["paragraph","reference","blockquote","list"]],["hr",e(6895),["paragraph","reference","blockquote","list"]],["list",e(51199),["paragraph","reference","blockquote"]],["reference",e(33943)],["heading",e(10690),["paragraph","reference","blockquote"]],["lheading",e(1781)],["html_block",e(71371),["paragraph","reference","blockquote"]],["paragraph",e(66599)]];function o(){this.ruler=new r;for(var t=0;t=e))&&!(t.sCount[s]=u){t.line=e;break}for(r=0;r{"use strict";var r=e(63299),i=[["normalize",e(80913)],["block",e(88938)],["inline",e(52717)],["linkify",e(58425)],["replacements",e(36125)],["smartquotes",e(17584)]];function o(){this.ruler=new r;for(var t=0;t{"use strict";var r=e(63299),i=[["text",e(15747)],["newline",e(48162)],["escape",e(38607)],["backticks",e(29112)],["strikethrough",e(16264).w],["emphasis",e(48303).w],["link",e(70438)],["image",e(9257)],["autolink",e(76754)],["html_inline",e(62853)],["entity",e(21645)]],o=[["balance_pairs",e(59202)],["strikethrough",e(16264).g],["emphasis",e(48303).g],["text_collapse",e(8324)]];function s(){var t;for(this.ruler=new r,t=0;t=o)break}else t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},s.prototype.parse=function(t,n,e,r){var i,o,s,a=new this.State(t,n,e,r);for(this.tokenize(a),s=(o=this.ruler2.getRules("")).length,i=0;i{"use strict";t.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}},54493:t=>{"use strict";t.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}},74836:t=>{"use strict";t.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}},3030:(t,n,e)=>{"use strict";var r=e(97190).assign,i=e(97190).unescapeAll,o=e(97190).escapeHtml,s={};function a(){this.rules=r({},s)}s.code_inline=function(t,n,e,r,i){var s=t[n];return""+o(t[n].content)+""},s.code_block=function(t,n,e,r,i){var s=t[n];return""+o(t[n].content)+"\n"},s.fence=function(t,n,e,r,s){var a,u,l,c,h=t[n],f=h.info?i(h.info).trim():"",d="";return f&&(d=f.split(/\s+/g)[0]),0===(a=e.highlight&&e.highlight(h.content,d)||o(h.content)).indexOf(""+a+"\n"):"
"+a+"
\n"},s.image=function(t,n,e,r,i){var o=t[n];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,e,r),i.renderToken(t,n,e)},s.hardbreak=function(t,n,e){return e.xhtmlOut?"
\n":"
\n"},s.softbreak=function(t,n,e){return e.breaks?e.xhtmlOut?"
\n":"
\n":"\n"},s.text=function(t,n){return o(t[n].content)},s.html_block=function(t,n){return t[n].content},s.html_inline=function(t,n){return t[n].content},a.prototype.renderAttrs=function(t){var n,e,r;if(!t.attrs)return"";for(r="",n=0,e=t.attrs.length;n\n":">")},a.prototype.renderInline=function(t,n,e){for(var r,i="",o=this.rules,s=0,a=t.length;s{"use strict";function n(){this.__rules__=[],this.__cache__=null}n.prototype.__find__=function(t){for(var n=0;n{"use strict";var r=e(97190).isSpace;t.exports=function(t,n,e,i){var o,s,a,u,l,c,h,f,d,p,_,v,m,g,y,w,b,x,k,S,C=t.lineMax,$=t.bMarks[n]+t.tShift[n],E=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4)return!1;if(62!==t.src.charCodeAt($++))return!1;if(i)return!0;for(u=d=t.sCount[n]+1,32===t.src.charCodeAt($)?($++,u++,d++,o=!1,w=!0):9===t.src.charCodeAt($)?(w=!0,(t.bsCount[n]+d)%4==3?($++,u++,d++,o=!1):o=!0):w=!1,p=[t.bMarks[n]],t.bMarks[n]=$;$=E,g=[t.sCount[n]],t.sCount[n]=d-u,y=[t.tShift[n]],t.tShift[n]=$-t.bMarks[n],x=t.md.block.ruler.getRules("blockquote"),m=t.parentType,t.parentType="blockquote",f=n+1;f=(E=t.eMarks[f])));f++)if(62!==t.src.charCodeAt($++)||S){if(c)break;for(b=!1,a=0,l=x.length;a=E,_.push(t.bsCount[f]),t.bsCount[f]=t.sCount[f]+1+(w?1:0),g.push(t.sCount[f]),t.sCount[f]=d-u,y.push(t.tShift[f]),t.tShift[f]=$-t.bMarks[f]}for(v=t.blkIndent,t.blkIndent=0,(k=t.push("blockquote_open","blockquote",1)).markup=">",k.map=h=[n,0],t.md.block.tokenize(t,n,f),(k=t.push("blockquote_close","blockquote",-1)).markup=">",t.lineMax=C,t.parentType=m,h[1]=t.line,a=0;a{"use strict";t.exports=function(t,n,e){var r,i,o;if(t.sCount[n]-t.blkIndent<4)return!1;for(i=r=n+1;r=4))break;i=++r}return t.line=i,(o=t.push("code_block","code",0)).content=t.getLines(n,i,4+t.blkIndent,!0),o.map=[n,t.line],!0}},9255:t=>{"use strict";t.exports=function(t,n,e,r){var i,o,s,a,u,l,c,h=!1,f=t.bMarks[n]+t.tShift[n],d=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4)return!1;if(f+3>d)return!1;if(126!==(i=t.src.charCodeAt(f))&&96!==i)return!1;if(u=f,(o=(f=t.skipChars(f,i))-u)<3)return!1;if(c=t.src.slice(u,f),s=t.src.slice(f,d),96===i&&s.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(a=n;!(++a>=e||(f=u=t.bMarks[a]+t.tShift[a])<(d=t.eMarks[a])&&t.sCount[a]=4||(f=t.skipChars(f,i))-u{"use strict";var r=e(97190).isSpace;t.exports=function(t,n,e,i){var o,s,a,u,l=t.bMarks[n]+t.tShift[n],c=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4)return!1;if(35!==(o=t.src.charCodeAt(l))||l>=c)return!1;for(s=1,o=t.src.charCodeAt(++l);35===o&&l6||ll&&r(t.src.charCodeAt(a-1))&&(c=a),t.line=n+1,(u=t.push("heading_open","h"+String(s),1)).markup="########".slice(0,s),u.map=[n,t.line],(u=t.push("inline","",0)).content=t.src.slice(l,c).trim(),u.map=[n,t.line],u.children=[],(u=t.push("heading_close","h"+String(s),-1)).markup="########".slice(0,s)),0))}},6895:(t,n,e)=>{"use strict";var r=e(97190).isSpace;t.exports=function(t,n,e,i){var o,s,a,u,l=t.bMarks[n]+t.tShift[n],c=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4)return!1;if(42!==(o=t.src.charCodeAt(l++))&&45!==o&&95!==o)return!1;for(s=1;l{"use strict";var r=e(21134),i=e(51970).q,o=[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(i.source+"\\s*$"),/^$/,!1]];t.exports=function(t,n,e,r){var i,s,a,u,l=t.bMarks[n]+t.tShift[n],c=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4)return!1;if(!t.md.options.html)return!1;if(60!==t.src.charCodeAt(l))return!1;for(u=t.src.slice(l,c),i=0;i{"use strict";t.exports=function(t,n,e){var r,i,o,s,a,u,l,c,h,f,d=n+1,p=t.md.block.ruler.getRules("paragraph");if(t.sCount[n]-t.blkIndent>=4)return!1;for(f=t.parentType,t.parentType="paragraph";d3)){if(t.sCount[d]>=t.blkIndent&&(u=t.bMarks[d]+t.tShift[d])<(l=t.eMarks[d])&&(45===(h=t.src.charCodeAt(u))||61===h)&&(u=t.skipChars(u,h),(u=t.skipSpaces(u))>=l)){c=61===h?1:2;break}if(!(t.sCount[d]<0)){for(i=!1,o=0,s=p.length;o{"use strict";var r=e(97190).isSpace;function i(t,n){var e,i,o,s;return i=t.bMarks[n]+t.tShift[n],o=t.eMarks[n],42!==(e=t.src.charCodeAt(i++))&&45!==e&&43!==e||i=s)return-1;if((e=t.src.charCodeAt(o++))<48||e>57)return-1;for(;;){if(o>=s)return-1;if(!((e=t.src.charCodeAt(o++))>=48&&e<=57)){if(41===e||46===e)break;return-1}if(o-i>=10)return-1}return o=4)return!1;if(t.listIndent>=0&&t.sCount[n]-t.listIndent>=4&&t.sCount[n]=t.blkIndent&&(P=!0),(M=o(t,n))>=0){if(f=!0,T=t.bMarks[n]+t.tShift[n],g=Number(t.src.substr(T,M-T-1)),P&&1!==g)return!1}else{if(!((M=i(t,n))>=0))return!1;f=!1}if(P&&t.skipSpaces(M)>=t.eMarks[n])return!1;if(m=t.src.charCodeAt(M-1),r)return!0;for(v=t.tokens.length,f?(q=t.push("ordered_list_open","ol",1),1!==g&&(q.attrs=[["start",g]])):q=t.push("bullet_list_open","ul",1),q.map=_=[n,0],q.markup=String.fromCharCode(m),w=n,z=!1,A=t.md.block.ruler.getRules("list"),k=t.parentType,t.parentType="list";w=y?1:b-h)>4&&(c=1),l=h+c,(q=t.push("list_item_open","li",1)).markup=String.fromCharCode(m),q.map=d=[n,0],$=t.tight,C=t.tShift[n],S=t.sCount[n],x=t.listIndent,t.listIndent=t.blkIndent,t.blkIndent=l,t.tight=!0,t.tShift[n]=a-t.bMarks[n],t.sCount[n]=b,a>=y&&t.isEmpty(n+1)?t.line=Math.min(t.line+2,e):t.md.block.tokenize(t,n,e,!0),t.tight&&!z||(R=!1),z=t.line-n>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=x,t.tShift[n]=C,t.sCount[n]=S,t.tight=$,(q=t.push("list_item_close","li",-1)).markup=String.fromCharCode(m),w=n=t.line,d[1]=w,a=t.bMarks[n],w>=e)break;if(t.sCount[w]=4)break;for(j=!1,u=0,p=A.length;u{"use strict";t.exports=function(t,n){var e,r,i,o,s,a,u=n+1,l=t.md.block.ruler.getRules("paragraph"),c=t.lineMax;for(a=t.parentType,t.parentType="paragraph";u3||t.sCount[u]<0)){for(r=!1,i=0,o=l.length;i{"use strict";var r=e(97190).normalizeReference,i=e(97190).isSpace;t.exports=function(t,n,e,o){var s,a,u,l,c,h,f,d,p,_,v,m,g,y,w,b,x=0,k=t.bMarks[n]+t.tShift[n],S=t.eMarks[n],C=n+1;if(t.sCount[n]-t.blkIndent>=4)return!1;if(91!==t.src.charCodeAt(k))return!1;for(;++k3||t.sCount[C]<0)){for(y=!1,h=0,f=w.length;h{"use strict";var r=e(94667),i=e(97190).isSpace;function o(t,n,e,r){var o,s,a,u,l,c,h,f;for(this.src=t,this.md=n,this.env=e,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",f=!1,a=u=c=h=0,l=(s=this.src).length;u0&&this.level++,this.tokens.push(i),i},o.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},o.prototype.skipEmptyLines=function(t){for(var n=this.lineMax;tn;)if(!i(this.src.charCodeAt(--t)))return t+1;return t},o.prototype.skipChars=function(t,n){for(var e=this.src.length;te;)if(n!==this.src.charCodeAt(--t))return t+1;return t},o.prototype.getLines=function(t,n,e,r){var o,s,a,u,l,c,h,f=t;if(t>=n)return"";for(c=new Array(n-t),o=0;fe?new Array(s-e+1).join(" ")+this.src.slice(u,l):this.src.slice(u,l)}return c.join("")},o.prototype.Token=r,t.exports=o},15891:(t,n,e)=>{"use strict";var r=e(97190).isSpace;function i(t,n){var e=t.bMarks[n]+t.blkIndent,r=t.eMarks[n];return t.src.substr(e,r-e)}function o(t){var n,e=[],r=0,i=t.length,o=0,s=0,a=!1,u=0;for(n=t.charCodeAt(r);re)return!1;if(h=n+1,t.sCount[h]=4)return!1;if((l=t.bMarks[h]+t.tShift[h])>=t.eMarks[h])return!1;if(124!==(a=t.src.charCodeAt(l++))&&45!==a&&58!==a)return!1;for(;l=4)return!1;if((d=(f=o(u.replace(/^\||\|$/g,""))).length)>_.length)return!1;if(s)return!0;for((p=t.push("table_open","table",1)).map=m=[n,0],(p=t.push("thead_open","thead",1)).map=[n,n+1],(p=t.push("tr_open","tr",1)).map=[n,n+1],c=0;c=4);h++){for(f=o(u.replace(/^\||\|$/g,"")),p=t.push("tr_open","tr",1),c=0;c{"use strict";t.exports=function(t){var n;t.inlineMode?((n=new t.Token("inline","",0)).content=t.src,n.map=[0,1],n.children=[],t.tokens.push(n)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}},52717:t=>{"use strict";t.exports=function(t){var n,e,r,i=t.tokens;for(e=0,r=i.length;e{"use strict";var r=e(97190).arrayReplaceAt;function i(t){return/^<\/a\s*>/i.test(t)}t.exports=function(t){var n,e,o,s,a,u,l,c,h,f,d,p,_,v,m,g,y,w,b=t.tokens;if(t.md.options.linkify)for(e=0,o=b.length;e=0;n--)if("link_close"!==(u=s[n]).type){if("html_inline"===u.type&&(w=u.content,/^\s]/i.test(w)&&_>0&&_--,i(u.content)&&_++),!(_>0)&&"text"===u.type&&t.md.linkify.test(u.content)){for(h=u.content,y=t.md.linkify.match(h),l=[],p=u.level,d=0,c=0;cd&&((a=new t.Token("text","",0)).content=h.slice(d,f),a.level=p,l.push(a)),(a=new t.Token("link_open","a",1)).attrs=[["href",m]],a.level=p++,a.markup="linkify",a.info="auto",l.push(a),(a=new t.Token("text","",0)).content=g,a.level=p,l.push(a),(a=new t.Token("link_close","a",-1)).level=--p,a.markup="linkify",a.info="auto",l.push(a),d=y[c].lastIndex);d{"use strict";var n=/\r\n?|\n/g,e=/\0/g;t.exports=function(t){var r;r=(r=t.src.replace(n,"\n")).replace(e,"�"),t.src=r}},36125:t=>{"use strict";var n=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,e=/\((c|tm|r|p)\)/i,r=/\((c|tm|r|p)\)/gi,i={c:"©",r:"®",p:"§",tm:"™"};function o(t,n){return i[n.toLowerCase()]}function s(t){var n,e,i=0;for(n=t.length-1;n>=0;n--)"text"!==(e=t[n]).type||i||(e.content=e.content.replace(r,o)),"link_open"===e.type&&"auto"===e.info&&i--,"link_close"===e.type&&"auto"===e.info&&i++}function a(t){var e,r,i=0;for(e=t.length-1;e>=0;e--)"text"!==(r=t[e]).type||i||n.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===r.type&&"auto"===r.info&&i--,"link_close"===r.type&&"auto"===r.info&&i++}t.exports=function(t){var r;if(t.md.options.typographer)for(r=t.tokens.length-1;r>=0;r--)"inline"===t.tokens[r].type&&(e.test(t.tokens[r].content)&&s(t.tokens[r].children),n.test(t.tokens[r].content)&&a(t.tokens[r].children))}},17584:(t,n,e)=>{"use strict";var r=e(97190).isWhiteSpace,i=e(97190).isPunctChar,o=e(97190).isMdAsciiPunct,s=/['"]/,a=/['"]/g;function u(t,n,e){return t.substr(0,n)+e+t.substr(n+1)}function l(t,n){var e,s,l,c,h,f,d,p,_,v,m,g,y,w,b,x,k,S,C,$,E;for(C=[],e=0;e=0&&!(C[k].level<=d);k--);if(C.length=k+1,"text"===s.type){h=0,f=(l=s.content).length;t:for(;h=0)_=l.charCodeAt(c.index-1);else for(k=e-1;k>=0&&"softbreak"!==t[k].type&&"hardbreak"!==t[k].type;k--)if(t[k].content){_=t[k].content.charCodeAt(t[k].content.length-1);break}if(v=32,h=48&&_<=57&&(x=b=!1),b&&x&&(b=m,x=g),b||x){if(x)for(k=C.length-1;k>=0&&(p=C[k],!(C[k].level=0;n--)"inline"===t.tokens[n].type&&s.test(t.tokens[n].content)&&l(t.tokens[n].children,t)}},64693:(t,n,e)=>{"use strict";var r=e(94667);function i(t,n,e){this.src=t,this.env=e,this.tokens=[],this.inlineMode=!1,this.md=n}i.prototype.Token=r,t.exports=i},76754:t=>{"use strict";var n=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,e=/^<([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)>/;t.exports=function(t,r){var i,o,s,a,u,l,c=t.pos;return!(60!==t.src.charCodeAt(c)||(i=t.src.slice(c)).indexOf(">")<0||(e.test(i)?(a=(o=i.match(e))[0].slice(1,-1),u=t.md.normalizeLink(a),!t.md.validateLink(u)||(r||((l=t.push("link_open","a",1)).attrs=[["href",u]],l.markup="autolink",l.info="auto",(l=t.push("text","",0)).content=t.md.normalizeLinkText(a),(l=t.push("link_close","a",-1)).markup="autolink",l.info="auto"),t.pos+=o[0].length,0)):!n.test(i)||(a=(s=i.match(n))[0].slice(1,-1),u=t.md.normalizeLink("mailto:"+a),!t.md.validateLink(u)||(r||((l=t.push("link_open","a",1)).attrs=[["href",u]],l.markup="autolink",l.info="auto",(l=t.push("text","",0)).content=t.md.normalizeLinkText(a),(l=t.push("link_close","a",-1)).markup="autolink",l.info="auto"),t.pos+=s[0].length,0))))}},29112:t=>{"use strict";t.exports=function(t,n){var e,r,i,o,s,a,u=t.pos;if(96!==t.src.charCodeAt(u))return!1;for(e=u,u++,r=t.posMax;u{"use strict";function n(t,n){var e,r,i,o,s,a,u,l,c={},h=n.length;for(e=0;es;r-=o.jump+1)if((o=n[r]).marker===i.marker&&(-1===a&&(a=r),o.open&&o.end<0&&(u=!1,(o.close||i.open)&&(o.length+i.length)%3==0&&(o.length%3==0&&i.length%3==0||(u=!0)),!u))){l=r>0&&!n[r-1].open?n[r-1].jump+1:0,i.jump=e-r+l,i.open=!1,o.end=e,o.jump=l,o.close=!1,a=-1;break}-1!==a&&(c[i.marker][(i.length||0)%3]=a)}}t.exports=function(t){var e,r=t.tokens_meta,i=t.tokens_meta.length;for(n(0,t.delimiters),e=0;e{"use strict";function n(t,n){var e,r,i,o,s,a;for(e=n.length-1;e>=0;e--)95!==(r=n[e]).marker&&42!==r.marker||-1!==r.end&&(i=n[r.end],a=e>0&&n[e-1].end===r.end+1&&n[e-1].token===r.token-1&&n[r.end+1].token===i.token+1&&n[e-1].marker===r.marker,s=String.fromCharCode(r.marker),(o=t.tokens[r.token]).type=a?"strong_open":"em_open",o.tag=a?"strong":"em",o.nesting=1,o.markup=a?s+s:s,o.content="",(o=t.tokens[i.token]).type=a?"strong_close":"em_close",o.tag=a?"strong":"em",o.nesting=-1,o.markup=a?s+s:s,o.content="",a&&(t.tokens[n[e-1].token].content="",t.tokens[n[r.end+1].token].content="",e--))}t.exports.w=function(t,n){var e,r,i=t.pos,o=t.src.charCodeAt(i);if(n)return!1;if(95!==o&&42!==o)return!1;for(r=t.scanDelims(t.pos,42===o),e=0;e{"use strict";var r=e(7527),i=e(97190).has,o=e(97190).isValidEntityCode,s=e(97190).fromCodePoint,a=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,u=/^&([a-z][a-z0-9]{1,31});/i;t.exports=function(t,n){var e,l,c=t.pos,h=t.posMax;if(38!==t.src.charCodeAt(c))return!1;if(c+1{"use strict";for(var r=e(97190).isSpace,i=[],o=0;o<256;o++)i.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(t){i[t.charCodeAt(0)]=1})),t.exports=function(t,n){var e,o=t.pos,s=t.posMax;if(92!==t.src.charCodeAt(o))return!1;if(++o{"use strict";var r=e(51970).n;t.exports=function(t,n){var e,i,o,s=t.pos;return!(!t.md.options.html||(o=t.posMax,60!==t.src.charCodeAt(s)||s+2>=o||33!==(e=t.src.charCodeAt(s+1))&&63!==e&&47!==e&&!function(t){var n=32|t;return n>=97&&n<=122}(e)||!(i=t.src.slice(s).match(r))||(n||(t.push("html_inline","",0).content=t.src.slice(s,s+i[0].length)),t.pos+=i[0].length,0)))}},9257:(t,n,e)=>{"use strict";var r=e(97190).normalizeReference,i=e(97190).isSpace;t.exports=function(t,n){var e,o,s,a,u,l,c,h,f,d,p,_,v,m="",g=t.pos,y=t.posMax;if(33!==t.src.charCodeAt(t.pos))return!1;if(91!==t.src.charCodeAt(t.pos+1))return!1;if(l=t.pos+2,(u=t.md.helpers.parseLinkLabel(t,t.pos+1,!1))<0)return!1;if((c=u+1)=y)return!1;for(v=c,(f=t.md.helpers.parseLinkDestination(t.src,c,t.posMax)).ok&&(m=t.md.normalizeLink(f.str),t.md.validateLink(m)?c=f.pos:m=""),v=c;c=y||41!==t.src.charCodeAt(c))return t.pos=g,!1;c++}else{if(void 0===t.env.references)return!1;if(c=0?a=t.src.slice(v,c++):c=u+1):c=u+1,a||(a=t.src.slice(l,u)),!(h=t.env.references[r(a)]))return t.pos=g,!1;m=h.href,d=h.title}return n||(s=t.src.slice(l,u),t.md.inline.parse(s,t.md,t.env,_=[]),(p=t.push("image","img",0)).attrs=e=[["src",m],["alt",""]],p.children=_,p.content=s,d&&e.push(["title",d])),t.pos=c,t.posMax=y,!0}},70438:(t,n,e)=>{"use strict";var r=e(97190).normalizeReference,i=e(97190).isSpace;t.exports=function(t,n){var e,o,s,a,u,l,c,h,f,d="",p=t.pos,_=t.posMax,v=t.pos,m=!0;if(91!==t.src.charCodeAt(t.pos))return!1;if(u=t.pos+1,(a=t.md.helpers.parseLinkLabel(t,t.pos,!0))<0)return!1;if((l=a+1)<_&&40===t.src.charCodeAt(l)){for(m=!1,l++;l<_&&(o=t.src.charCodeAt(l),i(o)||10===o);l++);if(l>=_)return!1;for(v=l,(c=t.md.helpers.parseLinkDestination(t.src,l,t.posMax)).ok&&(d=t.md.normalizeLink(c.str),t.md.validateLink(d)?l=c.pos:d=""),v=l;l<_&&(o=t.src.charCodeAt(l),i(o)||10===o);l++);if(c=t.md.helpers.parseLinkTitle(t.src,l,t.posMax),l<_&&v!==l&&c.ok)for(f=c.str,l=c.pos;l<_&&(o=t.src.charCodeAt(l),i(o)||10===o);l++);else f="";(l>=_||41!==t.src.charCodeAt(l))&&(m=!0),l++}if(m){if(void 0===t.env.references)return!1;if(l<_&&91===t.src.charCodeAt(l)?(v=l+1,(l=t.md.helpers.parseLinkLabel(t,l))>=0?s=t.src.slice(v,l++):l=a+1):l=a+1,s||(s=t.src.slice(u,a)),!(h=t.env.references[r(s)]))return t.pos=p,!1;d=h.href,f=h.title}return n||(t.pos=u,t.posMax=a,t.push("link_open","a",1).attrs=e=[["href",d]],f&&e.push(["title",f]),t.md.inline.tokenize(t),t.push("link_close","a",-1)),t.pos=l,t.posMax=_,!0}},48162:(t,n,e)=>{"use strict";var r=e(97190).isSpace;t.exports=function(t,n){var e,i,o=t.pos;if(10!==t.src.charCodeAt(o))return!1;for(e=t.pending.length-1,i=t.posMax,n||(e>=0&&32===t.pending.charCodeAt(e)?e>=1&&32===t.pending.charCodeAt(e-1)?(t.pending=t.pending.replace(/ +$/,""),t.push("hardbreak","br",0)):(t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0)):t.push("softbreak","br",0)),o++;o{"use strict";var r=e(94667),i=e(97190).isWhiteSpace,o=e(97190).isPunctChar,s=e(97190).isMdAsciiPunct;function a(t,n,e,r){this.src=t,this.env=e,this.md=n,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[]}a.prototype.pushPending=function(){var t=new r("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t},a.prototype.push=function(t,n,e){this.pending&&this.pushPending();var i=new r(t,n,e),o=null;return e<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,e>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(o),i},a.prototype.scanDelims=function(t,n){var e,r,a,u,l,c,h,f,d,p=t,_=!0,v=!0,m=this.posMax,g=this.src.charCodeAt(t);for(e=t>0?this.src.charCodeAt(t-1):32;p{"use strict";function n(t,n){var e,r,i,o,s,a=[],u=n.length;for(e=0;e{"use strict";function n(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}t.exports=function(t,e){for(var r=t.pos;r{"use strict";t.exports=function(t){var n,e,r=0,i=t.tokens,o=t.tokens.length;for(n=e=0;n0&&r++,"text"===i[n].type&&n+1{"use strict";function n(t,n,e){this.type=t,this.tag=n,this.attrs=null,this.map=null,this.nesting=e,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}n.prototype.attrIndex=function(t){var n,e,r;if(!this.attrs)return-1;for(e=0,r=(n=this.attrs).length;e=0&&(e=this.attrs[n][1]),e},n.prototype.attrJoin=function(t,n){var e=this.attrIndex(t);e<0?this.attrPush([t,n]):this.attrs[e][1]=this.attrs[e][1]+" "+n},t.exports=n},97038:t=>{"use strict";var n={};function e(t,r){var i;return"string"!=typeof r&&(r=e.defaultChars),i=function(t){var e,r,i=n[t];if(i)return i;for(i=n[t]=[],e=0;e<128;e++)r=String.fromCharCode(e),i.push(r);for(e=0;e=55296&&u<=57343?"���":String.fromCharCode(u),n+=6):240==(248&r)&&n+91114111?l+="����":(u-=65536,l+=String.fromCharCode(55296+(u>>10),56320+(1023&u))),n+=9):l+="�";return l}))}e.defaultChars=";/?:@&=+$,#",e.componentChars="",t.exports=e},94046:t=>{"use strict";var n={};function e(t,r,i){var o,s,a,u,l,c="";for("string"!=typeof r&&(i=r,r=e.defaultChars),void 0===i&&(i=!0),l=function(t){var e,r,i=n[t];if(i)return i;for(i=n[t]=[],e=0;e<128;e++)r=String.fromCharCode(e),/^[0-9a-z]$/i.test(r)?i.push(r):i.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e=55296&&a<=57343){if(a>=55296&&a<=56319&&o+1=56320&&u<=57343){c+=encodeURIComponent(t[o]+t[o+1]),o++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(t[o]);return c}e.defaultChars=";/?:@&=+$,-_.!~*'()#",e.componentChars="-_.!~*'()",t.exports=e},84521:t=>{"use strict";t.exports=function(t){var n="";return n+=t.protocol||"",n+=t.slashes?"//":"",n+=t.auth?t.auth+"@":"",t.hostname&&-1!==t.hostname.indexOf(":")?n+="["+t.hostname+"]":n+=t.hostname||"",n+=t.port?":"+t.port:"",n+=t.pathname||"",(n+=t.search||"")+(t.hash||"")}},60802:(t,n,e)=>{"use strict";t.exports.encode=e(94046),t.exports.decode=e(97038),t.exports.format=e(84521),t.exports.parse=e(845)},845:t=>{"use strict";function n(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var e=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,o=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),s=["'"].concat(o),a=["%","/","?",";","#"].concat(s),u=["/","?","#"],l=/^[+a-z0-9A-Z_-]{0,63}$/,c=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},f={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};n.prototype.parse=function(t,n){var r,o,s,d,p,_=t;if(_=_.trim(),!n&&1===t.split("#").length){var v=i.exec(_);if(v)return this.pathname=v[1],v[2]&&(this.search=v[2]),this}var m=e.exec(_);if(m&&(s=(m=m[0]).toLowerCase(),this.protocol=m,_=_.substr(m.length)),(n||m||_.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(p="//"===_.substr(0,2))||m&&h[m]||(_=_.substr(2),this.slashes=!0)),!h[m]&&(p||m&&!f[m])){var g,y,w=-1;for(r=0;r127?C+="x":C+=S[$];if(!C.match(l)){var M=k.slice(0,r),z=k.slice(r+1),T=S.match(c);T&&(M.push(T[1]),z.unshift(T[2])),z.length&&(_=z.join(".")+_),this.hostname=M.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),x&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var j=_.indexOf("#");-1!==j&&(this.hash=_.substr(j),_=_.slice(0,j));var A=_.indexOf("?");return-1!==A&&(this.search=_.substr(A),_=_.slice(0,A)),_&&(this.pathname=_),f[s]&&this.hostname&&!this.pathname&&(this.pathname=""),this},n.prototype.parseHost=function(t){var n=r.exec(t);n&&(":"!==(n=n[0])&&(this.port=n.substr(1)),t=t.substr(0,t.length-n.length)),t&&(this.hostname=t)},t.exports=function(t,e){if(t&&t instanceof n)return t;var r=new n;return r.parse(t,e),r}},57730:(t,n,e)=>{"use strict";var r=e(12017);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,n,e,i,o,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function n(){return t}t.isRequired=t;var e={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:n,element:t,elementType:t,instanceOf:n,node:t,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:i};return e.PropTypes=e,e}},97641:(t,n,e)=>{t.exports=e(57730)()},12017:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7736:(t,n,e)=>{"use strict";e.r(n),e.d(n,{decode:()=>m,default:()=>b,encode:()=>g,toASCII:()=>w,toUnicode:()=>y,ucs2decode:()=>d,ucs2encode:()=>p});const r=2147483647,i=36,o=/^xn--/,s=/[^\0-\x7E]/,a=/[\x2E\u3002\uFF0E\uFF61]/g,u={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},l=Math.floor,c=String.fromCharCode;function h(t){throw new RangeError(u[t])}function f(t,n){const e=t.split("@");let r="";e.length>1&&(r=e[0]+"@",t=e[1]);const i=function(t,n){const e=[];let r=t.length;for(;r--;)e[r]=n(t[r]);return e}((t=t.replace(a,".")).split("."),n).join(".");return r+i}function d(t){const n=[];let e=0;const r=t.length;for(;e=55296&&i<=56319&&eString.fromCodePoint(...t),_=function(t,n){return t+22+75*(t<26)-((0!=n)<<5)},v=function(t,n,e){let r=0;for(t=e?l(t/700):t>>1,t+=l(t/n);t>455;r+=i)t=l(t/35);return l(r+36*t/(t+38))},m=function(t){const n=[],e=t.length;let o=0,s=128,a=72,u=t.lastIndexOf("-");u<0&&(u=0);for(let e=0;e=128&&h("not-basic"),n.push(t.charCodeAt(e));for(let f=u>0?u+1:0;f=e&&h("invalid-input");const u=(c=t.charCodeAt(f++))-48<10?c-22:c-65<26?c-65:c-97<26?c-97:i;(u>=i||u>l((r-o)/n))&&h("overflow"),o+=u*n;const d=s<=a?1:s>=a+26?26:s-a;if(ul(r/p)&&h("overflow"),n*=p}const d=n.length+1;a=v(o-u,d,0==u),l(o/d)>r-s&&h("overflow"),s+=l(o/d),o%=d,n.splice(o++,0,s)}var c;return String.fromCodePoint(...n)},g=function(t){const n=[];let e=(t=d(t)).length,o=128,s=0,a=72;for(const e of t)e<128&&n.push(c(e));let u=n.length,f=u;for(u&&n.push("-");f=o&&nl((r-s)/d)&&h("overflow"),s+=(e-o)*d,o=e;for(const e of t)if(er&&h("overflow"),e==o){let t=s;for(let e=i;;e+=i){const r=e<=a?1:e>=a+26?26:e-a;if(t0&&this.handleMarkers(x);var $=this.editor.$options;c.editorOptions.forEach((function(n){$.hasOwnProperty(n)?t.editor.setOption(n,t.props[n]):t.props[n]&&console.warn("ReactAce: editor option "+n+" was activated but not found. Did you need to import a related tool or did you possibly mispell the option?")})),this.handleOptions(this.props),Array.isArray(w)&&w.forEach((function(n){"string"==typeof n.exec?t.editor.commands.bindKey(n.bindKey,n.exec):t.editor.commands.addCommand(n)})),g&&this.editor.setKeyboardHandler("ace/keyboard/"+g),e&&(this.refEditor.className+=" "+e),y&&y(this.editor),this.editor.resize(),s&&this.editor.focus()},n.prototype.componentDidUpdate=function(t){for(var n=t,e=this.props,r=0;r{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getAceInstance=n.debounce=n.editorEvents=n.editorOptions=void 0,n.editorOptions=["minLines","maxLines","readOnly","highlightActiveLine","tabSize","enableBasicAutocompletion","enableLiveAutocompletion","enableSnippets"],n.editorEvents=["onChange","onFocus","onInput","onBlur","onCopy","onPaste","onSelectionChange","onCursorChange","onScroll","handleOptions","updateRef"],n.getAceInstance=function(){var t;return"undefined"==typeof window?(e.g.window={},t=e(33127),delete e.g.window):window.ace?(t=window.ace).acequire=window.ace.require||window.ace.acequire:t=e(33127),t},n.debounce=function(t,n){var e=null;return function(){var r=this,i=arguments;clearTimeout(e),e=setTimeout((function(){t.apply(r,i)}),n)}}},40674:(t,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.diff=n.split=void 0;var r=e(19668),i=e(32091);n.diff=i.default;var o=e(52922);n.split=o.default,n.default=r.default},52922:function(t,n,e){"use strict";var r,i=this&&this.__extends||(r=function(t,n){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},r(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var n,e=1,r=arguments.length;e0&&t.handleMarkers(b,n),r=0;r{"use strict";var r=e(67113);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,n,e,i,o,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function n(){return t}t.isRequired=t;var e={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:n,element:t,elementType:t,instanceOf:n,node:t,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:i};return e.PropTypes=e,e}},66491:(t,n,e)=>{t.exports=e(97462)()},67113:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6713:(t,n,e)=>{"use strict";e.r(n),e.d(n,{Handles:()=>O,Rail:()=>L,Slider:()=>Z,Ticks:()=>N,Tracks:()=>F,mode1:()=>j,mode2:()=>A,mode3:()=>q});var r=e(66204),i=e(92879),o=e.n(i),s=Math.sqrt(50),a=Math.sqrt(10),u=Math.sqrt(2);function l(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function c(t,n){for(var e=0;et.length)&&(n=t.length);for(var e=0,r=new Array(n);e0&&void 0!==arguments[0]&&arguments[0];return function(n,e){return n.val>e.val?t?-1:1:e.val>n.val?t?1:-1:0}}function $(t,n,e){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=t.findIndex((function(t){return t.key===n}));if(-1!==i){var o=t[i],s=o.key;return o.val===e?t:[].concat(b(t.slice(0,i)),[{key:s,val:e}],b(t.slice(i+1))).sort(C(r))}return t}function E(t,n){if(!t)return[0,0];var e=t.getBoundingClientRect();return[n?e.top:e.left,n?e.bottom:e.right]}function M(t){var n=t.type,e=void 0===n?"":n,r=t.touches;return!r||r.length>1||"touchend"===e.toLowerCase()&&r.length>0}function z(t,n){return t?n.touches[0].clientY:n.touches[0].pageX}function T(){var t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,e=arguments.length>3?arguments[3]:void 0,r=0;return{handles:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((function(t){var i=n.getValue(t);return t!==i&&(r+=1,o()(!e,"".concat(S," Invalid value encountered. Changing ").concat(t," to ").concat(i,"."))),i})).map((function(t,n){return{key:"$$-".concat(n),val:t}})).sort(C(t)),changes:r}}function j(t,n){return n}function A(t,n){for(var e=0;e0)}if(-1===o)return t;for(var c=s?e:-e,h=0;h0&&void 0!==arguments[0]?arguments[0]:{},e=t.props,r=e.emitMouse,i=e.emitTouch;return p(p({},n),{},{onMouseDown:P(n&&n.onMouseDown,r),onTouchStart:P(n&&n.onTouchStart,i)})},t}return h(e,[{key:"render",value:function(){var t=this.getRailProps,n=this.props,e=n.getEventData,i=n.activeHandleID,o=void 0===i?"":i,s=(0,n.children)({getEventData:e||R,activeHandleID:o,getRailProps:t});return s&&r.Children.only(s)}}]),e}(r.Component),O=function(t){_(e,t);var n=y(e);function e(){var t;l(this,e);for(var r=arguments.length,i=new Array(r),o=0;o1&&void 0!==arguments[1]?arguments[1]:{},r=t.props,i=r.emitKeyboard,o=r.emitMouse,s=r.emitTouch;return p(p({},e),{},{onKeyDown:P(e&&e.onKeyDown,(function(t){return i&&i(t,n)})),onMouseDown:P(e&&e.onMouseDown,t.autofocus,(function(t){return o&&o(t,n)})),onTouchStart:P(e&&e.onTouchStart,(function(t){return s&&s(t,n)}))})},t}return h(e,[{key:"render",value:function(){var t=this.getHandleProps,n=this.props,e=n.activeHandleID,i=void 0===e?"":e,o=n.children,s=n.handles,a=o({handles:void 0===s?[]:s,activeHandleID:i,getHandleProps:t});return a&&r.Children.only(a)}}]),e}(r.Component),I=function(){function t(){l(this,t),this.interpolator=void 0,this.domain=[0,1],this.range=[0,1],this.domain=[0,1],this.range=[0,1],this.interpolator=null}return h(t,[{key:"createInterpolator",value:function(t,n){var e=this,r=t[0],i=t[1],o=n[0],s=n[1];return i0)return[t];if((r=n=0?(o>=s?10:o>=a?5:o>=u?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=s?10:o>=a?5:o>=u?2:1)}(t,n,e))||!isFinite(l))return[];if(l>0){let e=Math.round(t/l),r=Math.round(n/l);for(e*ln&&--r,o=new Array(i=r-e+1);++cn&&--r,o=new Array(i=r-e+1);++cs?a:s)}},G="undefined"!=typeof window&&"undefined"!=typeof document,W=function(){},V=[0,100],Z=function(t){_(e,t);var n=y(e);function e(){var t;l(this,e);for(var i=arguments.length,o=new Array(i),s=0;s1&&void 0!==arguments[1]&&arguments[1],e=this.props,r=e.mode,i=void 0===r?1:r,s=e.step,a=void 0===s?.1:s,u=e.onUpdate,l=void 0===u?W:u,c=e.onChange,h=void 0===c?W:c,f=e.reversed,d=void 0!==f&&f,p=this.state.valueToStep.getValue;this.setState((function(e){var r=e.handles,s=[];if("function"==typeof i)s=i(r,t,a,d,p),o()(Array.isArray(s),"Custom mode function did not return an array.");else switch(i){case 1:s=j(0,t);break;case 2:s=A(r,t);break;case 3:s=q(r,t,a,d,p);break;default:s=t,o()(!1,"".concat(S," Invalid mode value."))}return l(s.map((function(t){return t.val}))),n&&h(s.map((function(t){return t.val}))),{handles:s}}))}},{key:"render",value:function(){var t=this,n=this.state,e=n.handles,i=n.valueToPerc,o=n.activeHandleID,s=this.props,a=s.className,u=s.rootStyle,l=void 0===u?{}:u,c=s.rootProps,h=void 0===c?{}:c,f=s.component,d=void 0===f?"div":f,_=s.disabled,v=void 0!==_&&_,m=s.flatten,g=void 0!==m&&m,y=e.map((function(t){var n=t.key,e=t.val;return{id:n,value:e,percent:i.getValue(e)}})),w=r.Children.map(this.props.children,(function(n){return!0===function(t){if(!(0,r.isValidElement)(t))return!1;var n=t.type,e=n?n.name:"";return e===O.name||e===L.name||e===N.name||e===F.name}(n)?r.cloneElement(n,{scale:i,handles:y,activeHandleID:o,getEventData:t.getEventData,emitKeyboard:v?W:t.onKeyDown,emitMouse:v?W:t.onMouseDown,emitTouch:v?W:t.onTouchStart}):n}));return g?r.createElement(r.Fragment,null,r.createElement(d,p(p({},h),{},{style:l,className:a,ref:this.slider})),w):r.createElement(r.Fragment,null,r.createElement(d,p(p({},h),{},{style:l,className:a,ref:this.slider}),w))}}],[{key:"getDerivedStateFromProps",value:function(t,n){var e,r,i=t.step,s=void 0===i?.1:i,a=t.values,u=t.domain,l=void 0===u?V:u,c=t.reversed,h=void 0!==c&&c,f=t.onUpdate,d=void 0===f?W:f,p=t.onChange,_=void 0===p?W:p,v=t.warnOnChanges,m=void 0!==v&&v,g=n.valueToPerc,y=n.valueToStep,x=n.pixelToStep,k={};if(g&&y&&x||(g=new I,y=new H,x=new H,k.valueToPerc=g,k.valueToStep=y,k.pixelToStep=x),n.domain===V||null===n.step||null===n.domain||null===n.reversed||s!==n.step||l[0]!==n.domain[0]||l[1]!==n.domain[1]||h!==n.reversed){var C=w(l,2),$=C[0],E=C[1];y.setStep(s).setRange([$,E]).setDomain([$,E]),!0===h?(g.setDomain([$,E]).setRange([100,0]),x.setStep(s).setRange([E,$])):(g.setDomain([$,E]).setRange([0,100]),x.setStep(s).setRange([$,E])),o()(E>$,"".concat(S," Max must be greater than min (even if reversed). Max is ").concat(E,". Min is ").concat($,"."));var M=T(a||n.values,h,y,m),z=M.handles;(M.changes||void 0===a||a===n.values)&&(d(z.map((function(t){return t.val}))),_(z.map((function(t){return t.val})))),k.step=s,k.values=a,k.domain=l===V?b(l):l,k.handles=z,k.reversed=h}else if(!((e=a)===(r=n.values)||e.length===r.length&&e.reduce(function(t){return function(n,e,r){return n&&t[r]===e}}(r),!0))){var j=T(a,h,y,m),A=j.handles;j.changes&&(d(A.map((function(t){return t.val}))),_(A.map((function(t){return t.val})))),k.values=a,k.handles=A}return Object.keys(k).length?k:null}}]),e}(r.PureComponent)},77946:(t,n,e)=>{"use strict";e.r(n),e.d(n,{HTML5Backend:()=>I,NativeTypes:()=>r,getEmptyImage:()=>O});var r={};function i(t){var n=null;return function(){return null==n&&(n=t()),n}}function o(t,n){for(var e=0;em,HTML:()=>w,TEXT:()=>y,URL:()=>g});var a=function(){function t(n){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,"entered",[]),s(this,"isNodeInDocument",void 0),this.isNodeInDocument=n}var n,e;return n=t,(e=[{key:"enter",value:function(t){var n=this,e=this.entered.length;return this.entered=function(t,n){var e=new Set,r=function(t){return e.add(t)};t.forEach(r),n.forEach(r);var i=[];return e.forEach((function(t){return i.push(t)})),i}(this.entered.filter((function(e){return n.isNodeInDocument(e)&&(!e.contains||e.contains(t))})),[t]),0===e&&this.entered.length>0}},{key:"leave",value:function(t){var n,e,r=this.entered.length;return this.entered=(n=this.entered.filter(this.isNodeInDocument),e=t,n.filter((function(t){return t!==e}))),r>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}])&&o(n.prototype,e),t}(),u=i((function(){return/firefox/i.test(navigator.userAgent)})),l=i((function(){return Boolean(window.safari)}));function c(t,n){for(var e=0;et))return e[a];l=a-1}}var h=t-n[s=Math.max(0,l)],f=h*h;return e[s]+r[s]*h+i[s]*f+o[s]*h*f}}])&&c(n.prototype,e),t}(),d=1;function p(t){var n=t.nodeType===d?t:t.parentElement;if(!n)return null;var e=n.getBoundingClientRect(),r=e.top;return{x:e.left,y:r}}function _(t){return{x:t.clientX,y:t.clientY}}var v,m="__NATIVE_FILE__",g="__NATIVE_URL__",y="__NATIVE_TEXT__",w="__NATIVE_HTML__";function b(t,n,e){var r=n.reduce((function(n,e){return n||t.getData(e)}),"");return null!=r?r:e}function x(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var k=(x(v={},m,{exposeProperties:{files:function(t){return Array.prototype.slice.call(t.files)},items:function(t){return t.items},dataTransfer:function(t){return t}},matchesTypes:["Files"]}),x(v,w,{exposeProperties:{html:function(t,n){return b(t,n,"")},dataTransfer:function(t){return t}},matchesTypes:["Html","text/html"]}),x(v,g,{exposeProperties:{urls:function(t,n){return b(t,n,"").split("\n")},dataTransfer:function(t){return t}},matchesTypes:["Url","text/uri-list"]}),x(v,y,{exposeProperties:{text:function(t,n){return b(t,n,"")},dataTransfer:function(t){return t}},matchesTypes:["Text","text/plain"]}),v);function S(t,n){for(var e=0;e-1}))}))[0]||null}function M(t,n){for(var e=0;e0&&i.actions.hover(n,{clientOffset:_(t)}),n.some((function(t){return i.monitor.canDropOnTarget(t)}))&&(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=i.getCurrentDropEffect())))})),P(this,"handleTopDragOverCapture",(function(){i.dragOverTargetIds=[]})),P(this,"handleTopDragOver",(function(t){var n=i.dragOverTargetIds;if(i.dragOverTargetIds=[],!i.monitor.isDragging())return t.preventDefault(),void(t.dataTransfer&&(t.dataTransfer.dropEffect="none"));i.altKeyPressed=t.altKey,i.lastClientOffset=_(t),null===i.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(i.hoverRafId=requestAnimationFrame((function(){i.monitor.isDragging()&&i.actions.hover(n||[],{clientOffset:i.lastClientOffset}),i.hoverRafId=null}))),(n||[]).some((function(t){return i.monitor.canDropOnTarget(t)}))?(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=i.getCurrentDropEffect())):i.isDraggingNativeItem()?t.preventDefault():(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="none"))})),P(this,"handleTopDragLeaveCapture",(function(t){i.isDraggingNativeItem()&&t.preventDefault(),i.enterLeaveCounter.leave(t.target)&&i.isDraggingNativeItem()&&setTimeout((function(){return i.endDragNativeItem()}),0)})),P(this,"handleTopDropCapture",(function(t){var n;i.dropTargetIds=[],i.isDraggingNativeItem()?(t.preventDefault(),null===(n=i.currentNativeSource)||void 0===n||n.loadDataTransfer(t.dataTransfer)):E(t.dataTransfer)&&t.preventDefault(),i.enterLeaveCounter.reset()})),P(this,"handleTopDrop",(function(t){var n=i.dropTargetIds;i.dropTargetIds=[],i.actions.hover(n,{clientOffset:_(t)}),i.actions.drop({dropEffect:i.getCurrentDropEffect()}),i.isDraggingNativeItem()?i.endDragNativeItem():i.monitor.isDragging()&&i.actions.endDrag()})),P(this,"handleSelectStart",(function(t){var n=t.target;"function"==typeof n.dragDrop&&("INPUT"===n.tagName||"SELECT"===n.tagName||"TEXTAREA"===n.tagName||n.isContentEditable||(t.preventDefault(),n.dragDrop()))})),this.options=new T(e,r),this.actions=n.getActions(),this.monitor=n.getMonitor(),this.registry=n.getRegistry(),this.enterLeaveCounter=new a(this.isNodeInDocument)}var n,e;return n=t,(e=[{key:"profile",value:function(){var t,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(t=this.dragStartSourceIds)||void 0===t?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(n=this.dragOverTargetIds)||void 0===n?void 0:n.length)||0}}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}},{key:"rootElement",get:function(){return this.options.rootElement}},{key:"setup",value:function(){var t=this.rootElement;if(void 0!==t){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}},{key:"teardown",value:function(){var t,n=this.rootElement;void 0!==n&&(n.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}},{key:"connectDragPreview",value:function(t,n,e){var r=this;return this.sourcePreviewNodeOptions.set(t,e),this.sourcePreviewNodes.set(t,n),function(){r.sourcePreviewNodes.delete(t),r.sourcePreviewNodeOptions.delete(t)}}},{key:"connectDragSource",value:function(t,n,e){var r=this;this.sourceNodes.set(t,n),this.sourceNodeOptions.set(t,e);var i=function(n){return r.handleDragStart(n,t)},o=function(t){return r.handleSelectStart(t)};return n.setAttribute("draggable","true"),n.addEventListener("dragstart",i),n.addEventListener("selectstart",o),function(){r.sourceNodes.delete(t),r.sourceNodeOptions.delete(t),n.removeEventListener("dragstart",i),n.removeEventListener("selectstart",o),n.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(t,n){var e=this,r=function(n){return e.handleDragEnter(n,t)},i=function(n){return e.handleDragOver(n,t)},o=function(n){return e.handleDrop(n,t)};return n.addEventListener("dragenter",r),n.addEventListener("dragover",i),n.addEventListener("drop",o),function(){n.removeEventListener("dragenter",r),n.removeEventListener("dragover",i),n.removeEventListener("drop",o)}}},{key:"addEventListeners",value:function(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var t=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(t);return A({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var t=this.monitor.getSourceId();return A({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(t)||{})}},{key:"isDraggingNativeItem",value:function(){var t=this.monitor.getItemType();return Object.keys(r).some((function(n){return r[n]===t}))}},{key:"beginDragNativeItem",value:function(t,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(t,n){var e=new $(k[t]);return e.loadDataTransfer(n),e}(t,n),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(t){var n=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t,this.mouseMoveTimeoutTimer=setTimeout((function(){var t;return null===(t=n.rootElement)||void 0===t?void 0:t.addEventListener("mousemove",n.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}},{key:"clearCurrentDragSourceNode",value:function(){var t;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(t=this.window)||void 0===t||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(t,n){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}},{key:"handleDragEnter",value:function(t,n){this.dragEnterTargetIds.unshift(n)}},{key:"handleDragOver",value:function(t,n){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}},{key:"handleDrop",value:function(t,n){this.dropTargetIds.unshift(n)}}])&&q(n.prototype,e),t}();function O(){return R||((R=new Image).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),R}var I=function(t,n,e){return new L(t,n,e)}},47014:(t,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=e(77946),i=e(82704),o=e(95992),s={backends:[{backend:r.HTML5Backend,transition:o.MouseTransition},{backend:i.TouchBackend,options:{enableMouseEvents:!0},preview:!0,transition:o.TouchTransition}]};n.default=s},5027:(t,n,e)=>{"use strict";e.r(n),e.d(n,{DndProvider:()=>c,HTML5DragTransition:()=>r.HTML5DragTransition,MouseTransition:()=>r.MouseTransition,Preview:()=>x,PreviewContext:()=>v,TouchTransition:()=>r.TouchTransition,createTransition:()=>r.createTransition,default:()=>r.default,usePreview:()=>k});var r=e(95992),i=e(66204),o=e(14043),s=e.n(o),a=e(31545);function u(){return u=Object.assign||function(t){for(var n=1;n=0||(i[e]=t[e]);return i}(t,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(i[e]=t[e])}return i}(e,["display"]);return r?(n=t.children&&"function"==typeof t.children?t.children(o):t.children?t.children:t.generator(o),i.createElement(v.Provider,{value:o},n)):null};m.propTypes={generator:d().func,children:d().oneOfType([d().node,d().func])};const g=m;var y=e(65174);function w(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e{"use strict";var r=e(25887);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,n,e,i,o,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function n(){return t}t.isRequired=t;var e={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:n,element:t,elementType:t,instanceOf:n,node:t,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:i};return e.PropTypes=e,e}},14043:(t,n,e)=>{t.exports=e(99649)()},25887:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},76746:(t,n,e)=>{"use strict";var r=e(57140);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,n,e,i,o,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function n(){return t}t.isRequired=t;var e={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:n,element:t,elementType:t,instanceOf:n,node:t,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:i};return e.PropTypes=e,e}},59680:(t,n,e)=>{t.exports=e(76746)()},57140:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},82704:(t,n,e)=>{"use strict";e.r(n),e.d(n,{ListenerType:()=>r,TouchBackend:()=>m,TouchBackendImpl:()=>v});var r,i=e(63285);!function(t){t.mouse="mouse",t.touch="touch",t.keyboard="keyboard"}(r||(r={}));function o(t){return void 0===t.button||0===t.button}function s(t){return!!t.targetTouches}function a(t,n){return s(t)?function(t,n){return 1===t.targetTouches.length?a(t.targetTouches[0]):n&&1===t.touches.length&&t.touches[0].target===n.target?a(t.touches[0]):void 0}(t,n):{x:t.clientX,y:t.clientY}}var u=function(){var t=!1;try{addEventListener("test",(function(){}),Object.defineProperty({},"passive",{get:function(){return t=!0,!0}}))}catch(t){}return t}();function l(t,n){for(var e=0;e=i[s].start)&&(null==i[s].end||o<=i[s].end))return!0;return!1}(u._mouseClientOffset.x||0,u._mouseClientOffset.y||0,c.x,c.y,u.options.scrollAngleRanges))u._isScrolling=!0;else if(!u.monitor.isDragging()&&u._mouseClientOffset.hasOwnProperty("x")&&o&&(n=u._mouseClientOffset.x||0,e=u._mouseClientOffset.y||0,r=c.x,i=c.y,Math.sqrt(Math.pow(Math.abs(r-n),2)+Math.pow(Math.abs(i-e),2))>(u.options.touchSlop?u.options.touchSlop:0))&&(u.moveStartSourceIds=void 0,u.actions.beginDrag(o,{clientOffset:u._mouseClientOffset,getSourceClientOffset:u.getSourceClientOffset,publishSource:!1})),u.monitor.isDragging()){var h=u.sourceNodes.get(u.monitor.getSourceId());u.installSourceNodeRemovalObserver(h),u.actions.publishDragSource(),t.cancelable&&t.preventDefault();var f=(s||[]).map((function(t){return u.targetNodes.get(t)})).filter((function(t){return!!t})),d=u.options.getDropTargetElementsAtPoint?u.options.getDropTargetElementsAtPoint(c.x,c.y,f):u.document.elementsFromPoint(c.x,c.y),p=[];for(var _ in d)if(d.hasOwnProperty(_)){var v=d[_];for(p.push(v);v;)(v=v.parentElement)&&-1===p.indexOf(v)&&p.push(v)}var m=p.filter((function(t){return f.indexOf(t)>-1})).map((function(t){return u._getDropTargetId(t)})).filter((function(t){return!!t})).filter((function(t,n,e){return e.indexOf(t)===n}));if(l)for(var g in u.targetNodes){var y=u.targetNodes.get(g);if(h&&y&&y.contains(h)&&-1===m.indexOf(g)){m.unshift(g);break}}m.reverse(),u.actions.hover(m,{clientOffset:c})}}})),p(this,"_getDropTargetId",(function(t){for(var n=u.targetNodes.keys(),e=n.next();!1===e.done;){var r=e.value;if(t===u.targetNodes.get(r))return r;e=n.next()}})),p(this,"handleTopMoveEndCapture",(function(t){u._isScrolling=!1,u.lastTargetTouchFallback=void 0,function(t){return void 0===t.buttons||0==(1&t.buttons)}(t)&&(u.monitor.isDragging()&&!u.monitor.didDrop()?(t.cancelable&&t.preventDefault(),u._mouseClientOffset={},u.uninstallSourceNodeRemovalObserver(),u.actions.drop(),u.actions.endDrag()):u.moveStartSourceIds=void 0)})),p(this,"handleCancelOnEscape",(function(t){"Escape"===t.key&&u.monitor.isDragging()&&(u._mouseClientOffset={},u.uninstallSourceNodeRemovalObserver(),u.actions.endDrag())})),this.options=new f(i,e),this.actions=n.getActions(),this.monitor=n.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(r.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(r.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(r.keyboard)}var n,e;return n=t,(e=[{key:"profile",value:function(){var t;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}},{key:"document",get:function(){return this.options.document}},{key:"setup",value:function(){var n=this.options.rootElement;n&&((0,i.k)(!t.isSetUp,"Cannot have two Touch backends at the same time."),t.isSetUp=!0,this.addEventListener(n,"start",this.getTopMoveStartHandler()),this.addEventListener(n,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(n,"move",this.handleTopMove),this.addEventListener(n,"move",this.handleTopMoveCapture,!0),this.addEventListener(n,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(n,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(n,"keydown",this.handleCancelOnEscape,!0))}},{key:"teardown",value:function(){var n=this.options.rootElement;n&&(t.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(n,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(n,"start",this.handleTopMoveStart),this.removeEventListener(n,"move",this.handleTopMoveCapture,!0),this.removeEventListener(n,"move",this.handleTopMove),this.removeEventListener(n,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(n,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(n,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}},{key:"addEventListener",value:function(t,n,e,r){var i=u?{capture:r,passive:!1}:r;this.listenerTypes.forEach((function(r){var o=_[r][n];o&&t.addEventListener(o,e,i)}))}},{key:"removeEventListener",value:function(t,n,e,r){var i=u?{capture:r,passive:!1}:r;this.listenerTypes.forEach((function(r){var o=_[r][n];o&&t.removeEventListener(o,e,i)}))}},{key:"connectDragSource",value:function(t,n){var e=this,r=this.handleMoveStart.bind(this,t);return this.sourceNodes.set(t,n),this.addEventListener(n,"start",r),function(){e.sourceNodes.delete(t),e.removeEventListener(n,"start",r)}}},{key:"connectDragPreview",value:function(t,n,e){var r=this;return this.sourcePreviewNodeOptions.set(t,e),this.sourcePreviewNodes.set(t,n),function(){r.sourcePreviewNodes.delete(t),r.sourcePreviewNodeOptions.delete(t)}}},{key:"connectDropTarget",value:function(t,n){var e=this,r=this.options.rootElement;if(!this.document||!r)return function(){};var i=function(i){if(e.document&&r&&e.monitor.isDragging()){var o;switch(i.type){case _.mouse.move:o={x:i.clientX,y:i.clientY};break;case _.touch.move:o={x:i.touches[0].clientX,y:i.touches[0].clientY}}var s=null!=o?e.document.elementFromPoint(o.x,o.y):void 0,a=s&&n.contains(s);return s===n||a?e.handleMove(i,t):void 0}};return this.addEventListener(this.document.body,"move",i),this.targetNodes.set(t,n),function(){e.document&&(e.targetNodes.delete(t),e.removeEventListener(e.document.body,"move",i))}}},{key:"getTopMoveStartHandler",value:function(){return this.options.delayTouchStart||this.options.delayMouseStart?this.handleTopMoveStartDelay:this.handleTopMoveStart}},{key:"installSourceNodeRemovalObserver",value:function(t){var n=this;this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=t,this.draggedSourceNodeRemovalObserver=new MutationObserver((function(){t&&!t.parentElement&&(n.resurrectSourceNode(),n.uninstallSourceNodeRemovalObserver())})),t&&t.parentElement&&this.draggedSourceNodeRemovalObserver.observe(t.parentElement,{childList:!0})}},{key:"resurrectSourceNode",value:function(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}},{key:"uninstallSourceNodeRemovalObserver",value:function(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}}])&&d(n.prototype,e),t}();p(v,"isSetUp",void 0);var m=function(t){return new v(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}},65174:(t,n,e)=>{"use strict";e.d(n,{L:()=>r});var r=(0,e(66204).createContext)({dragDropManager:void 0})},31545:(t,n,e)=>{"use strict";e.d(n,{W:()=>Dt});var r=e(43188),i=e(66204),o=e(63285),s="dnd-core/INIT_COORDS",a="dnd-core/BEGIN_DRAG",u="dnd-core/PUBLISH_DRAG_SOURCE",l="dnd-core/HOVER",c="dnd-core/DROP",h="dnd-core/END_DRAG";function f(t,n){return{type:s,payload:{sourceClientOffset:n||null,clientOffset:t||null}}}function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function p(t){return"object"===d(t)}var _={type:s,payload:{clientOffset:null,sourceClientOffset:null}};function v(t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},r=e.publishSource,i=void 0===r||r,s=e.clientOffset,u=e.getSourceClientOffset,l=t.getMonitor(),c=t.getRegistry();t.dispatch(f(s)),function(t,n,e){(0,o.k)(!n.isDragging(),"Cannot call beginDrag while dragging."),t.forEach((function(t){(0,o.k)(e.getSource(t),"Expected sourceIds to be registered.")}))}(n,l,c);var h=function(t,n){for(var e=null,r=t.length-1;r>=0;r--)if(n.canDragSource(t[r])){e=t[r];break}return e}(n,l);if(null!==h){var d=null;if(s){if(!u)throw new Error("getSourceClientOffset must be defined");!function(t){(0,o.k)("function"==typeof t,"When clientOffset is provided, getSourceClientOffset must be a function.")}(u),d=u(h)}t.dispatch(f(s,d));var v=c.getSource(h).beginDrag(l,h);if(null!=v){!function(t){(0,o.k)(p(t),"Item must be an object.")}(v),c.pinSource(h);var m=c.getSourceType(h);return{type:a,payload:{itemType:m,item:v,sourceId:h,clientOffset:s||null,sourceClientOffset:d||null,isSourcePublic:!!i}}}}else t.dispatch(_)}}function m(t){return function(){if(t.getMonitor().isDragging())return{type:u}}}function g(t,n){return null===n?null===t:Array.isArray(t)?t.some((function(t){return t===n})):t===n}function y(t){return function(n){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).clientOffset;!function(t){(0,o.k)(Array.isArray(t),"Expected targetIds to be an array.")}(n);var r=n.slice(0),i=t.getMonitor(),s=t.getRegistry();return function(t,n,e){(0,o.k)(n.isDragging(),"Cannot call hover while not dragging."),(0,o.k)(!n.didDrop(),"Cannot call hover after drop.");for(var r=0;r=0;r--){var i=t[r];g(n.getTargetType(i),e)||t.splice(r,1)}}(r,s,i.getItemType()),function(t,n,e){t.forEach((function(t){e.getTarget(t).hover(n,t)}))}(r,i,s),{type:l,payload:{targetIds:r,clientOffset:e||null}}}}function w(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function b(t){for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:{},e=t.getMonitor(),r=t.getRegistry();!function(t){(0,o.k)(t.isDragging(),"Cannot call drop while not dragging."),(0,o.k)(!t.didDrop(),"Cannot call drop twice during one drag operation.")}(e);var i=function(t){var n=t.getTargetIds().filter(t.canDropOnTarget,t);return n.reverse(),n}(e);i.forEach((function(i,s){var a=function(t,n,e,r){var i=e.getTarget(t),s=i?i.drop(r,t):void 0;return function(t){(0,o.k)(void 0===t||p(t),"Drop result must either be an object or undefined.")}(s),void 0===s&&(s=0===n?{}:r.getDropResult()),s}(i,s,r,e),u={type:c,payload:{dropResult:b(b({},n),a)}};t.dispatch(u)}))}}function S(t){return function(){var n=t.getMonitor(),e=t.getRegistry();!function(t){(0,o.k)(t.isDragging(),"Cannot call endDrag while not dragging.")}(n);var r=n.getSourceId();return null!=r&&(e.getSource(r,!0).endDrag(n,r),e.unpinSource()),{type:h}}}function C(t,n){for(var e=0;e0;r.backend&&(t&&!r.isSetUp?(r.backend.setup(),r.isSetUp=!0):!t&&r.isSetUp&&(r.backend.teardown(),r.isSetUp=!1))})),this.store=n,this.monitor=e,n.subscribe(this.handleRefCountChange)}var n,e;return n=t,e=[{key:"receiveBackend",value:function(t){this.backend=t}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var t=this,n=this.store.dispatch,e=function(t){return{beginDrag:v(t),publishDragSource:m(t),hover:y(t),drop:k(t),endDrag:S(t)}}(this);return Object.keys(e).reduce((function(r,i){var o,s=e[i];return r[i]=(o=s,function(){for(var e=arguments.length,r=new Array(e),i=0;i0&&void 0!==arguments[0]?arguments[0]:O,r=arguments.length>1?arguments[1]:void 0,i=r.payload;switch(r.type){case s:case a:return{initialSourceClientOffset:i.sourceClientOffset,initialClientOffset:i.clientOffset,clientOffset:i.clientOffset};case l:return t=e.clientOffset,n=i.clientOffset,!t&&!n||t&&n&&t.x===n.x&&t.y===n.y?e:R(R({},e),{},{clientOffset:i.clientOffset});case h:case c:return O;default:return e}}var D="dnd-core/ADD_SOURCE",N="dnd-core/ADD_TARGET",B="dnd-core/REMOVE_SOURCE",F="dnd-core/REMOVE_TARGET";function U(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function H(t){for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:W,r=arguments.length>1?arguments[1]:void 0,i=r.payload;switch(r.type){case a:return H(H({},e),{},{itemType:i.itemType,item:i.item,sourceId:i.sourceId,isSourcePublic:i.isSourcePublic,dropResult:null,didDrop:!1});case u:return H(H({},e),{},{isSourcePublic:!0});case l:return H(H({},e),{},{targetIds:i.targetIds});case F:return-1===e.targetIds.indexOf(i.targetId)?e:H(H({},e),{},{targetIds:(t=e.targetIds,n=i.targetId,t.filter((function(t){return t!==n})))});case c:return H(H({},e),{},{dropResult:i.dropResult,didDrop:!0,targetIds:[]});case h:return H(H({},e),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function Z(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch((arguments.length>1?arguments[1]:void 0).type){case D:case N:return t+1;case B:case F:return t-1;default:return t}}var X=[],Y=[];function K(){var t=arguments.length>1?arguments[1]:void 0;switch(t.type){case l:break;case D:case N:case F:case B:return X;default:return Y}var n=t.payload,e=n.targetIds,r=void 0===e?[]:e,i=n.prevTargetIds,o=void 0===i?[]:i,s=function(t,n){var e=new Map,r=function(t){e.set(t,e.has(t)?e.get(t)+1:1)};t.forEach(r),n.forEach(r);var i=[];return e.forEach((function(t,n){1===t&&i.push(n)})),i}(r,o),a=s.length>0||!function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:q;if(t.length!==n.length)return!1;for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:0)+1}function Q(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function tt(t){for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:K(e.dirtyHandlerIds,{type:r.type,payload:tt(tt({},r.payload),{},{prevTargetIds:(t=e,"dragOperation.targetIds",n=[],"dragOperation.targetIds".split(".").reduce((function(t,e){return t&&t[e]?t[e]:n||null}),t))})}),dragOffset:I(e.dragOffset,r),refCount:Z(e.refCount,r),dragOperation:V(e.dragOperation,r),stateId:J(e.stateId)}}function rt(t,n){return{x:t.x-n.x,y:t.y-n.y}}function it(t,n){for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0}).handlerIds;(0,o.k)("function"==typeof t,"listener must be a function."),(0,o.k)(void 0===e||Array.isArray(e),"handlerIds, when specified, must be an array of strings.");var r=this.store.getState().stateId;return this.store.subscribe((function(){var i=n.store.getState(),o=i.stateId;try{var s=o===r||o===r+1&&!function(t,n){return t!==X&&(t===Y||void 0===n||(e=t,n.filter((function(t){return e.indexOf(t)>-1}))).length>0);var e}(i.dirtyHandlerIds,e);s||t()}finally{r=o}}))}},{key:"subscribeToOffsetChange",value:function(t){var n=this;(0,o.k)("function"==typeof t,"listener must be a function.");var e=this.store.getState().dragOffset;return this.store.subscribe((function(){var r=n.store.getState().dragOffset;r!==e&&(e=r,t())}))}},{key:"canDragSource",value:function(t){if(!t)return!1;var n=this.registry.getSource(t);return(0,o.k)(n,"Expected to find a valid source. sourceId=".concat(t)),!this.isDragging()&&n.canDrag(this,t)}},{key:"canDropOnTarget",value:function(t){if(!t)return!1;var n=this.registry.getTarget(t);return(0,o.k)(n,"Expected to find a valid target. targetId=".concat(t)),!(!this.isDragging()||this.didDrop())&&g(this.registry.getTargetType(t),this.getItemType())&&n.canDrop(this,t)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(t){if(!t)return!1;var n=this.registry.getSource(t,!0);return(0,o.k)(n,"Expected to find a valid source. sourceId=".concat(t)),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(t)===this.getItemType()&&n.isDragging(this,t)}},{key:"isOverTarget",value:function(t){if(!t)return!1;var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1}).shallow;if(!this.isDragging())return!1;var e=this.registry.getTargetType(t),r=this.getItemType();if(r&&!g(e,r))return!1;var i=this.getTargetIds();if(!i.length)return!1;var o=i.indexOf(t);return n?o===i.length-1:o>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return r=(t=this.store.getState().dragOffset).clientOffset,i=t.initialClientOffset,o=t.initialSourceClientOffset,r&&i&&o?rt((e=o,{x:(n=r).x+e.x,y:n.y+e.y}),i):null;var t,n,e,r,i,o}},{key:"getDifferenceFromInitialOffset",value:function(){return n=(t=this.store.getState().dragOffset).clientOffset,e=t.initialClientOffset,n&&e?rt(n,e):null;var t,n,e}}],e&&it(n.prototype,e),t}(),ut=0;function lt(t){return lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lt(t)}function ct(t,n){n&&Array.isArray(t)?t.forEach((function(t){return ct(t,!1)})):(0,o.k)("string"==typeof t||"symbol"===lt(t),n?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}function ht(t){dt.length||ft(),dt[dt.length]=t}!function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"}(st||(st={}));var ft,dt=[],pt=0;function _t(){for(;pt1024){for(var n=0,e=dt.length-pt;nt.length)&&(n=t.length);for(var e=0,r=new Array(n);e1&&void 0!==arguments[1]&&arguments[1];return(0,o.k)(this.isSourceId(t),"Expected a valid source ID."),n&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}},{key:"getTarget",value:function(t){return(0,o.k)(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}},{key:"getSourceType",value:function(t){return(0,o.k)(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}},{key:"getTargetType",value:function(t){return(0,o.k)(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}},{key:"isSourceId",value:function(t){return Tt(t)===st.SOURCE}},{key:"isTargetId",value:function(t){return Tt(t)===st.TARGET}},{key:"removeSource",value:function(t){var n=this;(0,o.k)(this.getSource(t),"Expected an existing source."),this.store.dispatch(function(t){return{type:B,payload:{sourceId:t}}}(t)),Ct((function(){n.dragSources.delete(t),n.types.delete(t)}))}},{key:"removeTarget",value:function(t){(0,o.k)(this.getTarget(t),"Expected an existing target."),this.store.dispatch(function(t){return{type:F,payload:{targetId:t}}}(t)),this.dropTargets.delete(t),this.types.delete(t)}},{key:"pinSource",value:function(t){var n=this.getSource(t);(0,o.k)(n,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=n}},{key:"unpinSource",value:function(){(0,o.k)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(t,n,e){var r=function(t){var n=(ut++).toString();switch(t){case st.SOURCE:return"S".concat(n);case st.TARGET:return"T".concat(n);default:throw new Error("Unknown Handler Role: ".concat(t))}}(t);return this.types.set(r,n),t===st.SOURCE?this.dragSources.set(r,e):t===st.TARGET&&this.dropTargets.set(r,e),r}}],e&&Et(n.prototype,e),t}();function qt(t){var n,e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],e="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__,A(et,n&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))),s=new at(o,new At(o)),a=new E(o,s),u=t(a,r,i);return a.receiveBackend(u),a}var Pt=e(65174),Rt=["children"];function Lt(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e1&&void 0!==arguments[1]?arguments[1]:Nt(),e=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=n;return i[It]||(i[It]={dragDropManager:qt(t,n,e,r)}),i[It]}(t.backend,t.context,t.options,t.debugMode);return[n,!t.context]}(function(t,n){if(null==t)return{};var e,r,i=function(t,n){if(null==t)return{};var e,r,i={},o=Object.keys(t);for(r=0;r=0||(i[e]=t[e]);return i}(t,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(i[e]=t[e])}return i}(t,Rt)),a=(e=2,function(t){if(Array.isArray(t))return t}(n=s)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,i,o=[],s=!0,a=!1;try{for(e=e.call(t);!(s=(r=e.next()).done)&&(o.push(r.value),!n||o.length!==n);s=!0);}catch(t){a=!0,i=t}finally{try{s||null==e.return||e.return()}finally{if(a)throw i}}return o}}(n,e)||function(t,n){if(t){if("string"==typeof t)return Lt(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Lt(t,n):void 0}}(n,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=a[0],l=a[1];return(0,i.useEffect)((function(){if(l){var t=Nt();return++Ot,function(){0==--Ot&&(t[It]=null)}}}),[]),(0,r.jsx)(Pt.L.Provider,Object.assign({value:u},{children:o}),void 0)}));function Nt(){return void 0!==e.g?e.g:window}},44678:(t,n,e)=>{"use strict";e.d(n,{r:()=>u});var r=e(28926),i=e.n(r),o=e(66204),s=e(69603);function a(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e{"use strict";e.d(n,{N:()=>s});var r=e(66204),i=e(63285),o=e(65174);function s(){var t=(0,r.useContext)(o.L).dragDropManager;return(0,i.k)(null!=t,"Expected drag drop context"),t}},2346:(t,n,e)=>{"use strict";e.d(n,{f:()=>a});var r=e(66204),i=e(5655),o=e(44678);function s(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e{"use strict";e.d(n,{L:()=>i});var r=e(66204),i="undefined"!=typeof window?r.useLayoutEffect:r.useEffect},42225:(t,n,e)=>{"use strict";e.r(n),e.d(n,{DndContext:()=>r.L,DndProvider:()=>i.W,DragLayer:()=>gt,DragPreviewImage:()=>s,DragSource:()=>Q,DropTarget:()=>ht,useDrag:()=>Pt,useDragDropManager:()=>St.N,useDragLayer:()=>Ft.f,useDrop:()=>Bt});var r=e(65174),i=e(31545),o=e(66204),s=(0,o.memo)((function(t){var n=t.connect,e=t.src;return(0,o.useEffect)((function(){if("undefined"!=typeof Image){var t=!1,r=new Image;return r.src=e,r.onload=function(){n(r),t=!0},function(){t&&n(null)}}})),null})),a=e(63285);function u(t,n,e){var r=e.getRegistry(),i=r.addTarget(t,n);return[i,function(){return r.removeTarget(i)}]}function l(t,n,e){var r=e.getRegistry(),i=r.addSource(t,n);return[i,function(){return r.removeSource(i)}]}function c(t){var n={};return Object.keys(t).forEach((function(e){var r=t[e];if(e.endsWith("Ref"))n[e]=t[e];else{var i=function(t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,o.isValidElement)(n)){var r=n;return t(r,e),r}var i=n;!function(t){if("string"!=typeof t.type){var n=t.type.displayName||t.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(n," into a
, or turn it into a ")+"drag source or a drop target itself.")}}(i);var s=e?function(n){return t(n,e)}:t;return function(t,n){var e=t.ref;return(0,a.k)("string"!=typeof e,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),e?(0,o.cloneElement)(t,{ref:function(t){h(e,t),h(n,t)}}):(0,o.cloneElement)(t,{ref:n})}(i,s)}}(r);n[e]=function(){return i}}})),n}function h(t,n){"function"==typeof t?t(n):t.current=n}function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function d(t){return null!==t&&"object"===f(t)&&Object.prototype.hasOwnProperty.call(t,"current")}function p(t,n,e,r){var i=e?e.call(r,t,n):void 0;if(void 0!==i)return!!i;if(t===n)return!0;if("object"!=typeof t||!t||"object"!=typeof n||!n)return!1;var o=Object.keys(t),s=Object.keys(n);if(o.length!==s.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(n),u=0;ut.length)&&(n=t.length);for(var e=0,r=new Array(n);e3&&void 0!==arguments[3]?arguments[3]:{},i=t;"function"!=typeof t&&((0,a.k)(z(t),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',t),i=function(){return t}),(0,a.k)(M(n),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n);var o=function(t){return Object.keys(t).forEach((function(n){(0,a.k)(Y.indexOf(n)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',Y.join(", "),n),(0,a.k)("function"==typeof t[n],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",n,n,t[n])})),K.forEach((function(n){(0,a.k)("function"==typeof t[n],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",n,n,t[n])})),function(n,e){return new J(t,n,e)}}(n);return(0,a.k)("function"==typeof e,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',e),(0,a.k)(M(r),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',e),function(t){return V({containerDisplayName:"DragSource",createHandler:o,registerHandler:l,createConnector:function(t){return new m(t)},createMonitor:function(t){return new x(t)},DecoratedComponent:t,getType:i,collect:e,options:r})}}function tt(t,n){for(var e=0;e3&&void 0!==arguments[3]?arguments[3]:{},i=t;"function"!=typeof t&&((0,a.k)(z(t,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',t),i=function(){return t}),(0,a.k)(M(n),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n);var o=function(t){return Object.keys(t).forEach((function(n){(0,a.k)(lt.indexOf(n)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',lt.join(", "),n),(0,a.k)("function"==typeof t[n],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",n,n,t[n])})),function(n,e){return new ct(t,n,e)}}(n);return(0,a.k)("function"==typeof e,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',e),(0,a.k)(M(r),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',e),function(t){return V({containerDisplayName:"DropTarget",createHandler:o,registerHandler:u,createMonitor:function(t){return new rt(t)},createConnector:function(t){return new st(t)},DecoratedComponent:t,getType:i,collect:e,options:r})}}function ft(t){return ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ft(t)}function dt(t,n){for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:{};return(0,a.k)("function"==typeof t,'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer",t),(0,a.k)(M(n),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer',n),function(e){var i=e,s=n.arePropsEqual,u=void 0===s?p:s,l=i.displayName||i.name||"Component",c=function(n){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&pt(t,n)}(d,n);var e,s,c,h,f=(c=d,h=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=vt(c);if(h){var e=vt(this).constructor;t=Reflect.construct(n,arguments,e)}else t=n.apply(this,arguments);return function(t,n){if(n&&("object"===ft(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return _t(t)}(this,t)});function d(){var t;!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,d);for(var n=arguments.length,e=new Array(n),r=0;rt.length)&&(n=t.length);for(var e=0,r=new Array(n);et.length)&&(n=t.length);for(var e=0,r=new Array(n);et.length)&&(n=t.length);for(var e=0,r=new Array(n);et.length)&&(n=t.length);for(var e=0,r=new Array(n);e{"use strict";var r=e(66204),i=e(46489);function o(t){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+t,e=1;e