diff --git a/src/MauiDevFlow.Agent.Core/AgentHttpServer.cs b/src/MauiDevFlow.Agent.Core/AgentHttpServer.cs index e98a0f4..93a284a 100644 --- a/src/MauiDevFlow.Agent.Core/AgentHttpServer.cs +++ b/src/MauiDevFlow.Agent.Core/AgentHttpServer.cs @@ -81,7 +81,7 @@ private async Task HandleClientAsync(TcpClient client, CancellationToken ct) await WriteResponseAsync(stream, response, ct).ConfigureAwait(false); } } - catch { /* swallow individual request errors */ } + catch (Exception ex) { Console.WriteLine($"[MauiDevFlow.Agent] Request error: {ex.GetType().Name}: {ex.Message}"); } } private async Task ReadRequestAsync(NetworkStream stream, CancellationToken ct) diff --git a/src/MauiDevFlow.Agent.Core/DevFlowAgentService.cs b/src/MauiDevFlow.Agent.Core/DevFlowAgentService.cs index 89c80ad..3334c2c 100644 --- a/src/MauiDevFlow.Agent.Core/DevFlowAgentService.cs +++ b/src/MauiDevFlow.Agent.Core/DevFlowAgentService.cs @@ -125,6 +125,8 @@ private void RegisterRoutes() private Task HandleStatus(HttpRequest request) { var window = _app?.Windows.FirstOrDefault(); + var w = window?.Width ?? 0; + var h = window?.Height ?? 0; return Task.FromResult(HttpResponse.Json(new { agent = "MauiDevFlow.Agent", @@ -135,8 +137,8 @@ private Task HandleStatus(HttpRequest request) appName = _app?.GetType().Assembly.GetName().Name ?? "unknown", running = _app != null, cdpReady = CdpReadyCheck?.Invoke() ?? false, - windowWidth = window?.Width ?? 0, - windowHeight = window?.Height ?? 0 + windowWidth = double.IsFinite(w) ? w : 0, + windowHeight = double.IsFinite(h) ? h : 0 })); } diff --git a/src/MauiDevFlow.Agent.Core/VisualTreeWalker.cs b/src/MauiDevFlow.Agent.Core/VisualTreeWalker.cs index b69d234..99ce8c1 100644 --- a/src/MauiDevFlow.Agent.Core/VisualTreeWalker.cs +++ b/src/MauiDevFlow.Agent.Core/VisualTreeWalker.cs @@ -253,13 +253,13 @@ private ElementInfo CreateElementInfo(IVisualTreeElement element, string id, str info.IsVisible = ve.IsVisible; info.IsEnabled = ve.IsEnabled; info.IsFocused = ve.IsFocused; - info.Opacity = ve.Opacity; + info.Opacity = double.IsFinite(ve.Opacity) ? ve.Opacity : 1; info.Bounds = new BoundsInfo { - X = ve.Frame.X, - Y = ve.Frame.Y, - Width = ve.Frame.Width, - Height = ve.Frame.Height + X = double.IsFinite(ve.Frame.X) ? ve.Frame.X : 0, + Y = double.IsFinite(ve.Frame.Y) ? ve.Frame.Y : 0, + Width = double.IsFinite(ve.Frame.Width) ? ve.Frame.Width : 0, + Height = double.IsFinite(ve.Frame.Height) ? ve.Frame.Height : 0 }; // Populate native view info from handler diff --git a/src/MauiDevFlow.Agent.Gtk/GtkAgentServiceExtensions.cs b/src/MauiDevFlow.Agent.Gtk/GtkAgentServiceExtensions.cs index e9804c7..2481d40 100644 --- a/src/MauiDevFlow.Agent.Gtk/GtkAgentServiceExtensions.cs +++ b/src/MauiDevFlow.Agent.Gtk/GtkAgentServiceExtensions.cs @@ -20,8 +20,36 @@ public static MauiAppBuilder AddMauiDevFlowAgent(this MauiAppBuilder builder, Ac var options = new AgentOptions(); configure?.Invoke(options); - // Check AssemblyMetadata for port override + // Read project identity from assembly metadata (injected by .targets) + var project = ReadAssemblyMetadata("MauiDevFlowProject") ?? "unknown"; + var tfm = ReadAssemblyMetadata("MauiDevFlowTfm") ?? "unknown"; + + // Try broker for port assignment first + BrokerRegistration? brokerReg = null; if (options.Port == AgentOptions.DefaultPort) + { + try + { + var platform = "Linux"; + var appName = System.Reflection.Assembly.GetEntryAssembly()?.GetName().Name ?? "unknown"; + brokerReg = new BrokerRegistration(project, tfm, platform, appName); + var assignedPort = Task.Run(() => brokerReg.TryRegisterAsync(TimeSpan.FromSeconds(5))).GetAwaiter().GetResult(); + if (assignedPort.HasValue) + { + options.Port = assignedPort.Value; + Console.WriteLine($"[MauiDevFlow] Broker assigned port {assignedPort.Value}"); + } + } + catch (Exception ex) + { + Console.WriteLine($"[MauiDevFlow] Broker registration failed: {ex.Message}"); + brokerReg?.Dispose(); + brokerReg = null; + } + } + + // Fall back to assembly metadata port if broker didn't assign one + if (brokerReg?.AssignedPort == null) { var metaPort = ReadAssemblyMetadataPort(); if (metaPort.HasValue) @@ -29,6 +57,11 @@ public static MauiAppBuilder AddMauiDevFlowAgent(this MauiAppBuilder builder, Ac } var service = new GtkAgentService(options); + if (brokerReg != null) + { + brokerReg.CurrentPort = options.Port; + service.SetBrokerRegistration(brokerReg); + } builder.Services.AddSingleton(service); if (options.EnableFileLogging) @@ -50,7 +83,6 @@ public static MauiAppBuilder AddMauiDevFlowAgent(this MauiAppBuilder builder, Ac /// public static void StartDevFlowAgent(this Application app) { - // Resolve the service from the app's handler service provider var service = GetAgentService(app); if (service != null) { @@ -70,23 +102,28 @@ public static void StartDevFlowAgent(this Application app) } } - private static int? ReadAssemblyMetadataPort() + private static string? ReadAssemblyMetadata(string key) { try { - var attrs = System.Reflection.Assembly.GetEntryAssembly()? - .GetCustomAttributes(typeof(System.Reflection.AssemblyMetadataAttribute), false); - - if (attrs != null) + var entry = System.Reflection.Assembly.GetEntryAssembly(); + if (entry != null) { + var attrs = entry.GetCustomAttributes(typeof(System.Reflection.AssemblyMetadataAttribute), false); foreach (System.Reflection.AssemblyMetadataAttribute attr in attrs) { - if (attr.Key == "MauiDevFlowPort" && int.TryParse(attr.Value, out var port)) - return port; + if (attr.Key == key) + return attr.Value; } } } catch { } return null; } + + private static int? ReadAssemblyMetadataPort() + { + var value = ReadAssemblyMetadata("MauiDevFlowPort"); + return value != null && int.TryParse(value, out var port) ? port : null; + } } diff --git a/src/MauiDevFlow.Blazor.Gtk/GtkBlazorDevFlowExtensions.cs b/src/MauiDevFlow.Blazor.Gtk/GtkBlazorDevFlowExtensions.cs index 59b97d7..e7f2e84 100644 --- a/src/MauiDevFlow.Blazor.Gtk/GtkBlazorDevFlowExtensions.cs +++ b/src/MauiDevFlow.Blazor.Gtk/GtkBlazorDevFlowExtensions.cs @@ -11,6 +11,7 @@ public static class GtkBlazorDevFlowExtensions /// /// Adds MauiDevFlow Blazor WebView debugging tools for WebKitGTK. /// Enables Chrome DevTools Protocol (CDP) access to BlazorWebView content on Linux. + /// Automatically wires to the Agent and captures the WebView when a BlazorWebView is rendered. /// public static MauiAppBuilder AddMauiBlazorDevFlowTools(this MauiAppBuilder builder, bool enableLogging = false) { @@ -19,74 +20,88 @@ public static MauiAppBuilder AddMauiBlazorDevFlowTools(this MauiAppBuilder build service.LogCallback = msg => System.Diagnostics.Debug.WriteLine(msg); builder.Services.AddSingleton(service); + + // Auto-wire to agent and capture WebView after app starts + Task.Run(async () => + { + // Wait for app to initialize + await Task.Delay(2000); + service.WireBlazorCdpToAgent(); + service.StartWebViewDiscovery(); + }); + return builder; } /// /// Wires the Blazor CDP service to the Agent's /api/cdp endpoint via reflection. - /// Call after both Agent and Blazor services are initialized. + /// Called automatically by AddMauiBlazorDevFlowTools after app initialization. /// public static void WireBlazorCdpToAgent(this GtkBlazorWebViewDebugService blazorService) { - Task.Run(async () => + try { - await Task.Delay(1000); - try + var app = Microsoft.Maui.Controls.Application.Current; + if (app == null) { - var app = Microsoft.Maui.Controls.Application.Current; - if (app == null) return; - - var services = app.Handler?.MauiContext?.Services; - if (services == null) return; + Console.WriteLine("[MauiDevFlow.Blazor.Gtk] Application.Current is null, cannot wire CDP"); + return; + } - // Find DevFlowAgentService by scanning loaded assemblies - Type? agentType = null; - foreach (var asm in AppDomain.CurrentDomain.GetAssemblies()) - { - agentType = asm.GetType("MauiDevFlow.Agent.Core.DevFlowAgentService"); - if (agentType != null) break; - } + var services = app.Handler?.MauiContext?.Services; + if (services == null) + { + Console.WriteLine("[MauiDevFlow.Blazor.Gtk] No service provider available"); + return; + } - if (agentType == null) - { - System.Diagnostics.Debug.WriteLine("[MauiDevFlow.Blazor.Gtk] Agent service type not found"); - return; - } + // Find DevFlowAgentService by scanning loaded assemblies + Type? agentType = null; + foreach (var asm in AppDomain.CurrentDomain.GetAssemblies()) + { + agentType = asm.GetType("MauiDevFlow.Agent.Core.DevFlowAgentService"); + if (agentType != null) break; + } - var agentService = services.GetService(agentType); - if (agentService == null) - { - System.Diagnostics.Debug.WriteLine("[MauiDevFlow.Blazor.Gtk] Agent service not registered"); - return; - } + if (agentType == null) + { + Console.WriteLine("[MauiDevFlow.Blazor.Gtk] Agent service type not found"); + return; + } - // Wire CdpCommandHandler and CdpReadyCheck - var handlerProp = agentType.GetProperty("CdpCommandHandler"); - var readyProp = agentType.GetProperty("CdpReadyCheck"); + var agentService = services.GetService(agentType); + if (agentService == null) + { + Console.WriteLine("[MauiDevFlow.Blazor.Gtk] Agent service not registered"); + return; + } - if (handlerProp != null) - handlerProp.SetValue(agentService, new Func>(blazorService.SendCdpCommandAsync)); + // Wire CdpCommandHandler and CdpReadyCheck + var handlerProp = agentType.GetProperty("CdpCommandHandler"); + var readyProp = agentType.GetProperty("CdpReadyCheck"); - if (readyProp != null) - readyProp.SetValue(agentService, new Func(() => blazorService.IsReady)); + if (handlerProp != null) + handlerProp.SetValue(agentService, new Func>(blazorService.SendCdpCommandAsync)); - // Wire WebViewLogCallback - var writeLogMethod = agentType.GetMethod("WriteWebViewLog"); - if (writeLogMethod != null) - { - blazorService.WebViewLogCallback = (level, message, exception) => - { - try { writeLogMethod.Invoke(agentService, new object?[] { level, "WebView.Console", message, exception }); } - catch { } - }; - } + if (readyProp != null) + readyProp.SetValue(agentService, new Func(() => blazorService.IsReady)); - System.Diagnostics.Debug.WriteLine("[MauiDevFlow.Blazor.Gtk] CDP wired to Agent"); - } - catch (Exception ex) + // Wire WebViewLogCallback + var writeLogMethod = agentType.GetMethod("WriteWebViewLog"); + if (writeLogMethod != null) { - System.Diagnostics.Debug.WriteLine($"[MauiDevFlow.Blazor.Gtk] Wire failed: {ex.Message}"); + blazorService.WebViewLogCallback = (level, message, exception) => + { + try { writeLogMethod.Invoke(agentService, new object?[] { level, "WebView.Console", message, exception }); } + catch { } + }; } - }); + + Console.WriteLine("[MauiDevFlow.Blazor.Gtk] CDP wired to Agent"); + } + catch (Exception ex) + { + Console.WriteLine($"[MauiDevFlow.Blazor.Gtk] Wire failed: {ex.Message}"); + } } } diff --git a/src/MauiDevFlow.Blazor.Gtk/GtkBlazorWebViewDebugService.cs b/src/MauiDevFlow.Blazor.Gtk/GtkBlazorWebViewDebugService.cs index e31c6a4..e9df8bf 100644 --- a/src/MauiDevFlow.Blazor.Gtk/GtkBlazorWebViewDebugService.cs +++ b/src/MauiDevFlow.Blazor.Gtk/GtkBlazorWebViewDebugService.cs @@ -13,12 +13,118 @@ public class GtkBlazorWebViewDebugService : IDisposable private bool _injecting; private bool _chobitsuLoaded; private CancellationTokenSource? _drainCts; + private CancellationTokenSource? _discoveryCts; public Action? LogCallback { get; set; } public Action? WebViewLogCallback { get; set; } public bool IsReady => _isInitialized && _webView != null && _chobitsuLoaded; + /// + /// Starts a background task that periodically scans the visual tree for a BlazorWebView + /// and captures its WebKit.WebView for CDP commands. + /// + public void StartWebViewDiscovery() + { + _discoveryCts?.Cancel(); + _discoveryCts = new CancellationTokenSource(); + var ct = _discoveryCts.Token; + + Task.Run(async () => + { + Log("[BlazorDevFlow.Gtk] Starting WebView discovery..."); + for (int attempt = 0; attempt < 300 && !ct.IsCancellationRequested; attempt++) + { + await Task.Delay(2000, ct); + if (_webView != null) return; + + try + { + var app = Microsoft.Maui.Controls.Application.Current; + if (app == null) continue; + + var webView = FindWebKitWebView(app); + if (webView != null) + { + Log("[BlazorDevFlow.Gtk] WebKit.WebView discovered from visual tree"); + await SetWebView(webView); + return; + } + } + catch (Exception ex) + { + Log($"[BlazorDevFlow.Gtk] Discovery error: {ex.Message}"); + } + } + Log("[BlazorDevFlow.Gtk] WebView discovery timed out"); + }, ct); + } + + private static global::WebKit.WebView? FindWebKitWebView(Microsoft.Maui.Controls.Application app) + { + foreach (var window in app.Windows) + { + if (window.Page is Microsoft.Maui.IVisualTreeElement root) + { + var webView = SearchForWebKitWebView(root); + if (webView != null) return webView; + } + } + return null; + } + + private static global::WebKit.WebView? SearchForWebKitWebView(Microsoft.Maui.IVisualTreeElement element) + { + // Check if this element is a BlazorWebView (by type name to avoid direct reference) + if (element is Microsoft.Maui.Controls.View view) + { + var typeName = view.GetType().FullName ?? ""; + if (typeName.Contains("BlazorWebView", StringComparison.OrdinalIgnoreCase)) + { + var webView = ExtractWebKitWebView(view); + if (webView != null) return webView; + } + } + + // Recurse children + foreach (var child in element.GetVisualChildren()) + { + var webView = SearchForWebKitWebView(child); + if (webView != null) return webView; + } + return null; + } + + private static global::WebKit.WebView? ExtractWebKitWebView(Microsoft.Maui.Controls.View view) + { + try + { + var handler = view.Handler; + if (handler == null) return null; + + var platformView = handler.PlatformView; + if (platformView == null) return null; + + // The BlazorWebViewHandler's PlatformView is a Gtk.Box containing the WebKit.WebView + if (platformView is global::Gtk.Box box) + { + var child = box.GetFirstChild(); + while (child != null) + { + if (child is global::WebKit.WebView webView) + return webView; + child = child.GetNextSibling(); + } + } + + // Also check if PlatformView itself is a WebView + if (platformView is global::WebKit.WebView directWebView) + return directWebView; + } + catch { } + return null; + } + /// /// Sets the WebKit.WebView reference for JS evaluation. /// Call this after the BlazorWebViewHandler creates the WebView. @@ -64,30 +170,31 @@ private async Task InjectDebugScriptAsync() return; } - // Wait for chobitsu to be available - for (int i = 0; i < 30; i++) + // Check if chobitsu is already loaded + var check = await EvaluateJavaScriptAsync( + "typeof chobitsu !== 'undefined' ? 'loaded' : 'waiting'"); + + if (check != "loaded") { - var check = await EvaluateJavaScriptAsync( - "typeof chobitsu !== 'undefined' ? 'loaded' : 'waiting'"); - if (check == "loaded") break; + // Inject chobitsu.js directly from embedded resource + Log("[BlazorDevFlow.Gtk] Injecting chobitsu.js from embedded resource..."); + var chobitsuJs = ScriptResources.Load("chobitsu.js"); + await EvaluateJavaScriptAsync(chobitsuJs); - if (i == 10) + // Verify it loaded + for (int i = 0; i < 20; i++) { - var hasTag = await EvaluateJavaScriptAsync( - "document.querySelector('script[src*=\"chobitsu\"]') ? 'found' : 'missing'"); - if (hasTag == "missing") - { - Log("[BlazorDevFlow.Gtk] No chobitsu script tag found. Add to wwwroot/index.html"); - return; - } + check = await EvaluateJavaScriptAsync( + "typeof chobitsu !== 'undefined' ? 'loaded' : 'waiting'"); + if (check == "loaded") break; + await Task.Delay(250); } - if (i == 29) + if (check != "loaded") { - Log("[BlazorDevFlow.Gtk] Chobitsu not loaded after 15s"); + Log("[BlazorDevFlow.Gtk] Chobitsu failed to load after injection"); return; } - await Task.Delay(500); } var script = ScriptResources.Load("chobitsu-init.js"); @@ -284,5 +391,7 @@ public void Dispose() _disposed = true; _drainCts?.Cancel(); _drainCts?.Dispose(); + _discoveryCts?.Cancel(); + _discoveryCts?.Dispose(); } } diff --git a/src/MauiDevFlow.Blazor.Gtk/Resources/Scripts/chobitsu.js b/src/MauiDevFlow.Blazor.Gtk/Resources/Scripts/chobitsu.js new file mode 100644 index 0000000..7107d73 --- /dev/null +++ b/src/MauiDevFlow.Blazor.Gtk/Resources/Scripts/chobitsu.js @@ -0,0 +1,26 @@ +/** + * Skipped minification because the original files appears to be already minified. + * Original file: /npm/chobitsu@1.8.6/dist/chobitsu.js + * + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +/*! chobitsu v1.8.6 https://github.com/liriliri/chobitsu#readme */ +!function(A,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.chobitsu=e():A.chobitsu=e()}(self,function(){return function(){var __webpack_modules__={13:function(A,e,t){"use strict";var r=t(2756),n=t(1722),o=t(6874),i=t(2854);A.exports=function(A,e,t,s){s||(s={});var a=s.enumerable,u=void 0!==s.name?s.name:e;if(r(t)&&o(t,u,s),s.global)a?A[e]=t:i(e,t);else{try{s.unsafe?A[e]&&(a=!0):delete A[e]}catch(A){}a?A[e]=t:n.f(A,e,{value:t,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return A}},36:function(A,e){e=function(A,e){return 0===A.indexOf(e)},A.exports=e},61:function(A,e,t){"use strict";var r=this&&this.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(e,"__esModule",{value:!0}),e.getScripts=function(){if(u)return f("script");var A=document.querySelectorAll("script");return(0,i.default)((0,n.default)(A,function(A){return A.src}))},e.getImages=l,e.isImage=function(A){return(0,s.default)(l(),A)};var n=r(t(6018)),o=r(t(1692)),i=r(t(4185)),s=r(t(416)),a=r(t(7801)),u=!1,c=window.webkitPerformance||window.performance;function l(){if(u)return f("img");var A=document.querySelectorAll("img");return(0,i.default)((0,n.default)(A,function(A){return A.src}))}function f(A){return(0,n.default)((0,o.default)(c.getEntries(),function(e){return"resource"===e.entryType&&(e.initiatorType===A||!("other"!==e.initiatorType||"script"!==A||!(0,a.default)(e.name,".js")))}),function(A){return A.name})}c&&c.getEntries&&(u=!0)},70:function(A,e,t){"use strict";var r=t(1177),n=t(2756),o=t(1273),i=t(226)("toStringTag"),s=Object,a="Arguments"===o(function(){return arguments}());A.exports=r?o:function(A){var e,t,r;return void 0===A?"Undefined":null===A?"Null":"string"==typeof(t=function(A,e){try{return A[e]}catch(A){}}(e=s(A),i))?t:a?o(e):"Object"===(r=o(e))&&n(e.callee)?"Arguments":r}},86:function(A,e,t){"use strict";var r,n,o,i=t(6257),s=t(8565),a=t(5607),u=t(9168),c=t(9274),l=t(6270),f=t(2304),B=t(7932),d="Object already initialized",h=s.TypeError,g=s.WeakMap;if(i||l.state){var p=l.state||(l.state=new g);p.get=p.get,p.has=p.has,p.set=p.set,r=function(A,e){if(p.has(A))throw new h(d);return e.facade=A,p.set(A,e),e},n=function(A){return p.get(A)||{}},o=function(A){return p.has(A)}}else{var w=f("state");B[w]=!0,r=function(A,e){if(c(A,w))throw new h(d);return e.facade=A,u(A,w,e),e},n=function(A){return c(A,w)?A[w]:{}},o=function(A){return c(A,w)}}A.exports={set:r,get:n,has:o,enforce:function(A){return o(A)?n(A):r(A,{})},getterFor:function(A){return function(e){var t;if(!a(e)||(t=n(e)).type!==A)throw new h("Incompatible receiver, "+A+" required");return t}}}},119:function(A,e,t){"use strict";var r=t(8313);A.exports=function(A,e){r.forEach(A,function(t,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(A[e]=t,delete A[r])})}},189:function(A,e,t){var r=t(3380),n=t(416);function o(){return!0}function i(){return!1}function s(A){var t,r=this.events[A.type],n=a.call(this,A,r);A=new e.Event(A);for(var o,i,s=0;(i=n[s++])&&!A.isPropagationStopped();)for(A.curTarget=i.el,o=0;(t=i.handlers[o++])&&!A.isImmediatePropagationStopped();)!1===t.handler.apply(i.el,[A])&&(A.preventDefault(),A.stopPropagation())}function a(A,e){var t,r,o,i,s=A.target,a=[],u=e.delegateCount;if(s.nodeType)for(;s!==this;s=s.parentNode||this){for(r=[],i=0;i=i?"":A.substr(o,i)},A.exports=e},350:function(A,e,t){var r=t(6375),n=t(4866),o=t(6974);e=function(A,e){n(e)&&(e=!0);var t=o(e),i={};return r(A,function(A){i[A]=t?e(A):e}),i},A.exports=e},372:function(A,e,t){A.exports=t(4290)},416:function(A,e,t){var r=t(4493),n=t(3095),o=t(1392),i=t(9960);e=function(A,e){return n(A)?A.indexOf(e)>-1:(o(A)||(A=i(A)),r(A,e)>=0)},A.exports=e},426:function(A,e,t){var r=t(4358),n=r.getComputedStyle,o=r.document;function i(A,e){return A.righte.right||A.bottome.bottom}e=function(A){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.display,r=void 0===t||t,s=e.visibility,a=void 0!==s&&s,u=e.opacity,c=void 0!==u&&u,l=e.size,f=void 0!==l&&l,B=e.viewport,d=void 0!==B&&B,h=e.overflow,g=void 0!==h&&h,p=n(A);if(r){var w=A.tagName;if("BODY"===w||"HTML"===w||"fixed"===p.position){if("none"===p.display)return!0;for(var Q=A;Q=Q.parentElement;){if("none"===n(Q).display)return!0}}else if(null===A.offsetParent)return!0}if(a&&"hidden"===p.visibility)return!0;if(c){if("0"===p.opacity)return!0;for(var C=A;C=C.parentElement;){if("0"===n(C).opacity)return!0}}var v=A.getBoundingClientRect();if(f&&(0===v.width||0===v.height))return!0;if(d)return i(v,{top:0,left:0,right:o.documentElement.clientWidth,bottom:o.documentElement.clientHeight});if(g)for(var y=A;y=y.parentElement;){var m=n(y).overflow;if("scroll"===m||"hidden"===m)if(i(v,y.getBoundingClientRect()))return!0}return!1},A.exports=e},433:function(A,e,t){"use strict";var r=t(8149),n=t(236);r({target:"Promise",stat:!0},{withResolvers:function(){var A=n.f(this);return{promise:A.promise,resolve:A.resolve,reject:A.reject}}})},461:function(A,e,t){var r,n,o;function i(A){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},i(A) +/*! + * html2canvas 1.4.1 + * Copyright (c) 2022 Niklas von Hertzen + * Released under MIT License + */}o=function(){"use strict"; +/*! ***************************************************************************** + Copyright (c) Microsoft Corporation. + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted. + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH + REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, + INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM + LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR + OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + PERFORMANCE OF THIS SOFTWARE. + ***************************************************************************** */var A=function(e,t){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t])},A(e,t)};function e(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}A(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var t=function(){return t=Object.assign||function(A){for(var e,t=1,r=arguments.length;t0&&n[n.length-1])||6!==o[0]&&2!==o[0])){i=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]=55296&&n<=56319&&t>10),i%1024+56320)),(n+1===t||r.length>16384)&&(o+=String.fromCharCode.apply(String,r),r.length=0)}return o},l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f="undefined"==typeof Uint8Array?[]:new Uint8Array(256),B=0;B<64;B++)f[l.charCodeAt(B)]=B;for(var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h="undefined"==typeof Uint8Array?[]:new Uint8Array(256),g=0;g<64;g++)h[d.charCodeAt(g)]=g;for(var p=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},w=function(){function A(A,e,t,r,n,o){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=r,this.index=n,this.data=o}return A.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=((e=this.index[A>>5])<<2)+(31&A),this.data[e];if(A<=65535)return e=((e=this.index[2048+(A-55296>>5)])<<2)+(31&A),this.data[e];if(A>11),e=this.index[e],e+=A>>5&63,e=((e=this.index[e])<<2)+(31&A),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",C="undefined"==typeof Uint8Array?[]:new Uint8Array(256),v=0;v<64;v++)C[Q.charCodeAt(v)]=v;var y=10,m=13,U=15,F=17,b=18,E=19,H=20,x=21,I=22,S=24,O=25,L=26,K=27,_=28,D=30,T=32,M=33,k=34,N=35,P=37,R=38,G=39,V=40,j=42,X=[9001,65288],J="×",Y="÷",W=function(A){var e,t,r,n=function(A){var e,t,r,n,o,i=.75*A.length,s=A.length,a=0;"="===A[A.length-1]&&(i--,"="===A[A.length-2]&&i--);var u="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(i):new Array(i),c=Array.isArray(u)?u:new Uint8Array(u);for(e=0;e>4,c[a++]=(15&r)<<4|n>>2,c[a++]=(3&n)<<6|63&o;return u}(A),o=Array.isArray(n)?function(A){for(var e=A.length,t=[],r=0;r0;){var i=r[--o];if(Array.isArray(A)?-1!==A.indexOf(i):A===i)for(var s=t;s<=r.length;){var a;if((a=r[++s])===e)return!0;if(a!==y)break}if(i!==y)break}return!1},nA=function(A,e){for(var t=A;t>=0;){var r=e[t];if(r!==y)return r;t--}return 0},oA=function(A,e,t,r,n){if(0===t[r])return J;var o=r-1;if(Array.isArray(n)&&!0===n[o])return J;var i=o-1,s=o+1,a=e[o],u=i>=0?e[i]:0,c=e[s];if(2===a&&3===c)return J;if(-1!==z.indexOf(a))return"!";if(-1!==z.indexOf(c))return J;if(-1!==q.indexOf(c))return J;if(8===nA(o,e))return Y;if(11===W.get(A[o]))return J;if((a===T||a===M)&&11===W.get(A[s]))return J;if(7===a||7===c)return J;if(9===a)return J;if(-1===[y,m,U].indexOf(a)&&9===c)return J;if(-1!==[F,b,E,S,_].indexOf(c))return J;if(nA(o,e)===I)return J;if(rA(23,I,o,e))return J;if(rA([F,b],x,o,e))return J;if(rA(12,12,o,e))return J;if(a===y)return Y;if(23===a||23===c)return J;if(16===c||16===a)return Y;if(-1!==[m,U,x].indexOf(c)||14===a)return J;if(36===u&&-1!==tA.indexOf(a))return J;if(a===_&&36===c)return J;if(c===H)return J;if(-1!==Z.indexOf(c)&&a===O||-1!==Z.indexOf(a)&&c===O)return J;if(a===K&&-1!==[P,T,M].indexOf(c)||-1!==[P,T,M].indexOf(a)&&c===L)return J;if(-1!==Z.indexOf(a)&&-1!==$.indexOf(c)||-1!==$.indexOf(a)&&-1!==Z.indexOf(c))return J;if(-1!==[K,L].indexOf(a)&&(c===O||-1!==[I,U].indexOf(c)&&e[s+1]===O)||-1!==[I,U].indexOf(a)&&c===O||a===O&&-1!==[O,_,S].indexOf(c))return J;if(-1!==[O,_,S,F,b].indexOf(c))for(var l=o;l>=0;){if((f=e[l])===O)return J;if(-1===[_,S].indexOf(f))break;l--}if(-1!==[K,L].indexOf(c))for(l=-1!==[F,b].indexOf(a)?i:o;l>=0;){var f;if((f=e[l])===O)return J;if(-1===[_,S].indexOf(f))break;l--}if(R===a&&-1!==[R,G,k,N].indexOf(c)||-1!==[G,k].indexOf(a)&&-1!==[G,V].indexOf(c)||-1!==[V,N].indexOf(a)&&c===V)return J;if(-1!==eA.indexOf(a)&&-1!==[H,L].indexOf(c)||-1!==eA.indexOf(c)&&a===K)return J;if(-1!==Z.indexOf(a)&&-1!==Z.indexOf(c))return J;if(a===S&&-1!==Z.indexOf(c))return J;if(-1!==Z.concat(O).indexOf(a)&&c===I&&-1===X.indexOf(A[s])||-1!==Z.concat(O).indexOf(c)&&a===b)return J;if(41===a&&41===c){for(var B=t[o],d=1;B>0&&41===e[--B];)d++;if(d%2!=0)return J}return a===T&&c===M?J:Y},iA=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=function(A,e){void 0===e&&(e="strict");var t=[],r=[],n=[];return A.forEach(function(A,o){var i=W.get(A);if(i>50?(n.push(!0),i-=50):n.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(A))return r.push(o),t.push(16);if(4===i||11===i){if(0===o)return r.push(o),t.push(D);var s=t[o-1];return-1===AA.indexOf(s)?(r.push(r[o-1]),t.push(s)):(r.push(o),t.push(D))}return r.push(o),31===i?t.push("strict"===e?x:P):i===j||29===i?t.push(D):43===i?A>=131072&&A<=196605||A>=196608&&A<=262141?t.push(P):t.push(D):void t.push(i)}),[r,t,n]}(A,e.lineBreak),r=t[0],n=t[1],o=t[2];"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(n=n.map(function(A){return-1!==[O,D,j].indexOf(A)?P:A}));var i="keep-all"===e.wordBreak?o.map(function(e,t){return e&&A[t]>=19968&&A[t]<=40959}):void 0;return[r,n,i]},sA=function(){function A(A,e,t,r){this.codePoints=A,this.required="!"===e,this.start=t,this.end=r}return A.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},A}(),aA=45,uA=43,cA=-1,lA=function(A){return A>=48&&A<=57},fA=function(A){return lA(A)||A>=65&&A<=70||A>=97&&A<=102},BA=function(A){return 10===A||9===A||32===A},dA=function(A){return function(A){return function(A){return A>=97&&A<=122}(A)||function(A){return A>=65&&A<=90}(A)}(A)||function(A){return A>=128}(A)||95===A},hA=function(A){return dA(A)||lA(A)||A===aA},gA=function(A){return A>=0&&A<=8||11===A||A>=14&&A<=31||127===A},pA=function(A,e){return 92===A&&10!==e},wA=function(A,e,t){return A===aA?dA(e)||pA(e,t):!!dA(A)||!(92!==A||!pA(A,e))},QA=function(A,e,t){return A===uA||A===aA?!!lA(e)||46===e&&lA(t):lA(46===A?e:A)},CA=function(A){var e=0,t=1;A[e]!==uA&&A[e]!==aA||(A[e]===aA&&(t=-1),e++);for(var r=[];lA(A[e]);)r.push(A[e++]);var n=r.length?parseInt(c.apply(void 0,r),10):0;46===A[e]&&e++;for(var o=[];lA(A[e]);)o.push(A[e++]);var i=o.length,s=i?parseInt(c.apply(void 0,o),10):0;69!==A[e]&&101!==A[e]||e++;var a=1;A[e]!==uA&&A[e]!==aA||(A[e]===aA&&(a=-1),e++);for(var u=[];lA(A[e]);)u.push(A[e++]);var l=u.length?parseInt(c.apply(void 0,u),10):0;return t*(n+s*Math.pow(10,-i))*Math.pow(10,a*l)},vA={type:2},yA={type:3},mA={type:4},UA={type:13},FA={type:8},bA={type:21},EA={type:9},HA={type:10},xA={type:11},IA={type:12},SA={type:14},OA={type:23},LA={type:1},KA={type:25},_A={type:24},DA={type:26},TA={type:27},MA={type:28},kA={type:29},NA={type:31},PA={type:32},RA=function(){function A(){this._value=[]}return A.prototype.write=function(A){this._value=this._value.concat(u(A))},A.prototype.read=function(){for(var A=[],e=this.consumeToken();e!==PA;)A.push(e),e=this.consumeToken();return A},A.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case 34:return this.consumeStringToken(34);case 35:var e=this.peekCodePoint(0),t=this.peekCodePoint(1),r=this.peekCodePoint(2);if(hA(e)||pA(t,r)){var n=wA(e,t,r)?2:1;return{type:5,value:this.consumeName(),flags:n}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),UA;break;case 39:return this.consumeStringToken(39);case 40:return vA;case 41:return yA;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),SA;break;case uA:if(QA(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 44:return mA;case aA:var o=A,i=this.peekCodePoint(0),s=this.peekCodePoint(1);if(QA(o,i,s))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(wA(o,i,s))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(i===aA&&62===s)return this.consumeCodePoint(),this.consumeCodePoint(),_A;break;case 46:if(QA(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var a=this.consumeCodePoint();if(42===a&&47===(a=this.consumeCodePoint()))return this.consumeToken();if(a===cA)return this.consumeToken()}break;case 58:return DA;case 59:return TA;case 60:if(33===this.peekCodePoint(0)&&this.peekCodePoint(1)===aA&&this.peekCodePoint(2)===aA)return this.consumeCodePoint(),this.consumeCodePoint(),KA;break;case 64:var u=this.peekCodePoint(0),l=this.peekCodePoint(1),f=this.peekCodePoint(2);if(wA(u,l,f))return{type:7,value:this.consumeName()};break;case 91:return MA;case 92:if(pA(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case 93:return kA;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),FA;break;case 123:return xA;case 125:return IA;case 117:case 85:var B=this.peekCodePoint(0),d=this.peekCodePoint(1);return B!==uA||!fA(d)&&63!==d||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),EA;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),bA;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),HA;break;case cA:return PA}return BA(A)?(this.consumeWhiteSpace(),NA):lA(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):dA(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:c(A)}},A.prototype.consumeCodePoint=function(){var A=this._value.shift();return void 0===A?-1:A},A.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},A.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},A.prototype.consumeUnicodeRangeToken=function(){for(var A=[],e=this.consumeCodePoint();fA(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();for(var t=!1;63===e&&A.length<6;)A.push(e),e=this.consumeCodePoint(),t=!0;if(t)return{type:30,start:parseInt(c.apply(void 0,A.map(function(A){return 63===A?48:A})),16),end:parseInt(c.apply(void 0,A.map(function(A){return 63===A?70:A})),16)};var r=parseInt(c.apply(void 0,A),16);if(this.peekCodePoint(0)===aA&&fA(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var n=[];fA(e)&&n.length<6;)n.push(e),e=this.consumeCodePoint();return{type:30,start:r,end:parseInt(c.apply(void 0,n),16)}}return{type:30,start:r,end:r}},A.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return"url"===A.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},A.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===cA)return{type:22,value:""};var e=this.peekCodePoint(0);if(39===e||34===e){var t=this.consumeStringToken(this.consumeCodePoint());return 0===t.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===cA||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),OA)}for(;;){var r=this.consumeCodePoint();if(r===cA||41===r)return{type:22,value:c.apply(void 0,A)};if(BA(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===cA||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:c.apply(void 0,A)}):(this.consumeBadUrlRemnants(),OA);if(34===r||39===r||40===r||gA(r))return this.consumeBadUrlRemnants(),OA;if(92===r){if(!pA(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),OA;A.push(this.consumeEscapedCodePoint())}else A.push(r)}},A.prototype.consumeWhiteSpace=function(){for(;BA(this.peekCodePoint(0));)this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(41===A||A===cA)return;pA(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(A){for(var e="";A>0;){var t=Math.min(5e4,A);e+=c.apply(void 0,this._value.splice(0,t)),A-=t}return this._value.shift(),e},A.prototype.consumeStringToken=function(A){for(var e="",t=0;;){var r=this._value[t];if(r===cA||void 0===r||r===A)return{type:0,value:e+=this.consumeStringSlice(t)};if(10===r)return this._value.splice(0,t),LA;if(92===r){var n=this._value[t+1];n!==cA&&void 0!==n&&(10===n?(e+=this.consumeStringSlice(t),t=-1,this._value.shift()):pA(r,n)&&(e+=this.consumeStringSlice(t),e+=c(this.consumeEscapedCodePoint()),t=-1))}t++}},A.prototype.consumeNumber=function(){var A=[],e=4,t=this.peekCodePoint(0);for(t!==uA&&t!==aA||A.push(this.consumeCodePoint());lA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(46===t&&lA(r))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;lA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0),r=this.peekCodePoint(1);var n=this.peekCodePoint(2);if((69===t||101===t)&&((r===uA||r===aA)&&lA(n)||lA(r)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;lA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[CA(A),e]},A.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),e=A[0],t=A[1],r=this.peekCodePoint(0),n=this.peekCodePoint(1),o=this.peekCodePoint(2);return wA(r,n,o)?{type:15,number:e,flags:t,unit:this.consumeName()}:37===r?(this.consumeCodePoint(),{type:16,number:e,flags:t}):{type:17,number:e,flags:t}},A.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(fA(A)){for(var e=c(A);fA(this.peekCodePoint(0))&&e.length<6;)e+=c(this.consumeCodePoint());BA(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(e,16);return 0===t||function(A){return A>=55296&&A<=57343}(t)||t>1114111?65533:t}return A===cA?65533:A},A.prototype.consumeName=function(){for(var A="";;){var e=this.consumeCodePoint();if(hA(e))A+=c(e);else{if(!pA(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),A;A+=c(this.consumeEscapedCodePoint())}}},A}(),GA=function(){function A(A){this._tokens=A}return A.create=function(e){var t=new RA;return t.write(e),new A(t.read())},A.parseValue=function(e){return A.create(e).parseComponentValue()},A.parseValues=function(e){return A.create(e).parseComponentValues()},A.prototype.parseComponentValue=function(){for(var A=this.consumeToken();31===A.type;)A=this.consumeToken();if(32===A.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var e=this.consumeComponentValue();do{A=this.consumeToken()}while(31===A.type);if(32===A.type)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){for(var A=[];;){var e=this.consumeComponentValue();if(32===e.type)return A;A.push(e),A.push()}},A.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},A.prototype.consumeSimpleBlock=function(A){for(var e={type:A,values:[]},t=this.consumeToken();;){if(32===t.type||qA(t,A))return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue()),t=this.consumeToken()}},A.prototype.consumeFunction=function(A){for(var e={name:A.value,values:[],type:18};;){var t=this.consumeToken();if(32===t.type||3===t.type)return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var A=this._tokens.shift();return void 0===A?PA:A},A.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},A}(),VA=function(A){return 15===A.type},jA=function(A){return 17===A.type},XA=function(A){return 20===A.type},JA=function(A){return 0===A.type},YA=function(A,e){return XA(A)&&A.value===e},WA=function(A){return 31!==A.type},ZA=function(A){return 31!==A.type&&4!==A.type},zA=function(A){var e=[],t=[];return A.forEach(function(A){if(4===A.type){if(0===t.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(t),void(t=[])}31!==A.type&&t.push(A)}),t.length&&e.push(t),e},qA=function(A,e){return 11===e&&12===A.type||28===e&&29===A.type||2===e&&3===A.type},$A=function(A){return 17===A.type||15===A.type},Ae=function(A){return 16===A.type||$A(A)},ee=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},te={type:17,number:0,flags:4},re={type:16,number:50,flags:4},ne={type:16,number:100,flags:4},oe=function(A,e,t){var r=A[0],n=A[1];return[ie(r,e),ie(void 0!==n?n:r,t)]},ie=function(A,e){if(16===A.type)return A.number/100*e;if(VA(A))switch(A.unit){case"rem":case"em":return 16*A.number;default:return A.number}return A.number},se="grad",ae="turn",ue=function(A,e){if(15===e.type)switch(e.unit){case"deg":return Math.PI*e.number/180;case se:return Math.PI/200*e.number;case"rad":return e.number;case ae:return 2*Math.PI*e.number}throw new Error("Unsupported angle type")},ce=function(A){return 15===A.type&&("deg"===A.unit||A.unit===se||"rad"===A.unit||A.unit===ae)},le=function(A){switch(A.filter(XA).map(function(A){return A.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[te,te];case"to top":case"bottom":return fe(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[te,ne];case"to right":case"left":return fe(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[ne,ne];case"to bottom":case"top":return fe(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[ne,te];case"to left":case"right":return fe(270)}return 0},fe=function(A){return Math.PI*A/180},Be=function(A,e){if(18===e.type){var t=ye[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(A,e.values)}if(5===e.type){if(3===e.value.length){var r=e.value.substring(0,1),n=e.value.substring(1,2),o=e.value.substring(2,3);return ge(parseInt(r+r,16),parseInt(n+n,16),parseInt(o+o,16),1)}if(4===e.value.length){r=e.value.substring(0,1),n=e.value.substring(1,2),o=e.value.substring(2,3);var i=e.value.substring(3,4);return ge(parseInt(r+r,16),parseInt(n+n,16),parseInt(o+o,16),parseInt(i+i,16)/255)}if(6===e.value.length)return r=e.value.substring(0,2),n=e.value.substring(2,4),o=e.value.substring(4,6),ge(parseInt(r,16),parseInt(n,16),parseInt(o,16),1);if(8===e.value.length)return r=e.value.substring(0,2),n=e.value.substring(2,4),o=e.value.substring(4,6),i=e.value.substring(6,8),ge(parseInt(r,16),parseInt(n,16),parseInt(o,16),parseInt(i,16)/255)}if(20===e.type){var s=Ue[e.value.toUpperCase()];if(void 0!==s)return s}return Ue.TRANSPARENT},de=function(A){return!(255&A)},he=function(A){var e=255&A,t=255&A>>8,r=255&A>>16,n=255&A>>24;return e<255?"rgba("+n+","+r+","+t+","+e/255+")":"rgb("+n+","+r+","+t+")"},ge=function(A,e,t,r){return(A<<24|e<<16|t<<8|Math.round(255*r))>>>0},pe=function(A,e){if(17===A.type)return A.number;if(16===A.type){var t=3===e?1:255;return 3===e?A.number/100*t:Math.round(A.number/100*t)}return 0},we=function(A,e){var t=e.filter(ZA);if(3===t.length){var r=t.map(pe),n=r[0],o=r[1],i=r[2];return ge(n,o,i,1)}if(4===t.length){var s=t.map(pe),a=(n=s[0],o=s[1],i=s[2],s[3]);return ge(n,o,i,a)}return 0};function Qe(A,e,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-A)*t*6+A:t<.5?e:t<2/3?6*(e-A)*(2/3-t)+A:A}var Ce,ve=function(A,e){var t=e.filter(ZA),r=t[0],n=t[1],o=t[2],i=t[3],s=(17===r.type?fe(r.number):ue(A,r))/(2*Math.PI),a=Ae(n)?n.number/100:0,u=Ae(o)?o.number/100:0,c=void 0!==i&&Ae(i)?ie(i,1):1;if(0===a)return ge(255*u,255*u,255*u,1);var l=u<=.5?u*(a+1):u+a-u*a,f=2*u-l,B=Qe(f,l,s+1/3),d=Qe(f,l,s),h=Qe(f,l,s-1/3);return ge(255*B,255*d,255*h,c)},ye={hsl:ve,hsla:ve,rgb:we,rgba:we},me=function(A,e){return Be(A,GA.create(e).parseComponentValue())},Ue={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Fe={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map(function(A){if(XA(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},be={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ee=function(A,e){var t=Be(A,e[0]),r=e[1];return r&&Ae(r)?{color:t,stop:r}:{color:t,stop:null}},He=function(A,e){var t=A[0],r=A[A.length-1];null===t.stop&&(t.stop=te),null===r.stop&&(r.stop=ne);for(var n=[],o=0,i=0;io?n.push(a):n.push(o),o=a}else n.push(null)}var u=null;for(i=0;iA.optimumDistance)?{optimumCorner:e,optimumDistance:s}:A},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},Oe=function(A,e){var t=fe(180),r=[];return zA(e).forEach(function(e,n){if(0===n){var o=e[0];if(20===o.type&&-1!==["top","left","right","bottom"].indexOf(o.value))return void(t=le(e));if(ce(o))return void(t=(ue(A,o)+fe(270))%fe(360))}var i=Ee(A,e);r.push(i)}),{angle:t,stops:r,type:1}},Le="closest-side",Ke="farthest-side",_e="closest-corner",De="farthest-corner",Te="circle",Me="ellipse",ke="cover",Ne="contain",Pe=function(A,e){var t=0,r=3,n=[],o=[];return zA(e).forEach(function(e,i){var s=!0;if(0===i?s=e.reduce(function(A,e){if(XA(e))switch(e.value){case"center":return o.push(re),!1;case"top":case"left":return o.push(te),!1;case"right":case"bottom":return o.push(ne),!1}else if(Ae(e)||$A(e))return o.push(e),!1;return A},s):1===i&&(s=e.reduce(function(A,e){if(XA(e))switch(e.value){case Te:return t=0,!1;case Me:return t=1,!1;case Ne:case Le:return r=0,!1;case Ke:return r=1,!1;case _e:return r=2,!1;case ke:case De:return r=3,!1}else if($A(e)||Ae(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return A},s)),s){var a=Ee(A,e);n.push(a)}}),{size:r,shape:t,stops:n,position:o,type:2}},Re=function(A,e){if(22===e.type){var t={url:e.value,type:0};return A.cache.addImage(e.value),t}if(18===e.type){var r=Ge[e.name];if(void 0===r)throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return r(A,e.values)}throw new Error("Unsupported image type "+e.type)},Ge={"linear-gradient":function(A,e){var t=fe(180),r=[];return zA(e).forEach(function(e,n){if(0===n){var o=e[0];if(20===o.type&&"to"===o.value)return void(t=le(e));if(ce(o))return void(t=ue(A,o))}var i=Ee(A,e);r.push(i)}),{angle:t,stops:r,type:1}},"-moz-linear-gradient":Oe,"-ms-linear-gradient":Oe,"-o-linear-gradient":Oe,"-webkit-linear-gradient":Oe,"radial-gradient":function(A,e){var t=0,r=3,n=[],o=[];return zA(e).forEach(function(e,i){var s=!0;if(0===i){var a=!1;s=e.reduce(function(A,e){if(a)if(XA(e))switch(e.value){case"center":return o.push(re),A;case"top":case"left":return o.push(te),A;case"right":case"bottom":return o.push(ne),A}else(Ae(e)||$A(e))&&o.push(e);else if(XA(e))switch(e.value){case Te:return t=0,!1;case Me:return t=1,!1;case"at":return a=!0,!1;case Le:return r=0,!1;case ke:case Ke:return r=1,!1;case Ne:case _e:return r=2,!1;case De:return r=3,!1}else if($A(e)||Ae(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return A},s)}if(s){var u=Ee(A,e);n.push(u)}}),{size:r,shape:t,stops:n,position:o,type:2}},"-moz-radial-gradient":Pe,"-ms-radial-gradient":Pe,"-o-radial-gradient":Pe,"-webkit-radial-gradient":Pe,"-webkit-gradient":function(A,e){var t=fe(180),r=[],n=1;return zA(e).forEach(function(e,t){var o=e[0];if(0===t){if(XA(o)&&"linear"===o.value)return void(n=1);if(XA(o)&&"radial"===o.value)return void(n=2)}if(18===o.type)if("from"===o.name){var i=Be(A,o.values[0]);r.push({stop:te,color:i})}else if("to"===o.name)i=Be(A,o.values[0]),r.push({stop:ne,color:i});else if("color-stop"===o.name){var s=o.values.filter(ZA);if(2===s.length){i=Be(A,s[1]);var a=s[0];jA(a)&&r.push({stop:{type:16,number:100*a.number,flags:a.flags},color:i})}}}),1===n?{angle:(t+fe(180))%fe(360),stops:r,type:n}:{size:3,shape:0,stops:r,position:[],type:n}}},Ve={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(0===e.length)return[];var t=e[0];return 20===t.type&&"none"===t.value?[]:e.filter(function(A){return ZA(A)&&function(A){return!(20===A.type&&"none"===A.value||18===A.type&&!Ge[A.name])}(A)}).map(function(e){return Re(A,e)})}},je={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map(function(A){if(XA(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Xe={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,e){return zA(e).map(function(A){return A.filter(Ae)}).map(ee)}},Je={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(A,e){return zA(e).map(function(A){return A.filter(XA).map(function(A){return A.value}).join(" ")}).map(Ye)}},Ye=function(A){switch(A){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};!function(A){A.AUTO="auto",A.CONTAIN="contain",A.COVER="cover"}(Ce||(Ce={}));var We,Ze={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(A,e){return zA(e).map(function(A){return A.filter(ze)})}},ze=function(A){return XA(A)||Ae(A)},qe=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},$e=qe("top"),At=qe("right"),et=qe("bottom"),tt=qe("left"),rt=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(A,e){return ee(e.filter(Ae))}}},nt=rt("top-left"),ot=rt("top-right"),it=rt("bottom-right"),st=rt("bottom-left"),at=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},ut=at("top"),ct=at("right"),lt=at("bottom"),ft=at("left"),Bt=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return VA(e)?e.number:0}}},dt=Bt("top"),ht=Bt("right"),gt=Bt("bottom"),pt=Bt("left"),wt={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Qt={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,e){return"rtl"===e?1:0}},Ct={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,e){return e.filter(XA).reduce(function(A,e){return A|vt(e.value)},0)}},vt=function(A){switch(A){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},yt={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},mt={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(A,e){return 20===e.type&&"normal"===e.value?0:17===e.type||15===e.type?e.number:0}};!function(A){A.NORMAL="normal",A.STRICT="strict"}(We||(We={}));var Ut,Ft={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){return"strict"===e?We.STRICT:We.NORMAL}},bt={name:"line-height",initialValue:"normal",prefix:!1,type:4},Et=function(A,e){return XA(A)&&"normal"===A.value?1.2*e:17===A.type?e*A.number:Ae(A)?ie(A,e):e},Ht={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,e){return 20===e.type&&"none"===e.value?null:Re(A,e)}},xt={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(A,e){return"inside"===e?0:1}},It={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},St=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},Ot=St("top"),Lt=St("right"),Kt=St("bottom"),_t=St("left"),Dt={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(A,e){return e.filter(XA).map(function(A){switch(A.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},Tt={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){return"break-word"===e?"break-word":"normal"}},Mt=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},kt=Mt("top"),Nt=Mt("right"),Pt=Mt("bottom"),Rt=Mt("left"),Gt={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(A,e){switch(e){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},Vt={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(A,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},jt={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return 1===e.length&&YA(e[0],"none")?[]:zA(e).map(function(e){for(var t={color:Ue.TRANSPARENT,offsetX:te,offsetY:te,blur:te},r=0,n=0;n1?1:0],this.overflowWrap=Ur(A,Tt,e.overflowWrap),this.paddingTop=Ur(A,kt,e.paddingTop),this.paddingRight=Ur(A,Nt,e.paddingRight),this.paddingBottom=Ur(A,Pt,e.paddingBottom),this.paddingLeft=Ur(A,Rt,e.paddingLeft),this.paintOrder=Ur(A,wr,e.paintOrder),this.position=Ur(A,Vt,e.position),this.textAlign=Ur(A,Gt,e.textAlign),this.textDecorationColor=Ur(A,rr,null!==(t=e.textDecorationColor)&&void 0!==t?t:e.color),this.textDecorationLine=Ur(A,nr,null!==(r=e.textDecorationLine)&&void 0!==r?r:e.textDecoration),this.textShadow=Ur(A,jt,e.textShadow),this.textTransform=Ur(A,Xt,e.textTransform),this.transform=Ur(A,Jt,e.transform),this.transformOrigin=Ur(A,zt,e.transformOrigin),this.visibility=Ur(A,qt,e.visibility),this.webkitTextStrokeColor=Ur(A,Qr,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=Ur(A,Cr,e.webkitTextStrokeWidth),this.wordBreak=Ur(A,$t,e.wordBreak),this.zIndex=Ur(A,Ar,e.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},A.prototype.isTransparent=function(){return de(this.backgroundColor)},A.prototype.isTransformed=function(){return null!==this.transform},A.prototype.isPositioned=function(){return 0!==this.position},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return 0!==this.float},A.prototype.isInlineLevel=function(){return cr(this.display,4)||cr(this.display,33554432)||cr(this.display,268435456)||cr(this.display,536870912)||cr(this.display,67108864)||cr(this.display,134217728)},A}(),yr=function(A,e){this.content=Ur(A,lr,e.content),this.quotes=Ur(A,hr,e.quotes)},mr=function(A,e){this.counterIncrement=Ur(A,fr,e.counterIncrement),this.counterReset=Ur(A,Br,e.counterReset)},Ur=function(A,e,t){var r=new RA,n=null!=t?t.toString():e.initialValue;r.write(n);var o=new GA(r.read());switch(e.type){case 2:var i=o.parseComponentValue();return e.parse(A,XA(i)?i.value:e.initialValue);case 0:return e.parse(A,o.parseComponentValue());case 1:return e.parse(A,o.parseComponentValues());case 4:return o.parseComponentValue();case 3:switch(e.format){case"angle":return ue(A,o.parseComponentValue());case"color":return Be(A,o.parseComponentValue());case"image":return Re(A,o.parseComponentValue());case"length":var s=o.parseComponentValue();return $A(s)?s:te;case"length-percentage":var a=o.parseComponentValue();return Ae(a)?a:te;case"time":return er(A,o.parseComponentValue())}}},Fr=function(A,e){var t=function(A){switch(A.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(A);return 1===t||e===t},br=function(A,e){this.context=A,this.textNodes=[],this.elements=[],this.flags=0,Fr(e,3),this.styles=new vr(A,window.getComputedStyle(e,null)),Sn(e)&&(this.styles.animationDuration.some(function(A){return A>0})&&(e.style.animationDuration="0s"),null!==this.styles.transform&&(e.style.transform="none")),this.bounds=a(this.context,e),Fr(e,4)&&(this.flags|=16)},Er="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Hr="undefined"==typeof Uint8Array?[]:new Uint8Array(256),xr=0;xr<64;xr++)Hr[Er.charCodeAt(xr)]=xr;for(var Ir=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},Sr=function(){function A(A,e,t,r,n,o){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=r,this.index=n,this.data=o}return A.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=((e=this.index[A>>5])<<2)+(31&A),this.data[e];if(A<=65535)return e=((e=this.index[2048+(A-55296>>5)])<<2)+(31&A),this.data[e];if(A>11),e=this.index[e],e+=A>>5&63,e=((e=this.index[e])<<2)+(31&A),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),Or="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Lr="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Kr=0;Kr<64;Kr++)Lr[Or.charCodeAt(Kr)]=Kr;var _r,Dr=8,Tr=9,Mr=11,kr=12,Nr=function(){for(var A=[],e=0;e>10),i%1024+56320)),(n+1===t||r.length>16384)&&(o+=String.fromCharCode.apply(String,r),r.length=0)}return o},Pr=function(A){var e,t,r,n=function(A){var e,t,r,n,o,i=.75*A.length,s=A.length,a=0;"="===A[A.length-1]&&(i--,"="===A[A.length-2]&&i--);var u="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(i):new Array(i),c=Array.isArray(u)?u:new Uint8Array(u);for(e=0;e>4,c[a++]=(15&r)<<4|n>>2,c[a++]=(3&n)<<6|63&o;return u}(A),o=Array.isArray(n)?function(A){for(var e=A.length,t=[],r=0;r=55296&&n<=56319&&t=t)return{done:!0,value:null};for(var A=Rr;ri.x||n.y>i.y;return i=n,0===e||s});return A.body.removeChild(e),s}(document);return Object.defineProperty(Wr,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=function(A){var e=new Image,t=A.createElement("canvas"),r=t.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,";try{r.drawImage(e,0,0),t.toDataURL()}catch(A){return!1}return!0}(document);return Object.defineProperty(Wr,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A="function"==typeof Array.from&&"function"==typeof window.fetch?function(A){var e=A.createElement("canvas"),t=100;e.width=t,e.height=t;var r=e.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,t,t);var n=new Image,o=e.toDataURL();n.src=o;var i=Jr(t,t,0,0,n);return r.fillStyle="red",r.fillRect(0,0,t,t),Yr(i).then(function(e){r.drawImage(e,0,0);var n=r.getImageData(0,0,t,t).data;r.fillStyle="red",r.fillRect(0,0,t,t);var i=A.createElement("div");return i.style.backgroundImage="url("+o+")",i.style.height=t+"px",Xr(n)?Yr(Jr(t,t,0,0,i)):Promise.reject(!1)}).then(function(A){return r.drawImage(A,0,0),Xr(r.getImageData(0,0,t,t).data)}).catch(function(){return!1})}(document):Promise.resolve(!1);return Object.defineProperty(Wr,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=void 0!==(new Image).crossOrigin;return Object.defineProperty(Wr,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(Wr,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Wr,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var A=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(Wr,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}},Zr=function(A,e){this.text=A,this.bounds=e},zr=function(A,e){var t=e.ownerDocument;if(t){var r=t.createElement("html2canvaswrapper");r.appendChild(e.cloneNode(!0));var n=e.parentNode;if(n){n.replaceChild(r,e);var o=a(A,r);return r.firstChild&&n.replaceChild(r.firstChild,r),o}}return s.EMPTY},qr=function(A,e,t){var r=A.ownerDocument;if(!r)throw new Error("Node has no owner document");var n=r.createRange();return n.setStart(A,e),n.setEnd(A,e+t),n},$r=function(A){if(Wr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(A)).map(function(A){return A.segment})}return function(A){for(var e,t=jr(A),r=[];!(e=t.next()).done;)e.value&&r.push(e.value.slice());return r}(A)},An=function(A,e){return 0!==e.letterSpacing?$r(A):function(A,e){if(Wr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(A)).map(function(A){return A.segment})}return tn(A,e)}(A,e)},en=[32,160,4961,65792,65793,4153,4241],tn=function(A,e){for(var t,r=function(A,e){var t=u(A),r=iA(t,e),n=r[0],o=r[1],i=r[2],s=t.length,a=0,c=0;return{next:function(){if(c>=s)return{done:!0,value:null};for(var A=J;c0)if(Wr.SUPPORT_RANGE_BOUNDS){var n=qr(r,i,e.length).getClientRects();if(n.length>1){var a=$r(e),u=0;a.forEach(function(e){o.push(new Zr(e,s.fromDOMRectList(A,qr(r,u+i,e.length).getClientRects()))),u+=e.length})}else o.push(new Zr(e,s.fromDOMRectList(A,n)))}else{var c=r.splitText(e.length);o.push(new Zr(e,zr(A,r))),r=c}else Wr.SUPPORT_RANGE_BOUNDS||(r=r.splitText(e.length));i+=e.length}),o}(A,this.text,t,e)},nn=function(A,e){switch(e){case 1:return A.toLowerCase();case 3:return A.replace(on,sn);case 2:return A.toUpperCase();default:return A}},on=/(^|\s|:|-|\(|\))([a-z])/g,sn=function(A,e,t){return A.length>0?e+t.toUpperCase():A},an=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.src=t.currentSrc||t.src,r.intrinsicWidth=t.naturalWidth,r.intrinsicHeight=t.naturalHeight,r.context.cache.addImage(r.src),r}return e(t,A),t}(br),un=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.canvas=t,r.intrinsicWidth=t.width,r.intrinsicHeight=t.height,r}return e(t,A),t}(br),cn=function(A){function t(e,t){var r=A.call(this,e,t)||this,n=new XMLSerializer,o=a(e,t);return t.setAttribute("width",o.width+"px"),t.setAttribute("height",o.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(n.serializeToString(t)),r.intrinsicWidth=t.width.baseVal.value,r.intrinsicHeight=t.height.baseVal.value,r.context.cache.addImage(r.svg),r}return e(t,A),t}(br),ln=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.value=t.value,r}return e(t,A),t}(br),fn=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.start=t.start,r.reversed="boolean"==typeof t.reversed&&!0===t.reversed,r}return e(t,A),t}(br),Bn=[{type:15,flags:0,unit:"px",number:3}],dn=[{type:16,flags:0,number:50}],hn="checkbox",gn="radio",pn="password",wn=707406591,Qn=function(A){function t(e,t){var r,n,o,i=A.call(this,e,t)||this;switch(i.type=t.type.toLowerCase(),i.checked=t.checked,i.value=0===(n=(r=t).type===pn?new Array(r.value.length+1).join("•"):r.value).length?r.placeholder||"":n,i.type!==hn&&i.type!==gn||(i.styles.backgroundColor=3739148031,i.styles.borderTopColor=i.styles.borderRightColor=i.styles.borderBottomColor=i.styles.borderLeftColor=2779096575,i.styles.borderTopWidth=i.styles.borderRightWidth=i.styles.borderBottomWidth=i.styles.borderLeftWidth=1,i.styles.borderTopStyle=i.styles.borderRightStyle=i.styles.borderBottomStyle=i.styles.borderLeftStyle=1,i.styles.backgroundClip=[0],i.styles.backgroundOrigin=[0],i.bounds=(o=i.bounds).width>o.height?new s(o.left+(o.width-o.height)/2,o.top,o.height,o.height):o.width0)t.textNodes.push(new rn(A,n,t.styles));else if(In(n))if(jn(n)&&n.assignedNodes)n.assignedNodes().forEach(function(e){return Un(A,e,t,r)});else{var i=Fn(A,n);i.styles.isVisible()&&(En(n,i,r)?i.flags|=4:Hn(i.styles)&&(i.flags|=2),-1!==mn.indexOf(n.tagName)&&(i.flags|=8),t.elements.push(i),n.slot,n.shadowRoot?Un(A,n.shadowRoot,i,r):Gn(n)||Dn(n)||Vn(n)||Un(A,n,i,r))}},Fn=function(A,e){return Nn(e)?new an(A,e):Mn(e)?new un(A,e):Dn(e)?new cn(A,e):Ln(e)?new ln(A,e):Kn(e)?new fn(A,e):_n(e)?new Qn(A,e):Vn(e)?new Cn(A,e):Gn(e)?new vn(A,e):Pn(e)?new yn(A,e):new br(A,e)},bn=function(A,e){var t=Fn(A,e);return t.flags|=4,Un(A,e,t,t),t},En=function(A,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Tn(A)&&t.styles.isTransparent()},Hn=function(A){return A.isPositioned()||A.isFloating()},xn=function(A){return A.nodeType===Node.TEXT_NODE},In=function(A){return A.nodeType===Node.ELEMENT_NODE},Sn=function(A){return In(A)&&void 0!==A.style&&!On(A)},On=function(A){return"object"===i(A.className)},Ln=function(A){return"LI"===A.tagName},Kn=function(A){return"OL"===A.tagName},_n=function(A){return"INPUT"===A.tagName},Dn=function(A){return"svg"===A.tagName},Tn=function(A){return"BODY"===A.tagName},Mn=function(A){return"CANVAS"===A.tagName},kn=function(A){return"VIDEO"===A.tagName},Nn=function(A){return"IMG"===A.tagName},Pn=function(A){return"IFRAME"===A.tagName},Rn=function(A){return"STYLE"===A.tagName},Gn=function(A){return"TEXTAREA"===A.tagName},Vn=function(A){return"SELECT"===A.tagName},jn=function(A){return"SLOT"===A.tagName},Xn=function(A){return A.tagName.indexOf("-")>0},Jn=function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(A){var e=this.counters[A];return e&&e.length?e[e.length-1]:1},A.prototype.getCounterValues=function(A){var e=this.counters[A];return e||[]},A.prototype.pop=function(A){var e=this;A.forEach(function(A){return e.counters[A].pop()})},A.prototype.parse=function(A){var e=this,t=A.counterIncrement,r=A.counterReset,n=!0;null!==t&&t.forEach(function(A){var t=e.counters[A.counter];t&&0!==A.increment&&(n=!1,t.length||t.push(1),t[Math.max(0,t.length-1)]+=A.increment)});var o=[];return n&&r.forEach(function(A){var t=e.counters[A.counter];o.push(A.counter),t||(t=e.counters[A.counter]=[]),t.push(A.reset)}),o},A}(),Yn={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Wn={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Zn={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},zn={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},qn=function(A,e,t,r,n,o){return At?so(A,n,o.length>0):r.integers.reduce(function(e,t,n){for(;A>=t;)A-=t,e+=r.values[n];return e},"")+o},$n=function(A,e,t,r){var n="";do{t||A--,n=r(A)+n,A/=e}while(A*e>=e);return n},Ao=function(A,e,t,r,n){var o=t-e+1;return(A<0?"-":"")+($n(Math.abs(A),o,r,function(A){return c(Math.floor(A%o)+e)})+n)},eo=function(A,e,t){void 0===t&&(t=". ");var r=e.length;return $n(Math.abs(A),r,!1,function(A){return e[Math.floor(A%r)]})+t},to=function(A,e,t,r,n,o){if(A<-9999||A>9999)return so(A,4,n.length>0);var i=Math.abs(A),s=n;if(0===i)return e[0]+s;for(var a=0;i>0&&a<=4;a++){var u=i%10;0===u&&cr(o,1)&&""!==s?s=e[u]+s:u>1||1===u&&0===a||1===u&&1===a&&cr(o,2)||1===u&&1===a&&cr(o,4)&&A>100||1===u&&a>1&&cr(o,8)?s=e[u]+(a>0?t[a-1]:"")+s:1===u&&a>0&&(s=t[a-1]+s),i=Math.floor(i/10)}return(A<0?r:"")+s},ro="十百千萬",no="拾佰仟萬",oo="マイナス",io="마이너스",so=function(A,e,t){var r=t?". ":"",n=t?"、":"",o=t?", ":"",i=t?" ":"";switch(e){case 0:return"•"+i;case 1:return"◦"+i;case 2:return"◾"+i;case 5:var s=Ao(A,48,57,!0,r);return s.length<4?"0"+s:s;case 4:return eo(A,"〇一二三四五六七八九",n);case 6:return qn(A,1,3999,Yn,3,r).toLowerCase();case 7:return qn(A,1,3999,Yn,3,r);case 8:return Ao(A,945,969,!1,r);case 9:return Ao(A,97,122,!1,r);case 10:return Ao(A,65,90,!1,r);case 11:return Ao(A,1632,1641,!0,r);case 12:case 49:return qn(A,1,9999,Wn,3,r);case 35:return qn(A,1,9999,Wn,3,r).toLowerCase();case 13:return Ao(A,2534,2543,!0,r);case 14:case 30:return Ao(A,6112,6121,!0,r);case 15:return eo(A,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return eo(A,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return to(A,"零一二三四五六七八九",ro,"負",n,14);case 47:return to(A,"零壹貳參肆伍陸柒捌玖",no,"負",n,15);case 42:return to(A,"零一二三四五六七八九",ro,"负",n,14);case 41:return to(A,"零壹贰叁肆伍陆柒捌玖",no,"负",n,15);case 26:return to(A,"〇一二三四五六七八九","十百千万",oo,n,0);case 25:return to(A,"零壱弐参四伍六七八九","拾百千万",oo,n,7);case 31:return to(A,"영일이삼사오육칠팔구","십백천만",io,o,7);case 33:return to(A,"零一二三四五六七八九","十百千萬",io,o,0);case 32:return to(A,"零壹貳參四五六七八九","拾百千",io,o,7);case 18:return Ao(A,2406,2415,!0,r);case 20:return qn(A,1,19999,zn,3,r);case 21:return Ao(A,2790,2799,!0,r);case 22:return Ao(A,2662,2671,!0,r);case 22:return qn(A,1,10999,Zn,3,r);case 23:return eo(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return eo(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Ao(A,3302,3311,!0,r);case 28:return eo(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return eo(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return Ao(A,3792,3801,!0,r);case 37:return Ao(A,6160,6169,!0,r);case 38:return Ao(A,4160,4169,!0,r);case 39:return Ao(A,2918,2927,!0,r);case 40:return Ao(A,1776,1785,!0,r);case 43:return Ao(A,3046,3055,!0,r);case 44:return Ao(A,3174,3183,!0,r);case 45:return Ao(A,3664,3673,!0,r);case 46:return Ao(A,3872,3881,!0,r);default:return Ao(A,48,57,!0,r)}},ao="data-html2canvas-ignore",uo=function(){function A(A,e,t){if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new Jn,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return A.prototype.toIFrame=function(A,e){var t=this,o=lo(A,e);if(!o.contentWindow)return Promise.reject("Unable to find iframe window");var i=A.defaultView.pageXOffset,s=A.defaultView.pageYOffset,a=o.contentWindow,u=a.document,c=ho(o).then(function(){return r(t,void 0,void 0,function(){var A,t;return n(this,function(r){switch(r.label){case 0:return this.scrolledElements.forEach(Co),a&&(a.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||a.scrollY===e.top&&a.scrollX===e.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(a.scrollX-e.left,a.scrollY-e.top,0,0))),A=this.options.onclone,void 0===(t=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:u.fonts&&u.fonts.ready?[4,u.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Bo(u)]:[3,4];case 3:r.sent(),r.label=4;case 4:return"function"==typeof A?[2,Promise.resolve().then(function(){return A(u,t)}).then(function(){return o})]:[2,o]}})})});return u.open(),u.write(wo(document.doctype)+""),Qo(this.referenceElement.ownerDocument,i,s),u.replaceChild(u.adoptNode(this.documentElement),u.documentElement),u.close(),c},A.prototype.createElementClone=function(A){if(Fr(A,2),Mn(A))return this.createCanvasClone(A);if(kn(A))return this.createVideoClone(A);if(Rn(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return Nn(e)&&(Nn(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),Xn(e)?this.createCustomElementClone(e):e},A.prototype.createCustomElementClone=function(A){var e=document.createElement("html2canvascustomelement");return po(A.style,e),e},A.prototype.createStyleClone=function(A){try{var e=A.sheet;if(e&&e.cssRules){var t=[].slice.call(e.cssRules,0).reduce(function(A,e){return e&&"string"==typeof e.cssText?A+e.cssText:A},""),r=A.cloneNode(!1);return r.textContent=t,r}}catch(A){if(this.context.logger.error("Unable to access cssRules property",A),"SecurityError"!==A.name)throw A}return A.cloneNode(!1)},A.prototype.createCanvasClone=function(A){var e;if(this.options.inlineImages&&A.ownerDocument){var t=A.ownerDocument.createElement("img");try{return t.src=A.toDataURL(),t}catch(e){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var r=A.cloneNode(!1);try{r.width=A.width,r.height=A.height;var n=A.getContext("2d"),o=r.getContext("2d");if(o)if(!this.options.allowTaint&&n)o.putImageData(n.getImageData(0,0,A.width,A.height),0,0);else{var i=null!==(e=A.getContext("webgl2"))&&void 0!==e?e:A.getContext("webgl");if(i){var s=i.getContextAttributes();!1===(null==s?void 0:s.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}o.drawImage(A,0,0)}return r}catch(e){this.context.logger.info("Unable to clone canvas as it is tainted",A)}return r},A.prototype.createVideoClone=function(A){var e=A.ownerDocument.createElement("canvas");e.width=A.offsetWidth,e.height=A.offsetHeight;var t=e.getContext("2d");try{return t&&(t.drawImage(A,0,0,e.width,e.height),this.options.allowTaint||t.getImageData(0,0,e.width,e.height)),e}catch(e){this.context.logger.info("Unable to clone video as it is tainted",A)}var r=A.ownerDocument.createElement("canvas");return r.width=A.offsetWidth,r.height=A.offsetHeight,r},A.prototype.appendChildNode=function(A,e,t){In(e)&&("SCRIPT"===e.tagName||e.hasAttribute(ao)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(e))||this.options.copyStyles&&In(e)&&Rn(e)||A.appendChild(this.cloneNode(e,t))},A.prototype.cloneChildNodes=function(A,e,t){for(var r=this,n=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;n;n=n.nextSibling)if(In(n)&&jn(n)&&"function"==typeof n.assignedNodes){var o=n.assignedNodes();o.length&&o.forEach(function(A){return r.appendChildNode(e,A,t)})}else this.appendChildNode(e,n,t)},A.prototype.cloneNode=function(A,e){if(xn(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var t=A.ownerDocument.defaultView;if(t&&In(A)&&(Sn(A)||On(A))){var r=this.createElementClone(A);r.style.transitionProperty="none";var n=t.getComputedStyle(A),o=t.getComputedStyle(A,":before"),i=t.getComputedStyle(A,":after");this.referenceElement===A&&Sn(r)&&(this.clonedReferenceElement=r),Tn(r)&&Uo(r);var s=this.counters.parse(new mr(this.context,n)),a=this.resolvePseudoContent(A,r,o,_r.BEFORE);Xn(A)&&(e=!0),kn(A)||this.cloneChildNodes(A,r,e),a&&r.insertBefore(a,r.firstChild);var u=this.resolvePseudoContent(A,r,i,_r.AFTER);return u&&r.appendChild(u),this.counters.pop(s),(n&&(this.options.copyStyles||On(A))&&!Pn(A)||e)&&po(n,r),0===A.scrollTop&&0===A.scrollLeft||this.scrolledElements.push([r,A.scrollLeft,A.scrollTop]),(Gn(A)||Vn(A))&&(Gn(r)||Vn(r))&&(r.value=A.value),r}return A.cloneNode(!1)},A.prototype.resolvePseudoContent=function(A,e,t,r){var n=this;if(t){var o=t.content,i=e.ownerDocument;if(i&&o&&"none"!==o&&"-moz-alt-content"!==o&&"none"!==t.display){this.counters.parse(new mr(this.context,t));var s=new yr(this.context,t),a=i.createElement("html2canvaspseudoelement");po(t,a),s.content.forEach(function(e){if(0===e.type)a.appendChild(i.createTextNode(e.value));else if(22===e.type){var t=i.createElement("img");t.src=e.value,t.style.opacity="1",a.appendChild(t)}else if(18===e.type){if("attr"===e.name){var r=e.values.filter(XA);r.length&&a.appendChild(i.createTextNode(A.getAttribute(r[0].value)||""))}else if("counter"===e.name){var o=e.values.filter(ZA),u=o[0],c=o[1];if(u&&XA(u)){var l=n.counters.getCounterValue(u.value),f=c&&XA(c)?It.parse(n.context,c.value):3;a.appendChild(i.createTextNode(so(l,f,!1)))}}else if("counters"===e.name){var B=e.values.filter(ZA),d=(u=B[0],B[1]);if(c=B[2],u&&XA(u)){var h=n.counters.getCounterValues(u.value),g=c&&XA(c)?It.parse(n.context,c.value):3,p=d&&0===d.type?d.value:"",w=h.map(function(A){return so(A,g,!1)}).join(p);a.appendChild(i.createTextNode(w))}}}else if(20===e.type)switch(e.value){case"open-quote":a.appendChild(i.createTextNode(gr(s.quotes,n.quoteDepth++,!0)));break;case"close-quote":a.appendChild(i.createTextNode(gr(s.quotes,--n.quoteDepth,!1)));break;default:a.appendChild(i.createTextNode(e.value))}}),a.className=vo+" "+yo;var u=r===_r.BEFORE?" "+vo:" "+yo;return On(e)?e.className.baseValue+=u:e.className+=u,a}}},A.destroy=function(A){return!!A.parentNode&&(A.parentNode.removeChild(A),!0)},A}();!function(A){A[A.BEFORE=0]="BEFORE",A[A.AFTER=1]="AFTER"}(_r||(_r={}));var co,lo=function(A,e){var t=A.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute(ao,"true"),A.body.appendChild(t),t},fo=function(A){return new Promise(function(e){A.complete?e():A.src?(A.onload=e,A.onerror=e):e()})},Bo=function(A){return Promise.all([].slice.call(A.images,0).map(fo))},ho=function(A){return new Promise(function(e,t){var r=A.contentWindow;if(!r)return t("No window assigned for iframe");var n=r.document;r.onload=A.onload=function(){r.onload=A.onload=null;var t=setInterval(function(){n.body.childNodes.length>0&&"complete"===n.readyState&&(clearInterval(t),e(A))},50)}})},go=["all","d","content"],po=function(A,e){for(var t=A.length-1;t>=0;t--){var r=A.item(t);-1===go.indexOf(r)&&e.style.setProperty(r,A.getPropertyValue(r))}return e},wo=function(A){var e="";return A&&(e+=""),e},Qo=function(A,e,t){A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},Co=function(A){var e=A[0],t=A[1],r=A[2];e.scrollLeft=t,e.scrollTop=r},vo="___html2canvas___pseudoelement_before",yo="___html2canvas___pseudoelement_after",mo='{\n content: "" !important;\n display: none !important;\n}',Uo=function(A){Fo(A,"."+vo+":before"+mo+"\n ."+yo+":after"+mo)},Fo=function(A,e){var t=A.ownerDocument;if(t){var r=t.createElement("style");r.textContent=e,A.appendChild(r)}},bo=function(){function A(){}return A.getOrigin=function(e){var t=A._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},A.isSameOrigin=function(e){return A.getOrigin(e)===A._origin},A.setContext=function(e){A._link=e.document.createElement("a"),A._origin=A.getOrigin(e.location.href)},A._origin="about:blank",A}(),Eo=function(){function A(A,e){this.context=A,this._options=e,this._cache={}}return A.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)?e:Ko(A)||So(A)?((this._cache[A]=this.loadImage(A)).catch(function(){}),e):e},A.prototype.match=function(A){return this._cache[A]},A.prototype.loadImage=function(A){return r(this,void 0,void 0,function(){var e,t,r,o,i=this;return n(this,function(n){switch(n.label){case 0:return e=bo.isSameOrigin(A),t=!Oo(A)&&!0===this._options.useCORS&&Wr.SUPPORT_CORS_IMAGES&&!e,r=!Oo(A)&&!e&&!Ko(A)&&"string"==typeof this._options.proxy&&Wr.SUPPORT_CORS_XHR&&!t,e||!1!==this._options.allowTaint||Oo(A)||Ko(A)||r||t?(o=A,r?[4,this.proxy(o)]:[3,2]):[2];case 1:o=n.sent(),n.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(A,e){var r=new Image;r.onload=function(){return A(r)},r.onerror=e,(Lo(o)||t)&&(r.crossOrigin="anonymous"),r.src=o,!0===r.complete&&setTimeout(function(){return A(r)},500),i._options.imageTimeout>0&&setTimeout(function(){return e("Timed out ("+i._options.imageTimeout+"ms) loading image")},i._options.imageTimeout)})];case 3:return[2,n.sent()]}})})},A.prototype.has=function(A){return void 0!==this._cache[A]},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(A){var e=this,t=this._options.proxy;if(!t)throw new Error("No proxy defined");var r=A.substring(0,256);return new Promise(function(n,o){var i=Wr.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;s.onload=function(){if(200===s.status)if("text"===i)n(s.response);else{var A=new FileReader;A.addEventListener("load",function(){return n(A.result)},!1),A.addEventListener("error",function(A){return o(A)},!1),A.readAsDataURL(s.response)}else o("Failed to proxy resource "+r+" with status code "+s.status)},s.onerror=o;var a=t.indexOf("?")>-1?"&":"?";if(s.open("GET",""+t+a+"url="+encodeURIComponent(A)+"&responseType="+i),"text"!==i&&s instanceof XMLHttpRequest&&(s.responseType=i),e._options.imageTimeout){var u=e._options.imageTimeout;s.timeout=u,s.ontimeout=function(){return o("Timed out ("+u+"ms) proxying "+r)}}s.send()})},A}(),Ho=/^data:image\/svg\+xml/i,xo=/^data:image\/.*;base64,/i,Io=/^data:image\/.*/i,So=function(A){return Wr.SUPPORT_SVG_DRAWING||!_o(A)},Oo=function(A){return Io.test(A)},Lo=function(A){return xo.test(A)},Ko=function(A){return"blob"===A.substr(0,4)},_o=function(A){return"svg"===A.substr(-3).toLowerCase()||Ho.test(A)},Do=function(){function A(A,e){this.type=0,this.x=A,this.y=e}return A.prototype.add=function(e,t){return new A(this.x+e,this.y+t)},A}(),To=function(A,e,t){return new Do(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t)},Mo=function(){function A(A,e,t,r){this.type=1,this.start=A,this.startControl=e,this.endControl=t,this.end=r}return A.prototype.subdivide=function(e,t){var r=To(this.start,this.startControl,e),n=To(this.startControl,this.endControl,e),o=To(this.endControl,this.end,e),i=To(r,n,e),s=To(n,o,e),a=To(i,s,e);return t?new A(this.start,r,i,a):new A(a,s,o,this.end)},A.prototype.add=function(e,t){return new A(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A}(),ko=function(A){return 1===A.type},No=function(A){var e=A.styles,t=A.bounds,r=oe(e.borderTopLeftRadius,t.width,t.height),n=r[0],o=r[1],i=oe(e.borderTopRightRadius,t.width,t.height),s=i[0],a=i[1],u=oe(e.borderBottomRightRadius,t.width,t.height),c=u[0],l=u[1],f=oe(e.borderBottomLeftRadius,t.width,t.height),B=f[0],d=f[1],h=[];h.push((n+s)/t.width),h.push((B+c)/t.width),h.push((o+d)/t.height),h.push((a+l)/t.height);var g=Math.max.apply(Math,h);g>1&&(n/=g,o/=g,s/=g,a/=g,c/=g,l/=g,B/=g,d/=g);var p=t.width-s,w=t.height-l,Q=t.width-c,C=t.height-d,v=e.borderTopWidth,y=e.borderRightWidth,m=e.borderBottomWidth,U=e.borderLeftWidth,F=ie(e.paddingTop,A.bounds.width),b=ie(e.paddingRight,A.bounds.width),E=ie(e.paddingBottom,A.bounds.width),H=ie(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=n>0||o>0?Po(t.left+U/3,t.top+v/3,n-U/3,o-v/3,co.TOP_LEFT):new Do(t.left+U/3,t.top+v/3),this.topRightBorderDoubleOuterBox=n>0||o>0?Po(t.left+p,t.top+v/3,s-y/3,a-v/3,co.TOP_RIGHT):new Do(t.left+t.width-y/3,t.top+v/3),this.bottomRightBorderDoubleOuterBox=c>0||l>0?Po(t.left+Q,t.top+w,c-y/3,l-m/3,co.BOTTOM_RIGHT):new Do(t.left+t.width-y/3,t.top+t.height-m/3),this.bottomLeftBorderDoubleOuterBox=B>0||d>0?Po(t.left+U/3,t.top+C,B-U/3,d-m/3,co.BOTTOM_LEFT):new Do(t.left+U/3,t.top+t.height-m/3),this.topLeftBorderDoubleInnerBox=n>0||o>0?Po(t.left+2*U/3,t.top+2*v/3,n-2*U/3,o-2*v/3,co.TOP_LEFT):new Do(t.left+2*U/3,t.top+2*v/3),this.topRightBorderDoubleInnerBox=n>0||o>0?Po(t.left+p,t.top+2*v/3,s-2*y/3,a-2*v/3,co.TOP_RIGHT):new Do(t.left+t.width-2*y/3,t.top+2*v/3),this.bottomRightBorderDoubleInnerBox=c>0||l>0?Po(t.left+Q,t.top+w,c-2*y/3,l-2*m/3,co.BOTTOM_RIGHT):new Do(t.left+t.width-2*y/3,t.top+t.height-2*m/3),this.bottomLeftBorderDoubleInnerBox=B>0||d>0?Po(t.left+2*U/3,t.top+C,B-2*U/3,d-2*m/3,co.BOTTOM_LEFT):new Do(t.left+2*U/3,t.top+t.height-2*m/3),this.topLeftBorderStroke=n>0||o>0?Po(t.left+U/2,t.top+v/2,n-U/2,o-v/2,co.TOP_LEFT):new Do(t.left+U/2,t.top+v/2),this.topRightBorderStroke=n>0||o>0?Po(t.left+p,t.top+v/2,s-y/2,a-v/2,co.TOP_RIGHT):new Do(t.left+t.width-y/2,t.top+v/2),this.bottomRightBorderStroke=c>0||l>0?Po(t.left+Q,t.top+w,c-y/2,l-m/2,co.BOTTOM_RIGHT):new Do(t.left+t.width-y/2,t.top+t.height-m/2),this.bottomLeftBorderStroke=B>0||d>0?Po(t.left+U/2,t.top+C,B-U/2,d-m/2,co.BOTTOM_LEFT):new Do(t.left+U/2,t.top+t.height-m/2),this.topLeftBorderBox=n>0||o>0?Po(t.left,t.top,n,o,co.TOP_LEFT):new Do(t.left,t.top),this.topRightBorderBox=s>0||a>0?Po(t.left+p,t.top,s,a,co.TOP_RIGHT):new Do(t.left+t.width,t.top),this.bottomRightBorderBox=c>0||l>0?Po(t.left+Q,t.top+w,c,l,co.BOTTOM_RIGHT):new Do(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=B>0||d>0?Po(t.left,t.top+C,B,d,co.BOTTOM_LEFT):new Do(t.left,t.top+t.height),this.topLeftPaddingBox=n>0||o>0?Po(t.left+U,t.top+v,Math.max(0,n-U),Math.max(0,o-v),co.TOP_LEFT):new Do(t.left+U,t.top+v),this.topRightPaddingBox=s>0||a>0?Po(t.left+Math.min(p,t.width-y),t.top+v,p>t.width+y?0:Math.max(0,s-y),Math.max(0,a-v),co.TOP_RIGHT):new Do(t.left+t.width-y,t.top+v),this.bottomRightPaddingBox=c>0||l>0?Po(t.left+Math.min(Q,t.width-U),t.top+Math.min(w,t.height-m),Math.max(0,c-y),Math.max(0,l-m),co.BOTTOM_RIGHT):new Do(t.left+t.width-y,t.top+t.height-m),this.bottomLeftPaddingBox=B>0||d>0?Po(t.left+U,t.top+Math.min(C,t.height-m),Math.max(0,B-U),Math.max(0,d-m),co.BOTTOM_LEFT):new Do(t.left+U,t.top+t.height-m),this.topLeftContentBox=n>0||o>0?Po(t.left+U+H,t.top+v+F,Math.max(0,n-(U+H)),Math.max(0,o-(v+F)),co.TOP_LEFT):new Do(t.left+U+H,t.top+v+F),this.topRightContentBox=s>0||a>0?Po(t.left+Math.min(p,t.width+U+H),t.top+v+F,p>t.width+U+H?0:s-U+H,a-(v+F),co.TOP_RIGHT):new Do(t.left+t.width-(y+b),t.top+v+F),this.bottomRightContentBox=c>0||l>0?Po(t.left+Math.min(Q,t.width-(U+H)),t.top+Math.min(w,t.height+v+F),Math.max(0,c-(y+b)),l-(m+E),co.BOTTOM_RIGHT):new Do(t.left+t.width-(y+b),t.top+t.height-(m+E)),this.bottomLeftContentBox=B>0||d>0?Po(t.left+U+H,t.top+C,Math.max(0,B-(U+H)),d-(m+E),co.BOTTOM_LEFT):new Do(t.left+U+H,t.top+t.height-(m+E))};!function(A){A[A.TOP_LEFT=0]="TOP_LEFT",A[A.TOP_RIGHT=1]="TOP_RIGHT",A[A.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",A[A.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(co||(co={}));var Po=function(A,e,t,r,n){var o=(Math.sqrt(2)-1)/3*4,i=t*o,s=r*o,a=A+t,u=e+r;switch(n){case co.TOP_LEFT:return new Mo(new Do(A,u),new Do(A,u-s),new Do(a-i,e),new Do(a,e));case co.TOP_RIGHT:return new Mo(new Do(A,e),new Do(A+i,e),new Do(a,u-s),new Do(a,u));case co.BOTTOM_RIGHT:return new Mo(new Do(a,e),new Do(a,e+s),new Do(A+i,u),new Do(A,u));case co.BOTTOM_LEFT:default:return new Mo(new Do(a,u),new Do(a-i,u),new Do(A,e+s),new Do(A,e))}},Ro=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},Go=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},Vo=function(A,e,t){this.offsetX=A,this.offsetY=e,this.matrix=t,this.type=0,this.target=6},jo=function(A,e){this.path=A,this.target=e,this.type=1},Xo=function(A){this.opacity=A,this.type=2,this.target=6},Jo=function(A){return 1===A.type},Yo=function(A,e){return A.length===e.length&&A.some(function(A,t){return A===e[t]})},Wo=function(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},Zo=function(){function A(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new No(this.container),this.container.styles.opacity<1&&this.effects.push(new Xo(this.container.styles.opacity)),null!==this.container.styles.transform){var t=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,n=this.container.styles.transform;this.effects.push(new Vo(t,r,n))}if(0!==this.container.styles.overflowX){var o=Ro(this.curves),i=Go(this.curves);Yo(o,i)?this.effects.push(new jo(o,6)):(this.effects.push(new jo(o,2)),this.effects.push(new jo(i,4)))}}return A.prototype.getEffects=function(A){for(var e=-1===[2,3].indexOf(this.container.styles.position),t=this.parent,r=this.effects.slice(0);t;){var n=t.effects.filter(function(A){return!Jo(A)});if(e||0!==t.container.styles.position||!t.parent){if(r.unshift.apply(r,n),e=-1===[2,3].indexOf(t.container.styles.position),0!==t.container.styles.overflowX){var o=Ro(t.curves),i=Go(t.curves);Yo(o,i)||r.unshift(new jo(i,6))}}else r.unshift.apply(r,n);t=t.parent}return r.filter(function(e){return cr(e.target,A)})},A}(),zo=function(A,e,t,r){A.container.elements.forEach(function(n){var o=cr(n.flags,4),i=cr(n.flags,2),s=new Zo(n,A);cr(n.styles.display,2048)&&r.push(s);var a=cr(n.flags,8)?[]:r;if(o||i){var u=o||n.styles.isPositioned()?t:e,c=new Wo(s);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var l=n.styles.zIndex.order;if(l<0){var f=0;u.negativeZIndex.some(function(A,e){return l>A.element.container.styles.zIndex.order?(f=e,!1):f>0}),u.negativeZIndex.splice(f,0,c)}else if(l>0){var B=0;u.positiveZIndex.some(function(A,e){return l>=A.element.container.styles.zIndex.order?(B=e+1,!1):B>0}),u.positiveZIndex.splice(B,0,c)}else u.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else n.styles.isFloating()?u.nonPositionedFloats.push(c):u.nonPositionedInlineLevel.push(c);zo(s,c,o?c:t,a)}else n.styles.isInlineLevel()?e.inlineLevel.push(s):e.nonInlineLevel.push(s),zo(s,e,t,a);cr(n.flags,8)&&qo(n,a)})},qo=function(A,e){for(var t=A instanceof fn?A.start:1,r=A instanceof fn&&A.reversed,n=0;n0&&A.intrinsicHeight>0){var r=ri(A),n=Go(e);this.path(n),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(t,0,0,A.intrinsicWidth,A.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(A){return r(this,void 0,void 0,function(){var e,r,o,i,a,u,c,l,f,B,d,h,g,p,w,Q,C,v;return n(this,function(n){switch(n.label){case 0:this.applyEffects(A.getEffects(4)),e=A.container,r=A.curves,o=e.styles,i=0,a=e.textNodes,n.label=1;case 1:return i0&&U>0&&(w=r.ctx.createPattern(h,"repeat"),r.renderRepeat(C,w,b,E))):function(A){return 2===A.type}(t)&&(Q=ni(A,e,[null,null,null]),C=Q[0],v=Q[1],y=Q[2],m=Q[3],U=Q[4],F=0===t.position.length?[re]:t.position,b=ie(F[0],m),E=ie(F[F.length-1],U),H=function(A,e,t,r,n){var o=0,i=0;switch(A.size){case 0:0===A.shape?o=i=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-n)):1===A.shape&&(o=Math.min(Math.abs(e),Math.abs(e-r)),i=Math.min(Math.abs(t),Math.abs(t-n)));break;case 2:if(0===A.shape)o=i=Math.min(Ie(e,t),Ie(e,t-n),Ie(e-r,t),Ie(e-r,t-n));else if(1===A.shape){var s=Math.min(Math.abs(t),Math.abs(t-n))/Math.min(Math.abs(e),Math.abs(e-r)),a=Se(r,n,e,t,!0),u=a[0],c=a[1];i=s*(o=Ie(u-e,(c-t)/s))}break;case 1:0===A.shape?o=i=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-n)):1===A.shape&&(o=Math.max(Math.abs(e),Math.abs(e-r)),i=Math.max(Math.abs(t),Math.abs(t-n)));break;case 3:if(0===A.shape)o=i=Math.max(Ie(e,t),Ie(e,t-n),Ie(e-r,t),Ie(e-r,t-n));else if(1===A.shape){s=Math.max(Math.abs(t),Math.abs(t-n))/Math.max(Math.abs(e),Math.abs(e-r));var l=Se(r,n,e,t,!1);u=l[0],c=l[1],i=s*(o=Ie(u-e,(c-t)/s))}}return Array.isArray(A.size)&&(o=ie(A.size[0],r),i=2===A.size.length?ie(A.size[1],n):o),[o,i]}(t,b,E,m,U),x=H[0],I=H[1],x>0&&I>0&&(S=r.ctx.createRadialGradient(v+b,y+E,0,v+b,y+E,x),He(t.stops,2*x).forEach(function(A){return S.addColorStop(A.stop,he(A.color))}),r.path(C),r.ctx.fillStyle=S,x!==I?(O=A.bounds.left+.5*A.bounds.width,L=A.bounds.top+.5*A.bounds.height,_=1/(K=I/x),r.ctx.save(),r.ctx.translate(O,L),r.ctx.transform(1,0,0,K,0,0),r.ctx.translate(-O,-L),r.ctx.fillRect(v,_*(y-L)+L,m,U*_),r.ctx.restore()):r.ctx.fill())),n.label=6;case 6:return e--,[2]}})},r=this,o=0,i=A.styles.backgroundImage.slice(0).reverse(),a.label=1;case 1:return o0?2!==u.style?[3,5]:[4,this.renderDashedDottedBorder(u.color,u.width,i,A.curves,2)]:[3,11]:[3,13];case 4:return n.sent(),[3,11];case 5:return 3!==u.style?[3,7]:[4,this.renderDashedDottedBorder(u.color,u.width,i,A.curves,3)];case 6:return n.sent(),[3,11];case 7:return 4!==u.style?[3,9]:[4,this.renderDoubleBorder(u.color,u.width,i,A.curves)];case 8:return n.sent(),[3,11];case 9:return[4,this.renderSolidBorder(u.color,i,A.curves)];case 10:n.sent(),n.label=11;case 11:i++,n.label=12;case 12:return s++,[3,3];case 13:return[2]}})})},t.prototype.renderDashedDottedBorder=function(A,e,t,o,i){return r(this,void 0,void 0,function(){var r,s,a,u,c,l,f,B,d,h,g,p,w,Q,C,v;return n(this,function(n){return this.ctx.save(),r=function(A,e){switch(e){case 0:return Ai(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return Ai(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return Ai(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);default:return Ai(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}}(o,t),s=$o(o,t),2===i&&(this.path(s),this.ctx.clip()),ko(s[0])?(a=s[0].start.x,u=s[0].start.y):(a=s[0].x,u=s[0].y),ko(s[1])?(c=s[1].end.x,l=s[1].end.y):(c=s[1].x,l=s[1].y),f=0===t||2===t?Math.abs(a-c):Math.abs(u-l),this.ctx.beginPath(),3===i?this.formatPath(r):this.formatPath(s.slice(0,2)),B=e<3?3*e:2*e,d=e<3?2*e:e,3===i&&(B=e,d=e),h=!0,f<=2*B?h=!1:f<=2*B+d?(B*=g=f/(2*B+d),d*=g):(p=Math.floor((f+d)/(B+d)),w=(f-p*B)/(p-1),d=(Q=(f-(p+1)*B)/p)<=0||Math.abs(d-w)1&&void 0!==arguments[1]?arguments[1]:{},t=e.prototype,a=void 0===t||t,u=e.unenumerable,c=void 0!==u&&u,l=e.symbol,f=void 0!==l&&l,B=[];if((c||f)&&i){var d=r;c&&i&&(d=i);do{B=B.concat(d(A)),f&&s&&(B=B.concat(s(A)))}while(a&&(A=n(A))&&A!==Object.prototype);B=o(B)}else if(a)for(var h in A)B.push(h);else B=r(A);return B},A.exports=e},633:function(A,e,t){"use strict";var r=t(3034),n=t(4110),o=TypeError;A.exports=function(A){if(r(A))return A;throw new o(n(A)+" is not a constructor")}},674:function(A,e,t){var r=t(8958);e=function(A,e){A.prototype=r(e.prototype)},A.exports=e},743:function(A,e,t){"use strict";var r=t(8657),n=t(8589),o=t(1528),i=t(4517),s=t(2918),a=t(2934),u=t(6721),c=t(5225),l=t(5640),f=t(6084),B=t(7445),d=t(7966).fastKey,h=t(86),g=h.set,p=h.getterFor;A.exports={getConstructor:function(A,e,t,c){var l=A(function(A,n){s(A,f),g(A,{type:e,index:r(null),first:null,last:null,size:0}),B||(A.size=0),a(n)||u(n,A[c],{that:A,AS_ENTRIES:t})}),f=l.prototype,h=p(e),w=function(A,e,t){var r,n,o=h(A),i=Q(A,e);return i?i.value=t:(o.last=i={index:n=d(e,!0),key:e,value:t,previous:r=o.last,next:null,removed:!1},o.first||(o.first=i),r&&(r.next=i),B?o.size++:A.size++,"F"!==n&&(o.index[n]=i)),A},Q=function(A,e){var t,r=h(A),n=d(e);if("F"!==n)return r.index[n];for(t=r.first;t;t=t.next)if(t.key===e)return t};return o(f,{clear:function(){for(var A=h(this),e=A.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=null),e=e.next;A.first=A.last=null,A.index=r(null),B?A.size=0:this.size=0},delete:function(A){var e=this,t=h(e),r=Q(e,A);if(r){var n=r.next,o=r.previous;delete t.index[r.index],r.removed=!0,o&&(o.next=n),n&&(n.previous=o),t.first===r&&(t.first=n),t.last===r&&(t.last=o),B?t.size--:e.size--}return!!r},forEach:function(A){for(var e,t=h(this),r=i(A,arguments.length>1?arguments[1]:void 0);e=e?e.next:t.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(A){return!!Q(this,A)}}),o(f,t?{get:function(A){var e=Q(this,A);return e&&e.value},set:function(A,e){return w(this,0===A?0:A,e)}}:{add:function(A){return w(this,A=0===A?0:A,A)}}),B&&n(f,"size",{configurable:!0,get:function(){return h(this).size}}),l},setStrong:function(A,e,t){var r=e+" Iterator",n=p(e),o=p(r);c(A,e,function(A,e){g(this,{type:r,target:A,state:n(A),kind:e,last:null})},function(){for(var A=o(this),e=A.kind,t=A.last;t&&t.removed;)t=t.previous;return A.target&&(A.last=t=t?t.next:A.state.first)?l("keys"===e?t.key:"values"===e?t.value:[t.key,t.value],!1):(A.target=null,l(void 0,!0))},t?"entries":"values",!t,!0),f(e)}}},764:function(A,e){e=Date.now?Date.now:function(){return(new Date).getTime()},A.exports=e},835:function(A,e){e=function(){var A=Error.prepareStackTrace;Error.prepareStackTrace=function(A,e){return e};var e=(new Error).stack.slice(1);return Error.prepareStackTrace=A,e},A.exports=e},858:function(A,e,t){"use strict";var r,n,o,i,s=t(8565),a=t(286),u=t(4517),c=t(2756),l=t(9274),f=t(3930),B=t(3482),d=t(7689),h=t(4350),g=t(6301),p=t(5139),w=t(8716),Q=s.setImmediate,C=s.clearImmediate,v=s.process,y=s.Dispatch,m=s.Function,U=s.MessageChannel,F=s.String,b=0,E={},H="onreadystatechange";f(function(){r=s.location});var x=function(A){if(l(E,A)){var e=E[A];delete E[A],e()}},I=function(A){return function(){x(A)}},S=function(A){x(A.data)},O=function(A){s.postMessage(F(A),r.protocol+"//"+r.host)};Q&&C||(Q=function(A){g(arguments.length,1);var e=c(A)?A:m(A),t=d(arguments,1);return E[++b]=function(){a(e,void 0,t)},n(b),b},C=function(A){delete E[A]},w?n=function(A){v.nextTick(I(A))}:y&&y.now?n=function(A){y.now(I(A))}:U&&!p?(i=(o=new U).port2,o.port1.onmessage=S,n=u(i.postMessage,i)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!f(O)?(n=O,s.addEventListener("message",S,!1)):n=H in h("script")?function(A){B.appendChild(h("script"))[H]=function(){B.removeChild(this),x(A)}}:function(A){setTimeout(I(A),0)}),A.exports={set:Q,clear:C}},893:function(A,e,t){"use strict";var r=this&&this.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(e,"__esModule",{value:!0}),e.setGlobal=function(A,e){c[A]=e},e.evalJs=function(A){var e;l();try{e=eval.call(window,"(".concat(A,")"))}catch(t){e=eval.call(window,A)}return f(),e},e.evalJsAsync=function(A){var e;l();try{e=eval.call(window,"(async () => (".concat(A,"))()"))}catch(t){e=eval.call(window,"(async () => {".concat(A,"})()"))}return f(),e};var n=r(t(3095)),o=r(t(1611)),i=r(t(5324)),s=r(t(6190)),a=r(t(3527)),u=r(t(6375)),c={copy:function(A){(0,n.default)(A)||(A=JSON.stringify(A,null,2)),(0,o.default)(A)},$:function(A){return document.querySelector(A)},$$:function(A){return(0,i.default)(document.querySelectorAll(A))},$x:function(A){return(0,a.default)(A)},keys:s.default};function l(){(0,u.default)(c,function(A,e){window[e]||(window[e]=A)})}function f(){(0,u.default)(c,function(A,e){window[e]&&window[e]===A&&delete window[e]})}},919:function(A,e){e=function(A){var e,r,n,o=A[0]/360,i=A[1]/100,s=A[2]/100,a=[];if(A[3]&&(a[3]=A[3]),0===i)return n=t(255*s),a[0]=a[1]=a[2]=n,a;for(var u=2*s-(e=s<.5?s*(1+i):s+i-s*i),c=0;c<3;c++)(r=o+1/3*-(c-1))<0&&r++,r>1&&r--,n=6*r<1?u+6*(e-u)*r:2*r<1?e:3*r<2?u+(e-u)*(2/3-r)*6:u,a[c]=t(255*n);return a};var t=Math.round;A.exports=e},921:function(A,e,t){"use strict";var r=t(1337),n=t(1129);A.exports=function(A,e,t){try{return r(n(Object.getOwnPropertyDescriptor(A,e)[t]))}catch(A){}}},924:function(A,e,t){var r=t(6748),n=t(3008),o=t(4866),i=t(6741),s={path:"/"};function a(A,t,a){if(!o(t)){if(a=r(a=a||{},s),n(a.expires)){var u=new Date;u.setMilliseconds(u.getMilliseconds()+864e5*a.expires),a.expires=u}return t=encodeURIComponent(t),A=encodeURIComponent(A),document.cookie=[A,"=",t,a.expires&&"; expires="+a.expires.toUTCString(),a.path&&"; path="+a.path,a.domain&&"; domain="+a.domain,a.secure?"; secure":""].join(""),e}for(var c=document.cookie?document.cookie.split("; "):[],l=A?void 0:{},f=0,B=c.length;f=0)return;i[e]="set-cookie"===e?(i[e]?i[e]:[]).concat([t]):i[e]?i[e]+", "+t:t}}),i):i}},1019:function(A,e,t){var r=t(3993);e=function(A){switch(r(A)){case"[object Error]":case"[object DOMException]":return!0;default:return A instanceof Error}},A.exports=e},1049:function(A,e,t){"use strict";function r(A){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},r(A)}var n=t(5336);A.exports=n&&!Symbol.sham&&"symbol"==r(Symbol.iterator)},1090:function(A,e,t){var r=t(5672),n=t(2289);e=function(A){return A=r({},A),function(e){return n(e,A)}},A.exports=e},1129:function(A,e,t){"use strict";var r=t(2756),n=t(4110),o=TypeError;A.exports=function(A){if(r(A))return A;throw new o(n(A)+" is not a function")}},1134:function(A,e,t){"use strict";t(4210);var r=t(3896);A.exports=r.Object.assign},1139:function(A,e,t){"use strict";var r=t(6840);A.exports=function(A,e,t){var n=t.config.validateStatus;t.status&&n&&!n(t.status)?e(new r("Request failed with status code "+t.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t)):A(t)}},1141:function(A,e,t){"use strict";var r,n=this&&this.__extends||(r=function(A,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t])},r(A,e)},function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=A}r(A,e),A.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}),o=this&&this.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(e,"__esModule",{value:!0}),e.FetchRequest=e.XhrRequest=void 0,e.fullUrl=U;var i=o(t(9270)),s=o(t(3095)),a=o(t(8330)),u=o(t(8985)),c=o(t(9057)),l=o(t(8714)),f=o(t(764)),B=o(t(6375)),d=o(t(36)),h=o(t(5875)),g=t(9974),p=function(A){function e(e,t,r){var n=A.call(this)||this;return n.xhr=e,n.reqHeaders={},n.method=t,n.url=U(r),n.id=(0,g.createId)(),e.addEventListener("readystatechange",function(){2===e.readyState?n.handleHeadersReceived():4===e.readyState&&(0===e.status?n.handleError():n.handleDone())}),n}return n(e,A),e.prototype.toJSON=function(){return{method:this.method,url:this.url,id:this.id}},e.prototype.handleSend=function(A){(0,s.default)(A)||(A=""),A={name:F(this.url),url:this.url,data:A,time:(0,f.default)(),reqHeaders:this.reqHeaders,method:this.method},(0,c.default)(this.reqHeaders)||(A.reqHeaders=this.reqHeaders),this.emit("send",this.id,A)},e.prototype.handleReqHeadersSet=function(A,e){A&&e&&(this.reqHeaders[A]=e)},e.prototype.handleHeadersReceived=function(){var A=this.xhr,e=b(A.getResponseHeader("Content-Type")||"");this.emit("headersReceived",this.id,{type:e.type,subType:e.subType,size:y(A,!0,this.url),time:(0,f.default)(),resHeaders:v(A)})},e.prototype.handleDone=function(){var A,e,t,r=this,n=this.xhr,o=n.responseType,i="",s=function(){r.emit("done",r.id,{status:n.status,size:y(n,!1,r.url),time:(0,f.default)(),resTxt:i})},a=b(n.getResponseHeader("Content-Type")||"");"blob"!==o||"text"!==a.type&&"javascript"!==a.subType&&"json"!==a.subType?(""!==o&&"text"!==o||(i=n.responseText),"json"===o&&(i=JSON.stringify(n.response)),s()):(A=n.response,e=function(A,e){e&&(i=e),s()},(t=new FileReader).onload=function(){e(null,t.result)},t.onerror=function(A){e(A)},t.readAsText(A))},e.prototype.handleError=function(){this.emit("error",this.id,{errorText:"Network error",time:(0,f.default)()})},e}(i.default);e.XhrRequest=p;var w=function(A){function e(e,t){void 0===t&&(t={});var r=A.call(this)||this,n=e instanceof window.Request,o=n?e.url:e;return r.url=U(o),r.id=(0,g.createId)(),r.options=t,r.reqHeaders=t.headers||(n?e.headers:{}),r.method=t.method||(n?e.method:"GET"),r}return n(e,A),e.prototype.send=function(A){var e=this,t=this.options,r=(0,s.default)(t.body)?t.body:"";this.emit("send",this.id,{name:F(this.url),url:this.url,data:r,reqHeaders:this.reqHeaders,time:(0,f.default)(),method:this.method}),A.then(function(A){var t=b((A=A.clone()).headers.get("Content-Type"));return A.text().then(function(r){var n={type:t.type,subType:t.subType,time:(0,f.default)(),size:Q(A,r),resTxt:r,resHeaders:C(A),status:A.status};(0,c.default)(e.reqHeaders)||(n.reqHeaders=e.reqHeaders),e.emit("done",e.id,n)}),A}).catch(function(A){e.emit("error",e.id,{errorText:A.message,time:(0,f.default)()})})},e}(i.default);function Q(A,e){var t=A.headers.get("Content-length");return t?(0,h.default)(t):H(e)}function C(A){var e={};return A.headers.forEach(function(A,t){return e[t]=A}),e}function v(A){var e=A.getAllResponseHeaders().split("\n"),t={};return(0,B.default)(e,function(A){if(""!==(A=(0,l.default)(A))){var e=A.split(":",2),r=e[0],n=e[1];t[r]=(0,l.default)(n)}}),t}function y(A,e,t){var r=0;function n(){if(!e){var t=A.responseType,n="";""!==t&&"text"!==t||(n=A.responseText),n&&(r=H(n))}}if(function(A){return!(0,d.default)(A,E)}(t))n();else try{r=(0,h.default)(A.getResponseHeader("Content-Length"))}catch(A){n()}return 0===r&&n(),r}e.FetchRequest=w;var m=document.createElement("a");function U(A){return m.href=A,m.protocol+"//"+m.host+m.pathname+m.search+m.hash}function F(A){var e=(0,a.default)(A.split("/"));(e.indexOf("?")>-1&&(e=(0,l.default)(e.split("?")[0])),""===e)&&(e=new u.default(A).hostname);return e}function b(A){if(!A)return{type:"unknown",subType:"unknown"};var e=A.split(";")[0].split("/");return{type:e[0],subType:(0,a.default)(e)}}var E=window.location.origin;function H(A){var e=encodeURIComponent(A).match(/%[89ABab]/g);return A.length+(e?e.length:0)}},1177:function(A,e,t){"use strict";var r={};r[t(226)("toStringTag")]="z",A.exports="[object z]"===String(r)},1207:function(A,e){e=function(A){for(var e=5381,t=A.length;t;)e=(e<<5)+e+A.charCodeAt(--t);return e>>>0},A.exports=e},1255:function(A,e,t){"use strict";var r=t(7445),n=t(9274),o=Function.prototype,i=r&&Object.getOwnPropertyDescriptor,s=n(o,"name"),a=s&&"something"===function(){}.name,u=s&&(!r||r&&i(o,"name").configurable);A.exports={EXISTS:s,PROPER:a,CONFIGURABLE:u}},1273:function(A,e,t){"use strict";var r=t(1337),n=r({}.toString),o=r("".slice);A.exports=function(A){return o(n(A),8,-1)}},1335:function(A,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.requestCacheNames=function(){return{caches:[]}}},1337:function(A,e,t){"use strict";var r=t(3223),n=Function.prototype,o=n.call,i=r&&n.bind.bind(o,o);A.exports=r?i:function(A){return function(){return o.apply(A,arguments)}}},1392:function(A,e,t){var r=t(3008),n=t(6974),o=Math.pow(2,53)-1;e=function(A){if(!A)return!1;var e=A.length;return r(e)&&e>=0&&e<=o&&!n(A)},A.exports=e},1394:function(A,e,t){var r=t(189),n=t(4866),o=t(1603),i=t(6375);function s(A){return function(e,t,s,a){e=o(e),n(a)&&(a=s,s=void 0),i(e,function(e){r[A](e,t,s,a)})}}e={on:s("add"),off:s("remove")},A.exports=e},1442:function(A,e,t){"use strict";var r=this&&this.__values||function(A){var e="function"==typeof Symbol&&Symbol.iterator,t=e&&A[e],r=0;if(t)return t.call(A);if(A&&"number"==typeof A.length)return{next:function(){return A&&r>=A.length&&(A=void 0),{value:A&&A[r++],done:!A}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},n=this&&this.__read||function(A,e){var t="function"==typeof Symbol&&A[Symbol.iterator];if(!t)return A;var r,n,o=t.call(A),i=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(A){n={error:A}}finally{try{r&&!r.done&&(t=o.return)&&t.call(o)}finally{if(n)throw n.error}}return i},o=this&&this.__spreadArray||function(A,e,t){if(t||2===arguments.length)for(var r,n=0,o=e.length;n0&&n[n.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]0?n(e,9007199254740991):0}},2098:function(A){"use strict";A.exports=function(A){try{return{error:!1,value:A()}}catch(A){return{error:!0,value:A}}}},2112:function(A,e,t){var r=t(6190);e={getItem:function(A){return(o[A]?n[A]:this[A])||null},setItem:function(A,e){o[A]?n[A]=e:this[A]=e},removeItem:function(A){o[A]?delete n[A]:delete this[A]},key:function(A){var e=i();return A>=0&&As)return 1;if(i-1&&this._listeners.splice(e,1)},rmAllListeners:function(){this._listeners=[]},emit:function(){var A=this,e=i(arguments),t=n(this._listeners);o(t,function(t){return t.apply(A,e)},this)}},{mixin:function(A){o(["addListener","rmListener","emit","rmAllListeners"],function(t){A[t]=e.prototype[t]}),A._listeners=A._listeners||[]}}),A.exports=e},2415:function(A,e,t){"use strict";t.r(e),t.d(e,{default:function(){return p}});var r={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},n=/([astvzqmhlc])([^astvzqmhlc]*)/gi,o=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;var i=function(A){var e=[],t=String(A).trim();return"M"!==t[0]&&"m"!==t[0]||t.replace(n,function(A,t,n){var i=t.toLowerCase(),s=function(A){var e=A.match(o);return e?e.map(Number):[]}(n),a=t;if("m"===i&&s.length>2&&(e.push([a].concat(s.splice(0,2))),i="l",a="m"===a?"l":"L"),s.length=r[i]&&s.length&&r[i];)e.push([a].concat(s.splice(0,r[i])));return""}),e};function s(A,e){for(var t=0;tA.length)&&(e=A.length);for(var t=0,r=new Array(e);t1&&(C*=u=Math.sqrt(u),v*=u),c=C*C*v*v,d=C*C*s.y*s.y+v*v*s.x*s.x,B(F={x:C*s.y/v,y:-v*s.x/C},o!==n?Math.sqrt((c-d)/d)||0:-Math.sqrt((c-d)/d)||0),r=Math.atan2((s.y-F.y)/v,(s.x-F.x)/C),t=Math.atan2(-(s.y+F.y)/v,-(s.x+F.x)/C),l(F,a),f(F,(i.x+O.x)/2,(i.y+O.y)/2),A.save(),A.translate(F.x,F.y),A.rotate(a),A.scale(C,v),A.arc(0,0,1,r,t,!o),A.restore();break;case"C":b=K[3],E=K[4],h=K[5],p=K[6],A.bezierCurveTo(K[1],K[2],b,E,h,p);break;case"c":A.bezierCurveTo(K[1]+h,K[2]+p,K[3]+h,K[4]+p,K[5]+h,K[6]+p),b=K[3]+h,E=K[4]+p,h+=K[5],p+=K[6];break;case"S":null!==b&&null!==E||(b=h,E=p),A.bezierCurveTo(2*h-b,2*p-E,K[1],K[2],K[3],K[4]),b=K[1],E=K[2],h=K[3],p=K[4];break;case"s":null!==b&&null!==E||(b=h,E=p),A.bezierCurveTo(2*h-b,2*p-E,K[1]+h,K[2]+p,K[3]+h,K[4]+p),b=K[1]+h,E=K[2]+p,h+=K[3],p+=K[4];break;case"Q":H=K[1],x=K[2],h=K[3],p=K[4],A.quadraticCurveTo(H,x,h,p);break;case"q":H=K[1]+h,x=K[2]+p,h+=K[3],p+=K[4],A.quadraticCurveTo(H,x,h,p);break;case"T":null!==H&&null!==x||(H=h,x=p),H=2*h-H,x=2*p-x,h=K[1],p=K[2],A.quadraticCurveTo(H,x,h,p);break;case"t":null!==H&&null!==x||(H=h,x=p),H=2*h-H,x=2*p-x,h+=K[1],p+=K[2],A.quadraticCurveTo(H,x,h,p);break;case"z":case"Z":h=S.x,p=S.y,S=void 0,A.closePath();break;case"AC":h=K[1],p=K[2],Q=K[3],r=K[4],t=K[5],I=K[6],A.arc(h,p,Q,r,t,I);break;case"AT":g=K[1],w=K[2],h=K[3],p=K[4],Q=K[5],A.arcTo(g,w,h,p,Q);break;case"E":h=K[1],p=K[2],C=K[3],v=K[4],a=K[5],r=K[6],t=K[7],I=K[8],A.save(),A.translate(h,p),A.rotate(a),A.scale(C,v),A.arc(0,0,1,r,t,I),A.restore();break;case"R":h=K[1],p=K[2],y=K[3],m=K[4],S={x:h,y:p},A.rect(h,p,y,m)}O.x=h,O.y=p}}},h=i,g=d;"undefined"!=typeof window&&g(window);var p={path2dPolyfill:g,parsePath:h}},2439:function(A,e,t){"use strict";var r=t(5136),n=t(2756),o=t(5607),i=TypeError;A.exports=function(A,e){var t,s;if("string"===e&&n(t=A.toString)&&!o(s=r(t,A)))return s;if(n(t=A.valueOf)&&!o(s=r(t,A)))return s;if("string"!==e&&n(t=A.toString)&&!o(s=r(t,A)))return s;throw new i("Can't convert object to primitive value")}},2453:function(A,e,t){var r=t(6375),n=t(1603),o=t(3095);function i(A){return function(e,t){e=n(e),r(e,function(e){if(o(t))e.insertAdjacentHTML(A,t);else{var r=e.parentNode;switch(A){case"beforebegin":r&&r.insertBefore(t,e);break;case"afterend":r&&r.insertBefore(t,e.nextSibling);break;case"beforeend":e.appendChild(t);break;case"afterbegin":e.prepend(t)}}})}}e={before:i("beforebegin"),after:i("afterend"),append:i("beforeend"),prepend:i("afterbegin")},A.exports=e},2528:function(A,e,t){"use strict";var r=t(8313);A.exports=function(A,e){e=e||{};var t={};function n(A,e){return r.isPlainObject(A)&&r.isPlainObject(e)?r.merge(A,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function o(t){return r.isUndefined(e[t])?r.isUndefined(A[t])?void 0:n(void 0,A[t]):n(A[t],e[t])}function i(A){if(!r.isUndefined(e[A]))return n(void 0,e[A])}function s(t){return r.isUndefined(e[t])?r.isUndefined(A[t])?void 0:n(void 0,A[t]):n(void 0,e[t])}function a(t){return t in e?n(A[t],e[t]):t in A?n(void 0,A[t]):void 0}var u={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a};return r.forEach(Object.keys(A).concat(Object.keys(e)),function(A){var e=u[A]||o,n=e(A);r.isUndefined(n)&&e!==a||(t[A]=n)}),t}},2583:function(A,e){e=function(A){var e,o,i=A[0]/255,s=A[1]/255,a=A[2]/255,u=t(i,s,a),c=r(i,s,a),l=c-u;(e=t(60*(e=c===u?0:i===c?(s-a)/l:s===c?2+(a-i)/l:4+(i-s)/l),360))<0&&(e+=360);var f=(u+c)/2;o=c===u?0:f<=.5?l/(c+u):l/(2-c-u);var B=[n(e),n(100*o),n(100*f)];return A[3]&&(B[3]=A[3]),B};var t=Math.min,r=Math.max,n=Math.round;A.exports=e},2586:function(A){A.exports={version:"0.27.2"}},2593:function(A,e,t){var r=t(9812),n=t(1822),o=t(6190);e=function(A){var e=u(A=(A=A||(r?navigator.userAgent:"")).toLowerCase(),"msie ");if(e)return{version:e,name:"ie"};if(s.test(A))return{version:11,name:"ie"};for(var t=0,o=a.length;t-1)return n(A.substring(t+e.length,A.indexOf(".",t)))}A.exports=e},2609:function(A,e){e=function(A,e){var t;return function(){return--A>0&&(t=e.apply(this,arguments)),A<=1&&(e=null),t}},A.exports=e},2615:function(A,e,t){var r=t(3993);e=Array.isArray?Array.isArray:function(A){return"[object Array]"===r(A)},A.exports=e},2647:function(A,e,t){var r=t(2615),n=t(9411);e=function(A){return r(A)?function(e){return n(e,A)}:(e=A,function(A){return null==A?void 0:A[e]});var e},A.exports=e},2690:function(A,e,t){"use strict";var r=t(8149),n=t(8565),o=t(286),i=t(7689),s=t(236),a=t(1129),u=t(2098),c=n.Promise,l=!1;r({target:"Promise",stat:!0,forced:!c||!c.try||u(function(){c.try(function(A){l=8===A},8)}).error||!l},{try:function(A){var e=arguments.length>1?i(arguments,1):[],t=s.f(this),r=u(function(){return o(a(A),void 0,e)});return(r.error?t.reject:t.resolve)(r.value),t.promise}})},2715:function(A,e,t){"use strict";var r=t(5394),n=t(5607),o=t(236);A.exports=function(A,e){if(r(A),n(e)&&e.constructor===A)return e;var t=o.f(A);return(0,t.resolve)(e),t.promise}},2733:function(A,e,t){"use strict";var r,n=this&&this.__createBinding||(Object.create?function(A,e,t,r){void 0===r&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);n&&!("get"in n?!e.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(A,r,n)}:function(A,e,t,r){void 0===r&&(r=t),A[r]=e[t]}),o=this&&this.__setModuleDefault||(Object.create?function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e})}:function(A,e){A.default=e}),i=this&&this.__importStar||(r=function(A){return r=Object.getOwnPropertyNames||function(A){var e=[];for(var t in A)Object.prototype.hasOwnProperty.call(A,t)&&(e[e.length]=t);return e},r(A)},function(A){if(A&&A.__esModule)return A;var e={};if(null!=A)for(var t=r(A),i=0;i0&&n[n.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]=o&&t.push({key:d.wrap(e.key,{generatePreview:!0}),primaryKey:d.wrap(e.primaryKey),value:d.wrap(e.value,{generatePreview:!0})}),e.continue(),c++):A({hasMore:c=t.length?s(void 0,!0):(A=r(t,n),e.index+=A.length,s(A,!1))})},3095:function(A,e,t){var r=t(3993);e=function(A){return"[object String]"===r(A)},A.exports=e},3171:function(A,e,t){var r=t(3993);e=function(A){return"[object Arguments]"===r(A)},A.exports=e},3185:function(A,e,t){"use strict";var r=t(8313);A.exports=r.isStandardBrowserEnv()?{write:function(A,e,t,n,o,i){var s=[];s.push(A+"="+encodeURIComponent(e)),r.isNumber(t)&&s.push("expires="+new Date(t).toGMTString()),r.isString(n)&&s.push("path="+n),r.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(A){var e=document.cookie.match(new RegExp("(^|;\\s*)("+A+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(A){this.write(A,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},3189:function(A,e,t){var r=t(6974);e="undefined"!=typeof wx&&r(wx.openLocation),A.exports=e},3191:function(A,e,t){"use strict";var r=t(3930);A.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},3199:function(A,e,t){"use strict";var r=t(4350)("span").classList,n=r&&r.constructor&&r.constructor.prototype;A.exports=n===Object.prototype?void 0:n},3223:function(A,e,t){"use strict";var r=t(3930);A.exports=!r(function(){var A=function(){}.bind();return"function"!=typeof A||A.hasOwnProperty("prototype")})},3241:function(A,e,t){"use strict";var r=t(9274),n=t(6648),o=t(5040),i=t(1722);A.exports=function(A,e,t){for(var s=n(e),a=i.f,u=o.f,c=0;c=B?A?"":void 0:(r=a(l,f))<55296||r>56319||f+1===B||(c=a(l,f+1))<56320||c>57343?A?s(l,f):r:A?u(l,f,f+2):c-56320+(r-55296<<10)+65536}};A.exports={codeAt:c(!1),charAt:c(!0)}},3348:function(A,e,t){"use strict";var r=t(1337),n=Error,o=r("".replace),i=String(new n("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,a=s.test(i);A.exports=function(A,e){if(a&&"string"==typeof A&&!n.prepareStackTrace)for(;e--;)A=o(A,s,"");return A}},3380:function(A,e,t){var r=t(7426),n=t(5324),o=t(674),i=t(9411),s=t(3189);var a=(e=function(A,e){return a.extend(A,e)}).Base=function A(e,t,a){a=a||{};var u=t.className||i(t,"initialize.name")||"";delete t.className;var c=function(){var A=n(arguments);return this.initialize&&this.initialize.apply(this,A)||this};if(!s)try{c=new Function("toArr","return function "+u+"(){var args = toArr(arguments);return this.initialize ? this.initialize.apply(this, args) || this : this;};")(n)}catch(A){}return o(c,e),c.prototype.constructor=c,c.extend=function(e,t){return A(c,e,t)},c.inherits=function(A){o(c,A)},c.methods=function(A){return r(c.prototype,A),c},c.statics=function(A){return r(c,A),c},c.methods(t).statics(a),c}(Object,{className:"Base",callSuper:function(A,e,t){return A.prototype[e].apply(this,t)},toString:function(){return this.constructor.name}});A.exports=e},3400:function(A,e,t){"use strict";t(7463)("Map",function(A){return function(){return A(this,arguments.length?arguments[0]:void 0)}},t(743))},3421:function(A,e,t){"use strict";function r(A){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},r(A)}var n=t(1273),o=t(9348),i=t(5093).f,s=t(7689),a="object"==("undefined"==typeof window?"undefined":r(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];A.exports.f=function(A){return a&&"Window"===n(A)?function(A){try{return i(A)}catch(A){return s(a)}}(A):i(o(A))}},3455:function(A,e,t){"use strict";var r,n=this&&this.__createBinding||(Object.create?function(A,e,t,r){void 0===r&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);n&&!("get"in n?!e.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(A,r,n)}:function(A,e,t,r){void 0===r&&(r=t),A[r]=e[t]}),o=this&&this.__setModuleDefault||(Object.create?function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e})}:function(A,e){A.default=e}),i=this&&this.__importStar||(r=function(A){return r=Object.getOwnPropertyNames||function(A){var e=[];for(var t in A)Object.prototype.hasOwnProperty.call(A,t)&&(e[e.length]=t);return e},r(A)},function(A){if(A&&A.__esModule)return A;var e={};if(null!=A)for(var t=r(A),i=0;i0&&n[n.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]1&&void 0!==arguments[1]?arguments[1]:s;return Promise.all(i(this._getPromises(n(A)),function(A){return A.promise})).then(e)},_getPromises:function(A){var e=this._promises,t=this._resolves,r=this._states;return i(A,function(A){return e[A]||(e[A]=new Promise(function(e){t[A]=e,r[A]=!1})),{task:A,promise:e[A],resolve:t[A],state:r[A]}})}}),A.exports=e},3482:function(A,e,t){"use strict";var r=t(8780);A.exports=r("document","documentElement")},3483:function(A,e,t){var r=t(213),n=t(6018);e={encode:function(A){return A.length<32768?String.fromCodePoint.apply(String,A):n(r(A,32767),function(A){return String.fromCodePoint.apply(String,A)}).join("")},decode:function(A){for(var e=[],t=0,r=A.length;t=55296&&n<=56319&&t0&&(t+="["+r+"]"),new o(t,A.nodeType===Node.DOCUMENT_NODE)}e=function(A,e){return r(A)?function(A){for(var e=[],t=document.evaluate(A,document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),r=0;r1&&void 0!==arguments[1]&&arguments[1];if(A.nodeType===Node.DOCUMENT_NODE)return"/";var t=[],r=A;for(;r;){var o=n(r,e);if(!o)break;if(t.push(o),o.optimized)break;r=r.parentNode}return t.reverse(),(t.length&&t[0].optimized?"":"/")+t.join("/")}(A,e)};var o=t(3380)({initialize:function(A,e){this.value=A,this.optimized=e||!1},toString:function(){return this.value}});A.exports=e},3577:function(A,e,t){var r=t(3610),n=t(6190);e=function(A,e,t){e=r(e,t);for(var o=n(A),i=o.length,s={},a=0;a0)&&!(r=o.next()).done;)i.push(r.value)}catch(A){n={error:A}}finally{try{r&&!r.done&&(t=o.return)&&t.call(o)}finally{if(n)throw n.error}}return i},r=this&&this.__values||function(A){var e="function"==typeof Symbol&&Symbol.iterator,t=e&&A[e],r=0;if(t)return t.call(A);if(A&&"number"==typeof A.length)return{next:function(){return A&&r>=A.length&&(A=void 0),{value:A&&A[r++],done:!A}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function n(A,e){var t=A[3];return[(1-t)*e[0]+t*A[0],(1-t)*e[1]+t*A[1],(1-t)*e[2]+t*A[2],t+e[3]*(1-t)]}function o(A){var e=t(A,3),r=e[0],n=e[1],o=e[2];return.2126*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))}Object.defineProperty(e,"__esModule",{value:!0}),e.getContrastThreshold=e.isLargeFont=e.getAPCAThreshold=e.desiredLuminanceAPCA=e.contrastRatioByLuminanceAPCA=e.contrastRatioAPCA=e.luminanceAPCA=e.contrastRatio=e.luminance=e.rgbaToHsla=e.blendColors=void 0,e.blendColors=n,e.rgbaToHsla=function(A){var e=t(A,4),r=e[0],n=e[1],o=e[2],i=e[3],s=Math.max(r,n,o),a=Math.min(r,n,o),u=s-a,c=s+a,l=.5*c;return[a===s?0:r===s?(1/6*(n-o)/u+1)%1:n===s?1/6*(o-r)/u+1/3:1/6*(r-n)/u+2/3,0===l||1===l?0:l<=.5?u/c:u/(2-c),l,i]},e.luminance=o,e.contrastRatio=function(A,e){var t=o(n(A,e)),r=o(e);return(Math.max(t,r)+.05)/(Math.min(t,r)+.05)};var i=12.82051282051282,s=.06;function a(A){var e=t(A,3),r=e[0],n=e[1],o=e[2];return.2126729*Math.pow(r,2.4)+.7151522*Math.pow(n,2.4)+.072175*Math.pow(o,2.4)}function u(A){return A>.03?A:A+Math.pow(.03-A,1.45)}function c(A,e){if(A=u(A),e=u(e),Math.abs(A-e)<5e-4)return 0;var t=0;return 100*(t=e>=A?(t=1.25*(Math.pow(e,.55)-Math.pow(A,.58)))<.001?0:t<.078?t-t*i*s:t-s:(t=1.25*(Math.pow(e,.62)-Math.pow(A,.57)))>-.001?0:t>-.078?t-t*i*s:t+s)}e.luminanceAPCA=a,e.contrastRatioAPCA=function(A,e){return c(a(A),a(e))},e.contrastRatioByLuminanceAPCA=c,e.desiredLuminanceAPCA=function(A,e,t){function r(){return t?Math.pow(Math.abs(Math.pow(A,.62)-(-e-s)/1.25),1/.57):Math.pow(Math.abs(Math.pow(A,.55)-(e+s)/1.25),1/.58)}A=u(A),e/=100;var n=r();return(n<0||n>1)&&(t=!t,n=r()),n};var l=[[12,-1,-1,-1,-1,100,90,80,-1,-1],[14,-1,-1,-1,100,90,80,60,60,-1],[16,-1,-1,100,90,80,60,55,50,50],[18,-1,-1,90,80,60,55,50,40,40],[24,-1,100,80,60,55,50,40,38,35],[30,-1,90,70,55,50,40,38,35,40],[36,-1,80,60,50,40,38,35,30,25],[48,100,70,55,40,38,35,30,25,20],[60,90,60,50,38,35,30,25,20,20],[72,80,55,40,35,30,25,20,20,20],[96,70,50,35,30,25,20,20,20,20],[120,60,40,30,25,20,20,20,20,20]];function f(A,e){var t=72*parseFloat(A.replace("px",""))/96;return-1!==["bold","bolder","600","700","800","900"].indexOf(e)?t>=14:t>=18}l.reverse(),e.getAPCAThreshold=function(A,e){var n,o,i,s,a=parseFloat(A.replace("px","")),u=parseFloat(e);try{for(var c=r(l),f=c.next();!f.done;f=c.next()){var B=t(f.value),d=B[0],h=B.slice(1);if(a>=d)try{for(var g=(i=void 0,r([900,800,700,600,500,400,300,200,100].entries())),p=g.next();!p.done;p=g.next()){var w=t(p.value,2),Q=w[0];if(u>=w[1]){var C=h[h.length-1-Q];return-1===C?null:C}}}catch(A){i={error:A}}finally{try{p&&!p.done&&(s=g.return)&&s.call(g)}finally{if(i)throw i.error}}}}catch(A){n={error:A}}finally{try{f&&!f.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}return null},e.isLargeFont=f;var B={aa:3,aaa:4.5},d={aa:4.5,aaa:7};e.getContrastThreshold=function(A,e){return f(A,e)?B:d}},3883:function(A,e,t){"use strict";var r=t(8313),n=t(1139),o=t(3185),i=t(3009),s=t(220),a=t(999),u=t(8075),c=t(4129),l=t(6840),f=t(5476),B=t(6589);A.exports=function(A){return new Promise(function(e,t){var d,h=A.data,g=A.headers,p=A.responseType;function w(){A.cancelToken&&A.cancelToken.unsubscribe(d),A.signal&&A.signal.removeEventListener("abort",d)}r.isFormData(h)&&r.isStandardBrowserEnv()&&delete g["Content-Type"];var Q=new XMLHttpRequest;if(A.auth){var C=A.auth.username||"",v=A.auth.password?unescape(encodeURIComponent(A.auth.password)):"";g.Authorization="Basic "+btoa(C+":"+v)}var y=s(A.baseURL,A.url);function m(){if(Q){var r="getAllResponseHeaders"in Q?a(Q.getAllResponseHeaders()):null,o={data:p&&"text"!==p&&"json"!==p?Q.response:Q.responseText,status:Q.status,statusText:Q.statusText,headers:r,config:A,request:Q};n(function(A){e(A),w()},function(A){t(A),w()},o),Q=null}}if(Q.open(A.method.toUpperCase(),i(y,A.params,A.paramsSerializer),!0),Q.timeout=A.timeout,"onloadend"in Q?Q.onloadend=m:Q.onreadystatechange=function(){Q&&4===Q.readyState&&(0!==Q.status||Q.responseURL&&0===Q.responseURL.indexOf("file:"))&&setTimeout(m)},Q.onabort=function(){Q&&(t(new l("Request aborted",l.ECONNABORTED,A,Q)),Q=null)},Q.onerror=function(){t(new l("Network Error",l.ERR_NETWORK,A,Q,Q)),Q=null},Q.ontimeout=function(){var e=A.timeout?"timeout of "+A.timeout+"ms exceeded":"timeout exceeded",r=A.transitional||c;A.timeoutErrorMessage&&(e=A.timeoutErrorMessage),t(new l(e,r.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,A,Q)),Q=null},r.isStandardBrowserEnv()){var U=(A.withCredentials||u(y))&&A.xsrfCookieName?o.read(A.xsrfCookieName):void 0;U&&(g[A.xsrfHeaderName]=U)}"setRequestHeader"in Q&&r.forEach(g,function(A,e){void 0===h&&"content-type"===e.toLowerCase()?delete g[e]:Q.setRequestHeader(e,A)}),r.isUndefined(A.withCredentials)||(Q.withCredentials=!!A.withCredentials),p&&"json"!==p&&(Q.responseType=A.responseType),"function"==typeof A.onDownloadProgress&&Q.addEventListener("progress",A.onDownloadProgress),"function"==typeof A.onUploadProgress&&Q.upload&&Q.upload.addEventListener("progress",A.onUploadProgress),(A.cancelToken||A.signal)&&(d=function(A){Q&&(t(!A||A&&A.type?new f:A),Q.abort(),Q=null)},A.cancelToken&&A.cancelToken.subscribe(d),A.signal&&(A.signal.aborted?d():A.signal.addEventListener("abort",d))),h||(h=null);var F=B(y);F&&-1===["http","https","file"].indexOf(F)?t(new l("Unsupported protocol "+F+":",l.ERR_BAD_REQUEST,A)):Q.send(h)})}},3896:function(A,e,t){"use strict";var r=t(8565);A.exports=r},3930:function(A){"use strict";A.exports=function(A){try{return!!A()}catch(A){return!0}}},3993:function(A,e){var t=Object.prototype.toString;e=function(A){return t.call(A)},A.exports=e},4025:function(A,e,t){"use strict";var r=t(5607),n=t(9168);A.exports=function(A,e){r(e)&&"cause"in e&&n(A,"cause",e.cause)}},4040:function(A,e,t){"use strict";function r(A){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},r(A)}var n=t(2586).version,o=t(6840),i={};["object","boolean","number","function","string","symbol"].forEach(function(A,e){i[A]=function(t){return r(t)===A||"a"+(e<1?"n ":" ")+A}});var s={};i.transitional=function(A,e,t){function r(A,e){return"[Axios v"+n+"] Transitional option '"+A+"'"+e+(t?". "+t:"")}return function(t,n,i){if(!1===A)throw new o(r(n," has been removed"+(e?" in "+e:"")),o.ERR_DEPRECATED);return e&&!s[n]&&(s[n]=!0,console.warn(r(n," has been deprecated since v"+e+" and will be removed in the near future"))),!A||A(t,n,i)}},A.exports={assertOptions:function(A,e,t){if("object"!==r(A))throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(A),i=n.length;i-- >0;){var s=n[i],a=e[s];if(a){var u=A[s],c=void 0===u||a(u,s,A);if(!0!==c)throw new o("option "+s+" must be "+c,o.ERR_BAD_OPTION_VALUE)}else if(!0!==t)throw new o("Unknown option "+s,o.ERR_BAD_OPTION)}},validators:i}},4073:function(A,e,t){"use strict";t(6739),t(8960),t(4244),t(7358),t(5200),t(6019)},4090:function(A,e,t){"use strict";var r=t(226),n=t(8228),o=r("iterator"),i=Array.prototype;A.exports=function(A){return void 0!==A&&(n.Array===A||i[o]===A)}},4098:function(A,e,t){"use strict";var r=t(9274),n=t(2756),o=t(8660),i=t(2304),s=t(4768),a=i("IE_PROTO"),u=Object,c=u.prototype;A.exports=s?u.getPrototypeOf:function(A){var e=o(A);if(r(e,a))return e[a];var t=e.constructor;return n(t)&&e instanceof t?t.prototype:e instanceof u?c:null}},4110:function(A){"use strict";var e=String;A.exports=function(A){try{return e(A)}catch(A){return"Object"}}},4129:function(A){"use strict";A.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},4134:function(A,e,t){"use strict";var r=t(8313),n=t(6267);A.exports=function(A,e,t){var o=this||n;return r.forEach(t,function(t){A=t.call(o,A,e)}),A}},4185:function(A,e,t){var r=t(1692);e=function(A){return r(A,function(A){return!!A})},A.exports=e},4210:function(A,e,t){"use strict";var r=t(8149),n=t(7608);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==n},{assign:n})},4212:function(A,e,t){"use strict";var r=this&&this.__awaiter||function(A,e,t,r){return new(t||(t=Promise))(function(n,o){function i(A){try{a(r.next(A))}catch(A){o(A)}}function s(A){try{a(r.throw(A))}catch(A){o(A)}}function a(A){var e;A.done?n(A.value):(e=A.value,e instanceof t?e:new t(function(A){A(e)})).then(i,s)}a((r=r.apply(A,e||[])).next())})},n=this&&this.__generator||function(A,e){var t,r,n,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=s(0),i.throw=s(1),i.return=s(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(a){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(t=1,r&&(n=2&s[0]?r.return:s[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,s[1])).done)return n;switch(r=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]2&&l(t,arguments[2]);var s=[];return B(A,p,{that:s}),u(t,"errors",s),t};i?i(w,g):s(w,g,{name:!0});var Q=w.prototype=a(g.prototype,{constructor:c(1,w),message:c(1,""),name:c(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:w})},4290:function(A,e,t){"use strict";var r=t(8313),n=t(6999),o=t(1464),i=t(2528);var s=function A(e){var t=new o(e),s=n(o.prototype.request,t);return r.extend(s,o.prototype,t),r.extend(s,t),s.create=function(t){return A(i(e,t))},s}(t(6267));s.Axios=o,s.CanceledError=t(5476),s.CancelToken=t(4344),s.isCancel=t(3057),s.VERSION=t(2586).version,s.toFormData=t(6691),s.AxiosError=t(6840),s.Cancel=s.CanceledError,s.all=function(A){return Promise.all(A)},s.spread=t(8303),s.isAxiosError=t(5752),A.exports=s,A.exports.default=s},4344:function(A,e,t){"use strict";var r=t(5476);function n(A){if("function"!=typeof A)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(A){e=A});var t=this;this.promise.then(function(A){if(t._listeners){var e,r=t._listeners.length;for(e=0;e0?t:e)(r)}},4489:function(A,e,t){var r=t(6996);e=function(A){return r(A).join("-")},A.exports=e},4493:function(A,e){e=function(A,e,t){return Array.prototype.indexOf.call(A,e,t)},A.exports=e},4507:function(A,e,t){"use strict";var r,n=this&&this.__extends||(r=function(A,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t])},r(A,e)},function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=A}r(A,e),A.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}),o=this&&this.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(e,"__esModule",{value:!0});var i=o(t(9270)),s=o(t(6375)),a=function(A){function e(){var e=A.call(this)||this;return e.observer=new MutationObserver(function(A){(0,s.default)(A,function(A){return e.handleMutation(A)})}),e}return n(e,A),e.prototype.observe=function(A){this.observer.observe(A,{attributes:!0,childList:!0,characterData:!0,subtree:!0})},e.prototype.disconnect=function(){this.observer.disconnect()},e.prototype.handleMutation=function(A){"attributes"===A.type?this.emit("attributes",A.target,A.attributeName):"childList"===A.type?this.emit("childList",A.target,A.addedNodes,A.removedNodes):"characterData"===A.type&&this.emit("characterData",A.target)},e}(i.default);e.default=new a},4517:function(A,e,t){"use strict";var r=t(2739),n=t(1129),o=t(3223),i=r(r.bind);A.exports=function(A,e){return n(A),void 0===e?A:o?i(A,e):function(){return A.apply(e,arguments)}}},4528:function(A,e,t){"use strict";var r=t(7642),n=t(9800);A.exports=function(A){var e=r(A,"string");return n(e)?e:e+""}},4554:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(A,e,t,r){void 0===r&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);n&&!("get"in n?!e.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(A,r,n)}:function(A,e,t,r){void 0===r&&(r=t),A[r]=e[t]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e})}:function(A,e){A.default=e}),__importStar=this&&this.__importStar||(ownKeys=function(A){return ownKeys=Object.getOwnPropertyNames||function(A){var e=[];for(var t in A)Object.prototype.hasOwnProperty.call(A,t)&&(e[e.length]=t);return e},ownKeys(A)},function(A){if(A&&A.__esModule)return A;var e={};if(null!=A)for(var t=ownKeys(A),r=0;r0&&n[n.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1] {}")}catch(A){isAsyncSupported=!1}function evaluate(A){return __awaiter(this,void 0,void 0,function(){var e,t,r;return __generator(this,function(n){switch(n.label){case 0:e={},n.label=1;case 1:if(n.trys.push([1,5,,6]),A.throwOnSideEffect&&hasSideEffect(A.expression))throw EvalError("Possible side-effect in debug-evaluate");return isAsyncSupported&&(A.replMode||A.awaitPromise)?[4,(0,evaluate_1.evalJsAsync)(A.expression)]:[3,3];case 2:return t=n.sent(),[3,4];case 3:t=(0,evaluate_1.evalJs)(A.expression),n.label=4;case 4:return(0,evaluate_1.setGlobal)("$_",t),e.result=objManager.wrap(t,{generatePreview:!0}),[3,6];case 5:return r=n.sent(),e.exceptionDetails={exception:objManager.wrap(r),text:"Uncaught"},e.result=objManager.wrap(r,{generatePreview:!0}),[3,6];case 6:return[2,e]}})})}function releaseObject(A){objManager.releaseObj(A.objectId)}function globalLexicalScopeNames(){return{names:[]}}function monitorConsole(){(0,each_1.default)({log:"log",warn:"warning",error:"error",info:"info",dir:"dir",table:"table",group:"startGroup",groupCollapsed:"startGroupCollapsed",groupEnd:"endGroup",debug:"debug",clear:"clear"},function(A,e){if(console[e]){var t=0,r=console[e].bind(console);console[e]=function(){for(var e=[],n=0;n")+2)):e.push(A.slice(A.indexOf("{")+1,A.lastIndexOf("}"))),e}function callFn(A,e){return __awaiter(this,arguments,void 0,function(A,e,t){var r;return void 0===t&&(t=null),__generator(this,function(n){switch(n.label){case 0:return r=parseFn(A),(0,startWith_1.default)(A,"async")?[4,AsyncFunction.apply(null,r).apply(t,e)]:[3,2];case 1:return[2,n.sent()];case 2:return[2,Function.apply(null,r).apply(t,e)]}})})}function hasSideEffect(A){return!/^[a-zA-Z0-9]*$/.test(A)}function getCallFrames(A){var e=[],t=A?A.stack:(0,stackTrace_1.default)();return(0,isStr_1.default)(t)?(e=t.split("\n"),A||e.shift(),e.shift(),e=(0,map_1.default)(e,function(A){return{functionName:(0,trim_1.default)(A)}})):t&&(t.shift(),e=(0,map_1.default)(t,function(A){return{functionName:A.getFunctionName(),lineNumber:A.getLineNumber(),columnNumber:A.getColumnNumber(),url:A.getFileName()}})),e}uncaught_1.default.addListener(function(A){trigger("Runtime.exceptionThrown",{exceptionDetails:{exception:objManager.wrap(A),stackTrace:{callFrames:getCallFrames(A)},text:"Uncaught"},timestamp:now_1.default})});var triggers=[];function trigger(A,e){isEnable?connector_1.default.trigger(A,e):triggers.push(function(){return connector_1.default.trigger(A,e)})}uncaught_1.default.start(),monitorConsole()},4606:function(A,e,t){var r=t(3610);e=function(A,e,t){var n=[];e=r(e,t);for(var o=-1,i=A.length;++oC&&mv,b=B-Q;b=(0,a.constrainNumber)(b,p,n-d-p);var E=r.minY-g-h,H=!0;E<0?(E=Math.min(o-h,r.maxY+g),H=!1):r.minY>o&&(E=o-g-h);var x=b>=r.minX&&b+d<=r.maxX&&E>=r.minY&&E+h<=r.maxY,I=br.minX&&Er.minY;if(I&&!x)return void(l.style.display="none");if(l.style.top=E+"px",l.style.left=b+"px",F)return;var S=(0,a.createChild)(l,"div","tooltip-arrow");S.style.clipPath=H?"polygon(0 0, 100% 0, 50% 100%)":"polygon(50% 0, 0 100%, 100% 100%)",S.style.top=(H?h-1:-g)+"px",S.style.left=B-b+"px"}(this.tooltip,A.elementInfo,A.colorFormat,e,this.canvasWidth,this.canvasHeight)),this.context.restore(),{bounds:e}},e.prototype.drawAxis=function(A,e,t){A.save();var r=this.pageZoomFactor*this.pageScaleFactor*this.emulationScaleFactor,n=this.scrollX*this.pageScaleFactor,o=this.scrollY*this.pageScaleFactor;function i(A){return Math.round(A*r)}function s(A){return Math.round(A/r)}var a=this.canvasWidth/r,u=this.canvasHeight/r,c=50;A.save(),A.fillStyle=B,t?A.fillRect(0,i(u)-15,i(a),i(u)):A.fillRect(0,0,i(a),15),A.globalCompositeOperation="destination-out",A.fillStyle="red",e?A.fillRect(i(a)-15,0,i(a),i(u)):A.fillRect(0,0,15,i(u)),A.restore(),A.fillStyle=B,e?A.fillRect(i(a)-15,0,i(a),i(u)):A.fillRect(0,0,15,i(u)),A.lineWidth=1,A.strokeStyle=f,A.fillStyle=f,A.save(),A.translate(-n,.5-o);for(var d=u+s(o),h=100;h0&&setTimeout(function(){i.onload=o,i.abort(),n(Error("timeout"))},c),i.send(a)})});var a=/^(.*?):\s*([\s\S]*?)$/gm;function u(A){var e,t=[],r=[],n={};return A.getAllResponseHeaders().replace(a,function(A,o,i){o=o.toLowerCase(),t.push(o),r.push([o,i]),e=n[o],n[o]=e?e+","+i:i}),{ok:A.status>=200&&A.status<400,status:A.status,statusText:A.statusText,url:A.responseURL,clone:function(){return u(A)},text:function(){return s.resolve(A.responseText)},json:function(){return s.resolve(A.responseText).then(JSON.parse)},xml:function(){return s.resolve(A.responseXML)},blob:function(){return s.resolve(new Blob([A.response]))},headers:{keys:function(){return t},entries:function(){return r},get:function(A){return n[A.toLowerCase()]},has:function(A){return i(n,A)}}}}e.setting={method:"GET",headers:{},timeout:0,xhr:function(){return new XMLHttpRequest}},A.exports=e},4978:function(A,e,t){var r=t(2112);e=function(A){var e;switch(A=A||"local"){case"local":e=window.localStorage;break;case"session":e=window.sessionStorage}try{var t="test-localStorage-"+Date.now();e.setItem(t,t);var n=e.getItem(t);if(e.removeItem(t),n!==t)throw new Error}catch(A){return r}return e},A.exports=e},5003:function(A,e){"use strict";var t=this&&this.__values||function(A){var e="function"==typeof Symbol&&Symbol.iterator,t=e&&A[e],r=0;if(t)return t.call(A);if(A&&"number"==typeof A.length)return{next:function(){return A&&r>=A.length&&(A=void 0),{value:A&&A[r++],done:!A}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},r=this&&this.__read||function(A,e){var t="function"==typeof Symbol&&A[Symbol.iterator];if(!t)return A;var r,n,o=t.call(A),i=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(A){n={error:A}}finally{try{r&&!r.done&&(t=o.return)&&t.call(o)}finally{if(n)throw n.error}}return i},n=this&&this.__spreadArray||function(A,e,t){if(t||2===arguments.length)for(var r,n=0,o=e.length;nt&&(A=t),A},e.adoptStyleSheet=a},5040:function(A,e,t){"use strict";var r=t(7445),n=t(5136),o=t(8280),i=t(5323),s=t(9348),a=t(4528),u=t(9274),c=t(6942),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(A,e){if(A=s(A),e=a(e),c)try{return l(A,e)}catch(A){}if(u(A,e))return i(!n(o.f,A,e),A[e])}},5065:function(A,e,t){var r,n=t(764),o=t(4358),i=o.performance,s=o.process;if(i&&i.now)e=function(){return i.now()};else if(s&&s.hrtime){var a=function(){var A=s.hrtime();return 1e9*A[0]+A[1]};r=a()-1e9*s.uptime(),e=function(){return(a()-r)/1e6}}else r=n(),e=function(){return n()-r};A.exports=e},5093:function(A,e,t){"use strict";var r=t(7211),n=t(9010).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(A){return r(A,n)}},5136:function(A,e,t){"use strict";var r=t(3223),n=Function.prototype.call;A.exports=r?n.bind(n):function(){return n.apply(n,arguments)}},5139:function(A,e,t){"use strict";var r=t(5732);A.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},5142:function(A,e,t){"use strict";var r=t(5136),n=t(1129),o=t(5394),i=t(4110),s=t(4906),a=TypeError;A.exports=function(A,e){var t=arguments.length<2?s(A):e;if(n(t))return o(r(t,A));throw new a(i(A)+" is not iterable")}},5145:function(A,e,t){"use strict";var r=this&&this.__awaiter||function(A,e,t,r){return new(t||(t=Promise))(function(n,o){function i(A){try{a(r.next(A))}catch(A){o(A)}}function s(A){try{a(r.throw(A))}catch(A){o(A)}}function a(A){var e;A.done?n(A.value):(e=A.value,e instanceof t?e:new t(function(A){A(e)})).then(i,s)}a((r=r.apply(A,e||[])).next())})},n=this&&this.__generator||function(A,e){var t,r,n,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=s(0),i.throw=s(1),i.return=s(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(a){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(t=1,r&&(n=2&s[0]?r.return:s[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,s[1])).done)return n;switch(r=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]e&&(e=A[t]);return e},A.exports=e},5200:function(A,e,t){"use strict";var r=t(8149),n=t(236);r({target:"Promise",stat:!0,forced:t(6173).CONSTRUCTOR},{reject:function(A){var e=n.f(this);return(0,e.reject)(A),e.promise}})},5209:function(A,e,t){var r=t(3095),n=t(3061),o=t(4489),i=t(4866),s=t(416),a=t(3008),u=t(1603),c=t(4442),l=t(6375);e=function(A,e,t){if(A=u(A),i(t)&&r(e))return function(A,e){return A.style[c(e)]||getComputedStyle(A,"").getPropertyValue(e)}(A[0],e);var B=e;n(B)||((B={})[e]=t),function(A,e){l(A,function(A){var t=";";l(e,function(A,e){e=c.dash(e),t+=e+":"+function(A,e){var t=a(e)&&!s(f,o(A));return t?e+"px":e}(e,A)+";"}),A.style.cssText+=t})}(A,B)};var f=["column-count","columns","font-weight","line-weight","opacity","z-index","zoom"];A.exports=e},5225:function(A,e,t){"use strict";var r=t(8149),n=t(5136),o=t(7502),i=t(1255),s=t(2756),a=t(7167),u=t(4098),c=t(7302),l=t(6642),f=t(9168),B=t(13),d=t(226),h=t(8228),g=t(3050),p=i.PROPER,w=i.CONFIGURABLE,Q=g.IteratorPrototype,C=g.BUGGY_SAFARI_ITERATORS,v=d("iterator"),y="keys",m="values",U="entries",F=function(){return this};A.exports=function(A,e,t,i,d,g,b){a(t,e,i);var E,H,x,I=function(A){if(A===d&&_)return _;if(!C&&A&&A in L)return L[A];switch(A){case y:case m:case U:return function(){return new t(this,A)}}return function(){return new t(this)}},S=e+" Iterator",O=!1,L=A.prototype,K=L[v]||L["@@iterator"]||d&&L[d],_=!C&&K||I(d),D="Array"===e&&L.entries||K;if(D&&(E=u(D.call(new A)))!==Object.prototype&&E.next&&(o||u(E)===Q||(c?c(E,Q):s(E[v])||B(E,v,F)),l(E,S,!0,!0),o&&(h[S]=F)),p&&d===m&&K&&K.name!==m&&(!o&&w?f(L,"name",m):(O=!0,_=function(){return n(K,this)})),d)if(H={values:I(m),keys:g?_:I(y),entries:I(U)},b)for(x in H)(C||O||!(x in L))&&B(L,x,H[x]);else r({target:e,proto:!0,forced:C||O},H);return o&&!b||L[v]===_||B(L,v,_,{name:d}),h[e]=_,H}},5323:function(A){"use strict";A.exports=function(A,e){return{enumerable:!(1&A),configurable:!(2&A),writable:!(4&A),value:e}}},5324:function(A,e,t){var r=t(1392),n=t(6018),o=t(2615),i=t(3095);e=function(A){return A?o(A)?A:r(A)&&!i(A)?n(A):[A]:[]},A.exports=e},5336:function(A,e,t){"use strict";var r=t(7432),n=t(3930),o=t(8565).String;A.exports=!!Object.getOwnPropertySymbols&&!n(function(){var A=Symbol("symbol detection");return!o(A)||!(Object(A)instanceof Symbol)||!Symbol.sham&&r&&r<41})},5371:function(A,e,t){"use strict";var r=t(226)("iterator"),n=!1;try{var o=0,i={next:function(){return{done:!!o++}},return:function(){n=!0}};i[r]=function(){return this},Array.from(i,function(){throw 2})}catch(A){}A.exports=function(A,e){try{if(!e&&!n)return!1}catch(A){return!1}var t=!1;try{var o={};o[r]=function(){return{next:function(){return{done:t=!0}}}},A(o)}catch(A){}return t}},5394:function(A,e,t){"use strict";var r=t(5607),n=String,o=TypeError;A.exports=function(A){if(r(A))return A;throw new o(n(A)+" is not an object")}},5401:function(A,e,t){var r=t(3008);e=function(A){return r(A)&&A%1==0},A.exports=e},5418:function(A,e,t){"use strict";var r=this&&this.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(e,"__esModule",{value:!0}),e.emulateTouchFromMouseEvent=function(A){var e=A.type,t=A.x,r=A.y,o=A.deltaX,c=A.deltaY,l=document.elementFromPoint(t,r)||document.documentElement;switch(e){case"mousePressed":i=!0,a("touchstart",l,t,r);break;case"mouseMoved":i=!1,a("touchmove",l,t,r);break;case"mouseReleased":a("touchend",l,t,r),i&&s("click",l,t,r),i=!1;break;case"mouseWheel":(0,n.default)(o)||(0,n.default)(c)||u(l,o,c)}},e.dispatchMouseEvent=function(A){var e=A.type,t=A.x,r=A.y,o=A.deltaX,a=A.deltaY,c=document.elementFromPoint(t,r)||document.documentElement;switch(e){case"mousePressed":i=!0,s("mousedown",c,t,r);break;case"mouseMoved":i=!1,s("mousemove",c,t,r);break;case"mouseReleased":s("mouseup",c,t,r),i&&s("click",c,t,r),i=!1;break;case"mouseWheel":(0,n.default)(o)||(0,n.default)(a)||u(c,o,a)}};var n=r(t(4866)),o=r(t(7993)),i=!1;function s(A,e,t,r){e.dispatchEvent(new MouseEvent(A,{bubbles:!0,cancelable:!0,view:window,clientX:t,clientY:r}))}function a(A,e,t,r){var n=new Touch({identifier:0,target:e,clientX:t,clientY:r,force:1});e.dispatchEvent(new TouchEvent(A,{bubbles:!0,touches:[n],changedTouches:[n],targetTouches:[n]}))}function u(A,e,t){A=function(A,e,t){for(;A;){if((0,o.default)(e)&&c(A,"x"))return A;if((0,o.default)(t)&&c(A,"y"))return A;A=A.parentElement}return A||document.documentElement}(A,e,t),A.scrollLeft-=e,A.scrollTop-=t}function c(A,e){var t=getComputedStyle(A);return"x"===e?A.scrollWidth>A.clientWidth&&"hidden"!==t.overflowX:A.scrollHeight>A.clientHeight&&"hidden"!==t.overflowY}},5470:function(A,e,t){"use strict";var r=t(9168),n=t(3348),o=t(2830),i=Error.captureStackTrace;A.exports=function(A,e,t,s){o&&(i?i(A,e):r(A,"stack",n(t,s)))}},5476:function(A,e,t){"use strict";var r=t(6840);function n(A){r.call(this,null==A?"canceled":A,r.ERR_CANCELED),this.name="CanceledError"}t(8313).inherits(n,r,{__CANCEL__:!0}),A.exports=n},5484:function(A,e,t){var r=t(2386),n=t(7780),o=t(1394),i=t(5209),s=t(416),a=t(7426),u=t(4358);e=u.ResizeObserver?r.extend({initialize:function(A){var e=this;if(A._resizeSensor)return A._resizeSensor;this.callSuper(r,"initialize");var t=new u.ResizeObserver(function(){return e.emit()});t.observe(A),A._resizeSensor=this,this._resizeObserver=t,this._el=A},destroy:function(){var A=this._el;A._resizeSensor&&(this.rmAllListeners(),delete A._resizeSensor,this._resizeObserver.unobserve(A))}}):r.extend({initialize:function(A){if(A._resizeSensor)return A._resizeSensor;this.callSuper(r,"initialize"),this._el=A,A._resizeSensor=this,s(["absolute","relative","fixed","sticky"],i(A,"position"))||i(A,"position","relative"),this._appendResizeSensor(),this._bindEvent()},destroy:function(){var A=this._el;A._resizeSensor&&(this.rmAllListeners(),delete A._resizeSensor,A.removeChild(this._resizeSensorEl))},_appendResizeSensor:function(){var A=this._el,e={pointerEvents:"none",position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"},t={position:"absolute",left:"0px",top:"0px",transition:"0s"},r=n("div",{style:t}),o=n("div.resize-sensor-expand",{style:e},r),i=n("div.resize-sensor-shrink",{style:e},n("div",{style:a({width:"200%",height:"200%"},t)})),s=n("div.resize-sensor",{dir:"ltr",style:e},o,i);this._expandEl=o,this._expandChildEl=r,this._shrinkEl=i,this._resizeSensorEl=s,A.appendChild(s),this._resetExpandShrink()},_bindEvent:function(){var A=this;o.on(this._expandEl,"scroll",function(){return A._onScroll()}),o.on(this._shrinkEl,"scroll",function(){return A._onScroll()})},_onScroll:function(){this.emit(),this._resetExpandShrink()},_resetExpandShrink:function(){var A=this._el,e=A.offsetWidth,t=A.offsetHeight;i(this._expandChildEl,{width:e+10,height:t+10}),a(this._expandEl,{scrollLeft:e+10,scrollTop:t+10}),a(this._shrinkEl,{scrollLeft:e+10,scrollTop:t+10})}}),A.exports=e},5552:function(A,e){e=function(A){return A},A.exports=e},5607:function(A,e,t){"use strict";function r(A){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},r(A)}var n=t(2756);A.exports=function(A){return"object"==r(A)?null!==A:n(A)}},5613:function(A,e){e={encode:function(A){var e,t=[],n=A.length,o=n%3;n-=o;for(var s=0;s>2]),t.push(r[e<<4&63]),t.push("==")):2===o&&(e=(A[n-2]<<8)+A[n-1],t.push(r[e>>10]),t.push(r[e>>4&63]),t.push(r[e<<2&63]),t.push("=")),t.join("")},decode:function(A){var e=A.length,r=0;"="===A[e-2]?r=2:"="===A[e-1]&&(r=1);var n,o,i,a=new Array(3*e/4-r);for(e=r>0?e-4:e,n=0,o=0;n>16&255,a[o++]=u>>8&255,a[o++]=255&u}return 2===r?(i=t[A.charCodeAt(n)]<<2|t[A.charCodeAt(n+1)]>>4,a[o++]=255&i):1===r&&(i=t[A.charCodeAt(n)]<<10|t[A.charCodeAt(n+1)]<<4|t[A.charCodeAt(n+2)]>>2,a[o++]=i>>8&255,a[o++]=255&i),a}};for(var t=[],r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,o=r.length;n>18&63]+r[A>>12&63]+r[A>>6&63]+r[63&A]}function s(A,e,r,n){return t[A.charCodeAt(0)]<<18|t[e.charCodeAt(0)]<<12|t[r.charCodeAt(0)]<<6|t[n.charCodeAt(0)]}A.exports=e},5630:function(A,e,t){"use strict";var r=t(2756),n=t(5607),o=t(7302);A.exports=function(A,e,t){var i,s;return o&&r(i=e.constructor)&&i!==t&&n(s=i.prototype)&&s!==t.prototype&&o(A,s),A}},5640:function(A){"use strict";A.exports=function(A,e){return{value:A,done:e}}},5672:function(A,e,t){var r=t(6190);e=t(256)(r),A.exports=e},5694:function(A,e,t){"use strict";var r=t(1177),n=t(13),o=t(1660);r||n(Object.prototype,"toString",o,{unsafe:!0})},5720:function(A,e,t){var r=t(6974);e=function(A){return null!=A&&(!!A._isBuffer||A.constructor&&r(A.constructor.isBuffer)&&A.constructor.isBuffer(A))},A.exports=e},5721:function(A,e,t){"use strict";var r=t(9348),n=t(9914),o=t(8228),i=t(86),s=t(1722).f,a=t(5225),u=t(5640),c=t(7502),l=t(7445),f="Array Iterator",B=i.set,d=i.getterFor(f);A.exports=a(Array,"Array",function(A,e){B(this,{type:f,target:r(A),index:0,kind:e})},function(){var A=d(this),e=A.target,t=A.index++;if(!e||t>=e.length)return A.target=null,u(void 0,!0);switch(A.kind){case"keys":return u(t,!1);case"values":return u(e[t],!1)}return u([t,e[t]],!1)},"values");var h=o.Arguments=o.Array;if(n("keys"),n("values"),n("entries"),!c&&l&&"values"!==h.name)try{s(h,"name",{value:"values"})}catch(A){}},5732:function(A,e,t){"use strict";var r=t(8565).navigator,n=r&&r.userAgent;A.exports=n?String(n):""},5752:function(A,e,t){"use strict";var r=t(8313);A.exports=function(A){return r.isObject(A)&&!0===A.isAxiosError}},5875:function(A,e,t){var r=t(3008),n=t(3061),o=t(6974),i=t(3095);e=function(A){if(r(A))return A;if(n(A)){var e=o(A.valueOf)?A.valueOf():A;A=n(e)?e+"":e}return i(A)?+A:0===A?A:+A},A.exports=e},5937:function(A,e,t){"use strict";var r=this&&this.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(e,"__esModule",{value:!0}),e.enable=void 0,e.clear=function(A){d(A.storageId).clear()},e.getDOMStorageItems=function(A){var e=d(A.storageId),t=[];return(0,o.default)((0,a.default)(e),function(A,e){(0,i.default)(A)&&t.push([e,A])}),{entries:t}},e.removeDOMStorageItem=function(A){var e=A.key;d(A.storageId).removeItem(e)},e.setDOMStorageItem=function(A){var e=A.key,t=A.value;d(A.storageId).setItem(e,t)};var n=r(t(4978)),o=r(t(6375)),i=r(t(3095)),s=r(t(8299)),a=r(t(935)),u=r(t(2271)),c=r(t(2593)),l=(0,n.default)("local"),f=(0,n.default)("session"),B=(0,c.default)();function d(A){return A.isLocalStorage?l:f}e.enable=(0,s.default)(function(){"ie"!==B.name&&(0,o.default)(["local","session"],function(A){var e="local"===A?l:f,t=function(A){return{securityOrigin:location.origin,isLocalStorage:"local"===A}}(A),r=e.setItem.bind(e);e.setItem=function(A,n){if((0,i.default)(A)&&(0,i.default)(n)){var o=e.getItem(A);r(A,n),o?u.default.trigger("DOMStorage.domStorageItemUpdated",{key:A,newValue:n,oldValue:o,storageId:t}):u.default.trigger("DOMStorage.domStorageItemAdded",{key:A,newValue:n,storageId:t})}};var n=e.removeItem.bind(e);e.removeItem=function(A){(0,i.default)(A)&&(e.getItem(A)&&(n(A),u.default.trigger("DOMStorage.domStorageItemRemoved",{key:A,storageId:t})))};var o=e.clear.bind(e);e.clear=function(){o(),u.default.trigger("DOMStorage.domStorageItemsCleared",{storageId:t})}})})},5945:function(A,e,t){"use strict";var r=t(1129),n=t(2934);A.exports=function(A,e){var t=A[e];return n(t)?void 0:r(t)}},6016:function(A,e,t){var r=t(1590),n=t(2799),o=t(7481),i=t(5209),s=t(6923),a=t(2861),u=t(8330),c=t(8572),l=t(1896),f=t(1394),B=t(9614),d=t(2453),h=t(4866),g=t(3095);e=function(A){return new r(A)},r.methods({offset:function(){return n(this)},hide:function(){return this.css("display","none")},show:function(){return o(this),this},first:function(){return e(this[0])},last:function(){return e(u(this))},get:function(A){return this[A]},eq:function(A){return e(this[A])},on:function(A,e,t){return f.on(this,A,e,t),this},off:function(A,e,t){return f.off(this,A,e,t),this},html:function(A){var e=a.html(this,A);return h(A)?e:this},text:function(A){var e=a.text(this,A);return h(A)?e:this},val:function(A){var e=a.val(this,A);return h(A)?e:this},css:function(A,e){var t=i(this,A,e);return p(A,e)?t:this},attr:function(A,e){var t=s(this,A,e);return p(A,e)?t:this},data:function(A,e){var t=l(this,A,e);return p(A,e)?t:this},rmAttr:function(A){return s.remove(this,A),this},remove:function(){return c(this),this},addClass:function(A){return B.add(this,A),this},rmClass:function(A){return B.remove(this,A),this},toggleClass:function(A){return B.toggle(this,A),this},hasClass:function(A){return B.has(this,A)},parent:function(){return e(this[0].parentNode)},append:function(A){return d.append(this,A),this},prepend:function(A){return d.prepend(this,A),this},before:function(A){return d.before(this,A),this},after:function(A){return d.after(this,A),this}});var p=function(A,e){return h(e)&&g(A)};A.exports=e},6018:function(A,e,t){var r=t(3610),n=t(6190),o=t(1392);e=function(A,e,t){e=r(e,t);for(var i=!o(A)&&n(A),s=(i||A).length,a=Array(s),u=0;u=0;)for(i=!1,t=-1,r=A.charAt(n);++t=0?A.substring(0,n+1):""},A.exports=e},6141:function(A,e,t){"use strict";var r=t(1337),n=t(2756),o=t(6270),i=r(Function.toString);n(o.inspectSource)||(o.inspectSource=function(A){return i(A)}),A.exports=o.inspectSource},6149:function(A,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MAIN_FRAME_ID=void 0,e.MAIN_FRAME_ID="1"},6158:function(A,e,t){var r=t(5324);e=function(){for(var A=r(arguments),e=[],t=0,n=A.length;t1?e:this;for(var t=this._items,r=this.size-1,n=0;r>=0;r--,n++)A.call(e,t[r],n,this)},toArr:function(){return n(this._items)}}),A.exports=e},6173:function(A,e,t){"use strict";var r=t(8565),n=t(4685),o=t(2756),i=t(4929),s=t(6141),a=t(226),u=t(7166),c=t(7502),l=t(7432),f=n&&n.prototype,B=a("species"),d=!1,h=o(r.PromiseRejectionEvent),g=i("Promise",function(){var A=s(n),e=A!==String(n);if(!e&&66===l)return!0;if(c&&(!f.catch||!f.finally))return!0;if(!l||l<51||!/native code/.test(A)){var t=new n(function(A){A(1)}),r=function(A){A(function(){},function(){})};if((t.constructor={})[B]=r,!(d=t.then(function(){})instanceof r))return!0}return!(e||"BROWSER"!==u&&"DENO"!==u||h)});A.exports={CONSTRUCTOR:g,REJECTION_EVENT:h,SUBCLASSING:d}},6190:function(A,e,t){var r=t(8440);e=Object.keys?Object.keys:function(A){var e=[];for(var t in A)r(A,t)&&e.push(t);return e},A.exports=e},6208:function(A){"use strict";var e=function(){this.head=null,this.tail=null};e.prototype={add:function(A){var e={item:A,next:null},t=this.tail;t?t.next=e:this.head=e,this.tail=e},get:function(){var A=this.head;if(A)return null===(this.head=A.next)&&(this.tail=null),A.item}},A.exports=e},6229:function(A,e,t){"use strict";var r=t(3930);A.exports=r(function(){if("function"==typeof ArrayBuffer){var A=new ArrayBuffer(8);Object.isExtensible(A)&&Object.defineProperty(A,"a",{value:8})}})},6257:function(A,e,t){"use strict";var r=t(8565),n=t(2756),o=r.WeakMap;A.exports=n(o)&&/native code/.test(String(o))},6267:function(A,e,t){"use strict";var r=t(8313),n=t(119),o=t(6840),i=t(4129),s=t(6691),a={"Content-Type":"application/x-www-form-urlencoded"};function u(A,e){!r.isUndefined(A)&&r.isUndefined(A["Content-Type"])&&(A["Content-Type"]=e)}var c,l={transitional:i,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=t(3883)),c),transformRequest:[function(A,e){if(n(e,"Accept"),n(e,"Content-Type"),r.isFormData(A)||r.isArrayBuffer(A)||r.isBuffer(A)||r.isStream(A)||r.isFile(A)||r.isBlob(A))return A;if(r.isArrayBufferView(A))return A.buffer;if(r.isURLSearchParams(A))return u(e,"application/x-www-form-urlencoded;charset=utf-8"),A.toString();var t,o=r.isObject(A),i=e&&e["Content-Type"];if((t=r.isFileList(A))||o&&"multipart/form-data"===i){var a=this.env&&this.env.FormData;return s(t?{"files[]":A}:A,a&&new a)}return o||"application/json"===i?(u(e,"application/json"),function(A,e,t){if(r.isString(A))try{return(e||JSON.parse)(A),r.trim(A)}catch(A){if("SyntaxError"!==A.name)throw A}return(t||JSON.stringify)(A)}(A)):A}],transformResponse:[function(A){var e=this.transitional||l.transitional,t=e&&e.silentJSONParsing,n=e&&e.forcedJSONParsing,i=!t&&"json"===this.responseType;if(i||n&&r.isString(A)&&A.length)try{return JSON.parse(A)}catch(A){if(i){if("SyntaxError"===A.name)throw o.from(A,o.ERR_BAD_RESPONSE,this,null,this.response);throw A}}return A}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:t(8917)},validateStatus:function(A){return A>=200&&A<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],function(A){l.headers[A]={}}),r.forEach(["post","put","patch"],function(A){l.headers[A]=r.merge(a)}),A.exports=l},6270:function(A,e,t){"use strict";var r=t(7502),n=t(8565),o=t(2854),i="__core-js_shared__",s=A.exports=n[i]||o(i,{});(s.versions||(s.versions=[])).push({version:"3.45.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6301:function(A){"use strict";var e=TypeError;A.exports=function(A,t){if(A\')}.luna-dom-highlighter-element-layout-type.luna-dom-highlighter-flex{background-image:url(\'data:image/svg+xml,\')}.luna-dom-highlighter-element-description{flex:1 1;font-weight:700;word-wrap:break-word;word-break:break-all}.luna-dom-highlighter-dimensions{color:#737373;text-align:right;margin-left:10px}.luna-dom-highlighter-material-node-width{margin-right:2px}.luna-dom-highlighter-material-node-height{margin-left:2px}.luna-dom-highlighter-material-tag-name{color:#881280}.luna-dom-highlighter-material-class-name,.luna-dom-highlighter-material-node-id{color:#1a1aa6}.luna-dom-highlighter-contrast-text{width:16px;height:16px;text-align:center;line-height:16px;margin-right:8px;border:1px solid #000;padding:0 1px}.luna-dom-highlighter-a11y-icon-not-ok{background-image:url(\'data:image/svg+xml,\')}.luna-dom-highlighter-a11y-icon-warning{background-image:url(\'data:image/svg+xml,\')}.luna-dom-highlighter-a11y-icon-ok{background-image:url(\'data:image/svg+xml,\')}@media (forced-colors:active){:root,body{background-color:transparent;forced-color-adjust:none}.luna-dom-highlighter-tooltip-content{border-color:Highlight;background-color:canvas;color:text;forced-color-adjust:none}.luna-dom-highlighter-tooltip-content::after{background-color:Highlight}.luna-dom-highlighter-color-swatch-inner,.luna-dom-highlighter-contrast-text,.luna-dom-highlighter-separator{border-color:Highlight}.luna-dom-highlighter-section-name{color:Highlight}.luna-dom-highlighter-dimensions,.luna-dom-highlighter-element-info-name,.luna-dom-highlighter-element-info-value-color,.luna-dom-highlighter-element-info-value-contrast,.luna-dom-highlighter-element-info-value-icon,.luna-dom-highlighter-element-info-value-text,.luna-dom-highlighter-material-class-name,.luna-dom-highlighter-material-node-id,.luna-dom-highlighter-material-tag-name{color:canvastext}}\n\n/*# sourceMappingURL=luna-dom-highlighter.css.map*/'},6325:function(A,e,t){var r=t(8001);e={encode:function(A){for(var e=[],t=0,r=A.length;t>>4).toString(16)),e.push((15&n).toString(16))}return e.join("")},decode:function(A){var e=[],t=A.length;r(t)&&t--;for(var n=0;nQ;Q++)if((v=S(A[Q]))&&c(g,v))return v;return new h(!1)}p=l(A,w)}for(y=b?A.next:p.next;!(m=o(y,p)).done;){try{v=S(m.value)}catch(A){B(p,"throw",A)}if("object"==r(v)&&v&&c(g,v))return v}return new h(!1)}},6723:function(A,e,t){"use strict";var r=this&&this.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(e,"__esModule",{value:!0}),e.getOrCreateNodeId=d,e.clear=function(){l.clear(),f.clear()},e.getNodeId=function(A){return f.get(A)},e.wrap=h,e.getChildNodes=g,e.getPreviousNode=function(A){var e=A.previousSibling;if(!e)return;for(;!w(e)&&e.previousSibling;)e=e.previousSibling;if(e&&w(e))return e},e.filterNodes=p,e.isValidNode=w,e.getNode=function(A){var e=l.get(A);if(!e||10===e.nodeType||11===e.nodeType)throw(0,c.createErr)(-32e3,"Could not find node with given id");return e};var n=r(t(6018)),o=r(t(1692)),i=r(t(6375)),s=r(t(8714)),a=r(t(416)),u=r(t(7426)),c=t(9974),l=new Map,f=new Map,B=1;function d(A){var e=f.get(A);return e||(e=B++,f.set(A,e),l.set(e,A),e)}function h(A,e){var t=(void 0===e?{}:e).depth,r=void 0===t?1:t,n=d(A),o={nodeName:A.nodeName,nodeType:A.nodeType,localName:A.localName||"",nodeValue:A.nodeValue||"",nodeId:n,backendNodeId:n};if(A.parentNode&&(o.parentId=d(A.parentNode)),10===A.nodeType)return(0,u.default)(o,{publicId:"",systemId:""});if(A.attributes){var s=[];(0,i.default)(A.attributes,function(A){var e=A.name,t=A.value;return s.push(e,t)}),o.attributes=s}A.shadowRoot?o.shadowRoots=[h(A.shadowRoot,{depth:1})]:A.chobitsuShadowRoot&&(o.shadowRoots=[h(A.chobitsuShadowRoot,{depth:1})]),function(A){if(window.ShadowRoot)return A instanceof ShadowRoot;return!1}(A)&&(o.shadowRootType=A.mode||"user-agent");var a=p(A.childNodes);o.childNodeCount=a.length;var c=1===o.childNodeCount&&3===a[0].nodeType;return(r>0||c)&&(o.children=g(A,r)),o}function g(A,e){var t=p(A.childNodes);return(0,n.default)(t,function(A){return h(A,{depth:e-1})})}function p(A){return o.default(A,function(A){return w(A)})}function w(A){if(1===A.nodeType){var e=A.getAttribute("class")||"";if((0,a.default)(e,"__chobitsu-hide__")||(0,a.default)(e,"html2canvas-container"))return!1}var t=!(3===A.nodeType&&""===(0,s.default)(A.nodeValue||""));return t&&A.parentNode?w(A.parentNode):t}},6730:function(A,e){e=function(A,e,t){var r=A.length;e=null==e?0:e<0?Math.max(r+e,0):Math.min(e,r),t=null==t?r:t<0?Math.max(r+t,0):Math.min(t,r);for(var n=[];e"));var u=a.slice(e,t);return null===(u=u.match(s))?[]:u};var s=/[^\s,]+/g;A.exports=e},7161:function(A,e,t){"use strict";var r=t(1337),n=0,o=Math.random(),i=r(1.1.toString);A.exports=function(A){return"Symbol("+(void 0===A?"":A)+")_"+i(++n+o,36)}},7166:function(A,e,t){"use strict";function r(A){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},r(A)}var n=t(8565),o=t(5732),i=t(1273),s=function(A){return o.slice(0,A.length)===A};A.exports=s("Bun/")?"BUN":s("Cloudflare-Workers")?"CLOUDFLARE":s("Deno/")?"DENO":s("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==r(Deno.version)?"DENO":"process"===i(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"},7167:function(A,e,t){"use strict";var r=t(3050).IteratorPrototype,n=t(8657),o=t(5323),i=t(6642),s=t(8228),a=function(){return this};A.exports=function(A,e,t,u){var c=e+" Iterator";return A.prototype=n(r,{next:o(+!u,t)}),i(A,c,!1,!0),s[c]=a,A}},7200:function(A,e,t){"use strict";var r=t(4470);A.exports=function(A){var e=+A;return e!=e||0===e?0:r(e)}},7211:function(A,e,t){"use strict";var r=t(1337),n=t(9274),o=t(9348),i=t(9594).indexOf,s=t(7932),a=r([].push);A.exports=function(A,e){var t,r=o(A),u=0,c=[];for(t in r)!n(s,t)&&n(r,t)&&a(c,t);for(;e.length>u;)n(r,t=e[u++])&&(~i(c,t)||a(c,t));return c}},7302:function(A,e,t){"use strict";var r=t(921),n=t(5607),o=t(6909),i=t(6385);A.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var A,e=!1,t={};try{(A=r(Object.prototype,"__proto__","set"))(t,[]),e=t instanceof Array}catch(A){}return function(t,r){return o(t),i(r),n(t)?(e?A(t,r):t.__proto__=r,t):t}}():void 0)},7303:function(A,e,t){"use strict";var r=this&&this.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(e,"__esModule",{value:!0}),e.getUsageAndQuota=function(){return{quota:0,usage:0,overrideActive:!1,usageBreakdown:[]}},e.clearDataForOrigin=function(A){var e=A.storageTypes.split(",");(0,n.default)(e,function(A){if("cookies"===A){var e=(0,a.getCookies)().cookies;(0,n.default)(e,function(A){var e=A.name;return(0,o.default)(e)})}else"local_storage"===A&&(u.clear(),c.clear())})},e.getTrustTokens=function(){return{tokens:[]}},e.getStorageKeyForFrame=function(){return{storageKey:location.origin}},e.getSharedStorageMetadata=function(){return{metadata:{creationTime:0,length:0,remainingBudget:0,bytesUsed:0}}},e.setStorageBucketTracking=function(){s.default.trigger("Storage.storageBucketCreatedOrUpdated",{bucketInfo:{bucket:{storageKey:location.origin},durability:"relaxed",expiration:0,id:"0",persistent:!1,quota:0}})};var n=r(t(6375)),o=r(t(8769)),i=r(t(4978)),s=r(t(2271)),a=t(4212),u=(0,i.default)("local"),c=(0,i.default)("session")},7358:function(A,e,t){"use strict";var r=t(8149),n=t(5136),o=t(1129),i=t(236),s=t(2098),a=t(6721);r({target:"Promise",stat:!0,forced:t(268)},{race:function(A){var e=this,t=i.f(e),r=t.reject,u=s(function(){var i=o(e.resolve);a(A,function(A){n(i,e,A).then(t.resolve,r)})});return u.error&&r(u.value),t.promise}})},7418:function(A,e,t){"use strict";var r,n=this&&this.__createBinding||(Object.create?function(A,e,t,r){void 0===r&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);n&&!("get"in n?!e.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(A,r,n)}:function(A,e,t,r){void 0===r&&(r=t),A[r]=e[t]}),o=this&&this.__setModuleDefault||(Object.create?function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e})}:function(A,e){A.default=e}),i=this&&this.__importStar||(r=function(A){return r=Object.getOwnPropertyNames||function(A){var e=[];for(var t in A)Object.prototype.hasOwnProperty.call(A,t)&&(e[e.length]=t);return e},r(A)},function(A){if(A&&A.__esModule)return A;var e={};if(null!=A)for(var t=r(A),i=0;i"),e))return void t.push(A);var o=[];(0,v.default)(A.attributes,function(A){var e=A.name,t=A.value;return o.push(e,t)});for(var i=0,s=o.length;i"),g.default.parse(o)[0].attrs));var o},e.setAttributeValue=function(A){var e=A.nodeId,t=A.name,r=A.value;(0,c.getNode)(e).setAttribute(t,r)},e.setInspectedNode=function(A){var e=(0,c.getNode)(A.nodeId);S.unshift(e),S.length>5&&S.pop();for(var t=0;t<5;t++)(0,F.setGlobal)("$".concat(t),S[t])},e.setNodeValue=function(A){var e=A.nodeId,t=A.value;(0,c.getNode)(e).nodeValue=t},e.setOuterHTML=function(A){var e=A.nodeId,t=A.outerHTML;(0,c.getNode)(e).outerHTML=t},e.getDOMNodeId=function(A){var e=A.node;return{nodeId:u.getOrCreateNodeId(e)}},e.getDOMNode=function(A){var e=A.nodeId;return{node:(0,c.getNode)(e)}},e.getTopLayerElements=function(){return{nodeIds:[]}},e.getNodesForSubtreeByStyle=function(){return{nodeIds:[]}};var a=s(t(2271)),u=i(t(6723)),c=t(6723),l=i(t(9110)),f=s(t(4507)),B=s(t(6016)),d=s(t(9267)),h=s(t(9057)),g=s(t(7823)),p=s(t(6018)),w=s(t(1881)),Q=s(t(416)),C=s(t(9561)),v=s(t(6375)),y=s(t(5324)),m=s(t(3527)),U=s(t(6158)),F=t(893),b=t(9974);var E,H=!1;(E=Element.prototype.attachShadow)&&(Element.prototype.attachShadow=function(A){var e=E.apply(this,[A]);if(!u.isValidNode(this))return e;if(this.chobitsuShadowRoot=e,H){f.default.observe(e);var t=(0,c.getNodeId)(this);t&&a.default.trigger("DOM.shadowRootPushed",{hostId:t,root:u.wrap(e,{depth:1})})}return e});var x=new Map;function I(A){for(var e=[A],t=A.parentNode;t;){if(e.push(t),n=(0,c.getNodeId)(t))break;t=t.parentNode}for(;e.length;){var r=e.pop(),n=(0,c.getNodeId)(r);a.default.trigger("DOM.setChildNodes",{parentId:n,nodes:u.getChildNodes(r,1)})}return(0,c.getNodeId)(A)}var S=[];function O(A,e){for(var t=u.filterNodes(A.childNodes),r=0,n=t.length;r0&&r[0]<4?1:+(r[0]+r[1])),!n&&i&&(!(r=i.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/))&&(n=+r[1]),A.exports=n},7445:function(A,e,t){"use strict";var r=t(3930);A.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},7463:function(A,e,t){"use strict";var r=t(8149),n=t(8565),o=t(1337),i=t(4929),s=t(13),a=t(7966),u=t(6721),c=t(2918),l=t(2756),f=t(2934),B=t(5607),d=t(3930),h=t(5371),g=t(6642),p=t(5630);A.exports=function(A,e,t){var w=-1!==A.indexOf("Map"),Q=-1!==A.indexOf("Weak"),C=w?"set":"add",v=n[A],y=v&&v.prototype,m=v,U={},F=function(A){var e=o(y[A]);s(y,A,"add"===A?function(A){return e(this,0===A?0:A),this}:"delete"===A?function(A){return!(Q&&!B(A))&&e(this,0===A?0:A)}:"get"===A?function(A){return Q&&!B(A)?void 0:e(this,0===A?0:A)}:"has"===A?function(A){return!(Q&&!B(A))&&e(this,0===A?0:A)}:function(A,t){return e(this,0===A?0:A,t),this})};if(i(A,!l(v)||!(Q||y.forEach&&!d(function(){(new v).entries().next()}))))m=t.getConstructor(e,A,w,C),a.enable();else if(i(A,!0)){var b=new m,E=b[C](Q?{}:-0,1)!==b,H=d(function(){b.has(1)}),x=h(function(A){new v(A)}),I=!Q&&d(function(){for(var A=new v,e=5;e--;)A[C](e,e);return!A.has(-0)});x||((m=e(function(A,e){c(A,y);var t=p(new v,A,m);return f(e)||u(e,t[C],{that:t,AS_ENTRIES:w}),t})).prototype=y,y.constructor=m),(H||I)&&(F("delete"),F("has"),w&&F("get")),(I||E)&&F(C),Q&&y.clear&&delete y.clear}return U[A]=m,r({global:!0,constructor:!0,forced:m!==v},U),g(m,A),Q||t.setStrong(m,A,w),m}},7481:function(A,e,t){var r=t(6375),n=t(1603);e=function(A){A=n(A),r(A,function(A){(function(A){return"none"==getComputedStyle(A,"").getPropertyValue("display")})(A)&&(A.style.display=function(A){var e,t;o[A]||(e=document.createElement(A),document.documentElement.appendChild(e),t=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==t&&(t="block"),o[A]=t);return o[A]}(A.nodeName))})};var o={};A.exports=e},7495:function(A,e,t){var r=t(9347),n=t(6375),o=t(36),i=t(416),s=t(2210);e=function(A){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.important,s=void 0!==t&&t,u=e.inlineStyle,c=void 0!==u&&u,l=e.position,f=[0,0,0,0,0,void 0===l?0:l];s&&(f[0]=1),c&&(f[1]=1);var B=r.parse(A)[0];return n(B,function(A){var e=A.type,t=A.value;switch(e){case"id":f[2]++;break;case"class":case"attribute":f[3]++;break;case"pseudo":i(a,t.replace(/:/g,""))?f[4]++:o(t,"::")||f[3]++;break;case"tag":"*"!==t&&f[4]++}}),f};var a=["first-letter","last-letter","first-line","last-line","first-child","last-child","before","after"];e.compare=function(A,e){return s(A.join("."),e.join("."))},A.exports=e},7501:function(A){"use strict";A.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},7502:function(A){"use strict";A.exports=!1},7512:function(A,e,t){var r=t(8288);e=function(A){return r(A).toLocaleUpperCase()},A.exports=e},7520:function(A,e,t){"use strict";var r=t(5607);A.exports=function(A){return r(A)||null===A}},7596:function(A){"use strict";A.exports=function(A){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(A)}},7608:function(A,e,t){"use strict";var r=t(7445),n=t(1337),o=t(5136),i=t(3930),s=t(2793),a=t(8308),u=t(8280),c=t(8660),l=t(6792),f=Object.assign,B=Object.defineProperty,d=n([].concat);A.exports=!f||i(function(){if(r&&1!==f({b:1},f(B({},"a",{enumerable:!0,get:function(){B(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var A={},e={},t=Symbol("assign detection"),n="abcdefghijklmnopqrst";return A[t]=7,n.split("").forEach(function(A){e[A]=A}),7!==f({},A)[t]||s(f({},e)).join("")!==n})?function(A,e){for(var t=c(A),n=arguments.length,i=1,f=a.f,B=u.f;n>i;)for(var h,g=l(arguments[i++]),p=f?d(s(g),f(g)):s(g),w=p.length,Q=0;w>Q;)h=p[Q++],r&&!o(B,g,h)||(t[h]=g[h]);return t}:f},7638:function(A,e){e=function(A){var e=A.length,t=Array(e);e--;for(var r=0;r<=e;r++)t[e-r]=A[r];return t},A.exports=e},7640:function(A,e,t){var r=t(3993);e=function(A){return"[object Set]"===r(A)},A.exports=e},7642:function(A,e,t){"use strict";var r=t(5136),n=t(5607),o=t(9800),i=t(5945),s=t(2439),a=t(226),u=TypeError,c=a("toPrimitive");A.exports=function(A,e){if(!n(A)||o(A))return A;var t,a=i(A,c);if(a){if(void 0===e&&(e="default"),t=r(a,A,e),!n(t)||o(t))return t;throw new u("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(A,e)}},7669:function(A,e,t){"use strict";var r=t(1907);A.exports=function(A){return r(A.length)}},7689:function(A,e,t){"use strict";var r=t(1337);A.exports=r([].slice)},7714:function(A,e,t){var r=t(3095),n=t(5613),o=t(3829),i=t(2615),s=t(5720),a=t(9990),u=t(9561);(e=function(A,e){var t;if(e=u(e),r(A))t=new Uint8Array(n.decode(A));else if(o(A))A=A.slice(0),t=new Uint8Array(A);else if(i(A))t=new Uint8Array(A);else if("uint8array"===a(A))t=A.slice(0);else if(s(A)){t=new Uint8Array(A.length);for(var c=0;c2?t-2:0),l=2;l=0&&A.indexOf(e,t)===t},A.exports=e},7823:function(A,e,t){var r=t(9234),n=t(6164),o=t(2615),i=t(6375),s=t(3095),a=t(3577);var u=function(A){return A.replace(/"/g,'"')},c=function(A){return A.replace(/"/g,""")};e={parse:function(A){var e=[],t=new n;return r(A,{start:function(A,e){e=a(e,function(A){return u(A)}),t.push({tag:A,attrs:e})},end:function(){var A=t.pop();if(t.size){var r=t.peek();o(r.content)||(r.content=[]),r.content.push(A)}else e.push(A)},comment:function(A){var r="\x3c!--".concat(A,"--\x3e"),n=t.peek();n?(n.content||(n.content=[]),n.content.push(r)):e.push(r)},text:function(A){var r=t.peek();r?(r.content||(r.content=[]),r.content.push(A)):e.push(A)}}),e},stringify:function A(e){var t="";return o(e)?i(e,function(e){return t+=A(e)}):s(e)?t=e:(t+="<".concat(e.tag),i(e.attrs,function(A,e){return t+=" ".concat(e,'="').concat(c(A),'"')}),t+=">",e.content&&(t+=A(e.content)),t+="")),t}},A.exports=e},7838:function(A,e){e=function(){},A.exports=e},7859:function(A,e,t){var r=t(4866);e=function(A,e,t){return r(t)&&(t=e,e=void 0),!r(e)&&At?t:A},A.exports=e},7880:function(A,e,t){var r=t(8714),n=t(6375),o=t(4866),i=t(2615),s=t(6018),a=t(9057),u=t(1692),c=t(3061);e={parse:function(A){var e={};return A=r(A).replace(l,""),n(A.split("&"),function(A){var t=A.split("="),r=t.shift(),n=t.length>0?t.join("="):null;r=decodeURIComponent(r),n=decodeURIComponent(n),o(e[r])?e[r]=n:i(e[r])?e[r].push(n):e[r]=[e[r],n]}),e},stringify:function(A,t){return u(s(A,function(A,r){return c(A)&&a(A)?"":i(A)?e.stringify(A,r):(t?encodeURIComponent(t):encodeURIComponent(r))+"="+encodeURIComponent(A)}),function(A){return A.length>0}).join("&")}};var l=/^(\?|#|&)/g;A.exports=e},7932:function(A){"use strict";A.exports={}},7966:function(A,e,t){"use strict";function r(A){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},r(A)}var n=t(8149),o=t(1337),i=t(7932),s=t(5607),a=t(9274),u=t(1722).f,c=t(5093),l=t(3421),f=t(3839),B=t(7161),d=t(3191),h=!1,g=B("meta"),p=0,w=function(A){u(A,g,{value:{objectID:"O"+p++,weakData:{}}})},Q=A.exports={enable:function(){Q.enable=function(){},h=!0;var A=c.f,e=o([].splice),t={};t[g]=1,A(t).length&&(c.f=function(t){for(var r=A(t),n=0,o=r.length;n>6*e)+t);e>0;){r+=f(128|63&A>>6*(e-1)),e--}return r}function d(A){for(;;){if(o>=i&&u){if(A)return h();throw new Error("Invalid byte index")}if(o===i)return!1;var e=n[o];if(o++,u){if(el){if(A)return o--,h();throw new Error("Invalid continuation byte")}if(c=128,l=191,s=s<<6|63&e,++a===u){var t=s;return s=0,u=0,a=0,t}}else{if(!(128&e))return e;if(192==(224&e))u=1,s=31&e;else if(224==(240&e))224===e&&(c=160),237===e&&(l=159),u=2,s=15&e;else{if(240!=(248&e)){if(A)return h();throw new Error("Invalid UTF-8 detected")}240===e&&(c=144),244===e&&(l=143),u=3,s=7&e}}}}function h(){var A=o-a-1;return o=A+1,s=0,u=0,a=0,c=128,l=191,n[A]}A.exports=e},7993:function(A,e,t){var r=t(3095);e=function(A){return r(A)?"0"!==(A=A.toLowerCase())&&""!==A&&"false"!==A:!!A},A.exports=e},8001:function(A,e,t){var r=t(5401);e=function(A){return!!r(A)&&A%2!=0},A.exports=e},8075:function(A,e,t){"use strict";var r=t(8313);A.exports=r.isStandardBrowserEnv()?function(){var A,e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");function n(A){var r=A;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return A=n(window.location.href),function(e){var t=r.isString(e)?n(e):e;return t.protocol===A.protocol&&t.host===A.host}}():function(){return!0}},8149:function(A,e,t){"use strict";function r(A){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},r(A)}var n=t(8565),o=t(5040).f,i=t(9168),s=t(13),a=t(2854),u=t(3241),c=t(4929);A.exports=function(A,e){var t,l,f,B,d,h=A.target,g=A.global,p=A.stat;if(t=g?n:p?n[h]||a(h,{}):n[h]&&n[h].prototype)for(l in e){if(B=e[l],f=A.dontCallGetSet?(d=o(t,l))&&d.value:t[l],!c(g?l:h+(p?".":"#")+l,A.forced)&&void 0!==f){if(r(B)==r(f))continue;u(B,f)}(A.sham||f&&f.sham)&&i(B,"sham",!0),s(t,l,B,A)}}},8150:function(A,e){var t=0;e=function(A){var e=++t+"";return A?A+e:e},A.exports=e},8156:function(A,e,t){"use strict";var r,n=this&&this.__assign||function(){return n=Object.assign||function(A){for(var e,t=1,r=arguments.length;t0&&n[n.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1](E=2e3)&&(E=5*c),h=u.toDataURL("image/jpeg").replace(/^data:image\/jpeg;base64,/,""),f?[4,f.ready("ack")]:[3,3];case 2:a.sent(),a.label=3;case 3:return f=new p.default,y.default.trigger("Page.screencastFrame",{data:h,sessionId:1,metadata:{deviceWidth:e,deviceHeight:t,pageScaleFactor:1,offsetTop:r,scrollOffsetX:0,scrollOffsetY:0,timestamp:(0,g.default)()}}),l=setTimeout(I,E),H=!1,[2]}})})}},8198:function(A,e,t){"use strict";var r=t(7445),n=t(1835),o=t(1722),i=t(5394),s=t(9348),a=t(2793);e.f=r&&!n?Object.defineProperties:function(A,e){i(A);for(var t,r=s(e),n=a(e),u=n.length,c=0;u>c;)o.f(A,t=n[c++],r[t]);return A}},8228:function(A){"use strict";A.exports={}},8280:function(A,e){"use strict";var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!t.call({1:2},1);e.f=n?function(A){var e=r(this,A);return!!e&&e.enumerable}:t},8288:function(A,e){e=function(A){return null==A?"":A.toString()},A.exports=e},8298:function(A,e,t){var r=t(6996);function n(A,e){this[e]=A.replace(/\w/,function(A){return A.toUpperCase()})}e=function(A){var e=r(A),t=e[0];return e.shift(),e.forEach(n,e),t+=e.join("")},A.exports=e},8299:function(A,e,t){e=t(6045)(t(2609),2),A.exports=e},8303:function(A){"use strict";A.exports=function(A){return function(e){return A.apply(null,e)}}},8308:function(A,e){"use strict";e.f=Object.getOwnPropertySymbols},8313:function(A,e,t){"use strict";function r(A){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},r(A)}var n,o=t(6999),i=Object.prototype.toString,s=(n=Object.create(null),function(A){var e=i.call(A);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())});function a(A){return A=A.toLowerCase(),function(e){return s(e)===A}}function u(A){return Array.isArray(A)}function c(A){return void 0===A}var l=a("ArrayBuffer");function f(A){return null!==A&&"object"===r(A)}function B(A){if("object"!==s(A))return!1;var e=Object.getPrototypeOf(A);return null===e||e===Object.prototype}var d=a("Date"),h=a("File"),g=a("Blob"),p=a("FileList");function w(A){return"[object Function]"===i.call(A)}var Q=a("URLSearchParams");function C(A,e){if(null!=A)if("object"!==r(A)&&(A=[A]),u(A))for(var t=0,n=A.length;t0;)i[o=r[n]]||(e[o]=A[o],i[o]=!0);A=Object.getPrototypeOf(A)}while(A&&(!t||t(A,e))&&A!==Object.prototype);return e},kindOf:s,kindOfTest:a,endsWith:function(A,e,t){A=String(A),(void 0===t||t>A.length)&&(t=A.length),t-=e.length;var r=A.indexOf(e,t);return-1!==r&&r===t},toArray:function(A){if(!A)return null;var e=A.length;if(c(e))return null;for(var t=new Array(e);e-- >0;)t[e]=A[e];return t},isTypedArray:y,isFileList:p}},8330:function(A,e){e=function(A){var e=A?A.length:0;if(e)return A[e-1]},A.exports=e},8386:function(A,e,t){"use strict";var r=t(8313);function n(){this.handlers=[]}n.prototype.use=function(A,e,t){return this.handlers.push({fulfilled:A,rejected:e,synchronous:!!t&&t.synchronous,runWhen:t?t.runWhen:null}),this.handlers.length-1},n.prototype.eject=function(A){this.handlers[A]&&(this.handlers[A]=null)},n.prototype.forEach=function(A){r.forEach(this.handlers,function(e){null!==e&&A(e)})},A.exports=n},8440:function(A,e){var t=Object.prototype.hasOwnProperty;e=function(A,e){return t.call(A,e)},A.exports=e},8565:function(A,e,t){"use strict";function r(A){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},r(A)}var n=function(A){return A&&A.Math===Math&&A};A.exports=n("object"==("undefined"==typeof globalThis?"undefined":r(globalThis))&&globalThis)||n("object"==("undefined"==typeof window?"undefined":r(window))&&window)||n("object"==("undefined"==typeof self?"undefined":r(self))&&self)||n("object"==(void 0===t.g?"undefined":r(t.g))&&t.g)||n("object"==r(this)&&this)||function(){return this}()||Function("return this")()},8572:function(A,e,t){var r=t(6375),n=t(1603);e=function(A){A=n(A),r(A,function(A){var e=A.parentNode;e&&e.removeChild(A)})},A.exports=e},8589:function(A,e,t){"use strict";var r=t(6874),n=t(1722);A.exports=function(A,e,t){return t.get&&r(t.get,e,{getter:!0}),t.set&&r(t.set,e,{setter:!0}),n.f(A,e,t)}},8652:function(A,e,t){"use strict";var r=t(8565),n=t(7445),o=Object.getOwnPropertyDescriptor;A.exports=function(A){if(!n)return r[A];var e=o(r,A);return e&&e.value}},8657:function(A,e,t){"use strict";var r,n=t(5394),o=t(8198),i=t(9010),s=t(7932),a=t(3482),u=t(4350),c=t(2304),l="prototype",f="script",B=c("IE_PROTO"),d=function(){},h=function(A){return"<"+f+">"+A+""},g=function(A){A.write(h("")),A.close();var e=A.parentWindow.Object;return A=null,e},p=function(){try{r=new ActiveXObject("htmlfile")}catch(A){}var A,e,t;p="undefined"!=typeof document?document.domain&&r?g(r):(e=u("iframe"),t="java"+f+":",e.style.display="none",a.appendChild(e),e.src=String(t),(A=e.contentWindow.document).open(),A.write(h("document.F=Object")),A.close(),A.F):g(r);for(var n=i.length;n--;)delete p[l][i[n]];return p()};s[B]=!0,A.exports=Object.create||function(A,e){var t;return null!==A?(d[l]=n(A),t=new d,d[l]=null,t[B]=A):t=p(),void 0===e?t:o.f(t,e)}},8660:function(A,e,t){"use strict";var r=t(6909),n=Object;A.exports=function(A){return n(r(A))}},8706:function(A){"use strict";A.exports=function(A,e){try{1===arguments.length?console.error(A):console.error(A,e)}catch(A){}}},8709:function(A,e,t){var r=t(522);e=function(){var A=r(16);return A[6]=15&A[6]|64,A[8]=63&A[8]|128,n[A[0]]+n[A[1]]+n[A[2]]+n[A[3]]+"-"+n[A[4]]+n[A[5]]+"-"+n[A[6]]+n[A[7]]+"-"+n[A[8]]+n[A[9]]+"-"+n[A[10]]+n[A[11]]+n[A[12]]+n[A[13]]+n[A[14]]+n[A[15]]};for(var n=[],o=0;o<256;o++)n[o]=(o+256).toString(16).substr(1);A.exports=e},8714:function(A,e,t){var r=t(288),n=t(6130);e=function(A,e){return null==e&&A.trim?A.trim():r(n(A,e),e)},A.exports=e},8716:function(A,e,t){"use strict";var r=t(7166);A.exports="NODE"===r},8769:function(A,e,t){var r=t(924);e=function(A){var e,t=window.location,n=t.hostname,o=t.pathname,i=n.split("."),s=o.split("/"),a="",u=s.length;if(!d())for(var c=i.length-1;c>=0;c--){var l=i[c];if(""!==l){if(d({domain:a=""===a?l:l+"."+a,path:e="/"})||d({domain:a}))return;for(var f=0;f-1&&(s=t.slice(0,a),t=t.slice(a));var f=s.lastIndexOf("@");-1!==f&&(e.auth=decodeURIComponent(s.slice(0,f)),s=s.slice(f+1)),e.hostname=s;var B=s.match(h);B&&(":"!==(B=B[0])&&(e.port=B.substr(1)),e.hostname=s.substr(0,s.length-B.length))}var p=t.indexOf("#");-1!==p&&(e.hash=t.substr(p),t=t.slice(0,p));var w=t.indexOf("?");return-1!==w&&(e.query=i.parse(t.substr(w+1)),t=t.slice(0,w)),e.pathname=t||"/",e},stringify:function(A){var e=A.protocol+(A.slashes?"//":"")+(A.auth?encodeURIComponent(A.auth)+"@":"")+A.hostname+(A.port?":"+A.port:"")+A.pathname;return s(A.query)||(e+="?"+i.stringify(A.query)),A.hash&&(e+=A.hash),e}});var d=/^([a-z0-9.+-]+:)/i,h=/:[0-9]*$/,g=["/","?","#"];A.exports=e},9001:function(A,e,t){var r=t(9812),n=t(2386),o=!1;function i(A){o&&e.emit(A)}e={start:function(){o=!0},stop:function(){o=!1}},n.mixin(e),r?(window.addEventListener("error",function(A){if(A.error)i(A.error);else if(A.message){var e=new Error(A.message);e.stack="Error: ".concat(A.message," \n at ").concat(A.filename,":").concat(A.lineno,":").concat(A.colno),i(e)}}),window.addEventListener("unhandledrejection",function(A){i(A.reason)})):(process.on("uncaughtException",i),process.on("unhandledRejection",i)),A.exports=e},9010:function(A){"use strict";A.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9043:function(A,e){e=function(A){return null==A},A.exports=e},9057:function(A,e,t){var r=t(1392),n=t(2615),o=t(3095),i=t(3171),s=t(6190);e=function(A){return null==A||(r(A)&&(n(A)||o(A)||i(A))?0===A.length:0===s(A).length)},A.exports=e},9110:function(A,e,t){"use strict";var r=this&&this.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(e,"__esModule",{value:!0}),e.clear=function(){C.clear(),v.clear(),y.clear()},e.wrap=b,e.getObj=E,e.releaseObj=function(A){var e=E(A);v.delete(e),y.delete(A),C.delete(A)},e.getProperties=function(A){for(var e=A.accessorPropertiesOnly,t=A.objectId,r=A.ownProperties,o=A.generatePreview,i=[],a={prototype:!r,unenumerable:!0,symbol:!e},u=C.get(t),f=y.get(t),B=(0,h.default)(u,a),d=(0,p.default)(u),v=0,U=B.length;vH&&(i=H,r=!0);for(var s=0;sH){r=!0;break}u.push({key:x(d),value:x(A.get(d))}),s++,d=f.next().value}t.entries=u}else if((0,l.default)(A)){var h=[],g=(s=0,A.keys());for(d=g.next().value;d;){if(s>H){r=!0;break}h.push({value:x(d)}),s++,d=g.next().value}t.entries=h}return t.overflow=r,t}function I(A,e){var t=O(e);t.name=A;var r,o=t.subtype;return r="object"===t.type?"null"===o?"null":"array"===o?"Array(".concat(e.length,")"):"map"===o?"Map(".concat(e.size,")"):"set"===o?"Set(".concat(e.size,")"):(0,Q.getType)(e,!1):(0,n.default)(e),t.value=r,t}function S(A,e){void 0===e&&(e=A);var t=O(A),r=t.type,o=t.subtype;return"string"===r?A:"number"===r||"symbol"===r?(0,n.default)(A):"function"===r?(0,d.default)(A):"array"===o?"Array(".concat(A.length,")"):"map"===o?"Map(".concat(e.size,")"):"set"===o?"Set(".concat(e.size,")"):"regexp"===o?(0,n.default)(A):"error"===o?A.stack:"internal#entry"===o?A.name?'{"'.concat((0,n.default)(A.name),'" => "').concat((0,n.default)(A.value),'"}'):'"'.concat((0,n.default)(A.value),'"'):(0,Q.getType)(A,!1)}function O(A){var e=typeof A,t="object";if(A instanceof L)t="internal#entry";else if((0,o.default)(A))t="null";else if((0,i.default)(A))t="array";else if((0,f.default)(A))t="regexp";else if((0,u.default)(A))t="error";else if((0,c.default)(A))t="map";else if((0,l.default)(A))t="set";else try{(0,a.default)(A)&&(t="node")}catch(A){}return{type:e,subtype:t}}var L=function(A,e){e&&(this.name=e),this.value=A};function K(A){return A instanceof L||!!(A[0]&&A[0]instanceof L)}},9131:function(A,e,t){var r=t(6968),n=t(4866),o=t(8298);e=r(function(A,e){return n(e)?(A=o(A),!n(i[A])):(i.cssText="",i.cssText=A+":"+e,!!i.length)},function(A,e){return A+" "+e});var i=document.createElement("p").style;A.exports=e},9168:function(A,e,t){"use strict";var r=t(7445),n=t(1722),o=t(5323);A.exports=r?function(A,e,t){return n.f(A,e,o(1,t))}:function(A,e,t){return A[e]=t,A}},9209:function(A,e,t){e=t(3653)(function(A,e){for(var t=A.length,r=0,n=e.length;r]*>")).exec(A);if(B){var d=A.substring(0,B.index);A=A.substring(B.index+B[0].length),d&&e.text&&e.text(d)}y("",r(n))}else{if(o(A,"\x3c!--")){var h=A.indexOf("--\x3e");h>=0&&(e.comment&&e.comment(A.substring(4,h)),A=A.substring(h+3),t=!1)}else if(o(A,"=0&&n[r]!==t;r--);else r=0;if(r>=0){for(var o=n.length-1;o>=r;o--)e.end&&e.end(n[o]);n.length=r}}y()};var s=/^\s]+))?)*)\s*(\/?)>/i,a=/^<\/([-A-Za-z0-9_]+)[^>]*>/,u=/^<([-A-Za-z0-9_]+)((?:\s+[-A-Za-z0-9_:@.]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/i,c=/([-A-Za-z0-9_:@.]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,l=n("script,style".split(","));A.exports=e},9267:function(A,e){e=function(A){return null===A},A.exports=e},9270:function(A,e,t){var r=t(3380),n=t(8440),o=t(6375),i=t(6730),s=t(8299),a=t(1829);e=r({initialize:function(){this._events=this._events||{}},on:function(A,e){return this._events[A]=this._events[A]||[],this._events[A].push(e),this},off:function(A,e){var t=this._events;if(n(t,A)){var r=t[A].indexOf(e);return r>-1&&t[A].splice(r,1),this}},once:function(A,e){return this.on(A,s(e)),this},emit:function(A){var e=this;if(n(this._events,A)){var t=i(arguments,1),r=a(this._events[A]);return o(r,function(A){return A.apply(e,t)},this),this}},removeAllListeners:function(A){return A?delete this._events[A]:this._events={},this}},{mixin:function(A){o(["on","off","once","emit","removeAllListeners"],function(t){A[t]=e.prototype[t]}),A._events=A._events||{}}}),A.exports=e},9274:function(A,e,t){"use strict";var r=t(1337),n=t(8660),o=r({}.hasOwnProperty);A.exports=Object.hasOwn||function(A,e){return o(n(A),e)}},9340:function(A,e,t){"use strict";var r=t(5136),n=t(5394),o=t(5945);A.exports=function(A,e,t){var i,s;n(A);try{if(!(i=o(A,"return"))){if("throw"===e)throw t;return t}i=r(i,A)}catch(A){s=!0,i=A}if("throw"===e)throw t;if(s)throw i;return n(i),t}},9346:function(A,e,t){"use strict";var r=t(1858);A.exports=function(A,e){return void 0===A?arguments.length<2?"":e:r(A)}},9347:function(A,e,t){var r=t(8714),n=t(6375),o=t(5552),i=t(6018),s="[\\x20\\t\\r\\n\\f]",a="(?:\\\\[\\da-fA-F]{1,6}".concat(s,"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+"),u="\\[".concat(s,"*(").concat(a,")(?:").concat(s,"*([*^$|!~]?=)").concat(s,"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(").concat(a,"))|)").concat(s,"*\\]"),c="::?(".concat(a,")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|").concat(u,")*)|.*)\\)|)"),l=new RegExp("^".concat(s,"*,").concat(s,"*")),f=new RegExp("^".concat(s,"*([>+~]|").concat(s,")").concat(s,"*")),B={id:{reg:new RegExp("^#(".concat(a,")")),value:function(A){return A.slice(1)},toStr:function(A){return"#".concat(A)}},class:{reg:new RegExp("^\\.(".concat(a,")")),value:function(A){return A.slice(1)},toStr:function(A){return".".concat(A)}},tag:{reg:new RegExp("^(".concat(a,"|[*])")),value:o},attribute:{reg:new RegExp("^".concat(u)),value:function(A){return A.slice(1,A.length-1)},toStr:function(A){return"[".concat(A,"]")}},pseudo:{reg:new RegExp("^".concat(c)),value:o}};n(B,function(A){A.value||(A.value=o),A.toStr||(A.toStr=o)}),e={parse:function(A){A=r(A);for(var e,t,o,i=[];A&&(o&&!(t=l.exec(A))||(t&&(A=A.slice(t[0].length)),e=[],i.push(e)),o=!1,(t=f.exec(A))&&(o=t.shift(),A=A.slice(o.length),(o=r(o))||(o=" "),e.push({value:o,type:"combinator"})),n(B,function(n,i){var s=n.reg,a=n.value;(t=s.exec(A))&&(o=t.shift(),A=A.slice(o.length),o=r(o),e.push({value:a(o),type:i}))}),o););return i},stringify:function(A){return i(A,function(A){return(A=i(A,function(A){var e=A.type,t=A.value;return"combinator"===e?" "===t?t:" ".concat(t," "):B[e].toStr(t)})).join("")}).join(", ")}},A.exports=e},9348:function(A,e,t){"use strict";var r=t(6792),n=t(6909);A.exports=function(A){return r(n(A))}},9350:function(A,e,t){var r=t(3993);e="undefined"!=typeof process&&"[object process]"===r(process),A.exports=e},9376:function(A,e,t){"use strict";var r=t(5732);A.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},9393:function(A){"use strict";A.exports=function(A,e){return e?A.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):A}},9401:function(A,e,t){"use strict";var r,n=this&&this.__assign||function(){return n=Object.assign||function(A){for(var e,t=1,r=arguments.length;t0&&n[n.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]]*>/g.test(A))try{var e=s.default.parse(A);return B(e,function(A){A.attrs&&A.attrs.class&&(A.attrs.class=t(A.attrs.class))}),s.default.stringify(e)}catch(e){return t(A)}return t(A)}};var d,h="ontouchstart"in i.default,g={start:"touchstart",move:"touchmove",end:"touchend"},p={start:"mousedown",move:"mousemove",end:"mouseup"};e.drag=function(A){return h?g[A]:p[A]},e.eventClient=function(A,e){var t="x"===A?"clientX":"clientY";return e[t]?e[t]:e.changedTouches?e.changedTouches[0][t]:0},e.eventPage=function(A,e){var t="x"===A?"pageX":"pageY";return e[t]?e[t]:e.changedTouches?e.changedTouches[0][t]:0},e.measuredScrollbarWidth=function(){if((0,a.default)(d))return d;if(!document)return 16;var A=document.createElement("div"),e=document.createElement("div");return A.setAttribute("style","display: block; width: 100px; height: 100px; overflow: scroll;"),e.setAttribute("style","height: 200px"),A.appendChild(e),document.body.appendChild(A),d=A.offsetWidth-A.clientWidth,document.body.removeChild(A),d},e.hasVerticalScrollbar=function(A){return A.scrollHeight>A.offsetHeight},e.executeAfterTransition=function(A,e){if((0,f.default)(A))return e();var t=function(r){r.target===A&&(A.removeEventListener("transitionend",t),e())};A.addEventListener("transitionend",t)},e.pxToNum=function(A){return(0,c.default)(A.replace("px",""))},e.getPlatform=function(){var A=(0,l.default)();return"os x"===A?"mac":A},e.resetCanvasSize=function(A){A.width=Math.round(A.offsetWidth*window.devicePixelRatio),A.height=Math.round(A.offsetHeight*window.devicePixelRatio)}},9531:function(A,e,t){"use strict";var r,n=this&&this.__extends||(r=function(A,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t])},r(A,e)},function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=A}r(A,e),A.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}),o=this&&this.__assign||function(){return o=Object.assign||function(A){for(var e,t=1,r=arguments.length;t=A.length&&(A=void 0),{value:A&&A[r++],done:!A}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(e,"__esModule",{value:!0});var a=s(t(6905)),u=t(4631),c=t(9468),l=s(t(5484)),f=s(t(9414)),B=s(t(9561)),d=s(t(6375)),h=s(t(223)),g=s(t(6325)),p=s(t(7512)),w=s(t(7426)),Q=s(t(8298)),C=s(t(416)),v=s(t(5875)),y=s(t(3794)),m=s(t(3095));t(2415);var U=function(A){function e(e,t){void 0===t&&(t={});var r=A.call(this,e,{compName:"dom-highlighter"},t)||this;return r.overlay=new u.HighlightOverlay(window),r.reset=function(){var A=document.documentElement.clientWidth,e=document.documentElement.clientHeight;r.overlay.reset({viewportSize:{width:A,height:e},deviceScaleFactor:1,pageScaleFactor:1,pageZoomFactor:1,emulationScaleFactor:1,scrollX:window.scrollX,scrollY:window.scrollY})},r.initOptions(t,{showRulers:!1,showExtensionLines:!1,showInfo:!0,showStyles:!0,showAccessibilityInfo:!0,colorFormat:"hex",contentColor:"rgba(111, 168, 220, .66)",paddingColor:"rgba(147, 196, 125, .55)",borderColor:"rgba(255, 229, 153, .66)",marginColor:"rgba(246, 178, 107, .66)",monitorResize:!0}),r.overlay.setContainer(e),r.overlay.setPlatform("mac"),r.redraw=(0,f.default)(function(){r.reset(),r.draw()},16),r.redraw(),r.bindEvent(),r}return n(e,A),e.prototype.highlight=function(A,e){e&&(0,w.default)(this.options,e),this.target=A,A instanceof HTMLElement&&this.options.monitorResize&&(this.resizeSensor&&this.resizeSensor.destroy(),this.resizeSensor=new l.default(A),this.resizeSensor.addListener(this.redraw)),this.redraw()},e.prototype.hide=function(){this.target=null,this.redraw()},e.prototype.intercept=function(A){this.interceptor=A},e.prototype.destroy=function(){window.removeEventListener("resize",this.redraw),window.removeEventListener("scroll",this.redraw),this.resizeSensor&&this.resizeSensor.destroy(),A.prototype.destroy.call(this)},e.prototype.draw=function(){var A=this.target;A&&(A instanceof Text?this.drawText(A):this.drawElement(A))},e.prototype.drawText=function(A){var e=this.options,t=document.createRange();t.selectNode(A);var r=t.getBoundingClientRect(),n=r.left,o=r.top,i=r.width,s=r.height;t.detach();var a={paths:[{path:this.rectToPath({left:n,top:o,width:i,height:s}),fillColor:E(e.contentColor),name:"content"}],showExtensionLines:e.showExtensionLines,showRulers:e.showRulers};e.showInfo&&(a.elementInfo={tagName:"#text",nodeWidth:i,nodeHeight:s}),this.overlay.drawHighlight(a)},e.prototype.drawElement=function(A){var e={paths:this.getPaths(A),showExtensionLines:this.options.showExtensionLines,showRulers:this.options.showRulers,colorFormat:this.options.colorFormat};if(this.options.showInfo&&(e.elementInfo=this.getElementInfo(A)),this.interceptor){var t=this.interceptor(e);t&&(e=t)}this.overlay.drawHighlight(e)},e.prototype.getPaths=function(A){var e=this.options,t=window.getComputedStyle(A),r=A.getBoundingClientRect(),n=r.left,o=r.top,i=r.width,s=r.height,a=function(A){return(0,c.pxToNum)(t.getPropertyValue(A))},u=a("margin-left"),l=a("margin-right"),f=a("margin-top"),B=a("margin-bottom"),d=a("border-left-width"),h=a("border-right-width"),g=a("border-top-width"),p=a("border-bottom-width"),w=a("padding-left"),Q=a("padding-right"),C=a("padding-top"),v=a("padding-bottom");return[{path:this.rectToPath({left:n+d+w,top:o+g+C,width:i-d-w-h-Q,height:s-g-C-p-v}),fillColor:E(e.contentColor),name:"content"},{path:this.rectToPath({left:n+d,top:o+g,width:i-d-h,height:s-g-p}),fillColor:E(e.paddingColor),name:"padding"},{path:this.rectToPath({left:n,top:o,width:i,height:s}),fillColor:E(e.borderColor),name:"border"},{path:this.rectToPath({left:n-u,top:o-f,width:i+u+l,height:s+f+B}),fillColor:E(e.marginColor),name:"margin"}]},e.prototype.getElementInfo=function(A){var e=A.getBoundingClientRect(),t=e.width,r=e.height,n=A.getAttribute("class")||"";n=n.split(/\s+/).map(function(A){return"."+A}).join("");var o={tagName:(0,B.default)(A.tagName),className:n,idValue:A.id,nodeWidth:t,nodeHeight:r};return this.options.showStyles&&(o.style=this.getStyles(A)),this.options.showAccessibilityInfo&&(0,w.default)(o,this.getAccessibilityInfo(A)),o},e.prototype.getStyles=function(A){for(var e=window.getComputedStyle(A),t=!1,r=A.childNodes,n=0,o=r.length;n-1)},e.prototype.getAccessibleNameAndRole=function(A){var e=A.getAttribute("labelledby")||A.getAttribute("aria-label"),t=A.getAttribute("role"),r=(0,B.default)(A.tagName);return y.default.forEach(function(e){var n,o;if(!t){var s=e[0],a=e[2];if(s===r){if(a)try{for(var u=i(a),c=u.next();!c.done;c=u.next()){var l=c.value;if(A.getAttribute(l[0])!==l[1])return}}catch(A){n={error:A}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}t=e[1]}}}),{accessibleName:e||A.getAttribute("title")||"",accessibleRole:t||"generic"}},e.prototype.bindEvent=function(){var A=this;window.addEventListener("resize",this.redraw),window.addEventListener("scroll",this.redraw),this.on("optionChange",function(){return A.redraw()})},e.prototype.rectToPath=function(A){var e=A.left,t=A.top,r=A.width,n=A.height,o=[];return o.push("M",e,t),o.push("L",e+r,t),o.push("L",e+r,t+n),o.push("L",e,t+n),o.push("Z"),o},e}(a.default);e.default=U,A.exports=U,A.exports.default=U;var F=/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,b=/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*(?:\.\d+)?)\)$/;function E(A){return(0,m.default)(A)?A:A.a?"rgba(".concat(A.r,", ").concat(A.g,", ").concat(A.b,", ").concat(A.a,")"):"rgb(".concat(A.r,", ").concat(A.g,", ").concat(A.b,")")}function H(A,e,t){void 0===t&&(t=!1);var r={};return(0,d.default)(e,function(e){var n,o=A["text-opacity"===e?"color":e];o&&(n=o,(F.test(n)||b.test(n))&&(o=function(A){var e=h.default.parse(A),t=e.val[3]||1;return e.val=e.val.slice(0,3),e.val.push(Math.round(255*t)),"#"+(0,p.default)(g.default.encode(e.val))}(o),"text-opacity"===e&&(o=o.slice(7),o=g.default.decode(o)[0]/255)),t&&(e=(0,Q.default)(e)),r[e]=o)}),r}},9561:function(A,e,t){var r=t(8288);e=function(A){return r(A).toLocaleLowerCase()},A.exports=e},9594:function(A,e,t){"use strict";var r=t(9348),n=t(955),o=t(7669),i=function(A){return function(e,t,i){var s=r(e),a=o(s);if(0===a)return!A&&-1;var u,c=n(i,a);if(A&&t!=t){for(;a>c;)if((u=s[c++])!=u)return!0}else for(;a>c;c++)if((A||c in s)&&s[c]===t)return A||c||0;return!A&&-1}};A.exports={includes:i(!0),indexOf:i(!1)}},9614:function(A,e,t){var r=t(5324),n=t(6314),o=t(1603),i=t(3095),s=t(6375);function a(A){return i(A)?A.split(/\s+/):r(A)}e={add:function(A,t){A=o(A);var r=a(t);s(A,function(A){var t=[];s(r,function(r){e.has(A,r)||t.push(r)}),0!==t.length&&(A.className+=(A.className?" ":"")+t.join(" "))})},has:function(A,e){A=o(A);var t=new RegExp("(^|\\s)"+e+"(\\s|$)");return n(A,function(A){return t.test(A.className)})},toggle:function(A,t){A=o(A),s(A,function(A){if(!e.has(A,t))return e.add(A,t);e.remove(A,t)})},remove:function(A,e){A=o(A);var t=a(e);s(A,function(A){s(t,function(e){A.classList.remove(e)})})}},A.exports=e},9739:function(A,e,t){var r=t(9812),n=t(9350);e=function(A){function e(e){return A.indexOf(e)>-1}if(!A&&r&&(A=navigator.userAgent),A){if(A=A.toLowerCase(),e("windows phone"))return"windows phone";if(e("win"))return"windows";if(e("android"))return"android";if(e("ipad")||e("iphone")||e("ipod"))return"ios";if(e("mac"))return"os x";if(e("linux"))return"linux"}else if(n){var t=process,o=t.platform,i=t.env;if("win32"===o||"cygwin"===i.OSTYPE||"msys"===i.OSTYPE)return"windows";if("darwin"===o)return"os x";if("linux"===o)return"linux"}return"unknown"},A.exports=e},9789:function(A,e,t){"use strict";var r=t(8149),n=t(5136),o=t(1129),i=t(8780),s=t(236),a=t(2098),u=t(6721),c=t(268),l="No one promise resolved";r({target:"Promise",stat:!0,forced:c},{any:function(A){var e=this,t=i("AggregateError"),r=s.f(e),c=r.resolve,f=r.reject,B=a(function(){var r=o(e.resolve),i=[],s=0,a=1,B=!1;u(A,function(A){var o=s++,u=!1;a++,n(r,e,A).then(function(A){u||B||(B=!0,c(A))},function(A){u||B||(u=!0,i[o]=A,--a||f(new t(i,l)))})}),--a||f(new t(i,l))});return B.error&&f(B.value),r.promise}})},9800:function(A,e,t){"use strict";function r(A){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},r(A)}var n=t(8780),o=t(2756),i=t(2922),s=t(1049),a=Object;A.exports=s?function(A){return"symbol"==r(A)}:function(A){var e=n("Symbol");return o(e)&&i(e.prototype,a(A))}},9812:function(A,e){function t(A){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},t(A)}e="object"===("undefined"==typeof window?"undefined":t(window))&&"object"===("undefined"==typeof document?"undefined":t(document))&&9===document.nodeType,A.exports=e},9873:function(A,e,t){"use strict";var r=t(8313),n=t(4134),o=t(3057),i=t(6267),s=t(5476);function a(A){if(A.cancelToken&&A.cancelToken.throwIfRequested(),A.signal&&A.signal.aborted)throw new s}A.exports=function(A){return a(A),A.headers=A.headers||{},A.data=n.call(A,A.data,A.headers,A.transformRequest),A.headers=r.merge(A.headers.common||{},A.headers[A.method]||{},A.headers),r.forEach(["delete","get","head","post","put","patch","common"],function(e){delete A.headers[e]}),(A.adapter||i.adapter)(A).then(function(e){return a(A),e.data=n.call(A,e.data,e.headers,A.transformResponse),e},function(e){return o(e)||(a(A),e&&e.response&&(e.response.data=n.call(A,e.response.data,e.response.headers,A.transformResponse))),Promise.reject(e)})}},9914:function(A,e,t){"use strict";var r=t(226),n=t(8657),o=t(1722).f,i=r("unscopables"),s=Array.prototype;void 0===s[i]&&o(s,i,{configurable:!0,value:n(null)}),A.exports=function(A){s[i][A]=!0}},9942:function(A,e,t){"use strict";var r=this&&this.__awaiter||function(A,e,t,r){return new(t||(t=Promise))(function(n,o){function i(A){try{a(r.next(A))}catch(A){o(A)}}function s(A){try{a(r.throw(A))}catch(A){o(A)}}function a(A){var e;A.done?n(A.value):(e=A.value,e instanceof t?e:new t(function(A){A(e)})).then(i,s)}a((r=r.apply(A,e||[])).next())})},n=this&&this.__generator||function(A,e){var t,r,n,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=s(0),i.throw=s(1),i.return=s(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(a){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(t=1,r&&(n=2&s[0]?r.return:s[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,s[1])).done)return n;switch(r=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]0&&n[n.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]1&&void 0!==arguments[1])||arguments[1];return null===A&&(e="Null"),void 0===A&&(e="Undefined"),n(A)&&(e="NaN"),i(A)&&(e="Buffer"),e||(e=r(A).match(s))&&(e=e[1]),e?t?o(e):e:""};var s=/^\[object\s+(.*?)]$/;A.exports=e}},__webpack_module_cache__={};function __webpack_require__(A){var e=__webpack_module_cache__[A];if(void 0!==e)return e.exports;var t=__webpack_module_cache__[A]={exports:{}};return __webpack_modules__[A].call(t.exports,t,t.exports,__webpack_require__),t.exports}__webpack_require__.d=function(A,e){for(var t in e)__webpack_require__.o(e,t)&&!__webpack_require__.o(A,t)&&Object.defineProperty(A,t,{enumerable:!0,get:e[t]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(A){if("object"==typeof window)return window}}(),__webpack_require__.o=function(A,e){return Object.prototype.hasOwnProperty.call(A,e)},__webpack_require__.r=function(A){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})};var __webpack_exports__=__webpack_require__(8156);return __webpack_exports__=__webpack_exports__.default,__webpack_exports__}()}); +//# sourceMappingURL=chobitsu.js.map \ No newline at end of file diff --git a/src/MauiDevFlow.Logging/FileLogWriter.cs b/src/MauiDevFlow.Logging/FileLogWriter.cs index a40e1d2..360afd0 100644 --- a/src/MauiDevFlow.Logging/FileLogWriter.cs +++ b/src/MauiDevFlow.Logging/FileLogWriter.cs @@ -62,6 +62,12 @@ public void Write(FileLogEntry entry) _buffer.Enqueue(json); } + /// + /// Synchronously drains the in-memory buffer to disk. + /// Exposed for testing — production code relies on the background timer. + /// + internal void Flush() => DrainBuffer(); + private void DrainBuffer() { if (_disposed || _buffer.IsEmpty) return; diff --git a/src/MauiDevFlow.Logging/MauiDevFlow.Logging.csproj b/src/MauiDevFlow.Logging/MauiDevFlow.Logging.csproj index 7040818..ce8f736 100644 --- a/src/MauiDevFlow.Logging/MauiDevFlow.Logging.csproj +++ b/src/MauiDevFlow.Logging/MauiDevFlow.Logging.csproj @@ -8,6 +8,10 @@ logging;jsonl;rotating + + + + diff --git a/tests/MauiDevFlow.Tests/BufferedLoggingTests.cs b/tests/MauiDevFlow.Tests/BufferedLoggingTests.cs index 6897019..490fc33 100644 --- a/tests/MauiDevFlow.Tests/BufferedLoggingTests.cs +++ b/tests/MauiDevFlow.Tests/BufferedLoggingTests.cs @@ -56,7 +56,7 @@ public void EntriesAreDrainedToDiskAfterTimerFires() WriteEntry(provider, "DRAIN_2", DateTime.UtcNow.AddMilliseconds(1)); // Wait for drain timer to fire (1s interval + margin) - Thread.Sleep(2000); + provider.Writer.Flush(); // File should now contain the entries var currentFile = Path.Combine(_logDir, "log-current.jsonl"); @@ -80,7 +80,7 @@ public void BufferAndDiskEntriesMergeInCorrectOrder() // Write some entries and wait for drain WriteEntry(provider, "OLD_1", baseTime); WriteEntry(provider, "OLD_2", baseTime.AddSeconds(1)); - Thread.Sleep(2000); + provider.Writer.Flush(); // Now write more entries (these stay in buffer) WriteEntry(provider, "NEW_1", baseTime.AddSeconds(2)); @@ -109,7 +109,7 @@ public void NoDuplicatesAfterDrain() Assert.Equal(10, before.Count); // Wait for drain - Thread.Sleep(2000); + provider.Writer.Flush(); // Read after drain: all from disk (buffer empty) var after = provider.Reader.Read(100); @@ -160,7 +160,7 @@ public void PaginationWorksAcrossBufferAndDisk() // Write 5 entries and drain to disk for (int i = 0; i < 5; i++) WriteEntry(provider, $"DISK_{i:D2}", baseTime.AddSeconds(i)); - Thread.Sleep(2000); + provider.Writer.Flush(); // Write 5 more (stay in buffer) for (int i = 0; i < 5; i++) @@ -210,7 +210,7 @@ public void RotationPreservesAllEntries() WriteEntry(provider, $"ROT_{i:D2} padding {new string('x', 100)}", baseTime.AddSeconds(i)); // Wait for drain + rotation - Thread.Sleep(2000); + provider.Writer.Flush(); // Should have multiple files var files = Directory.GetFiles(_logDir, "log-*.jsonl");